@vercel/sdk 1.11.2 → 1.12.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 +60 -59
- package/bin/mcp-server.js +4502 -3066
- package/bin/mcp-server.js.map +46 -40
- package/docs/sdks/deployments/README.md +8 -0
- package/docs/sdks/edgecache/README.md +169 -0
- package/docs/sdks/integrations/README.md +83 -0
- package/docs/sdks/projects/README.md +0 -2
- package/docs/sdks/vercel/README.md +0 -74
- package/esm/__tests__/deployments.test.js +1 -1
- package/esm/__tests__/deployments.test.js.map +1 -1
- package/esm/__tests__/domains.test.js +3 -12
- package/esm/__tests__/domains.test.js.map +1 -1
- package/esm/__tests__/integrations.test.js +28 -1
- package/esm/__tests__/integrations.test.js.map +1 -1
- package/esm/__tests__/logdrains.test.js +9 -0
- package/esm/__tests__/logdrains.test.js.map +1 -1
- package/esm/__tests__/rollingrelease.test.js +2 -6
- package/esm/__tests__/rollingrelease.test.js.map +1 -1
- package/esm/__tests__/security.test.js +4 -4
- package/esm/__tests__/security.test.js.map +1 -1
- package/esm/__tests__/vercel.test.js +3 -27
- package/esm/__tests__/vercel.test.js.map +1 -1
- package/esm/funcs/deploymentsGetDeployments.js +1 -0
- package/esm/funcs/deploymentsGetDeployments.js.map +1 -1
- package/esm/funcs/edgeCacheDangerouslyDeleteByTags.d.ts +20 -0
- package/esm/funcs/edgeCacheDangerouslyDeleteByTags.d.ts.map +1 -0
- package/esm/funcs/edgeCacheDangerouslyDeleteByTags.js +91 -0
- package/esm/funcs/edgeCacheDangerouslyDeleteByTags.js.map +1 -0
- package/esm/funcs/{getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts → edgeCacheInvalidateByTags.d.ts} +9 -3
- package/esm/funcs/edgeCacheInvalidateByTags.d.ts.map +1 -0
- package/esm/funcs/edgeCacheInvalidateByTags.js +91 -0
- package/esm/funcs/edgeCacheInvalidateByTags.js.map +1 -0
- package/esm/funcs/integrationsGetBillingPlans.d.ts +20 -0
- package/esm/funcs/integrationsGetBillingPlans.d.ts.map +1 -0
- package/esm/funcs/{getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js → integrationsGetBillingPlans.js} +21 -9
- package/esm/funcs/integrationsGetBillingPlans.js.map +1 -0
- package/esm/funcs/marketplaceImportResource.js +2 -2
- package/esm/funcs/marketplaceImportResource.js.map +1 -1
- package/esm/funcs/marketplaceUpdateResourceSecrets.js +2 -2
- package/esm/funcs/marketplaceUpdateResourceSecrets.js.map +1 -1
- package/esm/funcs/marketplaceUpdateResourceSecretsById.js +2 -2
- package/esm/funcs/marketplaceUpdateResourceSecretsById.js.map +1 -1
- package/esm/funcs/projectsGetProjects.js +0 -1
- package/esm/funcs/projectsGetProjects.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/url.js +1 -1
- package/esm/lib/url.js.map +1 -1
- 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 +7 -3
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/edgeCacheDangerouslyDeleteByTags.d.ts +7 -0
- package/esm/mcp-server/tools/edgeCacheDangerouslyDeleteByTags.d.ts.map +1 -0
- package/esm/mcp-server/tools/edgeCacheDangerouslyDeleteByTags.js +27 -0
- package/esm/mcp-server/tools/edgeCacheDangerouslyDeleteByTags.js.map +1 -0
- package/esm/mcp-server/tools/edgeCacheInvalidateByTags.d.ts +7 -0
- package/esm/mcp-server/tools/edgeCacheInvalidateByTags.d.ts.map +1 -0
- package/esm/mcp-server/tools/edgeCacheInvalidateByTags.js +27 -0
- package/esm/mcp-server/tools/edgeCacheInvalidateByTags.js.map +1 -0
- package/esm/mcp-server/tools/integrationsGetBillingPlans.d.ts +7 -0
- package/esm/mcp-server/tools/integrationsGetBillingPlans.d.ts.map +1 -0
- package/esm/mcp-server/tools/integrationsGetBillingPlans.js +28 -0
- package/esm/mcp-server/tools/integrationsGetBillingPlans.js.map +1 -0
- package/esm/models/approverollingreleasestageop.d.ts +15 -0
- package/esm/models/approverollingreleasestageop.d.ts.map +1 -1
- package/esm/models/approverollingreleasestageop.js +6 -0
- package/esm/models/approverollingreleasestageop.js.map +1 -1
- package/esm/models/canceldeploymentop.d.ts +63 -50
- package/esm/models/canceldeploymentop.d.ts.map +1 -1
- package/esm/models/canceldeploymentop.js +59 -54
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/completerollingreleaseop.d.ts +15 -0
- package/esm/models/completerollingreleaseop.d.ts.map +1 -1
- package/esm/models/completerollingreleaseop.js +6 -0
- package/esm/models/completerollingreleaseop.js.map +1 -1
- package/esm/models/createdeploymentop.d.ts +289 -144
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +259 -124
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/createedgeconfigop.d.ts +2 -2
- package/esm/models/createedgeconfigop.d.ts.map +1 -1
- package/esm/models/createedgeconfigop.js +2 -2
- package/esm/models/createedgeconfigop.js.map +1 -1
- package/esm/models/createintegrationstoredirectop.d.ts +906 -308
- package/esm/models/createintegrationstoredirectop.d.ts.map +1 -1
- package/esm/models/createintegrationstoredirectop.js +1077 -371
- package/esm/models/createintegrationstoredirectop.js.map +1 -1
- package/esm/models/createlogdrainop.d.ts +126 -4
- package/esm/models/createlogdrainop.d.ts.map +1 -1
- package/esm/models/createlogdrainop.js +129 -1
- package/esm/models/createlogdrainop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +43 -30
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +24 -18
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/dangerouslydeletebytagsop.d.ts +117 -0
- package/esm/models/dangerouslydeletebytagsop.d.ts.map +1 -0
- package/esm/models/dangerouslydeletebytagsop.js +117 -0
- package/esm/models/dangerouslydeletebytagsop.js.map +1 -0
- package/esm/models/getbillingplansop.d.ts +257 -0
- package/esm/models/getbillingplansop.d.ts.map +1 -0
- package/esm/models/getbillingplansop.js +244 -0
- package/esm/models/getbillingplansop.js.map +1 -0
- package/esm/models/getconfigurationop.d.ts +8 -8
- package/esm/models/getconfigurationop.d.ts.map +1 -1
- package/esm/models/getconfigurationop.js +12 -12
- package/esm/models/getconfigurationop.js.map +1 -1
- package/esm/models/getconfigurationproductsop.d.ts +909 -390
- package/esm/models/getconfigurationproductsop.d.ts.map +1 -1
- package/esm/models/getconfigurationproductsop.js +1104 -471
- package/esm/models/getconfigurationproductsop.js.map +1 -1
- package/esm/models/getconfigurationsop.d.ts +3 -0
- package/esm/models/getconfigurationsop.d.ts.map +1 -1
- package/esm/models/getconfigurationsop.js +1 -0
- package/esm/models/getconfigurationsop.js.map +1 -1
- package/esm/models/getdeploymentop.d.ts +33 -20
- package/esm/models/getdeploymentop.d.ts.map +1 -1
- package/esm/models/getdeploymentop.js +25 -20
- package/esm/models/getdeploymentop.js.map +1 -1
- package/esm/models/getdeploymentsop.d.ts +8 -0
- package/esm/models/getdeploymentsop.d.ts.map +1 -1
- package/esm/models/getdeploymentsop.js +3 -0
- package/esm/models/getdeploymentsop.js.map +1 -1
- package/esm/models/getedgeconfigop.d.ts +2 -2
- package/esm/models/getedgeconfigop.d.ts.map +1 -1
- package/esm/models/getedgeconfigop.js +2 -2
- package/esm/models/getedgeconfigop.js.map +1 -1
- package/esm/models/getintegrationlogdrainsop.d.ts +125 -0
- package/esm/models/getintegrationlogdrainsop.d.ts.map +1 -1
- package/esm/models/getintegrationlogdrainsop.js +130 -0
- package/esm/models/getintegrationlogdrainsop.js.map +1 -1
- package/esm/models/getprojectsop.d.ts +206 -178
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +207 -166
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/getrollingreleaseconfigop.d.ts +5 -0
- package/esm/models/getrollingreleaseconfigop.d.ts.map +1 -1
- package/esm/models/getrollingreleaseconfigop.js +2 -0
- package/esm/models/getrollingreleaseconfigop.js.map +1 -1
- package/esm/models/getrollingreleaseop.d.ts +15 -0
- package/esm/models/getrollingreleaseop.d.ts.map +1 -1
- package/esm/models/getrollingreleaseop.js +6 -0
- package/esm/models/getrollingreleaseop.js.map +1 -1
- package/esm/models/getwebhooksop.d.ts +3 -0
- package/esm/models/getwebhooksop.d.ts.map +1 -1
- package/esm/models/getwebhooksop.js +1 -0
- package/esm/models/getwebhooksop.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 +17 -15
- package/esm/models/importresourceop.js.map +1 -1
- package/esm/models/invalidatebytagsop.d.ts +115 -0
- package/esm/models/invalidatebytagsop.d.ts.map +1 -0
- package/esm/models/invalidatebytagsop.js +116 -0
- package/esm/models/invalidatebytagsop.js.map +1 -0
- package/esm/models/updateedgeconfigop.d.ts +2 -2
- package/esm/models/updateedgeconfigop.d.ts.map +1 -1
- package/esm/models/updateedgeconfigop.js +2 -2
- package/esm/models/updateedgeconfigop.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +10 -0
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +5 -0
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +149 -136
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +146 -140
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/updaterollingreleaseconfigop.d.ts +5 -0
- package/esm/models/updaterollingreleaseconfigop.d.ts.map +1 -1
- package/esm/models/updaterollingreleaseconfigop.js +2 -0
- package/esm/models/updaterollingreleaseconfigop.js.map +1 -1
- package/esm/models/userevent.d.ts +1300 -1049
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +1654 -1406
- package/esm/models/userevent.js.map +1 -1
- package/esm/sdk/edgecache.d.ts +20 -0
- package/esm/sdk/edgecache.d.ts.map +1 -0
- package/esm/sdk/edgecache.js +28 -0
- package/esm/sdk/edgecache.js.map +1 -0
- package/esm/sdk/integrations.d.ts +8 -0
- package/esm/sdk/integrations.d.ts.map +1 -1
- package/esm/sdk/integrations.js +10 -0
- package/esm/sdk/integrations.js.map +1 -1
- package/esm/sdk/sdk.d.ts +4 -3
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +4 -5
- package/esm/sdk/sdk.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/deployments.test.ts +1 -1
- package/src/__tests__/domains.test.ts +3 -12
- package/src/__tests__/integrations.test.ts +32 -1
- package/src/__tests__/logdrains.test.ts +9 -0
- package/src/__tests__/rollingrelease.test.ts +2 -6
- package/src/__tests__/security.test.ts +4 -4
- package/src/__tests__/vercel.test.ts +4 -33
- package/src/funcs/deploymentsGetDeployments.ts +1 -0
- package/src/funcs/edgeCacheDangerouslyDeleteByTags.ts +199 -0
- package/src/funcs/edgeCacheInvalidateByTags.ts +199 -0
- package/src/funcs/{getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.ts → integrationsGetBillingPlans.ts} +30 -24
- package/src/funcs/marketplaceImportResource.ts +2 -2
- package/src/funcs/marketplaceUpdateResourceSecrets.ts +2 -2
- package/src/funcs/marketplaceUpdateResourceSecretsById.ts +2 -2
- package/src/funcs/projectsGetProjects.ts +0 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/url.ts +1 -1
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +7 -5
- package/src/mcp-server/tools/edgeCacheDangerouslyDeleteByTags.ts +37 -0
- package/src/mcp-server/tools/edgeCacheInvalidateByTags.ts +35 -0
- package/src/mcp-server/tools/integrationsGetBillingPlans.ts +37 -0
- package/src/models/approverollingreleasestageop.ts +21 -0
- package/src/models/canceldeploymentop.ts +127 -104
- package/src/models/completerollingreleaseop.ts +21 -0
- package/src/models/createdeploymentop.ts +532 -226
- package/src/models/createedgeconfigop.ts +4 -4
- package/src/models/createintegrationstoredirectop.ts +2459 -673
- package/src/models/createlogdrainop.ts +260 -2
- package/src/models/createprojectop.ts +43 -30
- package/src/models/dangerouslydeletebytagsop.ts +249 -0
- package/src/models/getbillingplansop.ts +508 -0
- package/src/models/getconfigurationop.ts +20 -15
- package/src/models/getconfigurationproductsop.ts +2433 -838
- package/src/models/getconfigurationsop.ts +1 -0
- package/src/models/getdeploymentop.ts +63 -48
- package/src/models/getdeploymentsop.ts +8 -0
- package/src/models/getedgeconfigop.ts +4 -4
- package/src/models/getintegrationlogdrainsop.ts +237 -0
- package/src/models/getprojectsop.ts +434 -336
- package/src/models/getrollingreleaseconfigop.ts +7 -0
- package/src/models/getrollingreleaseop.ts +21 -0
- package/src/models/getwebhooksop.ts +1 -0
- package/src/models/importresourceop.ts +27 -29
- package/src/models/invalidatebytagsop.ts +227 -0
- package/src/models/updateedgeconfigop.ts +4 -4
- package/src/models/updateprojectdatacacheop.ts +12 -0
- package/src/models/updateprojectop.ts +299 -286
- package/src/models/updaterollingreleaseconfigop.ts +7 -0
- package/src/models/userevent.ts +3017 -2473
- package/src/sdk/edgecache.ts +46 -0
- package/src/sdk/integrations.ts +22 -0
- package/src/sdk/sdk.ts +7 -23
- package/vercel-spec.json +3578 -2444
- package/esm/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts.map +0 -1
- package/esm/funcs/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js.map +0 -1
- package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts +0 -7
- package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.d.ts.map +0 -1
- package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js +0 -26
- package/esm/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.js.map +0 -1
- package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.d.ts +0 -247
- package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.d.ts.map +0 -1
- package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.js +0 -246
- package/esm/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.js.map +0 -1
- package/src/mcp-server/tools/getV1IntegrationsIntegrationIntegrationIdOrSlugProductsProductIdOrSlugPlans.ts +0 -41
- package/src/models/getv1integrationsintegrationintegrationidorslugproductsproductidorslugplansop.ts +0 -575
|
@@ -79,6 +79,30 @@ export type GetIntegrationLogDrainsEnvironments = ClosedEnum<
|
|
|
79
79
|
typeof GetIntegrationLogDrainsEnvironments
|
|
80
80
|
>;
|
|
81
81
|
|
|
82
|
+
export const SourceKind = {
|
|
83
|
+
Integration: "integration",
|
|
84
|
+
} as const;
|
|
85
|
+
export type SourceKind = ClosedEnum<typeof SourceKind>;
|
|
86
|
+
|
|
87
|
+
export type Source2 = {
|
|
88
|
+
kind: SourceKind;
|
|
89
|
+
resourceId?: string | undefined;
|
|
90
|
+
externalResourceId?: string | undefined;
|
|
91
|
+
integrationId: string;
|
|
92
|
+
integrationConfigurationId: string;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
export const Kind = {
|
|
96
|
+
SelfServed: "self-served",
|
|
97
|
+
} as const;
|
|
98
|
+
export type Kind = ClosedEnum<typeof Kind>;
|
|
99
|
+
|
|
100
|
+
export type Source1 = {
|
|
101
|
+
kind: Kind;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export type GetIntegrationLogDrainsSource = Source2 | Source1;
|
|
105
|
+
|
|
82
106
|
export type GetIntegrationLogDrainsResponseBody = {
|
|
83
107
|
/**
|
|
84
108
|
* The oauth2 client application id that created this log drain
|
|
@@ -141,6 +165,7 @@ export type GetIntegrationLogDrainsResponseBody = {
|
|
|
141
165
|
* The sampling rate of log drain
|
|
142
166
|
*/
|
|
143
167
|
samplingRate?: number | undefined;
|
|
168
|
+
source: Source2 | Source1;
|
|
144
169
|
};
|
|
145
170
|
|
|
146
171
|
/** @internal */
|
|
@@ -289,6 +314,209 @@ export namespace GetIntegrationLogDrainsEnvironments$ {
|
|
|
289
314
|
GetIntegrationLogDrainsEnvironments$outboundSchema;
|
|
290
315
|
}
|
|
291
316
|
|
|
317
|
+
/** @internal */
|
|
318
|
+
export const SourceKind$inboundSchema: z.ZodNativeEnum<typeof SourceKind> = z
|
|
319
|
+
.nativeEnum(SourceKind);
|
|
320
|
+
|
|
321
|
+
/** @internal */
|
|
322
|
+
export const SourceKind$outboundSchema: z.ZodNativeEnum<typeof SourceKind> =
|
|
323
|
+
SourceKind$inboundSchema;
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* @internal
|
|
327
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
328
|
+
*/
|
|
329
|
+
export namespace SourceKind$ {
|
|
330
|
+
/** @deprecated use `SourceKind$inboundSchema` instead. */
|
|
331
|
+
export const inboundSchema = SourceKind$inboundSchema;
|
|
332
|
+
/** @deprecated use `SourceKind$outboundSchema` instead. */
|
|
333
|
+
export const outboundSchema = SourceKind$outboundSchema;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/** @internal */
|
|
337
|
+
export const Source2$inboundSchema: z.ZodType<Source2, z.ZodTypeDef, unknown> =
|
|
338
|
+
z.object({
|
|
339
|
+
kind: SourceKind$inboundSchema,
|
|
340
|
+
resourceId: z.string().optional(),
|
|
341
|
+
externalResourceId: z.string().optional(),
|
|
342
|
+
integrationId: z.string(),
|
|
343
|
+
integrationConfigurationId: z.string(),
|
|
344
|
+
});
|
|
345
|
+
|
|
346
|
+
/** @internal */
|
|
347
|
+
export type Source2$Outbound = {
|
|
348
|
+
kind: string;
|
|
349
|
+
resourceId?: string | undefined;
|
|
350
|
+
externalResourceId?: string | undefined;
|
|
351
|
+
integrationId: string;
|
|
352
|
+
integrationConfigurationId: string;
|
|
353
|
+
};
|
|
354
|
+
|
|
355
|
+
/** @internal */
|
|
356
|
+
export const Source2$outboundSchema: z.ZodType<
|
|
357
|
+
Source2$Outbound,
|
|
358
|
+
z.ZodTypeDef,
|
|
359
|
+
Source2
|
|
360
|
+
> = z.object({
|
|
361
|
+
kind: SourceKind$outboundSchema,
|
|
362
|
+
resourceId: z.string().optional(),
|
|
363
|
+
externalResourceId: z.string().optional(),
|
|
364
|
+
integrationId: z.string(),
|
|
365
|
+
integrationConfigurationId: z.string(),
|
|
366
|
+
});
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* @internal
|
|
370
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
371
|
+
*/
|
|
372
|
+
export namespace Source2$ {
|
|
373
|
+
/** @deprecated use `Source2$inboundSchema` instead. */
|
|
374
|
+
export const inboundSchema = Source2$inboundSchema;
|
|
375
|
+
/** @deprecated use `Source2$outboundSchema` instead. */
|
|
376
|
+
export const outboundSchema = Source2$outboundSchema;
|
|
377
|
+
/** @deprecated use `Source2$Outbound` instead. */
|
|
378
|
+
export type Outbound = Source2$Outbound;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
export function source2ToJSON(source2: Source2): string {
|
|
382
|
+
return JSON.stringify(Source2$outboundSchema.parse(source2));
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
export function source2FromJSON(
|
|
386
|
+
jsonString: string,
|
|
387
|
+
): SafeParseResult<Source2, SDKValidationError> {
|
|
388
|
+
return safeParse(
|
|
389
|
+
jsonString,
|
|
390
|
+
(x) => Source2$inboundSchema.parse(JSON.parse(x)),
|
|
391
|
+
`Failed to parse 'Source2' from JSON`,
|
|
392
|
+
);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
/** @internal */
|
|
396
|
+
export const Kind$inboundSchema: z.ZodNativeEnum<typeof Kind> = z.nativeEnum(
|
|
397
|
+
Kind,
|
|
398
|
+
);
|
|
399
|
+
|
|
400
|
+
/** @internal */
|
|
401
|
+
export const Kind$outboundSchema: z.ZodNativeEnum<typeof Kind> =
|
|
402
|
+
Kind$inboundSchema;
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* @internal
|
|
406
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
407
|
+
*/
|
|
408
|
+
export namespace Kind$ {
|
|
409
|
+
/** @deprecated use `Kind$inboundSchema` instead. */
|
|
410
|
+
export const inboundSchema = Kind$inboundSchema;
|
|
411
|
+
/** @deprecated use `Kind$outboundSchema` instead. */
|
|
412
|
+
export const outboundSchema = Kind$outboundSchema;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
/** @internal */
|
|
416
|
+
export const Source1$inboundSchema: z.ZodType<Source1, z.ZodTypeDef, unknown> =
|
|
417
|
+
z.object({
|
|
418
|
+
kind: Kind$inboundSchema,
|
|
419
|
+
});
|
|
420
|
+
|
|
421
|
+
/** @internal */
|
|
422
|
+
export type Source1$Outbound = {
|
|
423
|
+
kind: string;
|
|
424
|
+
};
|
|
425
|
+
|
|
426
|
+
/** @internal */
|
|
427
|
+
export const Source1$outboundSchema: z.ZodType<
|
|
428
|
+
Source1$Outbound,
|
|
429
|
+
z.ZodTypeDef,
|
|
430
|
+
Source1
|
|
431
|
+
> = z.object({
|
|
432
|
+
kind: Kind$outboundSchema,
|
|
433
|
+
});
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* @internal
|
|
437
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
438
|
+
*/
|
|
439
|
+
export namespace Source1$ {
|
|
440
|
+
/** @deprecated use `Source1$inboundSchema` instead. */
|
|
441
|
+
export const inboundSchema = Source1$inboundSchema;
|
|
442
|
+
/** @deprecated use `Source1$outboundSchema` instead. */
|
|
443
|
+
export const outboundSchema = Source1$outboundSchema;
|
|
444
|
+
/** @deprecated use `Source1$Outbound` instead. */
|
|
445
|
+
export type Outbound = Source1$Outbound;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
export function source1ToJSON(source1: Source1): string {
|
|
449
|
+
return JSON.stringify(Source1$outboundSchema.parse(source1));
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
export function source1FromJSON(
|
|
453
|
+
jsonString: string,
|
|
454
|
+
): SafeParseResult<Source1, SDKValidationError> {
|
|
455
|
+
return safeParse(
|
|
456
|
+
jsonString,
|
|
457
|
+
(x) => Source1$inboundSchema.parse(JSON.parse(x)),
|
|
458
|
+
`Failed to parse 'Source1' from JSON`,
|
|
459
|
+
);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
/** @internal */
|
|
463
|
+
export const GetIntegrationLogDrainsSource$inboundSchema: z.ZodType<
|
|
464
|
+
GetIntegrationLogDrainsSource,
|
|
465
|
+
z.ZodTypeDef,
|
|
466
|
+
unknown
|
|
467
|
+
> = z.union([
|
|
468
|
+
z.lazy(() => Source2$inboundSchema),
|
|
469
|
+
z.lazy(() => Source1$inboundSchema),
|
|
470
|
+
]);
|
|
471
|
+
|
|
472
|
+
/** @internal */
|
|
473
|
+
export type GetIntegrationLogDrainsSource$Outbound =
|
|
474
|
+
| Source2$Outbound
|
|
475
|
+
| Source1$Outbound;
|
|
476
|
+
|
|
477
|
+
/** @internal */
|
|
478
|
+
export const GetIntegrationLogDrainsSource$outboundSchema: z.ZodType<
|
|
479
|
+
GetIntegrationLogDrainsSource$Outbound,
|
|
480
|
+
z.ZodTypeDef,
|
|
481
|
+
GetIntegrationLogDrainsSource
|
|
482
|
+
> = z.union([
|
|
483
|
+
z.lazy(() => Source2$outboundSchema),
|
|
484
|
+
z.lazy(() => Source1$outboundSchema),
|
|
485
|
+
]);
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* @internal
|
|
489
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
490
|
+
*/
|
|
491
|
+
export namespace GetIntegrationLogDrainsSource$ {
|
|
492
|
+
/** @deprecated use `GetIntegrationLogDrainsSource$inboundSchema` instead. */
|
|
493
|
+
export const inboundSchema = GetIntegrationLogDrainsSource$inboundSchema;
|
|
494
|
+
/** @deprecated use `GetIntegrationLogDrainsSource$outboundSchema` instead. */
|
|
495
|
+
export const outboundSchema = GetIntegrationLogDrainsSource$outboundSchema;
|
|
496
|
+
/** @deprecated use `GetIntegrationLogDrainsSource$Outbound` instead. */
|
|
497
|
+
export type Outbound = GetIntegrationLogDrainsSource$Outbound;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
export function getIntegrationLogDrainsSourceToJSON(
|
|
501
|
+
getIntegrationLogDrainsSource: GetIntegrationLogDrainsSource,
|
|
502
|
+
): string {
|
|
503
|
+
return JSON.stringify(
|
|
504
|
+
GetIntegrationLogDrainsSource$outboundSchema.parse(
|
|
505
|
+
getIntegrationLogDrainsSource,
|
|
506
|
+
),
|
|
507
|
+
);
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
export function getIntegrationLogDrainsSourceFromJSON(
|
|
511
|
+
jsonString: string,
|
|
512
|
+
): SafeParseResult<GetIntegrationLogDrainsSource, SDKValidationError> {
|
|
513
|
+
return safeParse(
|
|
514
|
+
jsonString,
|
|
515
|
+
(x) => GetIntegrationLogDrainsSource$inboundSchema.parse(JSON.parse(x)),
|
|
516
|
+
`Failed to parse 'GetIntegrationLogDrainsSource' from JSON`,
|
|
517
|
+
);
|
|
518
|
+
}
|
|
519
|
+
|
|
292
520
|
/** @internal */
|
|
293
521
|
export const GetIntegrationLogDrainsResponseBody$inboundSchema: z.ZodType<
|
|
294
522
|
GetIntegrationLogDrainsResponseBody,
|
|
@@ -313,6 +541,10 @@ export const GetIntegrationLogDrainsResponseBody$inboundSchema: z.ZodType<
|
|
|
313
541
|
.optional(),
|
|
314
542
|
branch: z.string().optional(),
|
|
315
543
|
samplingRate: z.number().optional(),
|
|
544
|
+
source: z.union([
|
|
545
|
+
z.lazy(() => Source2$inboundSchema),
|
|
546
|
+
z.lazy(() => Source1$inboundSchema),
|
|
547
|
+
]),
|
|
316
548
|
});
|
|
317
549
|
|
|
318
550
|
/** @internal */
|
|
@@ -333,6 +565,7 @@ export type GetIntegrationLogDrainsResponseBody$Outbound = {
|
|
|
333
565
|
environments?: Array<string> | undefined;
|
|
334
566
|
branch?: string | undefined;
|
|
335
567
|
samplingRate?: number | undefined;
|
|
568
|
+
source: Source2$Outbound | Source1$Outbound;
|
|
336
569
|
};
|
|
337
570
|
|
|
338
571
|
/** @internal */
|
|
@@ -359,6 +592,10 @@ export const GetIntegrationLogDrainsResponseBody$outboundSchema: z.ZodType<
|
|
|
359
592
|
.optional(),
|
|
360
593
|
branch: z.string().optional(),
|
|
361
594
|
samplingRate: z.number().optional(),
|
|
595
|
+
source: z.union([
|
|
596
|
+
z.lazy(() => Source2$outboundSchema),
|
|
597
|
+
z.lazy(() => Source1$outboundSchema),
|
|
598
|
+
]),
|
|
362
599
|
});
|
|
363
600
|
|
|
364
601
|
/**
|