@hypercerts-org/sdk-core 0.4.0-beta.0 → 0.6.0-beta.0

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 (62) hide show
  1. package/README.md +459 -79
  2. package/dist/index.cjs +128 -47
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.d.ts +28 -9
  5. package/dist/index.mjs +128 -47
  6. package/dist/index.mjs.map +1 -1
  7. package/dist/types.cjs +3 -2
  8. package/dist/types.cjs.map +1 -1
  9. package/dist/types.d.ts +28 -9
  10. package/dist/types.mjs +3 -2
  11. package/dist/types.mjs.map +1 -1
  12. package/package.json +9 -5
  13. package/.turbo/turbo-build.log +0 -328
  14. package/.turbo/turbo-test.log +0 -118
  15. package/CHANGELOG.md +0 -22
  16. package/eslint.config.mjs +0 -22
  17. package/rollup.config.js +0 -75
  18. package/src/auth/OAuthClient.ts +0 -497
  19. package/src/core/SDK.ts +0 -410
  20. package/src/core/config.ts +0 -243
  21. package/src/core/errors.ts +0 -257
  22. package/src/core/interfaces.ts +0 -324
  23. package/src/core/types.ts +0 -281
  24. package/src/errors.ts +0 -57
  25. package/src/index.ts +0 -107
  26. package/src/lexicons.ts +0 -64
  27. package/src/repository/BlobOperationsImpl.ts +0 -199
  28. package/src/repository/CollaboratorOperationsImpl.ts +0 -396
  29. package/src/repository/HypercertOperationsImpl.ts +0 -1146
  30. package/src/repository/LexiconRegistry.ts +0 -332
  31. package/src/repository/OrganizationOperationsImpl.ts +0 -234
  32. package/src/repository/ProfileOperationsImpl.ts +0 -281
  33. package/src/repository/RecordOperationsImpl.ts +0 -340
  34. package/src/repository/Repository.ts +0 -482
  35. package/src/repository/interfaces.ts +0 -897
  36. package/src/repository/types.ts +0 -111
  37. package/src/services/hypercerts/types.ts +0 -87
  38. package/src/storage/InMemorySessionStore.ts +0 -127
  39. package/src/storage/InMemoryStateStore.ts +0 -146
  40. package/src/storage.ts +0 -63
  41. package/src/testing/index.ts +0 -67
  42. package/src/testing/mocks.ts +0 -142
  43. package/src/testing/stores.ts +0 -285
  44. package/src/testing.ts +0 -64
  45. package/src/types.ts +0 -86
  46. package/tests/auth/OAuthClient.test.ts +0 -164
  47. package/tests/core/SDK.test.ts +0 -176
  48. package/tests/core/errors.test.ts +0 -81
  49. package/tests/repository/BlobOperationsImpl.test.ts +0 -154
  50. package/tests/repository/CollaboratorOperationsImpl.test.ts +0 -438
  51. package/tests/repository/HypercertOperationsImpl.test.ts +0 -652
  52. package/tests/repository/LexiconRegistry.test.ts +0 -192
  53. package/tests/repository/OrganizationOperationsImpl.test.ts +0 -242
  54. package/tests/repository/ProfileOperationsImpl.test.ts +0 -254
  55. package/tests/repository/RecordOperationsImpl.test.ts +0 -375
  56. package/tests/repository/Repository.test.ts +0 -149
  57. package/tests/utils/fixtures.ts +0 -117
  58. package/tests/utils/mocks.ts +0 -109
  59. package/tests/utils/repository-fixtures.ts +0 -78
  60. package/tsconfig.json +0 -11
  61. package/tsconfig.tsbuildinfo +0 -1
  62. package/vitest.config.ts +0 -30
@@ -1,328 +0,0 @@
1
-
2
- > @hypercerts-org/sdk-core@0.3.0 build /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core
3
- > rollup -c
4
-
5
- 
6
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/index.ts → dist/index.mjs, dist/index.cjs...
7
- (!) [plugin typescript] src/repository/BlobOperationsImpl.ts (125:9): @rollup/plugin-typescript TS2741: Property '$link' is missing in type 'CID<unknown, number, number, Version>' but required in type '{ $link: string; }'.
8
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/repository/BlobOperationsImpl.ts:125:9
9
- 
10
- 125 ref: result.data.blob.ref,
11
-    ~~~
12
-
13
- src/repository/BlobOperationsImpl.ts:111:46
14
- 111 async upload(blob: Blob): Promise<{ ref: { $link: string }; mimeType: string; size: number }> {
15
-    ~~~~~
16
- '$link' is declared here.
17
- src/repository/BlobOperationsImpl.ts:111:39
18
- 111 async upload(blob: Blob): Promise<{ ref: { $link: string }; mimeType: string; size: number }> {
19
-    ~~~
20
- The expected type comes from property 'ref' which is declared here on type '{ ref: { $link: string; }; mimeType: string; size: number; }'
21
- 
22
- (!) [plugin typescript] src/repository/HypercertOperationsImpl.ts (211:15): @rollup/plugin-typescript TS2741: Property '$link' is missing in type 'CID<unknown, number, number, Version>' but required in type '{ $link: string; }'.
23
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/repository/HypercertOperationsImpl.ts:211:15
24
- 
25
- 211 ref: uploadResult.data.blob.ref,
26
-    ~~~
27
-
28
- src/services/hypercerts/types.ts:67:10
29
- 67 ref: { $link: string };
30
-    ~~~~~
31
- '$link' is declared here.
32
- 
33
- (!) [plugin typescript] src/repository/HypercertOperationsImpl.ts (679:13): @rollup/plugin-typescript TS2741: Property '$link' is missing in type 'CID<unknown, number, number, Version>' but required in type '{ $link: string; }'.
34
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/repository/HypercertOperationsImpl.ts:679:13
35
- 
36
- 679 ref: uploadResult.data.blob.ref,
37
-    ~~~
38
-
39
- src/services/hypercerts/types.ts:67:10
40
- 67 ref: { $link: string };
41
-    ~~~~~
42
- '$link' is declared here.
43
- 
44
- (!) [plugin typescript] src/repository/HypercertOperationsImpl.ts (1002:13): @rollup/plugin-typescript TS2741: Property '$link' is missing in type 'CID<unknown, number, number, Version>' but required in type '{ $link: string; }'.
45
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/repository/HypercertOperationsImpl.ts:1002:13
46
- 
47
- 1002 ref: uploadResult.data.blob.ref,
48
-    ~~~
49
-
50
- src/services/hypercerts/types.ts:67:10
51
- 67 ref: { $link: string };
52
-    ~~~~~
53
- '$link' is declared here.
54
- 
55
- created dist/index.mjs, dist/index.cjs in 3s
56
- 
57
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/types.ts → dist/types.mjs, dist/types.cjs...
58
- (!) [plugin typescript] src/repository/BlobOperationsImpl.ts (125:9): @rollup/plugin-typescript TS2741: Property '$link' is missing in type 'CID<unknown, number, number, Version>' but required in type '{ $link: string; }'.
59
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/repository/BlobOperationsImpl.ts:125:9
60
- 
61
- 125 ref: result.data.blob.ref,
62
-    ~~~
63
-
64
- src/repository/BlobOperationsImpl.ts:111:46
65
- 111 async upload(blob: Blob): Promise<{ ref: { $link: string }; mimeType: string; size: number }> {
66
-    ~~~~~
67
- '$link' is declared here.
68
- src/repository/BlobOperationsImpl.ts:111:39
69
- 111 async upload(blob: Blob): Promise<{ ref: { $link: string }; mimeType: string; size: number }> {
70
-    ~~~
71
- The expected type comes from property 'ref' which is declared here on type '{ ref: { $link: string; }; mimeType: string; size: number; }'
72
- 
73
- (!) [plugin typescript] src/repository/HypercertOperationsImpl.ts (211:15): @rollup/plugin-typescript TS2741: Property '$link' is missing in type 'CID<unknown, number, number, Version>' but required in type '{ $link: string; }'.
74
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/repository/HypercertOperationsImpl.ts:211:15
75
- 
76
- 211 ref: uploadResult.data.blob.ref,
77
-    ~~~
78
-
79
- src/services/hypercerts/types.ts:67:10
80
- 67 ref: { $link: string };
81
-    ~~~~~
82
- '$link' is declared here.
83
- 
84
- (!) [plugin typescript] src/repository/HypercertOperationsImpl.ts (679:13): @rollup/plugin-typescript TS2741: Property '$link' is missing in type 'CID<unknown, number, number, Version>' but required in type '{ $link: string; }'.
85
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/repository/HypercertOperationsImpl.ts:679:13
86
- 
87
- 679 ref: uploadResult.data.blob.ref,
88
-    ~~~
89
-
90
- src/services/hypercerts/types.ts:67:10
91
- 67 ref: { $link: string };
92
-    ~~~~~
93
- '$link' is declared here.
94
- 
95
- (!) [plugin typescript] src/repository/HypercertOperationsImpl.ts (1002:13): @rollup/plugin-typescript TS2741: Property '$link' is missing in type 'CID<unknown, number, number, Version>' but required in type '{ $link: string; }'.
96
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/repository/HypercertOperationsImpl.ts:1002:13
97
- 
98
- 1002 ref: uploadResult.data.blob.ref,
99
-    ~~~
100
-
101
- src/services/hypercerts/types.ts:67:10
102
- 67 ref: { $link: string };
103
-    ~~~~~
104
- '$link' is declared here.
105
- 
106
- created dist/types.mjs, dist/types.cjs in 2.1s
107
- 
108
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/errors.ts → dist/errors.mjs, dist/errors.cjs...
109
- (!) [plugin typescript] src/repository/BlobOperationsImpl.ts (125:9): @rollup/plugin-typescript TS2741: Property '$link' is missing in type 'CID<unknown, number, number, Version>' but required in type '{ $link: string; }'.
110
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/repository/BlobOperationsImpl.ts:125:9
111
- 
112
- 125 ref: result.data.blob.ref,
113
-    ~~~
114
-
115
- src/repository/BlobOperationsImpl.ts:111:46
116
- 111 async upload(blob: Blob): Promise<{ ref: { $link: string }; mimeType: string; size: number }> {
117
-    ~~~~~
118
- '$link' is declared here.
119
- src/repository/BlobOperationsImpl.ts:111:39
120
- 111 async upload(blob: Blob): Promise<{ ref: { $link: string }; mimeType: string; size: number }> {
121
-    ~~~
122
- The expected type comes from property 'ref' which is declared here on type '{ ref: { $link: string; }; mimeType: string; size: number; }'
123
- 
124
- (!) [plugin typescript] src/repository/HypercertOperationsImpl.ts (211:15): @rollup/plugin-typescript TS2741: Property '$link' is missing in type 'CID<unknown, number, number, Version>' but required in type '{ $link: string; }'.
125
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/repository/HypercertOperationsImpl.ts:211:15
126
- 
127
- 211 ref: uploadResult.data.blob.ref,
128
-    ~~~
129
-
130
- src/services/hypercerts/types.ts:67:10
131
- 67 ref: { $link: string };
132
-    ~~~~~
133
- '$link' is declared here.
134
- 
135
- (!) [plugin typescript] src/repository/HypercertOperationsImpl.ts (679:13): @rollup/plugin-typescript TS2741: Property '$link' is missing in type 'CID<unknown, number, number, Version>' but required in type '{ $link: string; }'.
136
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/repository/HypercertOperationsImpl.ts:679:13
137
- 
138
- 679 ref: uploadResult.data.blob.ref,
139
-    ~~~
140
-
141
- src/services/hypercerts/types.ts:67:10
142
- 67 ref: { $link: string };
143
-    ~~~~~
144
- '$link' is declared here.
145
- 
146
- (!) [plugin typescript] src/repository/HypercertOperationsImpl.ts (1002:13): @rollup/plugin-typescript TS2741: Property '$link' is missing in type 'CID<unknown, number, number, Version>' but required in type '{ $link: string; }'.
147
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/repository/HypercertOperationsImpl.ts:1002:13
148
- 
149
- 1002 ref: uploadResult.data.blob.ref,
150
-    ~~~
151
-
152
- src/services/hypercerts/types.ts:67:10
153
- 67 ref: { $link: string };
154
-    ~~~~~
155
- '$link' is declared here.
156
- 
157
- created dist/errors.mjs, dist/errors.cjs in 1.9s
158
- 
159
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/lexicons.ts → dist/lexicons.mjs, dist/lexicons.cjs...
160
- (!) [plugin typescript] src/repository/BlobOperationsImpl.ts (125:9): @rollup/plugin-typescript TS2741: Property '$link' is missing in type 'CID<unknown, number, number, Version>' but required in type '{ $link: string; }'.
161
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/repository/BlobOperationsImpl.ts:125:9
162
- 
163
- 125 ref: result.data.blob.ref,
164
-    ~~~
165
-
166
- src/repository/BlobOperationsImpl.ts:111:46
167
- 111 async upload(blob: Blob): Promise<{ ref: { $link: string }; mimeType: string; size: number }> {
168
-    ~~~~~
169
- '$link' is declared here.
170
- src/repository/BlobOperationsImpl.ts:111:39
171
- 111 async upload(blob: Blob): Promise<{ ref: { $link: string }; mimeType: string; size: number }> {
172
-    ~~~
173
- The expected type comes from property 'ref' which is declared here on type '{ ref: { $link: string; }; mimeType: string; size: number; }'
174
- 
175
- (!) [plugin typescript] src/repository/HypercertOperationsImpl.ts (211:15): @rollup/plugin-typescript TS2741: Property '$link' is missing in type 'CID<unknown, number, number, Version>' but required in type '{ $link: string; }'.
176
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/repository/HypercertOperationsImpl.ts:211:15
177
- 
178
- 211 ref: uploadResult.data.blob.ref,
179
-    ~~~
180
-
181
- src/services/hypercerts/types.ts:67:10
182
- 67 ref: { $link: string };
183
-    ~~~~~
184
- '$link' is declared here.
185
- 
186
- (!) [plugin typescript] src/repository/HypercertOperationsImpl.ts (679:13): @rollup/plugin-typescript TS2741: Property '$link' is missing in type 'CID<unknown, number, number, Version>' but required in type '{ $link: string; }'.
187
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/repository/HypercertOperationsImpl.ts:679:13
188
- 
189
- 679 ref: uploadResult.data.blob.ref,
190
-    ~~~
191
-
192
- src/services/hypercerts/types.ts:67:10
193
- 67 ref: { $link: string };
194
-    ~~~~~
195
- '$link' is declared here.
196
- 
197
- (!) [plugin typescript] src/repository/HypercertOperationsImpl.ts (1002:13): @rollup/plugin-typescript TS2741: Property '$link' is missing in type 'CID<unknown, number, number, Version>' but required in type '{ $link: string; }'.
198
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/repository/HypercertOperationsImpl.ts:1002:13
199
- 
200
- 1002 ref: uploadResult.data.blob.ref,
201
-    ~~~
202
-
203
- src/services/hypercerts/types.ts:67:10
204
- 67 ref: { $link: string };
205
-    ~~~~~
206
- '$link' is declared here.
207
- 
208
- created dist/lexicons.mjs, dist/lexicons.cjs in 1.9s
209
- 
210
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/storage.ts → dist/storage.mjs, dist/storage.cjs...
211
- (!) [plugin typescript] src/repository/BlobOperationsImpl.ts (125:9): @rollup/plugin-typescript TS2741: Property '$link' is missing in type 'CID<unknown, number, number, Version>' but required in type '{ $link: string; }'.
212
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/repository/BlobOperationsImpl.ts:125:9
213
- 
214
- 125 ref: result.data.blob.ref,
215
-    ~~~
216
-
217
- src/repository/BlobOperationsImpl.ts:111:46
218
- 111 async upload(blob: Blob): Promise<{ ref: { $link: string }; mimeType: string; size: number }> {
219
-    ~~~~~
220
- '$link' is declared here.
221
- src/repository/BlobOperationsImpl.ts:111:39
222
- 111 async upload(blob: Blob): Promise<{ ref: { $link: string }; mimeType: string; size: number }> {
223
-    ~~~
224
- The expected type comes from property 'ref' which is declared here on type '{ ref: { $link: string; }; mimeType: string; size: number; }'
225
- 
226
- (!) [plugin typescript] src/repository/HypercertOperationsImpl.ts (211:15): @rollup/plugin-typescript TS2741: Property '$link' is missing in type 'CID<unknown, number, number, Version>' but required in type '{ $link: string; }'.
227
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/repository/HypercertOperationsImpl.ts:211:15
228
- 
229
- 211 ref: uploadResult.data.blob.ref,
230
-    ~~~
231
-
232
- src/services/hypercerts/types.ts:67:10
233
- 67 ref: { $link: string };
234
-    ~~~~~
235
- '$link' is declared here.
236
- 
237
- (!) [plugin typescript] src/repository/HypercertOperationsImpl.ts (679:13): @rollup/plugin-typescript TS2741: Property '$link' is missing in type 'CID<unknown, number, number, Version>' but required in type '{ $link: string; }'.
238
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/repository/HypercertOperationsImpl.ts:679:13
239
- 
240
- 679 ref: uploadResult.data.blob.ref,
241
-    ~~~
242
-
243
- src/services/hypercerts/types.ts:67:10
244
- 67 ref: { $link: string };
245
-    ~~~~~
246
- '$link' is declared here.
247
- 
248
- (!) [plugin typescript] src/repository/HypercertOperationsImpl.ts (1002:13): @rollup/plugin-typescript TS2741: Property '$link' is missing in type 'CID<unknown, number, number, Version>' but required in type '{ $link: string; }'.
249
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/repository/HypercertOperationsImpl.ts:1002:13
250
- 
251
- 1002 ref: uploadResult.data.blob.ref,
252
-    ~~~
253
-
254
- src/services/hypercerts/types.ts:67:10
255
- 67 ref: { $link: string };
256
-    ~~~~~
257
- '$link' is declared here.
258
- 
259
- created dist/storage.mjs, dist/storage.cjs in 1.8s
260
- 
261
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/testing.ts → dist/testing.mjs, dist/testing.cjs...
262
- (!) [plugin typescript] src/repository/BlobOperationsImpl.ts (125:9): @rollup/plugin-typescript TS2741: Property '$link' is missing in type 'CID<unknown, number, number, Version>' but required in type '{ $link: string; }'.
263
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/repository/BlobOperationsImpl.ts:125:9
264
- 
265
- 125 ref: result.data.blob.ref,
266
-    ~~~
267
-
268
- src/repository/BlobOperationsImpl.ts:111:46
269
- 111 async upload(blob: Blob): Promise<{ ref: { $link: string }; mimeType: string; size: number }> {
270
-    ~~~~~
271
- '$link' is declared here.
272
- src/repository/BlobOperationsImpl.ts:111:39
273
- 111 async upload(blob: Blob): Promise<{ ref: { $link: string }; mimeType: string; size: number }> {
274
-    ~~~
275
- The expected type comes from property 'ref' which is declared here on type '{ ref: { $link: string; }; mimeType: string; size: number; }'
276
- 
277
- (!) [plugin typescript] src/repository/HypercertOperationsImpl.ts (211:15): @rollup/plugin-typescript TS2741: Property '$link' is missing in type 'CID<unknown, number, number, Version>' but required in type '{ $link: string; }'.
278
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/repository/HypercertOperationsImpl.ts:211:15
279
- 
280
- 211 ref: uploadResult.data.blob.ref,
281
-    ~~~
282
-
283
- src/services/hypercerts/types.ts:67:10
284
- 67 ref: { $link: string };
285
-    ~~~~~
286
- '$link' is declared here.
287
- 
288
- (!) [plugin typescript] src/repository/HypercertOperationsImpl.ts (679:13): @rollup/plugin-typescript TS2741: Property '$link' is missing in type 'CID<unknown, number, number, Version>' but required in type '{ $link: string; }'.
289
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/repository/HypercertOperationsImpl.ts:679:13
290
- 
291
- 679 ref: uploadResult.data.blob.ref,
292
-    ~~~
293
-
294
- src/services/hypercerts/types.ts:67:10
295
- 67 ref: { $link: string };
296
-    ~~~~~
297
- '$link' is declared here.
298
- 
299
- (!) [plugin typescript] src/repository/HypercertOperationsImpl.ts (1002:13): @rollup/plugin-typescript TS2741: Property '$link' is missing in type 'CID<unknown, number, number, Version>' but required in type '{ $link: string; }'.
300
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/repository/HypercertOperationsImpl.ts:1002:13
301
- 
302
- 1002 ref: uploadResult.data.blob.ref,
303
-    ~~~
304
-
305
- src/services/hypercerts/types.ts:67:10
306
- 67 ref: { $link: string };
307
-    ~~~~~
308
- '$link' is declared here.
309
- 
310
- created dist/testing.mjs, dist/testing.cjs in 2.3s
311
- 
312
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/index.ts → dist/index.d.ts...
313
- created dist/index.d.ts in 1.3s
314
- 
315
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/types.ts → dist/types.d.ts...
316
- created dist/types.d.ts in 1.2s
317
- 
318
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/errors.ts → dist/errors.d.ts...
319
- created dist/errors.d.ts in 484ms
320
- 
321
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/lexicons.ts → dist/lexicons.d.ts...
322
- created dist/lexicons.d.ts in 1.1s
323
- 
324
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/storage.ts → dist/storage.d.ts...
325
- created dist/storage.d.ts in 544ms
326
- 
327
- /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/testing.ts → dist/testing.d.ts...
328
- created dist/testing.d.ts in 723ms
@@ -1,118 +0,0 @@
1
-
2
- > @hypercerts-org/sdk-core@0.3.0 test /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core
3
- > vitest
4
-
5
-
6
-  RUN  v3.2.4 /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core
7
-
8
- ✓ tests/repository/CollaboratorOperationsImpl.test.ts (25 tests) 26ms
9
- ✓ tests/repository/RecordOperationsImpl.test.ts (21 tests) 35ms
10
- ✓ tests/repository/HypercertOperationsImpl.test.ts (30 tests) 49ms
11
- ✓ tests/repository/ProfileOperationsImpl.test.ts (14 tests) 24ms
12
- ✓ tests/repository/OrganizationOperationsImpl.test.ts (12 tests) 20ms
13
- ✓ tests/repository/LexiconRegistry.test.ts (16 tests) 18ms
14
- stderr | tests/auth/OAuthClient.test.ts > OAuthClient > constructor > should initialize with valid config
15
- No lock mechanism provided. Credentials might get revoked.
16
-
17
- stderr | tests/auth/OAuthClient.test.ts > OAuthClient > constructor > should use custom fetch handler if provided
18
- No lock mechanism provided. Credentials might get revoked.
19
-
20
- stderr | tests/auth/OAuthClient.test.ts > OAuthClient > constructor > should use custom timeout configuration
21
- No lock mechanism provided. Credentials might get revoked.
22
-
23
- stderr | tests/auth/OAuthClient.test.ts > OAuthClient > authorize > should throw AuthenticationError for invalid identifier
24
- No lock mechanism provided. Credentials might get revoked.
25
-
26
- stderr | tests/auth/OAuthClient.test.ts > OAuthClient > authorize > should use custom scope if provided
27
- No lock mechanism provided. Credentials might get revoked.
28
-
29
- stderr | tests/core/SDK.test.ts > ATProtoSDK > constructor > should create SDK instance with valid config
30
- No lock mechanism provided. Credentials might get revoked.
31
-
32
- stderr | tests/core/SDK.test.ts > ATProtoSDK > constructor > should accept optional cache
33
- No lock mechanism provided. Credentials might get revoked.
34
-
35
- stderr | tests/core/SDK.test.ts > ATProtoSDK > constructor > should accept optional logger
36
- No lock mechanism provided. Credentials might get revoked.
37
-
38
- stderr | tests/core/SDK.test.ts > ATProtoSDK > constructor > should work without storage (uses in-memory defaults)
39
- No lock mechanism provided. Credentials might get revoked.
40
-
41
- stderr | tests/core/SDK.test.ts > ATProtoSDK > createATProtoSDK factory > should create SDK instance
42
- No lock mechanism provided. Credentials might get revoked.
43
-
44
- stderr | tests/core/SDK.test.ts > ATProtoSDK > createATProtoSDK factory > should be equivalent to constructor
45
- No lock mechanism provided. Credentials might get revoked.
46
- No lock mechanism provided. Credentials might get revoked.
47
-
48
- stderr | tests/core/SDK.test.ts > ATProtoSDK > authorize > should throw ValidationError for empty identifier
49
- No lock mechanism provided. Credentials might get revoked.
50
-
51
- stderr | tests/core/SDK.test.ts > ATProtoSDK > authorize > should trim identifier
52
- No lock mechanism provided. Credentials might get revoked.
53
-
54
- stderr | tests/auth/OAuthClient.test.ts > OAuthClient > callback > should throw AuthenticationError for OAuth error params
55
- No lock mechanism provided. Credentials might get revoked.
56
-
57
- stderr | tests/auth/OAuthClient.test.ts > OAuthClient > callback > should throw AuthenticationError for missing code
58
- No lock mechanism provided. Credentials might get revoked.
59
-
60
- stderr | tests/auth/OAuthClient.test.ts > OAuthClient > restore > should return null for non-existent session
61
- No lock mechanism provided. Credentials might get revoked.
62
-
63
- stderr | tests/auth/OAuthClient.test.ts > OAuthClient > restore > should throw AuthenticationError for invalid DID
64
- No lock mechanism provided. Credentials might get revoked.
65
-
66
- stderr | tests/auth/OAuthClient.test.ts > OAuthClient > revoke > should not throw for non-existent session
67
- No lock mechanism provided. Credentials might get revoked.
68
-
69
- stderr | tests/auth/OAuthClient.test.ts > OAuthClient > storage integration > should use provided session store
70
- No lock mechanism provided. Credentials might get revoked.
71
-
72
- stderr | tests/auth/OAuthClient.test.ts > OAuthClient > storage integration > should use provided state store
73
- No lock mechanism provided. Credentials might get revoked.
74
-
75
- stderr | tests/auth/OAuthClient.test.ts > OAuthClient > logger integration > should use provided logger
76
- No lock mechanism provided. Credentials might get revoked.
77
-
78
- ✓ tests/auth/OAuthClient.test.ts (14 tests) 307ms
79
- stderr | tests/core/SDK.test.ts > ATProtoSDK > restoreSession > should throw ValidationError for empty DID
80
- No lock mechanism provided. Credentials might get revoked.
81
-
82
- stderr | tests/core/SDK.test.ts > ATProtoSDK > restoreSession > should handle non-existent session
83
- No lock mechanism provided. Credentials might get revoked.
84
-
85
- stderr | tests/core/SDK.test.ts > ATProtoSDK > revokeSession > should throw ValidationError for empty DID
86
- No lock mechanism provided. Credentials might get revoked.
87
-
88
- stderr | tests/core/SDK.test.ts > ATProtoSDK > repository > should throw ValidationError when session is null
89
- No lock mechanism provided. Credentials might get revoked.
90
-
91
- stderr | tests/core/SDK.test.ts > ATProtoSDK > repository > should throw ValidationError when PDS not configured and no server specified
92
- No lock mechanism provided. Credentials might get revoked.
93
-
94
- stderr | tests/core/SDK.test.ts > ATProtoSDK > repository > should throw ValidationError when SDS not configured and server=sds
95
- No lock mechanism provided. Credentials might get revoked.
96
-
97
- stderr | tests/core/SDK.test.ts > ATProtoSDK > repository > should create repository with custom serverUrl
98
- No lock mechanism provided. Credentials might get revoked.
99
-
100
- stderr | tests/core/SDK.test.ts > ATProtoSDK > setup examples > should work with minimal config (no storage provided)
101
- No lock mechanism provided. Credentials might get revoked.
102
-
103
- stderr | tests/core/SDK.test.ts > ATProtoSDK > setup examples > should work with all optional fields
104
- No lock mechanism provided. Credentials might get revoked.
105
-
106
- stderr | tests/core/SDK.test.ts > ATProtoSDK > setup examples > should work with custom storage implementations
107
- No lock mechanism provided. Credentials might get revoked.
108
-
109
- ✓ tests/core/SDK.test.ts (19 tests) 194ms
110
- ✓ tests/repository/Repository.test.ts (12 tests) 85ms
111
- ✓ tests/repository/BlobOperationsImpl.test.ts (9 tests) 14ms
112
- ✓ tests/core/errors.test.ts (9 tests) 5ms
113
-
114
-  Test Files  11 passed (11)
115
-  Tests  181 passed (181)
116
-  Start at  22:12:42
117
-  Duration  2.16s (transform 475ms, setup 0ms, collect 2.58s, tests 777ms, environment 3ms, prepare 1.11s)
118
-
package/CHANGELOG.md DELETED
@@ -1,22 +0,0 @@
1
- # @hypercerts-org/sdk-core
2
-
3
- ## 0.4.0-beta.0
4
-
5
- ### Minor Changes
6
-
7
- - [#46](https://github.com/hypercerts-org/hypercerts-sdk/pull/46)
8
- [`eda4ac2`](https://github.com/hypercerts-org/hypercerts-sdk/commit/eda4ac233e09764d83f042ba7df94d4c9884cc01) Thanks
9
- [@bitbeckers](https://github.com/bitbeckers)! - Initial release of sdk-core package with ATProto SDK for
10
- authentication, repository operations, and lexicon management
11
-
12
- ### Patch Changes
13
-
14
- - [#55](https://github.com/hypercerts-org/hypercerts-sdk/pull/55)
15
- [`23c3d9a`](https://github.com/hypercerts-org/hypercerts-sdk/commit/23c3d9a3b71f326df68b65420c83f7ae42c2432d) Thanks
16
- [@bitbeckers](https://github.com/bitbeckers)! - Fix endpoints and NSIDs for SDS operations in CollaboratorOperations
17
- and OrganizationOperations
18
-
19
- - Updated dependencies
20
- [[`23c3d9a`](https://github.com/hypercerts-org/hypercerts-sdk/commit/23c3d9a3b71f326df68b65420c83f7ae42c2432d),
21
- [`eda4ac2`](https://github.com/hypercerts-org/hypercerts-sdk/commit/eda4ac233e09764d83f042ba7df94d4c9884cc01)]:
22
- - @hypercerts-org/lexicon@0.4.0-beta.0
package/eslint.config.mjs DELETED
@@ -1,22 +0,0 @@
1
- import baseConfig from "../../eslint.config.mjs";
2
- import path from "path";
3
- import { fileURLToPath } from "url";
4
-
5
- const __dirname = path.dirname(fileURLToPath(import.meta.url));
6
-
7
- /**
8
- * SDK Core ESLint configuration.
9
- * Extends the shared base config with package-specific settings.
10
- */
11
- export default [
12
- ...baseConfig,
13
- {
14
- files: ["**/*.ts", "**/*.tsx"],
15
- languageOptions: {
16
- parserOptions: {
17
- project: path.resolve(__dirname, "./tsconfig.json"),
18
- tsconfigRootDir: __dirname,
19
- },
20
- },
21
- },
22
- ];
package/rollup.config.js DELETED
@@ -1,75 +0,0 @@
1
- import { fileURLToPath } from "node:url";
2
- import { dirname, resolve } from "node:path";
3
- import typescript from "@rollup/plugin-typescript";
4
- import nodeResolve from "@rollup/plugin-node-resolve";
5
- import commonjs from "@rollup/plugin-commonjs";
6
- import json from "@rollup/plugin-json";
7
- import dts from "rollup-plugin-dts";
8
-
9
- const __dirname = dirname(fileURLToPath(import.meta.url));
10
-
11
- // Entrypoints for the package
12
- const entrypoints = [
13
- { name: "index", input: "src/index.ts" },
14
- { name: "types", input: "src/types.ts" },
15
- { name: "errors", input: "src/errors.ts" },
16
- { name: "lexicons", input: "src/lexicons.ts" },
17
- { name: "storage", input: "src/storage.ts" },
18
- { name: "testing", input: "src/testing.ts" },
19
- ];
20
-
21
- // Common plugins for JS builds
22
- const getPlugins = () => [
23
- json(),
24
- typescript({
25
- tsconfig: resolve(__dirname, "tsconfig.json"),
26
- declaration: false,
27
- declarationMap: false,
28
- rootDir: resolve(__dirname, "src"),
29
- outDir: resolve(__dirname, "dist"),
30
- }),
31
- nodeResolve({
32
- preferBuiltins: true,
33
- }),
34
- commonjs(),
35
- ];
36
-
37
- // External dependencies check
38
- const external = (id) => !id.startsWith(".") && !id.startsWith("/");
39
-
40
- // Generate JS builds (ESM and CJS) for each entrypoint
41
- const jsBuild = entrypoints.map(({ name, input }) => ({
42
- input: resolve(__dirname, input),
43
- output: [
44
- {
45
- file: resolve(__dirname, `dist/${name}.mjs`),
46
- format: "es",
47
- sourcemap: true,
48
- },
49
- {
50
- file: resolve(__dirname, `dist/${name}.cjs`),
51
- format: "cjs",
52
- sourcemap: true,
53
- exports: "named",
54
- },
55
- ],
56
- plugins: getPlugins(),
57
- external,
58
- }));
59
-
60
- // Generate type declaration builds for each entrypoint
61
- const dtsBuild = entrypoints.map(({ name, input }) => ({
62
- input: resolve(__dirname, input),
63
- output: {
64
- file: resolve(__dirname, `dist/${name}.d.ts`),
65
- format: "es",
66
- },
67
- plugins: [
68
- dts({
69
- tsconfig: resolve(__dirname, "tsconfig.json"),
70
- }),
71
- ],
72
- external,
73
- }));
74
-
75
- export default [...jsBuild, ...dtsBuild];