@distilled.cloud/fly-io 1.0.0-rc.14 → 1.0.0-rc.16

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 (61) hide show
  1. package/lib/credentials.d.ts +3 -3
  2. package/lib/credentials.d.ts.map +1 -1
  3. package/lib/credentials.js +43 -38
  4. package/lib/credentials.js.map +1 -1
  5. package/lib/errors.d.ts +24 -24
  6. package/lib/errors.d.ts.map +1 -1
  7. package/lib/errors.js +37 -37
  8. package/lib/errors.js.map +1 -1
  9. package/lib/index.d.ts +2 -2
  10. package/lib/index.js +31 -31
  11. package/lib/pagination.d.ts +1 -1
  12. package/lib/pagination.js +3 -3
  13. package/lib/protocol.d.ts +2 -2
  14. package/lib/protocol.d.ts.map +1 -1
  15. package/lib/protocol.js +89 -66
  16. package/lib/protocol.js.map +1 -1
  17. package/lib/retry.d.ts +1 -1
  18. package/lib/retry.d.ts.map +1 -1
  19. package/lib/retry.js +26 -25
  20. package/lib/retry.js.map +1 -1
  21. package/lib/services/addons.d.ts +0 -65
  22. package/lib/services/addons.d.ts.map +1 -1
  23. package/lib/services/addons.js +54 -561
  24. package/lib/services/machines.d.ts +25 -444
  25. package/lib/services/machines.d.ts.map +1 -1
  26. package/lib/services/machines.js +317 -2726
  27. package/lib/services/mpg.d.ts +1 -67
  28. package/lib/services/mpg.d.ts.map +1 -1
  29. package/lib/services/mpg.js +75 -448
  30. package/lib/services/sprites.d.ts +1 -125
  31. package/lib/services/sprites.d.ts.map +1 -1
  32. package/lib/services/sprites.js +146 -884
  33. package/lib/traits.d.ts.map +1 -1
  34. package/lib/traits.js +14 -14
  35. package/lib/traits.js.map +1 -1
  36. package/package.json +13 -9
  37. package/src/credentials.ts +18 -15
  38. package/src/errors.ts +26 -28
  39. package/src/index.ts +2 -2
  40. package/src/pagination.ts +1 -1
  41. package/src/protocol.ts +67 -36
  42. package/src/retry.ts +6 -4
  43. package/src/services/addons.ts +593 -692
  44. package/src/services/machines.ts +3332 -3364
  45. package/src/services/mpg.ts +582 -519
  46. package/src/services/sprites.ts +1008 -948
  47. package/src/traits.ts +8 -4
  48. package/lib/protocol.test.d.ts +0 -2
  49. package/lib/protocol.test.d.ts.map +0 -1
  50. package/lib/protocol.test.js +0 -126
  51. package/lib/protocol.test.js.map +0 -1
  52. package/lib/services/addons.js.map +0 -1
  53. package/lib/services/machines.js.map +0 -1
  54. package/lib/services/mpg.js.map +0 -1
  55. package/lib/services/sprites.js.map +0 -1
  56. package/lib/sprites-mint.test.d.ts +0 -2
  57. package/lib/sprites-mint.test.d.ts.map +0 -1
  58. package/lib/sprites-mint.test.js +0 -169
  59. package/lib/sprites-mint.test.js.map +0 -1
  60. package/src/protocol.test.ts +0 -214
  61. package/src/sprites-mint.test.ts +0 -228
@@ -1,12 +1,15 @@
1
1
  import * as API from "@distilled.cloud/core/api";
2
2
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs. Do not edit.
3
- import * as S from "@distilled.cloud/core/schema";
3
+ import * as S from "@distilled.cloud/core/schema-lite";
4
+ import * as __L from "@distilled.cloud/core/schema-lite";
4
5
  import type * as Redacted from "effect/Redacted";
5
6
  import { BadRequest, Conflict, NotFound, SpritesNotEnabled } from "../errors.ts";
6
7
  import { paginateCursor } from "../pagination.ts";
7
8
  import { SpritesProtocol, type SpritesOpError, type SpritesOpContext } from "../protocol.ts";
8
9
  import * as Retry from "../retry.ts";
9
10
  import * as T from "../traits.ts";
11
+ // Schema table, filled on first reach (see __S at the end).
12
+ const __s: any[] = [];
10
13
 
11
14
  export type { SpritesOpError, SpritesOpContext };
12
15
 
@@ -21,18 +24,6 @@ export interface AuthorizeOAuthConnectionRequest {
21
24
  /** Optional state value. If omitted, Sprites generates one that ties the callback to the organization. */
22
25
  state?: string;
23
26
  }
24
- export const AuthorizeOAuthConnectionRequest = /*@__PURE__*/ S.suspend(() =>
25
- S.Struct({
26
- provider: S.String.pipe(T.Label()),
27
- scopes: S.optional(S.String.pipe(T.Query())),
28
- add_scopes: S.optional(S.String.pipe(T.Query())),
29
- redirect_uri: S.optional(S.String.pipe(T.Query())),
30
- state: S.optional(S.String.pipe(T.Query())),
31
- }).pipe(T.Http({ method: "GET", uri: "/oauth/{provider}/authorize", code: 200 })),
32
- ).annotate({
33
- identifier: "AuthorizeOAuthConnectionRequest",
34
- }) as any as S.Schema<AuthorizeOAuthConnectionRequest>;
35
-
36
27
  /** OAuth authorization response */
37
28
  export interface OAuthAuthorizeResponse {
38
29
  /** Provider URL where the user grants access. */
@@ -40,13 +31,6 @@ export interface OAuthAuthorizeResponse {
40
31
  /** State value that must be sent back to the callback. */
41
32
  state: string;
42
33
  }
43
- export const OAuthAuthorizeResponse = /*@__PURE__*/ S.suspend(() =>
44
- S.Struct({
45
- authorize_url: S.String,
46
- state: S.String,
47
- }),
48
- ).annotate({ identifier: "OAuthAuthorizeResponse" }) as any as S.Schema<OAuthAuthorizeResponse>;
49
-
50
34
  export interface ChangeFileModeRequest {
51
35
  name: string;
52
36
  asRoot: boolean;
@@ -55,44 +39,15 @@ export interface ChangeFileModeRequest {
55
39
  recursive: boolean;
56
40
  workingDir: string;
57
41
  }
58
- export const ChangeFileModeRequest = /*@__PURE__*/ S.suspend(() =>
59
- S.Struct({
60
- name: S.String.pipe(T.Label()),
61
- asRoot: S.Boolean,
62
- mode: S.String,
63
- path: S.String,
64
- recursive: S.Boolean,
65
- workingDir: S.String,
66
- }).pipe(T.Http({ method: "POST", uri: "/sprites/{name}/fs/chmod", code: 200 })),
67
- ).annotate({ identifier: "ChangeFileModeRequest" }) as any as S.Schema<ChangeFileModeRequest>;
68
-
69
42
  export interface ChmodResult {
70
43
  mode: string;
71
44
  path: string;
72
45
  }
73
- export const ChmodResult = /*@__PURE__*/ S.suspend(() =>
74
- S.Struct({
75
- mode: S.String,
76
- path: S.String,
77
- }),
78
- ).annotate({ identifier: "ChmodResult" }) as any as S.Schema<ChmodResult>;
79
-
80
46
  export type ChmodResponseAffectedList = Array<ChmodResult>;
81
- export const ChmodResponseAffectedList = /*@__PURE__*/ S.Array(
82
- ChmodResult,
83
- ) as any as S.Schema<ChmodResponseAffectedList>;
84
-
85
47
  export interface ChmodResponse {
86
48
  affected: ChmodResponseAffectedList;
87
49
  count: number;
88
50
  }
89
- export const ChmodResponse = /*@__PURE__*/ S.suspend(() =>
90
- S.Struct({
91
- affected: ChmodResponseAffectedList,
92
- count: S.Number,
93
- }),
94
- ).annotate({ identifier: "ChmodResponse" }) as any as S.Schema<ChmodResponse>;
95
-
96
51
  export interface ChangeFileOwnerRequest {
97
52
  name: string;
98
53
  asRoot: boolean;
@@ -102,47 +57,16 @@ export interface ChangeFileOwnerRequest {
102
57
  uid: unknown;
103
58
  workingDir: string;
104
59
  }
105
- export const ChangeFileOwnerRequest = /*@__PURE__*/ S.suspend(() =>
106
- S.Struct({
107
- name: S.String.pipe(T.Label()),
108
- asRoot: S.Boolean,
109
- gid: S.Unknown,
110
- path: S.String,
111
- recursive: S.Boolean,
112
- uid: S.Unknown,
113
- workingDir: S.String,
114
- }).pipe(T.Http({ method: "POST", uri: "/sprites/{name}/fs/chown", code: 200 })),
115
- ).annotate({ identifier: "ChangeFileOwnerRequest" }) as any as S.Schema<ChangeFileOwnerRequest>;
116
-
117
60
  export interface ChownResult {
118
61
  gid: number;
119
62
  path: string;
120
63
  uid: number;
121
64
  }
122
- export const ChownResult = /*@__PURE__*/ S.suspend(() =>
123
- S.Struct({
124
- gid: S.Number,
125
- path: S.String,
126
- uid: S.Number,
127
- }),
128
- ).annotate({ identifier: "ChownResult" }) as any as S.Schema<ChownResult>;
129
-
130
65
  export type ChownResponseAffectedList = Array<ChownResult>;
131
- export const ChownResponseAffectedList = /*@__PURE__*/ S.Array(
132
- ChownResult,
133
- ) as any as S.Schema<ChownResponseAffectedList>;
134
-
135
66
  export interface ChownResponse {
136
67
  affected: ChownResponseAffectedList;
137
68
  count: number;
138
69
  }
139
- export const ChownResponse = /*@__PURE__*/ S.suspend(() =>
140
- S.Struct({
141
- affected: ChownResponseAffectedList,
142
- count: S.Number,
143
- }),
144
- ).annotate({ identifier: "ChownResponse" }) as any as S.Schema<ChownResponse>;
145
-
146
70
  export interface CopyFileRequest {
147
71
  name: string;
148
72
  asRoot: boolean;
@@ -152,101 +76,34 @@ export interface CopyFileRequest {
152
76
  source: string;
153
77
  workingDir: string;
154
78
  }
155
- export const CopyFileRequest = /*@__PURE__*/ S.suspend(() =>
156
- S.Struct({
157
- name: S.String.pipe(T.Label()),
158
- asRoot: S.Boolean,
159
- dest: S.String,
160
- preserveAttrs: S.Boolean,
161
- recursive: S.Boolean,
162
- source: S.String,
163
- workingDir: S.String,
164
- }).pipe(T.Http({ method: "POST", uri: "/sprites/{name}/fs/copy", code: 200 })),
165
- ).annotate({ identifier: "CopyFileRequest" }) as any as S.Schema<CopyFileRequest>;
166
-
167
79
  export interface CopyResult {
168
80
  dest: string;
169
81
  source: string;
170
82
  }
171
- export const CopyResult = /*@__PURE__*/ S.suspend(() =>
172
- S.Struct({
173
- dest: S.String,
174
- source: S.String,
175
- }),
176
- ).annotate({ identifier: "CopyResult" }) as any as S.Schema<CopyResult>;
177
-
178
83
  export type CopyResponseCopiedList = Array<CopyResult>;
179
- export const CopyResponseCopiedList = /*@__PURE__*/ S.Array(
180
- CopyResult,
181
- ) as any as S.Schema<CopyResponseCopiedList>;
182
-
183
84
  export interface CopyResponse {
184
85
  copied: CopyResponseCopiedList;
185
86
  count: number;
186
87
  totalBytes: number;
187
88
  }
188
- export const CopyResponse = /*@__PURE__*/ S.suspend(() =>
189
- S.Struct({
190
- copied: CopyResponseCopiedList,
191
- count: S.Number,
192
- totalBytes: S.Number,
193
- }),
194
- ).annotate({ identifier: "CopyResponse" }) as any as S.Schema<CopyResponse>;
195
-
196
89
  export interface CreateCheckpointRequest {
197
90
  name: string;
198
91
  comment?: string;
199
92
  }
200
- export const CreateCheckpointRequest = /*@__PURE__*/ S.suspend(() =>
201
- S.Struct({
202
- name: S.String.pipe(T.Label()),
203
- comment: S.optional(S.String),
204
- }).pipe(T.Http({ method: "POST", uri: "/sprites/{name}/checkpoint", code: 200 })),
205
- ).annotate({ identifier: "CreateCheckpointRequest" }) as any as S.Schema<CreateCheckpointRequest>;
206
-
207
93
  export interface StreamEvent {
208
94
  type?: string;
209
95
  data?: string;
210
96
  error?: string;
211
97
  time?: string;
212
98
  }
213
- export const StreamEvent = /*@__PURE__*/ S.suspend(() =>
214
- S.Struct({
215
- type: S.optional(S.String),
216
- data: S.optional(S.String),
217
- error: S.optional(S.String),
218
- time: S.optional(S.String),
219
- }),
220
- ).annotate({ identifier: "StreamEvent" }) as any as S.Schema<StreamEvent>;
221
-
222
99
  export type CreateCheckpointResponseBodyList = Array<StreamEvent>;
223
- export const CreateCheckpointResponseBodyList = /*@__PURE__*/ S.Array(
224
- StreamEvent,
225
- ) as any as S.Schema<CreateCheckpointResponseBodyList>;
226
-
227
100
  export type CreateCheckpointResponse = CreateCheckpointResponseBodyList;
228
- export const CreateCheckpointResponse = /*@__PURE__*/ S.suspend(() =>
229
- CreateCheckpointResponseBodyList.pipe(T.RawResponseRoot()),
230
- ).annotate({ identifier: "CreateCheckpointResponse" }) as any as S.Schema<CreateCheckpointResponse>;
231
-
232
101
  /** Provider API paths the connector may call. Supports exact paths and trailing `*` prefix wildcards. */
233
102
  export type AccessPolicyAllowedEndpointsList = Array<string>;
234
- export const AccessPolicyAllowedEndpointsList = /*@__PURE__*/ S.Array(
235
- S.String,
236
- ) as any as S.Schema<AccessPolicyAllowedEndpointsList>;
237
-
238
103
  /** Provider API paths the connector may not call. Block rules are checked before allow rules. */
239
104
  export type AccessPolicyBlockedEndpointsList = Array<string>;
240
- export const AccessPolicyBlockedEndpointsList = /*@__PURE__*/ S.Array(
241
- S.String,
242
- ) as any as S.Schema<AccessPolicyBlockedEndpointsList>;
243
-
244
105
  /** Labels the calling sprite must have. All listed labels are required. */
245
106
  export type AccessPolicySpriteLabelsList = Array<string>;
246
- export const AccessPolicySpriteLabelsList = /*@__PURE__*/ S.Array(
247
- S.String,
248
- ) as any as S.Schema<AccessPolicySpriteLabelsList>;
249
-
250
107
  /** Connector access policy */
251
108
  export interface AccessPolicy {
252
109
  /** When true, all sprites in the organization may use this connector. */
@@ -260,16 +117,6 @@ export interface AccessPolicy {
260
117
  /** Labels the calling sprite must have. All listed labels are required. */
261
118
  sprite_labels?: AccessPolicySpriteLabelsList;
262
119
  }
263
- export const AccessPolicy = /*@__PURE__*/ S.suspend(() =>
264
- S.Struct({
265
- allow_all: S.optional(S.Boolean),
266
- allowed_endpoints: S.optional(AccessPolicyAllowedEndpointsList),
267
- blocked_endpoints: S.optional(AccessPolicyBlockedEndpointsList),
268
- name_prefix: S.optional(S.String),
269
- sprite_labels: S.optional(AccessPolicySpriteLabelsList),
270
- }),
271
- ).annotate({ identifier: "AccessPolicy" }) as any as S.Schema<AccessPolicy>;
272
-
273
120
  export interface CreateOAuthApiKeyConnectionRequest {
274
121
  /** Initial access policy. Empty or missing policies deny sprite use until updated. */
275
122
  access_policy?: AccessPolicy;
@@ -280,27 +127,10 @@ export interface CreateOAuthApiKeyConnectionRequest {
280
127
  /** API-key provider. */
281
128
  provider: string;
282
129
  }
283
- export const CreateOAuthApiKeyConnectionRequest = /*@__PURE__*/ S.suspend(() =>
284
- S.Struct({
285
- access_policy: S.optional(AccessPolicy),
286
- api_key: S.String.pipe(T.SensitiveValue({})),
287
- base_api_url: S.optional(S.String),
288
- provider: S.String,
289
- }).pipe(T.Http({ method: "POST", uri: "/oauth/connections/api_key", code: 200 })),
290
- ).annotate({
291
- identifier: "CreateOAuthApiKeyConnectionRequest",
292
- }) as any as S.Schema<CreateOAuthApiKeyConnectionRequest>;
293
-
294
130
  /** How the connector was created. */
295
131
  export type ConnectionConnectionType = "oauth" | "api_key" | "provisioned" | "internal";
296
- export const ConnectionConnectionType = S.String;
297
-
298
132
  /** Provider notes about this connection, derived from its saved settings. Each has a nullable `title` and a `body`; backticks mark inline code. */
299
133
  export type ConnectionNotesList = Array<unknown>;
300
- export const ConnectionNotesList = /*@__PURE__*/ S.Array(
301
- S.Unknown,
302
- ) as any as S.Schema<ConnectionNotesList>;
303
-
304
134
  /** Connector */
305
135
  export interface Connection {
306
136
  /** Policy controlling which sprites and provider endpoints may use this connector. */
@@ -332,36 +162,11 @@ export interface Connection {
332
162
  /** Sprites user ID that created or owns the connector. */
333
163
  user_id?: string;
334
164
  }
335
- export const Connection = /*@__PURE__*/ S.suspend(() =>
336
- S.Struct({
337
- access_policy: S.optional(AccessPolicy),
338
- connection_type: S.optional(ConnectionConnectionType),
339
- id: S.String,
340
- inserted_at: S.optional(S.String),
341
- notes: S.optional(ConnectionNotesList),
342
- provider: S.String,
343
- provider_account_id: S.String,
344
- provider_account_name: S.optional(S.String),
345
- provider_info: S.optional(S.Unknown),
346
- scopes: S.optional(S.String),
347
- token_expires_at: S.optional(S.String),
348
- updated_at: S.optional(S.String),
349
- usage_snippet: S.optional(S.String),
350
- user_id: S.optional(S.String),
351
- }),
352
- ).annotate({ identifier: "Connection" }) as any as S.Schema<Connection>;
353
-
354
165
  /** Connector response */
355
166
  export interface ConnectionResponse {
356
167
  /** Sanitized connector. Secrets and encrypted token fields are never returned. */
357
168
  connection: Connection;
358
169
  }
359
- export const ConnectionResponse = /*@__PURE__*/ S.suspend(() =>
360
- S.Struct({
361
- connection: Connection,
362
- }),
363
- ).annotate({ identifier: "ConnectionResponse" }) as any as S.Schema<ConnectionResponse>;
364
-
365
170
  export interface CreateOrganizationTokenRequest {
366
171
  /** Fly organization slug */
367
172
  org: string;
@@ -370,48 +175,18 @@ export interface CreateOrganizationTokenRequest {
370
175
  /** Optional Sprites invite code */
371
176
  invite_code?: string;
372
177
  }
373
- export const CreateOrganizationTokenRequest = /*@__PURE__*/ S.suspend(() =>
374
- S.Struct({
375
- org: S.String.pipe(T.Label()),
376
- description: S.optional(S.String),
377
- invite_code: S.optional(S.String),
378
- }).pipe(T.Http({ method: "POST", uri: "/organizations/{org}/tokens", code: 200 })),
379
- ).annotate({
380
- identifier: "CreateOrganizationTokenRequest",
381
- }) as any as S.Schema<CreateOrganizationTokenRequest>;
382
-
383
178
  export interface CreateOrganizationTokenResponse {
384
179
  /** Sprites bearer token. Send as Authorization: Bearer on subsequent sprite ops. */
385
180
  token: string | Redacted.Redacted<string>;
386
181
  }
387
- export const CreateOrganizationTokenResponse = /*@__PURE__*/ S.suspend(() =>
388
- S.Struct({
389
- token: S.String.pipe(T.SensitiveValue({})),
390
- }),
391
- ).annotate({
392
- identifier: "CreateOrganizationTokenResponse",
393
- }) as any as S.Schema<CreateOrganizationTokenResponse>;
394
-
395
182
  /** Authentication type (default: sprite) */
396
183
  export type UrlSettingsRequestAuth = "sprite" | "public";
397
- export const UrlSettingsRequestAuth = S.String;
398
-
399
184
  /** URL settings request */
400
185
  export interface UrlSettingsRequest {
401
186
  /** Authentication type (default: sprite) */
402
187
  auth?: UrlSettingsRequestAuth | (string & {});
403
188
  }
404
- export const UrlSettingsRequest = /*@__PURE__*/ S.suspend(() =>
405
- S.Struct({
406
- auth: S.optional(UrlSettingsRequestAuth),
407
- }),
408
- ).annotate({ identifier: "UrlSettingsRequest" }) as any as S.Schema<UrlSettingsRequest>;
409
-
410
189
  export type SpritesCreatePostRequestLabelsList = Array<string>;
411
- export const SpritesCreatePostRequestLabelsList = /*@__PURE__*/ S.Array(
412
- S.String,
413
- ) as any as S.Schema<SpritesCreatePostRequestLabelsList>;
414
-
415
190
  export interface CreateSpriteRequest {
416
191
  /** Unique name for the sprite within the organization */
417
192
  name: string;
@@ -420,32 +195,14 @@ export interface CreateSpriteRequest {
420
195
  /** Labels stamped on the sprite */
421
196
  labels?: SpritesCreatePostRequestLabelsList;
422
197
  }
423
- export const CreateSpriteRequest = /*@__PURE__*/ S.suspend(() =>
424
- S.Struct({
425
- name: S.String,
426
- url_settings: S.optional(UrlSettingsRequest),
427
- labels: S.optional(SpritesCreatePostRequestLabelsList),
428
- }).pipe(T.Http({ method: "POST", uri: "/sprites", code: 200 })),
429
- ).annotate({ identifier: "CreateSpriteRequest" }) as any as S.Schema<CreateSpriteRequest>;
430
-
431
198
  /** Labels assigned to the sprite. Omitted when empty. */
432
199
  export type SpriteResponseLabelsList = Array<string>;
433
- export const SpriteResponseLabelsList = /*@__PURE__*/ S.Array(
434
- S.String,
435
- ) as any as S.Schema<SpriteResponseLabelsList>;
436
-
437
200
  /** Runtime status */
438
201
  export type SpriteResponseStatus = "cold" | "warm" | "running";
439
- export const SpriteResponseStatus = S.String;
440
-
441
202
  /** Authentication type */
442
203
  export type UrlSettingsAuth = "sprite" | "public";
443
- export const UrlSettingsAuth = S.String;
444
-
445
204
  /** Who may access a sprite-authenticated URL. */
446
205
  export type UrlSettingsPrivateAccess = "admins" | "organization";
447
- export const UrlSettingsPrivateAccess = S.String;
448
-
449
206
  /** URL access settings */
450
207
  export interface UrlSettings {
451
208
  /** Authentication type */
@@ -453,13 +210,6 @@ export interface UrlSettings {
453
210
  /** Who may access a sprite-authenticated URL. */
454
211
  private_access?: UrlSettingsPrivateAccess;
455
212
  }
456
- export const UrlSettings = /*@__PURE__*/ S.suspend(() =>
457
- S.Struct({
458
- auth: UrlSettingsAuth,
459
- private_access: S.optional(UrlSettingsPrivateAccess),
460
- }),
461
- ).annotate({ identifier: "UrlSettings" }) as any as S.Schema<UrlSettings>;
462
-
463
213
  /** Sprite resource */
464
214
  export interface SpriteResponse {
465
215
  /** Creation timestamp (ISO 8601) */
@@ -489,24 +239,6 @@ export interface SpriteResponse {
489
239
  /** Version configured for or currently running on the sprite. */
490
240
  version?: string | null;
491
241
  }
492
- export const SpriteResponse = /*@__PURE__*/ S.suspend(() =>
493
- S.Struct({
494
- created_at: S.String,
495
- environment_version: S.optional(S.NullOr(S.String)),
496
- id: S.String,
497
- labels: S.optional(SpriteResponseLabelsList),
498
- last_running_at: S.optional(S.NullOr(S.String)),
499
- last_warming_at: S.optional(S.NullOr(S.String)),
500
- name: S.String,
501
- organization: S.String,
502
- status: SpriteResponseStatus,
503
- updated_at: S.String,
504
- url: S.String,
505
- url_settings: S.optional(S.NullOr(UrlSettings)),
506
- version: S.optional(S.NullOr(S.String)),
507
- }),
508
- ).annotate({ identifier: "SpriteResponse" }) as any as S.Schema<SpriteResponse>;
509
-
510
242
  export interface DeleteFileRequest {
511
243
  name: string;
512
244
  asRoot: boolean;
@@ -514,104 +246,29 @@ export interface DeleteFileRequest {
514
246
  recursive: boolean;
515
247
  workingDir: string;
516
248
  }
517
- export const DeleteFileRequest = /*@__PURE__*/ S.suspend(() =>
518
- S.Struct({
519
- name: S.String.pipe(T.Label()),
520
- asRoot: S.Boolean,
521
- path: S.String,
522
- recursive: S.Boolean,
523
- workingDir: S.String,
524
- }).pipe(T.Http({ method: "DELETE", uri: "/sprites/{name}/fs/delete", code: 200 })),
525
- ).annotate({ identifier: "DeleteFileRequest" }) as any as S.Schema<DeleteFileRequest>;
526
-
527
249
  export type DeleteResponseDeletedList = Array<string>;
528
- export const DeleteResponseDeletedList = /*@__PURE__*/ S.Array(
529
- S.String,
530
- ) as any as S.Schema<DeleteResponseDeletedList>;
531
-
532
250
  export interface DeleteResponse {
533
251
  count: number;
534
252
  deleted: DeleteResponseDeletedList;
535
253
  }
536
- export const DeleteResponse = /*@__PURE__*/ S.suspend(() =>
537
- S.Struct({
538
- count: S.Number,
539
- deleted: DeleteResponseDeletedList,
540
- }),
541
- ).annotate({ identifier: "DeleteResponse" }) as any as S.Schema<DeleteResponse>;
542
-
543
254
  export interface DeleteOAuthConnectionRequest {
544
255
  id: string;
545
256
  }
546
- export const DeleteOAuthConnectionRequest = /*@__PURE__*/ S.suspend(() =>
547
- S.Struct({
548
- id: S.String.pipe(T.Label()),
549
- }).pipe(T.Http({ method: "DELETE", uri: "/oauth/connections/{id}", code: 200 })),
550
- ).annotate({
551
- identifier: "DeleteOAuthConnectionRequest",
552
- }) as any as S.Schema<DeleteOAuthConnectionRequest>;
553
-
554
257
  export interface DeleteOAuthConnectionResponse {}
555
- export const DeleteOAuthConnectionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
556
- identifier: "DeleteOAuthConnectionResponse",
557
- }) as any as S.Schema<DeleteOAuthConnectionResponse>;
558
-
559
258
  export interface DeletePrivilegesPolicyRequest {
560
259
  name: string;
561
260
  }
562
- export const DeletePrivilegesPolicyRequest = /*@__PURE__*/ S.suspend(() =>
563
- S.Struct({
564
- name: S.String.pipe(T.Label()),
565
- }).pipe(T.Http({ method: "DELETE", uri: "/sprites/{name}/policy/privileges", code: 200 })),
566
- ).annotate({
567
- identifier: "DeletePrivilegesPolicyRequest",
568
- }) as any as S.Schema<DeletePrivilegesPolicyRequest>;
569
-
570
261
  export interface DeletePrivilegesPolicyResponse {}
571
- export const DeletePrivilegesPolicyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
572
- identifier: "DeletePrivilegesPolicyResponse",
573
- }) as any as S.Schema<DeletePrivilegesPolicyResponse>;
574
-
575
262
  export interface DeleteResourcesPolicyRequest {
576
263
  name: string;
577
264
  }
578
- export const DeleteResourcesPolicyRequest = /*@__PURE__*/ S.suspend(() =>
579
- S.Struct({
580
- name: S.String.pipe(T.Label()),
581
- }).pipe(T.Http({ method: "DELETE", uri: "/sprites/{name}/policy/resources", code: 200 })),
582
- ).annotate({
583
- identifier: "DeleteResourcesPolicyRequest",
584
- }) as any as S.Schema<DeleteResourcesPolicyRequest>;
585
-
586
265
  export interface DeleteResourcesPolicyResponse {}
587
- export const DeleteResourcesPolicyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
588
- identifier: "DeleteResourcesPolicyResponse",
589
- }) as any as S.Schema<DeleteResourcesPolicyResponse>;
590
-
591
266
  export interface DeleteSpriteRequest {
592
267
  name: string;
593
268
  }
594
- export const DeleteSpriteRequest = /*@__PURE__*/ S.suspend(() =>
595
- S.Struct({
596
- name: S.String.pipe(T.Label()),
597
- }).pipe(T.Http({ method: "DELETE", uri: "/sprites/{name}", code: 200 })),
598
- ).annotate({ identifier: "DeleteSpriteRequest" }) as any as S.Schema<DeleteSpriteRequest>;
599
-
600
269
  export interface DeleteSpriteResponse {}
601
- export const DeleteSpriteResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
602
- identifier: "DeleteSpriteResponse",
603
- }) as any as S.Schema<DeleteSpriteResponse>;
604
-
605
270
  export type SpriteEnvExecuteCommandRequestCmdList = Array<string>;
606
- export const SpriteEnvExecuteCommandRequestCmdList = /*@__PURE__*/ S.Array(
607
- S.String,
608
- ) as any as S.Schema<SpriteEnvExecuteCommandRequestCmdList>;
609
-
610
271
  export type SpriteEnvExecuteCommandRequestEnvList = Array<string>;
611
- export const SpriteEnvExecuteCommandRequestEnvList = /*@__PURE__*/ S.Array(
612
- S.String,
613
- ) as any as S.Schema<SpriteEnvExecuteCommandRequestEnvList>;
614
-
615
272
  export interface ExecCommandRequest {
616
273
  name: string;
617
274
  /** Command to execute (can be repeated for command + args) */
@@ -626,49 +283,15 @@ export interface ExecCommandRequest {
626
283
  dir?: string;
627
284
  body?: Uint8Array | string;
628
285
  }
629
- export const ExecCommandRequest = /*@__PURE__*/ S.suspend(() =>
630
- S.Struct({
631
- name: S.String.pipe(T.Label()),
632
- cmd: SpriteEnvExecuteCommandRequestCmdList.pipe(T.Query()),
633
- path: S.optional(S.String.pipe(T.Query())),
634
- stdin: S.optional(S.Boolean.pipe(T.Query())),
635
- env: S.optional(SpriteEnvExecuteCommandRequestEnvList.pipe(T.Query())),
636
- dir: S.optional(S.String.pipe(T.Query())),
637
- body: S.optional(S.String.pipe(T.HttpBody())),
638
- }).pipe(
639
- T.Http({
640
- method: "POST",
641
- uri: "/sprites/{name}/exec",
642
- code: 200,
643
- bodyMediaType: "application/octet-stream",
644
- }),
645
- ),
646
- ).annotate({ identifier: "ExecCommandRequest" }) as any as S.Schema<ExecCommandRequest>;
647
-
648
286
  export interface ExecResult {
649
287
  exit_code?: number;
650
288
  stdout?: string;
651
289
  stderr?: string;
652
290
  }
653
- export const ExecResult = /*@__PURE__*/ S.suspend(() =>
654
- S.Struct({
655
- exit_code: S.optional(S.Number),
656
- stdout: S.optional(S.String),
657
- stderr: S.optional(S.String),
658
- }),
659
- ).annotate({ identifier: "ExecResult" }) as any as S.Schema<ExecResult>;
660
-
661
291
  export interface GetCheckpointRequest {
662
292
  name: string;
663
293
  checkpoint_id: string;
664
294
  }
665
- export const GetCheckpointRequest = /*@__PURE__*/ S.suspend(() =>
666
- S.Struct({
667
- name: S.String.pipe(T.Label()),
668
- checkpoint_id: S.String.pipe(T.Label()),
669
- }).pipe(T.Http({ method: "GET", uri: "/sprites/{name}/checkpoints/{checkpoint_id}", code: 200 })),
670
- ).annotate({ identifier: "GetCheckpointRequest" }) as any as S.Schema<GetCheckpointRequest>;
671
-
672
295
  export interface CheckpointInfo {
673
296
  /** User-provided description */
674
297
  comment?: string;
@@ -681,25 +304,9 @@ export interface CheckpointInfo {
681
304
  /** Parent checkpoint ID */
682
305
  source_id?: string;
683
306
  }
684
- export const CheckpointInfo = /*@__PURE__*/ S.suspend(() =>
685
- S.Struct({
686
- comment: S.optional(S.String),
687
- create_time: S.String,
688
- health: S.optional(S.String),
689
- id: S.String,
690
- source_id: S.optional(S.String),
691
- }),
692
- ).annotate({ identifier: "CheckpointInfo" }) as any as S.Schema<CheckpointInfo>;
693
-
694
307
  export interface GetNetworkPolicyRequest {
695
308
  name: string;
696
309
  }
697
- export const GetNetworkPolicyRequest = /*@__PURE__*/ S.suspend(() =>
698
- S.Struct({
699
- name: S.String.pipe(T.Label()),
700
- }).pipe(T.Http({ method: "GET", uri: "/sprites/{name}/policy/network", code: 200 })),
701
- ).annotate({ identifier: "GetNetworkPolicyRequest" }) as any as S.Schema<GetNetworkPolicyRequest>;
702
-
703
310
  export interface NetworkPolicyRule {
704
311
  /** `allow` or `deny` */
705
312
  action?: string;
@@ -708,96 +315,31 @@ export interface NetworkPolicyRule {
708
315
  /** Include rules from preset */
709
316
  include?: string;
710
317
  }
711
- export const NetworkPolicyRule = /*@__PURE__*/ S.suspend(() =>
712
- S.Struct({
713
- action: S.optional(S.String),
714
- domain: S.optional(S.String),
715
- include: S.optional(S.String),
716
- }),
717
- ).annotate({ identifier: "NetworkPolicyRule" }) as any as S.Schema<NetworkPolicyRule>;
718
-
719
318
  /** List of network policy rules */
720
319
  export type NetworkPolicyRequestRulesList = Array<NetworkPolicyRule>;
721
- export const NetworkPolicyRequestRulesList = /*@__PURE__*/ S.Array(
722
- NetworkPolicyRule,
723
- ) as any as S.Schema<NetworkPolicyRequestRulesList>;
724
-
725
320
  export interface NetworkPolicyRequest {
726
321
  /** List of network policy rules */
727
322
  rules: NetworkPolicyRequestRulesList;
728
323
  }
729
- export const NetworkPolicyRequest = /*@__PURE__*/ S.suspend(() =>
730
- S.Struct({
731
- rules: NetworkPolicyRequestRulesList,
732
- }),
733
- ).annotate({ identifier: "NetworkPolicyRequest" }) as any as S.Schema<NetworkPolicyRequest>;
734
-
735
324
  export interface GetOAuthConnectionRequest {
736
325
  id: string;
737
326
  }
738
- export const GetOAuthConnectionRequest = /*@__PURE__*/ S.suspend(() =>
739
- S.Struct({
740
- id: S.String.pipe(T.Label()),
741
- }).pipe(T.Http({ method: "GET", uri: "/oauth/connections/{id}", code: 200 })),
742
- ).annotate({
743
- identifier: "GetOAuthConnectionRequest",
744
- }) as any as S.Schema<GetOAuthConnectionRequest>;
745
-
746
327
  export interface GetPrivilegesPolicyRequest {
747
328
  name: string;
748
329
  }
749
- export const GetPrivilegesPolicyRequest = /*@__PURE__*/ S.suspend(() =>
750
- S.Struct({
751
- name: S.String.pipe(T.Label()),
752
- }).pipe(T.Http({ method: "GET", uri: "/sprites/{name}/policy/privileges", code: 200 })),
753
- ).annotate({
754
- identifier: "GetPrivilegesPolicyRequest",
755
- }) as any as S.Schema<GetPrivilegesPolicyRequest>;
756
-
757
330
  export interface GetPrivilegesPolicyResponse {}
758
- export const GetPrivilegesPolicyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
759
- identifier: "GetPrivilegesPolicyResponse",
760
- }) as any as S.Schema<GetPrivilegesPolicyResponse>;
761
-
762
331
  export interface GetResourcesPolicyRequest {
763
332
  name: string;
764
333
  }
765
- export const GetResourcesPolicyRequest = /*@__PURE__*/ S.suspend(() =>
766
- S.Struct({
767
- name: S.String.pipe(T.Label()),
768
- }).pipe(T.Http({ method: "GET", uri: "/sprites/{name}/policy/resources", code: 200 })),
769
- ).annotate({
770
- identifier: "GetResourcesPolicyRequest",
771
- }) as any as S.Schema<GetResourcesPolicyRequest>;
772
-
773
334
  export interface GetResourcesPolicyResponse {}
774
- export const GetResourcesPolicyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
775
- identifier: "GetResourcesPolicyResponse",
776
- }) as any as S.Schema<GetResourcesPolicyResponse>;
777
-
778
335
  export interface GetServiceRequest {
779
336
  name: string;
780
337
  service_name: string;
781
338
  }
782
- export const GetServiceRequest = /*@__PURE__*/ S.suspend(() =>
783
- S.Struct({
784
- name: S.String.pipe(T.Label()),
785
- service_name: S.String.pipe(T.Label()),
786
- }).pipe(T.Http({ method: "GET", uri: "/sprites/{name}/services/{service_name}", code: 200 })),
787
- ).annotate({ identifier: "GetServiceRequest" }) as any as S.Schema<GetServiceRequest>;
788
-
789
339
  /** Command arguments */
790
340
  export type ServiceResponseArgsList = Array<string>;
791
- export const ServiceResponseArgsList = /*@__PURE__*/ S.Array(
792
- S.String,
793
- ) as any as S.Schema<ServiceResponseArgsList>;
794
-
795
341
  /** Service dependencies */
796
342
  export type ServiceResponseNeedsList = Array<string>;
797
- export const ServiceResponseNeedsList = /*@__PURE__*/ S.Array(
798
- S.String,
799
- ) as any as S.Schema<ServiceResponseNeedsList>;
800
-
801
343
  export interface ServiceState {
802
344
  /** Error message if failed */
803
345
  error?: string;
@@ -810,16 +352,6 @@ export interface ServiceState {
810
352
  /** `stopped`, `starting`, `running`, `stopping`, or `failed` */
811
353
  status: string;
812
354
  }
813
- export const ServiceState = /*@__PURE__*/ S.suspend(() =>
814
- S.Struct({
815
- error: S.optional(S.String),
816
- name: S.String,
817
- pid: S.optional(S.Number),
818
- started_at: S.optional(S.String),
819
- status: S.String,
820
- }),
821
- ).annotate({ identifier: "ServiceState" }) as any as S.Schema<ServiceState>;
822
-
823
355
  export interface ServiceResponse {
824
356
  /** Command arguments */
825
357
  args: ServiceResponseArgsList;
@@ -834,17 +366,6 @@ export interface ServiceResponse {
834
366
  /** Current runtime state */
835
367
  state?: ServiceState | null;
836
368
  }
837
- export const ServiceResponse = /*@__PURE__*/ S.suspend(() =>
838
- S.Struct({
839
- args: ServiceResponseArgsList,
840
- cmd: S.String,
841
- http_port: S.optional(S.NullOr(S.Number)),
842
- name: S.String,
843
- needs: ServiceResponseNeedsList,
844
- state: S.optional(S.NullOr(ServiceState)),
845
- }),
846
- ).annotate({ identifier: "ServiceResponse" }) as any as S.Schema<ServiceResponse>;
847
-
848
369
  export interface GetServiceLogsRequest {
849
370
  name: string;
850
371
  service_name: string;
@@ -853,31 +374,10 @@ export interface GetServiceLogsRequest {
853
374
  /** Time to follow new logs (default: `0`, no follow) */
854
375
  duration?: number;
855
376
  }
856
- export const GetServiceLogsRequest = /*@__PURE__*/ S.suspend(() =>
857
- S.Struct({
858
- name: S.String.pipe(T.Label()),
859
- service_name: S.String.pipe(T.Label()),
860
- lines: S.optional(S.Number.pipe(T.Query())),
861
- duration: S.optional(S.Number.pipe(T.Query())),
862
- }).pipe(
863
- T.Http({ method: "GET", uri: "/sprites/{name}/services/{service_name}/logs", code: 200 }),
864
- ),
865
- ).annotate({ identifier: "GetServiceLogsRequest" }) as any as S.Schema<GetServiceLogsRequest>;
866
-
867
377
  export interface GetServiceLogsResponse {}
868
- export const GetServiceLogsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
869
- identifier: "GetServiceLogsResponse",
870
- }) as any as S.Schema<GetServiceLogsResponse>;
871
-
872
378
  export interface GetSpriteRequest {
873
379
  name: string;
874
380
  }
875
- export const GetSpriteRequest = /*@__PURE__*/ S.suspend(() =>
876
- S.Struct({
877
- name: S.String.pipe(T.Label()),
878
- }).pipe(T.Http({ method: "GET", uri: "/sprites/{name}", code: 200 })),
879
- ).annotate({ identifier: "GetSpriteRequest" }) as any as S.Schema<GetSpriteRequest>;
880
-
881
381
  export interface KillExecSessionRequest {
882
382
  name: string;
883
383
  session_id: string;
@@ -886,39 +386,12 @@ export interface KillExecSessionRequest {
886
386
  /** Timeout waiting for process to exit (default: `10s`) */
887
387
  timeout?: number;
888
388
  }
889
- export const KillExecSessionRequest = /*@__PURE__*/ S.suspend(() =>
890
- S.Struct({
891
- name: S.String.pipe(T.Label()),
892
- session_id: S.String.pipe(T.Label()),
893
- signal: S.optional(S.String.pipe(T.Query())),
894
- timeout: S.optional(S.Number.pipe(T.Query())),
895
- }).pipe(T.Http({ method: "POST", uri: "/sprites/{name}/exec/{session_id}/kill", code: 200 })),
896
- ).annotate({ identifier: "KillExecSessionRequest" }) as any as S.Schema<KillExecSessionRequest>;
897
-
898
389
  export interface KillExecSessionResponse {}
899
- export const KillExecSessionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
900
- identifier: "KillExecSessionResponse",
901
- }) as any as S.Schema<KillExecSessionResponse>;
902
-
903
390
  export interface ListCheckpointsRequest {
904
391
  name: string;
905
392
  }
906
- export const ListCheckpointsRequest = /*@__PURE__*/ S.suspend(() =>
907
- S.Struct({
908
- name: S.String.pipe(T.Label()),
909
- }).pipe(T.Http({ method: "GET", uri: "/sprites/{name}/checkpoints", code: 200 })),
910
- ).annotate({ identifier: "ListCheckpointsRequest" }) as any as S.Schema<ListCheckpointsRequest>;
911
-
912
393
  export type ListCheckpointsResponseBodyList = Array<CheckpointInfo>;
913
- export const ListCheckpointsResponseBodyList = /*@__PURE__*/ S.Array(
914
- CheckpointInfo,
915
- ) as any as S.Schema<ListCheckpointsResponseBodyList>;
916
-
917
394
  export type ListCheckpointsResponse = ListCheckpointsResponseBodyList;
918
- export const ListCheckpointsResponse = /*@__PURE__*/ S.suspend(() =>
919
- ListCheckpointsResponseBodyList.pipe(T.RawResponseRoot()),
920
- ).annotate({ identifier: "ListCheckpointsResponse" }) as any as S.Schema<ListCheckpointsResponse>;
921
-
922
395
  export interface ListDirectoryRequest {
923
396
  name: string;
924
397
  /** Path to the directory to list */
@@ -926,14 +399,6 @@ export interface ListDirectoryRequest {
926
399
  /** Working directory for resolving relative paths */
927
400
  workingDir: string;
928
401
  }
929
- export const ListDirectoryRequest = /*@__PURE__*/ S.suspend(() =>
930
- S.Struct({
931
- name: S.String.pipe(T.Label()),
932
- path: S.String.pipe(T.Query()),
933
- workingDir: S.String.pipe(T.Query()),
934
- }).pipe(T.Http({ method: "GET", uri: "/sprites/{name}/fs/list", code: 200 })),
935
- ).annotate({ identifier: "ListDirectoryRequest" }) as any as S.Schema<ListDirectoryRequest>;
936
-
937
402
  export interface Entry {
938
403
  isDir: boolean;
939
404
  modTime: string;
@@ -943,98 +408,32 @@ export interface Entry {
943
408
  size: number;
944
409
  type: string;
945
410
  }
946
- export const Entry = /*@__PURE__*/ S.suspend(() =>
947
- S.Struct({
948
- isDir: S.Boolean,
949
- modTime: S.String,
950
- mode: S.String,
951
- name: S.String,
952
- path: S.String,
953
- size: S.Number,
954
- type: S.String,
955
- }),
956
- ).annotate({ identifier: "Entry" }) as any as S.Schema<Entry>;
957
-
958
411
  export type ListResponseEntriesList = Array<Entry>;
959
- export const ListResponseEntriesList = /*@__PURE__*/ S.Array(
960
- Entry,
961
- ) as any as S.Schema<ListResponseEntriesList>;
962
-
963
412
  export interface ListResponse {
964
413
  count: number;
965
414
  entries: ListResponseEntriesList;
966
415
  path: string;
967
416
  }
968
- export const ListResponse = /*@__PURE__*/ S.suspend(() =>
969
- S.Struct({
970
- count: S.Number,
971
- entries: ListResponseEntriesList,
972
- path: S.String,
973
- }),
974
- ).annotate({ identifier: "ListResponse" }) as any as S.Schema<ListResponse>;
975
-
976
417
  export interface ListExecSessionsRequest {
977
418
  name: string;
978
419
  }
979
- export const ListExecSessionsRequest = /*@__PURE__*/ S.suspend(() =>
980
- S.Struct({
981
- name: S.String.pipe(T.Label()),
982
- }).pipe(T.Http({ method: "GET", uri: "/sprites/{name}/exec", code: 200 })),
983
- ).annotate({ identifier: "ListExecSessionsRequest" }) as any as S.Schema<ListExecSessionsRequest>;
984
-
985
420
  export interface ListExecSessionsResponse {}
986
- export const ListExecSessionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
987
- identifier: "ListExecSessionsResponse",
988
- }) as any as S.Schema<ListExecSessionsResponse>;
989
-
990
421
  export interface ListOAuthConnectionsRequest {
991
422
  /** Optional provider filter. */
992
423
  provider?: string;
993
424
  }
994
- export const ListOAuthConnectionsRequest = /*@__PURE__*/ S.suspend(() =>
995
- S.Struct({
996
- provider: S.optional(S.String.pipe(T.Query())),
997
- }).pipe(T.Http({ method: "GET", uri: "/oauth/connections", code: 200 })),
998
- ).annotate({
999
- identifier: "ListOAuthConnectionsRequest",
1000
- }) as any as S.Schema<ListOAuthConnectionsRequest>;
1001
-
1002
425
  /** Connectors configured for the organization. */
1003
426
  export type ConnectionListResponseConnectionsList = Array<Connection>;
1004
- export const ConnectionListResponseConnectionsList = /*@__PURE__*/ S.Array(
1005
- Connection,
1006
- ) as any as S.Schema<ConnectionListResponseConnectionsList>;
1007
-
1008
427
  /** Connector list response */
1009
428
  export interface ConnectionListResponse {
1010
429
  /** Connectors configured for the organization. */
1011
430
  connections: ConnectionListResponseConnectionsList;
1012
431
  }
1013
- export const ConnectionListResponse = /*@__PURE__*/ S.suspend(() =>
1014
- S.Struct({
1015
- connections: ConnectionListResponseConnectionsList,
1016
- }),
1017
- ).annotate({ identifier: "ConnectionListResponse" }) as any as S.Schema<ConnectionListResponse>;
1018
-
1019
432
  export interface ListServicesRequest {
1020
433
  name: string;
1021
434
  }
1022
- export const ListServicesRequest = /*@__PURE__*/ S.suspend(() =>
1023
- S.Struct({
1024
- name: S.String.pipe(T.Label()),
1025
- }).pipe(T.Http({ method: "GET", uri: "/sprites/{name}/services", code: 200 })),
1026
- ).annotate({ identifier: "ListServicesRequest" }) as any as S.Schema<ListServicesRequest>;
1027
-
1028
435
  export type ListServicesResponseBodyList = Array<ServiceResponse>;
1029
- export const ListServicesResponseBodyList = /*@__PURE__*/ S.Array(
1030
- ServiceResponse,
1031
- ) as any as S.Schema<ListServicesResponseBodyList>;
1032
-
1033
436
  export type ListServicesResponse = ListServicesResponseBodyList;
1034
- export const ListServicesResponse = /*@__PURE__*/ S.suspend(() =>
1035
- ListServicesResponseBodyList.pipe(T.RawResponseRoot()),
1036
- ).annotate({ identifier: "ListServicesResponse" }) as any as S.Schema<ListServicesResponse>;
1037
-
1038
437
  export interface ListSpritesRequest {
1039
438
  /** Filter sprites by name prefix */
1040
439
  prefix?: string;
@@ -1043,20 +442,8 @@ export interface ListSpritesRequest {
1043
442
  /** Token from previous response for pagination */
1044
443
  continuation_token?: string;
1045
444
  }
1046
- export const ListSpritesRequest = /*@__PURE__*/ S.suspend(() =>
1047
- S.Struct({
1048
- prefix: S.optional(S.String.pipe(T.Query())),
1049
- max_results: S.optional(S.Number.pipe(T.Query())),
1050
- continuation_token: S.optional(S.String.pipe(T.Query())),
1051
- }).pipe(T.Http({ method: "GET", uri: "/sprites", code: 200 })),
1052
- ).annotate({ identifier: "ListSpritesRequest" }) as any as S.Schema<ListSpritesRequest>;
1053
-
1054
445
  /** List of sprite resources */
1055
446
  export type SpriteListResponseSpritesList = Array<SpriteResponse>;
1056
- export const SpriteListResponseSpritesList = /*@__PURE__*/ S.Array(
1057
- SpriteResponse,
1058
- ) as any as S.Schema<SpriteListResponseSpritesList>;
1059
-
1060
447
  /** Paginated sprite list */
1061
448
  export interface SpriteListResponse {
1062
449
  /** Number of returned sprites currently cold. */
@@ -1066,7 +453,7 @@ export interface SpriteListResponse {
1066
453
  /** Organization slug. */
1067
454
  name: string;
1068
455
  /** Token for fetching the next page of results */
1069
- next_continuation_token?: string;
456
+ next_continuation_token?: string | null;
1070
457
  /** Number of returned sprites currently running. */
1071
458
  running: number;
1072
459
  /** Organization-wide active sprite limit. */
@@ -1078,20 +465,6 @@ export interface SpriteListResponse {
1078
465
  /** Organization-wide warm sprite limit. */
1079
466
  warm_limit?: number;
1080
467
  }
1081
- export const SpriteListResponse = /*@__PURE__*/ S.suspend(() =>
1082
- S.Struct({
1083
- cold: S.Number,
1084
- has_more: S.Boolean,
1085
- name: S.String,
1086
- next_continuation_token: S.optional(S.String),
1087
- running: S.Number,
1088
- running_limit: S.optional(S.Number),
1089
- sprites: SpriteListResponseSpritesList,
1090
- warm: S.Number,
1091
- warm_limit: S.optional(S.Number),
1092
- }),
1093
- ).annotate({ identifier: "SpriteListResponse" }) as any as S.Schema<SpriteListResponse>;
1094
-
1095
468
  export interface OauthConnectionCallbackRequest {
1096
469
  provider: string;
1097
470
  /** Initial access policy. Empty or missing policies deny sprite use until updated. */
@@ -1103,56 +476,19 @@ export interface OauthConnectionCallbackRequest {
1103
476
  /** State value from the authorize response. */
1104
477
  state?: string;
1105
478
  }
1106
- export const OauthConnectionCallbackRequest = /*@__PURE__*/ S.suspend(() =>
1107
- S.Struct({
1108
- provider: S.String.pipe(T.Label()),
1109
- access_policy: S.optional(AccessPolicy),
1110
- code: S.String,
1111
- redirect_uri: S.optional(S.String),
1112
- state: S.optional(S.String),
1113
- }).pipe(T.Http({ method: "POST", uri: "/oauth/{provider}/callback", code: 200 })),
1114
- ).annotate({
1115
- identifier: "OauthConnectionCallbackRequest",
1116
- }) as any as S.Schema<OauthConnectionCallbackRequest>;
1117
-
1118
479
  export interface PatchOAuthConnectionRequest {
1119
480
  id: string;
1120
481
  /** Replacement access policy. */
1121
482
  access_policy: AccessPolicy;
1122
483
  }
1123
- export const PatchOAuthConnectionRequest = /*@__PURE__*/ S.suspend(() =>
1124
- S.Struct({
1125
- id: S.String.pipe(T.Label()),
1126
- access_policy: AccessPolicy,
1127
- }).pipe(T.Http({ method: "PATCH", uri: "/oauth/connections/{id}", code: 200 })),
1128
- ).annotate({
1129
- identifier: "PatchOAuthConnectionRequest",
1130
- }) as any as S.Schema<PatchOAuthConnectionRequest>;
1131
-
1132
484
  export interface ProvisionOAuthConnectionRequest {
1133
485
  /** Provider to provision. */
1134
486
  provider: string;
1135
487
  }
1136
- export const ProvisionOAuthConnectionRequest = /*@__PURE__*/ S.suspend(() =>
1137
- S.Struct({
1138
- provider: S.String,
1139
- }).pipe(T.Http({ method: "POST", uri: "/oauth/connections/provision", code: 200 })),
1140
- ).annotate({
1141
- identifier: "ProvisionOAuthConnectionRequest",
1142
- }) as any as S.Schema<ProvisionOAuthConnectionRequest>;
1143
-
1144
488
  /** Command arguments */
1145
489
  export type PutServiceRequestArgsList = Array<string>;
1146
- export const PutServiceRequestArgsList = /*@__PURE__*/ S.Array(
1147
- S.String,
1148
- ) as any as S.Schema<PutServiceRequestArgsList>;
1149
-
1150
490
  /** Service dependencies (started first) */
1151
491
  export type PutServiceRequestNeedsList = Array<string>;
1152
- export const PutServiceRequestNeedsList = /*@__PURE__*/ S.Array(
1153
- S.String,
1154
- ) as any as S.Schema<PutServiceRequestNeedsList>;
1155
-
1156
492
  export interface PutServiceRequest {
1157
493
  name: string;
1158
494
  service_name: string;
@@ -1171,20 +507,6 @@ export interface PutServiceRequest {
1171
507
  /** Service dependencies (started first) */
1172
508
  needs?: PutServiceRequestNeedsList;
1173
509
  }
1174
- export const PutServiceRequest = /*@__PURE__*/ S.suspend(() =>
1175
- S.Struct({
1176
- name: S.String.pipe(T.Label()),
1177
- service_name: S.String.pipe(T.Label()),
1178
- duration: S.optional(S.Number.pipe(T.Query())),
1179
- args: S.optional(PutServiceRequestArgsList),
1180
- cmd: S.String,
1181
- dir: S.optional(S.String),
1182
- env: S.optional(S.Unknown),
1183
- http_port: S.optional(S.NullOr(S.Number)),
1184
- needs: S.optional(PutServiceRequestNeedsList),
1185
- }).pipe(T.Http({ method: "PUT", uri: "/sprites/{name}/services/{service_name}", code: 200 })),
1186
- ).annotate({ identifier: "PutServiceRequest" }) as any as S.Schema<PutServiceRequest>;
1187
-
1188
510
  export interface ReadFileRequest {
1189
511
  name: string;
1190
512
  /** Path to the file to read */
@@ -1192,19 +514,7 @@ export interface ReadFileRequest {
1192
514
  /** Working directory for resolving relative paths */
1193
515
  workingDir: string;
1194
516
  }
1195
- export const ReadFileRequest = /*@__PURE__*/ S.suspend(() =>
1196
- S.Struct({
1197
- name: S.String.pipe(T.Label()),
1198
- path: S.String.pipe(T.Query()),
1199
- workingDir: S.String.pipe(T.Query()),
1200
- }).pipe(T.Http({ method: "GET", uri: "/sprites/{name}/fs/read", code: 200 })),
1201
- ).annotate({ identifier: "ReadFileRequest" }) as any as S.Schema<ReadFileRequest>;
1202
-
1203
517
  export interface ReadFileResponse {}
1204
- export const ReadFileResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1205
- identifier: "ReadFileResponse",
1206
- }) as any as S.Schema<ReadFileResponse>;
1207
-
1208
518
  export interface RenameFileRequest {
1209
519
  name: string;
1210
520
  asRoot: boolean;
@@ -1212,200 +522,63 @@ export interface RenameFileRequest {
1212
522
  source: string;
1213
523
  workingDir: string;
1214
524
  }
1215
- export const RenameFileRequest = /*@__PURE__*/ S.suspend(() =>
1216
- S.Struct({
1217
- name: S.String.pipe(T.Label()),
1218
- asRoot: S.Boolean,
1219
- dest: S.String,
1220
- source: S.String,
1221
- workingDir: S.String,
1222
- }).pipe(T.Http({ method: "POST", uri: "/sprites/{name}/fs/rename", code: 200 })),
1223
- ).annotate({ identifier: "RenameFileRequest" }) as any as S.Schema<RenameFileRequest>;
1224
-
1225
525
  export interface RenameResponse {
1226
526
  dest: string;
1227
527
  source: string;
1228
528
  }
1229
- export const RenameResponse = /*@__PURE__*/ S.suspend(() =>
1230
- S.Struct({
1231
- dest: S.String,
1232
- source: S.String,
1233
- }),
1234
- ).annotate({ identifier: "RenameResponse" }) as any as S.Schema<RenameResponse>;
1235
-
1236
529
  export interface RestartServiceRequest {
1237
530
  name: string;
1238
531
  service_name: string;
1239
532
  /** Time to monitor logs after starting (default: `5s`) */
1240
533
  duration?: number;
1241
534
  }
1242
- export const RestartServiceRequest = /*@__PURE__*/ S.suspend(() =>
1243
- S.Struct({
1244
- name: S.String.pipe(T.Label()),
1245
- service_name: S.String.pipe(T.Label()),
1246
- duration: S.optional(S.Number.pipe(T.Query())),
1247
- }).pipe(
1248
- T.Http({ method: "POST", uri: "/sprites/{name}/services/{service_name}/restart", code: 200 }),
1249
- ),
1250
- ).annotate({ identifier: "RestartServiceRequest" }) as any as S.Schema<RestartServiceRequest>;
1251
-
1252
535
  export interface RestartServiceResponse {}
1253
- export const RestartServiceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1254
- identifier: "RestartServiceResponse",
1255
- }) as any as S.Schema<RestartServiceResponse>;
1256
-
1257
536
  export interface RestoreCheckpointRequest {
1258
537
  name: string;
1259
538
  checkpoint_id: string;
1260
539
  }
1261
- export const RestoreCheckpointRequest = /*@__PURE__*/ S.suspend(() =>
1262
- S.Struct({
1263
- name: S.String.pipe(T.Label()),
1264
- checkpoint_id: S.String.pipe(T.Label()),
1265
- }).pipe(
1266
- T.Http({
1267
- method: "POST",
1268
- uri: "/sprites/{name}/checkpoints/{checkpoint_id}/restore",
1269
- code: 200,
1270
- }),
1271
- ),
1272
- ).annotate({ identifier: "RestoreCheckpointRequest" }) as any as S.Schema<RestoreCheckpointRequest>;
1273
-
1274
540
  export type RestoreCheckpointResponseBodyList = Array<StreamEvent>;
1275
- export const RestoreCheckpointResponseBodyList = /*@__PURE__*/ S.Array(
1276
- StreamEvent,
1277
- ) as any as S.Schema<RestoreCheckpointResponseBodyList>;
1278
-
1279
541
  export type RestoreCheckpointResponse = RestoreCheckpointResponseBodyList;
1280
- export const RestoreCheckpointResponse = /*@__PURE__*/ S.suspend(() =>
1281
- RestoreCheckpointResponseBodyList.pipe(T.RawResponseRoot()),
1282
- ).annotate({
1283
- identifier: "RestoreCheckpointResponse",
1284
- }) as any as S.Schema<RestoreCheckpointResponse>;
1285
-
1286
542
  /** List of network policy rules */
1287
543
  export type SetNetworkPolicyRequestRulesList = Array<NetworkPolicyRule>;
1288
- export const SetNetworkPolicyRequestRulesList = /*@__PURE__*/ S.Array(
1289
- NetworkPolicyRule,
1290
- ) as any as S.Schema<SetNetworkPolicyRequestRulesList>;
1291
-
1292
544
  export interface SetNetworkPolicyRequest {
1293
545
  name: string;
1294
546
  /** List of network policy rules */
1295
547
  rules: SetNetworkPolicyRequestRulesList;
1296
548
  }
1297
- export const SetNetworkPolicyRequest = /*@__PURE__*/ S.suspend(() =>
1298
- S.Struct({
1299
- name: S.String.pipe(T.Label()),
1300
- rules: SetNetworkPolicyRequestRulesList,
1301
- }).pipe(T.Http({ method: "POST", uri: "/sprites/{name}/policy/network", code: 200 })),
1302
- ).annotate({ identifier: "SetNetworkPolicyRequest" }) as any as S.Schema<SetNetworkPolicyRequest>;
1303
-
1304
549
  export interface SetNetworkPolicyResponse {}
1305
- export const SetNetworkPolicyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1306
- identifier: "SetNetworkPolicyResponse",
1307
- }) as any as S.Schema<SetNetworkPolicyResponse>;
1308
-
1309
550
  export interface SetPrivilegesPolicyRequest {
1310
551
  name: string;
1311
552
  }
1312
- export const SetPrivilegesPolicyRequest = /*@__PURE__*/ S.suspend(() =>
1313
- S.Struct({
1314
- name: S.String.pipe(T.Label()),
1315
- }).pipe(T.Http({ method: "POST", uri: "/sprites/{name}/policy/privileges", code: 200 })),
1316
- ).annotate({
1317
- identifier: "SetPrivilegesPolicyRequest",
1318
- }) as any as S.Schema<SetPrivilegesPolicyRequest>;
1319
-
1320
553
  export interface SetPrivilegesPolicyResponse {}
1321
- export const SetPrivilegesPolicyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1322
- identifier: "SetPrivilegesPolicyResponse",
1323
- }) as any as S.Schema<SetPrivilegesPolicyResponse>;
1324
-
1325
554
  export interface SetResourcesPolicyRequest {
1326
555
  name: string;
1327
556
  }
1328
- export const SetResourcesPolicyRequest = /*@__PURE__*/ S.suspend(() =>
1329
- S.Struct({
1330
- name: S.String.pipe(T.Label()),
1331
- }).pipe(T.Http({ method: "POST", uri: "/sprites/{name}/policy/resources", code: 200 })),
1332
- ).annotate({
1333
- identifier: "SetResourcesPolicyRequest",
1334
- }) as any as S.Schema<SetResourcesPolicyRequest>;
1335
-
1336
557
  export interface SetResourcesPolicyResponse {}
1337
- export const SetResourcesPolicyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1338
- identifier: "SetResourcesPolicyResponse",
1339
- }) as any as S.Schema<SetResourcesPolicyResponse>;
1340
-
1341
558
  export interface StartServiceRequest {
1342
559
  name: string;
1343
560
  service_name: string;
1344
561
  /** Time to monitor logs after starting (default: `5s`) */
1345
562
  duration?: number;
1346
563
  }
1347
- export const StartServiceRequest = /*@__PURE__*/ S.suspend(() =>
1348
- S.Struct({
1349
- name: S.String.pipe(T.Label()),
1350
- service_name: S.String.pipe(T.Label()),
1351
- duration: S.optional(S.Number.pipe(T.Query())),
1352
- }).pipe(
1353
- T.Http({ method: "POST", uri: "/sprites/{name}/services/{service_name}/start", code: 200 }),
1354
- ),
1355
- ).annotate({ identifier: "StartServiceRequest" }) as any as S.Schema<StartServiceRequest>;
1356
-
1357
564
  export interface StartServiceResponse {}
1358
- export const StartServiceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1359
- identifier: "StartServiceResponse",
1360
- }) as any as S.Schema<StartServiceResponse>;
1361
-
1362
565
  export interface StopServiceRequest {
1363
566
  name: string;
1364
567
  service_name: string;
1365
568
  /** Timeout waiting for service to stop (default: `10s`) */
1366
569
  timeout?: number;
1367
570
  }
1368
- export const StopServiceRequest = /*@__PURE__*/ S.suspend(() =>
1369
- S.Struct({
1370
- name: S.String.pipe(T.Label()),
1371
- service_name: S.String.pipe(T.Label()),
1372
- timeout: S.optional(S.Number.pipe(T.Query())),
1373
- }).pipe(
1374
- T.Http({ method: "POST", uri: "/sprites/{name}/services/{service_name}/stop", code: 200 }),
1375
- ),
1376
- ).annotate({ identifier: "StopServiceRequest" }) as any as S.Schema<StopServiceRequest>;
1377
-
1378
571
  export interface StopServiceResponse {}
1379
- export const StopServiceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1380
- identifier: "StopServiceResponse",
1381
- }) as any as S.Schema<StopServiceResponse>;
1382
-
1383
572
  export interface UpdateOAuthConnectionRequest {
1384
573
  id: string;
1385
574
  /** Replacement access policy. */
1386
575
  access_policy: AccessPolicy;
1387
576
  }
1388
- export const UpdateOAuthConnectionRequest = /*@__PURE__*/ S.suspend(() =>
1389
- S.Struct({
1390
- id: S.String.pipe(T.Label()),
1391
- access_policy: AccessPolicy,
1392
- }).pipe(T.Http({ method: "PUT", uri: "/oauth/connections/{id}", code: 200 })),
1393
- ).annotate({
1394
- identifier: "UpdateOAuthConnectionRequest",
1395
- }) as any as S.Schema<UpdateOAuthConnectionRequest>;
1396
-
1397
577
  export interface UpdateSpriteRequest {
1398
578
  name: string;
1399
579
  /** URL access configuration to update */
1400
580
  url_settings: UrlSettingsRequest;
1401
581
  }
1402
- export const UpdateSpriteRequest = /*@__PURE__*/ S.suspend(() =>
1403
- S.Struct({
1404
- name: S.String.pipe(T.Label()),
1405
- url_settings: UrlSettingsRequest,
1406
- }).pipe(T.Http({ method: "PUT", uri: "/sprites/{name}", code: 200 })),
1407
- ).annotate({ identifier: "UpdateSpriteRequest" }) as any as S.Schema<UpdateSpriteRequest>;
1408
-
1409
582
  export interface WriteFileRequest {
1410
583
  name: string;
1411
584
  /** Path to the file to write */
@@ -1418,37 +591,11 @@ export interface WriteFileRequest {
1418
591
  mkdir?: boolean;
1419
592
  body: Uint8Array | string;
1420
593
  }
1421
- export const WriteFileRequest = /*@__PURE__*/ S.suspend(() =>
1422
- S.Struct({
1423
- name: S.String.pipe(T.Label()),
1424
- path: S.String.pipe(T.Query()),
1425
- workingDir: S.String.pipe(T.Query()),
1426
- mode: S.optional(S.String.pipe(T.Query())),
1427
- mkdir: S.optional(S.Boolean.pipe(T.Query())),
1428
- body: S.String.pipe(T.HttpBody()),
1429
- }).pipe(
1430
- T.Http({
1431
- method: "PUT",
1432
- uri: "/sprites/{name}/fs/write",
1433
- code: 200,
1434
- bodyMediaType: "application/octet-stream",
1435
- }),
1436
- ),
1437
- ).annotate({ identifier: "WriteFileRequest" }) as any as S.Schema<WriteFileRequest>;
1438
-
1439
594
  export interface WriteResponse {
1440
595
  mode: string;
1441
596
  path: string;
1442
597
  size: number;
1443
598
  }
1444
- export const WriteResponse = /*@__PURE__*/ S.suspend(() =>
1445
- S.Struct({
1446
- mode: S.String,
1447
- path: S.String,
1448
- size: S.Number,
1449
- }),
1450
- ).annotate({ identifier: "WriteResponse" }) as any as S.Schema<WriteResponse>;
1451
-
1452
599
  export type AuthorizeOAuthConnectionError = BadRequest | SpritesNotEnabled | SpritesOpError;
1453
600
  /** Authorize an OAuth connector Create an OAuth authorization URL for a provider. Use this to start a browser-based consent flow. */
1454
601
  export const authorizeOAuthConnection: API.OperationMethod<
@@ -1457,8 +604,8 @@ export const authorizeOAuthConnection: API.OperationMethod<
1457
604
  AuthorizeOAuthConnectionError,
1458
605
  SpritesOpContext
1459
606
  > = /*@__PURE__*/ API.make(() => ({
1460
- input: AuthorizeOAuthConnectionRequest,
1461
- output: OAuthAuthorizeResponse,
607
+ input: __S(0, __c0, 0) as any as S.Schema<AuthorizeOAuthConnectionRequest>,
608
+ output: __S(1, __c0, 1) as any as S.Schema<OAuthAuthorizeResponse>,
1462
609
  errors: [BadRequest, SpritesNotEnabled],
1463
610
  protocol: SpritesProtocol,
1464
611
  retry: Retry.Retry,
@@ -1472,8 +619,8 @@ export const changeFileMode: API.OperationMethod<
1472
619
  ChangeFileModeError,
1473
620
  SpritesOpContext
1474
621
  > = /*@__PURE__*/ API.make(() => ({
1475
- input: ChangeFileModeRequest,
1476
- output: ChmodResponse,
622
+ input: __S(4, __c1, 0) as any as S.Schema<ChangeFileModeRequest>,
623
+ output: __S(7, __c1, 3) as any as S.Schema<ChmodResponse>,
1477
624
  errors: [BadRequest, NotFound],
1478
625
  protocol: SpritesProtocol,
1479
626
  retry: Retry.Retry,
@@ -1487,8 +634,8 @@ export const changeFileOwner: API.OperationMethod<
1487
634
  ChangeFileOwnerError,
1488
635
  SpritesOpContext
1489
636
  > = /*@__PURE__*/ API.make(() => ({
1490
- input: ChangeFileOwnerRequest,
1491
- output: ChownResponse,
637
+ input: __S(60, __c15, 0) as any as S.Schema<ChangeFileOwnerRequest>,
638
+ output: __S(63, __c15, 3) as any as S.Schema<ChownResponse>,
1492
639
  errors: [BadRequest, NotFound],
1493
640
  protocol: SpritesProtocol,
1494
641
  retry: Retry.Retry,
@@ -1502,8 +649,8 @@ export const copyFile: API.OperationMethod<
1502
649
  CopyFileError,
1503
650
  SpritesOpContext
1504
651
  > = /*@__PURE__*/ API.make(() => ({
1505
- input: CopyFileRequest,
1506
- output: CopyResponse,
652
+ input: __S(104, __c26, 0) as any as S.Schema<CopyFileRequest>,
653
+ output: __S(106, __c26, 2) as any as S.Schema<CopyResponse>,
1507
654
  errors: [BadRequest, NotFound],
1508
655
  protocol: SpritesProtocol,
1509
656
  retry: Retry.Retry,
@@ -1517,8 +664,8 @@ export const createCheckpoint: API.OperationMethod<
1517
664
  CreateCheckpointError,
1518
665
  SpritesOpContext
1519
666
  > = /*@__PURE__*/ API.make(() => ({
1520
- input: CreateCheckpointRequest,
1521
- output: CreateCheckpointResponse,
667
+ input: __S(152, __c38, 0) as any as S.Schema<CreateCheckpointRequest>,
668
+ output: __S(158, __c39, 2) as any as S.Schema<CreateCheckpointResponse>,
1522
669
  errors: [NotFound],
1523
670
  protocol: SpritesProtocol,
1524
671
  retry: Retry.Retry,
@@ -1532,8 +679,8 @@ export const createOAuthApiKeyConnection: API.OperationMethod<
1532
679
  CreateOAuthApiKeyConnectionError,
1533
680
  SpritesOpContext
1534
681
  > = /*@__PURE__*/ API.make(() => ({
1535
- input: CreateOAuthApiKeyConnectionRequest,
1536
- output: ConnectionResponse,
682
+ input: __S(180, __c45, 0) as any as S.Schema<CreateOAuthApiKeyConnectionRequest>,
683
+ output: __S(188, __c47, 0) as any as S.Schema<ConnectionResponse>,
1537
684
  errors: [BadRequest, SpritesNotEnabled],
1538
685
  protocol: SpritesProtocol,
1539
686
  retry: Retry.Retry,
@@ -1547,8 +694,8 @@ export const createOrganizationToken: API.OperationMethod<
1547
694
  CreateOrganizationTokenError,
1548
695
  SpritesOpContext
1549
696
  > = /*@__PURE__*/ API.make(() => ({
1550
- input: CreateOrganizationTokenRequest,
1551
- output: CreateOrganizationTokenResponse,
697
+ input: __S(196, __c49, 0) as any as S.Schema<CreateOrganizationTokenRequest>,
698
+ output: __S(197, __c49, 1) as any as S.Schema<CreateOrganizationTokenResponse>,
1552
699
  errors: [SpritesNotEnabled],
1553
700
  protocol: SpritesProtocol,
1554
701
  retry: Retry.Retry,
@@ -1562,8 +709,8 @@ export const createSprite: API.OperationMethod<
1562
709
  CreateSpriteError,
1563
710
  SpritesOpContext
1564
711
  > = /*@__PURE__*/ API.make(() => ({
1565
- input: CreateSpriteRequest,
1566
- output: SpriteResponse,
712
+ input: __S(200, __c50, 0) as any as S.Schema<CreateSpriteRequest>,
713
+ output: __S(205, __c51, 1) as any as S.Schema<SpriteResponse>,
1567
714
  errors: [BadRequest, SpritesNotEnabled, Conflict],
1568
715
  protocol: SpritesProtocol,
1569
716
  retry: Retry.Retry,
@@ -1577,8 +724,8 @@ export const deleteFile: API.OperationMethod<
1577
724
  DeleteFileError,
1578
725
  SpritesOpContext
1579
726
  > = /*@__PURE__*/ API.make(() => ({
1580
- input: DeleteFileRequest,
1581
- output: DeleteResponse,
727
+ input: __S(212, __c53, 0) as any as S.Schema<DeleteFileRequest>,
728
+ output: __S(213, __c53, 1) as any as S.Schema<DeleteResponse>,
1582
729
  errors: [BadRequest, NotFound],
1583
730
  protocol: SpritesProtocol,
1584
731
  retry: Retry.Retry,
@@ -1592,8 +739,8 @@ export const deleteOAuthConnection: API.OperationMethod<
1592
739
  DeleteOAuthConnectionError,
1593
740
  SpritesOpContext
1594
741
  > = /*@__PURE__*/ API.make(() => ({
1595
- input: DeleteOAuthConnectionRequest,
1596
- output: DeleteOAuthConnectionResponse,
742
+ input: __S(216, __c54, 0) as any as S.Schema<DeleteOAuthConnectionRequest>,
743
+ output: __S(220, __c55, 0) as any as S.Schema<DeleteOAuthConnectionResponse>,
1597
744
  errors: [SpritesNotEnabled, NotFound],
1598
745
  protocol: SpritesProtocol,
1599
746
  retry: Retry.Retry,
@@ -1607,8 +754,8 @@ export const deletePrivilegesPolicy: API.OperationMethod<
1607
754
  DeletePrivilegesPolicyError,
1608
755
  SpritesOpContext
1609
756
  > = /*@__PURE__*/ API.make(() => ({
1610
- input: DeletePrivilegesPolicyRequest,
1611
- output: DeletePrivilegesPolicyResponse,
757
+ input: __S(8, __c2, 0) as any as S.Schema<DeletePrivilegesPolicyRequest>,
758
+ output: __S(220, __c55, 0) as any as S.Schema<DeletePrivilegesPolicyResponse>,
1612
759
  errors: [BadRequest, NotFound],
1613
760
  protocol: SpritesProtocol,
1614
761
  retry: Retry.Retry,
@@ -1622,8 +769,8 @@ export const deleteResourcesPolicy: API.OperationMethod<
1622
769
  DeleteResourcesPolicyError,
1623
770
  SpritesOpContext
1624
771
  > = /*@__PURE__*/ API.make(() => ({
1625
- input: DeleteResourcesPolicyRequest,
1626
- output: DeleteResourcesPolicyResponse,
772
+ input: __S(12, __c3, 0) as any as S.Schema<DeleteResourcesPolicyRequest>,
773
+ output: __S(220, __c55, 0) as any as S.Schema<DeleteResourcesPolicyResponse>,
1627
774
  errors: [BadRequest, NotFound],
1628
775
  protocol: SpritesProtocol,
1629
776
  retry: Retry.Retry,
@@ -1637,8 +784,8 @@ export const deleteSprite: API.OperationMethod<
1637
784
  DeleteSpriteError,
1638
785
  SpritesOpContext
1639
786
  > = /*@__PURE__*/ API.make(() => ({
1640
- input: DeleteSpriteRequest,
1641
- output: DeleteSpriteResponse,
787
+ input: __S(16, __c4, 0) as any as S.Schema<DeleteSpriteRequest>,
788
+ output: __S(220, __c55, 0) as any as S.Schema<DeleteSpriteResponse>,
1642
789
  errors: [SpritesNotEnabled, NotFound],
1643
790
  protocol: SpritesProtocol,
1644
791
  retry: Retry.Retry,
@@ -1652,8 +799,8 @@ export const execCommand: API.OperationMethod<
1652
799
  ExecCommandError,
1653
800
  SpritesOpContext
1654
801
  > = /*@__PURE__*/ API.make(() => ({
1655
- input: ExecCommandRequest,
1656
- output: ExecResult,
802
+ input: __S(20, __c5, 0) as any as S.Schema<ExecCommandRequest>,
803
+ output: __S(21, __c5, 1) as any as S.Schema<ExecResult>,
1657
804
  errors: [BadRequest, NotFound],
1658
805
  protocol: SpritesProtocol,
1659
806
  retry: Retry.Retry,
@@ -1667,8 +814,8 @@ export const getCheckpoint: API.OperationMethod<
1667
814
  GetCheckpointError,
1668
815
  SpritesOpContext
1669
816
  > = /*@__PURE__*/ API.make(() => ({
1670
- input: GetCheckpointRequest,
1671
- output: CheckpointInfo,
817
+ input: __S(24, __c6, 0) as any as S.Schema<GetCheckpointRequest>,
818
+ output: __S(28, __c7, 0) as any as S.Schema<CheckpointInfo>,
1672
819
  errors: [NotFound],
1673
820
  protocol: SpritesProtocol,
1674
821
  retry: Retry.Retry,
@@ -1682,8 +829,8 @@ export const getNetworkPolicy: API.OperationMethod<
1682
829
  GetNetworkPolicyError,
1683
830
  SpritesOpContext
1684
831
  > = /*@__PURE__*/ API.make(() => ({
1685
- input: GetNetworkPolicyRequest,
1686
- output: NetworkPolicyRequest,
832
+ input: __S(32, __c8, 0) as any as S.Schema<GetNetworkPolicyRequest>,
833
+ output: __S(33, __c8, 1) as any as S.Schema<NetworkPolicyRequest>,
1687
834
  errors: [NotFound],
1688
835
  protocol: SpritesProtocol,
1689
836
  retry: Retry.Retry,
@@ -1697,8 +844,8 @@ export const getOAuthConnection: API.OperationMethod<
1697
844
  GetOAuthConnectionError,
1698
845
  SpritesOpContext
1699
846
  > = /*@__PURE__*/ API.make(() => ({
1700
- input: GetOAuthConnectionRequest,
1701
- output: ConnectionResponse,
847
+ input: __S(40, __c10, 0) as any as S.Schema<GetOAuthConnectionRequest>,
848
+ output: __S(188, __c47, 0) as any as S.Schema<ConnectionResponse>,
1702
849
  errors: [SpritesNotEnabled, NotFound],
1703
850
  protocol: SpritesProtocol,
1704
851
  retry: Retry.Retry,
@@ -1712,8 +859,8 @@ export const getPrivilegesPolicy: API.OperationMethod<
1712
859
  GetPrivilegesPolicyError,
1713
860
  SpritesOpContext
1714
861
  > = /*@__PURE__*/ API.make(() => ({
1715
- input: GetPrivilegesPolicyRequest,
1716
- output: GetPrivilegesPolicyResponse,
862
+ input: __S(44, __c11, 0) as any as S.Schema<GetPrivilegesPolicyRequest>,
863
+ output: __S(220, __c55, 0) as any as S.Schema<GetPrivilegesPolicyResponse>,
1717
864
  errors: [NotFound],
1718
865
  protocol: SpritesProtocol,
1719
866
  retry: Retry.Retry,
@@ -1727,8 +874,8 @@ export const getResourcesPolicy: API.OperationMethod<
1727
874
  GetResourcesPolicyError,
1728
875
  SpritesOpContext
1729
876
  > = /*@__PURE__*/ API.make(() => ({
1730
- input: GetResourcesPolicyRequest,
1731
- output: GetResourcesPolicyResponse,
877
+ input: __S(48, __c12, 0) as any as S.Schema<GetResourcesPolicyRequest>,
878
+ output: __S(220, __c55, 0) as any as S.Schema<GetResourcesPolicyResponse>,
1732
879
  errors: [NotFound],
1733
880
  protocol: SpritesProtocol,
1734
881
  retry: Retry.Retry,
@@ -1742,8 +889,8 @@ export const getService: API.OperationMethod<
1742
889
  GetServiceError,
1743
890
  SpritesOpContext
1744
891
  > = /*@__PURE__*/ API.make(() => ({
1745
- input: GetServiceRequest,
1746
- output: ServiceResponse,
892
+ input: __S(52, __c13, 0) as any as S.Schema<GetServiceRequest>,
893
+ output: __S(57, __c14, 1) as any as S.Schema<ServiceResponse>,
1747
894
  errors: [NotFound],
1748
895
  protocol: SpritesProtocol,
1749
896
  retry: Retry.Retry,
@@ -1757,8 +904,8 @@ export const getServiceLogs: API.OperationMethod<
1757
904
  GetServiceLogsError,
1758
905
  SpritesOpContext
1759
906
  > = /*@__PURE__*/ API.make(() => ({
1760
- input: GetServiceLogsRequest,
1761
- output: GetServiceLogsResponse,
907
+ input: __S(64, __c16, 0) as any as S.Schema<GetServiceLogsRequest>,
908
+ output: __S(220, __c55, 0) as any as S.Schema<GetServiceLogsResponse>,
1762
909
  errors: [NotFound],
1763
910
  protocol: SpritesProtocol,
1764
911
  retry: Retry.Retry,
@@ -1772,8 +919,8 @@ export const getSprite: API.OperationMethod<
1772
919
  GetSpriteError,
1773
920
  SpritesOpContext
1774
921
  > = /*@__PURE__*/ API.make(() => ({
1775
- input: GetSpriteRequest,
1776
- output: SpriteResponse,
922
+ input: __S(68, __c17, 0) as any as S.Schema<GetSpriteRequest>,
923
+ output: __S(205, __c51, 1) as any as S.Schema<SpriteResponse>,
1777
924
  errors: [SpritesNotEnabled, NotFound],
1778
925
  protocol: SpritesProtocol,
1779
926
  retry: Retry.Retry,
@@ -1787,8 +934,8 @@ export const killExecSession: API.OperationMethod<
1787
934
  KillExecSessionError,
1788
935
  SpritesOpContext
1789
936
  > = /*@__PURE__*/ API.make(() => ({
1790
- input: KillExecSessionRequest,
1791
- output: KillExecSessionResponse,
937
+ input: __S(72, __c18, 0) as any as S.Schema<KillExecSessionRequest>,
938
+ output: __S(220, __c55, 0) as any as S.Schema<KillExecSessionResponse>,
1792
939
  errors: [NotFound],
1793
940
  protocol: SpritesProtocol,
1794
941
  retry: Retry.Retry,
@@ -1802,8 +949,8 @@ export const listCheckpoints: API.OperationMethod<
1802
949
  ListCheckpointsError,
1803
950
  SpritesOpContext
1804
951
  > = /*@__PURE__*/ API.make(() => ({
1805
- input: ListCheckpointsRequest,
1806
- output: ListCheckpointsResponse,
952
+ input: __S(76, __c19, 0) as any as S.Schema<ListCheckpointsRequest>,
953
+ output: __S(78, __c19, 2) as any as S.Schema<ListCheckpointsResponse>,
1807
954
  errors: [NotFound],
1808
955
  protocol: SpritesProtocol,
1809
956
  retry: Retry.Retry,
@@ -1817,8 +964,8 @@ export const listDirectory: API.OperationMethod<
1817
964
  ListDirectoryError,
1818
965
  SpritesOpContext
1819
966
  > = /*@__PURE__*/ API.make(() => ({
1820
- input: ListDirectoryRequest,
1821
- output: ListResponse,
967
+ input: __S(80, __c20, 0) as any as S.Schema<ListDirectoryRequest>,
968
+ output: __S(83, __c20, 3) as any as S.Schema<ListResponse>,
1822
969
  errors: [NotFound],
1823
970
  protocol: SpritesProtocol,
1824
971
  retry: Retry.Retry,
@@ -1832,8 +979,8 @@ export const listExecSessions: API.OperationMethod<
1832
979
  ListExecSessionsError,
1833
980
  SpritesOpContext
1834
981
  > = /*@__PURE__*/ API.make(() => ({
1835
- input: ListExecSessionsRequest,
1836
- output: ListExecSessionsResponse,
982
+ input: __S(84, __c21, 0) as any as S.Schema<ListExecSessionsRequest>,
983
+ output: __S(220, __c55, 0) as any as S.Schema<ListExecSessionsResponse>,
1837
984
  errors: [NotFound],
1838
985
  protocol: SpritesProtocol,
1839
986
  retry: Retry.Retry,
@@ -1847,8 +994,8 @@ export const listOAuthConnections: API.OperationMethod<
1847
994
  ListOAuthConnectionsError,
1848
995
  SpritesOpContext
1849
996
  > = /*@__PURE__*/ API.make(() => ({
1850
- input: ListOAuthConnectionsRequest,
1851
- output: ConnectionListResponse,
997
+ input: __S(88, __c22, 0) as any as S.Schema<ListOAuthConnectionsRequest>,
998
+ output: __S(90, __c22, 2) as any as S.Schema<ConnectionListResponse>,
1852
999
  errors: [SpritesNotEnabled],
1853
1000
  protocol: SpritesProtocol,
1854
1001
  retry: Retry.Retry,
@@ -1862,8 +1009,8 @@ export const listServices: API.OperationMethod<
1862
1009
  ListServicesError,
1863
1010
  SpritesOpContext
1864
1011
  > = /*@__PURE__*/ API.make(() => ({
1865
- input: ListServicesRequest,
1866
- output: ListServicesResponse,
1012
+ input: __S(92, __c23, 0) as any as S.Schema<ListServicesRequest>,
1013
+ output: __S(94, __c23, 2) as any as S.Schema<ListServicesResponse>,
1867
1014
  errors: [NotFound],
1868
1015
  protocol: SpritesProtocol,
1869
1016
  retry: Retry.Retry,
@@ -1879,8 +1026,8 @@ export const listSprites: API.PaginatedOperationMethod<
1879
1026
  SpriteResponse
1880
1027
  > = /*@__PURE__*/ API.makePaginated(
1881
1028
  () => ({
1882
- input: ListSpritesRequest,
1883
- output: SpriteListResponse,
1029
+ input: __S(96, __c24, 0) as any as S.Schema<ListSpritesRequest>,
1030
+ output: __S(98, __c24, 2) as any as S.Schema<SpriteListResponse>,
1884
1031
  errors: [SpritesNotEnabled],
1885
1032
  protocol: SpritesProtocol,
1886
1033
  retry: Retry.Retry,
@@ -1903,8 +1050,8 @@ export const oauthConnectionCallback: API.OperationMethod<
1903
1050
  OauthConnectionCallbackError,
1904
1051
  SpritesOpContext
1905
1052
  > = /*@__PURE__*/ API.make(() => ({
1906
- input: OauthConnectionCallbackRequest,
1907
- output: ConnectionResponse,
1053
+ input: __S(100, __c25, 0) as any as S.Schema<OauthConnectionCallbackRequest>,
1054
+ output: __S(188, __c47, 0) as any as S.Schema<ConnectionResponse>,
1908
1055
  errors: [BadRequest, SpritesNotEnabled],
1909
1056
  protocol: SpritesProtocol,
1910
1057
  retry: Retry.Retry,
@@ -1918,8 +1065,8 @@ export const patchOAuthConnection: API.OperationMethod<
1918
1065
  PatchOAuthConnectionError,
1919
1066
  SpritesOpContext
1920
1067
  > = /*@__PURE__*/ API.make(() => ({
1921
- input: PatchOAuthConnectionRequest,
1922
- output: ConnectionResponse,
1068
+ input: __S(112, __c28, 0) as any as S.Schema<PatchOAuthConnectionRequest>,
1069
+ output: __S(188, __c47, 0) as any as S.Schema<ConnectionResponse>,
1923
1070
  errors: [BadRequest, SpritesNotEnabled, NotFound],
1924
1071
  protocol: SpritesProtocol,
1925
1072
  retry: Retry.Retry,
@@ -1933,8 +1080,8 @@ export const provisionOAuthConnection: API.OperationMethod<
1933
1080
  ProvisionOAuthConnectionError,
1934
1081
  SpritesOpContext
1935
1082
  > = /*@__PURE__*/ API.make(() => ({
1936
- input: ProvisionOAuthConnectionRequest,
1937
- output: ConnectionResponse,
1083
+ input: __S(116, __c29, 0) as any as S.Schema<ProvisionOAuthConnectionRequest>,
1084
+ output: __S(188, __c47, 0) as any as S.Schema<ConnectionResponse>,
1938
1085
  errors: [BadRequest, SpritesNotEnabled],
1939
1086
  protocol: SpritesProtocol,
1940
1087
  retry: Retry.Retry,
@@ -1948,8 +1095,8 @@ export const putService: API.OperationMethod<
1948
1095
  PutServiceError,
1949
1096
  SpritesOpContext
1950
1097
  > = /*@__PURE__*/ API.make(() => ({
1951
- input: PutServiceRequest,
1952
- output: ServiceResponse,
1098
+ input: __S(120, __c30, 0) as any as S.Schema<PutServiceRequest>,
1099
+ output: __S(57, __c14, 1) as any as S.Schema<ServiceResponse>,
1953
1100
  errors: [BadRequest, NotFound],
1954
1101
  protocol: SpritesProtocol,
1955
1102
  retry: Retry.Retry,
@@ -1963,8 +1110,8 @@ export const readFile: API.OperationMethod<
1963
1110
  ReadFileError,
1964
1111
  SpritesOpContext
1965
1112
  > = /*@__PURE__*/ API.make(() => ({
1966
- input: ReadFileRequest,
1967
- output: ReadFileResponse,
1113
+ input: __S(124, __c31, 0) as any as S.Schema<ReadFileRequest>,
1114
+ output: __S(220, __c55, 0) as any as S.Schema<ReadFileResponse>,
1968
1115
  errors: [NotFound],
1969
1116
  protocol: SpritesProtocol,
1970
1117
  retry: Retry.Retry,
@@ -1978,8 +1125,8 @@ export const renameFile: API.OperationMethod<
1978
1125
  RenameFileError,
1979
1126
  SpritesOpContext
1980
1127
  > = /*@__PURE__*/ API.make(() => ({
1981
- input: RenameFileRequest,
1982
- output: RenameResponse,
1128
+ input: __S(128, __c32, 0) as any as S.Schema<RenameFileRequest>,
1129
+ output: __S(108, __c27, 0) as any as S.Schema<RenameResponse>,
1983
1130
  errors: [BadRequest, NotFound],
1984
1131
  protocol: SpritesProtocol,
1985
1132
  retry: Retry.Retry,
@@ -1993,8 +1140,8 @@ export const restartService: API.OperationMethod<
1993
1140
  RestartServiceError,
1994
1141
  SpritesOpContext
1995
1142
  > = /*@__PURE__*/ API.make(() => ({
1996
- input: RestartServiceRequest,
1997
- output: RestartServiceResponse,
1143
+ input: __S(132, __c33, 0) as any as S.Schema<RestartServiceRequest>,
1144
+ output: __S(220, __c55, 0) as any as S.Schema<RestartServiceResponse>,
1998
1145
  errors: [NotFound],
1999
1146
  protocol: SpritesProtocol,
2000
1147
  retry: Retry.Retry,
@@ -2008,8 +1155,8 @@ export const restoreCheckpoint: API.OperationMethod<
2008
1155
  RestoreCheckpointError,
2009
1156
  SpritesOpContext
2010
1157
  > = /*@__PURE__*/ API.make(() => ({
2011
- input: RestoreCheckpointRequest,
2012
- output: RestoreCheckpointResponse,
1158
+ input: __S(136, __c34, 0) as any as S.Schema<RestoreCheckpointRequest>,
1159
+ output: __S(158, __c39, 2) as any as S.Schema<RestoreCheckpointResponse>,
2013
1160
  errors: [NotFound],
2014
1161
  protocol: SpritesProtocol,
2015
1162
  retry: Retry.Retry,
@@ -2023,8 +1170,8 @@ export const setNetworkPolicy: API.OperationMethod<
2023
1170
  SetNetworkPolicyError,
2024
1171
  SpritesOpContext
2025
1172
  > = /*@__PURE__*/ API.make(() => ({
2026
- input: SetNetworkPolicyRequest,
2027
- output: SetNetworkPolicyResponse,
1173
+ input: __S(140, __c35, 0) as any as S.Schema<SetNetworkPolicyRequest>,
1174
+ output: __S(220, __c55, 0) as any as S.Schema<SetNetworkPolicyResponse>,
2028
1175
  errors: [BadRequest, NotFound],
2029
1176
  protocol: SpritesProtocol,
2030
1177
  retry: Retry.Retry,
@@ -2038,8 +1185,8 @@ export const setPrivilegesPolicy: API.OperationMethod<
2038
1185
  SetPrivilegesPolicyError,
2039
1186
  SpritesOpContext
2040
1187
  > = /*@__PURE__*/ API.make(() => ({
2041
- input: SetPrivilegesPolicyRequest,
2042
- output: SetPrivilegesPolicyResponse,
1188
+ input: __S(144, __c36, 0) as any as S.Schema<SetPrivilegesPolicyRequest>,
1189
+ output: __S(220, __c55, 0) as any as S.Schema<SetPrivilegesPolicyResponse>,
2043
1190
  errors: [BadRequest, NotFound],
2044
1191
  protocol: SpritesProtocol,
2045
1192
  retry: Retry.Retry,
@@ -2053,8 +1200,8 @@ export const setResourcesPolicy: API.OperationMethod<
2053
1200
  SetResourcesPolicyError,
2054
1201
  SpritesOpContext
2055
1202
  > = /*@__PURE__*/ API.make(() => ({
2056
- input: SetResourcesPolicyRequest,
2057
- output: SetResourcesPolicyResponse,
1203
+ input: __S(148, __c37, 0) as any as S.Schema<SetResourcesPolicyRequest>,
1204
+ output: __S(220, __c55, 0) as any as S.Schema<SetResourcesPolicyResponse>,
2058
1205
  errors: [BadRequest, NotFound],
2059
1206
  protocol: SpritesProtocol,
2060
1207
  retry: Retry.Retry,
@@ -2068,8 +1215,8 @@ export const startService: API.OperationMethod<
2068
1215
  StartServiceError,
2069
1216
  SpritesOpContext
2070
1217
  > = /*@__PURE__*/ API.make(() => ({
2071
- input: StartServiceRequest,
2072
- output: StartServiceResponse,
1218
+ input: __S(160, __c40, 0) as any as S.Schema<StartServiceRequest>,
1219
+ output: __S(220, __c55, 0) as any as S.Schema<StartServiceResponse>,
2073
1220
  errors: [NotFound],
2074
1221
  protocol: SpritesProtocol,
2075
1222
  retry: Retry.Retry,
@@ -2083,8 +1230,8 @@ export const stopService: API.OperationMethod<
2083
1230
  StopServiceError,
2084
1231
  SpritesOpContext
2085
1232
  > = /*@__PURE__*/ API.make(() => ({
2086
- input: StopServiceRequest,
2087
- output: StopServiceResponse,
1233
+ input: __S(164, __c41, 0) as any as S.Schema<StopServiceRequest>,
1234
+ output: __S(220, __c55, 0) as any as S.Schema<StopServiceResponse>,
2088
1235
  errors: [NotFound],
2089
1236
  protocol: SpritesProtocol,
2090
1237
  retry: Retry.Retry,
@@ -2098,8 +1245,8 @@ export const updateOAuthConnection: API.OperationMethod<
2098
1245
  UpdateOAuthConnectionError,
2099
1246
  SpritesOpContext
2100
1247
  > = /*@__PURE__*/ API.make(() => ({
2101
- input: UpdateOAuthConnectionRequest,
2102
- output: ConnectionResponse,
1248
+ input: __S(168, __c42, 0) as any as S.Schema<UpdateOAuthConnectionRequest>,
1249
+ output: __S(188, __c47, 0) as any as S.Schema<ConnectionResponse>,
2103
1250
  errors: [BadRequest, SpritesNotEnabled, NotFound],
2104
1251
  protocol: SpritesProtocol,
2105
1252
  retry: Retry.Retry,
@@ -2113,8 +1260,8 @@ export const updateSprite: API.OperationMethod<
2113
1260
  UpdateSpriteError,
2114
1261
  SpritesOpContext
2115
1262
  > = /*@__PURE__*/ API.make(() => ({
2116
- input: UpdateSpriteRequest,
2117
- output: SpriteResponse,
1263
+ input: __S(172, __c43, 0) as any as S.Schema<UpdateSpriteRequest>,
1264
+ output: __S(205, __c51, 1) as any as S.Schema<SpriteResponse>,
2118
1265
  errors: [BadRequest, SpritesNotEnabled, NotFound],
2119
1266
  protocol: SpritesProtocol,
2120
1267
  retry: Retry.Retry,
@@ -2128,9 +1275,922 @@ export const writeFile: API.OperationMethod<
2128
1275
  WriteFileError,
2129
1276
  SpritesOpContext
2130
1277
  > = /*@__PURE__*/ API.make(() => ({
2131
- input: WriteFileRequest,
2132
- output: WriteResponse,
1278
+ input: __S(176, __c44, 0) as any as S.Schema<WriteFileRequest>,
1279
+ output: __S(177, __c44, 1) as any as S.Schema<WriteResponse>,
2133
1280
  errors: [BadRequest, NotFound],
2134
1281
  protocol: SpritesProtocol,
2135
1282
  retry: Retry.Retry,
2136
1283
  }));
1284
+
1285
+ // Schema builders: each runs one schema initializer, on that schema's first use.
1286
+ function __c0(j: number): any {
1287
+ switch (j) {
1288
+ case 0:
1289
+ return S.suspend(() =>
1290
+ S.Struct({
1291
+ provider: S.String.pipe(T.Label()),
1292
+ scopes: S.optional(S.String.pipe(T.Query())),
1293
+ add_scopes: S.optional(S.String.pipe(T.Query())),
1294
+ redirect_uri: S.optional(S.String.pipe(T.Query())),
1295
+ state: S.optional(S.String.pipe(T.Query())),
1296
+ }).pipe(T.Http({ method: "GET", uri: "/oauth/{provider}/authorize", code: 200 })),
1297
+ ).annotate({ identifier: "AuthorizeOAuthConnectionRequest" });
1298
+ case 1:
1299
+ return S.suspend(() =>
1300
+ S.Struct({
1301
+ authorize_url: S.String,
1302
+ state: S.String,
1303
+ }),
1304
+ ).annotate({ identifier: "OAuthAuthorizeResponse" });
1305
+ }
1306
+ }
1307
+ function __c1(j: number): any {
1308
+ switch (j) {
1309
+ case 0:
1310
+ return S.suspend(() =>
1311
+ S.Struct({
1312
+ name: S.String.pipe(T.Label()),
1313
+ asRoot: S.Boolean,
1314
+ mode: S.String,
1315
+ path: S.String,
1316
+ recursive: S.Boolean,
1317
+ workingDir: S.String,
1318
+ }).pipe(T.Http({ method: "POST", uri: "/sprites/{name}/fs/chmod", code: 200 })),
1319
+ ).annotate({ identifier: "ChangeFileModeRequest" });
1320
+ case 1:
1321
+ return S.suspend(() =>
1322
+ S.Struct({
1323
+ mode: S.String,
1324
+ path: S.String,
1325
+ }),
1326
+ ).annotate({ identifier: "ChmodResult" });
1327
+ case 2:
1328
+ return S.Array(__S(5, __c1, 1));
1329
+ case 3:
1330
+ return S.suspend(() =>
1331
+ S.Struct({
1332
+ affected: __S(6, __c1, 2),
1333
+ count: S.Number,
1334
+ }),
1335
+ ).annotate({ identifier: "ChmodResponse" });
1336
+ }
1337
+ }
1338
+ function __c2(j: number): any {
1339
+ switch (j) {
1340
+ case 0:
1341
+ return S.suspend(() =>
1342
+ S.Struct({
1343
+ name: S.String.pipe(T.Label()),
1344
+ }).pipe(T.Http({ method: "DELETE", uri: "/sprites/{name}/policy/privileges", code: 200 })),
1345
+ ).annotate({ identifier: "DeletePrivilegesPolicyRequest" });
1346
+ }
1347
+ }
1348
+ function __c3(j: number): any {
1349
+ switch (j) {
1350
+ case 0:
1351
+ return S.suspend(() =>
1352
+ S.Struct({
1353
+ name: S.String.pipe(T.Label()),
1354
+ }).pipe(T.Http({ method: "DELETE", uri: "/sprites/{name}/policy/resources", code: 200 })),
1355
+ ).annotate({ identifier: "DeleteResourcesPolicyRequest" });
1356
+ }
1357
+ }
1358
+ function __c4(j: number): any {
1359
+ switch (j) {
1360
+ case 0:
1361
+ return S.suspend(() =>
1362
+ S.Struct({
1363
+ name: S.String.pipe(T.Label()),
1364
+ }).pipe(T.Http({ method: "DELETE", uri: "/sprites/{name}", code: 200 })),
1365
+ ).annotate({ identifier: "DeleteSpriteRequest" });
1366
+ }
1367
+ }
1368
+ function __c5(j: number): any {
1369
+ switch (j) {
1370
+ case 0:
1371
+ return S.suspend(() =>
1372
+ S.Struct({
1373
+ name: S.String.pipe(T.Label()),
1374
+ cmd: __S(192, __c48, 0).pipe(T.Query()),
1375
+ path: S.optional(S.String.pipe(T.Query())),
1376
+ stdin: S.optional(S.Boolean.pipe(T.Query())),
1377
+ env: S.optional(__S(192, __c48, 0).pipe(T.Query())),
1378
+ dir: S.optional(S.String.pipe(T.Query())),
1379
+ body: S.optional(S.String.pipe(T.HttpBody())),
1380
+ }).pipe(
1381
+ T.Http({
1382
+ method: "POST",
1383
+ uri: "/sprites/{name}/exec",
1384
+ code: 200,
1385
+ bodyMediaType: "application/octet-stream",
1386
+ }),
1387
+ ),
1388
+ ).annotate({ identifier: "ExecCommandRequest" });
1389
+ case 1:
1390
+ return S.suspend(() =>
1391
+ S.Struct({
1392
+ exit_code: S.optional(S.Number),
1393
+ stdout: S.optional(S.String),
1394
+ stderr: S.optional(S.String),
1395
+ }),
1396
+ ).annotate({ identifier: "ExecResult" });
1397
+ }
1398
+ }
1399
+ function __c6(j: number): any {
1400
+ switch (j) {
1401
+ case 0:
1402
+ return S.suspend(() =>
1403
+ S.Struct({
1404
+ name: S.String.pipe(T.Label()),
1405
+ checkpoint_id: S.String.pipe(T.Label()),
1406
+ }).pipe(
1407
+ T.Http({ method: "GET", uri: "/sprites/{name}/checkpoints/{checkpoint_id}", code: 200 }),
1408
+ ),
1409
+ ).annotate({ identifier: "GetCheckpointRequest" });
1410
+ }
1411
+ }
1412
+ function __c7(j: number): any {
1413
+ switch (j) {
1414
+ case 0:
1415
+ return S.suspend(() =>
1416
+ S.Struct({
1417
+ comment: S.optional(S.String),
1418
+ create_time: S.String,
1419
+ health: S.optional(S.String),
1420
+ id: S.String,
1421
+ source_id: S.optional(S.String),
1422
+ }),
1423
+ ).annotate({ identifier: "CheckpointInfo" });
1424
+ }
1425
+ }
1426
+ function __c8(j: number): any {
1427
+ switch (j) {
1428
+ case 0:
1429
+ return S.suspend(() =>
1430
+ S.Struct({
1431
+ name: S.String.pipe(T.Label()),
1432
+ }).pipe(T.Http({ method: "GET", uri: "/sprites/{name}/policy/network", code: 200 })),
1433
+ ).annotate({ identifier: "GetNetworkPolicyRequest" });
1434
+ case 1:
1435
+ return S.suspend(() =>
1436
+ S.Struct({
1437
+ rules: __S(37, __c9, 1),
1438
+ }),
1439
+ ).annotate({ identifier: "NetworkPolicyRequest" });
1440
+ }
1441
+ }
1442
+ function __c9(j: number): any {
1443
+ switch (j) {
1444
+ case 0:
1445
+ return S.suspend(() =>
1446
+ S.Struct({
1447
+ action: S.optional(S.String),
1448
+ domain: S.optional(S.String),
1449
+ include: S.optional(S.String),
1450
+ }),
1451
+ ).annotate({ identifier: "NetworkPolicyRule" });
1452
+ case 1:
1453
+ return S.Array(__S(36, __c9, 0));
1454
+ }
1455
+ }
1456
+ function __c10(j: number): any {
1457
+ switch (j) {
1458
+ case 0:
1459
+ return S.suspend(() =>
1460
+ S.Struct({
1461
+ id: S.String.pipe(T.Label()),
1462
+ }).pipe(T.Http({ method: "GET", uri: "/oauth/connections/{id}", code: 200 })),
1463
+ ).annotate({ identifier: "GetOAuthConnectionRequest" });
1464
+ }
1465
+ }
1466
+ function __c11(j: number): any {
1467
+ switch (j) {
1468
+ case 0:
1469
+ return S.suspend(() =>
1470
+ S.Struct({
1471
+ name: S.String.pipe(T.Label()),
1472
+ }).pipe(T.Http({ method: "GET", uri: "/sprites/{name}/policy/privileges", code: 200 })),
1473
+ ).annotate({ identifier: "GetPrivilegesPolicyRequest" });
1474
+ }
1475
+ }
1476
+ function __c12(j: number): any {
1477
+ switch (j) {
1478
+ case 0:
1479
+ return S.suspend(() =>
1480
+ S.Struct({
1481
+ name: S.String.pipe(T.Label()),
1482
+ }).pipe(T.Http({ method: "GET", uri: "/sprites/{name}/policy/resources", code: 200 })),
1483
+ ).annotate({ identifier: "GetResourcesPolicyRequest" });
1484
+ }
1485
+ }
1486
+ function __c13(j: number): any {
1487
+ switch (j) {
1488
+ case 0:
1489
+ return S.suspend(() =>
1490
+ S.Struct({
1491
+ name: S.String.pipe(T.Label()),
1492
+ service_name: S.String.pipe(T.Label()),
1493
+ }).pipe(
1494
+ T.Http({ method: "GET", uri: "/sprites/{name}/services/{service_name}", code: 200 }),
1495
+ ),
1496
+ ).annotate({ identifier: "GetServiceRequest" });
1497
+ }
1498
+ }
1499
+ function __c14(j: number): any {
1500
+ switch (j) {
1501
+ case 0:
1502
+ return S.suspend(() =>
1503
+ S.Struct({
1504
+ error: S.optional(S.String),
1505
+ name: S.String,
1506
+ pid: S.optional(S.Number),
1507
+ started_at: S.optional(S.String),
1508
+ status: S.String,
1509
+ }),
1510
+ ).annotate({ identifier: "ServiceState" });
1511
+ case 1:
1512
+ return S.suspend(() =>
1513
+ S.Struct({
1514
+ args: __S(192, __c48, 0),
1515
+ cmd: S.String,
1516
+ http_port: S.optional(S.NullOr(S.Number)),
1517
+ name: S.String,
1518
+ needs: __S(192, __c48, 0),
1519
+ state: S.optional(S.NullOr(__S(56, __c14, 0))),
1520
+ }),
1521
+ ).annotate({ identifier: "ServiceResponse" });
1522
+ }
1523
+ }
1524
+ function __c15(j: number): any {
1525
+ switch (j) {
1526
+ case 0:
1527
+ return S.suspend(() =>
1528
+ S.Struct({
1529
+ name: S.String.pipe(T.Label()),
1530
+ asRoot: S.Boolean,
1531
+ gid: S.Unknown,
1532
+ path: S.String,
1533
+ recursive: S.Boolean,
1534
+ uid: S.Unknown,
1535
+ workingDir: S.String,
1536
+ }).pipe(T.Http({ method: "POST", uri: "/sprites/{name}/fs/chown", code: 200 })),
1537
+ ).annotate({ identifier: "ChangeFileOwnerRequest" });
1538
+ case 1:
1539
+ return S.suspend(() =>
1540
+ S.Struct({
1541
+ gid: S.Number,
1542
+ path: S.String,
1543
+ uid: S.Number,
1544
+ }),
1545
+ ).annotate({ identifier: "ChownResult" });
1546
+ case 2:
1547
+ return S.Array(__S(61, __c15, 1));
1548
+ case 3:
1549
+ return S.suspend(() =>
1550
+ S.Struct({
1551
+ affected: __S(62, __c15, 2),
1552
+ count: S.Number,
1553
+ }),
1554
+ ).annotate({ identifier: "ChownResponse" });
1555
+ }
1556
+ }
1557
+ function __c16(j: number): any {
1558
+ switch (j) {
1559
+ case 0:
1560
+ return S.suspend(() =>
1561
+ S.Struct({
1562
+ name: S.String.pipe(T.Label()),
1563
+ service_name: S.String.pipe(T.Label()),
1564
+ lines: S.optional(S.Number.pipe(T.Query())),
1565
+ duration: S.optional(S.Number.pipe(T.Query())),
1566
+ }).pipe(
1567
+ T.Http({ method: "GET", uri: "/sprites/{name}/services/{service_name}/logs", code: 200 }),
1568
+ ),
1569
+ ).annotate({ identifier: "GetServiceLogsRequest" });
1570
+ }
1571
+ }
1572
+ function __c17(j: number): any {
1573
+ switch (j) {
1574
+ case 0:
1575
+ return S.suspend(() =>
1576
+ S.Struct({
1577
+ name: S.String.pipe(T.Label()),
1578
+ }).pipe(T.Http({ method: "GET", uri: "/sprites/{name}", code: 200 })),
1579
+ ).annotate({ identifier: "GetSpriteRequest" });
1580
+ }
1581
+ }
1582
+ function __c18(j: number): any {
1583
+ switch (j) {
1584
+ case 0:
1585
+ return S.suspend(() =>
1586
+ S.Struct({
1587
+ name: S.String.pipe(T.Label()),
1588
+ session_id: S.String.pipe(T.Label()),
1589
+ signal: S.optional(S.String.pipe(T.Query())),
1590
+ timeout: S.optional(S.Number.pipe(T.Query())),
1591
+ }).pipe(
1592
+ T.Http({ method: "POST", uri: "/sprites/{name}/exec/{session_id}/kill", code: 200 }),
1593
+ ),
1594
+ ).annotate({ identifier: "KillExecSessionRequest" });
1595
+ }
1596
+ }
1597
+ function __c19(j: number): any {
1598
+ switch (j) {
1599
+ case 0:
1600
+ return S.suspend(() =>
1601
+ S.Struct({
1602
+ name: S.String.pipe(T.Label()),
1603
+ }).pipe(T.Http({ method: "GET", uri: "/sprites/{name}/checkpoints", code: 200 })),
1604
+ ).annotate({ identifier: "ListCheckpointsRequest" });
1605
+ case 1:
1606
+ return S.Array(__S(28, __c7, 0));
1607
+ case 2:
1608
+ return S.suspend(() => __S(77, __c19, 1).pipe(T.RawResponseRoot())).annotate({
1609
+ identifier: "ListCheckpointsResponse",
1610
+ });
1611
+ }
1612
+ }
1613
+ function __c20(j: number): any {
1614
+ switch (j) {
1615
+ case 0:
1616
+ return S.suspend(() =>
1617
+ S.Struct({
1618
+ name: S.String.pipe(T.Label()),
1619
+ path: S.String.pipe(T.Query()),
1620
+ workingDir: S.String.pipe(T.Query()),
1621
+ }).pipe(T.Http({ method: "GET", uri: "/sprites/{name}/fs/list", code: 200 })),
1622
+ ).annotate({ identifier: "ListDirectoryRequest" });
1623
+ case 1:
1624
+ return S.suspend(() =>
1625
+ S.Struct({
1626
+ isDir: S.Boolean,
1627
+ modTime: S.String,
1628
+ mode: S.String,
1629
+ name: S.String,
1630
+ path: S.String,
1631
+ size: S.Number,
1632
+ type: S.String,
1633
+ }),
1634
+ ).annotate({ identifier: "Entry" });
1635
+ case 2:
1636
+ return S.Array(__S(81, __c20, 1));
1637
+ case 3:
1638
+ return S.suspend(() =>
1639
+ S.Struct({
1640
+ count: S.Number,
1641
+ entries: __S(82, __c20, 2),
1642
+ path: S.String,
1643
+ }),
1644
+ ).annotate({ identifier: "ListResponse" });
1645
+ }
1646
+ }
1647
+ function __c21(j: number): any {
1648
+ switch (j) {
1649
+ case 0:
1650
+ return S.suspend(() =>
1651
+ S.Struct({
1652
+ name: S.String.pipe(T.Label()),
1653
+ }).pipe(T.Http({ method: "GET", uri: "/sprites/{name}/exec", code: 200 })),
1654
+ ).annotate({ identifier: "ListExecSessionsRequest" });
1655
+ }
1656
+ }
1657
+ function __c22(j: number): any {
1658
+ switch (j) {
1659
+ case 0:
1660
+ return S.suspend(() =>
1661
+ S.Struct({
1662
+ provider: S.optional(S.String.pipe(T.Query())),
1663
+ }).pipe(T.Http({ method: "GET", uri: "/oauth/connections", code: 200 })),
1664
+ ).annotate({ identifier: "ListOAuthConnectionsRequest" });
1665
+ case 1:
1666
+ return S.Array(__S(186, __c46, 2));
1667
+ case 2:
1668
+ return S.suspend(() =>
1669
+ S.Struct({
1670
+ connections: __S(89, __c22, 1),
1671
+ }),
1672
+ ).annotate({ identifier: "ConnectionListResponse" });
1673
+ }
1674
+ }
1675
+ function __c23(j: number): any {
1676
+ switch (j) {
1677
+ case 0:
1678
+ return S.suspend(() =>
1679
+ S.Struct({
1680
+ name: S.String.pipe(T.Label()),
1681
+ }).pipe(T.Http({ method: "GET", uri: "/sprites/{name}/services", code: 200 })),
1682
+ ).annotate({ identifier: "ListServicesRequest" });
1683
+ case 1:
1684
+ return S.Array(__S(57, __c14, 1));
1685
+ case 2:
1686
+ return S.suspend(() => __S(93, __c23, 1).pipe(T.RawResponseRoot())).annotate({
1687
+ identifier: "ListServicesResponse",
1688
+ });
1689
+ }
1690
+ }
1691
+ function __c24(j: number): any {
1692
+ switch (j) {
1693
+ case 0:
1694
+ return S.suspend(() =>
1695
+ S.Struct({
1696
+ prefix: S.optional(S.String.pipe(T.Query())),
1697
+ max_results: S.optional(S.Number.pipe(T.Query())),
1698
+ continuation_token: S.optional(S.String.pipe(T.Query())),
1699
+ }).pipe(T.Http({ method: "GET", uri: "/sprites", code: 200 })),
1700
+ ).annotate({ identifier: "ListSpritesRequest" });
1701
+ case 1:
1702
+ return S.Array(__S(205, __c51, 1));
1703
+ case 2:
1704
+ return S.suspend(() =>
1705
+ S.Struct({
1706
+ cold: S.Number,
1707
+ has_more: S.Boolean,
1708
+ name: S.String,
1709
+ next_continuation_token: S.optional(S.NullOr(S.String)),
1710
+ running: S.Number,
1711
+ running_limit: S.optional(S.Number),
1712
+ sprites: __S(97, __c24, 1),
1713
+ warm: S.Number,
1714
+ warm_limit: S.optional(S.Number),
1715
+ }),
1716
+ ).annotate({ identifier: "SpriteListResponse" });
1717
+ }
1718
+ }
1719
+ function __c25(j: number): any {
1720
+ switch (j) {
1721
+ case 0:
1722
+ return S.suspend(() =>
1723
+ S.Struct({
1724
+ provider: S.String.pipe(T.Label()),
1725
+ access_policy: S.optional(__S(184, __c46, 0)),
1726
+ code: S.String,
1727
+ redirect_uri: S.optional(S.String),
1728
+ state: S.optional(S.String),
1729
+ }).pipe(T.Http({ method: "POST", uri: "/oauth/{provider}/callback", code: 200 })),
1730
+ ).annotate({ identifier: "OauthConnectionCallbackRequest" });
1731
+ }
1732
+ }
1733
+ function __c26(j: number): any {
1734
+ switch (j) {
1735
+ case 0:
1736
+ return S.suspend(() =>
1737
+ S.Struct({
1738
+ name: S.String.pipe(T.Label()),
1739
+ asRoot: S.Boolean,
1740
+ dest: S.String,
1741
+ preserveAttrs: S.Boolean,
1742
+ recursive: S.Boolean,
1743
+ source: S.String,
1744
+ workingDir: S.String,
1745
+ }).pipe(T.Http({ method: "POST", uri: "/sprites/{name}/fs/copy", code: 200 })),
1746
+ ).annotate({ identifier: "CopyFileRequest" });
1747
+ case 1:
1748
+ return S.Array(__S(108, __c27, 0));
1749
+ case 2:
1750
+ return S.suspend(() =>
1751
+ S.Struct({
1752
+ copied: __S(105, __c26, 1),
1753
+ count: S.Number,
1754
+ totalBytes: S.Number,
1755
+ }),
1756
+ ).annotate({ identifier: "CopyResponse" });
1757
+ }
1758
+ }
1759
+ function __c27(j: number): any {
1760
+ switch (j) {
1761
+ case 0:
1762
+ return S.suspend(() =>
1763
+ S.Struct({
1764
+ dest: S.String,
1765
+ source: S.String,
1766
+ }),
1767
+ ).annotate({ identifier: "CopyResult" });
1768
+ }
1769
+ }
1770
+ function __c28(j: number): any {
1771
+ switch (j) {
1772
+ case 0:
1773
+ return S.suspend(() =>
1774
+ S.Struct({
1775
+ id: S.String.pipe(T.Label()),
1776
+ access_policy: __S(184, __c46, 0),
1777
+ }).pipe(T.Http({ method: "PATCH", uri: "/oauth/connections/{id}", code: 200 })),
1778
+ ).annotate({ identifier: "PatchOAuthConnectionRequest" });
1779
+ }
1780
+ }
1781
+ function __c29(j: number): any {
1782
+ switch (j) {
1783
+ case 0:
1784
+ return S.suspend(() =>
1785
+ S.Struct({
1786
+ provider: S.String,
1787
+ }).pipe(T.Http({ method: "POST", uri: "/oauth/connections/provision", code: 200 })),
1788
+ ).annotate({ identifier: "ProvisionOAuthConnectionRequest" });
1789
+ }
1790
+ }
1791
+ function __c30(j: number): any {
1792
+ switch (j) {
1793
+ case 0:
1794
+ return S.suspend(() =>
1795
+ S.Struct({
1796
+ name: S.String.pipe(T.Label()),
1797
+ service_name: S.String.pipe(T.Label()),
1798
+ duration: S.optional(S.Number.pipe(T.Query())),
1799
+ args: S.optional(__S(192, __c48, 0)),
1800
+ cmd: S.String,
1801
+ dir: S.optional(S.String),
1802
+ env: S.optional(S.Unknown),
1803
+ http_port: S.optional(S.NullOr(S.Number)),
1804
+ needs: S.optional(__S(192, __c48, 0)),
1805
+ }).pipe(
1806
+ T.Http({ method: "PUT", uri: "/sprites/{name}/services/{service_name}", code: 200 }),
1807
+ ),
1808
+ ).annotate({ identifier: "PutServiceRequest" });
1809
+ }
1810
+ }
1811
+ function __c31(j: number): any {
1812
+ switch (j) {
1813
+ case 0:
1814
+ return S.suspend(() =>
1815
+ S.Struct({
1816
+ name: S.String.pipe(T.Label()),
1817
+ path: S.String.pipe(T.Query()),
1818
+ workingDir: S.String.pipe(T.Query()),
1819
+ }).pipe(T.Http({ method: "GET", uri: "/sprites/{name}/fs/read", code: 200 })),
1820
+ ).annotate({ identifier: "ReadFileRequest" });
1821
+ }
1822
+ }
1823
+ function __c32(j: number): any {
1824
+ switch (j) {
1825
+ case 0:
1826
+ return S.suspend(() =>
1827
+ S.Struct({
1828
+ name: S.String.pipe(T.Label()),
1829
+ asRoot: S.Boolean,
1830
+ dest: S.String,
1831
+ source: S.String,
1832
+ workingDir: S.String,
1833
+ }).pipe(T.Http({ method: "POST", uri: "/sprites/{name}/fs/rename", code: 200 })),
1834
+ ).annotate({ identifier: "RenameFileRequest" });
1835
+ }
1836
+ }
1837
+ function __c33(j: number): any {
1838
+ switch (j) {
1839
+ case 0:
1840
+ return S.suspend(() =>
1841
+ S.Struct({
1842
+ name: S.String.pipe(T.Label()),
1843
+ service_name: S.String.pipe(T.Label()),
1844
+ duration: S.optional(S.Number.pipe(T.Query())),
1845
+ }).pipe(
1846
+ T.Http({
1847
+ method: "POST",
1848
+ uri: "/sprites/{name}/services/{service_name}/restart",
1849
+ code: 200,
1850
+ }),
1851
+ ),
1852
+ ).annotate({ identifier: "RestartServiceRequest" });
1853
+ }
1854
+ }
1855
+ function __c34(j: number): any {
1856
+ switch (j) {
1857
+ case 0:
1858
+ return S.suspend(() =>
1859
+ S.Struct({
1860
+ name: S.String.pipe(T.Label()),
1861
+ checkpoint_id: S.String.pipe(T.Label()),
1862
+ }).pipe(
1863
+ T.Http({
1864
+ method: "POST",
1865
+ uri: "/sprites/{name}/checkpoints/{checkpoint_id}/restore",
1866
+ code: 200,
1867
+ }),
1868
+ ),
1869
+ ).annotate({ identifier: "RestoreCheckpointRequest" });
1870
+ }
1871
+ }
1872
+ function __c35(j: number): any {
1873
+ switch (j) {
1874
+ case 0:
1875
+ return S.suspend(() =>
1876
+ S.Struct({
1877
+ name: S.String.pipe(T.Label()),
1878
+ rules: __S(37, __c9, 1),
1879
+ }).pipe(T.Http({ method: "POST", uri: "/sprites/{name}/policy/network", code: 200 })),
1880
+ ).annotate({ identifier: "SetNetworkPolicyRequest" });
1881
+ }
1882
+ }
1883
+ function __c36(j: number): any {
1884
+ switch (j) {
1885
+ case 0:
1886
+ return S.suspend(() =>
1887
+ S.Struct({
1888
+ name: S.String.pipe(T.Label()),
1889
+ }).pipe(T.Http({ method: "POST", uri: "/sprites/{name}/policy/privileges", code: 200 })),
1890
+ ).annotate({ identifier: "SetPrivilegesPolicyRequest" });
1891
+ }
1892
+ }
1893
+ function __c37(j: number): any {
1894
+ switch (j) {
1895
+ case 0:
1896
+ return S.suspend(() =>
1897
+ S.Struct({
1898
+ name: S.String.pipe(T.Label()),
1899
+ }).pipe(T.Http({ method: "POST", uri: "/sprites/{name}/policy/resources", code: 200 })),
1900
+ ).annotate({ identifier: "SetResourcesPolicyRequest" });
1901
+ }
1902
+ }
1903
+ function __c38(j: number): any {
1904
+ switch (j) {
1905
+ case 0:
1906
+ return S.suspend(() =>
1907
+ S.Struct({
1908
+ name: S.String.pipe(T.Label()),
1909
+ comment: S.optional(S.String),
1910
+ }).pipe(T.Http({ method: "POST", uri: "/sprites/{name}/checkpoint", code: 200 })),
1911
+ ).annotate({ identifier: "CreateCheckpointRequest" });
1912
+ }
1913
+ }
1914
+ function __c39(j: number): any {
1915
+ switch (j) {
1916
+ case 0:
1917
+ return S.suspend(() =>
1918
+ S.Struct({
1919
+ type: S.optional(S.String),
1920
+ data: S.optional(S.String),
1921
+ error: S.optional(S.String),
1922
+ time: S.optional(S.String),
1923
+ }),
1924
+ ).annotate({ identifier: "StreamEvent" });
1925
+ case 1:
1926
+ return S.Array(__S(156, __c39, 0));
1927
+ case 2:
1928
+ return S.suspend(() => __S(157, __c39, 1).pipe(T.RawResponseRoot())).annotate({
1929
+ identifier: "CreateCheckpointResponse",
1930
+ });
1931
+ }
1932
+ }
1933
+ function __c40(j: number): any {
1934
+ switch (j) {
1935
+ case 0:
1936
+ return S.suspend(() =>
1937
+ S.Struct({
1938
+ name: S.String.pipe(T.Label()),
1939
+ service_name: S.String.pipe(T.Label()),
1940
+ duration: S.optional(S.Number.pipe(T.Query())),
1941
+ }).pipe(
1942
+ T.Http({
1943
+ method: "POST",
1944
+ uri: "/sprites/{name}/services/{service_name}/start",
1945
+ code: 200,
1946
+ }),
1947
+ ),
1948
+ ).annotate({ identifier: "StartServiceRequest" });
1949
+ }
1950
+ }
1951
+ function __c41(j: number): any {
1952
+ switch (j) {
1953
+ case 0:
1954
+ return S.suspend(() =>
1955
+ S.Struct({
1956
+ name: S.String.pipe(T.Label()),
1957
+ service_name: S.String.pipe(T.Label()),
1958
+ timeout: S.optional(S.Number.pipe(T.Query())),
1959
+ }).pipe(
1960
+ T.Http({
1961
+ method: "POST",
1962
+ uri: "/sprites/{name}/services/{service_name}/stop",
1963
+ code: 200,
1964
+ }),
1965
+ ),
1966
+ ).annotate({ identifier: "StopServiceRequest" });
1967
+ }
1968
+ }
1969
+ function __c42(j: number): any {
1970
+ switch (j) {
1971
+ case 0:
1972
+ return S.suspend(() =>
1973
+ S.Struct({
1974
+ id: S.String.pipe(T.Label()),
1975
+ access_policy: __S(184, __c46, 0),
1976
+ }).pipe(T.Http({ method: "PUT", uri: "/oauth/connections/{id}", code: 200 })),
1977
+ ).annotate({ identifier: "UpdateOAuthConnectionRequest" });
1978
+ }
1979
+ }
1980
+ function __c43(j: number): any {
1981
+ switch (j) {
1982
+ case 0:
1983
+ return S.suspend(() =>
1984
+ S.Struct({
1985
+ name: S.String.pipe(T.Label()),
1986
+ url_settings: __S(208, __c52, 0),
1987
+ }).pipe(T.Http({ method: "PUT", uri: "/sprites/{name}", code: 200 })),
1988
+ ).annotate({ identifier: "UpdateSpriteRequest" });
1989
+ }
1990
+ }
1991
+ function __c44(j: number): any {
1992
+ switch (j) {
1993
+ case 0:
1994
+ return S.suspend(() =>
1995
+ S.Struct({
1996
+ name: S.String.pipe(T.Label()),
1997
+ path: S.String.pipe(T.Query()),
1998
+ workingDir: S.String.pipe(T.Query()),
1999
+ mode: S.optional(S.String.pipe(T.Query())),
2000
+ mkdir: S.optional(S.Boolean.pipe(T.Query())),
2001
+ body: S.String.pipe(T.HttpBody()),
2002
+ }).pipe(
2003
+ T.Http({
2004
+ method: "PUT",
2005
+ uri: "/sprites/{name}/fs/write",
2006
+ code: 200,
2007
+ bodyMediaType: "application/octet-stream",
2008
+ }),
2009
+ ),
2010
+ ).annotate({ identifier: "WriteFileRequest" });
2011
+ case 1:
2012
+ return S.suspend(() =>
2013
+ S.Struct({
2014
+ mode: S.String,
2015
+ path: S.String,
2016
+ size: S.Number,
2017
+ }),
2018
+ ).annotate({ identifier: "WriteResponse" });
2019
+ }
2020
+ }
2021
+ function __c45(j: number): any {
2022
+ switch (j) {
2023
+ case 0:
2024
+ return S.suspend(() =>
2025
+ S.Struct({
2026
+ access_policy: S.optional(__S(184, __c46, 0)),
2027
+ api_key: S.String.pipe(T.SensitiveValue({})),
2028
+ base_api_url: S.optional(S.String),
2029
+ provider: S.String,
2030
+ }).pipe(T.Http({ method: "POST", uri: "/oauth/connections/api_key", code: 200 })),
2031
+ ).annotate({ identifier: "CreateOAuthApiKeyConnectionRequest" });
2032
+ }
2033
+ }
2034
+ function __c46(j: number): any {
2035
+ switch (j) {
2036
+ case 0:
2037
+ return S.suspend(() =>
2038
+ S.Struct({
2039
+ allow_all: S.optional(S.Boolean),
2040
+ allowed_endpoints: S.optional(__S(192, __c48, 0)),
2041
+ blocked_endpoints: S.optional(__S(192, __c48, 0)),
2042
+ name_prefix: S.optional(S.String),
2043
+ sprite_labels: S.optional(__S(192, __c48, 0)),
2044
+ }),
2045
+ ).annotate({ identifier: "AccessPolicy" });
2046
+ case 1:
2047
+ return S.Array(S.Unknown);
2048
+ case 2:
2049
+ return S.suspend(() =>
2050
+ S.Struct({
2051
+ access_policy: S.optional(__S(184, __c46, 0)),
2052
+ connection_type: S.optional(S.String),
2053
+ id: S.String,
2054
+ inserted_at: S.optional(S.String),
2055
+ notes: S.optional(__S(185, __c46, 1)),
2056
+ provider: S.String,
2057
+ provider_account_id: S.String,
2058
+ provider_account_name: S.optional(S.String),
2059
+ provider_info: S.optional(S.Unknown),
2060
+ scopes: S.optional(S.String),
2061
+ token_expires_at: S.optional(S.String),
2062
+ updated_at: S.optional(S.String),
2063
+ usage_snippet: S.optional(S.String),
2064
+ user_id: S.optional(S.String),
2065
+ }),
2066
+ ).annotate({ identifier: "Connection" });
2067
+ }
2068
+ }
2069
+ function __c47(j: number): any {
2070
+ switch (j) {
2071
+ case 0:
2072
+ return S.suspend(() =>
2073
+ S.Struct({
2074
+ connection: __S(186, __c46, 2),
2075
+ }),
2076
+ ).annotate({ identifier: "ConnectionResponse" });
2077
+ }
2078
+ }
2079
+ function __c48(j: number): any {
2080
+ switch (j) {
2081
+ case 0:
2082
+ return S.Array(S.String);
2083
+ }
2084
+ }
2085
+ function __c49(j: number): any {
2086
+ switch (j) {
2087
+ case 0:
2088
+ return S.suspend(() =>
2089
+ S.Struct({
2090
+ org: S.String.pipe(T.Label()),
2091
+ description: S.optional(S.String),
2092
+ invite_code: S.optional(S.String),
2093
+ }).pipe(T.Http({ method: "POST", uri: "/organizations/{org}/tokens", code: 200 })),
2094
+ ).annotate({ identifier: "CreateOrganizationTokenRequest" });
2095
+ case 1:
2096
+ return S.suspend(() =>
2097
+ S.Struct({
2098
+ token: S.String.pipe(T.SensitiveValue({})),
2099
+ }),
2100
+ ).annotate({ identifier: "CreateOrganizationTokenResponse" });
2101
+ }
2102
+ }
2103
+ function __c50(j: number): any {
2104
+ switch (j) {
2105
+ case 0:
2106
+ return S.suspend(() =>
2107
+ S.Struct({
2108
+ name: S.String,
2109
+ url_settings: S.optional(__S(208, __c52, 0)),
2110
+ labels: S.optional(__S(192, __c48, 0)),
2111
+ }).pipe(T.Http({ method: "POST", uri: "/sprites", code: 200 })),
2112
+ ).annotate({ identifier: "CreateSpriteRequest" });
2113
+ }
2114
+ }
2115
+ function __c51(j: number): any {
2116
+ switch (j) {
2117
+ case 0:
2118
+ return S.suspend(() =>
2119
+ S.Struct({
2120
+ auth: S.String,
2121
+ private_access: S.optional(S.String),
2122
+ }),
2123
+ ).annotate({ identifier: "UrlSettings" });
2124
+ case 1:
2125
+ return S.suspend(() =>
2126
+ S.Struct({
2127
+ created_at: S.String,
2128
+ environment_version: S.optional(S.NullOr(S.String)),
2129
+ id: S.String,
2130
+ labels: S.optional(__S(192, __c48, 0)),
2131
+ last_running_at: S.optional(S.NullOr(S.String)),
2132
+ last_warming_at: S.optional(S.NullOr(S.String)),
2133
+ name: S.String,
2134
+ organization: S.String,
2135
+ status: S.String,
2136
+ updated_at: S.String,
2137
+ url: S.String,
2138
+ url_settings: S.optional(S.NullOr(__S(204, __c51, 0))),
2139
+ version: S.optional(S.NullOr(S.String)),
2140
+ }),
2141
+ ).annotate({ identifier: "SpriteResponse" });
2142
+ }
2143
+ }
2144
+ function __c52(j: number): any {
2145
+ switch (j) {
2146
+ case 0:
2147
+ return S.suspend(() =>
2148
+ S.Struct({
2149
+ auth: S.optional(S.String),
2150
+ }),
2151
+ ).annotate({ identifier: "UrlSettingsRequest" });
2152
+ }
2153
+ }
2154
+ function __c53(j: number): any {
2155
+ switch (j) {
2156
+ case 0:
2157
+ return S.suspend(() =>
2158
+ S.Struct({
2159
+ name: S.String.pipe(T.Label()),
2160
+ asRoot: S.Boolean,
2161
+ path: S.String,
2162
+ recursive: S.Boolean,
2163
+ workingDir: S.String,
2164
+ }).pipe(T.Http({ method: "DELETE", uri: "/sprites/{name}/fs/delete", code: 200 })),
2165
+ ).annotate({ identifier: "DeleteFileRequest" });
2166
+ case 1:
2167
+ return S.suspend(() =>
2168
+ S.Struct({
2169
+ count: S.Number,
2170
+ deleted: __S(192, __c48, 0),
2171
+ }),
2172
+ ).annotate({ identifier: "DeleteResponse" });
2173
+ }
2174
+ }
2175
+ function __c54(j: number): any {
2176
+ switch (j) {
2177
+ case 0:
2178
+ return S.suspend(() =>
2179
+ S.Struct({
2180
+ id: S.String.pipe(T.Label()),
2181
+ }).pipe(T.Http({ method: "DELETE", uri: "/oauth/connections/{id}", code: 200 })),
2182
+ ).annotate({ identifier: "DeleteOAuthConnectionRequest" });
2183
+ }
2184
+ }
2185
+ function __c55(j: number): any {
2186
+ switch (j) {
2187
+ case 0:
2188
+ return S.suspend(() => S.Struct({})).annotate({
2189
+ identifier: "DeleteOAuthConnectionResponse",
2190
+ });
2191
+ }
2192
+ }
2193
+ // Schema table: entry i is schema j of builder f, made on first reach.
2194
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
2195
+ return (__s[i] ??= __L.at(f, j));
2196
+ }