@vercel/sdk 1.8.6 → 1.9.0
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 +3 -9
- package/bin/mcp-server.js +669 -1264
- package/bin/mcp-server.js.map +17 -26
- package/docs/sdks/marketplace/README.md +78 -310
- package/esm/__tests__/marketplace.test.js +7 -51
- package/esm/__tests__/marketplace.test.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +2 -8
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/models/approverollingreleasestageop.d.ts +36 -0
- package/esm/models/approverollingreleasestageop.d.ts.map +1 -1
- package/esm/models/approverollingreleasestageop.js +25 -0
- package/esm/models/approverollingreleasestageop.js.map +1 -1
- package/esm/models/completerollingreleaseop.d.ts +36 -0
- package/esm/models/completerollingreleaseop.d.ts.map +1 -1
- package/esm/models/completerollingreleaseop.js +24 -0
- package/esm/models/completerollingreleaseop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +2 -0
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +2 -0
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/getedgeconfigbackupop.d.ts +15 -15
- package/esm/models/getedgeconfigbackupop.d.ts.map +1 -1
- package/esm/models/getedgeconfigbackupop.js +15 -15
- package/esm/models/getedgeconfigbackupop.js.map +1 -1
- package/esm/models/getprojectsop.d.ts +2 -0
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +2 -0
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/getrollingreleaseop.d.ts +36 -0
- package/esm/models/getrollingreleaseop.d.ts.map +1 -1
- package/esm/models/getrollingreleaseop.js +24 -0
- package/esm/models/getrollingreleaseop.js.map +1 -1
- package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts +3 -3
- package/esm/models/getv9projectsidornamecustomenvironmentsop.js +1 -1
- package/esm/models/getv9projectsidornamecustomenvironmentsop.js.map +1 -1
- package/esm/models/importresourceop.d.ts +15 -15
- package/esm/models/importresourceop.d.ts.map +1 -1
- package/esm/models/importresourceop.js +15 -17
- package/esm/models/importresourceop.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +2 -0
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +2 -0
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +2 -0
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +2 -0
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/updateresourcesecretsop.d.ts +15 -15
- package/esm/models/updateresourcesecretsop.d.ts.map +1 -1
- package/esm/models/updateresourcesecretsop.js +17 -15
- package/esm/models/updateresourcesecretsop.js.map +1 -1
- package/esm/sdk/marketplace.d.ts +7 -31
- package/esm/sdk/marketplace.d.ts.map +1 -1
- package/esm/sdk/marketplace.js +9 -39
- package/esm/sdk/marketplace.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/marketplace.test.ts +13 -57
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +2 -8
- package/src/models/approverollingreleasestageop.ts +44 -0
- package/src/models/completerollingreleaseop.ts +45 -0
- package/src/models/createprojectop.ts +4 -0
- package/src/models/getedgeconfigbackupop.ts +24 -41
- package/src/models/getprojectsop.ts +4 -0
- package/src/models/getrollingreleaseop.ts +40 -0
- package/src/models/getv9projectsidornamecustomenvironmentsop.ts +1 -1
- package/src/models/importresourceop.ts +35 -27
- package/src/models/updateprojectdatacacheop.ts +4 -0
- package/src/models/updateprojectop.ts +4 -0
- package/src/models/updateresourcesecretsop.ts +33 -49
- package/src/sdk/marketplace.ts +17 -80
- package/vercel-spec.json +464 -880
- package/esm/funcs/marketplaceDeleteResource.d.ts +0 -20
- package/esm/funcs/marketplaceDeleteResource.d.ts.map +0 -1
- package/esm/funcs/marketplaceDeleteResource.js +0 -91
- package/esm/funcs/marketplaceDeleteResource.js.map +0 -1
- package/esm/funcs/marketplaceGetResource.d.ts +0 -20
- package/esm/funcs/marketplaceGetResource.d.ts.map +0 -1
- package/esm/funcs/marketplaceGetResource.js +0 -90
- package/esm/funcs/marketplaceGetResource.js.map +0 -1
- package/esm/funcs/marketplaceGetResources.d.ts +0 -20
- package/esm/funcs/marketplaceGetResources.d.ts.map +0 -1
- package/esm/funcs/marketplaceGetResources.js +0 -86
- package/esm/funcs/marketplaceGetResources.js.map +0 -1
- package/esm/mcp-server/tools/marketplaceDeleteResource.d.ts +0 -7
- package/esm/mcp-server/tools/marketplaceDeleteResource.d.ts.map +0 -1
- package/esm/mcp-server/tools/marketplaceDeleteResource.js +0 -27
- package/esm/mcp-server/tools/marketplaceDeleteResource.js.map +0 -1
- package/esm/mcp-server/tools/marketplaceGetResource.d.ts +0 -7
- package/esm/mcp-server/tools/marketplaceGetResource.d.ts.map +0 -1
- package/esm/mcp-server/tools/marketplaceGetResource.js +0 -28
- package/esm/mcp-server/tools/marketplaceGetResource.js.map +0 -1
- package/esm/mcp-server/tools/marketplaceGetResources.d.ts +0 -7
- package/esm/mcp-server/tools/marketplaceGetResources.d.ts.map +0 -1
- package/esm/mcp-server/tools/marketplaceGetResources.js +0 -28
- package/esm/mcp-server/tools/marketplaceGetResources.js.map +0 -1
- package/esm/models/deleteresourceop.d.ts +0 -31
- package/esm/models/deleteresourceop.d.ts.map +0 -1
- package/esm/models/deleteresourceop.js +0 -33
- package/esm/models/deleteresourceop.js.map +0 -1
- package/esm/models/getresourceop.d.ts +0 -293
- package/esm/models/getresourceop.d.ts.map +0 -1
- package/esm/models/getresourceop.js +0 -250
- package/esm/models/getresourceop.js.map +0 -1
- package/esm/models/getresourcesop.d.ts +0 -310
- package/esm/models/getresourcesop.d.ts.map +0 -1
- package/esm/models/getresourcesop.js +0 -278
- package/esm/models/getresourcesop.js.map +0 -1
- package/src/funcs/marketplaceDeleteResource.ts +0 -205
- package/src/funcs/marketplaceGetResource.ts +0 -206
- package/src/funcs/marketplaceGetResources.ts +0 -202
- package/src/mcp-server/tools/marketplaceDeleteResource.ts +0 -35
- package/src/mcp-server/tools/marketplaceGetResource.ts +0 -37
- package/src/mcp-server/tools/marketplaceGetResources.ts +0 -37
- package/src/models/deleteresourceop.ts +0 -70
- package/src/models/getresourceop.ts +0 -545
- package/src/models/getresourcesop.ts +0 -604
|
@@ -1,604 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { safeParse } from "../lib/schemas.js";
|
|
7
|
-
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
export type GetResourcesRequest = {
|
|
12
|
-
integrationConfigurationId: string;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* The current status of the resource
|
|
17
|
-
*/
|
|
18
|
-
export const GetResourcesStatus = {
|
|
19
|
-
Ready: "ready",
|
|
20
|
-
Pending: "pending",
|
|
21
|
-
Suspended: "suspended",
|
|
22
|
-
Resumed: "resumed",
|
|
23
|
-
Uninstalled: "uninstalled",
|
|
24
|
-
Error: "error",
|
|
25
|
-
} as const;
|
|
26
|
-
/**
|
|
27
|
-
* The current status of the resource
|
|
28
|
-
*/
|
|
29
|
-
export type GetResourcesStatus = ClosedEnum<typeof GetResourcesStatus>;
|
|
30
|
-
|
|
31
|
-
export type GetResourcesExperimentation = {
|
|
32
|
-
edgeConfigSyncingEnabled?: boolean | undefined;
|
|
33
|
-
edgeConfigId?: string | undefined;
|
|
34
|
-
edgeConfigTokenId?: string | undefined;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Any settings provided for the resource to support its product's protocols
|
|
39
|
-
*/
|
|
40
|
-
export type GetResourcesProtocolSettings = {
|
|
41
|
-
experimentation?: GetResourcesExperimentation | undefined;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
export const GetResourcesLevel = {
|
|
45
|
-
Error: "error",
|
|
46
|
-
Info: "info",
|
|
47
|
-
Warn: "warn",
|
|
48
|
-
} as const;
|
|
49
|
-
export type GetResourcesLevel = ClosedEnum<typeof GetResourcesLevel>;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* The notification, if set, displayed to the user when viewing the resource in Vercel
|
|
53
|
-
*/
|
|
54
|
-
export type GetResourcesNotification = {
|
|
55
|
-
level: GetResourcesLevel;
|
|
56
|
-
title: string;
|
|
57
|
-
message?: string | undefined;
|
|
58
|
-
href?: string | undefined;
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export type GetResourcesMetadata =
|
|
62
|
-
| string
|
|
63
|
-
| number
|
|
64
|
-
| boolean
|
|
65
|
-
| Array<string>
|
|
66
|
-
| Array<number>;
|
|
67
|
-
|
|
68
|
-
export type Resources = {
|
|
69
|
-
/**
|
|
70
|
-
* The ID provided by the partner for the given resource
|
|
71
|
-
*/
|
|
72
|
-
partnerId: string;
|
|
73
|
-
/**
|
|
74
|
-
* The ID assigned by Vercel for the given resource
|
|
75
|
-
*/
|
|
76
|
-
internalId: string;
|
|
77
|
-
/**
|
|
78
|
-
* The name of the resource as it is recorded in Vercel
|
|
79
|
-
*/
|
|
80
|
-
name: string;
|
|
81
|
-
/**
|
|
82
|
-
* The current status of the resource
|
|
83
|
-
*/
|
|
84
|
-
status?: GetResourcesStatus | undefined;
|
|
85
|
-
/**
|
|
86
|
-
* The ID of the product the resource is derived from
|
|
87
|
-
*/
|
|
88
|
-
productId: string;
|
|
89
|
-
/**
|
|
90
|
-
* Any settings provided for the resource to support its product's protocols
|
|
91
|
-
*/
|
|
92
|
-
protocolSettings?: GetResourcesProtocolSettings | undefined;
|
|
93
|
-
/**
|
|
94
|
-
* The notification, if set, displayed to the user when viewing the resource in Vercel
|
|
95
|
-
*/
|
|
96
|
-
notification?: GetResourcesNotification | undefined;
|
|
97
|
-
/**
|
|
98
|
-
* The ID of the billing plan the resource is subscribed to, if applicable
|
|
99
|
-
*/
|
|
100
|
-
billingPlanId?: string | undefined;
|
|
101
|
-
/**
|
|
102
|
-
* The configured metadata for the resource as defined by its product's Metadata Schema
|
|
103
|
-
*/
|
|
104
|
-
metadata?: {
|
|
105
|
-
[k: string]: string | number | boolean | Array<string> | Array<number>;
|
|
106
|
-
} | undefined;
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
export type GetResourcesResponseBody = {
|
|
110
|
-
resources: Array<Resources>;
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
/** @internal */
|
|
114
|
-
export const GetResourcesRequest$inboundSchema: z.ZodType<
|
|
115
|
-
GetResourcesRequest,
|
|
116
|
-
z.ZodTypeDef,
|
|
117
|
-
unknown
|
|
118
|
-
> = z.object({
|
|
119
|
-
integrationConfigurationId: z.string(),
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
/** @internal */
|
|
123
|
-
export type GetResourcesRequest$Outbound = {
|
|
124
|
-
integrationConfigurationId: string;
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
/** @internal */
|
|
128
|
-
export const GetResourcesRequest$outboundSchema: z.ZodType<
|
|
129
|
-
GetResourcesRequest$Outbound,
|
|
130
|
-
z.ZodTypeDef,
|
|
131
|
-
GetResourcesRequest
|
|
132
|
-
> = z.object({
|
|
133
|
-
integrationConfigurationId: z.string(),
|
|
134
|
-
});
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* @internal
|
|
138
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
139
|
-
*/
|
|
140
|
-
export namespace GetResourcesRequest$ {
|
|
141
|
-
/** @deprecated use `GetResourcesRequest$inboundSchema` instead. */
|
|
142
|
-
export const inboundSchema = GetResourcesRequest$inboundSchema;
|
|
143
|
-
/** @deprecated use `GetResourcesRequest$outboundSchema` instead. */
|
|
144
|
-
export const outboundSchema = GetResourcesRequest$outboundSchema;
|
|
145
|
-
/** @deprecated use `GetResourcesRequest$Outbound` instead. */
|
|
146
|
-
export type Outbound = GetResourcesRequest$Outbound;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
export function getResourcesRequestToJSON(
|
|
150
|
-
getResourcesRequest: GetResourcesRequest,
|
|
151
|
-
): string {
|
|
152
|
-
return JSON.stringify(
|
|
153
|
-
GetResourcesRequest$outboundSchema.parse(getResourcesRequest),
|
|
154
|
-
);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export function getResourcesRequestFromJSON(
|
|
158
|
-
jsonString: string,
|
|
159
|
-
): SafeParseResult<GetResourcesRequest, SDKValidationError> {
|
|
160
|
-
return safeParse(
|
|
161
|
-
jsonString,
|
|
162
|
-
(x) => GetResourcesRequest$inboundSchema.parse(JSON.parse(x)),
|
|
163
|
-
`Failed to parse 'GetResourcesRequest' from JSON`,
|
|
164
|
-
);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/** @internal */
|
|
168
|
-
export const GetResourcesStatus$inboundSchema: z.ZodNativeEnum<
|
|
169
|
-
typeof GetResourcesStatus
|
|
170
|
-
> = z.nativeEnum(GetResourcesStatus);
|
|
171
|
-
|
|
172
|
-
/** @internal */
|
|
173
|
-
export const GetResourcesStatus$outboundSchema: z.ZodNativeEnum<
|
|
174
|
-
typeof GetResourcesStatus
|
|
175
|
-
> = GetResourcesStatus$inboundSchema;
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* @internal
|
|
179
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
180
|
-
*/
|
|
181
|
-
export namespace GetResourcesStatus$ {
|
|
182
|
-
/** @deprecated use `GetResourcesStatus$inboundSchema` instead. */
|
|
183
|
-
export const inboundSchema = GetResourcesStatus$inboundSchema;
|
|
184
|
-
/** @deprecated use `GetResourcesStatus$outboundSchema` instead. */
|
|
185
|
-
export const outboundSchema = GetResourcesStatus$outboundSchema;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
/** @internal */
|
|
189
|
-
export const GetResourcesExperimentation$inboundSchema: z.ZodType<
|
|
190
|
-
GetResourcesExperimentation,
|
|
191
|
-
z.ZodTypeDef,
|
|
192
|
-
unknown
|
|
193
|
-
> = z.object({
|
|
194
|
-
edgeConfigSyncingEnabled: z.boolean().optional(),
|
|
195
|
-
edgeConfigId: z.string().optional(),
|
|
196
|
-
edgeConfigTokenId: z.string().optional(),
|
|
197
|
-
});
|
|
198
|
-
|
|
199
|
-
/** @internal */
|
|
200
|
-
export type GetResourcesExperimentation$Outbound = {
|
|
201
|
-
edgeConfigSyncingEnabled?: boolean | undefined;
|
|
202
|
-
edgeConfigId?: string | undefined;
|
|
203
|
-
edgeConfigTokenId?: string | undefined;
|
|
204
|
-
};
|
|
205
|
-
|
|
206
|
-
/** @internal */
|
|
207
|
-
export const GetResourcesExperimentation$outboundSchema: z.ZodType<
|
|
208
|
-
GetResourcesExperimentation$Outbound,
|
|
209
|
-
z.ZodTypeDef,
|
|
210
|
-
GetResourcesExperimentation
|
|
211
|
-
> = z.object({
|
|
212
|
-
edgeConfigSyncingEnabled: z.boolean().optional(),
|
|
213
|
-
edgeConfigId: z.string().optional(),
|
|
214
|
-
edgeConfigTokenId: z.string().optional(),
|
|
215
|
-
});
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* @internal
|
|
219
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
220
|
-
*/
|
|
221
|
-
export namespace GetResourcesExperimentation$ {
|
|
222
|
-
/** @deprecated use `GetResourcesExperimentation$inboundSchema` instead. */
|
|
223
|
-
export const inboundSchema = GetResourcesExperimentation$inboundSchema;
|
|
224
|
-
/** @deprecated use `GetResourcesExperimentation$outboundSchema` instead. */
|
|
225
|
-
export const outboundSchema = GetResourcesExperimentation$outboundSchema;
|
|
226
|
-
/** @deprecated use `GetResourcesExperimentation$Outbound` instead. */
|
|
227
|
-
export type Outbound = GetResourcesExperimentation$Outbound;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
export function getResourcesExperimentationToJSON(
|
|
231
|
-
getResourcesExperimentation: GetResourcesExperimentation,
|
|
232
|
-
): string {
|
|
233
|
-
return JSON.stringify(
|
|
234
|
-
GetResourcesExperimentation$outboundSchema.parse(
|
|
235
|
-
getResourcesExperimentation,
|
|
236
|
-
),
|
|
237
|
-
);
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
export function getResourcesExperimentationFromJSON(
|
|
241
|
-
jsonString: string,
|
|
242
|
-
): SafeParseResult<GetResourcesExperimentation, SDKValidationError> {
|
|
243
|
-
return safeParse(
|
|
244
|
-
jsonString,
|
|
245
|
-
(x) => GetResourcesExperimentation$inboundSchema.parse(JSON.parse(x)),
|
|
246
|
-
`Failed to parse 'GetResourcesExperimentation' from JSON`,
|
|
247
|
-
);
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
/** @internal */
|
|
251
|
-
export const GetResourcesProtocolSettings$inboundSchema: z.ZodType<
|
|
252
|
-
GetResourcesProtocolSettings,
|
|
253
|
-
z.ZodTypeDef,
|
|
254
|
-
unknown
|
|
255
|
-
> = z.object({
|
|
256
|
-
experimentation: z.lazy(() => GetResourcesExperimentation$inboundSchema)
|
|
257
|
-
.optional(),
|
|
258
|
-
});
|
|
259
|
-
|
|
260
|
-
/** @internal */
|
|
261
|
-
export type GetResourcesProtocolSettings$Outbound = {
|
|
262
|
-
experimentation?: GetResourcesExperimentation$Outbound | undefined;
|
|
263
|
-
};
|
|
264
|
-
|
|
265
|
-
/** @internal */
|
|
266
|
-
export const GetResourcesProtocolSettings$outboundSchema: z.ZodType<
|
|
267
|
-
GetResourcesProtocolSettings$Outbound,
|
|
268
|
-
z.ZodTypeDef,
|
|
269
|
-
GetResourcesProtocolSettings
|
|
270
|
-
> = z.object({
|
|
271
|
-
experimentation: z.lazy(() => GetResourcesExperimentation$outboundSchema)
|
|
272
|
-
.optional(),
|
|
273
|
-
});
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* @internal
|
|
277
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
278
|
-
*/
|
|
279
|
-
export namespace GetResourcesProtocolSettings$ {
|
|
280
|
-
/** @deprecated use `GetResourcesProtocolSettings$inboundSchema` instead. */
|
|
281
|
-
export const inboundSchema = GetResourcesProtocolSettings$inboundSchema;
|
|
282
|
-
/** @deprecated use `GetResourcesProtocolSettings$outboundSchema` instead. */
|
|
283
|
-
export const outboundSchema = GetResourcesProtocolSettings$outboundSchema;
|
|
284
|
-
/** @deprecated use `GetResourcesProtocolSettings$Outbound` instead. */
|
|
285
|
-
export type Outbound = GetResourcesProtocolSettings$Outbound;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
export function getResourcesProtocolSettingsToJSON(
|
|
289
|
-
getResourcesProtocolSettings: GetResourcesProtocolSettings,
|
|
290
|
-
): string {
|
|
291
|
-
return JSON.stringify(
|
|
292
|
-
GetResourcesProtocolSettings$outboundSchema.parse(
|
|
293
|
-
getResourcesProtocolSettings,
|
|
294
|
-
),
|
|
295
|
-
);
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
export function getResourcesProtocolSettingsFromJSON(
|
|
299
|
-
jsonString: string,
|
|
300
|
-
): SafeParseResult<GetResourcesProtocolSettings, SDKValidationError> {
|
|
301
|
-
return safeParse(
|
|
302
|
-
jsonString,
|
|
303
|
-
(x) => GetResourcesProtocolSettings$inboundSchema.parse(JSON.parse(x)),
|
|
304
|
-
`Failed to parse 'GetResourcesProtocolSettings' from JSON`,
|
|
305
|
-
);
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
/** @internal */
|
|
309
|
-
export const GetResourcesLevel$inboundSchema: z.ZodNativeEnum<
|
|
310
|
-
typeof GetResourcesLevel
|
|
311
|
-
> = z.nativeEnum(GetResourcesLevel);
|
|
312
|
-
|
|
313
|
-
/** @internal */
|
|
314
|
-
export const GetResourcesLevel$outboundSchema: z.ZodNativeEnum<
|
|
315
|
-
typeof GetResourcesLevel
|
|
316
|
-
> = GetResourcesLevel$inboundSchema;
|
|
317
|
-
|
|
318
|
-
/**
|
|
319
|
-
* @internal
|
|
320
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
321
|
-
*/
|
|
322
|
-
export namespace GetResourcesLevel$ {
|
|
323
|
-
/** @deprecated use `GetResourcesLevel$inboundSchema` instead. */
|
|
324
|
-
export const inboundSchema = GetResourcesLevel$inboundSchema;
|
|
325
|
-
/** @deprecated use `GetResourcesLevel$outboundSchema` instead. */
|
|
326
|
-
export const outboundSchema = GetResourcesLevel$outboundSchema;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
/** @internal */
|
|
330
|
-
export const GetResourcesNotification$inboundSchema: z.ZodType<
|
|
331
|
-
GetResourcesNotification,
|
|
332
|
-
z.ZodTypeDef,
|
|
333
|
-
unknown
|
|
334
|
-
> = z.object({
|
|
335
|
-
level: GetResourcesLevel$inboundSchema,
|
|
336
|
-
title: z.string(),
|
|
337
|
-
message: z.string().optional(),
|
|
338
|
-
href: z.string().optional(),
|
|
339
|
-
});
|
|
340
|
-
|
|
341
|
-
/** @internal */
|
|
342
|
-
export type GetResourcesNotification$Outbound = {
|
|
343
|
-
level: string;
|
|
344
|
-
title: string;
|
|
345
|
-
message?: string | undefined;
|
|
346
|
-
href?: string | undefined;
|
|
347
|
-
};
|
|
348
|
-
|
|
349
|
-
/** @internal */
|
|
350
|
-
export const GetResourcesNotification$outboundSchema: z.ZodType<
|
|
351
|
-
GetResourcesNotification$Outbound,
|
|
352
|
-
z.ZodTypeDef,
|
|
353
|
-
GetResourcesNotification
|
|
354
|
-
> = z.object({
|
|
355
|
-
level: GetResourcesLevel$outboundSchema,
|
|
356
|
-
title: z.string(),
|
|
357
|
-
message: z.string().optional(),
|
|
358
|
-
href: z.string().optional(),
|
|
359
|
-
});
|
|
360
|
-
|
|
361
|
-
/**
|
|
362
|
-
* @internal
|
|
363
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
364
|
-
*/
|
|
365
|
-
export namespace GetResourcesNotification$ {
|
|
366
|
-
/** @deprecated use `GetResourcesNotification$inboundSchema` instead. */
|
|
367
|
-
export const inboundSchema = GetResourcesNotification$inboundSchema;
|
|
368
|
-
/** @deprecated use `GetResourcesNotification$outboundSchema` instead. */
|
|
369
|
-
export const outboundSchema = GetResourcesNotification$outboundSchema;
|
|
370
|
-
/** @deprecated use `GetResourcesNotification$Outbound` instead. */
|
|
371
|
-
export type Outbound = GetResourcesNotification$Outbound;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
export function getResourcesNotificationToJSON(
|
|
375
|
-
getResourcesNotification: GetResourcesNotification,
|
|
376
|
-
): string {
|
|
377
|
-
return JSON.stringify(
|
|
378
|
-
GetResourcesNotification$outboundSchema.parse(getResourcesNotification),
|
|
379
|
-
);
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
export function getResourcesNotificationFromJSON(
|
|
383
|
-
jsonString: string,
|
|
384
|
-
): SafeParseResult<GetResourcesNotification, SDKValidationError> {
|
|
385
|
-
return safeParse(
|
|
386
|
-
jsonString,
|
|
387
|
-
(x) => GetResourcesNotification$inboundSchema.parse(JSON.parse(x)),
|
|
388
|
-
`Failed to parse 'GetResourcesNotification' from JSON`,
|
|
389
|
-
);
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
/** @internal */
|
|
393
|
-
export const GetResourcesMetadata$inboundSchema: z.ZodType<
|
|
394
|
-
GetResourcesMetadata,
|
|
395
|
-
z.ZodTypeDef,
|
|
396
|
-
unknown
|
|
397
|
-
> = z.union([
|
|
398
|
-
z.string(),
|
|
399
|
-
z.number(),
|
|
400
|
-
z.boolean(),
|
|
401
|
-
z.array(z.string()),
|
|
402
|
-
z.array(z.number()),
|
|
403
|
-
]);
|
|
404
|
-
|
|
405
|
-
/** @internal */
|
|
406
|
-
export type GetResourcesMetadata$Outbound =
|
|
407
|
-
| string
|
|
408
|
-
| number
|
|
409
|
-
| boolean
|
|
410
|
-
| Array<string>
|
|
411
|
-
| Array<number>;
|
|
412
|
-
|
|
413
|
-
/** @internal */
|
|
414
|
-
export const GetResourcesMetadata$outboundSchema: z.ZodType<
|
|
415
|
-
GetResourcesMetadata$Outbound,
|
|
416
|
-
z.ZodTypeDef,
|
|
417
|
-
GetResourcesMetadata
|
|
418
|
-
> = z.union([
|
|
419
|
-
z.string(),
|
|
420
|
-
z.number(),
|
|
421
|
-
z.boolean(),
|
|
422
|
-
z.array(z.string()),
|
|
423
|
-
z.array(z.number()),
|
|
424
|
-
]);
|
|
425
|
-
|
|
426
|
-
/**
|
|
427
|
-
* @internal
|
|
428
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
429
|
-
*/
|
|
430
|
-
export namespace GetResourcesMetadata$ {
|
|
431
|
-
/** @deprecated use `GetResourcesMetadata$inboundSchema` instead. */
|
|
432
|
-
export const inboundSchema = GetResourcesMetadata$inboundSchema;
|
|
433
|
-
/** @deprecated use `GetResourcesMetadata$outboundSchema` instead. */
|
|
434
|
-
export const outboundSchema = GetResourcesMetadata$outboundSchema;
|
|
435
|
-
/** @deprecated use `GetResourcesMetadata$Outbound` instead. */
|
|
436
|
-
export type Outbound = GetResourcesMetadata$Outbound;
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
export function getResourcesMetadataToJSON(
|
|
440
|
-
getResourcesMetadata: GetResourcesMetadata,
|
|
441
|
-
): string {
|
|
442
|
-
return JSON.stringify(
|
|
443
|
-
GetResourcesMetadata$outboundSchema.parse(getResourcesMetadata),
|
|
444
|
-
);
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
export function getResourcesMetadataFromJSON(
|
|
448
|
-
jsonString: string,
|
|
449
|
-
): SafeParseResult<GetResourcesMetadata, SDKValidationError> {
|
|
450
|
-
return safeParse(
|
|
451
|
-
jsonString,
|
|
452
|
-
(x) => GetResourcesMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
453
|
-
`Failed to parse 'GetResourcesMetadata' from JSON`,
|
|
454
|
-
);
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
/** @internal */
|
|
458
|
-
export const Resources$inboundSchema: z.ZodType<
|
|
459
|
-
Resources,
|
|
460
|
-
z.ZodTypeDef,
|
|
461
|
-
unknown
|
|
462
|
-
> = z.object({
|
|
463
|
-
partnerId: z.string(),
|
|
464
|
-
internalId: z.string(),
|
|
465
|
-
name: z.string(),
|
|
466
|
-
status: GetResourcesStatus$inboundSchema.optional(),
|
|
467
|
-
productId: z.string(),
|
|
468
|
-
protocolSettings: z.lazy(() => GetResourcesProtocolSettings$inboundSchema)
|
|
469
|
-
.optional(),
|
|
470
|
-
notification: z.lazy(() => GetResourcesNotification$inboundSchema).optional(),
|
|
471
|
-
billingPlanId: z.string().optional(),
|
|
472
|
-
metadata: z.record(
|
|
473
|
-
z.union([
|
|
474
|
-
z.string(),
|
|
475
|
-
z.number(),
|
|
476
|
-
z.boolean(),
|
|
477
|
-
z.array(z.string()),
|
|
478
|
-
z.array(z.number()),
|
|
479
|
-
]),
|
|
480
|
-
).optional(),
|
|
481
|
-
});
|
|
482
|
-
|
|
483
|
-
/** @internal */
|
|
484
|
-
export type Resources$Outbound = {
|
|
485
|
-
partnerId: string;
|
|
486
|
-
internalId: string;
|
|
487
|
-
name: string;
|
|
488
|
-
status?: string | undefined;
|
|
489
|
-
productId: string;
|
|
490
|
-
protocolSettings?: GetResourcesProtocolSettings$Outbound | undefined;
|
|
491
|
-
notification?: GetResourcesNotification$Outbound | undefined;
|
|
492
|
-
billingPlanId?: string | undefined;
|
|
493
|
-
metadata?: {
|
|
494
|
-
[k: string]: string | number | boolean | Array<string> | Array<number>;
|
|
495
|
-
} | undefined;
|
|
496
|
-
};
|
|
497
|
-
|
|
498
|
-
/** @internal */
|
|
499
|
-
export const Resources$outboundSchema: z.ZodType<
|
|
500
|
-
Resources$Outbound,
|
|
501
|
-
z.ZodTypeDef,
|
|
502
|
-
Resources
|
|
503
|
-
> = z.object({
|
|
504
|
-
partnerId: z.string(),
|
|
505
|
-
internalId: z.string(),
|
|
506
|
-
name: z.string(),
|
|
507
|
-
status: GetResourcesStatus$outboundSchema.optional(),
|
|
508
|
-
productId: z.string(),
|
|
509
|
-
protocolSettings: z.lazy(() => GetResourcesProtocolSettings$outboundSchema)
|
|
510
|
-
.optional(),
|
|
511
|
-
notification: z.lazy(() => GetResourcesNotification$outboundSchema)
|
|
512
|
-
.optional(),
|
|
513
|
-
billingPlanId: z.string().optional(),
|
|
514
|
-
metadata: z.record(
|
|
515
|
-
z.union([
|
|
516
|
-
z.string(),
|
|
517
|
-
z.number(),
|
|
518
|
-
z.boolean(),
|
|
519
|
-
z.array(z.string()),
|
|
520
|
-
z.array(z.number()),
|
|
521
|
-
]),
|
|
522
|
-
).optional(),
|
|
523
|
-
});
|
|
524
|
-
|
|
525
|
-
/**
|
|
526
|
-
* @internal
|
|
527
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
528
|
-
*/
|
|
529
|
-
export namespace Resources$ {
|
|
530
|
-
/** @deprecated use `Resources$inboundSchema` instead. */
|
|
531
|
-
export const inboundSchema = Resources$inboundSchema;
|
|
532
|
-
/** @deprecated use `Resources$outboundSchema` instead. */
|
|
533
|
-
export const outboundSchema = Resources$outboundSchema;
|
|
534
|
-
/** @deprecated use `Resources$Outbound` instead. */
|
|
535
|
-
export type Outbound = Resources$Outbound;
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
export function resourcesToJSON(resources: Resources): string {
|
|
539
|
-
return JSON.stringify(Resources$outboundSchema.parse(resources));
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
export function resourcesFromJSON(
|
|
543
|
-
jsonString: string,
|
|
544
|
-
): SafeParseResult<Resources, SDKValidationError> {
|
|
545
|
-
return safeParse(
|
|
546
|
-
jsonString,
|
|
547
|
-
(x) => Resources$inboundSchema.parse(JSON.parse(x)),
|
|
548
|
-
`Failed to parse 'Resources' from JSON`,
|
|
549
|
-
);
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
/** @internal */
|
|
553
|
-
export const GetResourcesResponseBody$inboundSchema: z.ZodType<
|
|
554
|
-
GetResourcesResponseBody,
|
|
555
|
-
z.ZodTypeDef,
|
|
556
|
-
unknown
|
|
557
|
-
> = z.object({
|
|
558
|
-
resources: z.array(z.lazy(() => Resources$inboundSchema)),
|
|
559
|
-
});
|
|
560
|
-
|
|
561
|
-
/** @internal */
|
|
562
|
-
export type GetResourcesResponseBody$Outbound = {
|
|
563
|
-
resources: Array<Resources$Outbound>;
|
|
564
|
-
};
|
|
565
|
-
|
|
566
|
-
/** @internal */
|
|
567
|
-
export const GetResourcesResponseBody$outboundSchema: z.ZodType<
|
|
568
|
-
GetResourcesResponseBody$Outbound,
|
|
569
|
-
z.ZodTypeDef,
|
|
570
|
-
GetResourcesResponseBody
|
|
571
|
-
> = z.object({
|
|
572
|
-
resources: z.array(z.lazy(() => Resources$outboundSchema)),
|
|
573
|
-
});
|
|
574
|
-
|
|
575
|
-
/**
|
|
576
|
-
* @internal
|
|
577
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
578
|
-
*/
|
|
579
|
-
export namespace GetResourcesResponseBody$ {
|
|
580
|
-
/** @deprecated use `GetResourcesResponseBody$inboundSchema` instead. */
|
|
581
|
-
export const inboundSchema = GetResourcesResponseBody$inboundSchema;
|
|
582
|
-
/** @deprecated use `GetResourcesResponseBody$outboundSchema` instead. */
|
|
583
|
-
export const outboundSchema = GetResourcesResponseBody$outboundSchema;
|
|
584
|
-
/** @deprecated use `GetResourcesResponseBody$Outbound` instead. */
|
|
585
|
-
export type Outbound = GetResourcesResponseBody$Outbound;
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
export function getResourcesResponseBodyToJSON(
|
|
589
|
-
getResourcesResponseBody: GetResourcesResponseBody,
|
|
590
|
-
): string {
|
|
591
|
-
return JSON.stringify(
|
|
592
|
-
GetResourcesResponseBody$outboundSchema.parse(getResourcesResponseBody),
|
|
593
|
-
);
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
export function getResourcesResponseBodyFromJSON(
|
|
597
|
-
jsonString: string,
|
|
598
|
-
): SafeParseResult<GetResourcesResponseBody, SDKValidationError> {
|
|
599
|
-
return safeParse(
|
|
600
|
-
jsonString,
|
|
601
|
-
(x) => GetResourcesResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
602
|
-
`Failed to parse 'GetResourcesResponseBody' from JSON`,
|
|
603
|
-
);
|
|
604
|
-
}
|