@bedrock-rbx/ocale 0.3.4 → 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.
- package/README.md +9 -5
- package/dist/badge-cost-mismatch-DrlvhlQc.mjs +47 -0
- package/dist/badge-cost-mismatch-DrlvhlQc.mjs.map +1 -0
- package/dist/badges.d.mts +228 -184
- package/dist/badges.d.mts.map +1 -1
- package/dist/badges.mjs +176 -18
- package/dist/badges.mjs.map +1 -1
- package/dist/capacity-admission-hycCFkTo.d.mts +355 -0
- package/dist/capacity-admission-hycCFkTo.d.mts.map +1 -0
- package/dist/{data.generated-B2ceLfSn.d.mts → data.generated-D_vpa5-g.d.mts} +23 -23
- package/dist/data.generated-D_vpa5-g.d.mts.map +1 -0
- package/dist/developer-products.d.mts +181 -186
- package/dist/developer-products.d.mts.map +1 -1
- package/dist/developer-products.mjs +24 -24
- package/dist/developer-products.mjs.map +1 -1
- package/dist/game-passes.d.mts +206 -203
- package/dist/game-passes.d.mts.map +1 -1
- package/dist/game-passes.mjs +26 -21
- package/dist/game-passes.mjs.map +1 -1
- package/dist/index.d.mts +905 -343
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +325 -10
- package/dist/index.mjs.map +1 -1
- package/dist/locales.d.mts +30 -2
- package/dist/locales.d.mts.map +1 -0
- package/dist/locales.mjs +24 -1
- package/dist/locales.mjs.map +1 -1
- package/dist/luau-execution.d.mts +154 -151
- package/dist/luau-execution.d.mts.map +1 -1
- package/dist/luau-execution.mjs +11 -8
- package/dist/luau-execution.mjs.map +1 -1
- package/dist/{network-error-DR9FX5hb.mjs → network-error-iVSng5MT.mjs} +44 -6
- package/dist/network-error-iVSng5MT.mjs.map +1 -0
- package/dist/places.d.mts +204 -180
- package/dist/places.d.mts.map +1 -1
- package/dist/places.mjs +66 -20
- package/dist/places.mjs.map +1 -1
- package/dist/{poll-timeout-3PXLsabj.mjs → poll-timeout-DzztDymd.mjs} +2 -2
- package/dist/{poll-timeout-3PXLsabj.mjs.map → poll-timeout-DzztDymd.mjs.map} +1 -1
- package/dist/{polling-helpers-CoVhsC33.mjs → polling-helpers-DfF5dspc.mjs} +249 -83
- package/dist/polling-helpers-DfF5dspc.mjs.map +1 -0
- package/dist/{price-information-B0tkOoAX.mjs → price-information-DEkEQ8Pq.mjs} +2 -2
- package/dist/{price-information-B0tkOoAX.mjs.map → price-information-DEkEQ8Pq.mjs.map} +1 -1
- package/dist/resource-client-BCKukheG.d.mts +168 -0
- package/dist/resource-client-BCKukheG.d.mts.map +1 -0
- package/dist/{resource-client-rqTMkBeR.mjs → resource-client-CaIVr-go.mjs} +586 -158
- package/dist/resource-client-CaIVr-go.mjs.map +1 -0
- package/dist/retry-C2oHesDx.d.mts +229 -0
- package/dist/retry-C2oHesDx.d.mts.map +1 -0
- package/dist/{retry-BlX4tUnT.mjs → retry-CMRDvAR4.mjs} +278 -18
- package/dist/retry-CMRDvAR4.mjs.map +1 -0
- package/dist/storage.d.mts +333 -334
- package/dist/storage.d.mts.map +1 -1
- package/dist/storage.mjs +29 -22
- package/dist/storage.mjs.map +1 -1
- package/dist/testing.d.mts +347 -360
- package/dist/testing.d.mts.map +1 -1
- package/dist/testing.mjs +3 -4
- package/dist/testing.mjs.map +1 -1
- package/dist/types-CdMr_J1M.d.mts +509 -0
- package/dist/types-CdMr_J1M.d.mts.map +1 -0
- package/dist/universes.d.mts +619 -422
- package/dist/universes.d.mts.map +1 -1
- package/dist/universes.mjs +421 -48
- package/dist/universes.mjs.map +1 -1
- package/dist/{validation-B_Zs1So2.mjs → validation-964VNlbp.mjs} +2 -2
- package/dist/{validation-B_Zs1So2.mjs.map → validation-964VNlbp.mjs.map} +1 -1
- package/dist/wire-DJqupefn.d.mts +41 -0
- package/dist/wire-DJqupefn.d.mts.map +1 -0
- package/package.json +14 -14
- package/dist/capacity-admission-IDO3fcUC.d.mts +0 -369
- package/dist/capacity-admission-IDO3fcUC.d.mts.map +0 -1
- package/dist/data.generated-B2ceLfSn.d.mts.map +0 -1
- package/dist/network-error-DR9FX5hb.mjs.map +0 -1
- package/dist/polling-helpers-CoVhsC33.mjs.map +0 -1
- package/dist/resource-client-B6NeFXUv.d.mts +0 -164
- package/dist/resource-client-B6NeFXUv.d.mts.map +0 -1
- package/dist/resource-client-rqTMkBeR.mjs.map +0 -1
- package/dist/retry-BlX4tUnT.mjs.map +0 -1
- package/dist/retry-war_-9tb.d.mts +0 -373
- package/dist/retry-war_-9tb.d.mts.map +0 -1
- package/dist/types-CvYh4SPC.d.mts +0 -386
- package/dist/types-CvYh4SPC.d.mts.map +0 -1
- package/dist/wire-D3K-a-UP.d.mts +0 -37
- package/dist/wire-D3K-a-UP.d.mts.map +0 -1
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
import { d as RequestOptions } from "./types-CdMr_J1M.mjs";
|
|
2
|
+
//#region src/domains/cloud-v2/luau-execution-tasks/types.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Caller-supplied input for submitting a Luau Execution task against a
|
|
5
|
+
* place's head version. Submitting against a specific place version uses
|
|
6
|
+
* {@link SubmitAtVersionParameters} instead.
|
|
7
|
+
*
|
|
8
|
+
* @since 0.1.0
|
|
9
|
+
*/
|
|
10
|
+
interface SubmitAtHeadParameters {
|
|
11
|
+
/**
|
|
12
|
+
* Resource path returned by `binaryInputs.create`, passed to the
|
|
13
|
+
* server to attach a pre-uploaded binary to this task.
|
|
14
|
+
*/
|
|
15
|
+
readonly binaryInput?: string | undefined;
|
|
16
|
+
/** When `true`, the server places the task output into a binary blob. */
|
|
17
|
+
readonly enableBinaryOutput?: boolean | undefined;
|
|
18
|
+
/** Stringified ID of the place to run the script against. */
|
|
19
|
+
readonly placeId: string;
|
|
20
|
+
/** Luau source to execute. */
|
|
21
|
+
readonly script: string;
|
|
22
|
+
/**
|
|
23
|
+
* Wall-clock limit in seconds. The task fails when the script does not
|
|
24
|
+
* complete within this duration. Server default is 5 minutes.
|
|
25
|
+
*/
|
|
26
|
+
readonly timeoutSeconds?: number;
|
|
27
|
+
/** Stringified ID of the universe that owns the place. */
|
|
28
|
+
readonly universeId: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Caller-supplied input for submitting a Luau Execution task against a
|
|
32
|
+
* specific place version. Submitting against the head version uses
|
|
33
|
+
* {@link SubmitAtHeadParameters} instead.
|
|
34
|
+
*
|
|
35
|
+
* @since 0.1.0
|
|
36
|
+
*/
|
|
37
|
+
interface SubmitAtVersionParameters {
|
|
38
|
+
/**
|
|
39
|
+
* Resource path returned by `binaryInputs.create`, passed to the
|
|
40
|
+
* server to attach a pre-uploaded binary to this task.
|
|
41
|
+
*/
|
|
42
|
+
readonly binaryInput?: string | undefined;
|
|
43
|
+
/** When `true`, the server places the task output into a binary blob. */
|
|
44
|
+
readonly enableBinaryOutput?: boolean | undefined;
|
|
45
|
+
/** Stringified ID of the place to run the script against. */
|
|
46
|
+
readonly placeId: string;
|
|
47
|
+
/** Luau source to execute. */
|
|
48
|
+
readonly script: string;
|
|
49
|
+
/**
|
|
50
|
+
* Wall-clock limit in seconds. The task fails when the script does not
|
|
51
|
+
* complete within this duration. Server default is 5 minutes.
|
|
52
|
+
*/
|
|
53
|
+
readonly timeoutSeconds?: number;
|
|
54
|
+
/** Stringified ID of the universe that owns the place. */
|
|
55
|
+
readonly universeId: string;
|
|
56
|
+
/** Stringified ID of the place version the script targets. */
|
|
57
|
+
readonly versionId: string;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Five-field reference to a Luau Execution session task. The parser
|
|
61
|
+
* extracts this from any of the four x-aep-resource `path` formats
|
|
62
|
+
* returned by the server, and the get builder consumes it to construct
|
|
63
|
+
* the maximal GET URL. `versionId` and `sessionId` are `undefined` when
|
|
64
|
+
* the response `path` did not include those segments.
|
|
65
|
+
*
|
|
66
|
+
* @since 0.1.0
|
|
67
|
+
*/
|
|
68
|
+
interface LuauExecutionTaskRef {
|
|
69
|
+
/** Stringified place ID. */
|
|
70
|
+
readonly placeId: string;
|
|
71
|
+
/** Stringified luau-execution-session ID, when carried by the path. */
|
|
72
|
+
readonly sessionId?: string | undefined;
|
|
73
|
+
/** Stringified luau-execution-session-task ID. */
|
|
74
|
+
readonly taskId: string;
|
|
75
|
+
/** Stringified universe ID. */
|
|
76
|
+
readonly universeId: string;
|
|
77
|
+
/** Stringified place version ID, when carried by the path. */
|
|
78
|
+
readonly versionId?: string | undefined;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Caller-supplied input for fetching a Luau Execution task's current
|
|
82
|
+
* state.
|
|
83
|
+
*
|
|
84
|
+
* @since 0.1.0
|
|
85
|
+
*/
|
|
86
|
+
interface GetParameters {
|
|
87
|
+
/** Reference to the task to fetch, typically returned by submit. */
|
|
88
|
+
readonly ref: LuauExecutionTaskRef;
|
|
89
|
+
/**
|
|
90
|
+
* View controls how much of the task body the server returns. The
|
|
91
|
+
* server defaults to BASIC (excludes `script`) when no view is sent;
|
|
92
|
+
* `FULL` includes every field.
|
|
93
|
+
*/
|
|
94
|
+
readonly view?: "BASIC" | "FULL";
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Discriminated variant carrying every state in which the task has not
|
|
98
|
+
* yet produced output or an error: queued for execution, currently
|
|
99
|
+
* executing, or cancelled by the caller. `STATE_UNSPECIFIED` is the
|
|
100
|
+
* schema's default enum value, surfaced verbatim when the server sends
|
|
101
|
+
* it; pollers treat it as non-terminal.
|
|
102
|
+
*
|
|
103
|
+
* @since 0.1.0
|
|
104
|
+
*/
|
|
105
|
+
interface InProgressTask extends LuauExecutionTaskBase {
|
|
106
|
+
/**
|
|
107
|
+
* Discriminator: the task is unspecified, queued, processing, or
|
|
108
|
+
* cancelled.
|
|
109
|
+
*/
|
|
110
|
+
readonly state: "CANCELLED" | "PROCESSING" | "QUEUED" | "STATE_UNSPECIFIED";
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Discriminated variant carrying the script's return values. The
|
|
114
|
+
* server populates `output.results` with the Luau `return` values from
|
|
115
|
+
* the script run, serialized as JSON; entries that were not
|
|
116
|
+
* JSON-serializable (e.g., Roblox `Instance`s) appear as `null`.
|
|
117
|
+
*
|
|
118
|
+
* @since 0.1.0
|
|
119
|
+
*/
|
|
120
|
+
interface CompleteTask extends LuauExecutionTaskBase {
|
|
121
|
+
/**
|
|
122
|
+
* JSON projection of the script's return values, in order. The total
|
|
123
|
+
* serialized size of this array is bounded by the server-enforced
|
|
124
|
+
* 4 MB output limit.
|
|
125
|
+
*/
|
|
126
|
+
readonly output: {
|
|
127
|
+
readonly results: ReadonlyArray<JSONValue>;
|
|
128
|
+
};
|
|
129
|
+
/** Discriminator: the task ran to completion and produced output. */
|
|
130
|
+
readonly state: "COMPLETE";
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Discriminated variant carrying the categorical error code and a
|
|
134
|
+
* human-readable message describing the failure. `code` mirrors the
|
|
135
|
+
* wire enum verbatim, including the schema's `ERROR_CODE_UNSPECIFIED`
|
|
136
|
+
* default.
|
|
137
|
+
*
|
|
138
|
+
* @since 0.1.0
|
|
139
|
+
*/
|
|
140
|
+
interface FailedTask extends LuauExecutionTaskBase {
|
|
141
|
+
/** The categorical error code and message that caused the task to fail. */
|
|
142
|
+
readonly error: {
|
|
143
|
+
/**
|
|
144
|
+
* `SCRIPT_ERROR` for unhandled Luau errors, `DEADLINE_EXCEEDED`
|
|
145
|
+
* when the script outran its timeout, `OUTPUT_SIZE_LIMIT_EXCEEDED`
|
|
146
|
+
* when the return values exceeded 4 MB, or `INTERNAL_ERROR` for
|
|
147
|
+
* server-side faults. `ERROR_CODE_UNSPECIFIED` is the schema's
|
|
148
|
+
* default value, passed through when the server sends it.
|
|
149
|
+
*/
|
|
150
|
+
readonly code: "DEADLINE_EXCEEDED" | "ERROR_CODE_UNSPECIFIED" | "INTERNAL_ERROR" | "OUTPUT_SIZE_LIMIT_EXCEEDED" | "SCRIPT_ERROR";
|
|
151
|
+
/** Human-readable description of the failure. */
|
|
152
|
+
readonly message: string;
|
|
153
|
+
};
|
|
154
|
+
/** Discriminator: the task ran but failed before producing output. */
|
|
155
|
+
readonly state: "FAILED";
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Public, discriminated representation of a Luau Execution session
|
|
159
|
+
* task. The variants are mutually exclusive on `state`.
|
|
160
|
+
*
|
|
161
|
+
* @since 0.1.0
|
|
162
|
+
*/
|
|
163
|
+
type LuauExecutionTask = CompleteTask | FailedTask | InProgressTask;
|
|
164
|
+
/**
|
|
165
|
+
* Common fields surfaced on every {@link LuauExecutionTask} variant.
|
|
166
|
+
* Variant-specific fields (`output` for COMPLETE, `error` for FAILED)
|
|
167
|
+
* live on the variants themselves.
|
|
168
|
+
*/
|
|
169
|
+
interface LuauExecutionTaskBase {
|
|
170
|
+
/**
|
|
171
|
+
* Resource path of the binary input attached to this task, when one
|
|
172
|
+
* was supplied at submit time.
|
|
173
|
+
*/
|
|
174
|
+
readonly binaryInput?: string | undefined;
|
|
175
|
+
/**
|
|
176
|
+
* Pre-signed URI from which the binary output blob can be downloaded.
|
|
177
|
+
* Present only after a `COMPLETE` task whose `enableBinaryOutput` was
|
|
178
|
+
* `true`.
|
|
179
|
+
*/
|
|
180
|
+
readonly binaryOutputUri?: string | undefined;
|
|
181
|
+
/**
|
|
182
|
+
* Timestamp when the task was created; `undefined` on tasks returned by
|
|
183
|
+
* `submit`.
|
|
184
|
+
*/
|
|
185
|
+
readonly createdAt?: Date | undefined;
|
|
186
|
+
/** When `true`, the server writes output to a binary blob. */
|
|
187
|
+
readonly enableBinaryOutput?: boolean | undefined;
|
|
188
|
+
/** Round-trip-safe reference to this task. */
|
|
189
|
+
readonly ref: LuauExecutionTaskRef;
|
|
190
|
+
/**
|
|
191
|
+
* Wall-clock execution limit in seconds, as supplied at submit time.
|
|
192
|
+
* Surfaces `undefined` when the request did not set a timeout (the
|
|
193
|
+
* server applies its 5-minute default in that case).
|
|
194
|
+
*/
|
|
195
|
+
readonly timeoutSeconds?: number | undefined;
|
|
196
|
+
/**
|
|
197
|
+
* Timestamp of the most recent state change; `undefined` on tasks returned
|
|
198
|
+
* by `submit`.
|
|
199
|
+
*/
|
|
200
|
+
readonly updatedAt?: Date | undefined;
|
|
201
|
+
/**
|
|
202
|
+
* Identifier of the user that owns the API key used to create this task.
|
|
203
|
+
*/
|
|
204
|
+
readonly user: string;
|
|
205
|
+
}
|
|
206
|
+
//#endregion
|
|
207
|
+
//#region src/domains/cloud-v2/luau-execution-task-logs/types.d.ts
|
|
208
|
+
/**
|
|
209
|
+
* Caller-supplied input for listing the structured log messages produced
|
|
210
|
+
* by a previously-submitted Luau execution task.
|
|
211
|
+
*
|
|
212
|
+
* @since 0.1.0
|
|
213
|
+
*/
|
|
214
|
+
interface ListLogsParameters {
|
|
215
|
+
/**
|
|
216
|
+
* Maximum number of log messages to return per page. The server
|
|
217
|
+
* clamps this to the range [1, 10000]. When omitted, the server
|
|
218
|
+
* applies its own default page size.
|
|
219
|
+
*/
|
|
220
|
+
readonly pageSize?: number | undefined;
|
|
221
|
+
/**
|
|
222
|
+
* Opaque continuation token returned by the previous `listLogs`
|
|
223
|
+
* call. Pass this to retrieve the next page of results.
|
|
224
|
+
*/
|
|
225
|
+
readonly pageToken?: string | undefined;
|
|
226
|
+
/** Reference to the task whose logs are being listed. */
|
|
227
|
+
readonly ref: LuauExecutionTaskRef;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* A single structured log message produced by a Luau execution task.
|
|
231
|
+
* The `createTime` field is a raw ISO timestamp string, not a
|
|
232
|
+
* {@link Date}, so it can be serialized without conversion.
|
|
233
|
+
*
|
|
234
|
+
* @since 0.1.0
|
|
235
|
+
*/
|
|
236
|
+
interface LogMessage {
|
|
237
|
+
/** ISO timestamp when the log message was produced. */
|
|
238
|
+
readonly createTime: string;
|
|
239
|
+
/** Human-readable log message text. */
|
|
240
|
+
readonly message: string;
|
|
241
|
+
/**
|
|
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.
|
|
245
|
+
*/
|
|
246
|
+
readonly messageType: "ERROR" | "INFO" | "MESSAGE_TYPE_UNSPECIFIED" | "OUTPUT" | "WARNING";
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* One page of structured log messages from a Luau execution task.
|
|
250
|
+
* Chunks are flattened by the parser; consumers see a single ordered
|
|
251
|
+
* array. When `nextPageToken` is present, pass it to the next
|
|
252
|
+
* `listLogs` call to retrieve the following page.
|
|
253
|
+
*
|
|
254
|
+
* @since 0.1.0
|
|
255
|
+
*/
|
|
256
|
+
interface LogPage {
|
|
257
|
+
/** Flattened, ordered list of log messages from this page. */
|
|
258
|
+
readonly messages: ReadonlyArray<LogMessage>;
|
|
259
|
+
/**
|
|
260
|
+
* Opaque token for the next page of results. `undefined` when this
|
|
261
|
+
* is the last page.
|
|
262
|
+
*/
|
|
263
|
+
readonly nextPageToken?: string | undefined;
|
|
264
|
+
}
|
|
265
|
+
//#endregion
|
|
266
|
+
//#region src/resources/luau-execution/polling.d.ts
|
|
267
|
+
/**
|
|
268
|
+
* Default poll cadence as a function of elapsed wall-clock time since
|
|
269
|
+
* polling began. Polls quickly while a task is young so short runs resolve
|
|
270
|
+
* snappily, then eases off so a long run leaves rate-limit headroom for
|
|
271
|
+
* newer tasks: 0-20s is 500ms, 20-60s is 1000ms, 60s+ is 5000ms.
|
|
272
|
+
*
|
|
273
|
+
* @since 0.1.0
|
|
274
|
+
*
|
|
275
|
+
* @example
|
|
276
|
+
* ```ts
|
|
277
|
+
* import { defaultPollDelay } from "@bedrock-rbx/ocale/luau-execution";
|
|
278
|
+
*
|
|
279
|
+
* expect(defaultPollDelay(0)).toBe(500);
|
|
280
|
+
* expect(defaultPollDelay(30_000)).toBe(1000);
|
|
281
|
+
* expect(defaultPollDelay(120_000)).toBe(5000);
|
|
282
|
+
* ```
|
|
283
|
+
*
|
|
284
|
+
* @param elapsedMs - Milliseconds elapsed since polling started.
|
|
285
|
+
* @returns The delay in milliseconds to wait before the next poll.
|
|
286
|
+
*/
|
|
287
|
+
declare function defaultPollDelay(elapsedMs: number): number;
|
|
288
|
+
/**
|
|
289
|
+
* Public options accepted by `pollUntilDone` and `runUntilDone` on both client
|
|
290
|
+
* surfaces.
|
|
291
|
+
*
|
|
292
|
+
* @since 0.1.0
|
|
293
|
+
*/
|
|
294
|
+
type PollUntilDoneOptions = PollOptions & RequestOptions;
|
|
295
|
+
/** Caller-supplied polling-loop options; all fields optional. */
|
|
296
|
+
interface PollOptions {
|
|
297
|
+
/**
|
|
298
|
+
* Consecutive transient transport failures tolerated before the loop gives
|
|
299
|
+
* up. Defaults to {@link DEFAULT_POLL_FAILURE_CAP}. A successful poll
|
|
300
|
+
* resets the count.
|
|
301
|
+
*/
|
|
302
|
+
readonly maxConsecutivePollFailures?: number;
|
|
303
|
+
/**
|
|
304
|
+
* Returns the sleep duration given ms elapsed since polling started.
|
|
305
|
+
* Defaults to {@link defaultPollDelay}.
|
|
306
|
+
*/
|
|
307
|
+
readonly pollDelay?: (elapsedMs: number) => number;
|
|
308
|
+
/**
|
|
309
|
+
* When aborted, the loop returns {@link PollAbortedError} rather than
|
|
310
|
+
* continuing.
|
|
311
|
+
*/
|
|
312
|
+
readonly signal?: AbortSignal;
|
|
313
|
+
/**
|
|
314
|
+
* Total wall-clock budget in ms before the loop returns {@link
|
|
315
|
+
* PollTimeoutError}. It also bounds each in-flight request through the
|
|
316
|
+
* request deadline (the earlier of the budget end and any `deadlineMs`),
|
|
317
|
+
* so a hanging request ends at the budget. For `runUntilDone` the budget
|
|
318
|
+
* opens before the submit and covers it too.
|
|
319
|
+
*/
|
|
320
|
+
readonly timeoutMs?: number;
|
|
321
|
+
}
|
|
322
|
+
//#endregion
|
|
323
|
+
//#region src/resources/luau-execution/capacity-admission.d.ts
|
|
324
|
+
/**
|
|
325
|
+
* Per-request options for submitting a Luau execution task.
|
|
326
|
+
*
|
|
327
|
+
* @example
|
|
328
|
+
*
|
|
329
|
+
* ```ts
|
|
330
|
+
* import type { LuauExecutionSubmitOptions } from "@bedrock-rbx/ocale/luau-execution";
|
|
331
|
+
*
|
|
332
|
+
* const options: LuauExecutionSubmitOptions = { capacityWaitMs: 60_000 };
|
|
333
|
+
* expect(options.capacityWaitMs).toBe(60_000);
|
|
334
|
+
* ```
|
|
335
|
+
*
|
|
336
|
+
* @since 0.3.2
|
|
337
|
+
*/
|
|
338
|
+
interface LuauExecutionSubmitOptions extends RequestOptions {
|
|
339
|
+
/**
|
|
340
|
+
* Maximum milliseconds to spend waiting for occupied place capacity, from 1
|
|
341
|
+
* through 2,147,483,647. Supplying this value opts the submission into
|
|
342
|
+
* capacity-aware admission.
|
|
343
|
+
*/
|
|
344
|
+
readonly capacityWaitMs?: number;
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Per-request capacity and polling options for submitting and awaiting a Luau
|
|
348
|
+
* execution task.
|
|
349
|
+
*
|
|
350
|
+
* @since 0.3.2
|
|
351
|
+
*/
|
|
352
|
+
type LuauExecutionRunOptions = LuauExecutionSubmitOptions & PollUntilDoneOptions;
|
|
353
|
+
//#endregion
|
|
354
|
+
export { ListLogsParameters as a, CompleteTask as c, InProgressTask as d, LuauExecutionTask as f, SubmitAtVersionParameters as h, defaultPollDelay as i, FailedTask as l, SubmitAtHeadParameters as m, LuauExecutionSubmitOptions as n, LogMessage as o, LuauExecutionTaskRef as p, PollUntilDoneOptions as r, LogPage as s, LuauExecutionRunOptions as t, GetParameters as u };
|
|
355
|
+
//# sourceMappingURL=capacity-admission-hycCFkTo.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capacity-admission-hycCFkTo.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","../src/resources/luau-execution/capacity-admission.ts"],"mappings":";;;;;;;;;UAOiB;;;;;WAKP;;WAEA;;WAEA;;WAEA;;;;;WAKA;;WAEA;;;;;;;;;UAUO;;;;;WAKP;;WAEA;;WAEA;;WAEA;;;;;WAKA;;WAEA;;WAEA;;;;;;;;;;;UAYO;;WAEP;;WAEA;;WAEA;;WAEA;;WAEA;;;;;;;;UASO;;WAEP,KAAK;;;;;;WAML;;;;;;;;;;;UAYO,uBAAuB;;;;;WAK9B;;;;;;;;;;UAWO,qBAAqB;;;;;;WAM5B;aAAmB,SAAS,cAAc;;;WAE1C;;;;;;;;;;UAWO,mBAAmB;;WAE1B;;;;;;;;aAQC;;aAOA;;;WAGD;;;;;;;;KASE,oBAAoB,eAAe,aAAa;;;;;;UAOlD;;;;;WAKA;;;;;;WAMA;;;;;WAKA,YAAY;;WAEZ;;WAEA,KAAK;;;;;;WAML;;;;;WAKA,YAAY;;;;WAIZ;;;;;;;;;;UC1MO;;;;;;WAMP;;;;;WAKA;;WAEA,KAAK;;;;;;;;;UAUE;;WAEP;;WAEA;;;;;;WAMA;;;;;;;;;;UAWO;;WAEP,UAAU,cAAc;;;;;WAKxB;;;;;;;;;;;;;;;;;;;;;;;;iBCDM,iBAAiB;;;;;;;KAuDrB,uBAAuB,cAAc;;UAGvC;;;;;;WAMA;;;;;WAKA,aAAa;;;;;WAKb,SAAS;;;;;;;;WAQT;;;;;;;;;;;;;;;;;;UC5GO,mCAAmC;;;;;;WAM1C;;;;;;;;KASE,0BAA0B,6BAA6B"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
//#region src/locales/data.generated.d.ts
|
|
2
2
|
/**
|
|
3
|
-
* One row in the vendored Roblox creator-locale list.
|
|
4
|
-
*
|
|
5
|
-
* @since 0.1.0
|
|
6
|
-
*/
|
|
3
|
+
* One row in the vendored Roblox creator-locale list.
|
|
4
|
+
*
|
|
5
|
+
* @since 0.1.0
|
|
6
|
+
*/
|
|
7
7
|
interface RobloxCreatorLocale {
|
|
8
8
|
readonly locale: string;
|
|
9
9
|
readonly languageCode: string;
|
|
@@ -15,12 +15,12 @@ interface RobloxCreatorLocale {
|
|
|
15
15
|
readonly isEnabledForSignupAndLogin: boolean;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
-
* Vendored snapshot of
|
|
19
|
-
* `https://locale.roblox.com/v1/locales/supported-locales-for-creators`.
|
|
20
|
-
* Refreshed by `pnpm --filter @bedrock-rbx/ocale refresh-locales`.
|
|
21
|
-
*
|
|
22
|
-
* @since 0.1.0
|
|
23
|
-
*/
|
|
18
|
+
* Vendored snapshot of
|
|
19
|
+
* `https://locale.roblox.com/v1/locales/supported-locales-for-creators`.
|
|
20
|
+
* Refreshed by `pnpm --filter @bedrock-rbx/ocale refresh-locales`.
|
|
21
|
+
*
|
|
22
|
+
* @since 0.1.0
|
|
23
|
+
*/
|
|
24
24
|
declare const ROBLOX_CREATOR_LOCALES: readonly [{
|
|
25
25
|
readonly locale: "ar_001";
|
|
26
26
|
readonly languageCode: "ar";
|
|
@@ -473,21 +473,21 @@ declare const ROBLOX_CREATOR_LOCALES: readonly [{
|
|
|
473
473
|
readonly isEnabledForSignupAndLogin: true;
|
|
474
474
|
}];
|
|
475
475
|
/**
|
|
476
|
-
* Roblox locale wire form (e.g. `en_us`, `pt_br`, `ar_001`). Used by
|
|
477
|
-
* the legacy game-internationalization endpoints when
|
|
478
|
-
* `languageCodeType` is `Locale`.
|
|
479
|
-
*
|
|
480
|
-
* @since 0.1.0
|
|
481
|
-
*/
|
|
476
|
+
* Roblox locale wire form (e.g. `en_us`, `pt_br`, `ar_001`). Used by
|
|
477
|
+
* the legacy game-internationalization endpoints when
|
|
478
|
+
* `languageCodeType` is `Locale`.
|
|
479
|
+
*
|
|
480
|
+
* @since 0.1.0
|
|
481
|
+
*/
|
|
482
482
|
type RobloxLocale = (typeof ROBLOX_CREATOR_LOCALES)[number]["locale"];
|
|
483
483
|
/**
|
|
484
|
-
* Roblox language wire form (e.g. `en`, `fil`, `zh-hans`). Used by
|
|
485
|
-
* the legacy game-internationalization endpoints when
|
|
486
|
-
* `languageCodeType` is `Language`.
|
|
487
|
-
*
|
|
488
|
-
* @since 0.1.0
|
|
489
|
-
*/
|
|
484
|
+
* Roblox language wire form (e.g. `en`, `fil`, `zh-hans`). Used by
|
|
485
|
+
* the legacy game-internationalization endpoints when
|
|
486
|
+
* `languageCodeType` is `Language`.
|
|
487
|
+
*
|
|
488
|
+
* @since 0.1.0
|
|
489
|
+
*/
|
|
490
490
|
type RobloxLanguageCode = (typeof ROBLOX_CREATOR_LOCALES)[number]["languageCode"];
|
|
491
491
|
//#endregion
|
|
492
492
|
export { RobloxLocale as i, RobloxCreatorLocale as n, RobloxLanguageCode as r, ROBLOX_CREATOR_LOCALES as t };
|
|
493
|
-
//# sourceMappingURL=data.generated-
|
|
493
|
+
//# sourceMappingURL=data.generated-D_vpa5-g.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.generated-D_vpa5-g.d.mts","names":[],"sources":["../src/locales/data.generated.ts"],"mappings":";;;;;;UAQiB;WACP;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;;;;;;cAUG;WAEX;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;;;;;;KAWU,uBAAuB;;;;;;;;KASvB,6BAA6B"}
|