@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.
- package/README.md +9 -6
- package/lib/.lazy.json +1 -1
- package/lib/_bundle/sdk.js +1 -1
- package/lib/_bundle/sdk.js.map +1 -1
- package/lib/credentials.d.ts +8 -3
- package/lib/credentials.d.ts.map +1 -1
- package/lib/errors.d.ts +7 -0
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -1
- package/lib/index.d.ts +2 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -1
- package/lib/pagination.d.ts.map +1 -1
- package/lib/protocol.d.ts +9 -12
- package/lib/protocol.d.ts.map +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/services/api_keys.d.ts +38 -0
- package/lib/services/api_keys.d.ts.map +1 -1
- package/lib/services/api_keys.js +1 -1
- package/lib/services/api_keys.js.map +1 -1
- package/lib/services/auth.d.ts.map +1 -1
- package/lib/services/auth.js +1 -1
- package/lib/services/auth.js.map +1 -1
- package/lib/services/browser_tools.d.ts +35 -0
- package/lib/services/browser_tools.d.ts.map +1 -1
- package/lib/services/browser_tools.js +1 -1
- package/lib/services/browser_tools.js.map +1 -1
- package/lib/services/captchas.d.ts +32 -0
- package/lib/services/captchas.d.ts.map +1 -1
- package/lib/services/captchas.js +1 -1
- package/lib/services/captchas.js.map +1 -1
- package/lib/services/credentials.d.ts +54 -0
- package/lib/services/credentials.d.ts.map +1 -1
- package/lib/services/credentials.js +1 -1
- package/lib/services/credentials.js.map +1 -1
- package/lib/services/extensions.d.ts +47 -1
- package/lib/services/extensions.d.ts.map +1 -1
- package/lib/services/extensions.js +1 -1
- package/lib/services/extensions.js.map +1 -1
- package/lib/services/files.d.ts +57 -3
- package/lib/services/files.d.ts.map +1 -1
- package/lib/services/files.js +1 -1
- package/lib/services/files.js.map +1 -1
- package/lib/services/index.d.ts +2 -0
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/index.js +2 -0
- package/lib/services/profiles.d.ts +64 -5
- package/lib/services/profiles.d.ts.map +1 -1
- package/lib/services/profiles.js +1 -1
- package/lib/services/profiles.js.map +1 -1
- package/lib/services/projects.d.ts +32 -0
- package/lib/services/projects.d.ts.map +1 -1
- package/lib/services/projects.js +1 -1
- package/lib/services/projects.js.map +1 -1
- package/lib/services/secret_connections.d.ts +233 -0
- package/lib/services/secret_connections.d.ts.map +1 -0
- package/lib/services/secret_connections.js +2 -0
- package/lib/services/secret_connections.js.map +1 -0
- package/lib/services/sessions.d.ts +526 -233
- package/lib/services/sessions.d.ts.map +1 -1
- package/lib/services/sessions.js +50 -41
- package/lib/services/sessions.js.map +1 -1
- package/lib/services/vaults.d.ts +149 -0
- package/lib/services/vaults.d.ts.map +1 -0
- package/lib/services/vaults.js +2 -0
- package/lib/services/vaults.js.map +1 -0
- package/lib/services.lazy/index.js +2 -2
- package/lib/services.lazy/secret_connections.js +1 -0
- package/lib/services.lazy/sessions.js +2 -2
- package/lib/services.lazy/vaults.js +1 -0
- package/lib/traits.d.ts.map +1 -1
- package/package.json +5 -6
- package/src/credentials.ts +18 -12
- package/src/errors.ts +9 -1
- package/src/index.ts +2 -3
- package/src/protocol.ts +13 -24
- package/src/services/api_keys.ts +87 -7
- package/src/services/auth.ts +3 -2
- package/src/services/browser_tools.ts +101 -28
- package/src/services/captchas.ts +85 -17
- package/src/services/credentials.ts +129 -25
- package/src/services/extensions.ts +136 -34
- package/src/services/files.ts +172 -58
- package/src/services/index.ts +2 -0
- package/src/services/profiles.ts +198 -60
- package/src/services/projects.ts +79 -12
- package/src/services/secret_connections.ts +538 -0
- package/src/services/sessions.ts +1384 -794
- package/src/services/vaults.ts +369 -0
- package/lib/index.lazy.js +0 -7
- package/lib/index.lazy.js.map +0 -1
package/src/services/files.ts
CHANGED
|
@@ -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 {
|
|
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
|
|
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
|
|
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
|
|
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(
|
|
138
|
-
output: __S(
|
|
139
|
-
errors: [NotFound, Conflict
|
|
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(
|
|
155
|
-
output: __S(
|
|
156
|
-
errors: [NotFound, Conflict
|
|
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(
|
|
172
|
-
output: __S(
|
|
173
|
-
errors: [NotFound
|
|
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(
|
|
189
|
-
output: __S(
|
|
190
|
-
errors: [NotFound, Conflict
|
|
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(
|
|
206
|
-
output: __S(
|
|
207
|
-
errors: [NotFound, Conflict
|
|
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(
|
|
223
|
-
output: __S(
|
|
224
|
-
errors: [NotFound
|
|
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(
|
|
240
|
-
output: __S(
|
|
241
|
-
errors: [NotFound, Conflict
|
|
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(
|
|
257
|
-
output: __S(
|
|
258
|
-
errors: [
|
|
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(
|
|
279
|
-
output: __S(
|
|
280
|
-
errors: [BadRequest, NotFound, Conflict, UnsupportedMediaType
|
|
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(
|
|
296
|
-
output: __S(
|
|
297
|
-
errors: [BadRequest, UnsupportedMediaType
|
|
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
|
|
424
|
+
function __c2(j: number): any {
|
|
316
425
|
switch (j) {
|
|
317
426
|
case 0:
|
|
318
|
-
return S.Array(__S(
|
|
427
|
+
return S.Array(__S(12, __c3, 0));
|
|
319
428
|
case 1:
|
|
320
429
|
return S.suspend(() =>
|
|
321
430
|
S.Struct({
|
|
322
|
-
data: __S(
|
|
431
|
+
data: __S(8, __c2, 0),
|
|
323
432
|
}),
|
|
324
433
|
).annotate({ identifier: "MultipleFiles" });
|
|
325
434
|
}
|
|
326
435
|
}
|
|
327
|
-
function
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
package/src/services/index.ts
CHANGED
|
@@ -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";
|