@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.
Files changed (123) hide show
  1. package/README.md +3 -9
  2. package/bin/mcp-server.js +669 -1264
  3. package/bin/mcp-server.js.map +17 -26
  4. package/docs/sdks/marketplace/README.md +78 -310
  5. package/esm/__tests__/marketplace.test.js +7 -51
  6. package/esm/__tests__/marketplace.test.js.map +1 -1
  7. package/esm/lib/config.d.ts +3 -3
  8. package/esm/lib/config.js +3 -3
  9. package/esm/mcp-server/mcp-server.js +1 -1
  10. package/esm/mcp-server/server.d.ts.map +1 -1
  11. package/esm/mcp-server/server.js +2 -8
  12. package/esm/mcp-server/server.js.map +1 -1
  13. package/esm/models/approverollingreleasestageop.d.ts +36 -0
  14. package/esm/models/approverollingreleasestageop.d.ts.map +1 -1
  15. package/esm/models/approverollingreleasestageop.js +25 -0
  16. package/esm/models/approverollingreleasestageop.js.map +1 -1
  17. package/esm/models/completerollingreleaseop.d.ts +36 -0
  18. package/esm/models/completerollingreleaseop.d.ts.map +1 -1
  19. package/esm/models/completerollingreleaseop.js +24 -0
  20. package/esm/models/completerollingreleaseop.js.map +1 -1
  21. package/esm/models/createprojectop.d.ts +2 -0
  22. package/esm/models/createprojectop.d.ts.map +1 -1
  23. package/esm/models/createprojectop.js +2 -0
  24. package/esm/models/createprojectop.js.map +1 -1
  25. package/esm/models/getedgeconfigbackupop.d.ts +15 -15
  26. package/esm/models/getedgeconfigbackupop.d.ts.map +1 -1
  27. package/esm/models/getedgeconfigbackupop.js +15 -15
  28. package/esm/models/getedgeconfigbackupop.js.map +1 -1
  29. package/esm/models/getprojectsop.d.ts +2 -0
  30. package/esm/models/getprojectsop.d.ts.map +1 -1
  31. package/esm/models/getprojectsop.js +2 -0
  32. package/esm/models/getprojectsop.js.map +1 -1
  33. package/esm/models/getrollingreleaseop.d.ts +36 -0
  34. package/esm/models/getrollingreleaseop.d.ts.map +1 -1
  35. package/esm/models/getrollingreleaseop.js +24 -0
  36. package/esm/models/getrollingreleaseop.js.map +1 -1
  37. package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts +3 -3
  38. package/esm/models/getv9projectsidornamecustomenvironmentsop.js +1 -1
  39. package/esm/models/getv9projectsidornamecustomenvironmentsop.js.map +1 -1
  40. package/esm/models/importresourceop.d.ts +15 -15
  41. package/esm/models/importresourceop.d.ts.map +1 -1
  42. package/esm/models/importresourceop.js +15 -17
  43. package/esm/models/importresourceop.js.map +1 -1
  44. package/esm/models/updateprojectdatacacheop.d.ts +2 -0
  45. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  46. package/esm/models/updateprojectdatacacheop.js +2 -0
  47. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  48. package/esm/models/updateprojectop.d.ts +2 -0
  49. package/esm/models/updateprojectop.d.ts.map +1 -1
  50. package/esm/models/updateprojectop.js +2 -0
  51. package/esm/models/updateprojectop.js.map +1 -1
  52. package/esm/models/updateresourcesecretsop.d.ts +15 -15
  53. package/esm/models/updateresourcesecretsop.d.ts.map +1 -1
  54. package/esm/models/updateresourcesecretsop.js +17 -15
  55. package/esm/models/updateresourcesecretsop.js.map +1 -1
  56. package/esm/sdk/marketplace.d.ts +7 -31
  57. package/esm/sdk/marketplace.d.ts.map +1 -1
  58. package/esm/sdk/marketplace.js +9 -39
  59. package/esm/sdk/marketplace.js.map +1 -1
  60. package/jsr.json +1 -1
  61. package/package.json +1 -1
  62. package/src/__tests__/marketplace.test.ts +13 -57
  63. package/src/lib/config.ts +3 -3
  64. package/src/mcp-server/mcp-server.ts +1 -1
  65. package/src/mcp-server/server.ts +2 -8
  66. package/src/models/approverollingreleasestageop.ts +44 -0
  67. package/src/models/completerollingreleaseop.ts +45 -0
  68. package/src/models/createprojectop.ts +4 -0
  69. package/src/models/getedgeconfigbackupop.ts +24 -41
  70. package/src/models/getprojectsop.ts +4 -0
  71. package/src/models/getrollingreleaseop.ts +40 -0
  72. package/src/models/getv9projectsidornamecustomenvironmentsop.ts +1 -1
  73. package/src/models/importresourceop.ts +35 -27
  74. package/src/models/updateprojectdatacacheop.ts +4 -0
  75. package/src/models/updateprojectop.ts +4 -0
  76. package/src/models/updateresourcesecretsop.ts +33 -49
  77. package/src/sdk/marketplace.ts +17 -80
  78. package/vercel-spec.json +464 -880
  79. package/esm/funcs/marketplaceDeleteResource.d.ts +0 -20
  80. package/esm/funcs/marketplaceDeleteResource.d.ts.map +0 -1
  81. package/esm/funcs/marketplaceDeleteResource.js +0 -91
  82. package/esm/funcs/marketplaceDeleteResource.js.map +0 -1
  83. package/esm/funcs/marketplaceGetResource.d.ts +0 -20
  84. package/esm/funcs/marketplaceGetResource.d.ts.map +0 -1
  85. package/esm/funcs/marketplaceGetResource.js +0 -90
  86. package/esm/funcs/marketplaceGetResource.js.map +0 -1
  87. package/esm/funcs/marketplaceGetResources.d.ts +0 -20
  88. package/esm/funcs/marketplaceGetResources.d.ts.map +0 -1
  89. package/esm/funcs/marketplaceGetResources.js +0 -86
  90. package/esm/funcs/marketplaceGetResources.js.map +0 -1
  91. package/esm/mcp-server/tools/marketplaceDeleteResource.d.ts +0 -7
  92. package/esm/mcp-server/tools/marketplaceDeleteResource.d.ts.map +0 -1
  93. package/esm/mcp-server/tools/marketplaceDeleteResource.js +0 -27
  94. package/esm/mcp-server/tools/marketplaceDeleteResource.js.map +0 -1
  95. package/esm/mcp-server/tools/marketplaceGetResource.d.ts +0 -7
  96. package/esm/mcp-server/tools/marketplaceGetResource.d.ts.map +0 -1
  97. package/esm/mcp-server/tools/marketplaceGetResource.js +0 -28
  98. package/esm/mcp-server/tools/marketplaceGetResource.js.map +0 -1
  99. package/esm/mcp-server/tools/marketplaceGetResources.d.ts +0 -7
  100. package/esm/mcp-server/tools/marketplaceGetResources.d.ts.map +0 -1
  101. package/esm/mcp-server/tools/marketplaceGetResources.js +0 -28
  102. package/esm/mcp-server/tools/marketplaceGetResources.js.map +0 -1
  103. package/esm/models/deleteresourceop.d.ts +0 -31
  104. package/esm/models/deleteresourceop.d.ts.map +0 -1
  105. package/esm/models/deleteresourceop.js +0 -33
  106. package/esm/models/deleteresourceop.js.map +0 -1
  107. package/esm/models/getresourceop.d.ts +0 -293
  108. package/esm/models/getresourceop.d.ts.map +0 -1
  109. package/esm/models/getresourceop.js +0 -250
  110. package/esm/models/getresourceop.js.map +0 -1
  111. package/esm/models/getresourcesop.d.ts +0 -310
  112. package/esm/models/getresourcesop.d.ts.map +0 -1
  113. package/esm/models/getresourcesop.js +0 -278
  114. package/esm/models/getresourcesop.js.map +0 -1
  115. package/src/funcs/marketplaceDeleteResource.ts +0 -205
  116. package/src/funcs/marketplaceGetResource.ts +0 -206
  117. package/src/funcs/marketplaceGetResources.ts +0 -202
  118. package/src/mcp-server/tools/marketplaceDeleteResource.ts +0 -35
  119. package/src/mcp-server/tools/marketplaceGetResource.ts +0 -37
  120. package/src/mcp-server/tools/marketplaceGetResources.ts +0 -37
  121. package/src/models/deleteresourceop.ts +0 -70
  122. package/src/models/getresourceop.ts +0 -545
  123. package/src/models/getresourcesop.ts +0 -604
@@ -1,293 +0,0 @@
1
- import * as z from "zod";
2
- import { ClosedEnum } from "../types/enums.js";
3
- import { Result as SafeParseResult } from "../types/fp.js";
4
- import { SDKValidationError } from "./sdkvalidationerror.js";
5
- export type GetResourceRequest = {
6
- /**
7
- * The ID of the integration configuration (installation) the resource belongs to
8
- */
9
- integrationConfigurationId: string;
10
- /**
11
- * The ID provided by the 3rd party provider for the given resource
12
- */
13
- resourceId: string;
14
- };
15
- /**
16
- * The current status of the resource
17
- */
18
- export declare const GetResourceStatus: {
19
- readonly Ready: "ready";
20
- readonly Pending: "pending";
21
- readonly Suspended: "suspended";
22
- readonly Resumed: "resumed";
23
- readonly Uninstalled: "uninstalled";
24
- readonly Error: "error";
25
- };
26
- /**
27
- * The current status of the resource
28
- */
29
- export type GetResourceStatus = ClosedEnum<typeof GetResourceStatus>;
30
- export type Experimentation = {
31
- edgeConfigSyncingEnabled?: boolean | undefined;
32
- edgeConfigId?: string | undefined;
33
- edgeConfigTokenId?: string | undefined;
34
- };
35
- /**
36
- * Any settings provided for the resource to support its product's protocols
37
- */
38
- export type ProtocolSettings = {
39
- experimentation?: Experimentation | undefined;
40
- };
41
- export declare const GetResourceLevel: {
42
- readonly Error: "error";
43
- readonly Info: "info";
44
- readonly Warn: "warn";
45
- };
46
- export type GetResourceLevel = ClosedEnum<typeof GetResourceLevel>;
47
- /**
48
- * The notification, if set, displayed to the user when viewing the resource in Vercel
49
- */
50
- export type GetResourceNotification = {
51
- level: GetResourceLevel;
52
- title: string;
53
- message?: string | undefined;
54
- href?: string | undefined;
55
- };
56
- export type Metadata = string | number | boolean | Array<string> | Array<number>;
57
- export type GetResourceResponseBody = {
58
- /**
59
- * The ID provided by the 3rd party provider for the given resource
60
- */
61
- id: string;
62
- /**
63
- * The ID assigned by Vercel for the given resource
64
- */
65
- internalId: string;
66
- /**
67
- * The name of the resource as it is recorded in Vercel
68
- */
69
- name: string;
70
- /**
71
- * The current status of the resource
72
- */
73
- status?: GetResourceStatus | undefined;
74
- /**
75
- * The ID of the product the resource is derived from
76
- */
77
- productId: string;
78
- /**
79
- * Any settings provided for the resource to support its product's protocols
80
- */
81
- protocolSettings?: ProtocolSettings | undefined;
82
- /**
83
- * The notification, if set, displayed to the user when viewing the resource in Vercel
84
- */
85
- notification?: GetResourceNotification | undefined;
86
- /**
87
- * The ID of the billing plan the resource is subscribed to, if applicable
88
- */
89
- billingPlanId?: string | undefined;
90
- /**
91
- * The configured metadata for the resource as defined by its product's Metadata Schema
92
- */
93
- metadata?: {
94
- [k: string]: string | number | boolean | Array<string> | Array<number>;
95
- } | undefined;
96
- };
97
- /** @internal */
98
- export declare const GetResourceRequest$inboundSchema: z.ZodType<GetResourceRequest, z.ZodTypeDef, unknown>;
99
- /** @internal */
100
- export type GetResourceRequest$Outbound = {
101
- integrationConfigurationId: string;
102
- resourceId: string;
103
- };
104
- /** @internal */
105
- export declare const GetResourceRequest$outboundSchema: z.ZodType<GetResourceRequest$Outbound, z.ZodTypeDef, GetResourceRequest>;
106
- /**
107
- * @internal
108
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
109
- */
110
- export declare namespace GetResourceRequest$ {
111
- /** @deprecated use `GetResourceRequest$inboundSchema` instead. */
112
- const inboundSchema: z.ZodType<GetResourceRequest, z.ZodTypeDef, unknown>;
113
- /** @deprecated use `GetResourceRequest$outboundSchema` instead. */
114
- const outboundSchema: z.ZodType<GetResourceRequest$Outbound, z.ZodTypeDef, GetResourceRequest>;
115
- /** @deprecated use `GetResourceRequest$Outbound` instead. */
116
- type Outbound = GetResourceRequest$Outbound;
117
- }
118
- export declare function getResourceRequestToJSON(getResourceRequest: GetResourceRequest): string;
119
- export declare function getResourceRequestFromJSON(jsonString: string): SafeParseResult<GetResourceRequest, SDKValidationError>;
120
- /** @internal */
121
- export declare const GetResourceStatus$inboundSchema: z.ZodNativeEnum<typeof GetResourceStatus>;
122
- /** @internal */
123
- export declare const GetResourceStatus$outboundSchema: z.ZodNativeEnum<typeof GetResourceStatus>;
124
- /**
125
- * @internal
126
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
127
- */
128
- export declare namespace GetResourceStatus$ {
129
- /** @deprecated use `GetResourceStatus$inboundSchema` instead. */
130
- const inboundSchema: z.ZodNativeEnum<{
131
- readonly Ready: "ready";
132
- readonly Pending: "pending";
133
- readonly Suspended: "suspended";
134
- readonly Resumed: "resumed";
135
- readonly Uninstalled: "uninstalled";
136
- readonly Error: "error";
137
- }>;
138
- /** @deprecated use `GetResourceStatus$outboundSchema` instead. */
139
- const outboundSchema: z.ZodNativeEnum<{
140
- readonly Ready: "ready";
141
- readonly Pending: "pending";
142
- readonly Suspended: "suspended";
143
- readonly Resumed: "resumed";
144
- readonly Uninstalled: "uninstalled";
145
- readonly Error: "error";
146
- }>;
147
- }
148
- /** @internal */
149
- export declare const Experimentation$inboundSchema: z.ZodType<Experimentation, z.ZodTypeDef, unknown>;
150
- /** @internal */
151
- export type Experimentation$Outbound = {
152
- edgeConfigSyncingEnabled?: boolean | undefined;
153
- edgeConfigId?: string | undefined;
154
- edgeConfigTokenId?: string | undefined;
155
- };
156
- /** @internal */
157
- export declare const Experimentation$outboundSchema: z.ZodType<Experimentation$Outbound, z.ZodTypeDef, Experimentation>;
158
- /**
159
- * @internal
160
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
161
- */
162
- export declare namespace Experimentation$ {
163
- /** @deprecated use `Experimentation$inboundSchema` instead. */
164
- const inboundSchema: z.ZodType<Experimentation, z.ZodTypeDef, unknown>;
165
- /** @deprecated use `Experimentation$outboundSchema` instead. */
166
- const outboundSchema: z.ZodType<Experimentation$Outbound, z.ZodTypeDef, Experimentation>;
167
- /** @deprecated use `Experimentation$Outbound` instead. */
168
- type Outbound = Experimentation$Outbound;
169
- }
170
- export declare function experimentationToJSON(experimentation: Experimentation): string;
171
- export declare function experimentationFromJSON(jsonString: string): SafeParseResult<Experimentation, SDKValidationError>;
172
- /** @internal */
173
- export declare const ProtocolSettings$inboundSchema: z.ZodType<ProtocolSettings, z.ZodTypeDef, unknown>;
174
- /** @internal */
175
- export type ProtocolSettings$Outbound = {
176
- experimentation?: Experimentation$Outbound | undefined;
177
- };
178
- /** @internal */
179
- export declare const ProtocolSettings$outboundSchema: z.ZodType<ProtocolSettings$Outbound, z.ZodTypeDef, ProtocolSettings>;
180
- /**
181
- * @internal
182
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
183
- */
184
- export declare namespace ProtocolSettings$ {
185
- /** @deprecated use `ProtocolSettings$inboundSchema` instead. */
186
- const inboundSchema: z.ZodType<ProtocolSettings, z.ZodTypeDef, unknown>;
187
- /** @deprecated use `ProtocolSettings$outboundSchema` instead. */
188
- const outboundSchema: z.ZodType<ProtocolSettings$Outbound, z.ZodTypeDef, ProtocolSettings>;
189
- /** @deprecated use `ProtocolSettings$Outbound` instead. */
190
- type Outbound = ProtocolSettings$Outbound;
191
- }
192
- export declare function protocolSettingsToJSON(protocolSettings: ProtocolSettings): string;
193
- export declare function protocolSettingsFromJSON(jsonString: string): SafeParseResult<ProtocolSettings, SDKValidationError>;
194
- /** @internal */
195
- export declare const GetResourceLevel$inboundSchema: z.ZodNativeEnum<typeof GetResourceLevel>;
196
- /** @internal */
197
- export declare const GetResourceLevel$outboundSchema: z.ZodNativeEnum<typeof GetResourceLevel>;
198
- /**
199
- * @internal
200
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
201
- */
202
- export declare namespace GetResourceLevel$ {
203
- /** @deprecated use `GetResourceLevel$inboundSchema` instead. */
204
- const inboundSchema: z.ZodNativeEnum<{
205
- readonly Error: "error";
206
- readonly Info: "info";
207
- readonly Warn: "warn";
208
- }>;
209
- /** @deprecated use `GetResourceLevel$outboundSchema` instead. */
210
- const outboundSchema: z.ZodNativeEnum<{
211
- readonly Error: "error";
212
- readonly Info: "info";
213
- readonly Warn: "warn";
214
- }>;
215
- }
216
- /** @internal */
217
- export declare const GetResourceNotification$inboundSchema: z.ZodType<GetResourceNotification, z.ZodTypeDef, unknown>;
218
- /** @internal */
219
- export type GetResourceNotification$Outbound = {
220
- level: string;
221
- title: string;
222
- message?: string | undefined;
223
- href?: string | undefined;
224
- };
225
- /** @internal */
226
- export declare const GetResourceNotification$outboundSchema: z.ZodType<GetResourceNotification$Outbound, z.ZodTypeDef, GetResourceNotification>;
227
- /**
228
- * @internal
229
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
230
- */
231
- export declare namespace GetResourceNotification$ {
232
- /** @deprecated use `GetResourceNotification$inboundSchema` instead. */
233
- const inboundSchema: z.ZodType<GetResourceNotification, z.ZodTypeDef, unknown>;
234
- /** @deprecated use `GetResourceNotification$outboundSchema` instead. */
235
- const outboundSchema: z.ZodType<GetResourceNotification$Outbound, z.ZodTypeDef, GetResourceNotification>;
236
- /** @deprecated use `GetResourceNotification$Outbound` instead. */
237
- type Outbound = GetResourceNotification$Outbound;
238
- }
239
- export declare function getResourceNotificationToJSON(getResourceNotification: GetResourceNotification): string;
240
- export declare function getResourceNotificationFromJSON(jsonString: string): SafeParseResult<GetResourceNotification, SDKValidationError>;
241
- /** @internal */
242
- export declare const Metadata$inboundSchema: z.ZodType<Metadata, z.ZodTypeDef, unknown>;
243
- /** @internal */
244
- export type Metadata$Outbound = string | number | boolean | Array<string> | Array<number>;
245
- /** @internal */
246
- export declare const Metadata$outboundSchema: z.ZodType<Metadata$Outbound, z.ZodTypeDef, Metadata>;
247
- /**
248
- * @internal
249
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
250
- */
251
- export declare namespace Metadata$ {
252
- /** @deprecated use `Metadata$inboundSchema` instead. */
253
- const inboundSchema: z.ZodType<Metadata, z.ZodTypeDef, unknown>;
254
- /** @deprecated use `Metadata$outboundSchema` instead. */
255
- const outboundSchema: z.ZodType<Metadata$Outbound, z.ZodTypeDef, Metadata>;
256
- /** @deprecated use `Metadata$Outbound` instead. */
257
- type Outbound = Metadata$Outbound;
258
- }
259
- export declare function metadataToJSON(metadata: Metadata): string;
260
- export declare function metadataFromJSON(jsonString: string): SafeParseResult<Metadata, SDKValidationError>;
261
- /** @internal */
262
- export declare const GetResourceResponseBody$inboundSchema: z.ZodType<GetResourceResponseBody, z.ZodTypeDef, unknown>;
263
- /** @internal */
264
- export type GetResourceResponseBody$Outbound = {
265
- id: string;
266
- internalId: string;
267
- name: string;
268
- status?: string | undefined;
269
- productId: string;
270
- protocolSettings?: ProtocolSettings$Outbound | undefined;
271
- notification?: GetResourceNotification$Outbound | undefined;
272
- billingPlanId?: string | undefined;
273
- metadata?: {
274
- [k: string]: string | number | boolean | Array<string> | Array<number>;
275
- } | undefined;
276
- };
277
- /** @internal */
278
- export declare const GetResourceResponseBody$outboundSchema: z.ZodType<GetResourceResponseBody$Outbound, z.ZodTypeDef, GetResourceResponseBody>;
279
- /**
280
- * @internal
281
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
282
- */
283
- export declare namespace GetResourceResponseBody$ {
284
- /** @deprecated use `GetResourceResponseBody$inboundSchema` instead. */
285
- const inboundSchema: z.ZodType<GetResourceResponseBody, z.ZodTypeDef, unknown>;
286
- /** @deprecated use `GetResourceResponseBody$outboundSchema` instead. */
287
- const outboundSchema: z.ZodType<GetResourceResponseBody$Outbound, z.ZodTypeDef, GetResourceResponseBody>;
288
- /** @deprecated use `GetResourceResponseBody$Outbound` instead. */
289
- type Outbound = GetResourceResponseBody$Outbound;
290
- }
291
- export declare function getResourceResponseBodyToJSON(getResourceResponseBody: GetResourceResponseBody): string;
292
- export declare function getResourceResponseBodyFromJSON(jsonString: string): SafeParseResult<GetResourceResponseBody, SDKValidationError>;
293
- //# sourceMappingURL=getresourceop.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getresourceop.d.ts","sourceRoot":"","sources":["../../src/models/getresourceop.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,0BAA0B,EAAE,MAAM,CAAC;IACnC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;CAOpB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAErE,MAAM,MAAM,eAAe,GAAG;IAC5B,wBAAwB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/C,YAAY,CAAC,EAAE,MAAM,GAAG,SAA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AAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,yBAAyB,GAAG,SAAS,CAAC;IACzD,YAAY,CAAC,EAAE,gCAAgC,GAAG,SAAS,CAAC;IAC5D,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,QAAQ,CAAC,EAAE;QACT,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;KACxE,GAAG,SAAS,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,gCAAgC,EAChC,CAAC,CAAC,UAAU,EACZ,uBAAuB,CAmBvB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,wBAAwB,CAAC;IACxC,uEAAuE;IAChE,MAAM,aAAa,2DAAwC,CAAC;IACnE,wEAAwE;IACjE,MAAM,cAAc,oFAAyC,CAAC;IACrE,kEAAkE;IAClE,KAAY,QAAQ,GAAG,gCAAgC,CAAC;CACzD;AAED,wBAAgB,6BAA6B,CAC3C,uBAAuB,EAAE,uBAAuB,GAC/C,MAAM,CAIR;AAED,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAM9D"}
@@ -1,250 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod";
5
- import { safeParse } from "../lib/schemas.js";
6
- /**
7
- * The current status of the resource
8
- */
9
- export const GetResourceStatus = {
10
- Ready: "ready",
11
- Pending: "pending",
12
- Suspended: "suspended",
13
- Resumed: "resumed",
14
- Uninstalled: "uninstalled",
15
- Error: "error",
16
- };
17
- export const GetResourceLevel = {
18
- Error: "error",
19
- Info: "info",
20
- Warn: "warn",
21
- };
22
- /** @internal */
23
- export const GetResourceRequest$inboundSchema = z.object({
24
- integrationConfigurationId: z.string(),
25
- resourceId: z.string(),
26
- });
27
- /** @internal */
28
- export const GetResourceRequest$outboundSchema = z.object({
29
- integrationConfigurationId: z.string(),
30
- resourceId: z.string(),
31
- });
32
- /**
33
- * @internal
34
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
35
- */
36
- export var GetResourceRequest$;
37
- (function (GetResourceRequest$) {
38
- /** @deprecated use `GetResourceRequest$inboundSchema` instead. */
39
- GetResourceRequest$.inboundSchema = GetResourceRequest$inboundSchema;
40
- /** @deprecated use `GetResourceRequest$outboundSchema` instead. */
41
- GetResourceRequest$.outboundSchema = GetResourceRequest$outboundSchema;
42
- })(GetResourceRequest$ || (GetResourceRequest$ = {}));
43
- export function getResourceRequestToJSON(getResourceRequest) {
44
- return JSON.stringify(GetResourceRequest$outboundSchema.parse(getResourceRequest));
45
- }
46
- export function getResourceRequestFromJSON(jsonString) {
47
- return safeParse(jsonString, (x) => GetResourceRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetResourceRequest' from JSON`);
48
- }
49
- /** @internal */
50
- export const GetResourceStatus$inboundSchema = z.nativeEnum(GetResourceStatus);
51
- /** @internal */
52
- export const GetResourceStatus$outboundSchema = GetResourceStatus$inboundSchema;
53
- /**
54
- * @internal
55
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
56
- */
57
- export var GetResourceStatus$;
58
- (function (GetResourceStatus$) {
59
- /** @deprecated use `GetResourceStatus$inboundSchema` instead. */
60
- GetResourceStatus$.inboundSchema = GetResourceStatus$inboundSchema;
61
- /** @deprecated use `GetResourceStatus$outboundSchema` instead. */
62
- GetResourceStatus$.outboundSchema = GetResourceStatus$outboundSchema;
63
- })(GetResourceStatus$ || (GetResourceStatus$ = {}));
64
- /** @internal */
65
- export const Experimentation$inboundSchema = z.object({
66
- edgeConfigSyncingEnabled: z.boolean().optional(),
67
- edgeConfigId: z.string().optional(),
68
- edgeConfigTokenId: z.string().optional(),
69
- });
70
- /** @internal */
71
- export const Experimentation$outboundSchema = z.object({
72
- edgeConfigSyncingEnabled: z.boolean().optional(),
73
- edgeConfigId: z.string().optional(),
74
- edgeConfigTokenId: z.string().optional(),
75
- });
76
- /**
77
- * @internal
78
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
79
- */
80
- export var Experimentation$;
81
- (function (Experimentation$) {
82
- /** @deprecated use `Experimentation$inboundSchema` instead. */
83
- Experimentation$.inboundSchema = Experimentation$inboundSchema;
84
- /** @deprecated use `Experimentation$outboundSchema` instead. */
85
- Experimentation$.outboundSchema = Experimentation$outboundSchema;
86
- })(Experimentation$ || (Experimentation$ = {}));
87
- export function experimentationToJSON(experimentation) {
88
- return JSON.stringify(Experimentation$outboundSchema.parse(experimentation));
89
- }
90
- export function experimentationFromJSON(jsonString) {
91
- return safeParse(jsonString, (x) => Experimentation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Experimentation' from JSON`);
92
- }
93
- /** @internal */
94
- export const ProtocolSettings$inboundSchema = z.object({
95
- experimentation: z.lazy(() => Experimentation$inboundSchema).optional(),
96
- });
97
- /** @internal */
98
- export const ProtocolSettings$outboundSchema = z.object({
99
- experimentation: z.lazy(() => Experimentation$outboundSchema).optional(),
100
- });
101
- /**
102
- * @internal
103
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
104
- */
105
- export var ProtocolSettings$;
106
- (function (ProtocolSettings$) {
107
- /** @deprecated use `ProtocolSettings$inboundSchema` instead. */
108
- ProtocolSettings$.inboundSchema = ProtocolSettings$inboundSchema;
109
- /** @deprecated use `ProtocolSettings$outboundSchema` instead. */
110
- ProtocolSettings$.outboundSchema = ProtocolSettings$outboundSchema;
111
- })(ProtocolSettings$ || (ProtocolSettings$ = {}));
112
- export function protocolSettingsToJSON(protocolSettings) {
113
- return JSON.stringify(ProtocolSettings$outboundSchema.parse(protocolSettings));
114
- }
115
- export function protocolSettingsFromJSON(jsonString) {
116
- return safeParse(jsonString, (x) => ProtocolSettings$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProtocolSettings' from JSON`);
117
- }
118
- /** @internal */
119
- export const GetResourceLevel$inboundSchema = z.nativeEnum(GetResourceLevel);
120
- /** @internal */
121
- export const GetResourceLevel$outboundSchema = GetResourceLevel$inboundSchema;
122
- /**
123
- * @internal
124
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
125
- */
126
- export var GetResourceLevel$;
127
- (function (GetResourceLevel$) {
128
- /** @deprecated use `GetResourceLevel$inboundSchema` instead. */
129
- GetResourceLevel$.inboundSchema = GetResourceLevel$inboundSchema;
130
- /** @deprecated use `GetResourceLevel$outboundSchema` instead. */
131
- GetResourceLevel$.outboundSchema = GetResourceLevel$outboundSchema;
132
- })(GetResourceLevel$ || (GetResourceLevel$ = {}));
133
- /** @internal */
134
- export const GetResourceNotification$inboundSchema = z.object({
135
- level: GetResourceLevel$inboundSchema,
136
- title: z.string(),
137
- message: z.string().optional(),
138
- href: z.string().optional(),
139
- });
140
- /** @internal */
141
- export const GetResourceNotification$outboundSchema = z.object({
142
- level: GetResourceLevel$outboundSchema,
143
- title: z.string(),
144
- message: z.string().optional(),
145
- href: z.string().optional(),
146
- });
147
- /**
148
- * @internal
149
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
150
- */
151
- export var GetResourceNotification$;
152
- (function (GetResourceNotification$) {
153
- /** @deprecated use `GetResourceNotification$inboundSchema` instead. */
154
- GetResourceNotification$.inboundSchema = GetResourceNotification$inboundSchema;
155
- /** @deprecated use `GetResourceNotification$outboundSchema` instead. */
156
- GetResourceNotification$.outboundSchema = GetResourceNotification$outboundSchema;
157
- })(GetResourceNotification$ || (GetResourceNotification$ = {}));
158
- export function getResourceNotificationToJSON(getResourceNotification) {
159
- return JSON.stringify(GetResourceNotification$outboundSchema.parse(getResourceNotification));
160
- }
161
- export function getResourceNotificationFromJSON(jsonString) {
162
- return safeParse(jsonString, (x) => GetResourceNotification$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetResourceNotification' from JSON`);
163
- }
164
- /** @internal */
165
- export const Metadata$inboundSchema = z.union([
166
- z.string(),
167
- z.number(),
168
- z.boolean(),
169
- z.array(z.string()),
170
- z.array(z.number()),
171
- ]);
172
- /** @internal */
173
- export const Metadata$outboundSchema = z.union([
174
- z.string(),
175
- z.number(),
176
- z.boolean(),
177
- z.array(z.string()),
178
- z.array(z.number()),
179
- ]);
180
- /**
181
- * @internal
182
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
183
- */
184
- export var Metadata$;
185
- (function (Metadata$) {
186
- /** @deprecated use `Metadata$inboundSchema` instead. */
187
- Metadata$.inboundSchema = Metadata$inboundSchema;
188
- /** @deprecated use `Metadata$outboundSchema` instead. */
189
- Metadata$.outboundSchema = Metadata$outboundSchema;
190
- })(Metadata$ || (Metadata$ = {}));
191
- export function metadataToJSON(metadata) {
192
- return JSON.stringify(Metadata$outboundSchema.parse(metadata));
193
- }
194
- export function metadataFromJSON(jsonString) {
195
- return safeParse(jsonString, (x) => Metadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Metadata' from JSON`);
196
- }
197
- /** @internal */
198
- export const GetResourceResponseBody$inboundSchema = z.object({
199
- id: z.string(),
200
- internalId: z.string(),
201
- name: z.string(),
202
- status: GetResourceStatus$inboundSchema.optional(),
203
- productId: z.string(),
204
- protocolSettings: z.lazy(() => ProtocolSettings$inboundSchema).optional(),
205
- notification: z.lazy(() => GetResourceNotification$inboundSchema).optional(),
206
- billingPlanId: z.string().optional(),
207
- metadata: z.record(z.union([
208
- z.string(),
209
- z.number(),
210
- z.boolean(),
211
- z.array(z.string()),
212
- z.array(z.number()),
213
- ])).optional(),
214
- });
215
- /** @internal */
216
- export const GetResourceResponseBody$outboundSchema = z.object({
217
- id: z.string(),
218
- internalId: z.string(),
219
- name: z.string(),
220
- status: GetResourceStatus$outboundSchema.optional(),
221
- productId: z.string(),
222
- protocolSettings: z.lazy(() => ProtocolSettings$outboundSchema).optional(),
223
- notification: z.lazy(() => GetResourceNotification$outboundSchema).optional(),
224
- billingPlanId: z.string().optional(),
225
- metadata: z.record(z.union([
226
- z.string(),
227
- z.number(),
228
- z.boolean(),
229
- z.array(z.string()),
230
- z.array(z.number()),
231
- ])).optional(),
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 var GetResourceResponseBody$;
238
- (function (GetResourceResponseBody$) {
239
- /** @deprecated use `GetResourceResponseBody$inboundSchema` instead. */
240
- GetResourceResponseBody$.inboundSchema = GetResourceResponseBody$inboundSchema;
241
- /** @deprecated use `GetResourceResponseBody$outboundSchema` instead. */
242
- GetResourceResponseBody$.outboundSchema = GetResourceResponseBody$outboundSchema;
243
- })(GetResourceResponseBody$ || (GetResourceResponseBody$ = {}));
244
- export function getResourceResponseBodyToJSON(getResourceResponseBody) {
245
- return JSON.stringify(GetResourceResponseBody$outboundSchema.parse(getResourceResponseBody));
246
- }
247
- export function getResourceResponseBodyFromJSON(jsonString) {
248
- return safeParse(jsonString, (x) => GetResourceResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetResourceResponseBody' from JSON`);
249
- }
250
- //# sourceMappingURL=getresourceop.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getresourceop.js","sourceRoot":"","sources":["../../src/models/getresourceop.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAgB9C;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,aAAa;IA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