signify-ts 0.2.1 → 0.3.0-rc2

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.
Files changed (128) hide show
  1. package/README.md +104 -34
  2. package/dist/exports.d.ts +40 -40
  3. package/dist/exports.js +40 -0
  4. package/dist/index.d.ts +2 -3
  5. package/dist/index.js +3 -8
  6. package/dist/keri/app/aiding.d.ts +34 -14
  7. package/{src/keri/app/aiding.ts → dist/keri/app/aiding.js} +104 -235
  8. package/dist/keri/app/clienting.d.ts +57 -22
  9. package/{src/keri/app/clienting.ts → dist/keri/app/clienting.js} +145 -234
  10. package/dist/keri/app/contacting.d.ts +33 -21
  11. package/{src/keri/app/contacting.ts → dist/keri/app/contacting.js} +25 -62
  12. package/dist/keri/app/controller.d.ts +49 -6
  13. package/{src/keri/app/controller.ts → dist/keri/app/controller.js} +79 -185
  14. package/dist/keri/app/coring.d.ts +30 -8
  15. package/{src/keri/app/coring.ts → dist/keri/app/coring.js} +62 -51
  16. package/dist/keri/app/credentialing.d.ts +183 -65
  17. package/dist/keri/app/credentialing.js +540 -0
  18. package/dist/keri/app/delegating.d.ts +18 -0
  19. package/dist/keri/app/delegating.js +24 -0
  20. package/dist/keri/app/escrowing.d.ts +1 -1
  21. package/{src/keri/app/escrowing.ts → dist/keri/app/escrowing.js} +2 -8
  22. package/dist/keri/app/exchanging.d.ts +7 -6
  23. package/{src/keri/app/exchanging.ts → dist/keri/app/exchanging.js} +33 -110
  24. package/dist/keri/app/grouping.d.ts +2 -2
  25. package/{src/keri/app/grouping.ts → dist/keri/app/grouping.js} +6 -25
  26. package/dist/keri/app/habery.d.ts +2 -2
  27. package/dist/keri/app/habery.js +117 -0
  28. package/dist/keri/app/notifying.d.ts +2 -2
  29. package/{src/keri/app/notifying.ts → dist/keri/app/notifying.js} +7 -17
  30. package/dist/keri/core/authing.d.ts +2 -2
  31. package/{src/keri/core/authing.ts → dist/keri/core/authing.js} +26 -42
  32. package/dist/keri/core/base64.d.ts +2 -0
  33. package/dist/keri/core/base64.js +16 -0
  34. package/dist/keri/core/bexter.d.ts +1 -1
  35. package/{src/keri/core/bexter.ts → dist/keri/core/bexter.js} +18 -32
  36. package/dist/keri/core/cigar.d.ts +2 -2
  37. package/dist/keri/core/cigar.js +13 -0
  38. package/dist/keri/core/cipher.d.ts +1 -1
  39. package/{src/keri/core/cipher.ts → dist/keri/core/cipher.js} +10 -19
  40. package/dist/keri/core/core.d.ts +117 -9
  41. package/dist/keri/core/core.js +385 -0
  42. package/dist/keri/core/counter.d.ts +2 -2
  43. package/dist/keri/core/counter.js +221 -0
  44. package/dist/keri/core/decrypter.d.ts +4 -4
  45. package/{src/keri/core/decrypter.ts → dist/keri/core/decrypter.js} +23 -40
  46. package/dist/keri/core/diger.d.ts +3 -3
  47. package/{src/keri/core/diger.ts → dist/keri/core/diger.js} +18 -33
  48. package/dist/keri/core/encrypter.d.ts +2 -2
  49. package/{src/keri/core/encrypter.ts → dist/keri/core/encrypter.js} +18 -38
  50. package/dist/keri/core/eventing.d.ts +4 -4
  51. package/{src/keri/core/eventing.ts → dist/keri/core/eventing.js} +134 -321
  52. package/dist/keri/core/httping.d.ts +11 -4
  53. package/{src/keri/core/httping.ts → dist/keri/core/httping.js} +36 -101
  54. package/dist/keri/core/indexer.d.ts +1 -1
  55. package/dist/keri/core/indexer.js +407 -0
  56. package/dist/keri/core/keeping.d.ts +98 -46
  57. package/dist/keri/core/keeping.js +365 -0
  58. package/{src/keri/core/kering.ts → dist/keri/core/kering.js} +1 -3
  59. package/dist/keri/core/keyState.d.ts +85 -0
  60. package/dist/keri/core/keyState.js +1 -0
  61. package/dist/keri/core/manager.d.ts +147 -12
  62. package/dist/keri/core/manager.js +880 -0
  63. package/dist/keri/core/matter.d.ts +1 -1
  64. package/dist/keri/core/matter.js +460 -0
  65. package/dist/keri/core/number.d.ts +1 -1
  66. package/{src/keri/core/number.ts → dist/keri/core/number.js} +21 -30
  67. package/dist/keri/core/pather.d.ts +2 -2
  68. package/{src/keri/core/pather.ts → dist/keri/core/pather.js} +12 -27
  69. package/dist/keri/core/prefixer.d.ts +10 -10
  70. package/dist/keri/core/prefixer.js +182 -0
  71. package/dist/keri/core/saider.d.ts +2 -12
  72. package/dist/keri/core/saider.js +107 -0
  73. package/dist/keri/core/salter.d.ts +45 -3
  74. package/dist/keri/core/salter.js +117 -0
  75. package/dist/keri/core/seqner.d.ts +1 -1
  76. package/{src/keri/core/seqner.ts → dist/keri/core/seqner.js} +20 -21
  77. package/dist/keri/core/serder.d.ts +25 -12
  78. package/dist/keri/core/serder.js +133 -0
  79. package/dist/keri/core/siger.d.ts +2 -2
  80. package/{src/keri/core/siger.ts → dist/keri/core/siger.js} +4 -14
  81. package/dist/keri/core/signer.d.ts +4 -4
  82. package/dist/keri/core/signer.js +84 -0
  83. package/{src/keri/core/tholder.ts → dist/keri/core/tholder.js} +69 -94
  84. package/dist/keri/core/utils.d.ts +1 -1
  85. package/{src/keri/core/utils.ts → dist/keri/core/utils.js} +30 -60
  86. package/dist/keri/core/vdring.d.ts +2 -2
  87. package/dist/keri/core/vdring.js +61 -0
  88. package/dist/keri/core/verfer.d.ts +2 -6
  89. package/dist/keri/core/verfer.js +37 -0
  90. package/dist/keri/end/ending.d.ts +10 -8
  91. package/dist/keri/end/ending.js +136 -0
  92. package/{src/ready.ts → dist/ready.js} +1 -2
  93. package/dist/types/keria-api-schema.d.ts +304 -0
  94. package/dist/types/keria-api-schema.js +2 -0
  95. package/package.json +53 -50
  96. package/dist/buffer-polyfill.d.ts +0 -1
  97. package/dist/math.d.ts +0 -1
  98. package/dist/signify-ts.cjs +0 -7842
  99. package/dist/signify-ts.cjs.development.js +0 -9501
  100. package/dist/signify-ts.cjs.development.js.map +0 -1
  101. package/dist/signify-ts.cjs.map +0 -7
  102. package/dist/signify-ts.cjs.production.min.js +0 -2
  103. package/dist/signify-ts.cjs.production.min.js.map +0 -1
  104. package/dist/signify-ts.esm.js +0 -9345
  105. package/dist/signify-ts.esm.js.map +0 -1
  106. package/dist/signify-ts.mjs +0 -7818
  107. package/dist/signify-ts.mjs.map +0 -7
  108. package/src/buffer-polyfill.ts +0 -5
  109. package/src/exports.ts +0 -44
  110. package/src/index.ts +0 -4
  111. package/src/keri/app/credentialing.ts +0 -841
  112. package/src/keri/app/habery.ts +0 -185
  113. package/src/keri/core/cigar.ts +0 -18
  114. package/src/keri/core/core.ts +0 -326
  115. package/src/keri/core/counter.ts +0 -273
  116. package/src/keri/core/indexer.ts +0 -509
  117. package/src/keri/core/keeping.ts +0 -684
  118. package/src/keri/core/manager.ts +0 -1183
  119. package/src/keri/core/matter.ts +0 -521
  120. package/src/keri/core/prefixer.ts +0 -233
  121. package/src/keri/core/saider.ts +0 -186
  122. package/src/keri/core/salter.ts +0 -120
  123. package/src/keri/core/serder.ts +0 -163
  124. package/src/keri/core/signer.ts +0 -133
  125. package/src/keri/core/vdring.ts +0 -94
  126. package/src/keri/core/verfer.ts +0 -47
  127. package/src/keri/end/ending.ts +0 -170
  128. package/src/math.ts +0 -3
@@ -0,0 +1,304 @@
1
+ export interface components {
2
+ schemas: {
3
+ ACDCAttributes: {
4
+ dt?: string;
5
+ i?: string;
6
+ u?: string;
7
+ } & {
8
+ [key: string]: unknown;
9
+ };
10
+ ACDC_V_1: {
11
+ v: string;
12
+ d: string;
13
+ i: string;
14
+ s: string;
15
+ u?: string;
16
+ ri?: string;
17
+ e?: string;
18
+ r?: string;
19
+ a?: components['schemas']['ACDCAttributes'];
20
+ } | {
21
+ v: string;
22
+ d: string;
23
+ i: string;
24
+ s: string;
25
+ u?: string;
26
+ ri?: string;
27
+ e?: string;
28
+ r?: string;
29
+ A?: string | unknown[];
30
+ };
31
+ ACDC_V_2: {
32
+ v: string;
33
+ d: string;
34
+ i: string;
35
+ s: string;
36
+ u?: string;
37
+ rd?: string;
38
+ e?: string;
39
+ r?: string;
40
+ a?: components['schemas']['ACDCAttributes'];
41
+ } | {
42
+ v: string;
43
+ d: string;
44
+ i: string;
45
+ s: string;
46
+ u?: string;
47
+ rd?: string;
48
+ e?: string;
49
+ r?: string;
50
+ A?: string | unknown[];
51
+ };
52
+ IssEvent: {
53
+ v: string;
54
+ /** @enum {unknown} */
55
+ t: 'iss' | 'bis';
56
+ d: string;
57
+ i: string;
58
+ s: string;
59
+ ri: string;
60
+ dt: string;
61
+ };
62
+ Schema: {
63
+ $id: string;
64
+ $schema: string;
65
+ title: string;
66
+ description: string;
67
+ type: string;
68
+ credentialType: string;
69
+ version: string;
70
+ properties: {
71
+ [key: string]: unknown;
72
+ };
73
+ additionalProperties: boolean;
74
+ required: string[];
75
+ };
76
+ Anchor: {
77
+ pre: string;
78
+ sn: number;
79
+ d: string;
80
+ };
81
+ Seal: {
82
+ s: string;
83
+ d: string;
84
+ i?: string;
85
+ };
86
+ IXN_V_1: {
87
+ v: string;
88
+ t: string;
89
+ d: string;
90
+ i: string;
91
+ s: string;
92
+ p: string;
93
+ a: components['schemas']['Seal'][];
94
+ };
95
+ IXN_V_2: {
96
+ v: string;
97
+ t: string;
98
+ d: string;
99
+ i: string;
100
+ s: string;
101
+ p: string;
102
+ a: components['schemas']['Seal'][];
103
+ };
104
+ ICP_V_1: {
105
+ v: string;
106
+ t: string;
107
+ d: string;
108
+ i: string;
109
+ s: string;
110
+ kt: string;
111
+ k: string[];
112
+ nt: string;
113
+ n: string[];
114
+ bt: string;
115
+ b: string[];
116
+ c: string[];
117
+ a: unknown;
118
+ };
119
+ ICP_V_2: {
120
+ v: string;
121
+ t: string;
122
+ d: string;
123
+ i: string;
124
+ s: string;
125
+ kt: string;
126
+ k: string[];
127
+ nt: string;
128
+ n: string[];
129
+ bt: string;
130
+ b: string[];
131
+ c: string[];
132
+ a: unknown;
133
+ };
134
+ ROT_V_1: {
135
+ v: string;
136
+ t: string;
137
+ d: string;
138
+ i: string;
139
+ s: string;
140
+ p: string;
141
+ kt: string;
142
+ k: string[];
143
+ nt: string;
144
+ n: string[];
145
+ bt: string;
146
+ br: string[];
147
+ ba: string[];
148
+ a: unknown;
149
+ };
150
+ ROT_V_2: {
151
+ v: string;
152
+ t: string;
153
+ d: string;
154
+ i: string;
155
+ s: string;
156
+ p: string;
157
+ kt: string;
158
+ k: string[];
159
+ nt: string;
160
+ n: string[];
161
+ bt: string;
162
+ br: string[];
163
+ ba: string[];
164
+ c: string[];
165
+ a: unknown;
166
+ };
167
+ DIP_V_1: {
168
+ v: string;
169
+ t: string;
170
+ d: string;
171
+ i: string;
172
+ s: string;
173
+ kt: string;
174
+ k: string[];
175
+ nt: string;
176
+ n: string[];
177
+ bt: string;
178
+ b: string[];
179
+ c: string[];
180
+ a: unknown;
181
+ di: string;
182
+ };
183
+ DIP_V_2: {
184
+ v: string;
185
+ t: string;
186
+ d: string;
187
+ i: string;
188
+ s: string;
189
+ kt: string;
190
+ k: string[];
191
+ nt: string;
192
+ n: string[];
193
+ bt: string;
194
+ b: string[];
195
+ c: string[];
196
+ a: unknown;
197
+ di: string;
198
+ };
199
+ DRT_V_1: {
200
+ v: string;
201
+ t: string;
202
+ d: string;
203
+ i: string;
204
+ s: string;
205
+ p: string;
206
+ kt: string;
207
+ k: string[];
208
+ nt: string;
209
+ n: string[];
210
+ bt: string;
211
+ br: string[];
212
+ ba: string[];
213
+ a: unknown;
214
+ };
215
+ DRT_V_2: {
216
+ v: string;
217
+ t: string;
218
+ d: string;
219
+ i: string;
220
+ s: string;
221
+ p: string;
222
+ kt: string;
223
+ k: string[];
224
+ nt: string;
225
+ n: string[];
226
+ bt: string;
227
+ br: string[];
228
+ ba: string[];
229
+ c: string[];
230
+ a: unknown;
231
+ };
232
+ Credential: {
233
+ sad: components['schemas']['ACDC_V_1'] | components['schemas']['ACDC_V_2'];
234
+ atc: string;
235
+ iss: components['schemas']['IssEvent'];
236
+ issatc: string;
237
+ pre: string;
238
+ schema: components['schemas']['Schema'];
239
+ chains: {
240
+ [key: string]: unknown;
241
+ }[];
242
+ status: components['schemas']['CredentialState'];
243
+ anchor: components['schemas']['Anchor'];
244
+ anc: components['schemas']['IXN_V_1'] | components['schemas']['IXN_V_2'] | components['schemas']['ICP_V_1'] | components['schemas']['ICP_V_2'] | components['schemas']['ROT_V_1'] | components['schemas']['ROT_V_2'] | components['schemas']['DIP_V_1'] | components['schemas']['DIP_V_2'] | components['schemas']['DRT_V_1'] | components['schemas']['DRT_V_2'];
245
+ ancatc: string;
246
+ };
247
+ OperationStatus: {
248
+ code: number;
249
+ message: string;
250
+ details?: {
251
+ [key: string]: unknown;
252
+ } | null;
253
+ };
254
+ Operation: {
255
+ name: string;
256
+ error?: components['schemas']['OperationStatus'];
257
+ done?: boolean;
258
+ metadata?: Record<string, never>;
259
+ response?: Record<string, never>;
260
+ };
261
+ EmptyDict: Record<string, never>;
262
+ CredentialStateIssOrRev: {
263
+ vn: unknown;
264
+ i: string;
265
+ s: string;
266
+ d: string;
267
+ ri: string;
268
+ a: components['schemas']['Seal'];
269
+ dt: string;
270
+ /** @enum {unknown} */
271
+ et: 'iss' | 'rev';
272
+ ra: components['schemas']['EmptyDict'];
273
+ };
274
+ RaFields: {
275
+ i: string;
276
+ s: string;
277
+ d: string;
278
+ };
279
+ CredentialStateBisOrBrv: {
280
+ vn: unknown;
281
+ i: string;
282
+ s: string;
283
+ d: string;
284
+ ri: string;
285
+ a: components['schemas']['Seal'];
286
+ dt: string;
287
+ /** @enum {unknown} */
288
+ et: 'bis' | 'brv';
289
+ ra: components['schemas']['RaFields'];
290
+ };
291
+ CredentialState: components['schemas']['CredentialStateIssOrRev'] | components['schemas']['CredentialStateBisOrBrv'];
292
+ Registry: {
293
+ name: string;
294
+ regk: string;
295
+ pre: string;
296
+ state: components['schemas']['CredentialState'];
297
+ };
298
+ };
299
+ responses: never;
300
+ parameters: never;
301
+ requestBodies: never;
302
+ headers: never;
303
+ pathItems: never;
304
+ }
@@ -0,0 +1,2 @@
1
+ // AUTO-GENERATED: Only components retained from OpenAPI schema
2
+ export {};
package/package.json CHANGED
@@ -1,68 +1,71 @@
1
1
  {
2
- "version": "0.2.1",
2
+ "name": "signify-ts",
3
+ "version": "0.3.0-rc2",
4
+ "description": "Signing at the edge for KERI, ACDC, and KERIA",
5
+ "keywords": [
6
+ "keri",
7
+ "acdc",
8
+ "keria",
9
+ "signify",
10
+ "signify-ts",
11
+ "decentralized identity",
12
+ "authentic data",
13
+ "zero trust architecture"
14
+ ],
15
+ "author": "Phil Feairheller",
16
+ "homepage": "https://github.com/WebOfTrust/signify-ts",
17
+ "repo": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/WebOfTrust/signify-ts.git"
20
+ },
21
+ "bugs": {
22
+ "url": "https://github.com/WebOfTrust/signify-ts/issues"
23
+ },
3
24
  "license": "Apache-2.0",
4
25
  "exports": {
5
- ".": {
6
- "import": "./dist/signify-ts.mjs",
7
- "require": "./dist/signify-ts.cjs",
8
- "types": "./dist/index.d.ts"
9
- }
26
+ "import": "./dist/index.js"
10
27
  },
11
- "types": "./dist/index.d.ts",
12
28
  "type": "module",
13
29
  "files": [
14
- "dist",
15
- "src"
30
+ "dist"
16
31
  ],
17
32
  "scripts": {
18
- "start": "npm run build:esm -- --watch",
19
- "build:cjs": "esbuild src/index.ts --bundle --outfile=dist/signify-ts.cjs --platform=neutral --format=cjs --sourcemap --packages=external",
20
- "build:esm": "esbuild src/index.ts --bundle --outfile=dist/signify-ts.mjs --platform=neutral --format=esm --sourcemap --packages=external",
21
- "build:types": "tsc -p tsconfig.build.json",
22
- "build": "npm run build:cjs && npm run build:esm && npm run build:types",
23
- "test": "jest test/",
24
- "test:integration": "jest examples/integration-scripts/ --runInBand --bail",
25
- "lint": "npx eslint src test examples/integration-scripts",
26
- "prepare": "npm run build",
27
- "generate-docs": "node_modules/.bin/jsdoc --configure .jsdoc.json --verbose",
28
- "pretty": "prettier --config .prettierrc 'src/**/*.ts' 'test/**/*.ts' 'examples/**/*.ts' --write",
29
- "pretty:check": "prettier --config .prettierrc 'src/**/*.ts' 'test/**/*.ts' 'examples/**/*.ts' --check"
33
+ "start": "npm run build -- --watch",
34
+ "generate:types": "node scripts/generate-types.js",
35
+ "build": "tsc -p tsconfig.build.json && tsc -p tsconfig.json --noEmit",
36
+ "test": "vitest",
37
+ "prepare": "tsc -p tsconfig.build.json",
38
+ "test:integration": "vitest -c vitest.integration.ts",
39
+ "lint": "eslint src test test-integration scripts",
40
+ "generate:docs": "typedoc src/index.ts",
41
+ "pretty": "prettier --write .",
42
+ "pretty:check": "prettier --check ."
30
43
  },
31
- "name": "signify-ts",
32
- "author": "Phil Feairheller",
33
44
  "devDependencies": {
34
- "@mermaid-js/mermaid-cli": "^10.3.0",
35
- "@types/jest": "^29.5.8",
45
+ "@eslint/js": "^9.22.0",
36
46
  "@types/libsodium-wrappers-sumo": "^0.7.5",
37
- "@types/node": "^18.11.18",
38
- "@types/urlsafe-base64": "^1.0.28",
39
- "@typescript-eslint/eslint-plugin": "^6.10.0",
40
- "@typescript-eslint/parser": "^6.10.0",
41
- "esbuild": "^0.19.5",
42
- "eslint": "^8.53.0",
43
- "eslint-config-prettier": "^9.0.0",
44
- "jest": "^29.3.1",
45
- "jest-fetch-mock": "^3.0.3",
46
- "jsdoc": "^4.0.2",
47
+ "@types/node": "^22.13.11",
48
+ "@vitest/coverage-v8": "^3.0.9",
49
+ "bip39": "^3.1.0",
50
+ "eslint": "^9.22.0",
51
+ "eslint-config-prettier": "^10.1.1",
52
+ "globals": "^16.4.0",
47
53
  "minami": "^1.2.3",
48
- "prettier": "^3.0.3",
49
- "ts-jest": "^29.1.1",
54
+ "openapi-typescript": "^7.9.1",
55
+ "prettier": "^3.5.3",
50
56
  "ts-mockito": "^2.6.1",
51
- "ts-node": "^10.9.1",
52
- "typedoc": "^0.25.3",
53
- "typescript": "^5.2.2",
54
- "whatwg-fetch": "^3.6.19"
57
+ "typedoc": "^0.28.0",
58
+ "typescript": "^5.8.2",
59
+ "typescript-eslint": "^8.27.0",
60
+ "vite-tsconfig-paths": "^5.1.4",
61
+ "vitest": "^3.0.9"
55
62
  },
56
63
  "dependencies": {
64
+ "@noble/curves": "^1.8.1",
57
65
  "@noble/hashes": "^1.3.2",
58
- "buffer": "^6.0.3",
59
- "ecdsa-secp256r1": "^1.3.3",
66
+ "base64-js": "^1.5.1",
60
67
  "libsodium-wrappers-sumo": "^0.7.9",
61
- "mathjs": "^11.8.2",
62
- "structured-headers": "^0.5.0",
63
- "urlsafe-base64": "^1.0.0"
64
- },
65
- "workspaces": [
66
- "examples/*"
67
- ]
68
+ "mathjs": "^12.4.0",
69
+ "structured-headers": "^0.5.0"
70
+ }
68
71
  }
@@ -1 +0,0 @@
1
- export {};
package/dist/math.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const math: import("mathjs").MathJsStatic;