@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
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as C from "@distilled.cloud/core/category";
|
|
3
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-steel/specs/openapi.json). Do not edit.
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
6
|
+
import { SteelServiceErrors } from "../errors.ts";
|
|
7
|
+
import { SteelProtocol, type SteelOpError, type SteelOpContext } from "../protocol.ts";
|
|
8
|
+
import * as Retry from "../retry.ts";
|
|
9
|
+
import * as T from "../traits.ts";
|
|
10
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
11
|
+
const __s: any[] = [];
|
|
12
|
+
|
|
13
|
+
export type { SteelOpError, SteelOpContext };
|
|
14
|
+
|
|
15
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
16
|
+
const TELEMETRY = {
|
|
17
|
+
system: "steel-api",
|
|
18
|
+
responseHeaders: [
|
|
19
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
20
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
21
|
+
],
|
|
22
|
+
prefix: "Steel",
|
|
23
|
+
service: "Vaults",
|
|
24
|
+
labels: "steel",
|
|
25
|
+
propagate: "w3c",
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
28
|
+
export class BadRequest
|
|
29
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
30
|
+
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
31
|
+
code: S.Number,
|
|
32
|
+
message: S.String,
|
|
33
|
+
body: /*@__PURE__*/ S.optional(
|
|
34
|
+
/*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(3, __c0, 3)), S.String]),
|
|
35
|
+
),
|
|
36
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
37
|
+
}).pipe(C.withBadRequestError),
|
|
38
|
+
[{ status: 400 }],
|
|
39
|
+
)
|
|
40
|
+
{
|
|
41
|
+
declare readonly body?: ErrorResponse | string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export class Conflict
|
|
45
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
46
|
+
/*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
|
|
47
|
+
code: S.Number,
|
|
48
|
+
message: S.String,
|
|
49
|
+
body: /*@__PURE__*/ S.optional(
|
|
50
|
+
/*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(3, __c0, 3)), S.String]),
|
|
51
|
+
),
|
|
52
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
53
|
+
}).pipe(C.withConflictError),
|
|
54
|
+
[{ status: 409 }],
|
|
55
|
+
)
|
|
56
|
+
{
|
|
57
|
+
declare readonly body?: ErrorResponse | string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export class Forbidden
|
|
61
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
62
|
+
/*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
|
|
63
|
+
code: S.Number,
|
|
64
|
+
message: S.String,
|
|
65
|
+
body: /*@__PURE__*/ S.optional(
|
|
66
|
+
/*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(3, __c0, 3)), S.String]),
|
|
67
|
+
),
|
|
68
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
69
|
+
}).pipe(C.withAuthError),
|
|
70
|
+
[{ status: 403 }],
|
|
71
|
+
)
|
|
72
|
+
{
|
|
73
|
+
declare readonly body?: ErrorResponse | string;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export class NotFound
|
|
77
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
78
|
+
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
79
|
+
code: S.Number,
|
|
80
|
+
message: S.String,
|
|
81
|
+
body: /*@__PURE__*/ S.optional(
|
|
82
|
+
/*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(3, __c0, 3)), S.String]),
|
|
83
|
+
),
|
|
84
|
+
headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
|
|
85
|
+
}).pipe(C.withBadRequestError),
|
|
86
|
+
[{ status: 404 }],
|
|
87
|
+
)
|
|
88
|
+
{
|
|
89
|
+
declare readonly body?: ErrorResponse | string;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export interface CreateVaultRequest {
|
|
93
|
+
description?: string | null | undefined;
|
|
94
|
+
/** 1-63 lowercase letters, digits, hyphens, underscores or dots; must start with a letter or digit. */
|
|
95
|
+
name: string;
|
|
96
|
+
projectId?: string | undefined;
|
|
97
|
+
}
|
|
98
|
+
export interface Vault {
|
|
99
|
+
createdAt: string;
|
|
100
|
+
description: string | null;
|
|
101
|
+
id: string;
|
|
102
|
+
/** 1-63 lowercase letters, digits, hyphens, underscores or dots; must start with a letter or digit. */
|
|
103
|
+
name: string;
|
|
104
|
+
projectId: string;
|
|
105
|
+
updatedAt: string;
|
|
106
|
+
}
|
|
107
|
+
export interface DeleteVaultRequest {
|
|
108
|
+
id: string;
|
|
109
|
+
projectId?: string | undefined;
|
|
110
|
+
}
|
|
111
|
+
export interface DeleteVaultResponse {}
|
|
112
|
+
export interface GetVaultRequest {
|
|
113
|
+
id: string;
|
|
114
|
+
projectId?: string | undefined;
|
|
115
|
+
}
|
|
116
|
+
export interface ListVaultsRequest {
|
|
117
|
+
projectId?: string | undefined;
|
|
118
|
+
}
|
|
119
|
+
export interface VaultListVaultsItem {
|
|
120
|
+
createdAt: string;
|
|
121
|
+
description: string | null;
|
|
122
|
+
id: string;
|
|
123
|
+
/** 1-63 lowercase letters, digits, hyphens, underscores or dots; must start with a letter or digit. */
|
|
124
|
+
name: string;
|
|
125
|
+
projectId: string;
|
|
126
|
+
updatedAt: string;
|
|
127
|
+
}
|
|
128
|
+
export type VaultListVaultsList = Array<VaultListVaultsItem>;
|
|
129
|
+
export interface VaultList {
|
|
130
|
+
vaults: VaultListVaultsList;
|
|
131
|
+
}
|
|
132
|
+
export interface UpdateVaultRequest {
|
|
133
|
+
id: string;
|
|
134
|
+
projectId?: string | undefined;
|
|
135
|
+
description?: string | null | undefined;
|
|
136
|
+
/** 1-63 lowercase letters, digits, hyphens, underscores or dots; must start with a letter or digit. */
|
|
137
|
+
name?: string | undefined;
|
|
138
|
+
}
|
|
139
|
+
export interface ErrorResponseContextItem {
|
|
140
|
+
keyword: string;
|
|
141
|
+
message: string;
|
|
142
|
+
params: unknown;
|
|
143
|
+
}
|
|
144
|
+
export type ErrorResponseContextList = Array<ErrorResponseContextItem>;
|
|
145
|
+
/** Structured data about the error for the caller, e.g. `candidates` for credential_ambiguous. Never contains secret values. */
|
|
146
|
+
export type ErrorResponseDetailsMap = { [key: string]: unknown | undefined };
|
|
147
|
+
/** An error response from the API */
|
|
148
|
+
export interface ErrorResponse {
|
|
149
|
+
/** Stable machine-readable reason, e.g. 'budget_exceeded' or 'profile_not_ready'. Branch on this instead of parsing the message. */
|
|
150
|
+
code?: string | undefined;
|
|
151
|
+
context?: ErrorResponseContextList | undefined;
|
|
152
|
+
/** Structured data about the error for the caller, e.g. `candidates` for credential_ambiguous. Never contains secret values. */
|
|
153
|
+
details?: ErrorResponseDetailsMap | undefined;
|
|
154
|
+
error?: string | undefined;
|
|
155
|
+
linkToDocs?: string | undefined;
|
|
156
|
+
message: string;
|
|
157
|
+
/** The request field that caused the error, if any. */
|
|
158
|
+
param?: string | undefined;
|
|
159
|
+
/** Seconds to wait before retrying. Also sent as the Retry-After header. */
|
|
160
|
+
retryAfterSeconds?: number | undefined;
|
|
161
|
+
/** Whether the same request can succeed later without changes. False means fix the request or the account first. */
|
|
162
|
+
retryable?: boolean | undefined;
|
|
163
|
+
/** Where a person turns on the refused feature, e.g. verifying the account. Pass it to your user. */
|
|
164
|
+
unlockUrl?: string | undefined;
|
|
165
|
+
}
|
|
166
|
+
export type CreateVaultError = BadRequest | Forbidden | Conflict | SteelOpError;
|
|
167
|
+
/** Create a Vault */
|
|
168
|
+
export const createVault: API.OperationMethod<
|
|
169
|
+
CreateVaultRequest,
|
|
170
|
+
Vault,
|
|
171
|
+
CreateVaultError,
|
|
172
|
+
SteelOpContext
|
|
173
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
174
|
+
input: __S(4, __c1, 0) as any as S.Schema<CreateVaultRequest>,
|
|
175
|
+
output: __S(8, __c2, 0) as any as S.Schema<Vault>,
|
|
176
|
+
errors: [BadRequest, Forbidden, Conflict],
|
|
177
|
+
serviceErrors: SteelServiceErrors,
|
|
178
|
+
protocol: SteelProtocol,
|
|
179
|
+
retry: Retry.Retry,
|
|
180
|
+
telemetry: TELEMETRY,
|
|
181
|
+
span: "CreateVault",
|
|
182
|
+
}));
|
|
183
|
+
|
|
184
|
+
export type DeleteVaultError = BadRequest | Forbidden | NotFound | Conflict | SteelOpError;
|
|
185
|
+
/** Delete an empty Vault Soft-delete a Vault. Returns 409 while it contains any live Secrets or credentials; move or delete them first. */
|
|
186
|
+
export const deleteVault: API.OperationMethod<
|
|
187
|
+
DeleteVaultRequest,
|
|
188
|
+
DeleteVaultResponse,
|
|
189
|
+
DeleteVaultError,
|
|
190
|
+
SteelOpContext
|
|
191
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
192
|
+
input: __S(12, __c3, 0) as any as S.Schema<DeleteVaultRequest>,
|
|
193
|
+
output: __S(13, __c3, 1) as any as S.Schema<DeleteVaultResponse>,
|
|
194
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
195
|
+
serviceErrors: SteelServiceErrors,
|
|
196
|
+
protocol: SteelProtocol,
|
|
197
|
+
retry: Retry.Retry,
|
|
198
|
+
telemetry: TELEMETRY,
|
|
199
|
+
span: "DeleteVault",
|
|
200
|
+
}));
|
|
201
|
+
|
|
202
|
+
export type GetVaultError = BadRequest | NotFound | SteelOpError;
|
|
203
|
+
/** Get a Vault */
|
|
204
|
+
export const getVault: API.OperationMethod<GetVaultRequest, Vault, GetVaultError, SteelOpContext> =
|
|
205
|
+
/*@__PURE__*/ API.make(() => ({
|
|
206
|
+
input: __S(16, __c4, 0) as any as S.Schema<GetVaultRequest>,
|
|
207
|
+
output: __S(8, __c2, 0) as any as S.Schema<Vault>,
|
|
208
|
+
errors: [BadRequest, NotFound],
|
|
209
|
+
serviceErrors: SteelServiceErrors,
|
|
210
|
+
protocol: SteelProtocol,
|
|
211
|
+
retry: Retry.Retry,
|
|
212
|
+
telemetry: TELEMETRY,
|
|
213
|
+
span: "GetVault",
|
|
214
|
+
}));
|
|
215
|
+
|
|
216
|
+
export type ListVaultsError = BadRequest | SteelOpError;
|
|
217
|
+
/** List Vaults */
|
|
218
|
+
export const listVaults: API.OperationMethod<
|
|
219
|
+
ListVaultsRequest,
|
|
220
|
+
VaultList,
|
|
221
|
+
ListVaultsError,
|
|
222
|
+
SteelOpContext
|
|
223
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
224
|
+
input: __S(20, __c5, 0) as any as S.Schema<ListVaultsRequest>,
|
|
225
|
+
output: __S(22, __c5, 2) as any as S.Schema<VaultList>,
|
|
226
|
+
errors: [BadRequest],
|
|
227
|
+
serviceErrors: SteelServiceErrors,
|
|
228
|
+
protocol: SteelProtocol,
|
|
229
|
+
retry: Retry.Retry,
|
|
230
|
+
telemetry: TELEMETRY,
|
|
231
|
+
span: "ListVaults",
|
|
232
|
+
}));
|
|
233
|
+
|
|
234
|
+
export type UpdateVaultError = BadRequest | Forbidden | NotFound | Conflict | SteelOpError;
|
|
235
|
+
/** Update a Vault */
|
|
236
|
+
export const updateVault: API.OperationMethod<
|
|
237
|
+
UpdateVaultRequest,
|
|
238
|
+
Vault,
|
|
239
|
+
UpdateVaultError,
|
|
240
|
+
SteelOpContext
|
|
241
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
242
|
+
input: __S(24, __c6, 0) as any as S.Schema<UpdateVaultRequest>,
|
|
243
|
+
output: __S(8, __c2, 0) as any as S.Schema<Vault>,
|
|
244
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
245
|
+
serviceErrors: SteelServiceErrors,
|
|
246
|
+
protocol: SteelProtocol,
|
|
247
|
+
retry: Retry.Retry,
|
|
248
|
+
telemetry: TELEMETRY,
|
|
249
|
+
span: "UpdateVault",
|
|
250
|
+
}));
|
|
251
|
+
|
|
252
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
253
|
+
function __c0(j: number): any {
|
|
254
|
+
switch (j) {
|
|
255
|
+
case 0:
|
|
256
|
+
return S.suspend(() =>
|
|
257
|
+
S.Struct({
|
|
258
|
+
keyword: S.String,
|
|
259
|
+
message: S.String,
|
|
260
|
+
params: S.Unknown,
|
|
261
|
+
}),
|
|
262
|
+
).annotate({ identifier: "ErrorResponseContextItem" });
|
|
263
|
+
case 1:
|
|
264
|
+
return S.Array(__S(0, __c0, 0));
|
|
265
|
+
case 2:
|
|
266
|
+
return S.Record(S.String, S.Unknown);
|
|
267
|
+
case 3:
|
|
268
|
+
return S.suspend(() =>
|
|
269
|
+
S.Struct({
|
|
270
|
+
code: S.optional(S.String),
|
|
271
|
+
context: S.optional(__S(1, __c0, 1)),
|
|
272
|
+
details: S.optional(__S(2, __c0, 2)),
|
|
273
|
+
error: S.optional(S.String),
|
|
274
|
+
linkToDocs: S.optional(S.String),
|
|
275
|
+
message: S.String,
|
|
276
|
+
param: S.optional(S.String),
|
|
277
|
+
retryAfterSeconds: S.optional(S.Number),
|
|
278
|
+
retryable: S.optional(S.Boolean),
|
|
279
|
+
unlockUrl: S.optional(S.String),
|
|
280
|
+
}),
|
|
281
|
+
).annotate({ identifier: "ErrorResponse" });
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
function __c1(j: number): any {
|
|
285
|
+
switch (j) {
|
|
286
|
+
case 0:
|
|
287
|
+
return S.suspend(() =>
|
|
288
|
+
S.Struct({
|
|
289
|
+
description: S.optional(S.NullOr(S.String)),
|
|
290
|
+
name: S.String,
|
|
291
|
+
projectId: S.optional(S.String),
|
|
292
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1/vaults", code: 200 })),
|
|
293
|
+
).annotate({ identifier: "CreateVaultRequest" });
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
function __c2(j: number): any {
|
|
297
|
+
switch (j) {
|
|
298
|
+
case 0:
|
|
299
|
+
return S.suspend(() =>
|
|
300
|
+
S.Struct({
|
|
301
|
+
createdAt: S.String,
|
|
302
|
+
description: S.NullOr(S.String),
|
|
303
|
+
id: S.String,
|
|
304
|
+
name: S.String,
|
|
305
|
+
projectId: S.String,
|
|
306
|
+
updatedAt: S.String,
|
|
307
|
+
}),
|
|
308
|
+
).annotate({ identifier: "Vault" });
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
function __c3(j: number): any {
|
|
312
|
+
switch (j) {
|
|
313
|
+
case 0:
|
|
314
|
+
return S.suspend(() =>
|
|
315
|
+
S.Struct({
|
|
316
|
+
id: S.String.pipe(T.Label()),
|
|
317
|
+
projectId: S.optional(S.String.pipe(T.Query())),
|
|
318
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/v1/vaults/{id}", code: 200 })),
|
|
319
|
+
).annotate({ identifier: "DeleteVaultRequest" });
|
|
320
|
+
case 1:
|
|
321
|
+
return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteVaultResponse" });
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
function __c4(j: number): any {
|
|
325
|
+
switch (j) {
|
|
326
|
+
case 0:
|
|
327
|
+
return S.suspend(() =>
|
|
328
|
+
S.Struct({
|
|
329
|
+
id: S.String.pipe(T.Label()),
|
|
330
|
+
projectId: S.optional(S.String.pipe(T.Query())),
|
|
331
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/vaults/{id}", code: 200 })),
|
|
332
|
+
).annotate({ identifier: "GetVaultRequest" });
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
function __c5(j: number): any {
|
|
336
|
+
switch (j) {
|
|
337
|
+
case 0:
|
|
338
|
+
return S.suspend(() =>
|
|
339
|
+
S.Struct({
|
|
340
|
+
projectId: S.optional(S.String.pipe(T.Query())),
|
|
341
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/vaults", code: 200 })),
|
|
342
|
+
).annotate({ identifier: "ListVaultsRequest" });
|
|
343
|
+
case 1:
|
|
344
|
+
return S.Array(__S(8, __c2, 0));
|
|
345
|
+
case 2:
|
|
346
|
+
return S.suspend(() =>
|
|
347
|
+
S.Struct({
|
|
348
|
+
vaults: __S(21, __c5, 1),
|
|
349
|
+
}),
|
|
350
|
+
).annotate({ identifier: "VaultList" });
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
function __c6(j: number): any {
|
|
354
|
+
switch (j) {
|
|
355
|
+
case 0:
|
|
356
|
+
return S.suspend(() =>
|
|
357
|
+
S.Struct({
|
|
358
|
+
id: S.String.pipe(T.Label()),
|
|
359
|
+
projectId: S.optional(S.String.pipe(T.Query())),
|
|
360
|
+
description: S.optional(S.NullOr(S.String)),
|
|
361
|
+
name: S.optional(S.String),
|
|
362
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/v1/vaults/{id}", code: 200 })),
|
|
363
|
+
).annotate({ identifier: "UpdateVaultRequest" });
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
367
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
368
|
+
return (__s[i] ??= __L.at(f, j));
|
|
369
|
+
}
|
package/lib/index.lazy.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from "./credentials.js";
|
|
2
|
-
export * from "./errors.js";
|
|
3
|
-
export * as T from "./traits.js";
|
|
4
|
-
export { SteelProtocol } from "./protocol.js";
|
|
5
|
-
export { paginateCursor } from "./pagination.js";
|
|
6
|
-
export * as Retry from "./retry.js";
|
|
7
|
-
export * from "./services.lazy/index.js";
|
package/lib/index.lazy.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,aAAa,EAA0C,MAAM,eAAe,CAAC;AACtF,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,cAAc,qBAAqB,CAAC"}
|