@vercel/sdk 14.0.0-canary.5 → 14.0.0-canary.6
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 +0 -11
- package/docs/sdks/projects/README.md +8 -12
- package/esm/funcs/projectsPauseProject.d.ts +2 -2
- package/esm/funcs/projectsPauseProject.d.ts.map +1 -1
- package/esm/funcs/projectsPauseProject.js +4 -3
- package/esm/funcs/projectsPauseProject.js.map +1 -1
- package/esm/funcs/projectsUnpauseProject.d.ts +2 -2
- package/esm/funcs/projectsUnpauseProject.d.ts.map +1 -1
- package/esm/funcs/projectsUnpauseProject.js +4 -3
- package/esm/funcs/projectsUnpauseProject.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/models/operations/createproject.d.ts +91 -9
- package/esm/models/operations/createproject.d.ts.map +1 -1
- package/esm/models/operations/createproject.js +55 -3
- package/esm/models/operations/createproject.js.map +1 -1
- package/esm/models/operations/createprojectenv.d.ts +6 -6
- package/esm/models/operations/createprojectenv.js +2 -2
- package/esm/models/operations/createprojectenv.js.map +1 -1
- package/esm/models/operations/createwebhook.d.ts +12 -6
- package/esm/models/operations/createwebhook.d.ts.map +1 -1
- package/esm/models/operations/createwebhook.js +4 -2
- package/esm/models/operations/createwebhook.js.map +1 -1
- package/esm/models/operations/editprojectenv.d.ts +3 -3
- package/esm/models/operations/editprojectenv.js +1 -1
- package/esm/models/operations/editprojectenv.js.map +1 -1
- package/esm/models/operations/getprojects.d.ts +82 -0
- package/esm/models/operations/getprojects.d.ts.map +1 -1
- package/esm/models/operations/getprojects.js +52 -0
- package/esm/models/operations/getprojects.js.map +1 -1
- package/esm/models/operations/getwebhook.d.ts +6 -3
- package/esm/models/operations/getwebhook.d.ts.map +1 -1
- package/esm/models/operations/getwebhook.js +2 -1
- package/esm/models/operations/getwebhook.js.map +1 -1
- package/esm/models/operations/getwebhooks.d.ts +12 -6
- package/esm/models/operations/getwebhooks.d.ts.map +1 -1
- package/esm/models/operations/getwebhooks.js +4 -2
- package/esm/models/operations/getwebhooks.js.map +1 -1
- package/esm/models/operations/pauseproject.d.ts +0 -32
- package/esm/models/operations/pauseproject.d.ts.map +1 -1
- package/esm/models/operations/pauseproject.js +0 -25
- package/esm/models/operations/pauseproject.js.map +1 -1
- package/esm/models/operations/removeprojectenv.d.ts +9 -9
- package/esm/models/operations/removeprojectenv.js +3 -3
- package/esm/models/operations/removeprojectenv.js.map +1 -1
- package/esm/models/operations/unpauseproject.d.ts +0 -32
- package/esm/models/operations/unpauseproject.d.ts.map +1 -1
- package/esm/models/operations/unpauseproject.js +0 -25
- package/esm/models/operations/unpauseproject.js.map +1 -1
- package/esm/models/operations/updateproject.d.ts +91 -9
- package/esm/models/operations/updateproject.d.ts.map +1 -1
- package/esm/models/operations/updateproject.js +55 -3
- package/esm/models/operations/updateproject.js.map +1 -1
- package/esm/models/operations/updateprojectdatacache.d.ts +82 -0
- package/esm/models/operations/updateprojectdatacache.d.ts.map +1 -1
- package/esm/models/operations/updateprojectdatacache.js +51 -0
- package/esm/models/operations/updateprojectdatacache.js.map +1 -1
- package/esm/sdk/projects.d.ts +4 -4
- package/esm/sdk/projects.d.ts.map +1 -1
- package/esm/sdk/projects.js.map +1 -1
- package/esm/sdk/sdk.d.ts +0 -3
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +0 -5
- package/esm/sdk/sdk.js.map +1 -1
- package/package.json +9 -6
- package/src/funcs/projectsPauseProject.ts +5 -6
- package/src/funcs/projectsUnpauseProject.ts +5 -6
- package/src/lib/config.ts +3 -3
- package/src/models/operations/createproject.ts +133 -3
- package/src/models/operations/createprojectenv.ts +2 -2
- package/src/models/operations/createwebhook.ts +4 -2
- package/src/models/operations/editprojectenv.ts +1 -1
- package/src/models/operations/getprojects.ts +130 -0
- package/src/models/operations/getwebhook.ts +2 -1
- package/src/models/operations/getwebhooks.ts +4 -2
- package/src/models/operations/pauseproject.ts +0 -55
- package/src/models/operations/removeprojectenv.ts +3 -3
- package/src/models/operations/unpauseproject.ts +0 -55
- package/src/models/operations/updateproject.ts +133 -3
- package/src/models/operations/updateprojectdatacache.ts +125 -0
- package/src/sdk/projects.ts +4 -10
- package/src/sdk/sdk.ts +0 -6
- package/LICENSE +0 -202
- package/docs/sdks/secrets/README.md +0 -331
- package/esm/funcs/secretsCreateSecret.d.ts +0 -15
- package/esm/funcs/secretsCreateSecret.d.ts.map +0 -1
- package/esm/funcs/secretsCreateSecret.js +0 -74
- package/esm/funcs/secretsCreateSecret.js.map +0 -1
- package/esm/funcs/secretsDeleteSecret.d.ts +0 -15
- package/esm/funcs/secretsDeleteSecret.d.ts.map +0 -1
- package/esm/funcs/secretsDeleteSecret.js +0 -79
- package/esm/funcs/secretsDeleteSecret.js.map +0 -1
- package/esm/funcs/secretsGetSecret.d.ts +0 -15
- package/esm/funcs/secretsGetSecret.d.ts.map +0 -1
- package/esm/funcs/secretsGetSecret.js +0 -80
- package/esm/funcs/secretsGetSecret.js.map +0 -1
- package/esm/funcs/secretsRenameSecret.d.ts +0 -15
- package/esm/funcs/secretsRenameSecret.d.ts.map +0 -1
- package/esm/funcs/secretsRenameSecret.js +0 -80
- package/esm/funcs/secretsRenameSecret.js.map +0 -1
- package/esm/models/operations/createsecret.d.ts +0 -192
- package/esm/models/operations/createsecret.d.ts.map +0 -1
- package/esm/models/operations/createsecret.js +0 -136
- package/esm/models/operations/createsecret.js.map +0 -1
- package/esm/models/operations/deletesecret.d.ts +0 -74
- package/esm/models/operations/deletesecret.d.ts.map +0 -1
- package/esm/models/operations/deletesecret.js +0 -51
- package/esm/models/operations/deletesecret.js.map +0 -1
- package/esm/models/operations/getsecret.d.ts +0 -144
- package/esm/models/operations/getsecret.d.ts.map +0 -1
- package/esm/models/operations/getsecret.js +0 -87
- package/esm/models/operations/getsecret.js.map +0 -1
- package/esm/models/operations/renamesecret.d.ts +0 -95
- package/esm/models/operations/renamesecret.d.ts.map +0 -1
- package/esm/models/operations/renamesecret.js +0 -83
- package/esm/models/operations/renamesecret.js.map +0 -1
- package/esm/sdk/secrets.d.ts +0 -36
- package/esm/sdk/secrets.d.ts.map +0 -1
- package/esm/sdk/secrets.js +0 -48
- package/esm/sdk/secrets.js.map +0 -1
- package/src/funcs/secretsCreateSecret.ts +0 -134
- package/src/funcs/secretsDeleteSecret.ts +0 -140
- package/src/funcs/secretsGetSecret.ts +0 -141
- package/src/funcs/secretsRenameSecret.ts +0 -141
- package/src/models/operations/createsecret.ts +0 -304
- package/src/models/operations/deletesecret.ts +0 -119
- package/src/models/operations/getsecret.ts +0 -205
- package/src/models/operations/renamesecret.ts +0 -170
- package/src/sdk/secrets.ts +0 -96
|
@@ -1,304 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
-
|
|
9
|
-
export type CreateSecretRequestBody = {
|
|
10
|
-
/**
|
|
11
|
-
* The name of the secret (max 100 characters).
|
|
12
|
-
*/
|
|
13
|
-
name: string;
|
|
14
|
-
/**
|
|
15
|
-
* The value of the new secret.
|
|
16
|
-
*/
|
|
17
|
-
value: string;
|
|
18
|
-
/**
|
|
19
|
-
* Whether the secret value can be decrypted after it has been created.
|
|
20
|
-
*/
|
|
21
|
-
decryptable?: boolean | undefined;
|
|
22
|
-
/**
|
|
23
|
-
* Associate a secret to a project.
|
|
24
|
-
*
|
|
25
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
26
|
-
*/
|
|
27
|
-
projectId?: string | undefined;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export type CreateSecretRequest = {
|
|
31
|
-
/**
|
|
32
|
-
* The Team identifier to perform the request on behalf of.
|
|
33
|
-
*/
|
|
34
|
-
teamId?: string | undefined;
|
|
35
|
-
/**
|
|
36
|
-
* The Team slug to perform the request on behalf of.
|
|
37
|
-
*/
|
|
38
|
-
slug?: string | undefined;
|
|
39
|
-
requestBody?: CreateSecretRequestBody | undefined;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export const CreateSecretType = {
|
|
43
|
-
Buffer: "Buffer",
|
|
44
|
-
} as const;
|
|
45
|
-
export type CreateSecretType = ClosedEnum<typeof CreateSecretType>;
|
|
46
|
-
|
|
47
|
-
export type CreateSecretValue = {
|
|
48
|
-
type?: CreateSecretType | undefined;
|
|
49
|
-
data?: Array<number> | undefined;
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Successful response showing the created secret.
|
|
54
|
-
*/
|
|
55
|
-
export type CreateSecretResponseBody = {
|
|
56
|
-
value: CreateSecretValue;
|
|
57
|
-
/**
|
|
58
|
-
* The date when the secret was created.
|
|
59
|
-
*/
|
|
60
|
-
created: Date;
|
|
61
|
-
/**
|
|
62
|
-
* The name of the secret.
|
|
63
|
-
*/
|
|
64
|
-
name: string;
|
|
65
|
-
/**
|
|
66
|
-
* The unique identifier of the team the secret was created for.
|
|
67
|
-
*/
|
|
68
|
-
teamId?: string | null | undefined;
|
|
69
|
-
/**
|
|
70
|
-
* The unique identifier of the secret.
|
|
71
|
-
*/
|
|
72
|
-
uid: string;
|
|
73
|
-
/**
|
|
74
|
-
* The unique identifier of the user who created the secret.
|
|
75
|
-
*/
|
|
76
|
-
userId?: string | undefined;
|
|
77
|
-
/**
|
|
78
|
-
* Timestamp for when the secret was created.
|
|
79
|
-
*/
|
|
80
|
-
createdAt?: number | undefined;
|
|
81
|
-
/**
|
|
82
|
-
* The unique identifier of the project which the secret belongs to.
|
|
83
|
-
*/
|
|
84
|
-
projectId?: string | undefined;
|
|
85
|
-
/**
|
|
86
|
-
* Indicates whether the secret value can be decrypted after it has been created.
|
|
87
|
-
*/
|
|
88
|
-
decryptable?: boolean | undefined;
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
/** @internal */
|
|
92
|
-
export const CreateSecretRequestBody$inboundSchema: z.ZodType<
|
|
93
|
-
CreateSecretRequestBody,
|
|
94
|
-
z.ZodTypeDef,
|
|
95
|
-
unknown
|
|
96
|
-
> = z.object({
|
|
97
|
-
name: z.string(),
|
|
98
|
-
value: z.string(),
|
|
99
|
-
decryptable: z.boolean().optional(),
|
|
100
|
-
projectId: z.string().optional(),
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
/** @internal */
|
|
104
|
-
export type CreateSecretRequestBody$Outbound = {
|
|
105
|
-
name: string;
|
|
106
|
-
value: string;
|
|
107
|
-
decryptable?: boolean | undefined;
|
|
108
|
-
projectId?: string | undefined;
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
/** @internal */
|
|
112
|
-
export const CreateSecretRequestBody$outboundSchema: z.ZodType<
|
|
113
|
-
CreateSecretRequestBody$Outbound,
|
|
114
|
-
z.ZodTypeDef,
|
|
115
|
-
CreateSecretRequestBody
|
|
116
|
-
> = z.object({
|
|
117
|
-
name: z.string(),
|
|
118
|
-
value: z.string(),
|
|
119
|
-
decryptable: z.boolean().optional(),
|
|
120
|
-
projectId: z.string().optional(),
|
|
121
|
-
});
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* @internal
|
|
125
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
126
|
-
*/
|
|
127
|
-
export namespace CreateSecretRequestBody$ {
|
|
128
|
-
/** @deprecated use `CreateSecretRequestBody$inboundSchema` instead. */
|
|
129
|
-
export const inboundSchema = CreateSecretRequestBody$inboundSchema;
|
|
130
|
-
/** @deprecated use `CreateSecretRequestBody$outboundSchema` instead. */
|
|
131
|
-
export const outboundSchema = CreateSecretRequestBody$outboundSchema;
|
|
132
|
-
/** @deprecated use `CreateSecretRequestBody$Outbound` instead. */
|
|
133
|
-
export type Outbound = CreateSecretRequestBody$Outbound;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
/** @internal */
|
|
137
|
-
export const CreateSecretRequest$inboundSchema: z.ZodType<
|
|
138
|
-
CreateSecretRequest,
|
|
139
|
-
z.ZodTypeDef,
|
|
140
|
-
unknown
|
|
141
|
-
> = z.object({
|
|
142
|
-
teamId: z.string().optional(),
|
|
143
|
-
slug: z.string().optional(),
|
|
144
|
-
RequestBody: z.lazy(() => CreateSecretRequestBody$inboundSchema).optional(),
|
|
145
|
-
}).transform((v) => {
|
|
146
|
-
return remap$(v, {
|
|
147
|
-
"RequestBody": "requestBody",
|
|
148
|
-
});
|
|
149
|
-
});
|
|
150
|
-
|
|
151
|
-
/** @internal */
|
|
152
|
-
export type CreateSecretRequest$Outbound = {
|
|
153
|
-
teamId?: string | undefined;
|
|
154
|
-
slug?: string | undefined;
|
|
155
|
-
RequestBody?: CreateSecretRequestBody$Outbound | undefined;
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
/** @internal */
|
|
159
|
-
export const CreateSecretRequest$outboundSchema: z.ZodType<
|
|
160
|
-
CreateSecretRequest$Outbound,
|
|
161
|
-
z.ZodTypeDef,
|
|
162
|
-
CreateSecretRequest
|
|
163
|
-
> = z.object({
|
|
164
|
-
teamId: z.string().optional(),
|
|
165
|
-
slug: z.string().optional(),
|
|
166
|
-
requestBody: z.lazy(() => CreateSecretRequestBody$outboundSchema).optional(),
|
|
167
|
-
}).transform((v) => {
|
|
168
|
-
return remap$(v, {
|
|
169
|
-
requestBody: "RequestBody",
|
|
170
|
-
});
|
|
171
|
-
});
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* @internal
|
|
175
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
176
|
-
*/
|
|
177
|
-
export namespace CreateSecretRequest$ {
|
|
178
|
-
/** @deprecated use `CreateSecretRequest$inboundSchema` instead. */
|
|
179
|
-
export const inboundSchema = CreateSecretRequest$inboundSchema;
|
|
180
|
-
/** @deprecated use `CreateSecretRequest$outboundSchema` instead. */
|
|
181
|
-
export const outboundSchema = CreateSecretRequest$outboundSchema;
|
|
182
|
-
/** @deprecated use `CreateSecretRequest$Outbound` instead. */
|
|
183
|
-
export type Outbound = CreateSecretRequest$Outbound;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
/** @internal */
|
|
187
|
-
export const CreateSecretType$inboundSchema: z.ZodNativeEnum<
|
|
188
|
-
typeof CreateSecretType
|
|
189
|
-
> = z.nativeEnum(CreateSecretType);
|
|
190
|
-
|
|
191
|
-
/** @internal */
|
|
192
|
-
export const CreateSecretType$outboundSchema: z.ZodNativeEnum<
|
|
193
|
-
typeof CreateSecretType
|
|
194
|
-
> = CreateSecretType$inboundSchema;
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* @internal
|
|
198
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
199
|
-
*/
|
|
200
|
-
export namespace CreateSecretType$ {
|
|
201
|
-
/** @deprecated use `CreateSecretType$inboundSchema` instead. */
|
|
202
|
-
export const inboundSchema = CreateSecretType$inboundSchema;
|
|
203
|
-
/** @deprecated use `CreateSecretType$outboundSchema` instead. */
|
|
204
|
-
export const outboundSchema = CreateSecretType$outboundSchema;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
/** @internal */
|
|
208
|
-
export const CreateSecretValue$inboundSchema: z.ZodType<
|
|
209
|
-
CreateSecretValue,
|
|
210
|
-
z.ZodTypeDef,
|
|
211
|
-
unknown
|
|
212
|
-
> = z.object({
|
|
213
|
-
type: CreateSecretType$inboundSchema.optional(),
|
|
214
|
-
data: z.array(z.number()).optional(),
|
|
215
|
-
});
|
|
216
|
-
|
|
217
|
-
/** @internal */
|
|
218
|
-
export type CreateSecretValue$Outbound = {
|
|
219
|
-
type?: string | undefined;
|
|
220
|
-
data?: Array<number> | undefined;
|
|
221
|
-
};
|
|
222
|
-
|
|
223
|
-
/** @internal */
|
|
224
|
-
export const CreateSecretValue$outboundSchema: z.ZodType<
|
|
225
|
-
CreateSecretValue$Outbound,
|
|
226
|
-
z.ZodTypeDef,
|
|
227
|
-
CreateSecretValue
|
|
228
|
-
> = z.object({
|
|
229
|
-
type: CreateSecretType$outboundSchema.optional(),
|
|
230
|
-
data: z.array(z.number()).optional(),
|
|
231
|
-
});
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* @internal
|
|
235
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
236
|
-
*/
|
|
237
|
-
export namespace CreateSecretValue$ {
|
|
238
|
-
/** @deprecated use `CreateSecretValue$inboundSchema` instead. */
|
|
239
|
-
export const inboundSchema = CreateSecretValue$inboundSchema;
|
|
240
|
-
/** @deprecated use `CreateSecretValue$outboundSchema` instead. */
|
|
241
|
-
export const outboundSchema = CreateSecretValue$outboundSchema;
|
|
242
|
-
/** @deprecated use `CreateSecretValue$Outbound` instead. */
|
|
243
|
-
export type Outbound = CreateSecretValue$Outbound;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
/** @internal */
|
|
247
|
-
export const CreateSecretResponseBody$inboundSchema: z.ZodType<
|
|
248
|
-
CreateSecretResponseBody,
|
|
249
|
-
z.ZodTypeDef,
|
|
250
|
-
unknown
|
|
251
|
-
> = z.object({
|
|
252
|
-
value: z.lazy(() => CreateSecretValue$inboundSchema),
|
|
253
|
-
created: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
254
|
-
name: z.string(),
|
|
255
|
-
teamId: z.nullable(z.string()).optional(),
|
|
256
|
-
uid: z.string(),
|
|
257
|
-
userId: z.string().optional(),
|
|
258
|
-
createdAt: z.number().optional(),
|
|
259
|
-
projectId: z.string().optional(),
|
|
260
|
-
decryptable: z.boolean().optional(),
|
|
261
|
-
});
|
|
262
|
-
|
|
263
|
-
/** @internal */
|
|
264
|
-
export type CreateSecretResponseBody$Outbound = {
|
|
265
|
-
value: CreateSecretValue$Outbound;
|
|
266
|
-
created: string;
|
|
267
|
-
name: string;
|
|
268
|
-
teamId?: string | null | undefined;
|
|
269
|
-
uid: string;
|
|
270
|
-
userId?: string | undefined;
|
|
271
|
-
createdAt?: number | undefined;
|
|
272
|
-
projectId?: string | undefined;
|
|
273
|
-
decryptable?: boolean | undefined;
|
|
274
|
-
};
|
|
275
|
-
|
|
276
|
-
/** @internal */
|
|
277
|
-
export const CreateSecretResponseBody$outboundSchema: z.ZodType<
|
|
278
|
-
CreateSecretResponseBody$Outbound,
|
|
279
|
-
z.ZodTypeDef,
|
|
280
|
-
CreateSecretResponseBody
|
|
281
|
-
> = z.object({
|
|
282
|
-
value: z.lazy(() => CreateSecretValue$outboundSchema),
|
|
283
|
-
created: z.date().transform(v => v.toISOString()),
|
|
284
|
-
name: z.string(),
|
|
285
|
-
teamId: z.nullable(z.string()).optional(),
|
|
286
|
-
uid: z.string(),
|
|
287
|
-
userId: z.string().optional(),
|
|
288
|
-
createdAt: z.number().optional(),
|
|
289
|
-
projectId: z.string().optional(),
|
|
290
|
-
decryptable: z.boolean().optional(),
|
|
291
|
-
});
|
|
292
|
-
|
|
293
|
-
/**
|
|
294
|
-
* @internal
|
|
295
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
296
|
-
*/
|
|
297
|
-
export namespace CreateSecretResponseBody$ {
|
|
298
|
-
/** @deprecated use `CreateSecretResponseBody$inboundSchema` instead. */
|
|
299
|
-
export const inboundSchema = CreateSecretResponseBody$inboundSchema;
|
|
300
|
-
/** @deprecated use `CreateSecretResponseBody$outboundSchema` instead. */
|
|
301
|
-
export const outboundSchema = CreateSecretResponseBody$outboundSchema;
|
|
302
|
-
/** @deprecated use `CreateSecretResponseBody$Outbound` instead. */
|
|
303
|
-
export type Outbound = CreateSecretResponseBody$Outbound;
|
|
304
|
-
}
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
|
|
7
|
-
export type DeleteSecretRequest = {
|
|
8
|
-
/**
|
|
9
|
-
* The name or the unique identifier to which the secret belongs to.
|
|
10
|
-
*/
|
|
11
|
-
idOrName: string;
|
|
12
|
-
/**
|
|
13
|
-
* The Team identifier to perform the request on behalf of.
|
|
14
|
-
*/
|
|
15
|
-
teamId?: string | undefined;
|
|
16
|
-
/**
|
|
17
|
-
* The Team slug to perform the request on behalf of.
|
|
18
|
-
*/
|
|
19
|
-
slug?: string | undefined;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export type DeleteSecretResponseBody = {
|
|
23
|
-
/**
|
|
24
|
-
* The unique identifier of the deleted secret.
|
|
25
|
-
*/
|
|
26
|
-
uid: string;
|
|
27
|
-
/**
|
|
28
|
-
* The name of the deleted secret.
|
|
29
|
-
*/
|
|
30
|
-
name: string;
|
|
31
|
-
/**
|
|
32
|
-
* The date when the secret was created.
|
|
33
|
-
*/
|
|
34
|
-
created: number;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
/** @internal */
|
|
38
|
-
export const DeleteSecretRequest$inboundSchema: z.ZodType<
|
|
39
|
-
DeleteSecretRequest,
|
|
40
|
-
z.ZodTypeDef,
|
|
41
|
-
unknown
|
|
42
|
-
> = z.object({
|
|
43
|
-
idOrName: z.string(),
|
|
44
|
-
teamId: z.string().optional(),
|
|
45
|
-
slug: z.string().optional(),
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
/** @internal */
|
|
49
|
-
export type DeleteSecretRequest$Outbound = {
|
|
50
|
-
idOrName: string;
|
|
51
|
-
teamId?: string | undefined;
|
|
52
|
-
slug?: string | undefined;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
/** @internal */
|
|
56
|
-
export const DeleteSecretRequest$outboundSchema: z.ZodType<
|
|
57
|
-
DeleteSecretRequest$Outbound,
|
|
58
|
-
z.ZodTypeDef,
|
|
59
|
-
DeleteSecretRequest
|
|
60
|
-
> = z.object({
|
|
61
|
-
idOrName: z.string(),
|
|
62
|
-
teamId: z.string().optional(),
|
|
63
|
-
slug: z.string().optional(),
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* @internal
|
|
68
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
69
|
-
*/
|
|
70
|
-
export namespace DeleteSecretRequest$ {
|
|
71
|
-
/** @deprecated use `DeleteSecretRequest$inboundSchema` instead. */
|
|
72
|
-
export const inboundSchema = DeleteSecretRequest$inboundSchema;
|
|
73
|
-
/** @deprecated use `DeleteSecretRequest$outboundSchema` instead. */
|
|
74
|
-
export const outboundSchema = DeleteSecretRequest$outboundSchema;
|
|
75
|
-
/** @deprecated use `DeleteSecretRequest$Outbound` instead. */
|
|
76
|
-
export type Outbound = DeleteSecretRequest$Outbound;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/** @internal */
|
|
80
|
-
export const DeleteSecretResponseBody$inboundSchema: z.ZodType<
|
|
81
|
-
DeleteSecretResponseBody,
|
|
82
|
-
z.ZodTypeDef,
|
|
83
|
-
unknown
|
|
84
|
-
> = z.object({
|
|
85
|
-
uid: z.string(),
|
|
86
|
-
name: z.string(),
|
|
87
|
-
created: z.number(),
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
/** @internal */
|
|
91
|
-
export type DeleteSecretResponseBody$Outbound = {
|
|
92
|
-
uid: string;
|
|
93
|
-
name: string;
|
|
94
|
-
created: number;
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
/** @internal */
|
|
98
|
-
export const DeleteSecretResponseBody$outboundSchema: z.ZodType<
|
|
99
|
-
DeleteSecretResponseBody$Outbound,
|
|
100
|
-
z.ZodTypeDef,
|
|
101
|
-
DeleteSecretResponseBody
|
|
102
|
-
> = z.object({
|
|
103
|
-
uid: z.string(),
|
|
104
|
-
name: z.string(),
|
|
105
|
-
created: z.number(),
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* @internal
|
|
110
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
111
|
-
*/
|
|
112
|
-
export namespace DeleteSecretResponseBody$ {
|
|
113
|
-
/** @deprecated use `DeleteSecretResponseBody$inboundSchema` instead. */
|
|
114
|
-
export const inboundSchema = DeleteSecretResponseBody$inboundSchema;
|
|
115
|
-
/** @deprecated use `DeleteSecretResponseBody$outboundSchema` instead. */
|
|
116
|
-
export const outboundSchema = DeleteSecretResponseBody$outboundSchema;
|
|
117
|
-
/** @deprecated use `DeleteSecretResponseBody$Outbound` instead. */
|
|
118
|
-
export type Outbound = DeleteSecretResponseBody$Outbound;
|
|
119
|
-
}
|
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Whether to try to decrypt the value of the secret. Only works if `decryptable` has been set to `true` when the secret was created.
|
|
10
|
-
*/
|
|
11
|
-
export const QueryParamDecrypt = {
|
|
12
|
-
True: "true",
|
|
13
|
-
False: "false",
|
|
14
|
-
} as const;
|
|
15
|
-
/**
|
|
16
|
-
* Whether to try to decrypt the value of the secret. Only works if `decryptable` has been set to `true` when the secret was created.
|
|
17
|
-
*/
|
|
18
|
-
export type QueryParamDecrypt = ClosedEnum<typeof QueryParamDecrypt>;
|
|
19
|
-
|
|
20
|
-
export type GetSecretRequest = {
|
|
21
|
-
/**
|
|
22
|
-
* The name or the unique identifier to which the secret belongs to.
|
|
23
|
-
*/
|
|
24
|
-
idOrName: string;
|
|
25
|
-
/**
|
|
26
|
-
* Whether to try to decrypt the value of the secret. Only works if `decryptable` has been set to `true` when the secret was created.
|
|
27
|
-
*/
|
|
28
|
-
decrypt?: QueryParamDecrypt | undefined;
|
|
29
|
-
/**
|
|
30
|
-
* The Team identifier to perform the request on behalf of.
|
|
31
|
-
*/
|
|
32
|
-
teamId?: string | undefined;
|
|
33
|
-
/**
|
|
34
|
-
* The Team slug to perform the request on behalf of.
|
|
35
|
-
*/
|
|
36
|
-
slug?: string | undefined;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Data representing a secret.
|
|
41
|
-
*/
|
|
42
|
-
export type GetSecretResponseBody = {
|
|
43
|
-
/**
|
|
44
|
-
* The date when the secret was created.
|
|
45
|
-
*/
|
|
46
|
-
created: Date;
|
|
47
|
-
/**
|
|
48
|
-
* The name of the secret.
|
|
49
|
-
*/
|
|
50
|
-
name: string;
|
|
51
|
-
/**
|
|
52
|
-
* The unique identifier of the team the secret was created for.
|
|
53
|
-
*/
|
|
54
|
-
teamId?: string | null | undefined;
|
|
55
|
-
/**
|
|
56
|
-
* The unique identifier of the secret.
|
|
57
|
-
*/
|
|
58
|
-
uid: string;
|
|
59
|
-
/**
|
|
60
|
-
* The unique identifier of the user who created the secret.
|
|
61
|
-
*/
|
|
62
|
-
userId?: string | undefined;
|
|
63
|
-
/**
|
|
64
|
-
* The value of the secret.
|
|
65
|
-
*/
|
|
66
|
-
value?: string | undefined;
|
|
67
|
-
/**
|
|
68
|
-
* Timestamp for when the secret was created.
|
|
69
|
-
*/
|
|
70
|
-
createdAt?: number | undefined;
|
|
71
|
-
/**
|
|
72
|
-
* The unique identifier of the project which the secret belongs to.
|
|
73
|
-
*/
|
|
74
|
-
projectId?: string | undefined;
|
|
75
|
-
/**
|
|
76
|
-
* Indicates whether the secret value can be decrypted after it has been created.
|
|
77
|
-
*/
|
|
78
|
-
decryptable?: boolean | undefined;
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
/** @internal */
|
|
82
|
-
export const QueryParamDecrypt$inboundSchema: z.ZodNativeEnum<
|
|
83
|
-
typeof QueryParamDecrypt
|
|
84
|
-
> = z.nativeEnum(QueryParamDecrypt);
|
|
85
|
-
|
|
86
|
-
/** @internal */
|
|
87
|
-
export const QueryParamDecrypt$outboundSchema: z.ZodNativeEnum<
|
|
88
|
-
typeof QueryParamDecrypt
|
|
89
|
-
> = QueryParamDecrypt$inboundSchema;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* @internal
|
|
93
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
94
|
-
*/
|
|
95
|
-
export namespace QueryParamDecrypt$ {
|
|
96
|
-
/** @deprecated use `QueryParamDecrypt$inboundSchema` instead. */
|
|
97
|
-
export const inboundSchema = QueryParamDecrypt$inboundSchema;
|
|
98
|
-
/** @deprecated use `QueryParamDecrypt$outboundSchema` instead. */
|
|
99
|
-
export const outboundSchema = QueryParamDecrypt$outboundSchema;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/** @internal */
|
|
103
|
-
export const GetSecretRequest$inboundSchema: z.ZodType<
|
|
104
|
-
GetSecretRequest,
|
|
105
|
-
z.ZodTypeDef,
|
|
106
|
-
unknown
|
|
107
|
-
> = z.object({
|
|
108
|
-
idOrName: z.string(),
|
|
109
|
-
decrypt: QueryParamDecrypt$inboundSchema.optional(),
|
|
110
|
-
teamId: z.string().optional(),
|
|
111
|
-
slug: z.string().optional(),
|
|
112
|
-
});
|
|
113
|
-
|
|
114
|
-
/** @internal */
|
|
115
|
-
export type GetSecretRequest$Outbound = {
|
|
116
|
-
idOrName: string;
|
|
117
|
-
decrypt?: string | undefined;
|
|
118
|
-
teamId?: string | undefined;
|
|
119
|
-
slug?: string | undefined;
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
/** @internal */
|
|
123
|
-
export const GetSecretRequest$outboundSchema: z.ZodType<
|
|
124
|
-
GetSecretRequest$Outbound,
|
|
125
|
-
z.ZodTypeDef,
|
|
126
|
-
GetSecretRequest
|
|
127
|
-
> = z.object({
|
|
128
|
-
idOrName: z.string(),
|
|
129
|
-
decrypt: QueryParamDecrypt$outboundSchema.optional(),
|
|
130
|
-
teamId: z.string().optional(),
|
|
131
|
-
slug: z.string().optional(),
|
|
132
|
-
});
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* @internal
|
|
136
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
137
|
-
*/
|
|
138
|
-
export namespace GetSecretRequest$ {
|
|
139
|
-
/** @deprecated use `GetSecretRequest$inboundSchema` instead. */
|
|
140
|
-
export const inboundSchema = GetSecretRequest$inboundSchema;
|
|
141
|
-
/** @deprecated use `GetSecretRequest$outboundSchema` instead. */
|
|
142
|
-
export const outboundSchema = GetSecretRequest$outboundSchema;
|
|
143
|
-
/** @deprecated use `GetSecretRequest$Outbound` instead. */
|
|
144
|
-
export type Outbound = GetSecretRequest$Outbound;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/** @internal */
|
|
148
|
-
export const GetSecretResponseBody$inboundSchema: z.ZodType<
|
|
149
|
-
GetSecretResponseBody,
|
|
150
|
-
z.ZodTypeDef,
|
|
151
|
-
unknown
|
|
152
|
-
> = z.object({
|
|
153
|
-
created: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
154
|
-
name: z.string(),
|
|
155
|
-
teamId: z.nullable(z.string()).optional(),
|
|
156
|
-
uid: z.string(),
|
|
157
|
-
userId: z.string().optional(),
|
|
158
|
-
value: z.string().optional(),
|
|
159
|
-
createdAt: z.number().optional(),
|
|
160
|
-
projectId: z.string().optional(),
|
|
161
|
-
decryptable: z.boolean().optional(),
|
|
162
|
-
});
|
|
163
|
-
|
|
164
|
-
/** @internal */
|
|
165
|
-
export type GetSecretResponseBody$Outbound = {
|
|
166
|
-
created: string;
|
|
167
|
-
name: string;
|
|
168
|
-
teamId?: string | null | undefined;
|
|
169
|
-
uid: string;
|
|
170
|
-
userId?: string | undefined;
|
|
171
|
-
value?: string | undefined;
|
|
172
|
-
createdAt?: number | undefined;
|
|
173
|
-
projectId?: string | undefined;
|
|
174
|
-
decryptable?: boolean | undefined;
|
|
175
|
-
};
|
|
176
|
-
|
|
177
|
-
/** @internal */
|
|
178
|
-
export const GetSecretResponseBody$outboundSchema: z.ZodType<
|
|
179
|
-
GetSecretResponseBody$Outbound,
|
|
180
|
-
z.ZodTypeDef,
|
|
181
|
-
GetSecretResponseBody
|
|
182
|
-
> = z.object({
|
|
183
|
-
created: z.date().transform(v => v.toISOString()),
|
|
184
|
-
name: z.string(),
|
|
185
|
-
teamId: z.nullable(z.string()).optional(),
|
|
186
|
-
uid: z.string(),
|
|
187
|
-
userId: z.string().optional(),
|
|
188
|
-
value: z.string().optional(),
|
|
189
|
-
createdAt: z.number().optional(),
|
|
190
|
-
projectId: z.string().optional(),
|
|
191
|
-
decryptable: z.boolean().optional(),
|
|
192
|
-
});
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* @internal
|
|
196
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
197
|
-
*/
|
|
198
|
-
export namespace GetSecretResponseBody$ {
|
|
199
|
-
/** @deprecated use `GetSecretResponseBody$inboundSchema` instead. */
|
|
200
|
-
export const inboundSchema = GetSecretResponseBody$inboundSchema;
|
|
201
|
-
/** @deprecated use `GetSecretResponseBody$outboundSchema` instead. */
|
|
202
|
-
export const outboundSchema = GetSecretResponseBody$outboundSchema;
|
|
203
|
-
/** @deprecated use `GetSecretResponseBody$Outbound` instead. */
|
|
204
|
-
export type Outbound = GetSecretResponseBody$Outbound;
|
|
205
|
-
}
|