@hypercerts-org/sdk-core 0.2.0-beta.0 → 0.5.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.
@@ -1,328 +1,40 @@
1
1
 
2
- > @hypercerts-org/sdk-core@0.1.0 build /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core
2
+ > @hypercerts-org/sdk-core@0.4.0 build /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core
3
3
  > rollup -c
4
4
 
5
5
  
6
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
7
+ created dist/index.mjs, dist/index.cjs in 2.8s
56
8
  
57
9
  /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
10
+ created dist/types.mjs, dist/types.cjs in 2.2s
107
11
  
108
12
  /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 2.1s
13
+ created dist/errors.mjs, dist/errors.cjs in 2.2s
158
14
  
159
15
  /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.8s
16
+ created dist/lexicons.mjs, dist/lexicons.cjs in 1.7s
209
17
  
210
18
  /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.7s
19
+ created dist/storage.mjs, dist/storage.cjs in 1.5s
260
20
  
261
21
  /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 1.8s
22
+ created dist/testing.mjs, dist/testing.cjs in 1.5s
311
23
  
312
24
  /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.5s
25
+ created dist/index.d.ts in 1.2s
314
26
  
315
27
  /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
28
+ created dist/types.d.ts in 1.1s
317
29
  
318
30
  /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/errors.ts → dist/errors.d.ts...
319
- created dist/errors.d.ts in 486ms
31
+ created dist/errors.d.ts in 465ms
320
32
  
321
33
  /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/lexicons.ts → dist/lexicons.d.ts...
322
- created dist/lexicons.d.ts in 1s
34
+ created dist/lexicons.d.ts in 913ms
323
35
  
324
36
  /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/storage.ts → dist/storage.d.ts...
325
- created dist/storage.d.ts in 553ms
37
+ created dist/storage.d.ts in 837ms
326
38
  
327
39
  /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core/src/testing.ts → dist/testing.d.ts...
328
- created dist/testing.d.ts in 1s
40
+ created dist/testing.d.ts in 700ms
@@ -1,16 +1,16 @@
1
1
 
2
- > @hypercerts-org/sdk-core@0.1.0 test /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core
2
+ > @hypercerts-org/sdk-core@0.4.0 test /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core
3
3
  > vitest
4
4
 
5
5
 
6
6
   RUN  v3.2.4 /home/runner/work/hypercerts-sdk/hypercerts-sdk/packages/sdk-core
7
7
 
8
- ✓ tests/repository/CollaboratorOperationsImpl.test.ts (18 tests) 28ms
9
- ✓ tests/repository/RecordOperationsImpl.test.ts (21 tests) 33ms
10
- ✓ tests/repository/HypercertOperationsImpl.test.ts (30 tests) 43ms
11
- ✓ tests/repository/ProfileOperationsImpl.test.ts (14 tests) 26ms
12
- ✓ tests/repository/OrganizationOperationsImpl.test.ts (12 tests) 19ms
13
- ✓ tests/repository/LexiconRegistry.test.ts (16 tests) 18ms
8
+ ✓ tests/repository/CollaboratorOperationsImpl.test.ts (25 tests) 25ms
9
+ ✓ tests/repository/RecordOperationsImpl.test.ts (21 tests) 34ms
10
+ ✓ tests/repository/HypercertOperationsImpl.test.ts (30 tests) 38ms
11
+ ✓ tests/repository/ProfileOperationsImpl.test.ts (14 tests) 20ms
12
+ ✓ tests/repository/OrganizationOperationsImpl.test.ts (12 tests) 17ms
13
+ ✓ tests/repository/LexiconRegistry.test.ts (16 tests) 16ms
14
14
  stderr | tests/auth/OAuthClient.test.ts > OAuthClient > constructor > should initialize with valid config
15
15
  No lock mechanism provided. Credentials might get revoked.
16
16
 
@@ -51,50 +51,52 @@ No lock mechanism provided. Credentials might get revoked.
51
51
  stderr | tests/core/SDK.test.ts > ATProtoSDK > authorize > should trim identifier
52
52
  No lock mechanism provided. Credentials might get revoked.
53
53
 
54
- ✓ tests/repository/Repository.test.ts (12 tests) 49ms
55
- stderr | tests/core/SDK.test.ts > ATProtoSDK > restoreSession > should throw ValidationError for empty DID
54
+ stderr | tests/auth/OAuthClient.test.ts > OAuthClient > callback > should throw AuthenticationError for OAuth error params
56
55
  No lock mechanism provided. Credentials might get revoked.
57
56
 
58
- stderr | tests/core/SDK.test.ts > ATProtoSDK > restoreSession > should handle non-existent session
57
+ stderr | tests/auth/OAuthClient.test.ts > OAuthClient > callback > should throw AuthenticationError for missing code
59
58
  No lock mechanism provided. Credentials might get revoked.
60
59
 
61
- stderr | tests/auth/OAuthClient.test.ts > OAuthClient > callback > should throw AuthenticationError for OAuth error params
60
+ stderr | tests/auth/OAuthClient.test.ts > OAuthClient > restore > should return null for non-existent session
62
61
  No lock mechanism provided. Credentials might get revoked.
63
62
 
64
- stderr | tests/auth/OAuthClient.test.ts > OAuthClient > callback > should throw AuthenticationError for missing code
63
+ stderr | tests/auth/OAuthClient.test.ts > OAuthClient > restore > should throw AuthenticationError for invalid DID
65
64
  No lock mechanism provided. Credentials might get revoked.
66
65
 
67
- stderr | tests/core/SDK.test.ts > ATProtoSDK > revokeSession > should throw ValidationError for empty DID
66
+ stderr | tests/auth/OAuthClient.test.ts > OAuthClient > revoke > should not throw for non-existent session
68
67
  No lock mechanism provided. Credentials might get revoked.
69
68
 
70
- stderr | tests/auth/OAuthClient.test.ts > OAuthClient > restore > should return null for non-existent session
69
+ stderr | tests/auth/OAuthClient.test.ts > OAuthClient > storage integration > should use provided session store
71
70
  No lock mechanism provided. Credentials might get revoked.
72
71
 
73
- stderr | tests/core/SDK.test.ts > ATProtoSDK > repository > should throw ValidationError when session is null
72
+ stderr | tests/auth/OAuthClient.test.ts > OAuthClient > storage integration > should use provided state store
74
73
  No lock mechanism provided. Credentials might get revoked.
75
74
 
76
- stderr | tests/auth/OAuthClient.test.ts > OAuthClient > restore > should throw AuthenticationError for invalid DID
75
+ stderr | tests/auth/OAuthClient.test.ts > OAuthClient > logger integration > should use provided logger
77
76
  No lock mechanism provided. Credentials might get revoked.
78
77
 
79
- stderr | tests/core/SDK.test.ts > ATProtoSDK > repository > should throw ValidationError when PDS not configured and no server specified
78
+ ✓ tests/auth/OAuthClient.test.ts (14 tests) 301ms
79
+ ✓ tests/repository/Repository.test.ts (12 tests) 60ms
80
+ ✓ tests/repository/BlobOperationsImpl.test.ts (9 tests) 14ms
81
+ ✓ tests/core/errors.test.ts (9 tests) 5ms
82
+ stderr | tests/core/SDK.test.ts > ATProtoSDK > restoreSession > should throw ValidationError for empty DID
80
83
  No lock mechanism provided. Credentials might get revoked.
81
84
 
82
- stderr | tests/auth/OAuthClient.test.ts > OAuthClient > revoke > should not throw for non-existent session
85
+ stderr | tests/core/SDK.test.ts > ATProtoSDK > restoreSession > should handle non-existent session
83
86
  No lock mechanism provided. Credentials might get revoked.
84
87
 
85
- stderr | tests/core/SDK.test.ts > ATProtoSDK > repository > should throw ValidationError when SDS not configured and server=sds
88
+ stderr | tests/core/SDK.test.ts > ATProtoSDK > revokeSession > should throw ValidationError for empty DID
86
89
  No lock mechanism provided. Credentials might get revoked.
87
90
 
88
- stderr | tests/auth/OAuthClient.test.ts > OAuthClient > storage integration > should use provided session store
91
+ stderr | tests/core/SDK.test.ts > ATProtoSDK > repository > should throw ValidationError when session is null
89
92
  No lock mechanism provided. Credentials might get revoked.
90
93
 
91
- stderr | tests/auth/OAuthClient.test.ts > OAuthClient > storage integration > should use provided state store
94
+ stderr | tests/core/SDK.test.ts > ATProtoSDK > repository > should throw ValidationError when PDS not configured and no server specified
92
95
  No lock mechanism provided. Credentials might get revoked.
93
96
 
94
- stderr | tests/auth/OAuthClient.test.ts > OAuthClient > logger integration > should use provided logger
97
+ stderr | tests/core/SDK.test.ts > ATProtoSDK > repository > should throw ValidationError when SDS not configured and server=sds
95
98
  No lock mechanism provided. Credentials might get revoked.
96
99
 
97
- ✓ tests/auth/OAuthClient.test.ts (14 tests) 356ms
98
100
  stderr | tests/core/SDK.test.ts > ATProtoSDK > repository > should create repository with custom serverUrl
99
101
  No lock mechanism provided. Credentials might get revoked.
100
102
 
@@ -107,12 +109,11 @@ No lock mechanism provided. Credentials might get revoked.
107
109
  stderr | tests/core/SDK.test.ts > ATProtoSDK > setup examples > should work with custom storage implementations
108
110
  No lock mechanism provided. Credentials might get revoked.
109
111
 
110
- ✓ tests/core/SDK.test.ts (19 tests) 234ms
111
- ✓ tests/repository/BlobOperationsImpl.test.ts (9 tests) 12ms
112
- ✓ tests/core/errors.test.ts (9 tests) 5ms
112
+ ✓ tests/core/SDK.test.ts (19 tests) 442ms
113
+ ✓ ATProtoSDK > authorize > should trim identifier  360ms
113
114
 
114
115
   Test Files  11 passed (11)
115
-  Tests  174 passed (174)
116
-  Start at  19:15:42
117
-  Duration  2.20s (transform 569ms, setup 0ms, collect 2.69s, tests 824ms, environment 2ms, prepare 1.08s)
116
+  Tests  181 passed (181)
117
+  Start at  08:04:07
118
+  Duration  2.02s (transform 506ms, setup 0ms, collect 2.39s, tests 972ms, environment 2ms, prepare 983ms)
118
119
 
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @hypercerts-org/sdk-core
2
2
 
3
- ## 0.2.0-beta.0
3
+ ## 0.5.0-beta.0
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -9,8 +9,54 @@
9
9
  [@bitbeckers](https://github.com/bitbeckers)! - Initial release of sdk-core package with ATProto SDK for
10
10
  authentication, repository operations, and lexicon management
11
11
 
12
+ - [#56](https://github.com/hypercerts-org/hypercerts-sdk/pull/56)
13
+ [`caceacb`](https://github.com/hypercerts-org/hypercerts-sdk/commit/caceacbc5572a590c750a95ccfda23fff2dd0c61) Thanks
14
+ [@bitbeckers](https://github.com/bitbeckers)! - Add pagination support and fix React hooks for SDS operations
15
+
16
+ **Breaking Changes (sdk-core):**
17
+ - `CollaboratorOperations.list()` now returns `{ collaborators: RepositoryAccessGrant[], cursor?: string }` instead of
18
+ `RepositoryAccessGrant[]`
19
+ - `OrganizationOperations.list()` now returns `{ organizations: OrganizationInfo[], cursor?: string }` instead of
20
+ `OrganizationInfo[]`
21
+
22
+ **Features:**
23
+ - Add cursor-based pagination support to collaborator and organization list operations
24
+ - Support optional `limit` and `cursor` parameters for paginated queries
25
+ - Update internal methods (`hasAccess`, `getRole`, `get`) to handle new pagination structure
26
+
27
+ **Bug Fixes (sdk-react):**
28
+ - Fix `useCollaborators` hook to correctly destructure paginated response
29
+ - Fix `useOrganizations` hook to correctly destructure paginated response
30
+ - All React hooks now properly handle the new pagination structure
31
+
32
+ **Documentation:**
33
+ - Comprehensive README updates with clear examples for all SDK operations
34
+ - Added pagination examples throughout documentation
35
+ - Improved code samples with realistic use cases
36
+
37
+ **Tests:**
38
+ - All 317 tests passing (181 sdk-core + 136 sdk-react)
39
+ - Updated test mocks to match new pagination response structure
40
+ - Build completes with zero warnings
41
+
12
42
  ### Patch Changes
13
43
 
44
+ - [#56](https://github.com/hypercerts-org/hypercerts-sdk/pull/56)
45
+ [`cb3268d`](https://github.com/hypercerts-org/hypercerts-sdk/commit/cb3268d78614efaf15aecc57a5dc3bce8313f3ca) Thanks
46
+ [@bitbeckers](https://github.com/bitbeckers)! - Fix SDS organization and collaborator operations to match API
47
+ contracts
48
+ - Add required creatorDid parameter to organization.create endpoint
49
+ - Fix organization.list to parse organizations field instead of repositories
50
+ - Update accessType values to match SDS API: owner|shared|none (was owner|collaborator)
51
+ - Add permission string array parser for collaborator.list endpoint
52
+ - Update type definitions to match actual SDS API response formats
53
+
54
+ - [#55](https://github.com/hypercerts-org/hypercerts-sdk/pull/55)
55
+ [`23c3d9a`](https://github.com/hypercerts-org/hypercerts-sdk/commit/23c3d9a3b71f326df68b65420c83f7ae42c2432d) Thanks
56
+ [@bitbeckers](https://github.com/bitbeckers)! - Fix endpoints and NSIDs for SDS operations in CollaboratorOperations
57
+ and OrganizationOperations
58
+
14
59
  - Updated dependencies
15
- [[`eda4ac2`](https://github.com/hypercerts-org/hypercerts-sdk/commit/eda4ac233e09764d83f042ba7df94d4c9884cc01)]:
16
- - @hypercerts-org/lexicon@0.2.0-beta.0
60
+ [[`23c3d9a`](https://github.com/hypercerts-org/hypercerts-sdk/commit/23c3d9a3b71f326df68b65420c83f7ae42c2432d),
61
+ [`eda4ac2`](https://github.com/hypercerts-org/hypercerts-sdk/commit/eda4ac233e09764d83f042ba7df94d4c9884cc01)]:
62
+ - @hypercerts-org/lexicon@0.5.0-beta.0