@relyio/sdk 0.2.0 → 0.3.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 (36) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/README.md +5 -310
  3. package/dist/.tsbuildinfo +1 -1
  4. package/dist/{chunk-7W4MJXQ4.cjs → chunk-54WP2PWG.cjs} +215 -96
  5. package/dist/chunk-BBUB7C2Z.js +81 -0
  6. package/dist/{chunk-FJK7ZWKK.cjs → chunk-HMVGXUGR.cjs} +156 -221
  7. package/dist/chunk-LSRPMNPT.cjs +89 -0
  8. package/dist/{chunk-2QUK2ZGD.js → chunk-LYRYCIX5.js} +157 -219
  9. package/dist/{chunk-RJBIJ2ZK.js → chunk-QIZOBT5F.js} +215 -96
  10. package/dist/client/index.cjs +4 -3
  11. package/dist/client/index.d.cts +4 -3
  12. package/dist/client/index.d.ts +4 -3
  13. package/dist/client/index.js +2 -1
  14. package/dist/define-content-type-CBfnTWSS.d.cts +716 -0
  15. package/dist/define-content-type-CBfnTWSS.d.ts +716 -0
  16. package/dist/{define-schema-DHvUCKwj.d.cts → define-schema-BD6HSPnG.d.ts} +55 -722
  17. package/dist/{define-schema-DHvUCKwj.d.ts → define-schema-BfXeR6K8.d.cts} +55 -722
  18. package/dist/dev-handshake/index.cjs +37 -0
  19. package/dist/dev-handshake/index.d.cts +144 -0
  20. package/dist/dev-handshake/index.d.ts +144 -0
  21. package/dist/dev-handshake/index.js +4 -0
  22. package/dist/{index-DGWaawHt.d.cts → index-BDpar3FO.d.cts} +22 -6
  23. package/dist/{index-BsUqCAu8.d.cts → index-DuEhsGdE.d.ts} +516 -2155
  24. package/dist/{index-B-KiFHbx.d.ts → index-Dx01iwaf.d.ts} +22 -6
  25. package/dist/{index-BsUqCAu8.d.ts → index-ulOrcfPa.d.cts} +516 -2155
  26. package/dist/index.cjs +67 -70
  27. package/dist/index.d.cts +28 -13
  28. package/dist/index.d.ts +28 -13
  29. package/dist/index.js +3 -2
  30. package/dist/schema/index.cjs +35 -47
  31. package/dist/schema/index.d.cts +3 -2
  32. package/dist/schema/index.d.ts +3 -2
  33. package/dist/schema/index.js +1 -1
  34. package/dist/types/index.d.cts +2 -1
  35. package/dist/types/index.d.ts +2 -1
  36. package/package.json +15 -17
package/dist/index.cjs CHANGED
@@ -2,8 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkFJK7ZWKK_cjs = require('./chunk-FJK7ZWKK.cjs');
6
- var chunk7W4MJXQ4_cjs = require('./chunk-7W4MJXQ4.cjs');
5
+ var chunkHMVGXUGR_cjs = require('./chunk-HMVGXUGR.cjs');
6
+ var chunk54WP2PWG_cjs = require('./chunk-54WP2PWG.cjs');
7
+ require('./chunk-LSRPMNPT.cjs');
7
8
  require('./chunk-PPA2WWOH.cjs');
8
9
  var chunkHT6NFRM2_cjs = require('./chunk-HT6NFRM2.cjs');
9
10
  var chunkMWMSFIWN_cjs = require('./chunk-MWMSFIWN.cjs');
@@ -149,263 +150,259 @@ var VERSION = "__VERSION__";
149
150
 
150
151
  Object.defineProperty(exports, "defineAssetType", {
151
152
  enumerable: true,
152
- get: function () { return chunkFJK7ZWKK_cjs.defineAssetType; }
153
+ get: function () { return chunkHMVGXUGR_cjs.defineAssetType; }
153
154
  });
154
155
  Object.defineProperty(exports, "defineComponent", {
155
156
  enumerable: true,
156
- get: function () { return chunkFJK7ZWKK_cjs.defineComponent; }
157
+ get: function () { return chunkHMVGXUGR_cjs.defineComponent; }
157
158
  });
158
159
  Object.defineProperty(exports, "defineContentType", {
159
160
  enumerable: true,
160
- get: function () { return chunkFJK7ZWKK_cjs.defineContentType; }
161
+ get: function () { return chunkHMVGXUGR_cjs.defineContentType; }
161
162
  });
162
163
  Object.defineProperty(exports, "defineQuery", {
163
164
  enumerable: true,
164
- get: function () { return chunkFJK7ZWKK_cjs.defineQuery; }
165
+ get: function () { return chunkHMVGXUGR_cjs.defineQuery; }
165
166
  });
166
167
  Object.defineProperty(exports, "defineSchema", {
167
168
  enumerable: true,
168
- get: function () { return chunkFJK7ZWKK_cjs.defineSchema; }
169
+ get: function () { return chunkHMVGXUGR_cjs.defineSchema; }
169
170
  });
170
171
  Object.defineProperty(exports, "defineSettingsGroup", {
171
172
  enumerable: true,
172
- get: function () { return chunkFJK7ZWKK_cjs.defineSettingsGroup; }
173
+ get: function () { return chunkHMVGXUGR_cjs.defineSettingsGroup; }
173
174
  });
174
175
  Object.defineProperty(exports, "defineSingleton", {
175
176
  enumerable: true,
176
- get: function () { return chunkFJK7ZWKK_cjs.defineSingleton; }
177
+ get: function () { return chunkHMVGXUGR_cjs.defineSingleton; }
177
178
  });
178
179
  Object.defineProperty(exports, "defineSingletonContentType", {
179
180
  enumerable: true,
180
- get: function () { return chunkFJK7ZWKK_cjs.defineSingletonContentType; }
181
+ get: function () { return chunkHMVGXUGR_cjs.defineSingletonContentType; }
181
182
  });
182
183
  Object.defineProperty(exports, "fields", {
183
184
  enumerable: true,
184
- get: function () { return chunkFJK7ZWKK_cjs.fields; }
185
+ get: function () { return chunkHMVGXUGR_cjs.fields; }
185
186
  });
186
187
  Object.defineProperty(exports, "fieldset", {
187
188
  enumerable: true,
188
- get: function () { return chunkFJK7ZWKK_cjs.fieldset; }
189
- });
190
- Object.defineProperty(exports, "schemaToJSON", {
191
- enumerable: true,
192
- get: function () { return chunkFJK7ZWKK_cjs.schemaToJSON; }
189
+ get: function () { return chunkHMVGXUGR_cjs.fieldset; }
193
190
  });
194
191
  Object.defineProperty(exports, "AdhocQueryBuilder", {
195
192
  enumerable: true,
196
- get: function () { return chunk7W4MJXQ4_cjs.AdhocQueryBuilder; }
193
+ get: function () { return chunk54WP2PWG_cjs.AdhocQueryBuilder; }
197
194
  });
198
195
  Object.defineProperty(exports, "AdhocQueryClient", {
199
196
  enumerable: true,
200
- get: function () { return chunk7W4MJXQ4_cjs.AdhocQueryClient; }
197
+ get: function () { return chunk54WP2PWG_cjs.AdhocQueryClient; }
201
198
  });
202
199
  Object.defineProperty(exports, "AssetClient", {
203
200
  enumerable: true,
204
- get: function () { return chunk7W4MJXQ4_cjs.AssetClient; }
201
+ get: function () { return chunk54WP2PWG_cjs.AssetClient; }
205
202
  });
206
203
  Object.defineProperty(exports, "AssetFileBuilder", {
207
204
  enumerable: true,
208
- get: function () { return chunk7W4MJXQ4_cjs.AssetFileBuilder; }
205
+ get: function () { return chunk54WP2PWG_cjs.AssetFileBuilder; }
209
206
  });
210
207
  Object.defineProperty(exports, "AssetUploadBuilder", {
211
208
  enumerable: true,
212
- get: function () { return chunk7W4MJXQ4_cjs.AssetUploadBuilder; }
209
+ get: function () { return chunk54WP2PWG_cjs.AssetUploadBuilder; }
213
210
  });
214
211
  Object.defineProperty(exports, "AuthenticationError", {
215
212
  enumerable: true,
216
- get: function () { return chunk7W4MJXQ4_cjs.AuthenticationError; }
213
+ get: function () { return chunk54WP2PWG_cjs.AuthenticationError; }
217
214
  });
218
215
  Object.defineProperty(exports, "AuthorizationError", {
219
216
  enumerable: true,
220
- get: function () { return chunk7W4MJXQ4_cjs.AuthorizationError; }
217
+ get: function () { return chunk54WP2PWG_cjs.AuthorizationError; }
221
218
  });
222
219
  Object.defineProperty(exports, "AutocompleteBuilder", {
223
220
  enumerable: true,
224
- get: function () { return chunk7W4MJXQ4_cjs.AutocompleteBuilder; }
221
+ get: function () { return chunk54WP2PWG_cjs.AutocompleteBuilder; }
225
222
  });
226
223
  Object.defineProperty(exports, "BaseValidationError", {
227
224
  enumerable: true,
228
- get: function () { return chunk7W4MJXQ4_cjs.BaseValidationError; }
225
+ get: function () { return chunk54WP2PWG_cjs.BaseValidationError; }
229
226
  });
230
227
  Object.defineProperty(exports, "BatchBuilder", {
231
228
  enumerable: true,
232
- get: function () { return chunk7W4MJXQ4_cjs.BatchBuilder; }
229
+ get: function () { return chunk54WP2PWG_cjs.BatchBuilder; }
233
230
  });
234
231
  Object.defineProperty(exports, "BatchClient", {
235
232
  enumerable: true,
236
- get: function () { return chunk7W4MJXQ4_cjs.BatchClient; }
233
+ get: function () { return chunk54WP2PWG_cjs.BatchClient; }
237
234
  });
238
235
  Object.defineProperty(exports, "ConnectionError", {
239
236
  enumerable: true,
240
- get: function () { return chunk7W4MJXQ4_cjs.ConnectionError; }
237
+ get: function () { return chunk54WP2PWG_cjs.ConnectionError; }
241
238
  });
242
239
  Object.defineProperty(exports, "ContentByIdBuilder", {
243
240
  enumerable: true,
244
- get: function () { return chunk7W4MJXQ4_cjs.ContentByIdBuilder; }
241
+ get: function () { return chunk54WP2PWG_cjs.ContentByIdBuilder; }
245
242
  });
246
243
  Object.defineProperty(exports, "ContentClient", {
247
244
  enumerable: true,
248
- get: function () { return chunk7W4MJXQ4_cjs.ContentClient; }
245
+ get: function () { return chunk54WP2PWG_cjs.ContentClient; }
249
246
  });
250
247
  Object.defineProperty(exports, "ContentQueryBuilder", {
251
248
  enumerable: true,
252
- get: function () { return chunk7W4MJXQ4_cjs.ContentQueryBuilder; }
249
+ get: function () { return chunk54WP2PWG_cjs.ContentQueryBuilder; }
253
250
  });
254
251
  Object.defineProperty(exports, "ErrorMapper", {
255
252
  enumerable: true,
256
- get: function () { return chunk7W4MJXQ4_cjs.ErrorMapper; }
253
+ get: function () { return chunk54WP2PWG_cjs.ErrorMapper; }
257
254
  });
258
255
  Object.defineProperty(exports, "FileUploadError", {
259
256
  enumerable: true,
260
- get: function () { return chunk7W4MJXQ4_cjs.FileUploadError; }
257
+ get: function () { return chunk54WP2PWG_cjs.FileUploadError; }
261
258
  });
262
259
  Object.defineProperty(exports, "FileValidationError", {
263
260
  enumerable: true,
264
- get: function () { return chunk7W4MJXQ4_cjs.FileValidationError; }
261
+ get: function () { return chunk54WP2PWG_cjs.FileValidationError; }
265
262
  });
266
263
  Object.defineProperty(exports, "HttpClient", {
267
264
  enumerable: true,
268
- get: function () { return chunk7W4MJXQ4_cjs.HttpClient; }
265
+ get: function () { return chunk54WP2PWG_cjs.HttpClient; }
269
266
  });
270
267
  Object.defineProperty(exports, "InvalidApiKeyError", {
271
268
  enumerable: true,
272
- get: function () { return chunk7W4MJXQ4_cjs.InvalidApiKeyError; }
269
+ get: function () { return chunk54WP2PWG_cjs.InvalidApiKeyError; }
273
270
  });
274
271
  Object.defineProperty(exports, "InvalidFieldTypeError", {
275
272
  enumerable: true,
276
- get: function () { return chunk7W4MJXQ4_cjs.InvalidFieldTypeError; }
273
+ get: function () { return chunk54WP2PWG_cjs.InvalidFieldTypeError; }
277
274
  });
278
275
  Object.defineProperty(exports, "InvalidPayloadError", {
279
276
  enumerable: true,
280
- get: function () { return chunk7W4MJXQ4_cjs.InvalidPayloadError; }
277
+ get: function () { return chunk54WP2PWG_cjs.InvalidPayloadError; }
281
278
  });
282
279
  Object.defineProperty(exports, "MethodNotAllowedError", {
283
280
  enumerable: true,
284
- get: function () { return chunk7W4MJXQ4_cjs.MethodNotAllowedError; }
281
+ get: function () { return chunk54WP2PWG_cjs.MethodNotAllowedError; }
285
282
  });
286
283
  Object.defineProperty(exports, "MissingApiKeyError", {
287
284
  enumerable: true,
288
- get: function () { return chunk7W4MJXQ4_cjs.MissingApiKeyError; }
285
+ get: function () { return chunk54WP2PWG_cjs.MissingApiKeyError; }
289
286
  });
290
287
  Object.defineProperty(exports, "NetworkError", {
291
288
  enumerable: true,
292
- get: function () { return chunk7W4MJXQ4_cjs.NetworkError; }
289
+ get: function () { return chunk54WP2PWG_cjs.NetworkError; }
293
290
  });
294
291
  Object.defineProperty(exports, "PayloadTooLargeError", {
295
292
  enumerable: true,
296
- get: function () { return chunk7W4MJXQ4_cjs.PayloadTooLargeError; }
293
+ get: function () { return chunk54WP2PWG_cjs.PayloadTooLargeError; }
297
294
  });
298
295
  Object.defineProperty(exports, "PlanFeatureUnavailableError", {
299
296
  enumerable: true,
300
- get: function () { return chunk7W4MJXQ4_cjs.PlanFeatureUnavailableError; }
297
+ get: function () { return chunk54WP2PWG_cjs.PlanFeatureUnavailableError; }
301
298
  });
302
299
  Object.defineProperty(exports, "RateLimitError", {
303
300
  enumerable: true,
304
- get: function () { return chunk7W4MJXQ4_cjs.RateLimitError; }
301
+ get: function () { return chunk54WP2PWG_cjs.RateLimitError; }
305
302
  });
306
303
  Object.defineProperty(exports, "ReadOnlyKeyError", {
307
304
  enumerable: true,
308
- get: function () { return chunk7W4MJXQ4_cjs.ReadOnlyKeyError; }
305
+ get: function () { return chunk54WP2PWG_cjs.ReadOnlyKeyError; }
309
306
  });
310
307
  Object.defineProperty(exports, "RequiredFieldError", {
311
308
  enumerable: true,
312
- get: function () { return chunk7W4MJXQ4_cjs.RequiredFieldError; }
309
+ get: function () { return chunk54WP2PWG_cjs.RequiredFieldError; }
313
310
  });
314
311
  Object.defineProperty(exports, "ResourceConflictError", {
315
312
  enumerable: true,
316
- get: function () { return chunk7W4MJXQ4_cjs.ResourceConflictError; }
313
+ get: function () { return chunk54WP2PWG_cjs.ResourceConflictError; }
317
314
  });
318
315
  Object.defineProperty(exports, "ResourceExpiredError", {
319
316
  enumerable: true,
320
- get: function () { return chunk7W4MJXQ4_cjs.ResourceExpiredError; }
317
+ get: function () { return chunk54WP2PWG_cjs.ResourceExpiredError; }
321
318
  });
322
319
  Object.defineProperty(exports, "ResourceNotFoundError", {
323
320
  enumerable: true,
324
- get: function () { return chunk7W4MJXQ4_cjs.ResourceNotFoundError; }
321
+ get: function () { return chunk54WP2PWG_cjs.ResourceNotFoundError; }
325
322
  });
326
323
  Object.defineProperty(exports, "SDKError", {
327
324
  enumerable: true,
328
- get: function () { return chunk7W4MJXQ4_cjs.SDKError; }
325
+ get: function () { return chunk54WP2PWG_cjs.SDKError; }
329
326
  });
330
327
  Object.defineProperty(exports, "SchemaValidationError", {
331
328
  enumerable: true,
332
- get: function () { return chunk7W4MJXQ4_cjs.SchemaValidationError; }
329
+ get: function () { return chunk54WP2PWG_cjs.SchemaValidationError; }
333
330
  });
334
331
  Object.defineProperty(exports, "SearchBuilder", {
335
332
  enumerable: true,
336
- get: function () { return chunk7W4MJXQ4_cjs.SearchBuilder; }
333
+ get: function () { return chunk54WP2PWG_cjs.SearchBuilder; }
337
334
  });
338
335
  Object.defineProperty(exports, "SearchClient", {
339
336
  enumerable: true,
340
- get: function () { return chunk7W4MJXQ4_cjs.SearchClient; }
337
+ get: function () { return chunk54WP2PWG_cjs.SearchClient; }
341
338
  });
342
339
  Object.defineProperty(exports, "ServerError", {
343
340
  enumerable: true,
344
- get: function () { return chunk7W4MJXQ4_cjs.ServerError; }
341
+ get: function () { return chunk54WP2PWG_cjs.ServerError; }
345
342
  });
346
343
  Object.defineProperty(exports, "ServiceIndeterminateError", {
347
344
  enumerable: true,
348
- get: function () { return chunk7W4MJXQ4_cjs.ServiceIndeterminateError; }
345
+ get: function () { return chunk54WP2PWG_cjs.ServiceIndeterminateError; }
349
346
  });
350
347
  Object.defineProperty(exports, "SettingsClient", {
351
348
  enumerable: true,
352
- get: function () { return chunk7W4MJXQ4_cjs.SettingsClient; }
349
+ get: function () { return chunk54WP2PWG_cjs.SettingsClient; }
353
350
  });
354
351
  Object.defineProperty(exports, "SimilarBuilder", {
355
352
  enumerable: true,
356
- get: function () { return chunk7W4MJXQ4_cjs.SimilarBuilder; }
353
+ get: function () { return chunk54WP2PWG_cjs.SimilarBuilder; }
357
354
  });
358
355
  Object.defineProperty(exports, "SingletonClient", {
359
356
  enumerable: true,
360
- get: function () { return chunk7W4MJXQ4_cjs.SingletonClient; }
357
+ get: function () { return chunk54WP2PWG_cjs.SingletonClient; }
361
358
  });
362
359
  Object.defineProperty(exports, "TimeoutError", {
363
360
  enumerable: true,
364
- get: function () { return chunk7W4MJXQ4_cjs.TimeoutError; }
361
+ get: function () { return chunk54WP2PWG_cjs.TimeoutError; }
365
362
  });
366
363
  Object.defineProperty(exports, "TransactionRolledBackError", {
367
364
  enumerable: true,
368
- get: function () { return chunk7W4MJXQ4_cjs.TransactionRolledBackError; }
365
+ get: function () { return chunk54WP2PWG_cjs.TransactionRolledBackError; }
369
366
  });
370
367
  Object.defineProperty(exports, "TypedRelyIOClient", {
371
368
  enumerable: true,
372
- get: function () { return chunk7W4MJXQ4_cjs.TypedRelyIOClient; }
369
+ get: function () { return chunk54WP2PWG_cjs.TypedRelyIOClient; }
373
370
  });
374
371
  Object.defineProperty(exports, "UnknownContractError", {
375
372
  enumerable: true,
376
- get: function () { return chunk7W4MJXQ4_cjs.UnknownContractError; }
373
+ get: function () { return chunk54WP2PWG_cjs.UnknownContractError; }
377
374
  });
378
375
  Object.defineProperty(exports, "UsageQuotaExceededError", {
379
376
  enumerable: true,
380
- get: function () { return chunk7W4MJXQ4_cjs.UsageQuotaExceededError; }
377
+ get: function () { return chunk54WP2PWG_cjs.UsageQuotaExceededError; }
381
378
  });
382
379
  Object.defineProperty(exports, "ValidationError", {
383
380
  enumerable: true,
384
- get: function () { return chunk7W4MJXQ4_cjs.ValidationError; }
381
+ get: function () { return chunk54WP2PWG_cjs.ValidationError; }
385
382
  });
386
383
  Object.defineProperty(exports, "createClient", {
387
384
  enumerable: true,
388
- get: function () { return chunk7W4MJXQ4_cjs.createClient; }
385
+ get: function () { return chunk54WP2PWG_cjs.createClient; }
389
386
  });
390
387
  Object.defineProperty(exports, "default", {
391
388
  enumerable: true,
392
- get: function () { return chunk7W4MJXQ4_cjs.createClient; }
389
+ get: function () { return chunk54WP2PWG_cjs.createClient; }
393
390
  });
394
391
  Object.defineProperty(exports, "entityTagOf", {
395
392
  enumerable: true,
396
- get: function () { return chunk7W4MJXQ4_cjs.entityTagOf; }
393
+ get: function () { return chunk54WP2PWG_cjs.entityTagOf; }
397
394
  });
398
395
  Object.defineProperty(exports, "isAssetEntry", {
399
396
  enumerable: true,
400
- get: function () { return chunk7W4MJXQ4_cjs.isAssetEntry; }
397
+ get: function () { return chunk54WP2PWG_cjs.isAssetEntry; }
401
398
  });
402
399
  Object.defineProperty(exports, "isResourceNotFound", {
403
400
  enumerable: true,
404
- get: function () { return chunk7W4MJXQ4_cjs.isResourceNotFound; }
401
+ get: function () { return chunk54WP2PWG_cjs.isResourceNotFound; }
405
402
  });
406
403
  Object.defineProperty(exports, "validateFile", {
407
404
  enumerable: true,
408
- get: function () { return chunk7W4MJXQ4_cjs.validateFile; }
405
+ get: function () { return chunk54WP2PWG_cjs.validateFile; }
409
406
  });
410
407
  Object.defineProperty(exports, "camelToSnake", {
411
408
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -1,9 +1,10 @@
1
- export { N as AdhocAggregateBlock, M as AdhocFetchBlock, L as AdhocQueryBuilder, K as AdhocQueryClient, W as AdhocQueryDefinition, X as AdhocQueryOptions, Z as AdhocQueryResult, P as AdhocSearchBlock, Q as AdhocSimilarBlock, O as AggregateMetric, _ as AssetClient, a8 as AssetEntryResponse, a5 as AssetFileBlock, $ as AssetFileBuilder, a6 as AssetFileExtracted, a0 as AssetUploadBuilder, a7 as AssetUrls, a2 as AssetVisibility, A as AutocompleteBuilder, t as AutocompleteResponse, s as AutocompleteSuggestion, y as BatchBuilder, B as BatchClient, z as BatchMethod, D as BatchOperation, G as BatchOperationResult, F as BatchOptions, J as BatchResponse, I as BatchSummary, j as ChildrenOptions, C as ClientSchema, b as ConditionalWriteOptions, ac as ConfirmInput, ad as ConfirmResult, i as ContentByIdBuilder, d as ContentClient, h as ContentQueryBuilder, ag as CreateAssetOptions, E as ExtendedQueryResult, a4 as FileBackend, am as FileErrorCode, a3 as FileStatus, an as FileUploadError, ap as FileValidationConstraints, ao as FileValidationError, U as FilterValue, V as FullTextConfig, H as HttpClient, ai as MultipartCreateResult, aj as MultipartPart, ak as MultipartTarget, a9 as PopulatedAssetReference, aa as PresignInput, ab as PresignResult, Y as QueryMetadata, ae as ResolveUrlInput, af as ResolveUrlResult, R as RetryableWriteOptions, n as SearchBuilder, m as SearchClient, x as SearchFields, w as SearchFilter, p as SearchMode, r as SearchResponse, q as SearchResultItem, S as SendOptions, g as SettingsClient, l as SettingsFetchOptions, o as SimilarBuilder, v as SimilarResponse, u as SimilarResult, f as SingletonClient, k as SingletonFetchOptions, a as TypedClientConfig, T as TypedRelyIOClient, al as UploadProgress, ah as WaitUntilReadyOptions, c as createClient, c as default, e as entityTagOf, a1 as isAssetEntry, aq as validateFile } from './index-DGWaawHt.cjs';
1
+ export { N as AdhocAggregateBlock, M as AdhocFetchBlock, L as AdhocQueryBuilder, K as AdhocQueryClient, W as AdhocQueryDefinition, X as AdhocQueryOptions, Z as AdhocQueryResult, P as AdhocSearchBlock, Q as AdhocSimilarBlock, O as AggregateMetric, _ as AssetClient, a8 as AssetEntryResponse, a5 as AssetFileBlock, $ as AssetFileBuilder, a6 as AssetFileExtracted, a0 as AssetUploadBuilder, a7 as AssetUrls, a2 as AssetVisibility, A as AutocompleteBuilder, t as AutocompleteResponse, s as AutocompleteSuggestion, y as BatchBuilder, B as BatchClient, z as BatchMethod, D as BatchOperation, G as BatchOperationResult, F as BatchOptions, J as BatchResponse, I as BatchSummary, j as ChildrenOptions, C as ClientSchema, b as ConditionalWriteOptions, ac as ConfirmInput, ad as ConfirmResult, i as ContentByIdBuilder, d as ContentClient, h as ContentQueryBuilder, ag as CreateAssetOptions, E as ExtendedQueryResult, a4 as FileBackend, am as FileErrorCode, a3 as FileStatus, an as FileUploadError, ap as FileValidationConstraints, ao as FileValidationError, U as FilterValue, V as FullTextConfig, H as HttpClient, ai as MultipartCreateResult, aj as MultipartPart, ak as MultipartTarget, a9 as PopulatedAssetReference, aa as PresignInput, ab as PresignResult, Y as QueryMetadata, ae as ResolveUrlInput, af as ResolveUrlResult, R as RetryableWriteOptions, n as SearchBuilder, m as SearchClient, x as SearchFields, w as SearchFilter, p as SearchMode, r as SearchResponse, q as SearchResultItem, S as SendOptions, g as SettingsClient, l as SettingsFetchOptions, o as SimilarBuilder, v as SimilarResponse, u as SimilarResult, f as SingletonClient, k as SingletonFetchOptions, a as TypedClientConfig, T as TypedRelyIOClient, al as UploadProgress, ah as WaitUntilReadyOptions, c as createClient, c as default, e as entityTagOf, a1 as isAssetEntry, aq as validateFile } from './index-BDpar3FO.cjs';
2
2
  export { fields } from './schema/index.cjs';
3
- import { S as SDKError } from './index-BsUqCAu8.cjs';
4
- export { a as ApiMethod, A as ApiPath, r as ApiResponse, b as ApiSuccessBody, B as BaseContent, v as BaseValidationError, o as CacheConfig, t as CacheStrategy, f as ContentQueryResult, j as ContentTypeSchema, C as CreateInput, i as CustomQuery, D as DebugConfig, E as Environment, k as FieldOptions, F as FieldTypeName, z as InvalidFieldTypeError, I as InvalidPayloadError, L as LogLevel, P as PerformanceMetrics, Q as QueryOptions, p as RealtimeConfig, m as RealtimeEvent, l as RealtimeEventType, R as RelyIOConfig, q as RequestConfig, y as RequiredFieldError, s as RetryConfig, x as SchemaValidationError, h as SettingsGroup, g as SingletonContent, e as SortOptions, n as SubscriptionOptions, U as UpdateInput, w as ValidationError, V as ValidationRule, u as ValidationViolation, c as WhereClause, d as WhereOperator, W as Wire } from './index-BsUqCAu8.cjs';
3
+ import { S as SDKError } from './index-ulOrcfPa.cjs';
4
+ export { a as ApiMethod, A as ApiPath, r as ApiResponse, b as ApiSuccessBody, B as BaseContent, v as BaseValidationError, o as CacheConfig, t as CacheStrategy, f as ContentQueryResult, j as ContentTypeSchema, C as CreateInput, i as CustomQuery, D as DebugConfig, E as Environment, k as FieldOptions, F as FieldTypeName, z as InvalidFieldTypeError, I as InvalidPayloadError, L as LogLevel, P as PerformanceMetrics, Q as QueryOptions, p as RealtimeConfig, m as RealtimeEvent, l as RealtimeEventType, R as RelyIOConfig, q as RequestConfig, y as RequiredFieldError, s as RetryConfig, x as SchemaValidationError, h as SettingsGroup, g as SingletonContent, e as SortOptions, n as SubscriptionOptions, U as UpdateInput, w as ValidationError, V as ValidationRule, u as ValidationViolation, c as WhereClause, d as WhereOperator, W as Wire } from './index-ulOrcfPa.cjs';
5
5
  export { camelToSnake, createDeferred, debounce, deepClone, generateId, isBrowser, isNode, isPlainObject, isValidEmail, isValidUrl, mergeDeep, omit, pick, retry, sleep, snakeToCamel, throttle, toSafeString } from './utils/index.cjs';
6
- export { bv as AggregateBlock, ap as AssetTypeConfig, as as AssetTypeDefinition, n as BaseFieldConfig, ae as ComponentConfig, af as ComponentDefinition, ag as ComponentMetadata, a1 as ContentTypeConfig, a2 as ContentTypeConfigWithFields, a3 as ContentTypeConfigWithFieldsets, a4 as ContentTypeDefinition, a5 as EntryMetadata, bu as FetchBlock, c as FieldDefinition, b as FieldRule, o as FieldType, F as FieldUIConfig, a0 as Fieldset, aw as FileKindConfig, aK as FileScanConfig, aJ as FileUploadConfig, bF as FilterDefinition, aC as ImageExifConfig, au as ImageKindConfig, aB as ImageSourceConfig, aA as ImageUploadConfig, bD as IncludeDefinition, at as InferAssetType, a6 as InferContentType, bL as InferQueryParams, bK as InferQueryResponse, ac as InferSingleton, ab as InferSingletonContentType, L as LocalizationConfig, bs as QueryConfig, bt as QueryDefinition, K as SchemaAssetTypeNames, w as SchemaConfig, y as SchemaContentTypeNames, x as SchemaDefinition, H as SchemaLocaleCodes, G as SchemaQueryNames, J as SchemaSettingsGroupNames, z as SchemaSingletonNames, bw as SearchBlock, bE as SelectMapping, ak as SettingsGroupConfig, al as SettingsGroupDefinition, bx as SimilarBlock, a9 as SingletonContentTypeDefinition, aa as SingletonMetadata, bB as SortCondition, aD as VariantDefinition, aG as VideoCaptionsConfig, aH as VideoDownloadConfig, av as VideoKindConfig, aF as VideoPosterConfig, aE as VideoUploadConfig, aI as VideoWatermarkConfig, by as WhereCondition, ao as defineAssetType, ad as defineComponent, _ as defineContentType, br as defineQuery, u as defineSchema, aj as defineSettingsGroup, a8 as defineSingleton, a7 as defineSingletonContentType, $ as fieldset, v as schemaToJSON } from './define-schema-DHvUCKwj.cjs';
6
+ export { ax as AggregateBlock, G as AssetTypeConfig, K as AssetTypeDefinition, C as ComponentConfig, v as ComponentDefinition, w as ComponentMetadata, aw as FetchBlock, O as FileKindConfig, a3 as FileScanConfig, a2 as FileUploadConfig, aH as FilterDefinition, X as ImageExifConfig, N as ImageKindConfig, W as ImageSourceConfig, U as ImageUploadConfig, aF as IncludeDefinition, M as InferAssetType, aR as InferQueryParams, aQ as InferQueryResponse, t as InferSingleton, I as InferSingletonContentType, au as QueryConfig, av as QueryDefinition, h as SchemaAssetTypeNames, S as SchemaConfig, b as SchemaContentTypeNames, a as SchemaDefinition, f as SchemaLocaleCodes, e as SchemaQueryNames, g as SchemaSettingsGroupNames, c as SchemaSingletonNames, ay as SearchBlock, aG as SelectMapping, A as SettingsGroupConfig, B as SettingsGroupDefinition, az as SimilarBlock, r as SingletonContentTypeDefinition, s as SingletonMetadata, aD as SortCondition, Y as VariantDefinition, $ as VideoCaptionsConfig, a0 as VideoDownloadConfig, V as VideoKindConfig, _ as VideoPosterConfig, Z as VideoUploadConfig, a1 as VideoWatermarkConfig, aA as WhereCondition, F as defineAssetType, u as defineComponent, at as defineQuery, d as defineSchema, z as defineSettingsGroup, q as defineSingleton, p as defineSingletonContentType } from './define-schema-BfXeR6K8.cjs';
7
+ export { n as BaseFieldConfig, x as ContentTypeConfig, y as ContentTypeConfigWithFields, z as ContentTypeConfigWithFieldsets, G as ContentTypeDefinition, H as EntryMetadata, c as FieldDefinition, b as FieldRule, o as FieldType, F as FieldUIConfig, w as Fieldset, J as InferContentType, K as LocalePublicationFields, L as LocalizationConfig, u as defineContentType, v as fieldset } from './define-content-type-CBfnTWSS.cjs';
7
8
 
8
9
  /**
9
10
  * Network-related errors
@@ -152,16 +153,23 @@ declare class UsageQuotaExceededError extends SDKError {
152
153
  /**
153
154
  * `RATE_LIMIT_EXCEEDED` — too many requests in the window.
154
155
  *
155
- * The one refusal the SDK's own retry loop acts on. `resetAt` and `limit` are
156
- * optional because the IP window can fill neither honestly, which is the same
157
- * decision the service made about its `X-RateLimit-*` headers at API0c.
156
+ * `resetAt` and `limit` are optional because the IP window can fill neither
157
+ * honestly, which is the same decision the service made about its
158
+ * `X-RateLimit-*` headers at API0c.
159
+ *
160
+ * `retryAfterMs` is the third and most direct of the three, and it comes from
161
+ * the response **headers** rather than the refusal body — which is why it has
162
+ * to be threaded in rather than read off `details`. The retry policy prefers it
163
+ * over `resetAt` and both over its own backoff.
158
164
  */
159
165
  declare class RateLimitError extends SDKError {
160
166
  readonly code = "RATE_LIMIT_EXCEEDED";
161
167
  readonly retryable = true;
162
168
  readonly limit?: number;
163
169
  readonly resetAt?: string;
164
- constructor(message?: string, limit?: number, resetAt?: string, context?: Record<string, unknown>);
170
+ /** `Retry-After`, in milliseconds, where the response carried a readable one. */
171
+ readonly retryAfterMs?: number;
172
+ constructor(message?: string, limit?: number, resetAt?: string, context?: Record<string, unknown>, retryAfterMs?: number);
165
173
  getUserMessage(): string;
166
174
  }
167
175
  /** `METHOD_NOT_ALLOWED` — the route exists and does not serve this verb. */
@@ -195,12 +203,23 @@ declare class TransactionRolledBackError extends SDKError {
195
203
  * `SERVICE_INDETERMINATE` — a dependency the service needed to decide was
196
204
  * unreachable, so it answered "I could not tell" rather than "no"
197
205
  * (`INV-AC-INDETERMINATE-IS-AN-OUTAGE`). Retryable: it is an outage.
206
+ *
207
+ * **Retryable is not the same as replayable.** "Could not decide" means the
208
+ * write may already have landed, so the retry policy sends this one again only
209
+ * where the request was replay-safe to begin with — an idempotent verb, or a
210
+ * request carrying `Idempotency-Key`.
211
+ *
212
+ * `refuse()` in `@relyio/api-contract` will not serialize this code without a
213
+ * `Retry-After` header, so `retryAfterMs` is populated on every one of these
214
+ * that reaches the SDK through a RelyIO service.
198
215
  */
199
216
  declare class ServiceIndeterminateError extends SDKError {
200
217
  readonly code = "SERVICE_INDETERMINATE";
201
218
  readonly retryable = true;
202
219
  readonly missing?: string;
203
- constructor(message?: string, missing?: string, context?: Record<string, unknown>);
220
+ /** `Retry-After`, in milliseconds. The contract requires the header on this code. */
221
+ readonly retryAfterMs?: number;
222
+ constructor(message?: string, missing?: string, context?: Record<string, unknown>, retryAfterMs?: number);
204
223
  getUserMessage(): string;
205
224
  }
206
225
  /** `INTERNAL_ERROR` — everything a client can only log (Decision 3). */
@@ -267,10 +286,6 @@ declare class ErrorMapper {
267
286
  * Check if an error is retryable
268
287
  */
269
288
  static isRetryable(error: Error): boolean;
270
- /**
271
- * Extract retry delay from error
272
- */
273
- static getRetryDelay(_error: Error): number;
274
289
  }
275
290
 
276
291
  /**
package/dist/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
- export { N as AdhocAggregateBlock, M as AdhocFetchBlock, L as AdhocQueryBuilder, K as AdhocQueryClient, W as AdhocQueryDefinition, X as AdhocQueryOptions, Z as AdhocQueryResult, P as AdhocSearchBlock, Q as AdhocSimilarBlock, O as AggregateMetric, _ as AssetClient, a8 as AssetEntryResponse, a5 as AssetFileBlock, $ as AssetFileBuilder, a6 as AssetFileExtracted, a0 as AssetUploadBuilder, a7 as AssetUrls, a2 as AssetVisibility, A as AutocompleteBuilder, t as AutocompleteResponse, s as AutocompleteSuggestion, y as BatchBuilder, B as BatchClient, z as BatchMethod, D as BatchOperation, G as BatchOperationResult, F as BatchOptions, J as BatchResponse, I as BatchSummary, j as ChildrenOptions, C as ClientSchema, b as ConditionalWriteOptions, ac as ConfirmInput, ad as ConfirmResult, i as ContentByIdBuilder, d as ContentClient, h as ContentQueryBuilder, ag as CreateAssetOptions, E as ExtendedQueryResult, a4 as FileBackend, am as FileErrorCode, a3 as FileStatus, an as FileUploadError, ap as FileValidationConstraints, ao as FileValidationError, U as FilterValue, V as FullTextConfig, H as HttpClient, ai as MultipartCreateResult, aj as MultipartPart, ak as MultipartTarget, a9 as PopulatedAssetReference, aa as PresignInput, ab as PresignResult, Y as QueryMetadata, ae as ResolveUrlInput, af as ResolveUrlResult, R as RetryableWriteOptions, n as SearchBuilder, m as SearchClient, x as SearchFields, w as SearchFilter, p as SearchMode, r as SearchResponse, q as SearchResultItem, S as SendOptions, g as SettingsClient, l as SettingsFetchOptions, o as SimilarBuilder, v as SimilarResponse, u as SimilarResult, f as SingletonClient, k as SingletonFetchOptions, a as TypedClientConfig, T as TypedRelyIOClient, al as UploadProgress, ah as WaitUntilReadyOptions, c as createClient, c as default, e as entityTagOf, a1 as isAssetEntry, aq as validateFile } from './index-B-KiFHbx.js';
1
+ export { N as AdhocAggregateBlock, M as AdhocFetchBlock, L as AdhocQueryBuilder, K as AdhocQueryClient, W as AdhocQueryDefinition, X as AdhocQueryOptions, Z as AdhocQueryResult, P as AdhocSearchBlock, Q as AdhocSimilarBlock, O as AggregateMetric, _ as AssetClient, a8 as AssetEntryResponse, a5 as AssetFileBlock, $ as AssetFileBuilder, a6 as AssetFileExtracted, a0 as AssetUploadBuilder, a7 as AssetUrls, a2 as AssetVisibility, A as AutocompleteBuilder, t as AutocompleteResponse, s as AutocompleteSuggestion, y as BatchBuilder, B as BatchClient, z as BatchMethod, D as BatchOperation, G as BatchOperationResult, F as BatchOptions, J as BatchResponse, I as BatchSummary, j as ChildrenOptions, C as ClientSchema, b as ConditionalWriteOptions, ac as ConfirmInput, ad as ConfirmResult, i as ContentByIdBuilder, d as ContentClient, h as ContentQueryBuilder, ag as CreateAssetOptions, E as ExtendedQueryResult, a4 as FileBackend, am as FileErrorCode, a3 as FileStatus, an as FileUploadError, ap as FileValidationConstraints, ao as FileValidationError, U as FilterValue, V as FullTextConfig, H as HttpClient, ai as MultipartCreateResult, aj as MultipartPart, ak as MultipartTarget, a9 as PopulatedAssetReference, aa as PresignInput, ab as PresignResult, Y as QueryMetadata, ae as ResolveUrlInput, af as ResolveUrlResult, R as RetryableWriteOptions, n as SearchBuilder, m as SearchClient, x as SearchFields, w as SearchFilter, p as SearchMode, r as SearchResponse, q as SearchResultItem, S as SendOptions, g as SettingsClient, l as SettingsFetchOptions, o as SimilarBuilder, v as SimilarResponse, u as SimilarResult, f as SingletonClient, k as SingletonFetchOptions, a as TypedClientConfig, T as TypedRelyIOClient, al as UploadProgress, ah as WaitUntilReadyOptions, c as createClient, c as default, e as entityTagOf, a1 as isAssetEntry, aq as validateFile } from './index-Dx01iwaf.js';
2
2
  export { fields } from './schema/index.js';
3
- import { S as SDKError } from './index-BsUqCAu8.js';
4
- export { a as ApiMethod, A as ApiPath, r as ApiResponse, b as ApiSuccessBody, B as BaseContent, v as BaseValidationError, o as CacheConfig, t as CacheStrategy, f as ContentQueryResult, j as ContentTypeSchema, C as CreateInput, i as CustomQuery, D as DebugConfig, E as Environment, k as FieldOptions, F as FieldTypeName, z as InvalidFieldTypeError, I as InvalidPayloadError, L as LogLevel, P as PerformanceMetrics, Q as QueryOptions, p as RealtimeConfig, m as RealtimeEvent, l as RealtimeEventType, R as RelyIOConfig, q as RequestConfig, y as RequiredFieldError, s as RetryConfig, x as SchemaValidationError, h as SettingsGroup, g as SingletonContent, e as SortOptions, n as SubscriptionOptions, U as UpdateInput, w as ValidationError, V as ValidationRule, u as ValidationViolation, c as WhereClause, d as WhereOperator, W as Wire } from './index-BsUqCAu8.js';
3
+ import { S as SDKError } from './index-DuEhsGdE.js';
4
+ export { a as ApiMethod, A as ApiPath, r as ApiResponse, b as ApiSuccessBody, B as BaseContent, v as BaseValidationError, o as CacheConfig, t as CacheStrategy, f as ContentQueryResult, j as ContentTypeSchema, C as CreateInput, i as CustomQuery, D as DebugConfig, E as Environment, k as FieldOptions, F as FieldTypeName, z as InvalidFieldTypeError, I as InvalidPayloadError, L as LogLevel, P as PerformanceMetrics, Q as QueryOptions, p as RealtimeConfig, m as RealtimeEvent, l as RealtimeEventType, R as RelyIOConfig, q as RequestConfig, y as RequiredFieldError, s as RetryConfig, x as SchemaValidationError, h as SettingsGroup, g as SingletonContent, e as SortOptions, n as SubscriptionOptions, U as UpdateInput, w as ValidationError, V as ValidationRule, u as ValidationViolation, c as WhereClause, d as WhereOperator, W as Wire } from './index-DuEhsGdE.js';
5
5
  export { camelToSnake, createDeferred, debounce, deepClone, generateId, isBrowser, isNode, isPlainObject, isValidEmail, isValidUrl, mergeDeep, omit, pick, retry, sleep, snakeToCamel, throttle, toSafeString } from './utils/index.js';
6
- export { bv as AggregateBlock, ap as AssetTypeConfig, as as AssetTypeDefinition, n as BaseFieldConfig, ae as ComponentConfig, af as ComponentDefinition, ag as ComponentMetadata, a1 as ContentTypeConfig, a2 as ContentTypeConfigWithFields, a3 as ContentTypeConfigWithFieldsets, a4 as ContentTypeDefinition, a5 as EntryMetadata, bu as FetchBlock, c as FieldDefinition, b as FieldRule, o as FieldType, F as FieldUIConfig, a0 as Fieldset, aw as FileKindConfig, aK as FileScanConfig, aJ as FileUploadConfig, bF as FilterDefinition, aC as ImageExifConfig, au as ImageKindConfig, aB as ImageSourceConfig, aA as ImageUploadConfig, bD as IncludeDefinition, at as InferAssetType, a6 as InferContentType, bL as InferQueryParams, bK as InferQueryResponse, ac as InferSingleton, ab as InferSingletonContentType, L as LocalizationConfig, bs as QueryConfig, bt as QueryDefinition, K as SchemaAssetTypeNames, w as SchemaConfig, y as SchemaContentTypeNames, x as SchemaDefinition, H as SchemaLocaleCodes, G as SchemaQueryNames, J as SchemaSettingsGroupNames, z as SchemaSingletonNames, bw as SearchBlock, bE as SelectMapping, ak as SettingsGroupConfig, al as SettingsGroupDefinition, bx as SimilarBlock, a9 as SingletonContentTypeDefinition, aa as SingletonMetadata, bB as SortCondition, aD as VariantDefinition, aG as VideoCaptionsConfig, aH as VideoDownloadConfig, av as VideoKindConfig, aF as VideoPosterConfig, aE as VideoUploadConfig, aI as VideoWatermarkConfig, by as WhereCondition, ao as defineAssetType, ad as defineComponent, _ as defineContentType, br as defineQuery, u as defineSchema, aj as defineSettingsGroup, a8 as defineSingleton, a7 as defineSingletonContentType, $ as fieldset, v as schemaToJSON } from './define-schema-DHvUCKwj.js';
6
+ export { ax as AggregateBlock, G as AssetTypeConfig, K as AssetTypeDefinition, C as ComponentConfig, v as ComponentDefinition, w as ComponentMetadata, aw as FetchBlock, O as FileKindConfig, a3 as FileScanConfig, a2 as FileUploadConfig, aH as FilterDefinition, X as ImageExifConfig, N as ImageKindConfig, W as ImageSourceConfig, U as ImageUploadConfig, aF as IncludeDefinition, M as InferAssetType, aR as InferQueryParams, aQ as InferQueryResponse, t as InferSingleton, I as InferSingletonContentType, au as QueryConfig, av as QueryDefinition, h as SchemaAssetTypeNames, S as SchemaConfig, b as SchemaContentTypeNames, a as SchemaDefinition, f as SchemaLocaleCodes, e as SchemaQueryNames, g as SchemaSettingsGroupNames, c as SchemaSingletonNames, ay as SearchBlock, aG as SelectMapping, A as SettingsGroupConfig, B as SettingsGroupDefinition, az as SimilarBlock, r as SingletonContentTypeDefinition, s as SingletonMetadata, aD as SortCondition, Y as VariantDefinition, $ as VideoCaptionsConfig, a0 as VideoDownloadConfig, V as VideoKindConfig, _ as VideoPosterConfig, Z as VideoUploadConfig, a1 as VideoWatermarkConfig, aA as WhereCondition, F as defineAssetType, u as defineComponent, at as defineQuery, d as defineSchema, z as defineSettingsGroup, q as defineSingleton, p as defineSingletonContentType } from './define-schema-BD6HSPnG.js';
7
+ export { n as BaseFieldConfig, x as ContentTypeConfig, y as ContentTypeConfigWithFields, z as ContentTypeConfigWithFieldsets, G as ContentTypeDefinition, H as EntryMetadata, c as FieldDefinition, b as FieldRule, o as FieldType, F as FieldUIConfig, w as Fieldset, J as InferContentType, K as LocalePublicationFields, L as LocalizationConfig, u as defineContentType, v as fieldset } from './define-content-type-CBfnTWSS.js';
7
8
 
8
9
  /**
9
10
  * Network-related errors
@@ -152,16 +153,23 @@ declare class UsageQuotaExceededError extends SDKError {
152
153
  /**
153
154
  * `RATE_LIMIT_EXCEEDED` — too many requests in the window.
154
155
  *
155
- * The one refusal the SDK's own retry loop acts on. `resetAt` and `limit` are
156
- * optional because the IP window can fill neither honestly, which is the same
157
- * decision the service made about its `X-RateLimit-*` headers at API0c.
156
+ * `resetAt` and `limit` are optional because the IP window can fill neither
157
+ * honestly, which is the same decision the service made about its
158
+ * `X-RateLimit-*` headers at API0c.
159
+ *
160
+ * `retryAfterMs` is the third and most direct of the three, and it comes from
161
+ * the response **headers** rather than the refusal body — which is why it has
162
+ * to be threaded in rather than read off `details`. The retry policy prefers it
163
+ * over `resetAt` and both over its own backoff.
158
164
  */
159
165
  declare class RateLimitError extends SDKError {
160
166
  readonly code = "RATE_LIMIT_EXCEEDED";
161
167
  readonly retryable = true;
162
168
  readonly limit?: number;
163
169
  readonly resetAt?: string;
164
- constructor(message?: string, limit?: number, resetAt?: string, context?: Record<string, unknown>);
170
+ /** `Retry-After`, in milliseconds, where the response carried a readable one. */
171
+ readonly retryAfterMs?: number;
172
+ constructor(message?: string, limit?: number, resetAt?: string, context?: Record<string, unknown>, retryAfterMs?: number);
165
173
  getUserMessage(): string;
166
174
  }
167
175
  /** `METHOD_NOT_ALLOWED` — the route exists and does not serve this verb. */
@@ -195,12 +203,23 @@ declare class TransactionRolledBackError extends SDKError {
195
203
  * `SERVICE_INDETERMINATE` — a dependency the service needed to decide was
196
204
  * unreachable, so it answered "I could not tell" rather than "no"
197
205
  * (`INV-AC-INDETERMINATE-IS-AN-OUTAGE`). Retryable: it is an outage.
206
+ *
207
+ * **Retryable is not the same as replayable.** "Could not decide" means the
208
+ * write may already have landed, so the retry policy sends this one again only
209
+ * where the request was replay-safe to begin with — an idempotent verb, or a
210
+ * request carrying `Idempotency-Key`.
211
+ *
212
+ * `refuse()` in `@relyio/api-contract` will not serialize this code without a
213
+ * `Retry-After` header, so `retryAfterMs` is populated on every one of these
214
+ * that reaches the SDK through a RelyIO service.
198
215
  */
199
216
  declare class ServiceIndeterminateError extends SDKError {
200
217
  readonly code = "SERVICE_INDETERMINATE";
201
218
  readonly retryable = true;
202
219
  readonly missing?: string;
203
- constructor(message?: string, missing?: string, context?: Record<string, unknown>);
220
+ /** `Retry-After`, in milliseconds. The contract requires the header on this code. */
221
+ readonly retryAfterMs?: number;
222
+ constructor(message?: string, missing?: string, context?: Record<string, unknown>, retryAfterMs?: number);
204
223
  getUserMessage(): string;
205
224
  }
206
225
  /** `INTERNAL_ERROR` — everything a client can only log (Decision 3). */
@@ -267,10 +286,6 @@ declare class ErrorMapper {
267
286
  * Check if an error is retryable
268
287
  */
269
288
  static isRetryable(error: Error): boolean;
270
- /**
271
- * Extract retry delay from error
272
- */
273
- static getRetryDelay(_error: Error): number;
274
289
  }
275
290
 
276
291
  /**
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
- export { defineAssetType, defineComponent, defineContentType, defineQuery, defineSchema, defineSettingsGroup, defineSingleton, defineSingletonContentType, fields, fieldset, schemaToJSON } from './chunk-2QUK2ZGD.js';
2
- export { AdhocQueryBuilder, AdhocQueryClient, AssetClient, AssetFileBuilder, AssetUploadBuilder, AuthenticationError, AuthorizationError, AutocompleteBuilder, BaseValidationError, BatchBuilder, BatchClient, ConnectionError, ContentByIdBuilder, ContentClient, ContentQueryBuilder, ErrorMapper, FileUploadError, FileValidationError, HttpClient, InvalidApiKeyError, InvalidFieldTypeError, InvalidPayloadError, MethodNotAllowedError, MissingApiKeyError, NetworkError, PayloadTooLargeError, PlanFeatureUnavailableError, RateLimitError, ReadOnlyKeyError, RequiredFieldError, ResourceConflictError, ResourceExpiredError, ResourceNotFoundError, SDKError, SchemaValidationError, SearchBuilder, SearchClient, ServerError, ServiceIndeterminateError, SettingsClient, SimilarBuilder, SingletonClient, TimeoutError, TransactionRolledBackError, TypedRelyIOClient, UnknownContractError, UsageQuotaExceededError, ValidationError, createClient, createClient as default, entityTagOf, isAssetEntry, isResourceNotFound, validateFile } from './chunk-RJBIJ2ZK.js';
1
+ export { defineAssetType, defineComponent, defineContentType, defineQuery, defineSchema, defineSettingsGroup, defineSingleton, defineSingletonContentType, fields, fieldset } from './chunk-LYRYCIX5.js';
2
+ export { AdhocQueryBuilder, AdhocQueryClient, AssetClient, AssetFileBuilder, AssetUploadBuilder, AuthenticationError, AuthorizationError, AutocompleteBuilder, BaseValidationError, BatchBuilder, BatchClient, ConnectionError, ContentByIdBuilder, ContentClient, ContentQueryBuilder, ErrorMapper, FileUploadError, FileValidationError, HttpClient, InvalidApiKeyError, InvalidFieldTypeError, InvalidPayloadError, MethodNotAllowedError, MissingApiKeyError, NetworkError, PayloadTooLargeError, PlanFeatureUnavailableError, RateLimitError, ReadOnlyKeyError, RequiredFieldError, ResourceConflictError, ResourceExpiredError, ResourceNotFoundError, SDKError, SchemaValidationError, SearchBuilder, SearchClient, ServerError, ServiceIndeterminateError, SettingsClient, SimilarBuilder, SingletonClient, TimeoutError, TransactionRolledBackError, TypedRelyIOClient, UnknownContractError, UsageQuotaExceededError, ValidationError, createClient, createClient as default, entityTagOf, isAssetEntry, isResourceNotFound, validateFile } from './chunk-QIZOBT5F.js';
3
+ import './chunk-BBUB7C2Z.js';
3
4
  import './chunk-IY5LSKXU.js';
4
5
  export { camelToSnake, createDeferred, debounce, deepClone, generateId, isBrowser, isNode, isPlainObject, isValidEmail, isValidUrl, mergeDeep, omit, pick, retry, sleep, snakeToCamel, throttle, toSafeString } from './chunk-I3ESNANB.js';
5
6
  import { __name } from './chunk-XQ4QHWZE.js';