@distilled.cloud/steel 1.0.0-rc.20 → 1.0.0-rc.21

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 (91) hide show
  1. package/README.md +9 -6
  2. package/lib/.lazy.json +1 -1
  3. package/lib/_bundle/sdk.js +1 -1
  4. package/lib/_bundle/sdk.js.map +1 -1
  5. package/lib/credentials.d.ts +8 -3
  6. package/lib/credentials.d.ts.map +1 -1
  7. package/lib/errors.d.ts +7 -0
  8. package/lib/errors.d.ts.map +1 -1
  9. package/lib/errors.js +1 -1
  10. package/lib/index.d.ts +2 -3
  11. package/lib/index.d.ts.map +1 -1
  12. package/lib/index.js +0 -1
  13. package/lib/pagination.d.ts.map +1 -1
  14. package/lib/protocol.d.ts +9 -12
  15. package/lib/protocol.d.ts.map +1 -1
  16. package/lib/retry.d.ts.map +1 -1
  17. package/lib/services/api_keys.d.ts +38 -0
  18. package/lib/services/api_keys.d.ts.map +1 -1
  19. package/lib/services/api_keys.js +1 -1
  20. package/lib/services/api_keys.js.map +1 -1
  21. package/lib/services/auth.d.ts.map +1 -1
  22. package/lib/services/auth.js +1 -1
  23. package/lib/services/auth.js.map +1 -1
  24. package/lib/services/browser_tools.d.ts +35 -0
  25. package/lib/services/browser_tools.d.ts.map +1 -1
  26. package/lib/services/browser_tools.js +1 -1
  27. package/lib/services/browser_tools.js.map +1 -1
  28. package/lib/services/captchas.d.ts +32 -0
  29. package/lib/services/captchas.d.ts.map +1 -1
  30. package/lib/services/captchas.js +1 -1
  31. package/lib/services/captchas.js.map +1 -1
  32. package/lib/services/credentials.d.ts +54 -0
  33. package/lib/services/credentials.d.ts.map +1 -1
  34. package/lib/services/credentials.js +1 -1
  35. package/lib/services/credentials.js.map +1 -1
  36. package/lib/services/extensions.d.ts +47 -1
  37. package/lib/services/extensions.d.ts.map +1 -1
  38. package/lib/services/extensions.js +1 -1
  39. package/lib/services/extensions.js.map +1 -1
  40. package/lib/services/files.d.ts +57 -3
  41. package/lib/services/files.d.ts.map +1 -1
  42. package/lib/services/files.js +1 -1
  43. package/lib/services/files.js.map +1 -1
  44. package/lib/services/index.d.ts +2 -0
  45. package/lib/services/index.d.ts.map +1 -1
  46. package/lib/services/index.js +2 -0
  47. package/lib/services/profiles.d.ts +64 -5
  48. package/lib/services/profiles.d.ts.map +1 -1
  49. package/lib/services/profiles.js +1 -1
  50. package/lib/services/profiles.js.map +1 -1
  51. package/lib/services/projects.d.ts +32 -0
  52. package/lib/services/projects.d.ts.map +1 -1
  53. package/lib/services/projects.js +1 -1
  54. package/lib/services/projects.js.map +1 -1
  55. package/lib/services/secret_connections.d.ts +233 -0
  56. package/lib/services/secret_connections.d.ts.map +1 -0
  57. package/lib/services/secret_connections.js +2 -0
  58. package/lib/services/secret_connections.js.map +1 -0
  59. package/lib/services/sessions.d.ts +526 -233
  60. package/lib/services/sessions.d.ts.map +1 -1
  61. package/lib/services/sessions.js +50 -41
  62. package/lib/services/sessions.js.map +1 -1
  63. package/lib/services/vaults.d.ts +149 -0
  64. package/lib/services/vaults.d.ts.map +1 -0
  65. package/lib/services/vaults.js +2 -0
  66. package/lib/services/vaults.js.map +1 -0
  67. package/lib/services.lazy/index.js +2 -2
  68. package/lib/services.lazy/secret_connections.js +1 -0
  69. package/lib/services.lazy/sessions.js +2 -2
  70. package/lib/services.lazy/vaults.js +1 -0
  71. package/lib/traits.d.ts.map +1 -1
  72. package/package.json +5 -6
  73. package/src/credentials.ts +18 -12
  74. package/src/errors.ts +9 -1
  75. package/src/index.ts +2 -3
  76. package/src/protocol.ts +13 -24
  77. package/src/services/api_keys.ts +87 -7
  78. package/src/services/auth.ts +3 -2
  79. package/src/services/browser_tools.ts +101 -28
  80. package/src/services/captchas.ts +85 -17
  81. package/src/services/credentials.ts +129 -25
  82. package/src/services/extensions.ts +136 -34
  83. package/src/services/files.ts +172 -58
  84. package/src/services/index.ts +2 -0
  85. package/src/services/profiles.ts +198 -60
  86. package/src/services/projects.ts +79 -12
  87. package/src/services/secret_connections.ts +538 -0
  88. package/src/services/sessions.ts +1384 -794
  89. package/src/services/vaults.ts +369 -0
  90. package/lib/index.lazy.js +0 -7
  91. package/lib/index.lazy.js.map +0 -1
@@ -1,9 +1,10 @@
1
1
  import * as API from "@distilled.cloud/core/api";
2
2
  import * as C from "@distilled.cloud/core/category";
3
+ import { BinaryStream } from "@distilled.cloud/core/protocol-rest";
3
4
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-steel/specs/openapi.json). Do not edit.
4
5
  import * as S from "@distilled.cloud/core/schema-lite";
5
6
  import * as __L from "@distilled.cloud/core/schema-lite";
6
- import { UnknownSteelError } from "../errors.ts";
7
+ import { SteelServiceErrors } from "../errors.ts";
7
8
  import { SteelProtocol, type SteelOpError, type SteelOpContext } from "../protocol.ts";
8
9
  import * as Retry from "../retry.ts";
9
10
  import * as T from "../traits.ts";
@@ -30,36 +31,64 @@ export class BadRequest
30
31
  /*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
31
32
  code: S.Number,
32
33
  message: S.String,
34
+ body: /*@__PURE__*/ S.optional(
35
+ /*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(3, __c0, 3)), S.String]),
36
+ ),
37
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
33
38
  }).pipe(C.withBadRequestError),
34
39
  [{ status: 400 }],
35
- ) {}
40
+ )
41
+ {
42
+ declare readonly body?: ErrorResponse | string;
43
+ }
36
44
 
37
45
  export class Conflict
38
46
  extends /*@__PURE__*/ T.applyErrorMatchers(
39
47
  /*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
40
48
  code: S.Number,
41
49
  message: S.String,
50
+ body: /*@__PURE__*/ S.optional(
51
+ /*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(3, __c0, 3)), S.String]),
52
+ ),
53
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
42
54
  }).pipe(C.withConflictError),
43
55
  [{ status: 409 }],
44
- ) {}
56
+ )
57
+ {
58
+ declare readonly body?: ErrorResponse | string;
59
+ }
45
60
 
46
61
  export class NotFound
47
62
  extends /*@__PURE__*/ T.applyErrorMatchers(
48
63
  /*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
49
64
  code: S.Number,
50
65
  message: S.String,
66
+ body: /*@__PURE__*/ S.optional(
67
+ /*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(3, __c0, 3)), S.String]),
68
+ ),
69
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
51
70
  }).pipe(C.withBadRequestError),
52
71
  [{ status: 404 }],
53
- ) {}
72
+ )
73
+ {
74
+ declare readonly body?: ErrorResponse | string;
75
+ }
54
76
 
55
77
  export class UnsupportedMediaType
56
78
  extends /*@__PURE__*/ T.applyErrorMatchers(
57
79
  /*@__PURE__*/ S.TaggedError<UnsupportedMediaType>()("UnsupportedMediaType", {
58
80
  code: S.Number,
59
81
  message: S.String,
82
+ body: /*@__PURE__*/ S.optional(
83
+ /*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(3, __c0, 3)), S.String]),
84
+ ),
85
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
60
86
  }).pipe(C.withBadRequestError),
61
87
  [{ status: 415 }],
62
- ) {}
88
+ )
89
+ {
90
+ declare readonly body?: ErrorResponse | string;
91
+ }
63
92
 
64
93
  export interface DeleteAllFilesRequest {
65
94
  sessionId: string;
@@ -77,16 +106,28 @@ export interface DeleteGlobalFileResponse {}
77
106
  export interface DownloadArchiveRequest {
78
107
  sessionId: string;
79
108
  }
80
- export type DownloadArchiveResponse = Uint8Array;
109
+ export interface DownloadArchiveResponse {
110
+ body: BinaryStream;
111
+ /** Media type of the body, from the response's `Content-Type` header (e.g. `image/jpeg`). */
112
+ contentType?: string | undefined;
113
+ }
81
114
  export interface DownloadFileRequest {
82
115
  sessionId: string;
83
116
  path: string;
84
117
  }
85
- export type DownloadFileResponse = Uint8Array;
118
+ export interface DownloadFileResponse {
119
+ body: BinaryStream;
120
+ /** Media type of the body, from the response's `Content-Type` header (e.g. `image/jpeg`). */
121
+ contentType?: string | undefined;
122
+ }
86
123
  export interface DownloadGlobalFileRequest {
87
124
  path: string;
88
125
  }
89
- export type DownloadGlobalFileResponse = Uint8Array;
126
+ export interface DownloadGlobalFileResponse {
127
+ body: BinaryStream;
128
+ /** Media type of the body, from the response's `Content-Type` header (e.g. `image/jpeg`). */
129
+ contentType?: string | undefined;
130
+ }
90
131
  export interface ListFilesRequest {
91
132
  sessionId: string;
92
133
  }
@@ -126,6 +167,33 @@ export interface UploadGlobalFileRequest {
126
167
  /** Path to the file in the storage system */
127
168
  path?: string | undefined;
128
169
  }
170
+ export interface ErrorResponseContextItem {
171
+ keyword: string;
172
+ message: string;
173
+ params: unknown;
174
+ }
175
+ export type ErrorResponseContextList = Array<ErrorResponseContextItem>;
176
+ /** Structured data about the error for the caller, e.g. `candidates` for credential_ambiguous. Never contains secret values. */
177
+ export type ErrorResponseDetailsMap = { [key: string]: unknown | undefined };
178
+ /** An error response from the API */
179
+ export interface ErrorResponse {
180
+ /** Stable machine-readable reason, e.g. 'budget_exceeded' or 'profile_not_ready'. Branch on this instead of parsing the message. */
181
+ code?: string | undefined;
182
+ context?: ErrorResponseContextList | undefined;
183
+ /** Structured data about the error for the caller, e.g. `candidates` for credential_ambiguous. Never contains secret values. */
184
+ details?: ErrorResponseDetailsMap | undefined;
185
+ error?: string | undefined;
186
+ linkToDocs?: string | undefined;
187
+ message: string;
188
+ /** The request field that caused the error, if any. */
189
+ param?: string | undefined;
190
+ /** Seconds to wait before retrying. Also sent as the Retry-After header. */
191
+ retryAfterSeconds?: number | undefined;
192
+ /** Whether the same request can succeed later without changes. False means fix the request or the account first. */
193
+ retryable?: boolean | undefined;
194
+ /** Where a person turns on the refused feature, e.g. verifying the account. Pass it to your user. */
195
+ unlockUrl?: string | undefined;
196
+ }
129
197
  export type DeleteAllFilesError = NotFound | Conflict | SteelOpError;
130
198
  /** Delete all files Delete all files from a session */
131
199
  export const deleteAllFiles: API.OperationMethod<
@@ -134,9 +202,10 @@ export const deleteAllFiles: API.OperationMethod<
134
202
  DeleteAllFilesError,
135
203
  SteelOpContext
136
204
  > = /*@__PURE__*/ API.make(() => ({
137
- input: __S(12, __c6, 0) as any as S.Schema<DeleteAllFilesRequest>,
138
- output: __S(14, __c7, 0) as any as S.Schema<DeleteAllFilesResponse>,
139
- errors: [NotFound, Conflict, UnknownSteelError],
205
+ input: __S(28, __c7, 0) as any as S.Schema<DeleteAllFilesRequest>,
206
+ output: __S(32, __c8, 0) as any as S.Schema<DeleteAllFilesResponse>,
207
+ errors: [NotFound, Conflict],
208
+ serviceErrors: SteelServiceErrors,
140
209
  protocol: SteelProtocol,
141
210
  retry: Retry.Retry,
142
211
  telemetry: TELEMETRY,
@@ -151,9 +220,10 @@ export const deleteFile: API.OperationMethod<
151
220
  DeleteFileError,
152
221
  SteelOpContext
153
222
  > = /*@__PURE__*/ API.make(() => ({
154
- input: __S(16, __c8, 0) as any as S.Schema<DeleteFileRequest>,
155
- output: __S(14, __c7, 0) as any as S.Schema<DeleteFileResponse>,
156
- errors: [NotFound, Conflict, UnknownSteelError],
223
+ input: __S(36, __c9, 0) as any as S.Schema<DeleteFileRequest>,
224
+ output: __S(32, __c8, 0) as any as S.Schema<DeleteFileResponse>,
225
+ errors: [NotFound, Conflict],
226
+ serviceErrors: SteelServiceErrors,
157
227
  protocol: SteelProtocol,
158
228
  retry: Retry.Retry,
159
229
  telemetry: TELEMETRY,
@@ -168,9 +238,10 @@ export const deleteGlobalFile: API.OperationMethod<
168
238
  DeleteGlobalFileError,
169
239
  SteelOpContext
170
240
  > = /*@__PURE__*/ API.make(() => ({
171
- input: __S(18, __c9, 0) as any as S.Schema<DeleteGlobalFileRequest>,
172
- output: __S(14, __c7, 0) as any as S.Schema<DeleteGlobalFileResponse>,
173
- errors: [NotFound, UnknownSteelError],
241
+ input: __S(40, __c10, 0) as any as S.Schema<DeleteGlobalFileRequest>,
242
+ output: __S(32, __c8, 0) as any as S.Schema<DeleteGlobalFileResponse>,
243
+ errors: [NotFound],
244
+ serviceErrors: SteelServiceErrors,
174
245
  protocol: SteelProtocol,
175
246
  retry: Retry.Retry,
176
247
  telemetry: TELEMETRY,
@@ -185,9 +256,10 @@ export const downloadArchive: API.OperationMethod<
185
256
  DownloadArchiveError,
186
257
  SteelOpContext
187
258
  > = /*@__PURE__*/ API.make(() => ({
188
- input: __S(20, __c10, 0) as any as S.Schema<DownloadArchiveRequest>,
189
- output: __S(21, __c10, 1) as any as S.Codec<DownloadArchiveResponse>,
190
- errors: [NotFound, Conflict, UnknownSteelError],
259
+ input: __S(44, __c11, 0) as any as S.Schema<DownloadArchiveRequest>,
260
+ output: __S(48, __c12, 0) as any as S.Schema<DownloadArchiveResponse>,
261
+ errors: [NotFound, Conflict],
262
+ serviceErrors: SteelServiceErrors,
191
263
  protocol: SteelProtocol,
192
264
  retry: Retry.Retry,
193
265
  telemetry: TELEMETRY,
@@ -202,9 +274,10 @@ export const downloadFile: API.OperationMethod<
202
274
  DownloadFileError,
203
275
  SteelOpContext
204
276
  > = /*@__PURE__*/ API.make(() => ({
205
- input: __S(22, __c11, 0) as any as S.Schema<DownloadFileRequest>,
206
- output: __S(23, __c11, 1) as any as S.Codec<DownloadFileResponse>,
207
- errors: [NotFound, Conflict, UnknownSteelError],
277
+ input: __S(52, __c13, 0) as any as S.Schema<DownloadFileRequest>,
278
+ output: __S(48, __c12, 0) as any as S.Schema<DownloadFileResponse>,
279
+ errors: [NotFound, Conflict],
280
+ serviceErrors: SteelServiceErrors,
208
281
  protocol: SteelProtocol,
209
282
  retry: Retry.Retry,
210
283
  telemetry: TELEMETRY,
@@ -219,9 +292,10 @@ export const downloadGlobalFile: API.OperationMethod<
219
292
  DownloadGlobalFileError,
220
293
  SteelOpContext
221
294
  > = /*@__PURE__*/ API.make(() => ({
222
- input: __S(24, __c12, 0) as any as S.Schema<DownloadGlobalFileRequest>,
223
- output: __S(25, __c12, 1) as any as S.Codec<DownloadGlobalFileResponse>,
224
- errors: [NotFound, UnknownSteelError],
295
+ input: __S(56, __c14, 0) as any as S.Schema<DownloadGlobalFileRequest>,
296
+ output: __S(48, __c12, 0) as any as S.Schema<DownloadGlobalFileResponse>,
297
+ errors: [NotFound],
298
+ serviceErrors: SteelServiceErrors,
225
299
  protocol: SteelProtocol,
226
300
  retry: Retry.Retry,
227
301
  telemetry: TELEMETRY,
@@ -236,9 +310,10 @@ export const listFiles: API.OperationMethod<
236
310
  ListFilesError,
237
311
  SteelOpContext
238
312
  > = /*@__PURE__*/ API.make(() => ({
239
- input: __S(0, __c0, 0) as any as S.Schema<ListFilesRequest>,
240
- output: __S(3, __c1, 1) as any as S.Schema<MultipleFiles>,
241
- errors: [NotFound, Conflict, UnknownSteelError],
313
+ input: __S(4, __c1, 0) as any as S.Schema<ListFilesRequest>,
314
+ output: __S(9, __c2, 1) as any as S.Schema<MultipleFiles>,
315
+ errors: [NotFound, Conflict],
316
+ serviceErrors: SteelServiceErrors,
242
317
  protocol: SteelProtocol,
243
318
  retry: Retry.Retry,
244
319
  telemetry: TELEMETRY,
@@ -253,9 +328,10 @@ export const listGlobalFiles: API.OperationMethod<
253
328
  ListGlobalFilesError,
254
329
  SteelOpContext
255
330
  > = /*@__PURE__*/ API.make(() => ({
256
- input: __S(6, __c3, 0) as any as S.Schema<ListGlobalFilesRequest>,
257
- output: __S(3, __c1, 1) as any as S.Schema<MultipleFiles>,
258
- errors: [UnknownSteelError],
331
+ input: __S(16, __c4, 0) as any as S.Schema<ListGlobalFilesRequest>,
332
+ output: __S(9, __c2, 1) as any as S.Schema<MultipleFiles>,
333
+ errors: [],
334
+ serviceErrors: SteelServiceErrors,
259
335
  protocol: SteelProtocol,
260
336
  retry: Retry.Retry,
261
337
  telemetry: TELEMETRY,
@@ -275,9 +351,10 @@ export const uploadFile: API.OperationMethod<
275
351
  UploadFileError,
276
352
  SteelOpContext
277
353
  > = /*@__PURE__*/ API.make(() => ({
278
- input: __S(8, __c4, 0) as any as S.Schema<UploadFileRequest>,
279
- output: __S(4, __c2, 0) as any as S.Schema<FileDetails>,
280
- errors: [BadRequest, NotFound, Conflict, UnsupportedMediaType, UnknownSteelError],
354
+ input: __S(20, __c5, 0) as any as S.Schema<UploadFileRequest>,
355
+ output: __S(12, __c3, 0) as any as S.Schema<FileDetails>,
356
+ errors: [BadRequest, NotFound, Conflict, UnsupportedMediaType],
357
+ serviceErrors: SteelServiceErrors,
281
358
  protocol: SteelProtocol,
282
359
  retry: Retry.Retry,
283
360
  telemetry: TELEMETRY,
@@ -292,9 +369,10 @@ export const uploadGlobalFile: API.OperationMethod<
292
369
  UploadGlobalFileError,
293
370
  SteelOpContext
294
371
  > = /*@__PURE__*/ API.make(() => ({
295
- input: __S(10, __c5, 0) as any as S.Schema<UploadGlobalFileRequest>,
296
- output: __S(4, __c2, 0) as any as S.Schema<FileDetails>,
297
- errors: [BadRequest, UnsupportedMediaType, UnknownSteelError],
372
+ input: __S(24, __c6, 0) as any as S.Schema<UploadGlobalFileRequest>,
373
+ output: __S(12, __c3, 0) as any as S.Schema<FileDetails>,
374
+ errors: [BadRequest, UnsupportedMediaType],
375
+ serviceErrors: SteelServiceErrors,
298
376
  protocol: SteelProtocol,
299
377
  retry: Retry.Retry,
300
378
  telemetry: TELEMETRY,
@@ -303,6 +381,37 @@ export const uploadGlobalFile: API.OperationMethod<
303
381
 
304
382
  // Schema builders: each runs one schema initializer, on that schema's first use.
305
383
  function __c0(j: number): any {
384
+ switch (j) {
385
+ case 0:
386
+ return S.suspend(() =>
387
+ S.Struct({
388
+ keyword: S.String,
389
+ message: S.String,
390
+ params: S.Unknown,
391
+ }),
392
+ ).annotate({ identifier: "ErrorResponseContextItem" });
393
+ case 1:
394
+ return S.Array(__S(0, __c0, 0));
395
+ case 2:
396
+ return S.Record(S.String, S.Unknown);
397
+ case 3:
398
+ return S.suspend(() =>
399
+ S.Struct({
400
+ code: S.optional(S.String),
401
+ context: S.optional(__S(1, __c0, 1)),
402
+ details: S.optional(__S(2, __c0, 2)),
403
+ error: S.optional(S.String),
404
+ linkToDocs: S.optional(S.String),
405
+ message: S.String,
406
+ param: S.optional(S.String),
407
+ retryAfterSeconds: S.optional(S.Number),
408
+ retryable: S.optional(S.Boolean),
409
+ unlockUrl: S.optional(S.String),
410
+ }),
411
+ ).annotate({ identifier: "ErrorResponse" });
412
+ }
413
+ }
414
+ function __c1(j: number): any {
306
415
  switch (j) {
307
416
  case 0:
308
417
  return S.suspend(() =>
@@ -312,19 +421,19 @@ function __c0(j: number): any {
312
421
  ).annotate({ identifier: "ListFilesRequest" });
313
422
  }
314
423
  }
315
- function __c1(j: number): any {
424
+ function __c2(j: number): any {
316
425
  switch (j) {
317
426
  case 0:
318
- return S.Array(__S(4, __c2, 0));
427
+ return S.Array(__S(12, __c3, 0));
319
428
  case 1:
320
429
  return S.suspend(() =>
321
430
  S.Struct({
322
- data: __S(2, __c1, 0),
431
+ data: __S(8, __c2, 0),
323
432
  }),
324
433
  ).annotate({ identifier: "MultipleFiles" });
325
434
  }
326
435
  }
327
- function __c2(j: number): any {
436
+ function __c3(j: number): any {
328
437
  switch (j) {
329
438
  case 0:
330
439
  return S.suspend(() =>
@@ -336,7 +445,7 @@ function __c2(j: number): any {
336
445
  ).annotate({ identifier: "MultipleFilesDataItem" });
337
446
  }
338
447
  }
339
- function __c3(j: number): any {
448
+ function __c4(j: number): any {
340
449
  switch (j) {
341
450
  case 0:
342
451
  return S.suspend(() =>
@@ -344,7 +453,7 @@ function __c3(j: number): any {
344
453
  ).annotate({ identifier: "ListGlobalFilesRequest" });
345
454
  }
346
455
  }
347
- function __c4(j: number): any {
456
+ function __c5(j: number): any {
348
457
  switch (j) {
349
458
  case 0:
350
459
  return S.suspend(() =>
@@ -363,7 +472,7 @@ function __c4(j: number): any {
363
472
  ).annotate({ identifier: "UploadFileRequest" });
364
473
  }
365
474
  }
366
- function __c5(j: number): any {
475
+ function __c6(j: number): any {
367
476
  switch (j) {
368
477
  case 0:
369
478
  return S.suspend(() =>
@@ -374,7 +483,7 @@ function __c5(j: number): any {
374
483
  ).annotate({ identifier: "UploadGlobalFileRequest" });
375
484
  }
376
485
  }
377
- function __c6(j: number): any {
486
+ function __c7(j: number): any {
378
487
  switch (j) {
379
488
  case 0:
380
489
  return S.suspend(() =>
@@ -384,13 +493,13 @@ function __c6(j: number): any {
384
493
  ).annotate({ identifier: "DeleteAllFilesRequest" });
385
494
  }
386
495
  }
387
- function __c7(j: number): any {
496
+ function __c8(j: number): any {
388
497
  switch (j) {
389
498
  case 0:
390
499
  return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteAllFilesResponse" });
391
500
  }
392
501
  }
393
- function __c8(j: number): any {
502
+ function __c9(j: number): any {
394
503
  switch (j) {
395
504
  case 0:
396
505
  return S.suspend(() =>
@@ -403,7 +512,7 @@ function __c8(j: number): any {
403
512
  ).annotate({ identifier: "DeleteFileRequest" });
404
513
  }
405
514
  }
406
- function __c9(j: number): any {
515
+ function __c10(j: number): any {
407
516
  switch (j) {
408
517
  case 0:
409
518
  return S.suspend(() =>
@@ -413,7 +522,7 @@ function __c9(j: number): any {
413
522
  ).annotate({ identifier: "DeleteGlobalFileRequest" });
414
523
  }
415
524
  }
416
- function __c10(j: number): any {
525
+ function __c11(j: number): any {
417
526
  switch (j) {
418
527
  case 0:
419
528
  return S.suspend(() =>
@@ -421,11 +530,20 @@ function __c10(j: number): any {
421
530
  sessionId: S.String.pipe(T.Label()),
422
531
  }).pipe(T.Http({ method: "GET", uri: "/v1/sessions/{sessionId}/files.zip", code: 200 })),
423
532
  ).annotate({ identifier: "DownloadArchiveRequest" });
424
- case 1:
425
- return S.instanceOf(Uint8Array).pipe(/*@__PURE__*/ T.BinaryResponse());
426
533
  }
427
534
  }
428
- function __c11(j: number): any {
535
+ function __c12(j: number): any {
536
+ switch (j) {
537
+ case 0:
538
+ return S.suspend(() =>
539
+ S.Struct({
540
+ body: BinaryStream.pipe(T.RawResponse(), T.BinaryResponse()),
541
+ contentType: S.optional(S.String.pipe(T.Header("Content-Type"))),
542
+ }),
543
+ ).annotate({ identifier: "DownloadArchiveResponse" });
544
+ }
545
+ }
546
+ function __c13(j: number): any {
429
547
  switch (j) {
430
548
  case 0:
431
549
  return S.suspend(() =>
@@ -434,11 +552,9 @@ function __c11(j: number): any {
434
552
  path: S.String.pipe(T.Label()),
435
553
  }).pipe(T.Http({ method: "GET", uri: "/v1/sessions/{sessionId}/files/{path}", code: 200 })),
436
554
  ).annotate({ identifier: "DownloadFileRequest" });
437
- case 1:
438
- return S.instanceOf(Uint8Array).pipe(/*@__PURE__*/ T.BinaryResponse());
439
555
  }
440
556
  }
441
- function __c12(j: number): any {
557
+ function __c14(j: number): any {
442
558
  switch (j) {
443
559
  case 0:
444
560
  return S.suspend(() =>
@@ -446,8 +562,6 @@ function __c12(j: number): any {
446
562
  path: S.String.pipe(T.Label()),
447
563
  }).pipe(T.Http({ method: "GET", uri: "/v1/files/{path}", code: 200 })),
448
564
  ).annotate({ identifier: "DownloadGlobalFileRequest" });
449
- case 1:
450
- return S.instanceOf(Uint8Array).pipe(/*@__PURE__*/ T.BinaryResponse());
451
565
  }
452
566
  }
453
567
  // Schema table: entry i is schema j of builder f, made on first reach.
@@ -8,4 +8,6 @@ export * as extensions from "./extensions.ts";
8
8
  export * as files from "./files.ts";
9
9
  export * as profiles from "./profiles.ts";
10
10
  export * as projects from "./projects.ts";
11
+ export * as secretConnections from "./secret_connections.ts";
11
12
  export * as sessions from "./sessions.ts";
13
+ export * as vaults from "./vaults.ts";