@bedrock-rbx/ocale 0.3.4-beta.1 → 0.4.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 (86) hide show
  1. package/README.md +9 -5
  2. package/dist/badge-cost-mismatch-DrlvhlQc.mjs +47 -0
  3. package/dist/badge-cost-mismatch-DrlvhlQc.mjs.map +1 -0
  4. package/dist/badges.d.mts +228 -184
  5. package/dist/badges.d.mts.map +1 -1
  6. package/dist/badges.mjs +176 -18
  7. package/dist/badges.mjs.map +1 -1
  8. package/dist/capacity-admission-hycCFkTo.d.mts +355 -0
  9. package/dist/capacity-admission-hycCFkTo.d.mts.map +1 -0
  10. package/dist/{data.generated-B2ceLfSn.d.mts → data.generated-D_vpa5-g.d.mts} +23 -23
  11. package/dist/data.generated-D_vpa5-g.d.mts.map +1 -0
  12. package/dist/developer-products.d.mts +181 -186
  13. package/dist/developer-products.d.mts.map +1 -1
  14. package/dist/developer-products.mjs +24 -24
  15. package/dist/developer-products.mjs.map +1 -1
  16. package/dist/game-passes.d.mts +206 -203
  17. package/dist/game-passes.d.mts.map +1 -1
  18. package/dist/game-passes.mjs +26 -21
  19. package/dist/game-passes.mjs.map +1 -1
  20. package/dist/index.d.mts +924 -306
  21. package/dist/index.d.mts.map +1 -1
  22. package/dist/index.mjs +325 -10
  23. package/dist/index.mjs.map +1 -1
  24. package/dist/locales.d.mts +30 -2
  25. package/dist/locales.d.mts.map +1 -0
  26. package/dist/locales.mjs +24 -1
  27. package/dist/locales.mjs.map +1 -1
  28. package/dist/luau-execution.d.mts +154 -151
  29. package/dist/luau-execution.d.mts.map +1 -1
  30. package/dist/luau-execution.mjs +11 -8
  31. package/dist/luau-execution.mjs.map +1 -1
  32. package/dist/{network-error-DR9FX5hb.mjs → network-error-iVSng5MT.mjs} +44 -6
  33. package/dist/network-error-iVSng5MT.mjs.map +1 -0
  34. package/dist/places.d.mts +204 -180
  35. package/dist/places.d.mts.map +1 -1
  36. package/dist/places.mjs +66 -20
  37. package/dist/places.mjs.map +1 -1
  38. package/dist/{poll-timeout-3PXLsabj.mjs → poll-timeout-DzztDymd.mjs} +2 -2
  39. package/dist/{poll-timeout-3PXLsabj.mjs.map → poll-timeout-DzztDymd.mjs.map} +1 -1
  40. package/dist/{polling-helpers-sKTsqEc1.mjs → polling-helpers-DfF5dspc.mjs} +249 -83
  41. package/dist/polling-helpers-DfF5dspc.mjs.map +1 -0
  42. package/dist/{price-information-hWXV6DAI.mjs → price-information-DEkEQ8Pq.mjs} +2 -2
  43. package/dist/{price-information-hWXV6DAI.mjs.map → price-information-DEkEQ8Pq.mjs.map} +1 -1
  44. package/dist/resource-client-BCKukheG.d.mts +168 -0
  45. package/dist/resource-client-BCKukheG.d.mts.map +1 -0
  46. package/dist/resource-client-CaIVr-go.mjs +1419 -0
  47. package/dist/resource-client-CaIVr-go.mjs.map +1 -0
  48. package/dist/retry-C2oHesDx.d.mts +229 -0
  49. package/dist/retry-C2oHesDx.d.mts.map +1 -0
  50. package/dist/{retry-vpHMIwaU.mjs → retry-CMRDvAR4.mjs} +390 -20
  51. package/dist/retry-CMRDvAR4.mjs.map +1 -0
  52. package/dist/storage.d.mts +333 -334
  53. package/dist/storage.d.mts.map +1 -1
  54. package/dist/storage.mjs +29 -22
  55. package/dist/storage.mjs.map +1 -1
  56. package/dist/testing.d.mts +347 -360
  57. package/dist/testing.d.mts.map +1 -1
  58. package/dist/testing.mjs +3 -4
  59. package/dist/testing.mjs.map +1 -1
  60. package/dist/types-CdMr_J1M.d.mts +509 -0
  61. package/dist/types-CdMr_J1M.d.mts.map +1 -0
  62. package/dist/universes.d.mts +619 -422
  63. package/dist/universes.d.mts.map +1 -1
  64. package/dist/universes.mjs +421 -48
  65. package/dist/universes.mjs.map +1 -1
  66. package/dist/{validation-B_Zs1So2.mjs → validation-964VNlbp.mjs} +2 -2
  67. package/dist/{validation-B_Zs1So2.mjs.map → validation-964VNlbp.mjs.map} +1 -1
  68. package/dist/wire-DJqupefn.d.mts +41 -0
  69. package/dist/wire-DJqupefn.d.mts.map +1 -0
  70. package/package.json +14 -14
  71. package/dist/capacity-admission-BvnJjY0S.d.mts +0 -369
  72. package/dist/capacity-admission-BvnJjY0S.d.mts.map +0 -1
  73. package/dist/data.generated-B2ceLfSn.d.mts.map +0 -1
  74. package/dist/network-error-DR9FX5hb.mjs.map +0 -1
  75. package/dist/polling-helpers-sKTsqEc1.mjs.map +0 -1
  76. package/dist/resource-client-3cOhqZpX.mjs +0 -899
  77. package/dist/resource-client-3cOhqZpX.mjs.map +0 -1
  78. package/dist/resource-client-BivRq3JZ.d.mts +0 -164
  79. package/dist/resource-client-BivRq3JZ.d.mts.map +0 -1
  80. package/dist/retry-DXEklFrt.d.mts +0 -373
  81. package/dist/retry-DXEklFrt.d.mts.map +0 -1
  82. package/dist/retry-vpHMIwaU.mjs.map +0 -1
  83. package/dist/types-C3Egi37J.d.mts +0 -378
  84. package/dist/types-C3Egi37J.d.mts.map +0 -1
  85. package/dist/wire-D3K-a-UP.d.mts +0 -37
  86. package/dist/wire-D3K-a-UP.d.mts.map +0 -1
@@ -1,378 +0,0 @@
1
- //#region src/errors/base.d.ts
2
- /**
3
- * Options for constructing an {@link OpenCloudError}.
4
- *
5
- * @since 0.3.0
6
- */
7
- interface OpenCloudErrorOptions extends ErrorOptions {
8
- /**
9
- * Machine-readable classifier for the failure, when the error has one. An
10
- * `ApiError` and `RateLimitError` fill it from the response body; a
11
- * `ValidationError` narrows it to its own closed union. Errors with nothing
12
- * to classify (transport failures and poll timeouts) leave it `undefined`.
13
- */
14
- readonly code?: string | undefined;
15
- }
16
- /**
17
- * Base error class for all Open Cloud SDK errors.
18
- *
19
- * All specific error types (RateLimitError, ApiError, NetworkError)
20
- * extend this class, enabling `instanceof OpenCloudError` checks.
21
- *
22
- * `code` is declared here rather than on the subclasses that populate it, so a
23
- * caller holding the `OpenCloudError` that `Result.err` is typed as can branch
24
- * on it without first narrowing to a subclass.
25
- *
26
- * @since 0.1.0
27
- *
28
- * @example
29
- *
30
- * ```ts
31
- * import { ApiError, OpenCloudError } from "@bedrock-rbx/ocale";
32
- *
33
- * // `Result.err` is typed as OpenCloudError, so a caller draining a queue
34
- * // branches on the canonical status without narrowing to a subclass first.
35
- * const err: OpenCloudError = new ApiError("HTTP 404: Queue items not found.", {
36
- * code: "NOT_FOUND",
37
- * statusCode: 404,
38
- * });
39
- *
40
- * expect(err.code).toBe("NOT_FOUND");
41
- * expect(new OpenCloudError("no classifier").code).toBeUndefined();
42
- * ```
43
- */
44
- declare class OpenCloudError extends Error {
45
- /** Machine-readable classifier, or `undefined` when the error has none. */
46
- readonly code: string | undefined;
47
- override readonly name: string;
48
- /**
49
- * Creates a new OpenCloudError.
50
- *
51
- * @param message - Human-readable error description.
52
- * @param options - Error options including the optional `cause` and the
53
- * machine-readable `code`.
54
- */
55
- constructor(message?: string, options?: OpenCloudErrorOptions);
56
- }
57
- //#endregion
58
- //#region src/internal/utils/sleep.d.ts
59
- /**
60
- * Injectable sleep function signature for testing.
61
- *
62
- * @since 0.1.0
63
- */
64
- type SleepFunc = (ms: number, signal?: AbortSignal) => Promise<void>;
65
- //#endregion
66
- //#region src/types.d.ts
67
- /**
68
- * Discriminated union for explicit error handling.
69
- *
70
- * Every SDK client method returns `Promise<Result<T, OpenCloudError>>`.
71
- * Errors are never thrown; they are returned as `{ err, success: false }`.
72
- *
73
- * @since 0.1.0
74
- *
75
- * @template T - The success value type.
76
- * @template E - The error type (defaults to `Error`).
77
- *
78
- * @example
79
- *
80
- * ```ts
81
- * import type { Result } from "@bedrock-rbx/ocale";
82
- *
83
- * function parseAge(input: string): Result<number, Error> {
84
- * const age = Number(input);
85
- * return Number.isFinite(age)
86
- * ? { data: age, success: true }
87
- * : { err: new Error(`Not a number: ${input}`), success: false };
88
- * }
89
- *
90
- * const ok = parseAge("42");
91
- * if (ok.success) {
92
- * // ok.data is narrowed to number here; value is 42
93
- * expect(ok.data).toBe(42);
94
- * }
95
- *
96
- * const bad = parseAge("nope");
97
- * if (!bad.success) {
98
- * // bad.err is narrowed to Error here; message mentions the input
99
- * expect(bad.err.message).toContain("Not a number");
100
- * }
101
- * ```
102
- */
103
- type Result<T, E = Error> = {
104
- data: T;
105
- success: true;
106
- } | {
107
- err: E;
108
- success: false;
109
- };
110
- /**
111
- * One page of a cursor-paginated SDK response.
112
- *
113
- * `list`-style methods on resource clients (for example
114
- * `GamePassesClient.list`) return a {@link Result} wrapping a `Page<T>`.
115
- * `nextPageToken` carries the cursor for the next page when one exists,
116
- * or `undefined` on the last page; the SDK normalizes the wire's
117
- * `null`-vs-absent variants to `undefined` so callers only ever see one
118
- * shape.
119
- *
120
- * @since 0.1.0
121
- *
122
- * @template T - The public item type for the listed resource.
123
- *
124
- * @example
125
- *
126
- * ```ts
127
- * import type { Page } from "@bedrock-rbx/ocale";
128
- *
129
- * const middle: Page<string> = { items: ["a", "b"], nextPageToken: "cursor" };
130
- * expect(middle.items).toEqual(["a", "b"]);
131
- * expect(middle.nextPageToken).toBe("cursor");
132
- *
133
- * const last: Page<string> = { items: ["c"], nextPageToken: undefined };
134
- * expect(last.items).toEqual(["c"]);
135
- * expect(last.nextPageToken).toBeUndefined();
136
- * ```
137
- */
138
- interface Page<T> {
139
- /** Items in this page, in the order returned by the API. */
140
- readonly items: ReadonlyArray<T>;
141
- /** Cursor for the next page; `undefined` on the last page. */
142
- readonly nextPageToken: string | undefined;
143
- }
144
- //#endregion
145
- //#region src/client/types.d.ts
146
- /**
147
- * Why a logical request is waiting for SDK-managed admission.
148
- *
149
- * @example
150
- *
151
- * ```ts
152
- * import type { AdmissionWaitReason } from "@bedrock-rbx/ocale";
153
- *
154
- * const reason: AdmissionWaitReason = "retry-delay";
155
- * expect(reason).toBe("retry-delay");
156
- * ```
157
- *
158
- * @since 0.3.1
159
- */
160
- type AdmissionWaitReason = "operation-capacity" | "operation-queue" | "reported-budget" | "retry-delay";
161
- /**
162
- * One boundary in a request's SDK-managed admission-wait lifecycle.
163
- *
164
- * `durationMs` is the scheduler's intended duration, not elapsed wall time,
165
- * and is absent when the SDK cannot know the duration up front.
166
- *
167
- * @example
168
- *
169
- * ```ts
170
- * import type { AdmissionWaitEvent } from "@bedrock-rbx/ocale";
171
- *
172
- * const event: AdmissionWaitEvent = {
173
- * durationMs: 500,
174
- * phase: "started",
175
- * reason: "reported-budget",
176
- * };
177
- * expect(event.durationMs).toBe(500);
178
- * ```
179
- *
180
- * @since 0.3.1
181
- */
182
- interface AdmissionWaitEvent {
183
- /** Intended wait duration in milliseconds, when known. */
184
- readonly durationMs?: number;
185
- /** Whether the wait has just begun or has finished. */
186
- readonly phase: "ended" | "started";
187
- /** SDK admission mechanism responsible for the wait. */
188
- readonly reason: AdmissionWaitReason;
189
- }
190
- /**
191
- * Receives request-scoped admission-wait lifecycle notifications.
192
- *
193
- * @example
194
- *
195
- * ```ts
196
- * import type { AdmissionWaitEvent, AdmissionWaitObserver } from "@bedrock-rbx/ocale";
197
- *
198
- * const events: AdmissionWaitEvent[] = [];
199
- * const observer: AdmissionWaitObserver = (event) => events.push(event);
200
- * observer({ phase: "started", reason: "operation-queue" });
201
- * expect(events).toHaveLength(1);
202
- * ```
203
- *
204
- * @since 0.3.1
205
- */
206
- type AdmissionWaitObserver = (event: AdmissionWaitEvent) => unknown;
207
- /**
208
- * A normalized HTTP request to send to the Roblox Open Cloud API.
209
- *
210
- * @since 0.1.0
211
- */
212
- interface HttpRequest {
213
- /** The request body. */
214
- readonly body?: HttpRequestBody;
215
- /**
216
- * Caller-supplied request headers. Applied after the transport sets
217
- * `x-api-key` and any body-driven `Content-Type`, so a caller-supplied
218
- * header replaces the transport's default.
219
- */
220
- readonly headers?: Readonly<Record<string, string>>;
221
- /** The HTTP method. */
222
- readonly method: "DELETE" | "GET" | "PATCH" | "POST";
223
- /** Relative path, e.g. `/game-passes/v1/universes/123/...`. */
224
- readonly url: string;
225
- }
226
- /**
227
- * A normalized HTTP response from the Roblox Open Cloud API.
228
- *
229
- * @since 0.1.0
230
- */
231
- interface HttpResponse {
232
- /**
233
- * The parsed response body. `undefined` when the response had an empty
234
- * body (for example HTTP 204 No Content, or any other status where the
235
- * server returned no payload).
236
- */
237
- readonly body: unknown;
238
- /** Response headers with lowercased keys. */
239
- readonly headers: Readonly<Record<string, string>>;
240
- /** The HTTP status code. */
241
- readonly status: number;
242
- }
243
- /**
244
- * Per-request configuration passed to {@link HttpClient.request}.
245
- *
246
- * @since 0.1.0
247
- */
248
- interface RequestConfig {
249
- /** The Roblox Open Cloud API key. */
250
- readonly apiKey: string;
251
- /** Base URL for the API, e.g. `https://apis.roblox.com`. */
252
- readonly baseUrl: string;
253
- /** Caller cancellation signal for this request. */
254
- readonly signal?: AbortSignal;
255
- /** Optional request timeout in milliseconds. */
256
- readonly timeout?: number;
257
- }
258
- /**
259
- * HTTP transport abstraction. Implementations classify every response into
260
- * a typed {@link Result}.
261
- *
262
- * @since 0.1.0
263
- */
264
- interface HttpClient {
265
- /** Sends an HTTP request and classifies the response. */
266
- request(request: HttpRequest, config: RequestConfig): Promise<Result<HttpResponse, OpenCloudError>>;
267
- }
268
- /**
269
- * Client-level observability hooks. All hooks are notification-only and
270
- * fire-and-forget; they cannot alter retry behaviour.
271
- *
272
- * @since 0.1.0
273
- */
274
- interface OpenCloudHooks {
275
- /** Fired before the SDK sleeps for a computed retry or rate-limit wait. */
276
- readonly onRateLimit?: (waitMs: number) => void;
277
- /** Fired before each HTTP attempt (including retries). */
278
- readonly onRequest?: (request: HttpRequest) => void;
279
- /** Fired before a retry is attempted. `attempt` is 1-indexed. */
280
- readonly onRetry?: (attempt: number, error: OpenCloudError) => void;
281
- }
282
- /**
283
- * Options accepted by every resource client constructor. Cross-cutting
284
- * configuration that applies to all requests made through the client instance.
285
- *
286
- * @since 0.1.0
287
- */
288
- interface OpenCloudClientOptions {
289
- /** The Roblox Open Cloud API key used as the default for every request. */
290
- readonly apiKey: string;
291
- /** Base URL for the Open Cloud API. Defaults to `https://apis.roblox.com`. */
292
- readonly baseUrl?: string;
293
- /** Optional observability hooks. */
294
- readonly hooks?: OpenCloudHooks;
295
- /**
296
- * Plug in a custom {@link HttpClient} to wrap or replace the default
297
- * fetch-backed transport. Useful for wrapping `fetch` with tracing
298
- * or metrics, routing through a custom proxy, or feeding the SDK
299
- * from a recorded-fixture or replay layer. Most consumers leave this
300
- * unset and use the default.
301
- */
302
- readonly httpClient?: HttpClient;
303
- /** Maximum retry attempts. Defaults to `3`. */
304
- readonly maxRetries?: number;
305
- /**
306
- * Status codes eligible for retry. Defaults to the idempotent-method set
307
- * `[429, 500, 502, 503, 504]`. Resource clients may tighten this per
308
- * method (e.g. `create` only retries `429`).
309
- */
310
- readonly retryableStatuses?: ReadonlyArray<number>;
311
- /**
312
- * Node-style transport error codes eligible for retry when a request fails
313
- * with a `NetworkError` (e.g. `["ECONNRESET", "ETIMEDOUT"]`).
314
- * Defaults to the idempotent-method transient set. Create methods default
315
- * to none and cannot be relaxed by a client-level value. Pass the exported
316
- * `TRANSIENT_TRANSPORT_CODES` set (or your own subset) on a single call's
317
- * {@link RequestOptions} to opt a create into transport retries when a
318
- * duplicate resource is acceptable.
319
- */
320
- readonly retryableTransportCodes?: ReadonlyArray<string>;
321
- /** Fallback delay function used when no server hint is available. */
322
- readonly retryDelay?: (attempt: number) => number;
323
- /**
324
- * Plug in a custom {@link SleepFunc} used between retry attempts and
325
- * for rate-limit waits. Useful for integrating with a custom
326
- * scheduler or virtual clock. Most consumers leave this unset and
327
- * use the default `setTimeout`-backed sleep.
328
- */
329
- readonly sleep?: SleepFunc;
330
- /**
331
- * Default per-request timeout in milliseconds for JSON-bound methods,
332
- * defaulting to `30_000`. Upload methods (those whose request body is
333
- * `FormData` or `Uint8Array`, such as place publishes and icon uploads)
334
- * have no default timeout and ignore this option: upload latency is
335
- * bandwidth-bound, and the SDK cannot size a wall-clock budget without
336
- * knowing payload size and link quality. Set a transport-attempt timeout
337
- * on any single call, upload or otherwise, with `options.timeout`.
338
- */
339
- readonly timeout?: number;
340
- }
341
- /**
342
- * Per-request override shape. Any subset of the overridable client options
343
- * may be supplied for a single request; omitted fields fall through to the
344
- * client-level defaults.
345
- *
346
- * @since 0.1.0
347
- */
348
- type RequestOptions = Partial<Pick<OpenCloudClientOptions, "apiKey" | "baseUrl" | "maxRetries" | "retryableStatuses" | "retryableTransportCodes" | "retryDelay" | "timeout">> & {
349
- /**
350
- * Absolute Unix timestamp in milliseconds by which this logical request
351
- * must finish. SDK-managed waits that cannot fit fail with a typed
352
- * `RequestDeadlineExceededError` instead of consuming the remaining budget.
353
- */
354
- readonly deadlineMs?: number;
355
- /**
356
- * Receives the admission waits entered by this logical request only.
357
- * Notifications cannot alter scheduling or retry behavior.
358
- */
359
- readonly onAdmissionWait?: AdmissionWaitObserver; /** Cancels this request at any point in its lifecycle. */
360
- readonly signal?: AbortSignal;
361
- };
362
- /**
363
- * Supported request body types.
364
- *
365
- * - `FormData` for multipart uploads (Content-Type set automatically by
366
- * fetch).
367
- * - `Record<string, unknown>` for JSON bodies (serialized with
368
- * `JSON.stringify`).
369
- * - `Uint8Array<ArrayBuffer>` for raw binary uploads (default Content-Type is
370
- * `application/octet-stream`; override via {@link HttpRequest.headers}).
371
- * `SharedArrayBuffer`-backed views are not accepted by `fetch`; wrap them
372
- * via `new Uint8Array(bytes)` to obtain an `ArrayBuffer`-backed copy.
373
- * - `undefined` for requests without a body (GET, DELETE).
374
- */
375
- type HttpRequestBody = FormData | Record<string, unknown> | Uint8Array<ArrayBuffer> | undefined;
376
- //#endregion
377
- export { HttpRequest as a, OpenCloudHooks as c, Page as d, Result as f, OpenCloudErrorOptions as h, HttpClient as i, RequestConfig as l, OpenCloudError as m, AdmissionWaitObserver as n, HttpResponse as o, SleepFunc as p, AdmissionWaitReason as r, OpenCloudClientOptions as s, AdmissionWaitEvent as t, RequestOptions as u };
378
- //# sourceMappingURL=types-C3Egi37J.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types-C3Egi37J.d.mts","names":[],"sources":["../src/errors/base.ts","../src/internal/utils/sleep.ts","../src/types.ts","../src/client/types.ts"],"mappings":";;AAKA;;;;UAAiB,qBAAA,SAA8B,YAAA;EAsC/C;;;;;;EAAA,SA/BU,IAAA;AAAA;;;;;AA2C+B;;;;AChDzC;;;;;;;;;AAA8D;;;;AC6B9D;;;;;;;cFOa,cAAA,SAAuB,KAAA;;WAEnB,IAAA;EAAA,kBACS,IAAA;;;;;;;;EASzB,WAAA,CAAY,OAAA,WAAkB,OAAA,GAAU,qBAAA;AAAA;;;;AAlDzC;;;;KCEY,SAAA,IAAa,EAAA,UAAY,MAAA,GAAS,WAAA,KAAgB,OAAA;;;;ADF9D;;;;AAOU;AA+BV;;;;;;;;;;;;AAYyC;;;;AChDzC;;;;;;;;;AAA8D;;;;AC6B9D;KAAY,MAAA,QAAc,KAAA;EAAW,IAAA,EAAM,CAAA;EAAG,OAAA;AAAA;EAAoB,GAAA,EAAK,CAAA;EAAG,OAAA;AAAA;;;;;;;;AAAA;AA8B1E;;;;;;;;;;AAIU;;;;AClDV;;;;AAAY;AA2BZ;UDmBiB,IAAA;;WAEP,KAAA,EAAO,aAAA,CAAc,CAAA;;WAErB,aAAA;AAAA;;;;AF1DA;AA+BV;;;;;;;;;;;;KGvBY,mBAAA;;;;AFbZ;;;;;;;;;AAA8D;;;;AC6B9D;;;;;UCWiB,kBAAA;EDXsD;EAAA,SCa7D,UAAA;;WAEA,KAAA;;WAEA,MAAA,EAAQ,mBAAA;AAAA;;;;;;ADjBwD;AA8B1E;;;;;;;;;;KCMY,qBAAA,IAAyB,KAAO,EAAA,kBAAA;;;;AApD5C;;UA2DiB,WAAA;EA3DL;EAAA,SA6DF,IAAA,GAAO,eAAA;EAlCjB;;;;;EAAA,SAwCU,OAAA,GAAU,QAAA,CAAS,MAAA;;WAEnB,MAAA;EApCQ;EAAA,SAsCR,GAAA;AAAA;;;;AAnBkC;AAO5C;UAoBiB,YAAA;;;;;;WAMP,IAAA;;WAEA,OAAA,EAAS,QAAA,CAAS,MAAA;;WAElB,MAAA;AAAA;;;;AAlBA;AAQV;UAkBiB,aAAA;;WAEP,MAAA;;WAEA,OAAA;;WAEA,MAAA,GAAS,WAAA;;WAET,OAAA;AAAA;AARV;;;;;;AAAA,UAiBiB,UAAA;;EAEhB,OAAA,CACC,OAAA,EAAS,WAAA,EACT,MAAA,EAAQ,aAAA,GACN,OAAA,CAAQ,MAAA,CAAO,YAAA,EAAc,cAAA;AAAA;AAdvB;AASV;;;;;AATU,UAuBO,cAAA;;WAEP,WAAA,IAAe,MAAA;;WAEf,SAAA,IAAa,OAAA,EAAS,WAAA;EAb5B;EAAA,SAeM,OAAA,IAAW,OAAA,UAAiB,KAAA,EAAO,cAAA;AAAA;;;;;;;UAS5B,sBAAA;EAxBgB;EAAA,SA0BvB,MAAA;EAjBV;EAAA,SAmBU,OAAA;;WAEA,KAAA,GAAQ,cAAA;;;;;;;;WAQR,UAAA,GAAa,UAAA;;WAEb,UAAA;EAzBmC;AAS7C;;;;EAT6C,SA+BnC,iBAAA,GAAoB,aAAA;;;;;;;;;;WAUpB,uBAAA,GAA0B,aAAA;;WAE1B,UAAA,IAAc,OAAA;;;;;;;WAOd,KAAA,GAAQ,SAAA;;;;AAUR;AAUV;;;;;WAVU,OAAA;AAAA;;;;;;;;KAUE,cAAA,GAAiB,OAAA,CAC5B,IAAA,CACC,sBAAA;;;;;AAsBiB;WAPT,UAAA;EAuBL;;;;EAAA,SAlBK,eAAA,GAAkB,qBAAA;WAElB,MAAA,GAAS,WAAA;AAAA;;;;;;AAgBoD;;;;;;;;KAAlE,eAAA,GAAkB,QAAA,GAAW,MAAA,oBAA0B,UAAA,CAAW,WAAA"}
@@ -1,37 +0,0 @@
1
- //#region src/domains/game-internationalization/game-icon/wire.d.ts
2
- /**
3
- * Image moderation state returned alongside each localized icon.
4
- *
5
- * @since 0.1.0
6
- */
7
- type GameIconState = "Approved" | "Error" | "PendingReview" | "Rejected" | "UnAvailable";
8
- /**
9
- * A single localized icon entry, mirroring
10
- * `Roblox.GameInternationalization.Api.GetGameIconResponse` from the
11
- * vendored Open Cloud spec.
12
- */
13
- interface GetGameIconResponseWire {
14
- /** Stringified ID of the uploaded icon image. */
15
- readonly imageId: string;
16
- /** CDN URL the icon can be loaded from. */
17
- readonly imageUrl: string;
18
- /**
19
- * Roblox wire form the icon is registered against. Either the
20
- * Language form (e.g. `en`, `fil`, `zh-hans`) or the Locale form
21
- * (e.g. `en_us`, `pt_br`, `ar_001`).
22
- */
23
- readonly languageCode: string;
24
- /** Moderation state of the icon. */
25
- readonly state: GameIconState;
26
- }
27
- /**
28
- * Wire shape of `GET /v1/game-icon/games/{gameId}`, mirroring
29
- * `Roblox.Web.WebAPI.Models.ApiArrayResponse_…`.
30
- */
31
- interface GameIconListWire {
32
- /** Localized icons in the order returned by the API. */
33
- readonly data: ReadonlyArray<GetGameIconResponseWire>;
34
- }
35
- //#endregion
36
- export { GameIconState as n, GetGameIconResponseWire as r, GameIconListWire as t };
37
- //# sourceMappingURL=wire-D3K-a-UP.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"wire-D3K-a-UP.d.mts","names":[],"sources":["../src/domains/game-internationalization/game-icon/wire.ts"],"mappings":";;AAKA;;;;KAAY,aAAA;AAOZ;;;;;AAAA,UAAiB,uBAAA;;WAEP,OAAA;;WAEA,QAAA;EAQO;AAOjB;;;;EAPiB,SAFP,YAAA;;WAEA,KAAA,EAAO,aAAA;AAAA;AASa;;;;AAAA,UAFb,gBAAA;;WAEP,IAAA,EAAM,aAAA,CAAc,uBAAA;AAAA"}