Skip to content

Commit

Permalink
feat: Removing GraphQL support
Browse files Browse the repository at this point in the history
  • Loading branch information
simonas-notcat committed Oct 12, 2020
1 parent f12236b commit 3646aab
Show file tree
Hide file tree
Showing 121 changed files with 460 additions and 9,964 deletions.
215 changes: 0 additions & 215 deletions __tests__/graphqlAgent.test.ts

This file was deleted.

19 changes: 19 additions & 0 deletions docs/api/daf-core.agent.getschema.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [daf-core](./daf-core.md) &gt; [Agent](./daf-core.agent.md) &gt; [getSchema](./daf-core.agent.getschema.md)

## Agent.getSchema() method

Returns agent plugin schema

<b>Signature:</b>

```typescript
getSchema(): IAgentPluginSchema;
```
<b>Returns:</b>

[IAgentPluginSchema](./daf-core.iagentpluginschema.md)

agent plugin schema

2 changes: 1 addition & 1 deletion docs/api/daf-core.agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ export declare class Agent implements IAgent
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [methods](./daf-core.agent.methods.md) | | [IPluginMethodMap](./daf-core.ipluginmethodmap.md) | The map of plugin + override methods |
| [schema](./daf-core.agent.schema.md) | | [IAgentPluginSchema](./daf-core.iagentpluginschema.md) | |
## Methods
| Method | Modifiers | Description |
| --- | --- | --- |
| [availableMethods()](./daf-core.agent.availablemethods.md) | | Lists available agent method names |
| [execute(method, args)](./daf-core.agent.execute.md) | | Executes a plugin method.<!-- -->Normally, the <code>execute()</code> method need not be called. The agent will expose the plugin methods directly on the agent instance but this can be used when dynamically deciding which methods to call. |
| [getSchema()](./daf-core.agent.getschema.md) | | Returns agent plugin schema |
11 changes: 0 additions & 11 deletions docs/api/daf-core.agent.schema.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [daf-core](./daf-core.md) &gt; [IAgentBase](./daf-core.iagentbase.md) &gt; [schema](./daf-core.iagentbase.schema.md)
[Home](./index.md) &gt; [daf-core](./daf-core.md) &gt; [IAgentBase](./daf-core.iagentbase.md) &gt; [getSchema](./daf-core.iagentbase.getschema.md)

## IAgentBase.schema property
## IAgentBase.getSchema property

<b>Signature:</b>

```typescript
readonly schema: IAgentPluginSchema;
getSchema: () => IAgentPluginSchema;
```
2 changes: 1 addition & 1 deletion docs/api/daf-core.iagentbase.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ export interface IAgentBase
| Property | Type | Description |
| --- | --- | --- |
| [availableMethods](./daf-core.iagentbase.availablemethods.md) | () =&gt; string\[\] | |
| [schema](./daf-core.iagentbase.schema.md) | [IAgentPluginSchema](./daf-core.iagentpluginschema.md) | |
| [getSchema](./daf-core.iagentbase.getschema.md) | () =&gt; [IAgentPluginSchema](./daf-core.iagentpluginschema.md) | |

2 changes: 1 addition & 1 deletion docs/api/daf-core.iidentity.controllerkeyid.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ Controller key id
<b>Signature:</b>

```typescript
controllerKeyId: string;
controllerKeyId?: string;
```
2 changes: 1 addition & 1 deletion docs/api/daf-core.imessage.data.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ Optional. Parsed data
<b>Signature:</b>

```typescript
data?: string | object;
data?: object | null;
```
4 changes: 2 additions & 2 deletions docs/api/daf-core.imessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ export interface IMessage
| --- | --- | --- |
| [createdAt](./daf-core.imessage.createdat.md) | string | Optional. Creation date (ISO 8601) |
| [credentials](./daf-core.imessage.credentials.md) | [VerifiableCredential](./daf-core.verifiablecredential.md)<!-- -->\[\] | Optional. Array of attached verifiable credentials |
| [data](./daf-core.imessage.data.md) | string \| object | Optional. Parsed data |
| [data](./daf-core.imessage.data.md) | object \| null | Optional. Parsed data |
| [expiresAt](./daf-core.imessage.expiresat.md) | string | Optional. Expiration date (ISO 8601) |
| [from](./daf-core.imessage.from.md) | string | Optional. Sender DID |
| [id](./daf-core.imessage.id.md) | string | Unique message ID |
| [metaData](./daf-core.imessage.metadata.md) | [IMetaData](./daf-core.imetadata.md)<!-- -->\[\] | Optional. Array of message metadata |
| [metaData](./daf-core.imessage.metadata.md) | [IMetaData](./daf-core.imetadata.md)<!-- -->\[\] \| null | Optional. Array of message metadata |
| [presentations](./daf-core.imessage.presentations.md) | [VerifiablePresentation](./daf-core.verifiablepresentation.md)<!-- -->\[\] | Optional. Array of attached verifiable presentations |
| [raw](./daf-core.imessage.raw.md) | string | Optional. Original message raw data |
| [replyTo](./daf-core.imessage.replyto.md) | string\[\] | Optional. List of DIDs to reply to |
Expand Down
2 changes: 1 addition & 1 deletion docs/api/daf-core.imessage.metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ Optional. Array of message metadata
<b>Signature:</b>

```typescript
metaData?: IMetaData[];
metaData?: IMetaData[] | null;
```
6 changes: 0 additions & 6 deletions docs/api/daf-core.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,6 @@ Provides [Agent](./daf-core.agent.md) implementation and defines [IResolver](./d
| [W3CCredential](./daf-core.w3ccredential.md) | W3CCredential [https://github.com/decentralized-identity/did-jwt-vc](https://github.com/decentralized-identity/did-jwt-vc) |
| [W3CPresentation](./daf-core.w3cpresentation.md) | W3CPresentation [https://github.com/decentralized-identity/did-jwt-vc](https://github.com/decentralized-identity/did-jwt-vc) |

## Variables

| Variable | Description |
| --- | --- |
| [validate](./daf-core.validate.md) | |

## Type Aliases

| Type Alias | Description |
Expand Down
11 changes: 0 additions & 11 deletions docs/api/daf-core.validate.md

This file was deleted.

3 changes: 2 additions & 1 deletion docs/api/daf-core.validationerror._constructor_.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ Constructs a new instance of the `ValidationError` class
<b>Signature:</b>

```typescript
constructor(message: string, code: string, path: string, description: string);
constructor(message: string, method: string, code: string, path: string, description: string);
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| message | string | |
| method | string | |
| code | string | |
| path | string | |
| description | string | |
Expand Down
3 changes: 2 additions & 1 deletion docs/api/daf-core.validationerror.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export declare class ValidationError extends Error
| Constructor | Modifiers | Description |
| --- | --- | --- |
| [(constructor)(message, code, path, description)](./daf-core.validationerror._constructor_.md) | | Constructs a new instance of the <code>ValidationError</code> class |
| [(constructor)(message, method, code, path, description)](./daf-core.validationerror._constructor_.md) | | Constructs a new instance of the <code>ValidationError</code> class |
## Properties
Expand All @@ -24,5 +24,6 @@ export declare class ValidationError extends Error
| [code](./daf-core.validationerror.code.md) | | string | |
| [description](./daf-core.validationerror.description.md) | | string | |
| [message](./daf-core.validationerror.message.md) | | string | |
| [method](./daf-core.validationerror.method.md) | | string | |
| [path](./daf-core.validationerror.path.md) | | string | |
11 changes: 11 additions & 0 deletions docs/api/daf-core.validationerror.method.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [daf-core](./daf-core.md) &gt; [ValidationError](./daf-core.validationerror.md) &gt; [method](./daf-core.validationerror.method.md)

## ValidationError.method property

<b>Signature:</b>

```typescript
method: string;
```

0 comments on commit 3646aab

Please sign in to comment.