@cheqd/did-provider-cheqd 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/agent/ICheqd.d.ts.map +1 -1
- package/build/agent/ICheqd.js +26 -2
- package/build/agent/ICheqd.js.map +1 -1
- package/build/index.d.ts +0 -2
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -5
- package/build/index.js.map +1 -1
- package/package.json +1 -1
- package/src/agent/ICheqd.ts +26 -2
- package/src/index.ts +1 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ICheqd.d.ts","sourceRoot":"","sources":["../../src/agent/ICheqd.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,aAAa,EACb,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,WAAW,EACd,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAA;
|
|
1
|
+
{"version":3,"file":"ICheqd.d.ts","sourceRoot":"","sources":["../../src/agent/ICheqd.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,aAAa,EACb,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,WAAW,EACd,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAA;AAEpE,aAAK,QAAQ,GAAG,aAAa,CAAC,WAAW,CAAC,CAAA;AAE1C,QAAA,MAAM,0BAA0B,0BAA0B,CAAA;AAC1D,QAAA,MAAM,0BAA0B,0BAA0B,CAAA;AAE1D,MAAM,WAAW,MAAO,SAAQ,gBAAgB;IAC5C,CAAC,0BAA0B,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,KAAK,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC,CAAA;IACtG,CAAC,0BAA0B,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAChF;AAED,qBAAa,KAAM,YAAW,YAAY;IACtC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,kBAAkB,CAyBnC;IAED,QAAQ,CAAC,WAAW,EAAE,gBAAgB,CAAC;gBAE3B,QAAQ,EAAE,gBAAgB;YASxB,gBAAgB;YA2BhB,gBAAgB;CAkBjC"}
|
package/build/agent/ICheqd.js
CHANGED
|
@@ -1,12 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Cheqd = void 0;
|
|
4
|
-
const __1 = require("..");
|
|
5
4
|
const CreateIdentifierMethodName = 'cheqdCreateIdentifier';
|
|
6
5
|
const UpdateIdentifierMethodName = 'cheqdUpdateIdentifier';
|
|
7
6
|
class Cheqd {
|
|
8
7
|
constructor(provider) {
|
|
9
|
-
this.schema =
|
|
8
|
+
this.schema = {
|
|
9
|
+
"components": {
|
|
10
|
+
"schemas": {},
|
|
11
|
+
"methods": {
|
|
12
|
+
"cheqdCreateIdentifier": {
|
|
13
|
+
"description": "Create a new identifier",
|
|
14
|
+
"arguments": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"properties": {
|
|
17
|
+
"args": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"description": "A cheqdCreateIdentifierArgs object as any for extensibility"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"required": [
|
|
23
|
+
"args"
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"returnType": {
|
|
27
|
+
"type": "object"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"cheqdUpdateIdentifier": {}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
10
34
|
this.didProvider = provider;
|
|
11
35
|
this.methods = {
|
|
12
36
|
[CreateIdentifierMethodName]: this.CreateIdentifier.bind(this),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ICheqd.js","sourceRoot":"","sources":["../../src/agent/ICheqd.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ICheqd.js","sourceRoot":"","sources":["../../src/agent/ICheqd.ts"],"names":[],"mappings":";;;AAYA,MAAM,0BAA0B,GAAG,uBAAuB,CAAA;AAC1D,MAAM,0BAA0B,GAAG,uBAAuB,CAAA;AAO1D,MAAa,KAAK;IA+Bd,YAAY,QAA0B;QA7B7B,WAAM,GAAwB;YACnC,YAAY,EAAE;gBACV,SAAS,EAAE,EAAE;gBACb,SAAS,EAAE;oBACP,uBAAuB,EAAE;wBACrB,aAAa,EAAE,yBAAyB;wBACxC,WAAW,EAAE;4BACT,MAAM,EAAE,QAAQ;4BAChB,YAAY,EAAE;gCACV,MAAM,EAAE;oCACJ,MAAM,EAAE,QAAQ;oCAChB,aAAa,EAAE,6DAA6D;iCAC/E;6BACJ;4BACD,UAAU,EAAE;gCACR,MAAM;6BACT;yBACJ;wBACD,YAAY,EAAE;4BACV,MAAM,EAAE,QAAQ;yBACnB;qBACJ;oBACD,uBAAuB,EAAE,EAAE;iBAC9B;aACJ;SACJ,CAAA;QAKG,IAAI,CAAC,WAAW,GAAG,QAAQ,CAAA;QAE3B,IAAI,CAAC,OAAO,GAAG;YACX,CAAC,0BAA0B,CAAC,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC;YAC9D,CAAC,0BAA0B,CAAC,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC;SACjE,CAAA;IACL,CAAC;IAEO,KAAK,CAAC,gBAAgB,CAAC,IAAS,EAAE,OAAiB;QACvD,IAAI,OAAO,IAAI,CAAC,GAAG,KAAK,QAAQ,EAAE;YAC9B,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAA;SACrD;QAED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d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @public
|
|
3
3
|
*/
|
|
4
|
-
declare const schema: any;
|
|
5
|
-
export { schema };
|
|
6
4
|
export { CheqdDIDProvider } from './did-manager/cheqd-did-provider';
|
|
7
5
|
export { CheqdDidResolver, getResolver } from './did-manager/cheqd-did-resolver';
|
|
8
6
|
export { CheqdUniversalResolver } from './did-manager/resolver';
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AACnE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA"}
|
package/build/index.js
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Cheqd = exports.CheqdUniversalResolver = exports.getResolver = exports.CheqdDidResolver = exports.CheqdDIDProvider =
|
|
3
|
+
exports.Cheqd = exports.CheqdUniversalResolver = exports.getResolver = exports.CheqdDidResolver = exports.CheqdDIDProvider = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
// It can be disabled even not import statement is needed
|
|
8
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
9
|
-
const schema = require('../plugin.schema.json');
|
|
10
|
-
exports.schema = schema;
|
|
11
7
|
var cheqd_did_provider_1 = require("./did-manager/cheqd-did-provider");
|
|
12
8
|
Object.defineProperty(exports, "CheqdDIDProvider", { enumerable: true, get: function () { return cheqd_did_provider_1.CheqdDIDProvider; } });
|
|
13
9
|
var cheqd_did_resolver_1 = require("./did-manager/cheqd-did-resolver");
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,uEAAmE;AAA1D,sHAAA,gBAAgB,OAAA;AACzB,uEAAgF;AAAvE,sHAAA,gBAAgB,OAAA;AAAE,iHAAA,WAAW,OAAA;AACtC,mDAA+D;AAAtD,kHAAA,sBAAsB,OAAA;AAC/B,yCAAsC;AAA7B,+FAAA,KAAK,OAAA"}
|
package/package.json
CHANGED
package/src/agent/ICheqd.ts
CHANGED
|
@@ -7,7 +7,6 @@ import {
|
|
|
7
7
|
IIdentifier
|
|
8
8
|
} from '@veramo/core'
|
|
9
9
|
import { CheqdDIDProvider } from '../did-manager/cheqd-did-provider'
|
|
10
|
-
import { schema } from '..'
|
|
11
10
|
|
|
12
11
|
type IContext = IAgentContext<IKeyManager>
|
|
13
12
|
|
|
@@ -21,7 +20,32 @@ export interface ICheqd extends IPluginMethodMap {
|
|
|
21
20
|
|
|
22
21
|
export class Cheqd implements IAgentPlugin {
|
|
23
22
|
readonly methods?: ICheqd
|
|
24
|
-
readonly schema?: IAgentPluginSchema =
|
|
23
|
+
readonly schema?: IAgentPluginSchema = {
|
|
24
|
+
"components": {
|
|
25
|
+
"schemas": {},
|
|
26
|
+
"methods": {
|
|
27
|
+
"cheqdCreateIdentifier": {
|
|
28
|
+
"description": "Create a new identifier",
|
|
29
|
+
"arguments": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"properties": {
|
|
32
|
+
"args": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"description": "A cheqdCreateIdentifierArgs object as any for extensibility"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"required": [
|
|
38
|
+
"args"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"returnType": {
|
|
42
|
+
"type": "object"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"cheqdUpdateIdentifier": {}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
25
49
|
|
|
26
50
|
readonly didProvider: CheqdDIDProvider;
|
|
27
51
|
|
package/src/index.ts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @public
|
|
3
3
|
*/
|
|
4
|
-
// It can be disabled even not import statement is needed
|
|
5
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
6
|
-
const schema = require('../plugin.schema.json')
|
|
7
|
-
export { schema }
|
|
8
4
|
export { CheqdDIDProvider } from './did-manager/cheqd-did-provider'
|
|
9
5
|
export { CheqdDidResolver, getResolver } from './did-manager/cheqd-did-resolver'
|
|
10
6
|
export { CheqdUniversalResolver } from './did-manager/resolver'
|
|
11
7
|
export { Cheqd } from './agent/ICheqd'
|
|
8
|
+
|