@bedrock-rbx/ocale 0.3.0 → 0.3.1

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 (51) hide show
  1. package/dist/badges.d.mts +1 -1
  2. package/dist/badges.mjs +3 -3
  3. package/dist/developer-products.d.mts +1 -1
  4. package/dist/developer-products.mjs +4 -4
  5. package/dist/game-passes.d.mts +1 -1
  6. package/dist/game-passes.mjs +4 -4
  7. package/dist/index.d.mts +108 -3
  8. package/dist/index.d.mts.map +1 -1
  9. package/dist/index.mjs +70 -5
  10. package/dist/index.mjs.map +1 -0
  11. package/dist/luau-execution.d.mts +2 -2
  12. package/dist/luau-execution.mjs +4 -4
  13. package/dist/{rate-limit-Df55K34f.mjs → network-error-DmNy_j-u.mjs} +50 -30
  14. package/dist/network-error-DmNy_j-u.mjs.map +1 -0
  15. package/dist/places.d.mts +2 -2
  16. package/dist/places.mjs +5 -5
  17. package/dist/{poll-timeout-DpEY-gAc.mjs → poll-timeout-wrPTnGl_.mjs} +2 -2
  18. package/dist/{poll-timeout-DpEY-gAc.mjs.map → poll-timeout-wrPTnGl_.mjs.map} +1 -1
  19. package/dist/{polling-Bs0GDvEa.d.mts → polling-0t1wQyVY.d.mts} +20 -13
  20. package/dist/polling-0t1wQyVY.d.mts.map +1 -0
  21. package/dist/{polling-helpers-BjFXyaOm.mjs → polling-helpers-CzdT2FS5.mjs} +32 -52
  22. package/dist/polling-helpers-CzdT2FS5.mjs.map +1 -0
  23. package/dist/{price-information-Brs8ebsh.mjs → price-information-Czs5cWR1.mjs} +2 -2
  24. package/dist/{price-information-Brs8ebsh.mjs.map → price-information-Czs5cWR1.mjs.map} +1 -1
  25. package/dist/resource-client-aqk_V4TD.mjs +717 -0
  26. package/dist/resource-client-aqk_V4TD.mjs.map +1 -0
  27. package/dist/{retry-CdpA3z4A.d.mts → retry-Cj5OXCdL.d.mts} +5 -5
  28. package/dist/{retry-CdpA3z4A.d.mts.map → retry-Cj5OXCdL.d.mts.map} +1 -1
  29. package/dist/retry-DIK_T_oF.mjs +1322 -0
  30. package/dist/retry-DIK_T_oF.mjs.map +1 -0
  31. package/dist/storage.d.mts +3 -2
  32. package/dist/storage.d.mts.map +1 -1
  33. package/dist/storage.mjs +3 -3
  34. package/dist/testing.d.mts +9 -17
  35. package/dist/testing.d.mts.map +1 -1
  36. package/dist/testing.mjs +1 -1
  37. package/dist/{types-mhEalVsR.d.mts → types-D_njb3qW.d.mts} +74 -4
  38. package/dist/types-D_njb3qW.d.mts.map +1 -0
  39. package/dist/universes.d.mts +1 -1
  40. package/dist/universes.mjs +4 -4
  41. package/dist/{validation-Cg2lBhpQ.mjs → validation-BwjwOJPD.mjs} +2 -2
  42. package/dist/{validation-Cg2lBhpQ.mjs.map → validation-BwjwOJPD.mjs.map} +1 -1
  43. package/package.json +1 -1
  44. package/dist/polling-Bs0GDvEa.d.mts.map +0 -1
  45. package/dist/polling-helpers-BjFXyaOm.mjs.map +0 -1
  46. package/dist/rate-limit-Df55K34f.mjs.map +0 -1
  47. package/dist/resource-client-DtfDWglY.mjs +0 -1177
  48. package/dist/resource-client-DtfDWglY.mjs.map +0 -1
  49. package/dist/retry-DM2-tlR8.mjs +0 -458
  50. package/dist/retry-DM2-tlR8.mjs.map +0 -1
  51. package/dist/types-mhEalVsR.d.mts.map +0 -1
package/dist/badges.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { d as OpenCloudError, i as OpenCloudClientOptions, l as Result, s as RequestOptions } from "./types-mhEalVsR.mjs";
1
+ import { f as Result, m as OpenCloudError, s as OpenCloudClientOptions, u as RequestOptions } from "./types-D_njb3qW.mjs";
2
2
  import { i as RobloxLocale, r as RobloxLanguageCode } from "./data.generated-B2ceLfSn.mjs";
3
3
 
4
4
  //#region src/domains/badges/badges/types.d.ts
package/dist/badges.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { r as ApiError } from "./rate-limit-Df55K34f.mjs";
2
- import { r as IDEMPOTENT_METHOD_DEFAULTS, t as CREATE_METHOD_DEFAULTS } from "./retry-DM2-tlR8.mjs";
1
+ import { a as ApiError } from "./network-error-DmNy_j-u.mjs";
2
+ import { r as IDEMPOTENT_METHOD_DEFAULTS, t as CREATE_METHOD_DEFAULTS } from "./retry-DIK_T_oF.mjs";
3
3
  import { t as toBlob } from "./to-blob-RPqMBuft.mjs";
4
- import { a as isRecord, i as toJsonDetails, n as okRequest, o as isDateTimeString, r as parseEmptyResponse, t as ResourceClient } from "./resource-client-DtfDWglY.mjs";
4
+ import { a as isRecord, i as toJsonDetails, n as okRequest, o as isDateTimeString, r as parseEmptyResponse, t as ResourceClient } from "./resource-client-aqk_V4TD.mjs";
5
5
  //#region src/domains/badges/badges/builders.ts
6
6
  /**
7
7
  * Builds a `POST` request for the legacy "create badge" endpoint.
@@ -1,4 +1,4 @@
1
- import { d as OpenCloudError, i as OpenCloudClientOptions, l as Result, s as RequestOptions } from "./types-mhEalVsR.mjs";
1
+ import { f as Result, m as OpenCloudError, s as OpenCloudClientOptions, u as RequestOptions } from "./types-D_njb3qW.mjs";
2
2
  import { i as RobloxLocale, r as RobloxLanguageCode } from "./data.generated-B2ceLfSn.mjs";
3
3
 
4
4
  //#region src/domains/developer-products/products/types.d.ts
@@ -1,8 +1,8 @@
1
- import { r as ApiError } from "./rate-limit-Df55K34f.mjs";
2
- import { r as IDEMPOTENT_METHOD_DEFAULTS, t as CREATE_METHOD_DEFAULTS } from "./retry-DM2-tlR8.mjs";
1
+ import { a as ApiError } from "./network-error-DmNy_j-u.mjs";
2
+ import { r as IDEMPOTENT_METHOD_DEFAULTS, t as CREATE_METHOD_DEFAULTS } from "./retry-DIK_T_oF.mjs";
3
3
  import { t as toBlob } from "./to-blob-RPqMBuft.mjs";
4
- import { a as isRecord, i as toJsonDetails, n as okRequest, o as isDateTimeString, r as parseEmptyResponse, t as ResourceClient } from "./resource-client-DtfDWglY.mjs";
5
- import { n as isPriceInformationLike, t as copyPriceInformation } from "./price-information-Brs8ebsh.mjs";
4
+ import { a as isRecord, i as toJsonDetails, n as okRequest, o as isDateTimeString, r as parseEmptyResponse, t as ResourceClient } from "./resource-client-aqk_V4TD.mjs";
5
+ import { n as isPriceInformationLike, t as copyPriceInformation } from "./price-information-Czs5cWR1.mjs";
6
6
  //#region src/domains/developer-products/products/builders.ts
7
7
  /**
8
8
  * Builds a `GET` request for the Open Cloud "read developer product"
@@ -1,4 +1,4 @@
1
- import { c as Page, d as OpenCloudError, i as OpenCloudClientOptions, l as Result, s as RequestOptions } from "./types-mhEalVsR.mjs";
1
+ import { d as Page, f as Result, m as OpenCloudError, s as OpenCloudClientOptions, u as RequestOptions } from "./types-D_njb3qW.mjs";
2
2
  import { i as RobloxLocale, r as RobloxLanguageCode } from "./data.generated-B2ceLfSn.mjs";
3
3
 
4
4
  //#region src/domains/game-internationalization/game-pass-icon/types.d.ts
@@ -1,8 +1,8 @@
1
- import { r as ApiError } from "./rate-limit-Df55K34f.mjs";
2
- import { r as IDEMPOTENT_METHOD_DEFAULTS, t as CREATE_METHOD_DEFAULTS } from "./retry-DM2-tlR8.mjs";
1
+ import { a as ApiError } from "./network-error-DmNy_j-u.mjs";
2
+ import { r as IDEMPOTENT_METHOD_DEFAULTS, t as CREATE_METHOD_DEFAULTS } from "./retry-DIK_T_oF.mjs";
3
3
  import { t as toBlob } from "./to-blob-RPqMBuft.mjs";
4
- import { a as isRecord, i as toJsonDetails, n as okRequest, o as isDateTimeString, r as parseEmptyResponse, t as ResourceClient } from "./resource-client-DtfDWglY.mjs";
5
- import { n as isPriceInformationLike, t as copyPriceInformation } from "./price-information-Brs8ebsh.mjs";
4
+ import { a as isRecord, i as toJsonDetails, n as okRequest, o as isDateTimeString, r as parseEmptyResponse, t as ResourceClient } from "./resource-client-aqk_V4TD.mjs";
5
+ import { n as isPriceInformationLike, t as copyPriceInformation } from "./price-information-Czs5cWR1.mjs";
6
6
  //#region src/domains/game-internationalization/game-pass-icon/builders.ts
7
7
  /**
8
8
  * Builds a `POST` request for the localized "upload game-pass icon"
package/dist/index.d.mts CHANGED
@@ -1,6 +1,69 @@
1
- import { a as OpenCloudHooks, c as Page, d as OpenCloudError, f as OpenCloudErrorOptions, i as OpenCloudClientOptions, l as Result, n as HttpRequest, o as RequestConfig, r as HttpResponse, s as RequestOptions, t as HttpClient, u as SleepFunc } from "./types-mhEalVsR.mjs";
2
- import { a as TRANSIENT_TRANSPORT_CODES, c as NetworkError, d as ApiErrorOptions, f as ApiRequestContext, l as NetworkErrorOptions, o as RateLimitError, p as requestContextOf, r as RESPONSE_UNPARSEABLE, s as RateLimitErrorOptions, t as GATEWAY_REJECTED, u as ApiError } from "./retry-CdpA3z4A.mjs";
1
+ import { a as HttpRequest, c as OpenCloudHooks, d as Page, f as Result, h as OpenCloudErrorOptions, i as HttpClient, l as RequestConfig, m as OpenCloudError, n as AdmissionWaitObserver, o as HttpResponse, p as SleepFunc, r as AdmissionWaitReason, s as OpenCloudClientOptions, t as AdmissionWaitEvent, u as RequestOptions } from "./types-D_njb3qW.mjs";
2
+ import { a as TRANSIENT_TRANSPORT_CODES, c as NetworkError, d as ApiErrorOptions, f as ApiRequestContext, l as NetworkErrorOptions, o as RateLimitError, p as requestContextOf, r as RESPONSE_UNPARSEABLE, s as RateLimitErrorOptions, t as GATEWAY_REJECTED, u as ApiError } from "./retry-Cj5OXCdL.mjs";
3
3
 
4
+ //#region src/client/fetch-http-client.d.ts
5
+ /**
6
+ * Creates the fetch-backed HTTP transport Ocale uses by default.
7
+ *
8
+ * Wrap the returned transport to add tracing, metrics, recording, or other
9
+ * request-level behavior while retaining Ocale's authentication, timeout,
10
+ * upload, response-parsing, and error-classification semantics.
11
+ *
12
+ * @returns Ocale's default fetch-backed HTTP transport.
13
+ * @since 0.3.1
14
+ *
15
+ * @example
16
+ *
17
+ * ```ts
18
+ * import {
19
+ * createFetchHttpClient,
20
+ * type HttpClient,
21
+ * type HttpRequest,
22
+ * } from "@bedrock-rbx/ocale";
23
+ * import {
24
+ * type DeleteExperienceIconParameters,
25
+ * UniversesClient,
26
+ * } from "@bedrock-rbx/ocale/universes";
27
+ *
28
+ * const defaultHttpClient = createFetchHttpClient();
29
+ * let observedRequests: ReadonlyArray<HttpRequest> = [];
30
+ * const tracedHttpClient: HttpClient = {
31
+ * async request(request, config) {
32
+ * observedRequests = [...observedRequests, request];
33
+ * return defaultHttpClient.request(request, config);
34
+ * },
35
+ * };
36
+ * // A data URL keeps this executable example offline. Production clients
37
+ * // normally omit baseUrl and use Ocale's Roblox Open Cloud default.
38
+ * const commonOptions = { apiKey: "your-key", baseUrl: "data:,#" };
39
+ * const client = new UniversesClient({
40
+ * ...commonOptions,
41
+ * httpClient: tracedHttpClient,
42
+ * });
43
+ * const undecoratedClient = new UniversesClient({
44
+ * ...commonOptions,
45
+ * httpClient: defaultHttpClient,
46
+ * });
47
+ * const parameters: DeleteExperienceIconParameters = {
48
+ * languageCode: "en",
49
+ * universeId: "42",
50
+ * };
51
+ * expect(client).toBeInstanceOf(UniversesClient);
52
+ * return Promise.all([
53
+ * client.icon.delete(parameters),
54
+ * undecoratedClient.icon.delete(parameters),
55
+ * ]).then(([result, undecoratedResult]) => {
56
+ * expect(observedRequests).toStrictEqual([{
57
+ * method: "DELETE",
58
+ * url: "/legacy-game-internationalization/v1/game-icon/games/42/language-codes/en",
59
+ * }]);
60
+ * expect(result).toStrictEqual({ data: undefined, success: true });
61
+ * expect(result).toStrictEqual(undecoratedResult);
62
+ * });
63
+ * ```
64
+ */
65
+ declare const createFetchHttpClient: () => HttpClient;
66
+ //#endregion
4
67
  //#region src/errors/permission-error.d.ts
5
68
  /**
6
69
  * Options for constructing a {@link PermissionError}.
@@ -161,6 +224,48 @@ declare class PollTimeoutError<T = unknown> extends OpenCloudError {
161
224
  constructor(message: string, options: PollTimeoutErrorOptions<T>);
162
225
  }
163
226
  //#endregion
227
+ //#region src/errors/request-aborted.d.ts
228
+ /**
229
+ * Options for constructing a {@link RequestAbortedError}.
230
+ *
231
+ * @since 0.3.1
232
+ */
233
+ interface RequestAbortedErrorOptions extends ErrorOptions {
234
+ /** Whatever `AbortSignal.reason` was at the moment of cancellation. */
235
+ readonly reason?: unknown;
236
+ }
237
+ /**
238
+ * Returned when a caller's `AbortSignal` cancels an Open Cloud request.
239
+ * The reason is preserved so intentional cancellation can be distinguished
240
+ * from transport failures and SDK-owned request timeouts.
241
+ *
242
+ * @since 0.3.1
243
+ *
244
+ * @example
245
+ *
246
+ * ```ts
247
+ * import { RequestAbortedError } from "@bedrock-rbx/ocale";
248
+ *
249
+ * const error = new RequestAbortedError("Request was aborted", {
250
+ * reason: "superseded",
251
+ * });
252
+ *
253
+ * expect(error).toBeInstanceOf(RequestAbortedError);
254
+ * expect(error.reason).toBe("superseded");
255
+ * ```
256
+ */
257
+ declare class RequestAbortedError extends OpenCloudError {
258
+ override readonly name: string;
259
+ readonly reason?: unknown;
260
+ /**
261
+ * Creates a new RequestAbortedError.
262
+ *
263
+ * @param message - Human-readable description of the cancellation.
264
+ * @param options - Error options including the caller's abort reason.
265
+ */
266
+ constructor(message: string, options?: RequestAbortedErrorOptions);
267
+ }
268
+ //#endregion
164
269
  //#region src/errors/validation.d.ts
165
270
  /**
166
271
  * Closed discriminator for a {@link ValidationError}. Consumers can
@@ -211,5 +316,5 @@ declare class ValidationError extends OpenCloudError {
211
316
  constructor(message: string, options: ValidationErrorOptions);
212
317
  }
213
318
  //#endregion
214
- export { ApiError, type ApiErrorOptions, type ApiRequestContext, GATEWAY_REJECTED, type HttpClient, type HttpRequest, type HttpResponse, NetworkError, type NetworkErrorOptions, type OpenCloudClientOptions, OpenCloudError, type OpenCloudErrorOptions, type OpenCloudHooks, type Page, PermissionError, type PermissionErrorOptions, PollAbortedError, type PollAbortedErrorOptions, PollTimeoutError, type PollTimeoutErrorOptions, RESPONSE_UNPARSEABLE, RateLimitError, type RateLimitErrorOptions, type RequestConfig, type RequestOptions, type Result, type SleepFunc, TRANSIENT_TRANSPORT_CODES, ValidationError, type ValidationErrorCode, type ValidationErrorOptions, requestContextOf };
319
+ export { type AdmissionWaitEvent, type AdmissionWaitObserver, type AdmissionWaitReason, ApiError, type ApiErrorOptions, type ApiRequestContext, GATEWAY_REJECTED, type HttpClient, type HttpRequest, type HttpResponse, NetworkError, type NetworkErrorOptions, type OpenCloudClientOptions, OpenCloudError, type OpenCloudErrorOptions, type OpenCloudHooks, type Page, PermissionError, type PermissionErrorOptions, PollAbortedError, type PollAbortedErrorOptions, PollTimeoutError, type PollTimeoutErrorOptions, RESPONSE_UNPARSEABLE, RateLimitError, type RateLimitErrorOptions, RequestAbortedError, type RequestAbortedErrorOptions, type RequestConfig, type RequestOptions, type Result, type SleepFunc, TRANSIENT_TRANSPORT_CODES, ValidationError, type ValidationErrorCode, type ValidationErrorOptions, createFetchHttpClient, requestContextOf };
215
320
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/errors/permission-error.ts","../src/errors/poll-aborted.ts","../src/errors/poll-timeout.ts","../src/errors/validation.ts"],"mappings":";;;;;;;AAOA;;UAAiB,sBAAA,SAA+B,eAAA;EAAA;;;;;EAM/C,YAAA;EAMgB;AAgCjB;;;;EAhCC,cAAA,EAAgB,aAAA;AAAA;;;;;;;;;;;;;AA4CsB;;;;ACxDvC;;;;AAEU;AAwBV;;;;;;;;cDkBa,eAAA,SAAwB,QAAA;EAAA,kBACX,IAAA;EAAA,SACT,YAAA;EAAA,SACA,cAAA,EAAgB,aAAA;ECXM;;;;AC/BvC;;;EFmDC,WAAA,CAAY,OAAA,UAAiB,OAAA,EAAS,sBAAA;AAAA;;;;;;AAxDvC;;UCAiB,uBAAA,SAAgC,YAAA;EDAD;EAAA,SCEtC,MAAA;AAAA;;;;ADUO;AAgCjB;;;;;;;;;;;;;;;;;cClBa,gBAAA,SAAyB,cAAA;EAAA,kBACZ,IAAA;EAAA,SACT,MAAA;;;AA5BjB;;;;EAoCC,WAAA,CAAY,OAAA,UAAiB,OAAA,GAAS,uBAAA;AAAA;;;;;;ADpCvC;;;;;;;UEKiB,uBAAA,sBAA6C,YAAA;EFO7C;EAAA,SELP,gBAAA,GAAmB,CAAA;EFqC7B;EAAA,SEnCU,SAAA;AAAA;;;;;;;;;;;;;;;;AF+C6B;;;;ACxDvC;;;;AAEU;cCkCG,gBAAA,sBAAsC,cAAA;EAAA,SAClC,gBAAA,EAAkB,CAAA;EAAA,kBACT,IAAA;EAAA,SACT,SAAA;;;;;;;EAQhB,WAAA,CAAY,OAAA,UAAiB,OAAA,EAAS,uBAAA,CAAwB,CAAA;AAAA;;;;;;AF/C/D;;;;KGEY,mBAAA;;;;;AHUK;UGGA,sBAAA,SAA+B,YAAA;EH6BnC;EG3BZ,IAAA,EAAM,mBAAA;AAAA;;;;;;;;;;;;;;;AHuCgC;;;;ACxDvC;;cEwCa,eAAA,SAAwB,cAAA;EAAA,kBACX,IAAA,EAAM,mBAAA;EAAA,kBACN,IAAA;EFhB1B;;;;;;EEwBC,WAAA,CAAY,OAAA,UAAiB,OAAA,EAAS,sBAAA;AAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/client/fetch-http-client.ts","../src/errors/permission-error.ts","../src/errors/poll-aborted.ts","../src/errors/poll-timeout.ts","../src/errors/request-aborted.ts","../src/errors/validation.ts"],"mappings":";;;;;;;AA+DA;;;;AAA0C;;;;ACxD1C;;;;;;;;;AAYiB;AAgCjB;;;;;;;;;;;;;;;;;;AAYuC;;;;ACxDvC;;;;AAEU;AAwBV;;;;;;;;;;;;cF8Ba,qBAAA,QAA6B,UAAA;;;;;;AAA1C;;UCxDiB,sBAAA,SAA+B,eAAA;EDwDN;AAAA;;;;EClDzC,YAAA;EANgB;;;;;EAYhB,cAAA,EAAgB,aAAA;AAAA;;AAAA;AAgCjB;;;;;;;;;;;;;;;;;;AAYuC;;;;ACxDvC;;;;AAEU;cD0CG,eAAA,SAAwB,QAAA;EAAA,kBACX,IAAA;EAAA,SACT,YAAA;EAAA,SACA,cAAA,EAAgB,aAAA;;;;;;;;EAShC,WAAA,CAAY,OAAA,UAAiB,OAAA,EAAS,sBAAA;AAAA;;;;;;ADAvC;;UExDiB,uBAAA,SAAgC,YAAA;EFwDP;EAAA,SEtDhC,MAAA;AAAA;;;ADFV;;;;;;;;;AAYiB;AAgCjB;;;;;;;;;cClBa,gBAAA,SAAyB,cAAA;EAAA,kBACZ,IAAA;EAAA,SACT,MAAA;;;;;;;EAQhB,WAAA,CAAY,OAAA,UAAiB,OAAA,GAAS,uBAAA;AAAA;;;;;;AFoBvC;;;;AAA0C;;;UGnDzB,uBAAA,sBAA6C,YAAA;EFL9D;EAAA,SEOU,gBAAA,GAAmB,CAAA;;WAEnB,SAAA;AAAA;;;;;AFGO;AAgCjB;;;;;;;;;;;;;;;;;;AAYuC;cEpB1B,gBAAA,sBAAsC,cAAA;EAAA,SAClC,gBAAA,EAAkB,CAAA;EAAA,kBACT,IAAA;EAAA,SACT,SAAA;EDvCA;;;AAEP;AAwBV;;ECqBC,WAAA,CAAY,OAAA,UAAiB,OAAA,EAAS,uBAAA,CAAwB,CAAA;AAAA;;;;;;AHS/D;;UIxDiB,0BAAA,SAAmC,YAAA;EJwDV;EAAA,SItDhC,MAAA;AAAA;;;AHFV;;;;;;;;;AAYiB;AAgCjB;;;;;;;;cGnBa,mBAAA,SAA4B,cAAA;EAAA,kBACf,IAAA;EAAA,SACT,MAAA;;;;;;;EAQhB,WAAA,CAAY,OAAA,UAAiB,OAAA,GAAS,0BAAA;AAAA;;;;;;AJqBvC;;;;KKtDY,mBAAA;;;;AJFZ;;UIeiB,sBAAA,SAA+B,YAAA;EJfA;EIiB/C,IAAA,EAAM,mBAAA;AAAA;;;;AJLU;AAgCjB;;;;;;;;;;;;;;;;cIJa,eAAA,SAAwB,cAAA;EAAA,kBACX,IAAA,EAAM,mBAAA;EAAA,kBACN,IAAA;;;;AH1C1B;;;EGkDC,WAAA,CAAY,OAAA,UAAiB,OAAA,EAAS,sBAAA;AAAA"}
package/dist/index.mjs CHANGED
@@ -1,5 +1,70 @@
1
- import { a as OpenCloudError, i as requestContextOf, n as NetworkError, r as ApiError, t as RateLimitError } from "./rate-limit-Df55K34f.mjs";
2
- import { a as TRANSIENT_TRANSPORT_CODES, f as PermissionError, i as RESPONSE_UNPARSEABLE, n as GATEWAY_REJECTED } from "./retry-DM2-tlR8.mjs";
3
- import { n as PollAbortedError, t as PollTimeoutError } from "./poll-timeout-DpEY-gAc.mjs";
4
- import { t as ValidationError } from "./validation-Cg2lBhpQ.mjs";
5
- export { ApiError, GATEWAY_REJECTED, NetworkError, OpenCloudError, PermissionError, PollAbortedError, PollTimeoutError, RESPONSE_UNPARSEABLE, RateLimitError, TRANSIENT_TRANSPORT_CODES, ValidationError, requestContextOf };
1
+ import { a as ApiError, n as RateLimitError, o as requestContextOf, s as OpenCloudError, t as NetworkError } from "./network-error-DmNy_j-u.mjs";
2
+ import { a as TRANSIENT_TRANSPORT_CODES, f as PermissionError, i as RESPONSE_UNPARSEABLE, n as GATEWAY_REJECTED, p as createFetchHttpClient$1, v as RequestAbortedError } from "./retry-DIK_T_oF.mjs";
3
+ import { n as PollAbortedError, t as PollTimeoutError } from "./poll-timeout-wrPTnGl_.mjs";
4
+ import { t as ValidationError } from "./validation-BwjwOJPD.mjs";
5
+ //#region src/client/fetch-http-client.ts
6
+ /**
7
+ * Creates the fetch-backed HTTP transport Ocale uses by default.
8
+ *
9
+ * Wrap the returned transport to add tracing, metrics, recording, or other
10
+ * request-level behavior while retaining Ocale's authentication, timeout,
11
+ * upload, response-parsing, and error-classification semantics.
12
+ *
13
+ * @returns Ocale's default fetch-backed HTTP transport.
14
+ * @since 0.3.1
15
+ *
16
+ * @example
17
+ *
18
+ * ```ts
19
+ * import {
20
+ * createFetchHttpClient,
21
+ * type HttpClient,
22
+ * type HttpRequest,
23
+ * } from "@bedrock-rbx/ocale";
24
+ * import {
25
+ * type DeleteExperienceIconParameters,
26
+ * UniversesClient,
27
+ * } from "@bedrock-rbx/ocale/universes";
28
+ *
29
+ * const defaultHttpClient = createFetchHttpClient();
30
+ * let observedRequests: ReadonlyArray<HttpRequest> = [];
31
+ * const tracedHttpClient: HttpClient = {
32
+ * async request(request, config) {
33
+ * observedRequests = [...observedRequests, request];
34
+ * return defaultHttpClient.request(request, config);
35
+ * },
36
+ * };
37
+ * // A data URL keeps this executable example offline. Production clients
38
+ * // normally omit baseUrl and use Ocale's Roblox Open Cloud default.
39
+ * const commonOptions = { apiKey: "your-key", baseUrl: "data:,#" };
40
+ * const client = new UniversesClient({
41
+ * ...commonOptions,
42
+ * httpClient: tracedHttpClient,
43
+ * });
44
+ * const undecoratedClient = new UniversesClient({
45
+ * ...commonOptions,
46
+ * httpClient: defaultHttpClient,
47
+ * });
48
+ * const parameters: DeleteExperienceIconParameters = {
49
+ * languageCode: "en",
50
+ * universeId: "42",
51
+ * };
52
+ * expect(client).toBeInstanceOf(UniversesClient);
53
+ * return Promise.all([
54
+ * client.icon.delete(parameters),
55
+ * undecoratedClient.icon.delete(parameters),
56
+ * ]).then(([result, undecoratedResult]) => {
57
+ * expect(observedRequests).toStrictEqual([{
58
+ * method: "DELETE",
59
+ * url: "/legacy-game-internationalization/v1/game-icon/games/42/language-codes/en",
60
+ * }]);
61
+ * expect(result).toStrictEqual({ data: undefined, success: true });
62
+ * expect(result).toStrictEqual(undecoratedResult);
63
+ * });
64
+ * ```
65
+ */
66
+ const createFetchHttpClient = createFetchHttpClient$1;
67
+ //#endregion
68
+ export { ApiError, GATEWAY_REJECTED, NetworkError, OpenCloudError, PermissionError, PollAbortedError, PollTimeoutError, RESPONSE_UNPARSEABLE, RateLimitError, RequestAbortedError, TRANSIENT_TRANSPORT_CODES, ValidationError, createFetchHttpClient, requestContextOf };
69
+
70
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":["createInternalFetchHttpClient"],"sources":["../src/client/fetch-http-client.ts"],"sourcesContent":["import { createFetchHttpClient as createInternalFetchHttpClient } from \"../internal/http/fetch-client.ts\";\nimport type { HttpClient } from \"./types.ts\";\n\n/**\n * Creates the fetch-backed HTTP transport Ocale uses by default.\n *\n * Wrap the returned transport to add tracing, metrics, recording, or other\n * request-level behavior while retaining Ocale's authentication, timeout,\n * upload, response-parsing, and error-classification semantics.\n *\n * @returns Ocale's default fetch-backed HTTP transport.\n * @since 0.3.1\n *\n * @example\n *\n * ```ts\n * import {\n * createFetchHttpClient,\n * type HttpClient,\n * type HttpRequest,\n * } from \"@bedrock-rbx/ocale\";\n * import {\n * type DeleteExperienceIconParameters,\n * UniversesClient,\n * } from \"@bedrock-rbx/ocale/universes\";\n *\n * const defaultHttpClient = createFetchHttpClient();\n * let observedRequests: ReadonlyArray<HttpRequest> = [];\n * const tracedHttpClient: HttpClient = {\n * async request(request, config) {\n * observedRequests = [...observedRequests, request];\n * return defaultHttpClient.request(request, config);\n * },\n * };\n * // A data URL keeps this executable example offline. Production clients\n * // normally omit baseUrl and use Ocale's Roblox Open Cloud default.\n * const commonOptions = { apiKey: \"your-key\", baseUrl: \"data:,#\" };\n * const client = new UniversesClient({\n * ...commonOptions,\n * httpClient: tracedHttpClient,\n * });\n * const undecoratedClient = new UniversesClient({\n * ...commonOptions,\n * httpClient: defaultHttpClient,\n * });\n * const parameters: DeleteExperienceIconParameters = {\n * languageCode: \"en\",\n * universeId: \"42\",\n * };\n * expect(client).toBeInstanceOf(UniversesClient);\n * return Promise.all([\n * client.icon.delete(parameters),\n * undecoratedClient.icon.delete(parameters),\n * ]).then(([result, undecoratedResult]) => {\n * expect(observedRequests).toStrictEqual([{\n * method: \"DELETE\",\n * url: \"/legacy-game-internationalization/v1/game-icon/games/42/language-codes/en\",\n * }]);\n * expect(result).toStrictEqual({ data: undefined, success: true });\n * expect(result).toStrictEqual(undecoratedResult);\n * });\n * ```\n */\nexport const createFetchHttpClient: () => HttpClient = createInternalFetchHttpClient;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+DA,MAAa,wBAA0CA"}
@@ -1,5 +1,5 @@
1
- import { d as OpenCloudError, i as OpenCloudClientOptions, l as Result, s as RequestOptions } from "./types-mhEalVsR.mjs";
2
- import { a as LogPage, c as GetParameters, d as LuauExecutionTaskRef, f as SubmitAtHeadParameters, i as LogMessage, l as InProgressTask, n as defaultPollDelay, o as CompleteTask, p as SubmitAtVersionParameters, r as ListLogsParameters, s as FailedTask, t as PollUntilDoneOptions, u as LuauExecutionTask } from "./polling-Bs0GDvEa.mjs";
1
+ import { f as Result, m as OpenCloudError, s as OpenCloudClientOptions, u as RequestOptions } from "./types-D_njb3qW.mjs";
2
+ import { a as LogPage, c as GetParameters, d as LuauExecutionTaskRef, f as SubmitAtHeadParameters, i as LogMessage, l as InProgressTask, n as defaultPollDelay, o as CompleteTask, p as SubmitAtVersionParameters, r as ListLogsParameters, s as FailedTask, t as PollUntilDoneOptions, u as LuauExecutionTask } from "./polling-0t1wQyVY.mjs";
3
3
 
4
4
  //#region src/domains/cloud-v2/luau-execution-task-binary-inputs/types.d.ts
5
5
  /**
@@ -1,7 +1,7 @@
1
- import { r as ApiError } from "./rate-limit-Df55K34f.mjs";
2
- import { t as CREATE_METHOD_DEFAULTS } from "./retry-DM2-tlR8.mjs";
3
- import { a as isRecord, i as toJsonDetails, n as okRequest, t as ResourceClient } from "./resource-client-DtfDWglY.mjs";
4
- import { a as withBudgetRequestTimeout, c as SUBMIT_VERSION_SPEC, i as pollUntilDoneCoreAsync, l as LIST_LOGS_SPEC, n as submitAndPollAsync, o as GET_SPEC, r as defaultPollDelay, s as SUBMIT_HEAD_SPEC, t as buildPollDependencies } from "./polling-helpers-BjFXyaOm.mjs";
1
+ import { a as ApiError } from "./network-error-DmNy_j-u.mjs";
2
+ import { t as CREATE_METHOD_DEFAULTS } from "./retry-DIK_T_oF.mjs";
3
+ import { a as isRecord, i as toJsonDetails, n as okRequest, t as ResourceClient } from "./resource-client-aqk_V4TD.mjs";
4
+ import { a as withBudgetRequestTimeout, c as SUBMIT_VERSION_SPEC, i as pollUntilDoneCoreAsync, l as LIST_LOGS_SPEC, n as submitAndPollAsync, o as GET_SPEC, r as defaultPollDelay, s as SUBMIT_HEAD_SPEC, t as buildPollDependencies } from "./polling-helpers-CzdT2FS5.mjs";
5
5
  //#region src/domains/cloud-v2/luau-execution-task-binary-inputs/builders.ts
6
6
  /**
7
7
  * Builds a `POST` request for the Open Cloud
@@ -146,34 +146,6 @@ function requestContextOf(err) {
146
146
  };
147
147
  }
148
148
  //#endregion
149
- //#region src/errors/network-error.ts
150
- /**
151
- * Thrown when a network-level failure prevents the request from reaching
152
- * the Roblox Open Cloud API (e.g., DNS resolution failure, connection reset).
153
- * The `method` and `url` name the failing call so a transport failure that
154
- * survives every retry can be diagnosed; the underlying transport error is
155
- * carried on `cause`.
156
- *
157
- * @since 0.1.0
158
- */
159
- var NetworkError = class extends OpenCloudError {
160
- method;
161
- name = "NetworkError";
162
- url;
163
- /**
164
- * Creates a new NetworkError.
165
- *
166
- * @param message - Human-readable error description.
167
- * @param options - Error options including the optional `cause` and the
168
- * `method` / `url` of the request that failed.
169
- */
170
- constructor(message, options) {
171
- super(message, options);
172
- this.method = options?.method;
173
- this.url = options?.url;
174
- }
175
- };
176
- //#endregion
177
149
  //#region src/errors/rate-limit.ts
178
150
  /**
179
151
  * Thrown when the Roblox Open Cloud API returns a 429 Too Many Requests
@@ -219,7 +191,55 @@ var RateLimitError = class extends OpenCloudError {
219
191
  this.statusCode = options.statusCode;
220
192
  }
221
193
  };
194
+ const GUIDED_ERRORS = /* @__PURE__ */ new WeakSet();
195
+ /**
196
+ * Marks a transport-minted error whose zero-second delay is explicit guidance.
197
+ *
198
+ * @param error - The classified rate-limit failure.
199
+ * @returns The same error, marked for retry orchestration.
200
+ */
201
+ function markServerRetryGuidance(error) {
202
+ GUIDED_ERRORS.add(error);
203
+ return error;
204
+ }
205
+ /**
206
+ * Checks whether an error carries applicable server retry guidance.
207
+ *
208
+ * @param error - The rate-limit failure to inspect.
209
+ * @returns Whether its delay should override caller backoff.
210
+ */
211
+ function hasServerRetryGuidance(error) {
212
+ return error.retryAfterSeconds > 0 || GUIDED_ERRORS.has(error);
213
+ }
214
+ //#endregion
215
+ //#region src/errors/network-error.ts
216
+ /**
217
+ * Thrown when a network-level failure prevents the request from reaching
218
+ * the Roblox Open Cloud API (e.g., DNS resolution failure, connection reset).
219
+ * The `method` and `url` name the failing call so a transport failure that
220
+ * survives every retry can be diagnosed; the underlying transport error is
221
+ * carried on `cause`.
222
+ *
223
+ * @since 0.1.0
224
+ */
225
+ var NetworkError = class extends OpenCloudError {
226
+ method;
227
+ name = "NetworkError";
228
+ url;
229
+ /**
230
+ * Creates a new NetworkError.
231
+ *
232
+ * @param message - Human-readable error description.
233
+ * @param options - Error options including the optional `cause` and the
234
+ * `method` / `url` of the request that failed.
235
+ */
236
+ constructor(message, options) {
237
+ super(message, options);
238
+ this.method = options?.method;
239
+ this.url = options?.url;
240
+ }
241
+ };
222
242
  //#endregion
223
- export { OpenCloudError as a, requestContextOf as i, NetworkError as n, ApiError as r, RateLimitError as t };
243
+ export { ApiError as a, markServerRetryGuidance as i, RateLimitError as n, requestContextOf as o, hasServerRetryGuidance as r, OpenCloudError as s, NetworkError as t };
224
244
 
225
- //# sourceMappingURL=rate-limit-Df55K34f.mjs.map
245
+ //# sourceMappingURL=network-error-DmNy_j-u.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"network-error-DmNy_j-u.mjs","names":[],"sources":["../src/errors/base.ts","../src/errors/api-error.ts","../src/errors/rate-limit.ts","../src/errors/network-error.ts"],"sourcesContent":["/**\n * Options for constructing an {@link OpenCloudError}.\n *\n * @since 0.3.0\n */\nexport interface OpenCloudErrorOptions extends ErrorOptions {\n\t/**\n\t * Machine-readable classifier for the failure, when the error has one. An\n\t * `ApiError` fills it from the response body; a `ValidationError` narrows\n\t * it to its own closed union. Errors with nothing to classify (transport\n\t * failures, rate limits, poll timeouts) leave it `undefined`.\n\t */\n\treadonly code?: string | undefined;\n}\n\n/**\n * Base error class for all Open Cloud SDK errors.\n *\n * All specific error types (RateLimitError, ApiError, NetworkError)\n * extend this class, enabling `instanceof OpenCloudError` checks.\n *\n * `code` is declared here rather than on the subclasses that populate it, so a\n * caller holding the `OpenCloudError` that `Result.err` is typed as can branch\n * on it without first narrowing to a subclass.\n *\n * @since 0.1.0\n *\n * @example\n *\n * ```ts\n * import { ApiError, OpenCloudError } from \"@bedrock-rbx/ocale\";\n *\n * // `Result.err` is typed as OpenCloudError, so a caller draining a queue\n * // branches on the canonical status without narrowing to a subclass first.\n * const err: OpenCloudError = new ApiError(\"HTTP 404: Queue items not found.\", {\n * code: \"NOT_FOUND\",\n * statusCode: 404,\n * });\n *\n * expect(err.code).toBe(\"NOT_FOUND\");\n * expect(new OpenCloudError(\"no classifier\").code).toBeUndefined();\n * ```\n */\nexport class OpenCloudError extends Error {\n\t/** Machine-readable classifier, or `undefined` when the error has none. */\n\tpublic readonly code: string | undefined;\n\tpublic override readonly name: string = \"OpenCloudError\";\n\n\t/**\n\t * Creates a new OpenCloudError.\n\t *\n\t * @param message - Human-readable error description.\n\t * @param options - Error options including the optional `cause` and the\n\t * machine-readable `code`.\n\t */\n\tconstructor(message?: string, options?: OpenCloudErrorOptions) {\n\t\tsuper(message, options);\n\t\tthis.code = options?.code;\n\t}\n}\n","import { OpenCloudError, type OpenCloudErrorOptions } from \"./base.ts\";\n\n/**\n * Options for constructing an {@link ApiError}.\n *\n * @since 0.1.0\n */\nexport interface ApiErrorOptions extends OpenCloudErrorOptions {\n\t/** Parsed response body, when present. */\n\tdetails?: JSONValue | undefined;\n\t/**\n\t * Wall-clock time the request was in flight before this error, in\n\t * milliseconds. Present for errors built by the transport; a long elapsed\n\t * time on an intermittent failure points at a load or timeout correlation.\n\t */\n\telapsedMs?: number | undefined;\n\t/**\n\t * Human-readable summary extracted from an HTML gateway error page, set\n\t * when the error body was such a page (an HAProxy-style load-balancer\n\t * rejection) rather than an Open Cloud response. When present, the raw HTML\n\t * is not retained on {@link ApiError.details}.\n\t */\n\tgatewaySummary?: string | undefined;\n\t/** HTTP method of the request that produced this error. */\n\tmethod?: string | undefined;\n\t/**\n\t * Allowlisted response headers useful for diagnosis and escalation (request\n\t * ids, edge/server identifiers). The full header set is never retained, to\n\t * avoid surfacing anything sensitive and to keep errors light.\n\t */\n\tresponseHeaders?: Readonly<Record<string, string>> | undefined;\n\t/** HTTP status code from the API response. */\n\tstatusCode: number;\n\t/**\n\t * Length, in decoded characters, of a 2xx body that could not be parsed as\n\t * JSON. Set only by the transport, and only for that failure — nothing else\n\t * builds an {@link ApiError} over a successful status — so its presence is\n\t * also how a body-parse failure is told apart from an API rejection. The\n\t * number is the diagnostic one: a body that stops mid-token at exactly the\n\t * length the edge delivered is a truncated read, not malformed JSON.\n\t */\n\tunparsedBodyLength?: number | undefined;\n\t/** Fully-qualified URL of the request that produced this error. */\n\turl?: string | undefined;\n}\n\n/**\n * Everything in {@link ApiErrorOptions} except what the API answered ({@link\n * ApiErrorOptions.code}, {@link ApiErrorOptions.details}, and {@link\n * ApiErrorOptions.statusCode}): the request the transport made, how long it was\n * in flight, and what the response carried alongside its body. Every field is\n * required, and every one accepts `undefined` for a field the transport did not\n * capture.\n *\n * @since 0.2.0\n */\nexport type ApiRequestContext = {\n\t[K in Exclude<keyof ApiErrorOptions, \"cause\" | \"code\" | \"details\" | \"statusCode\">]-?:\n\t\t| ApiErrorOptions[K]\n\t\t| undefined;\n};\n\n/**\n * Thrown when the Roblox Open Cloud API returns a non-2xx response\n * that is not a rate limit (429).\n *\n * @since 0.1.0\n *\n * @example\n *\n * ```ts\n * import { ApiError } from \"@bedrock-rbx/ocale\";\n *\n * const error = new ApiError(\"HTTP 404: Pass not found (code NotFound)\", {\n * code: \"NotFound\",\n * details: { errorCode: \"NotFound\", message: \"Pass not found\" },\n * statusCode: 404,\n * });\n *\n * expect(error).toBeInstanceOf(ApiError);\n * expect(error.statusCode).toBe(404);\n * expect(error.code).toBe(\"NotFound\");\n * expect(error.details).toEqual({\n * errorCode: \"NotFound\",\n * message: \"Pass not found\",\n * });\n * ```\n */\nexport class ApiError extends OpenCloudError {\n\tpublic readonly details: JSONValue | undefined;\n\tpublic readonly elapsedMs: number | undefined;\n\tpublic readonly gatewaySummary: string | undefined;\n\tpublic readonly method: string | undefined;\n\tpublic override readonly name: string = \"ApiError\";\n\tpublic readonly responseHeaders: Readonly<Record<string, string>> | undefined;\n\tpublic readonly statusCode: number;\n\tpublic readonly unparsedBodyLength: number | undefined;\n\tpublic readonly url: string | undefined;\n\n\t/**\n\t * Creates a new ApiError.\n\t *\n\t * @param message - Human-readable error description.\n\t * @param options - Error options including status code, optional error\n\t * code, the parsed response body when present, and the request context\n\t * (method, url, elapsed time, allowlisted response headers) when built by\n\t * the transport.\n\t */\n\tconstructor(message: string, options: ApiErrorOptions) {\n\t\tsuper(message, options);\n\t\tthis.statusCode = options.statusCode;\n\t\tthis.details = options.details;\n\t\tthis.method = options.method;\n\t\tthis.url = options.url;\n\t\tthis.elapsedMs = options.elapsedMs;\n\t\tthis.responseHeaders = options.responseHeaders;\n\t\tthis.gatewaySummary = options.gatewaySummary;\n\t\tthis.unparsedBodyLength = options.unparsedBodyLength;\n\t}\n}\n\n/**\n * Reads the request context off an {@link ApiError} so a replacement error can\n * carry it. Spread the result into the options of the new error. {@link\n * OpenCloudError.code}, {@link ApiError.details}, and {@link\n * ApiError.statusCode} describe the API's answer and are left to the caller.\n *\n * @since 0.2.0\n *\n * @param err - The error to read the request context from.\n * @returns The transport-captured fields, each undefined when unset.\n *\n * @example\n *\n * ```ts\n * import { ApiError, requestContextOf } from \"@bedrock-rbx/ocale\";\n *\n * const original = new ApiError(\"HTTP 404\", {\n * elapsedMs: 512,\n * method: \"GET\",\n * statusCode: 404,\n * url: \"https://apis.roblox.com/cloud/v2/universes/1\",\n * });\n *\n * const rewrapped = new ApiError(\"Universe 1 was not found; adoption failed\", {\n * ...requestContextOf(original),\n * statusCode: 404,\n * });\n *\n * expect(rewrapped.method).toBe(\"GET\");\n * expect(rewrapped.url).toBe(\"https://apis.roblox.com/cloud/v2/universes/1\");\n * expect(rewrapped.elapsedMs).toBe(512);\n * ```\n */\nexport function requestContextOf(err: ApiError): ApiRequestContext {\n\treturn {\n\t\telapsedMs: err.elapsedMs,\n\t\tgatewaySummary: err.gatewaySummary,\n\t\tmethod: err.method,\n\t\tresponseHeaders: err.responseHeaders,\n\t\tunparsedBodyLength: err.unparsedBodyLength,\n\t\turl: err.url,\n\t};\n}\n","import { OpenCloudError } from \"./base.ts\";\n\n/**\n * Options for constructing a {@link RateLimitError}.\n *\n * @since 0.1.0\n */\nexport interface RateLimitErrorOptions extends ErrorOptions {\n\t/**\n\t * Parsed 429 response body, when present. Holds the server's throttle\n\t * explanation (JSON when the body parses, otherwise the truncated raw\n\t * text) so a rate limit stays diagnosable from the error alone.\n\t */\n\tdetails?: JSONValue | undefined;\n\t/**\n\t * Requests still allowed in the throttled window, read from\n\t * `x-ratelimit-remaining` (the most-constrained window). `undefined` when\n\t * the header is absent or carries no valid non-negative integer token;\n\t * parsed independently of `x-ratelimit-reset`, so a valid value survives\n\t * an invalid reset. Typically `0` on a genuine 429.\n\t */\n\tremaining?: number | undefined;\n\t/** Seconds to wait before retrying the request. */\n\tretryAfterSeconds: number;\n\t/**\n\t * HTTP status code that produced the error. Always `429` when minted by the\n\t * SDK transport; `undefined` when constructed without one.\n\t */\n\tstatusCode?: number | undefined;\n}\n\n/**\n * Thrown when the Roblox Open Cloud API returns a 429 Too Many Requests\n * response. Contains the server-suggested retry delay.\n *\n * @since 0.1.0\n *\n * @example\n *\n * ```ts\n * import { RateLimitError } from \"@bedrock-rbx/ocale\";\n *\n * const error = new RateLimitError(\"Too many requests\", {\n * retryAfterSeconds: 30,\n * });\n *\n * expect(error).toBeInstanceOf(RateLimitError);\n * expect(error.retryAfterSeconds).toBe(30);\n * ```\n */\nexport class RateLimitError extends OpenCloudError {\n\t/** Parsed 429 response body, or `undefined` when none was carried. */\n\tpublic readonly details: JSONValue | undefined;\n\tpublic override readonly name = \"RateLimitError\";\n\t/**\n\t * Requests left in the throttled window, or `undefined` if not reported.\n\t */\n\tpublic readonly remaining: number | undefined;\n\tpublic readonly retryAfterSeconds: number;\n\t/** HTTP status code that produced the error, or `undefined` if not set. */\n\tpublic readonly statusCode: number | undefined;\n\n\t/**\n\t * Creates a new RateLimitError.\n\t *\n\t * @param message - Human-readable error description.\n\t * @param options - Error options including the retry delay.\n\t */\n\tconstructor(message: string, options: RateLimitErrorOptions) {\n\t\tsuper(message, options);\n\t\tthis.retryAfterSeconds = options.retryAfterSeconds;\n\t\tthis.remaining = options.remaining;\n\t\tthis.details = options.details;\n\t\tthis.statusCode = options.statusCode;\n\t}\n}\n\nconst GUIDED_ERRORS = new WeakSet<RateLimitError>();\n\n/**\n * Marks a transport-minted error whose zero-second delay is explicit guidance.\n *\n * @param error - The classified rate-limit failure.\n * @returns The same error, marked for retry orchestration.\n */\nexport function markServerRetryGuidance(error: RateLimitError): RateLimitError {\n\tGUIDED_ERRORS.add(error);\n\treturn error;\n}\n\n/**\n * Checks whether an error carries applicable server retry guidance.\n *\n * @param error - The rate-limit failure to inspect.\n * @returns Whether its delay should override caller backoff.\n */\nexport function hasServerRetryGuidance(error: RateLimitError): boolean {\n\treturn error.retryAfterSeconds > 0 || GUIDED_ERRORS.has(error);\n}\n","import { OpenCloudError } from \"./base.ts\";\n\n/**\n * Options for constructing a {@link NetworkError}.\n *\n * @since 0.1.0\n */\nexport interface NetworkErrorOptions extends ErrorOptions {\n\t/** HTTP method of the request that failed. */\n\tmethod?: string | undefined;\n\t/** Fully-qualified URL of the request that failed. */\n\turl?: string | undefined;\n}\n\n/**\n * Thrown when a network-level failure prevents the request from reaching\n * the Roblox Open Cloud API (e.g., DNS resolution failure, connection reset).\n * The `method` and `url` name the failing call so a transport failure that\n * survives every retry can be diagnosed; the underlying transport error is\n * carried on `cause`.\n *\n * @since 0.1.0\n */\nexport class NetworkError extends OpenCloudError {\n\tpublic readonly method: string | undefined;\n\tpublic override readonly name: string = \"NetworkError\";\n\tpublic readonly url: string | undefined;\n\n\t/**\n\t * Creates a new NetworkError.\n\t *\n\t * @param message - Human-readable error description.\n\t * @param options - Error options including the optional `cause` and the\n\t * `method` / `url` of the request that failed.\n\t */\n\tconstructor(message: string, options?: NetworkErrorOptions) {\n\t\tsuper(message, options);\n\t\tthis.method = options?.method;\n\t\tthis.url = options?.url;\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CA,IAAa,iBAAb,cAAoC,MAAM;;CAEzC;CACA,OAAwC;;;;;;;;CASxC,YAAY,SAAkB,SAAiC;EAC9D,MAAM,SAAS,OAAO;EACtB,KAAK,OAAO,SAAS;CACtB;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC6BA,IAAa,WAAb,cAA8B,eAAe;CAC5C;CACA;CACA;CACA;CACA,OAAwC;CACxC;CACA;CACA;CACA;;;;;;;;;;CAWA,YAAY,SAAiB,SAA0B;EACtD,MAAM,SAAS,OAAO;EACtB,KAAK,aAAa,QAAQ;EAC1B,KAAK,UAAU,QAAQ;EACvB,KAAK,SAAS,QAAQ;EACtB,KAAK,MAAM,QAAQ;EACnB,KAAK,YAAY,QAAQ;EACzB,KAAK,kBAAkB,QAAQ;EAC/B,KAAK,iBAAiB,QAAQ;EAC9B,KAAK,qBAAqB,QAAQ;CACnC;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,SAAgB,iBAAiB,KAAkC;CAClE,OAAO;EACN,WAAW,IAAI;EACf,gBAAgB,IAAI;EACpB,QAAQ,IAAI;EACZ,iBAAiB,IAAI;EACrB,oBAAoB,IAAI;EACxB,KAAK,IAAI;CACV;AACD;;;;;;;;;;;;;;;;;;;;;;ACjHA,IAAa,iBAAb,cAAoC,eAAe;;CAElD;CACA,OAAgC;;;;CAIhC;CACA;;CAEA;;;;;;;CAQA,YAAY,SAAiB,SAAgC;EAC5D,MAAM,SAAS,OAAO;EACtB,KAAK,oBAAoB,QAAQ;EACjC,KAAK,YAAY,QAAQ;EACzB,KAAK,UAAU,QAAQ;EACvB,KAAK,aAAa,QAAQ;CAC3B;AACD;AAEA,MAAM,gCAAgB,IAAI,QAAwB;;;;;;;AAQlD,SAAgB,wBAAwB,OAAuC;CAC9E,cAAc,IAAI,KAAK;CACvB,OAAO;AACR;;;;;;;AAQA,SAAgB,uBAAuB,OAAgC;CACtE,OAAO,MAAM,oBAAoB,KAAK,cAAc,IAAI,KAAK;AAC9D;;;;;;;;;;;;AC3EA,IAAa,eAAb,cAAkC,eAAe;CAChD;CACA,OAAwC;CACxC;;;;;;;;CASA,YAAY,SAAiB,SAA+B;EAC3D,MAAM,SAAS,OAAO;EACtB,KAAK,SAAS,SAAS;EACvB,KAAK,MAAM,SAAS;CACrB;AACD"}
package/dist/places.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { d as OpenCloudError, i as OpenCloudClientOptions, l as Result, s as RequestOptions } from "./types-mhEalVsR.mjs";
2
- import { a as LogPage, c as GetParameters, d as LuauExecutionTaskRef, f as SubmitAtHeadParameters, i as LogMessage, p as SubmitAtVersionParameters, r as ListLogsParameters, t as PollUntilDoneOptions, u as LuauExecutionTask } from "./polling-Bs0GDvEa.mjs";
1
+ import { f as Result, m as OpenCloudError, s as OpenCloudClientOptions, u as RequestOptions } from "./types-D_njb3qW.mjs";
2
+ import { a as LogPage, c as GetParameters, d as LuauExecutionTaskRef, f as SubmitAtHeadParameters, i as LogMessage, p as SubmitAtVersionParameters, r as ListLogsParameters, t as PollUntilDoneOptions, u as LuauExecutionTask } from "./polling-0t1wQyVY.mjs";
3
3
 
4
4
  //#region src/domains/cloud-v2/places/types.d.ts
5
5
  /**
package/dist/places.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import { r as ApiError } from "./rate-limit-Df55K34f.mjs";
2
- import { o as UPLOAD_METHOD_DEFAULTS } from "./retry-DM2-tlR8.mjs";
3
- import { t as ValidationError } from "./validation-Cg2lBhpQ.mjs";
4
- import { a as isRecord, i as toJsonDetails, o as isDateTimeString, t as ResourceClient } from "./resource-client-DtfDWglY.mjs";
5
- import { c as SUBMIT_VERSION_SPEC, i as pollUntilDoneCoreAsync, l as LIST_LOGS_SPEC, n as submitAndPollAsync, o as GET_SPEC, s as SUBMIT_HEAD_SPEC, t as buildPollDependencies } from "./polling-helpers-BjFXyaOm.mjs";
1
+ import { a as ApiError } from "./network-error-DmNy_j-u.mjs";
2
+ import { o as UPLOAD_METHOD_DEFAULTS } from "./retry-DIK_T_oF.mjs";
3
+ import { t as ValidationError } from "./validation-BwjwOJPD.mjs";
4
+ import { a as isRecord, i as toJsonDetails, o as isDateTimeString, t as ResourceClient } from "./resource-client-aqk_V4TD.mjs";
5
+ import { c as SUBMIT_VERSION_SPEC, i as pollUntilDoneCoreAsync, l as LIST_LOGS_SPEC, n as submitAndPollAsync, o as GET_SPEC, s as SUBMIT_HEAD_SPEC, t as buildPollDependencies } from "./polling-helpers-CzdT2FS5.mjs";
6
6
  import { n as RBXL_SIGNATURE, r as matchesSignature, t as RBXLX_SIGNATURE } from "./signatures-JF-7Psce.mjs";
7
7
  //#region src/domains/cloud-v2/places/builders.ts
8
8
  const NON_UPDATABLE_KEYS = new Set(["placeId", "universeId"]);
@@ -1,4 +1,4 @@
1
- import { a as OpenCloudError } from "./rate-limit-Df55K34f.mjs";
1
+ import { s as OpenCloudError } from "./network-error-DmNy_j-u.mjs";
2
2
  //#region src/errors/poll-aborted.ts
3
3
  /**
4
4
  * Returned when `pollUntilDone` is interrupted by an `AbortSignal` before
@@ -80,4 +80,4 @@ var PollTimeoutError = class extends OpenCloudError {
80
80
  //#endregion
81
81
  export { PollAbortedError as n, PollTimeoutError as t };
82
82
 
83
- //# sourceMappingURL=poll-timeout-DpEY-gAc.mjs.map
83
+ //# sourceMappingURL=poll-timeout-wrPTnGl_.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"poll-timeout-DpEY-gAc.mjs","names":[],"sources":["../src/errors/poll-aborted.ts","../src/errors/poll-timeout.ts"],"sourcesContent":["import { OpenCloudError } from \"./base.ts\";\n\n/**\n * Options for constructing a {@link PollAbortedError}.\n *\n * @since 0.1.0\n */\nexport interface PollAbortedErrorOptions extends ErrorOptions {\n\t/** Whatever `AbortSignal.reason` was at the moment of abort. */\n\treadonly reason?: unknown;\n}\n\n/**\n * Returned when `pollUntilDone` is interrupted by an `AbortSignal` before\n * a terminal task state is reached. The `reason` field mirrors\n * `AbortSignal.reason` so callers can distinguish intentional cancellation\n * from unexpected abort sources.\n *\n * @since 0.1.0\n *\n * @example\n *\n * ```ts\n * import { PollAbortedError } from \"@bedrock-rbx/ocale\";\n *\n * const error = new PollAbortedError(\"polling was aborted\", {\n * reason: \"user cancelled\",\n * });\n *\n * expect(error).toBeInstanceOf(PollAbortedError);\n * expect(error.reason).toBe(\"user cancelled\");\n * ```\n */\nexport class PollAbortedError extends OpenCloudError {\n\tpublic override readonly name: string = \"PollAbortedError\";\n\tpublic readonly reason?: unknown;\n\n\t/**\n\t * Creates a new PollAbortedError.\n\t *\n\t * @param message - Human-readable description of the abort.\n\t * @param options - Error options including the abort reason.\n\t */\n\tconstructor(message: string, options: PollAbortedErrorOptions = {}) {\n\t\tsuper(message, options);\n\t\tthis.reason = options.reason;\n\t}\n}\n","import { OpenCloudError } from \"./base.ts\";\n\n/**\n * Options for {@link PollTimeoutError}. The `T` type parameter captures the\n * resource-specific task variant the caller polled for; defaults to `unknown`\n * so the class can be reused by future Resources without forcing a parallel\n * hierarchy.\n *\n * @since 0.1.0\n *\n * @template T - Resource-specific task type being polled.\n */\nexport interface PollTimeoutErrorOptions<T = unknown> extends ErrorOptions {\n\t/** Last task observed before the timeout budget was exhausted. */\n\treadonly lastObservedTask?: T | undefined;\n\t/** Total wall-clock budget supplied by the caller, in ms. */\n\treadonly timeoutMs: number;\n}\n\n/**\n * Returned when `pollUntilDone` exhausts its wall-clock budget without\n * observing a terminal task state. Carries the last task polled so callers\n * can inspect state and decide whether to retry with a fresh budget.\n *\n * @since 0.1.0\n *\n * @template T - Resource-specific task type being polled.\n *\n * @example\n *\n * ```ts\n * import { PollTimeoutError } from \"@bedrock-rbx/ocale\";\n *\n * const error = new PollTimeoutError(\"polling timed out after 5 s\", {\n * lastObservedTask: { state: \"PROCESSING\" as const },\n * timeoutMs: 5000,\n * });\n *\n * expect(error).toBeInstanceOf(PollTimeoutError);\n * expect(error.timeoutMs).toBe(5000);\n * expect(error.lastObservedTask).toStrictEqual({ state: \"PROCESSING\" });\n * ```\n */\nexport class PollTimeoutError<T = unknown> extends OpenCloudError {\n\tpublic readonly lastObservedTask: T | undefined;\n\tpublic override readonly name: string = \"PollTimeoutError\";\n\tpublic readonly timeoutMs: number;\n\n\t/**\n\t * Creates a new PollTimeoutError.\n\t *\n\t * @param message - Human-readable description of the timeout.\n\t * @param options - Error options including the budget and last-observed task.\n\t */\n\tconstructor(message: string, options: PollTimeoutErrorOptions<T>) {\n\t\tsuper(message, options);\n\t\tthis.lastObservedTask = options.lastObservedTask;\n\t\tthis.timeoutMs = options.timeoutMs;\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAiCA,IAAa,mBAAb,cAAsC,eAAe;CACpD,OAAwC;CACxC;;;;;;;CAQA,YAAY,SAAiB,UAAmC,CAAC,GAAG;EACnE,MAAM,SAAS,OAAO;EACtB,KAAK,SAAS,QAAQ;CACvB;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;ACJA,IAAa,mBAAb,cAAmD,eAAe;CACjE;CACA,OAAwC;CACxC;;;;;;;CAQA,YAAY,SAAiB,SAAqC;EACjE,MAAM,SAAS,OAAO;EACtB,KAAK,mBAAmB,QAAQ;EAChC,KAAK,YAAY,QAAQ;CAC1B;AACD"}
1
+ {"version":3,"file":"poll-timeout-wrPTnGl_.mjs","names":[],"sources":["../src/errors/poll-aborted.ts","../src/errors/poll-timeout.ts"],"sourcesContent":["import { OpenCloudError } from \"./base.ts\";\n\n/**\n * Options for constructing a {@link PollAbortedError}.\n *\n * @since 0.1.0\n */\nexport interface PollAbortedErrorOptions extends ErrorOptions {\n\t/** Whatever `AbortSignal.reason` was at the moment of abort. */\n\treadonly reason?: unknown;\n}\n\n/**\n * Returned when `pollUntilDone` is interrupted by an `AbortSignal` before\n * a terminal task state is reached. The `reason` field mirrors\n * `AbortSignal.reason` so callers can distinguish intentional cancellation\n * from unexpected abort sources.\n *\n * @since 0.1.0\n *\n * @example\n *\n * ```ts\n * import { PollAbortedError } from \"@bedrock-rbx/ocale\";\n *\n * const error = new PollAbortedError(\"polling was aborted\", {\n * reason: \"user cancelled\",\n * });\n *\n * expect(error).toBeInstanceOf(PollAbortedError);\n * expect(error.reason).toBe(\"user cancelled\");\n * ```\n */\nexport class PollAbortedError extends OpenCloudError {\n\tpublic override readonly name: string = \"PollAbortedError\";\n\tpublic readonly reason?: unknown;\n\n\t/**\n\t * Creates a new PollAbortedError.\n\t *\n\t * @param message - Human-readable description of the abort.\n\t * @param options - Error options including the abort reason.\n\t */\n\tconstructor(message: string, options: PollAbortedErrorOptions = {}) {\n\t\tsuper(message, options);\n\t\tthis.reason = options.reason;\n\t}\n}\n","import { OpenCloudError } from \"./base.ts\";\n\n/**\n * Options for {@link PollTimeoutError}. The `T` type parameter captures the\n * resource-specific task variant the caller polled for; defaults to `unknown`\n * so the class can be reused by future Resources without forcing a parallel\n * hierarchy.\n *\n * @since 0.1.0\n *\n * @template T - Resource-specific task type being polled.\n */\nexport interface PollTimeoutErrorOptions<T = unknown> extends ErrorOptions {\n\t/** Last task observed before the timeout budget was exhausted. */\n\treadonly lastObservedTask?: T | undefined;\n\t/** Total wall-clock budget supplied by the caller, in ms. */\n\treadonly timeoutMs: number;\n}\n\n/**\n * Returned when `pollUntilDone` exhausts its wall-clock budget without\n * observing a terminal task state. Carries the last task polled so callers\n * can inspect state and decide whether to retry with a fresh budget.\n *\n * @since 0.1.0\n *\n * @template T - Resource-specific task type being polled.\n *\n * @example\n *\n * ```ts\n * import { PollTimeoutError } from \"@bedrock-rbx/ocale\";\n *\n * const error = new PollTimeoutError(\"polling timed out after 5 s\", {\n * lastObservedTask: { state: \"PROCESSING\" as const },\n * timeoutMs: 5000,\n * });\n *\n * expect(error).toBeInstanceOf(PollTimeoutError);\n * expect(error.timeoutMs).toBe(5000);\n * expect(error.lastObservedTask).toStrictEqual({ state: \"PROCESSING\" });\n * ```\n */\nexport class PollTimeoutError<T = unknown> extends OpenCloudError {\n\tpublic readonly lastObservedTask: T | undefined;\n\tpublic override readonly name: string = \"PollTimeoutError\";\n\tpublic readonly timeoutMs: number;\n\n\t/**\n\t * Creates a new PollTimeoutError.\n\t *\n\t * @param message - Human-readable description of the timeout.\n\t * @param options - Error options including the budget and last-observed task.\n\t */\n\tconstructor(message: string, options: PollTimeoutErrorOptions<T>) {\n\t\tsuper(message, options);\n\t\tthis.lastObservedTask = options.lastObservedTask;\n\t\tthis.timeoutMs = options.timeoutMs;\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAiCA,IAAa,mBAAb,cAAsC,eAAe;CACpD,OAAwC;CACxC;;;;;;;CAQA,YAAY,SAAiB,UAAmC,CAAC,GAAG;EACnE,MAAM,SAAS,OAAO;EACtB,KAAK,SAAS,QAAQ;CACvB;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;ACJA,IAAa,mBAAb,cAAmD,eAAe;CACjE;CACA,OAAwC;CACxC;;;;;;;CAQA,YAAY,SAAiB,SAAqC;EACjE,MAAM,SAAS,OAAO;EACtB,KAAK,mBAAmB,QAAQ;EAChC,KAAK,YAAY,QAAQ;CAC1B;AACD"}
@@ -1,4 +1,4 @@
1
- import { s as RequestOptions } from "./types-mhEalVsR.mjs";
1
+ import { u as RequestOptions } from "./types-D_njb3qW.mjs";
2
2
 
3
3
  //#region src/domains/cloud-v2/luau-execution-tasks/types.d.ts
4
4
  /**
@@ -97,13 +97,18 @@ interface GetParameters {
97
97
  /**
98
98
  * Discriminated variant carrying every state in which the task has not
99
99
  * yet produced output or an error: queued for execution, currently
100
- * executing, or cancelled by the caller.
100
+ * executing, or cancelled by the caller. `STATE_UNSPECIFIED` is the
101
+ * schema's default enum value, surfaced verbatim when the server sends
102
+ * it; pollers treat it as non-terminal.
101
103
  *
102
104
  * @since 0.1.0
103
105
  */
104
106
  interface InProgressTask extends LuauExecutionTaskBase {
105
- /** Discriminator: the task is queued, processing, or cancelled. */
106
- readonly state: "CANCELLED" | "PROCESSING" | "QUEUED";
107
+ /**
108
+ * Discriminator: the task is unspecified, queued, processing, or
109
+ * cancelled.
110
+ */
111
+ readonly state: "CANCELLED" | "PROCESSING" | "QUEUED" | "STATE_UNSPECIFIED";
107
112
  }
108
113
  /**
109
114
  * Discriminated variant carrying the script's return values. The
@@ -127,9 +132,9 @@ interface CompleteTask extends LuauExecutionTaskBase {
127
132
  }
128
133
  /**
129
134
  * Discriminated variant carrying the categorical error code and a
130
- * human-readable message describing the failure. The
131
- * `ERROR_CODE_UNSPECIFIED` wire sentinel is rejected by the parser, so
132
- * `code` is narrowed here to the four substantive error categories.
135
+ * human-readable message describing the failure. `code` mirrors the
136
+ * wire enum verbatim, including the schema's `ERROR_CODE_UNSPECIFIED`
137
+ * default.
133
138
  *
134
139
  * @since 0.1.0
135
140
  */
@@ -140,9 +145,10 @@ interface FailedTask extends LuauExecutionTaskBase {
140
145
  * `SCRIPT_ERROR` for unhandled Luau errors, `DEADLINE_EXCEEDED`
141
146
  * when the script outran its timeout, `OUTPUT_SIZE_LIMIT_EXCEEDED`
142
147
  * when the return values exceeded 4 MB, or `INTERNAL_ERROR` for
143
- * server-side faults.
148
+ * server-side faults. `ERROR_CODE_UNSPECIFIED` is the schema's
149
+ * default value, passed through when the server sends it.
144
150
  */
145
- readonly code: "DEADLINE_EXCEEDED" | "INTERNAL_ERROR" | "OUTPUT_SIZE_LIMIT_EXCEEDED" | "SCRIPT_ERROR"; /** Human-readable description of the failure. */
151
+ readonly code: "DEADLINE_EXCEEDED" | "ERROR_CODE_UNSPECIFIED" | "INTERNAL_ERROR" | "OUTPUT_SIZE_LIMIT_EXCEEDED" | "SCRIPT_ERROR"; /** Human-readable description of the failure. */
146
152
  readonly message: string;
147
153
  };
148
154
  /** Discriminator: the task ran but failed before producing output. */
@@ -233,10 +239,11 @@ interface LogMessage {
233
239
  /** Human-readable log message text. */
234
240
  readonly message: string;
235
241
  /**
236
- * Categorical message type. The wire `MESSAGE_TYPE_UNSPECIFIED`
237
- * sentinel is rejected by the parser and never surfaces here.
242
+ * Categorical message type, mirroring the wire enum verbatim.
243
+ * `MESSAGE_TYPE_UNSPECIFIED` is the schema's default value, passed
244
+ * through when the server sends it.
238
245
  */
239
- readonly messageType: "ERROR" | "INFO" | "OUTPUT" | "WARNING";
246
+ readonly messageType: "ERROR" | "INFO" | "MESSAGE_TYPE_UNSPECIFIED" | "OUTPUT" | "WARNING";
240
247
  }
241
248
  /**
242
249
  * One page of structured log messages from a Luau execution task.
@@ -327,4 +334,4 @@ interface PollOptions {
327
334
  */
328
335
  //#endregion
329
336
  export { LogPage as a, GetParameters as c, LuauExecutionTaskRef as d, SubmitAtHeadParameters as f, LogMessage as i, InProgressTask as l, defaultPollDelay as n, CompleteTask as o, SubmitAtVersionParameters as p, ListLogsParameters as r, FailedTask as s, PollUntilDoneOptions as t, LuauExecutionTask as u };
330
- //# sourceMappingURL=polling-Bs0GDvEa.d.mts.map
337
+ //# sourceMappingURL=polling-0t1wQyVY.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"polling-0t1wQyVY.d.mts","names":[],"sources":["../src/domains/cloud-v2/luau-execution-tasks/types.ts","../src/domains/cloud-v2/luau-execution-task-logs/types.ts","../src/resources/luau-execution/polling.ts"],"mappings":";;;;;;AAOA;;;;UAAiB,sBAAA;;;;;WAKP,WAAA;EAaA;EAAA,SAXA,kBAAA;EAqBV;EAAA,SAnBU,OAAA;;WAEA,MAAA;;;;;WAKA,cAAA;;WAEA,UAAA;AAAA;AA8BA;AAYV;;;;;;AAZU,UApBO,yBAAA;;;;AA0CP;WArCA,WAAA;EA8CO;EAAA,SA5CP,kBAAA;EA8CK;EAAA,SA5CL,OAAA;;WAEA,MAAA;EAgDA;AAAA;AAYV;;EAZU,SA3CA,cAAA;EAuD8B;EAAA,SArD9B,UAAA;EAqEV;EAAA,SAnEU,SAAA;AAAA;;;;;;;;;;UAYO,oBAAA;;WAEP,OAAA;EA6DA;EAAA,SA3DA,SAAA;EAsEO;EAAA,SApEP,MAAA;EAoE0B;EAAA,SAlE1B,UAAA;;WAEA,SAAA;AAAA;;;AAoFA;AASV;;;UApFiB,aAAA;;WAEP,GAAA,EAAK,oBAAA;EAkF6C;;;;;EAAA,SA5ElD,IAAA;AAAA;AA4EkD;;;;;;;;;AAAA,UAhE3C,cAAA,SAAuB,qBAAA;;;;;WAK9B,KAAA;AAAA;;;;;AAqGA;;;;UA1FO,YAAA,SAAqB,qBAAA;EChHrB;;;;;EAAA,SDsHP,MAAA;IAAA,SAAmB,OAAA,EAAS,aAAA,CAAc,SAAA;EAAA;ECzGrC;EAAA,SD2GL,KAAA;AAAA;;;;;;;ACvFA;AAWV;UDuFiB,UAAA,SAAmB,qBAAA;;WAE1B,KAAA;ICvFA;;;;;AAKA;;IALA,SD+FC,IAAA;aAOA,OAAA;EAAA;;WAGD,KAAA;AAAA;AErEV;;;;AAAiD;AAAA;AAAjD,KF8EY,iBAAA,GAAoB,YAAA,GAAe,UAAA,GAAa,cAAA;;;;;;UAOlD,qBAAA;;;;AE7DA;WFkEA,WAAA;;;;;;WAMA,eAAA;;;;;WAKA,SAAA,GAAY,IAAA;;WAEZ,kBAAA;;WAEA,GAAA,EAAK,oBAAA;;;;;;WAML,cAAA;;;;;WAKA,SAAA,GAAY,IAAA;;;;WAIZ,IAAA;AAAA;;;;AA7MV;;;;;UCGiB,kBAAA;;;;;;WAMP,QAAA;EDmBV;;;;EAAA,SCdU,SAAA;;WAEA,GAAA,EAAK,oBAAA;AAAA;;;;;ADgCL;AAYV;;UClCiB,UAAA;EDkCA;EAAA,SChCP,UAAA;;WAEA,OAAA;;;;ADwCA;AASV;WC3CU,WAAA;AAAA;;;;;;ADmDA;AAYV;;UCpDiB,OAAA;EDoDuB;EAAA,SClD9B,QAAA,EAAU,aAAA,CAAc,UAAA;EDkElC;;;;EAAA,SC7DU,aAAA;AAAA;;;;;;;;;;ADpCA;AAUV;;;;;;;;;;;;iBEuBgB,gBAAA,CAAiB,SAAA;;;;AFqDvB;AAWV;;KE9BY,oBAAA,GAAuB,WAAA,GAAc,cAAA;;UAGvC,WAAA;;;;;;WAMA,0BAAA;;;;;WAKA,SAAA,IAAa,SAAA;EFmCvB;;;;EAAA,SE9BU,MAAA,GAAS,WAAA;;;;;WAKT,SAAA;AAAA;AFsDV;;;;;;;;;;;;AAA4D;AAAA"}