@vercel/sdk 1.9.0 → 1.10.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 +11 -7
- package/bin/mcp-server.js +3307 -2453
- package/bin/mcp-server.js.map +46 -41
- package/docs/sdks/deployments/README.md +2 -0
- package/docs/sdks/logdrains/README.md +0 -80
- package/docs/sdks/marketplace/README.md +310 -78
- package/esm/__tests__/deployments.test.js.map +1 -1
- package/esm/__tests__/domains.test.js.map +1 -1
- package/esm/__tests__/logdrains.test.js +3 -13
- package/esm/__tests__/logdrains.test.js.map +1 -1
- package/esm/__tests__/marketplace.test.js +41 -0
- package/esm/__tests__/marketplace.test.js.map +1 -1
- package/esm/__tests__/projects.test.js +13 -15
- package/esm/__tests__/projects.test.js.map +1 -1
- package/esm/__tests__/rollingrelease.test.js +5 -2
- package/esm/__tests__/rollingrelease.test.js.map +1 -1
- package/esm/funcs/deploymentsCreateDeployment.js +2 -2
- package/esm/funcs/deploymentsCreateDeployment.js.map +1 -1
- package/esm/funcs/{logDrainsDeleteConfigurableLogDrain.d.ts → marketplaceDeleteIntegrationResource.d.ts} +5 -5
- package/esm/funcs/marketplaceDeleteIntegrationResource.d.ts.map +1 -0
- package/esm/funcs/{logDrainsDeleteConfigurableLogDrain.js → marketplaceDeleteIntegrationResource.js} +11 -15
- package/esm/funcs/marketplaceDeleteIntegrationResource.js.map +1 -0
- package/esm/funcs/marketplaceGetIntegrationResource.d.ts +20 -0
- package/esm/funcs/marketplaceGetIntegrationResource.d.ts.map +1 -0
- package/esm/funcs/marketplaceGetIntegrationResource.js +90 -0
- package/esm/funcs/marketplaceGetIntegrationResource.js.map +1 -0
- package/esm/funcs/marketplaceGetIntegrationResources.d.ts +20 -0
- package/esm/funcs/marketplaceGetIntegrationResources.d.ts.map +1 -0
- package/esm/funcs/marketplaceGetIntegrationResources.js +86 -0
- package/esm/funcs/marketplaceGetIntegrationResources.js.map +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/config.js.map +1 -1
- package/esm/mcp-server/cli/start/command.d.ts.map +1 -1
- package/esm/mcp-server/cli/start/command.js +0 -12
- package/esm/mcp-server/cli/start/command.js.map +1 -1
- package/esm/mcp-server/cli/start/impl.d.ts +0 -2
- package/esm/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/esm/mcp-server/cli/start/impl.js +0 -2
- package/esm/mcp-server/cli/start/impl.js.map +1 -1
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/mcp-server.js.map +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +11 -7
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/marketplaceDeleteIntegrationResource.d.ts +7 -0
- package/esm/mcp-server/tools/marketplaceDeleteIntegrationResource.d.ts.map +1 -0
- package/esm/mcp-server/tools/marketplaceDeleteIntegrationResource.js +27 -0
- package/esm/mcp-server/tools/marketplaceDeleteIntegrationResource.js.map +1 -0
- package/esm/mcp-server/tools/marketplaceGetIntegrationResource.d.ts +7 -0
- package/esm/mcp-server/tools/marketplaceGetIntegrationResource.d.ts.map +1 -0
- package/esm/mcp-server/tools/marketplaceGetIntegrationResource.js +28 -0
- package/esm/mcp-server/tools/marketplaceGetIntegrationResource.js.map +1 -0
- package/esm/mcp-server/tools/marketplaceGetIntegrationResources.d.ts +7 -0
- package/esm/mcp-server/tools/marketplaceGetIntegrationResources.d.ts.map +1 -0
- package/esm/mcp-server/tools/marketplaceGetIntegrationResources.js +28 -0
- package/esm/mcp-server/tools/marketplaceGetIntegrationResources.js.map +1 -0
- package/esm/models/authuser.d.ts +5 -27
- package/esm/models/authuser.d.ts.map +1 -1
- package/esm/models/authuser.js +2 -9
- package/esm/models/authuser.js.map +1 -1
- package/esm/models/canceldeploymentop.d.ts +335 -6
- package/esm/models/canceldeploymentop.d.ts.map +1 -1
- package/esm/models/canceldeploymentop.js +274 -2
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/createdeploymentop.d.ts +434 -97
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +362 -83
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +102 -25
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +80 -29
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/createwebhookop.d.ts +6 -0
- package/esm/models/createwebhookop.d.ts.map +1 -1
- package/esm/models/createwebhookop.js +2 -0
- package/esm/models/createwebhookop.js.map +1 -1
- package/esm/models/deleteintegrationresourceop.d.ts +31 -0
- package/esm/models/deleteintegrationresourceop.d.ts.map +1 -0
- package/esm/models/deleteintegrationresourceop.js +33 -0
- package/esm/models/deleteintegrationresourceop.js.map +1 -0
- package/esm/models/getconfigurationop.d.ts +3 -3
- package/esm/models/getconfigurationop.js +1 -1
- package/esm/models/getconfigurationop.js.map +1 -1
- package/esm/models/getdeploymentop.d.ts +338 -9
- package/esm/models/getdeploymentop.d.ts.map +1 -1
- package/esm/models/getdeploymentop.js +276 -3
- package/esm/models/getdeploymentop.js.map +1 -1
- package/esm/models/getdeploymentsop.d.ts +8 -2
- package/esm/models/getdeploymentsop.d.ts.map +1 -1
- package/esm/models/getdeploymentsop.js +3 -2
- package/esm/models/getdeploymentsop.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/getintegrationresourceop.d.ts +293 -0
- package/esm/models/getintegrationresourceop.d.ts.map +1 -0
- package/esm/models/getintegrationresourceop.js +252 -0
- package/esm/models/getintegrationresourceop.js.map +1 -0
- package/esm/models/getintegrationresourcesop.d.ts +310 -0
- package/esm/models/getintegrationresourcesop.d.ts.map +1 -0
- package/esm/models/getintegrationresourcesop.js +275 -0
- package/esm/models/getintegrationresourcesop.js.map +1 -0
- package/esm/models/getprojectsop.d.ts +12 -2
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +4 -2
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/getrollingreleasebillingstatusop.d.ts +21 -13
- package/esm/models/getrollingreleasebillingstatusop.d.ts.map +1 -1
- package/esm/models/getrollingreleasebillingstatusop.js +17 -9
- package/esm/models/getrollingreleasebillingstatusop.js.map +1 -1
- package/esm/models/getteamaccessrequestop.d.ts +3 -3
- package/esm/models/getteamaccessrequestop.js +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/getwebhookop.d.ts +3 -0
- package/esm/models/getwebhookop.d.ts.map +1 -1
- package/esm/models/getwebhookop.js +1 -0
- package/esm/models/getwebhookop.js.map +1 -1
- package/esm/models/getwebhooksop.d.ts +9 -0
- package/esm/models/getwebhooksop.d.ts.map +1 -1
- package/esm/models/getwebhooksop.js +3 -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/requestaccesstoteamop.d.ts +3 -3
- package/esm/models/requestaccesstoteamop.js +1 -1
- package/esm/models/sdkerror.d.ts.map +1 -1
- package/esm/models/sdkerror.js +8 -2
- package/esm/models/sdkerror.js.map +1 -1
- package/esm/models/team.d.ts +8 -3
- package/esm/models/team.d.ts.map +1 -1
- package/esm/models/team.js +3 -1
- package/esm/models/team.js.map +1 -1
- package/esm/models/teamlimited.d.ts +3 -3
- package/esm/models/teamlimited.js +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +12 -2
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +4 -2
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +24 -2
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +8 -2
- 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 +15 -17
- package/esm/models/updateresourcesecretsop.js.map +1 -1
- package/esm/models/userevent.d.ts +1622 -1824
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +2049 -2225
- package/esm/models/userevent.js.map +1 -1
- package/esm/models/vercelbadrequesterror.d.ts.map +1 -1
- package/esm/models/vercelbadrequesterror.js +2 -3
- package/esm/models/vercelbadrequesterror.js.map +1 -1
- package/esm/models/vercelforbiddenerror.d.ts.map +1 -1
- package/esm/models/vercelforbiddenerror.js +2 -3
- package/esm/models/vercelforbiddenerror.js.map +1 -1
- package/esm/models/vercelnotfounderror.d.ts.map +1 -1
- package/esm/models/vercelnotfounderror.js +2 -3
- package/esm/models/vercelnotfounderror.js.map +1 -1
- package/esm/models/vercelratelimiterror.d.ts.map +1 -1
- package/esm/models/vercelratelimiterror.js +2 -3
- package/esm/models/vercelratelimiterror.js.map +1 -1
- package/esm/sdk/logdrains.d.ts +0 -8
- package/esm/sdk/logdrains.d.ts.map +1 -1
- package/esm/sdk/logdrains.js +0 -10
- package/esm/sdk/logdrains.js.map +1 -1
- package/esm/sdk/marketplace.d.ts +31 -7
- package/esm/sdk/marketplace.d.ts.map +1 -1
- package/esm/sdk/marketplace.js +39 -9
- package/esm/sdk/marketplace.js.map +1 -1
- package/esm/sdk/sdk.d.ts +2 -2
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +3 -3
- package/esm/sdk/sdk.js.map +1 -1
- package/examples/README.md +26 -0
- package/examples/package-lock.json +628 -0
- package/examples/package.json +18 -0
- package/examples/projectsUpdateProject.example.ts +31 -0
- package/jsr.json +1 -1
- package/package.json +4 -4
- package/src/__tests__/deployments.test.ts +2 -1
- package/src/__tests__/domains.test.ts +2 -1
- package/src/__tests__/logdrains.test.ts +5 -15
- package/src/__tests__/marketplace.test.ts +47 -0
- package/src/__tests__/projects.test.ts +13 -15
- package/src/__tests__/rollingrelease.test.ts +5 -2
- package/src/funcs/deploymentsCreateDeployment.ts +2 -2
- package/src/funcs/{logDrainsDeleteConfigurableLogDrain.ts → marketplaceDeleteIntegrationResource.ts} +20 -19
- package/src/funcs/marketplaceGetIntegrationResource.ts +206 -0
- package/src/funcs/marketplaceGetIntegrationResources.ts +202 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/cli/start/command.ts +0 -13
- package/src/mcp-server/cli/start/impl.ts +0 -4
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +11 -7
- package/src/mcp-server/tools/marketplaceDeleteIntegrationResource.ts +37 -0
- package/src/mcp-server/tools/marketplaceGetIntegrationResource.ts +39 -0
- package/src/mcp-server/tools/marketplaceGetIntegrationResources.ts +39 -0
- package/src/models/authuser.ts +7 -10
- package/src/models/canceldeploymentop.ts +607 -2
- package/src/models/createdeploymentop.ts +855 -289
- package/src/models/createprojectop.ts +159 -46
- package/src/models/createwebhookop.ts +2 -0
- package/src/models/deleteintegrationresourceop.ts +72 -0
- package/src/models/getconfigurationop.ts +1 -1
- package/src/models/getdeploymentop.ts +620 -3
- package/src/models/getdeploymentsop.ts +8 -4
- package/src/models/getedgeconfigbackupop.ts +41 -24
- package/src/models/getintegrationresourceop.ts +561 -0
- package/src/models/getintegrationresourcesop.ts +642 -0
- package/src/models/getprojectsop.ts +4 -4
- package/src/models/getrollingreleasebillingstatusop.ts +31 -15
- package/src/models/getteamaccessrequestop.ts +1 -1
- package/src/models/getv9projectsidornamecustomenvironmentsop.ts +1 -1
- package/src/models/getwebhookop.ts +1 -0
- package/src/models/getwebhooksop.ts +3 -0
- package/src/models/importresourceop.ts +27 -35
- package/src/models/requestaccesstoteamop.ts +1 -1
- package/src/models/sdkerror.ts +8 -2
- package/src/models/team.ts +8 -1
- package/src/models/teamlimited.ts +1 -1
- package/src/models/updateprojectdatacacheop.ts +4 -4
- package/src/models/updateprojectop.ts +8 -4
- package/src/models/updateresourcesecretsop.ts +49 -33
- package/src/models/userevent.ts +4781 -5205
- package/src/models/vercelbadrequesterror.ts +2 -3
- package/src/models/vercelforbiddenerror.ts +2 -3
- package/src/models/vercelnotfounderror.ts +2 -3
- package/src/models/vercelratelimiterror.ts +2 -3
- package/src/sdk/logdrains.ts +0 -19
- package/src/sdk/marketplace.ts +80 -17
- package/src/sdk/sdk.ts +5 -5
- package/vercel-spec.json +1641 -828
- package/esm/funcs/logDrainsDeleteConfigurableLogDrain.d.ts.map +0 -1
- package/esm/funcs/logDrainsDeleteConfigurableLogDrain.js.map +0 -1
- package/esm/mcp-server/tools/logDrainsDeleteConfigurableLogDrain.d.ts +0 -7
- package/esm/mcp-server/tools/logDrainsDeleteConfigurableLogDrain.d.ts.map +0 -1
- package/esm/mcp-server/tools/logDrainsDeleteConfigurableLogDrain.js +0 -27
- package/esm/mcp-server/tools/logDrainsDeleteConfigurableLogDrain.js.map +0 -1
- package/esm/models/deleteconfigurablelogdrainop.d.ts +0 -39
- package/esm/models/deleteconfigurablelogdrainop.d.ts.map +0 -1
- package/esm/models/deleteconfigurablelogdrainop.js +0 -35
- package/esm/models/deleteconfigurablelogdrainop.js.map +0 -1
- package/src/mcp-server/tools/logDrainsDeleteConfigurableLogDrain.ts +0 -37
- package/src/models/deleteconfigurablelogdrainop.ts +0 -83
|
@@ -0,0 +1,642 @@
|
|
|
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 GetIntegrationResourcesRequest = {
|
|
12
|
+
integrationConfigurationId: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* The current status of the resource
|
|
17
|
+
*/
|
|
18
|
+
export const GetIntegrationResourcesStatus = {
|
|
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 GetIntegrationResourcesStatus = ClosedEnum<
|
|
30
|
+
typeof GetIntegrationResourcesStatus
|
|
31
|
+
>;
|
|
32
|
+
|
|
33
|
+
export type GetIntegrationResourcesExperimentation = {
|
|
34
|
+
edgeConfigSyncingEnabled?: boolean | undefined;
|
|
35
|
+
edgeConfigId?: string | undefined;
|
|
36
|
+
edgeConfigTokenId?: string | undefined;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Any settings provided for the resource to support its product's protocols
|
|
41
|
+
*/
|
|
42
|
+
export type GetIntegrationResourcesProtocolSettings = {
|
|
43
|
+
experimentation?: GetIntegrationResourcesExperimentation | undefined;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export const GetIntegrationResourcesLevel = {
|
|
47
|
+
Error: "error",
|
|
48
|
+
Info: "info",
|
|
49
|
+
Warn: "warn",
|
|
50
|
+
} as const;
|
|
51
|
+
export type GetIntegrationResourcesLevel = ClosedEnum<
|
|
52
|
+
typeof GetIntegrationResourcesLevel
|
|
53
|
+
>;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The notification, if set, displayed to the user when viewing the resource in Vercel
|
|
57
|
+
*/
|
|
58
|
+
export type GetIntegrationResourcesNotification = {
|
|
59
|
+
level: GetIntegrationResourcesLevel;
|
|
60
|
+
title: string;
|
|
61
|
+
message?: string | undefined;
|
|
62
|
+
href?: string | undefined;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export type GetIntegrationResourcesMetadata =
|
|
66
|
+
| string
|
|
67
|
+
| number
|
|
68
|
+
| boolean
|
|
69
|
+
| Array<string>
|
|
70
|
+
| Array<number>;
|
|
71
|
+
|
|
72
|
+
export type Resources = {
|
|
73
|
+
/**
|
|
74
|
+
* The ID provided by the partner for the given resource
|
|
75
|
+
*/
|
|
76
|
+
partnerId: string;
|
|
77
|
+
/**
|
|
78
|
+
* The ID assigned by Vercel for the given resource
|
|
79
|
+
*/
|
|
80
|
+
internalId: string;
|
|
81
|
+
/**
|
|
82
|
+
* The name of the resource as it is recorded in Vercel
|
|
83
|
+
*/
|
|
84
|
+
name: string;
|
|
85
|
+
/**
|
|
86
|
+
* The current status of the resource
|
|
87
|
+
*/
|
|
88
|
+
status?: GetIntegrationResourcesStatus | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* The ID of the product the resource is derived from
|
|
91
|
+
*/
|
|
92
|
+
productId: string;
|
|
93
|
+
/**
|
|
94
|
+
* Any settings provided for the resource to support its product's protocols
|
|
95
|
+
*/
|
|
96
|
+
protocolSettings?: GetIntegrationResourcesProtocolSettings | undefined;
|
|
97
|
+
/**
|
|
98
|
+
* The notification, if set, displayed to the user when viewing the resource in Vercel
|
|
99
|
+
*/
|
|
100
|
+
notification?: GetIntegrationResourcesNotification | undefined;
|
|
101
|
+
/**
|
|
102
|
+
* The ID of the billing plan the resource is subscribed to, if applicable
|
|
103
|
+
*/
|
|
104
|
+
billingPlanId?: string | undefined;
|
|
105
|
+
/**
|
|
106
|
+
* The configured metadata for the resource as defined by its product's Metadata Schema
|
|
107
|
+
*/
|
|
108
|
+
metadata?: {
|
|
109
|
+
[k: string]: string | number | boolean | Array<string> | Array<number>;
|
|
110
|
+
} | undefined;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
export type GetIntegrationResourcesResponseBody = {
|
|
114
|
+
resources: Array<Resources>;
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
/** @internal */
|
|
118
|
+
export const GetIntegrationResourcesRequest$inboundSchema: z.ZodType<
|
|
119
|
+
GetIntegrationResourcesRequest,
|
|
120
|
+
z.ZodTypeDef,
|
|
121
|
+
unknown
|
|
122
|
+
> = z.object({
|
|
123
|
+
integrationConfigurationId: z.string(),
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
/** @internal */
|
|
127
|
+
export type GetIntegrationResourcesRequest$Outbound = {
|
|
128
|
+
integrationConfigurationId: string;
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
/** @internal */
|
|
132
|
+
export const GetIntegrationResourcesRequest$outboundSchema: z.ZodType<
|
|
133
|
+
GetIntegrationResourcesRequest$Outbound,
|
|
134
|
+
z.ZodTypeDef,
|
|
135
|
+
GetIntegrationResourcesRequest
|
|
136
|
+
> = z.object({
|
|
137
|
+
integrationConfigurationId: z.string(),
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* @internal
|
|
142
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
143
|
+
*/
|
|
144
|
+
export namespace GetIntegrationResourcesRequest$ {
|
|
145
|
+
/** @deprecated use `GetIntegrationResourcesRequest$inboundSchema` instead. */
|
|
146
|
+
export const inboundSchema = GetIntegrationResourcesRequest$inboundSchema;
|
|
147
|
+
/** @deprecated use `GetIntegrationResourcesRequest$outboundSchema` instead. */
|
|
148
|
+
export const outboundSchema = GetIntegrationResourcesRequest$outboundSchema;
|
|
149
|
+
/** @deprecated use `GetIntegrationResourcesRequest$Outbound` instead. */
|
|
150
|
+
export type Outbound = GetIntegrationResourcesRequest$Outbound;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export function getIntegrationResourcesRequestToJSON(
|
|
154
|
+
getIntegrationResourcesRequest: GetIntegrationResourcesRequest,
|
|
155
|
+
): string {
|
|
156
|
+
return JSON.stringify(
|
|
157
|
+
GetIntegrationResourcesRequest$outboundSchema.parse(
|
|
158
|
+
getIntegrationResourcesRequest,
|
|
159
|
+
),
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export function getIntegrationResourcesRequestFromJSON(
|
|
164
|
+
jsonString: string,
|
|
165
|
+
): SafeParseResult<GetIntegrationResourcesRequest, SDKValidationError> {
|
|
166
|
+
return safeParse(
|
|
167
|
+
jsonString,
|
|
168
|
+
(x) => GetIntegrationResourcesRequest$inboundSchema.parse(JSON.parse(x)),
|
|
169
|
+
`Failed to parse 'GetIntegrationResourcesRequest' from JSON`,
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/** @internal */
|
|
174
|
+
export const GetIntegrationResourcesStatus$inboundSchema: z.ZodNativeEnum<
|
|
175
|
+
typeof GetIntegrationResourcesStatus
|
|
176
|
+
> = z.nativeEnum(GetIntegrationResourcesStatus);
|
|
177
|
+
|
|
178
|
+
/** @internal */
|
|
179
|
+
export const GetIntegrationResourcesStatus$outboundSchema: z.ZodNativeEnum<
|
|
180
|
+
typeof GetIntegrationResourcesStatus
|
|
181
|
+
> = GetIntegrationResourcesStatus$inboundSchema;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* @internal
|
|
185
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
186
|
+
*/
|
|
187
|
+
export namespace GetIntegrationResourcesStatus$ {
|
|
188
|
+
/** @deprecated use `GetIntegrationResourcesStatus$inboundSchema` instead. */
|
|
189
|
+
export const inboundSchema = GetIntegrationResourcesStatus$inboundSchema;
|
|
190
|
+
/** @deprecated use `GetIntegrationResourcesStatus$outboundSchema` instead. */
|
|
191
|
+
export const outboundSchema = GetIntegrationResourcesStatus$outboundSchema;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/** @internal */
|
|
195
|
+
export const GetIntegrationResourcesExperimentation$inboundSchema: z.ZodType<
|
|
196
|
+
GetIntegrationResourcesExperimentation,
|
|
197
|
+
z.ZodTypeDef,
|
|
198
|
+
unknown
|
|
199
|
+
> = z.object({
|
|
200
|
+
edgeConfigSyncingEnabled: z.boolean().optional(),
|
|
201
|
+
edgeConfigId: z.string().optional(),
|
|
202
|
+
edgeConfigTokenId: z.string().optional(),
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
/** @internal */
|
|
206
|
+
export type GetIntegrationResourcesExperimentation$Outbound = {
|
|
207
|
+
edgeConfigSyncingEnabled?: boolean | undefined;
|
|
208
|
+
edgeConfigId?: string | undefined;
|
|
209
|
+
edgeConfigTokenId?: string | undefined;
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
/** @internal */
|
|
213
|
+
export const GetIntegrationResourcesExperimentation$outboundSchema: z.ZodType<
|
|
214
|
+
GetIntegrationResourcesExperimentation$Outbound,
|
|
215
|
+
z.ZodTypeDef,
|
|
216
|
+
GetIntegrationResourcesExperimentation
|
|
217
|
+
> = z.object({
|
|
218
|
+
edgeConfigSyncingEnabled: z.boolean().optional(),
|
|
219
|
+
edgeConfigId: z.string().optional(),
|
|
220
|
+
edgeConfigTokenId: z.string().optional(),
|
|
221
|
+
});
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* @internal
|
|
225
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
226
|
+
*/
|
|
227
|
+
export namespace GetIntegrationResourcesExperimentation$ {
|
|
228
|
+
/** @deprecated use `GetIntegrationResourcesExperimentation$inboundSchema` instead. */
|
|
229
|
+
export const inboundSchema =
|
|
230
|
+
GetIntegrationResourcesExperimentation$inboundSchema;
|
|
231
|
+
/** @deprecated use `GetIntegrationResourcesExperimentation$outboundSchema` instead. */
|
|
232
|
+
export const outboundSchema =
|
|
233
|
+
GetIntegrationResourcesExperimentation$outboundSchema;
|
|
234
|
+
/** @deprecated use `GetIntegrationResourcesExperimentation$Outbound` instead. */
|
|
235
|
+
export type Outbound = GetIntegrationResourcesExperimentation$Outbound;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export function getIntegrationResourcesExperimentationToJSON(
|
|
239
|
+
getIntegrationResourcesExperimentation:
|
|
240
|
+
GetIntegrationResourcesExperimentation,
|
|
241
|
+
): string {
|
|
242
|
+
return JSON.stringify(
|
|
243
|
+
GetIntegrationResourcesExperimentation$outboundSchema.parse(
|
|
244
|
+
getIntegrationResourcesExperimentation,
|
|
245
|
+
),
|
|
246
|
+
);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export function getIntegrationResourcesExperimentationFromJSON(
|
|
250
|
+
jsonString: string,
|
|
251
|
+
): SafeParseResult<GetIntegrationResourcesExperimentation, SDKValidationError> {
|
|
252
|
+
return safeParse(
|
|
253
|
+
jsonString,
|
|
254
|
+
(x) =>
|
|
255
|
+
GetIntegrationResourcesExperimentation$inboundSchema.parse(JSON.parse(x)),
|
|
256
|
+
`Failed to parse 'GetIntegrationResourcesExperimentation' from JSON`,
|
|
257
|
+
);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/** @internal */
|
|
261
|
+
export const GetIntegrationResourcesProtocolSettings$inboundSchema: z.ZodType<
|
|
262
|
+
GetIntegrationResourcesProtocolSettings,
|
|
263
|
+
z.ZodTypeDef,
|
|
264
|
+
unknown
|
|
265
|
+
> = z.object({
|
|
266
|
+
experimentation: z.lazy(() =>
|
|
267
|
+
GetIntegrationResourcesExperimentation$inboundSchema
|
|
268
|
+
).optional(),
|
|
269
|
+
});
|
|
270
|
+
|
|
271
|
+
/** @internal */
|
|
272
|
+
export type GetIntegrationResourcesProtocolSettings$Outbound = {
|
|
273
|
+
experimentation?: GetIntegrationResourcesExperimentation$Outbound | undefined;
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
/** @internal */
|
|
277
|
+
export const GetIntegrationResourcesProtocolSettings$outboundSchema: z.ZodType<
|
|
278
|
+
GetIntegrationResourcesProtocolSettings$Outbound,
|
|
279
|
+
z.ZodTypeDef,
|
|
280
|
+
GetIntegrationResourcesProtocolSettings
|
|
281
|
+
> = z.object({
|
|
282
|
+
experimentation: z.lazy(() =>
|
|
283
|
+
GetIntegrationResourcesExperimentation$outboundSchema
|
|
284
|
+
).optional(),
|
|
285
|
+
});
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* @internal
|
|
289
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
290
|
+
*/
|
|
291
|
+
export namespace GetIntegrationResourcesProtocolSettings$ {
|
|
292
|
+
/** @deprecated use `GetIntegrationResourcesProtocolSettings$inboundSchema` instead. */
|
|
293
|
+
export const inboundSchema =
|
|
294
|
+
GetIntegrationResourcesProtocolSettings$inboundSchema;
|
|
295
|
+
/** @deprecated use `GetIntegrationResourcesProtocolSettings$outboundSchema` instead. */
|
|
296
|
+
export const outboundSchema =
|
|
297
|
+
GetIntegrationResourcesProtocolSettings$outboundSchema;
|
|
298
|
+
/** @deprecated use `GetIntegrationResourcesProtocolSettings$Outbound` instead. */
|
|
299
|
+
export type Outbound = GetIntegrationResourcesProtocolSettings$Outbound;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export function getIntegrationResourcesProtocolSettingsToJSON(
|
|
303
|
+
getIntegrationResourcesProtocolSettings:
|
|
304
|
+
GetIntegrationResourcesProtocolSettings,
|
|
305
|
+
): string {
|
|
306
|
+
return JSON.stringify(
|
|
307
|
+
GetIntegrationResourcesProtocolSettings$outboundSchema.parse(
|
|
308
|
+
getIntegrationResourcesProtocolSettings,
|
|
309
|
+
),
|
|
310
|
+
);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export function getIntegrationResourcesProtocolSettingsFromJSON(
|
|
314
|
+
jsonString: string,
|
|
315
|
+
): SafeParseResult<
|
|
316
|
+
GetIntegrationResourcesProtocolSettings,
|
|
317
|
+
SDKValidationError
|
|
318
|
+
> {
|
|
319
|
+
return safeParse(
|
|
320
|
+
jsonString,
|
|
321
|
+
(x) =>
|
|
322
|
+
GetIntegrationResourcesProtocolSettings$inboundSchema.parse(
|
|
323
|
+
JSON.parse(x),
|
|
324
|
+
),
|
|
325
|
+
`Failed to parse 'GetIntegrationResourcesProtocolSettings' from JSON`,
|
|
326
|
+
);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/** @internal */
|
|
330
|
+
export const GetIntegrationResourcesLevel$inboundSchema: z.ZodNativeEnum<
|
|
331
|
+
typeof GetIntegrationResourcesLevel
|
|
332
|
+
> = z.nativeEnum(GetIntegrationResourcesLevel);
|
|
333
|
+
|
|
334
|
+
/** @internal */
|
|
335
|
+
export const GetIntegrationResourcesLevel$outboundSchema: z.ZodNativeEnum<
|
|
336
|
+
typeof GetIntegrationResourcesLevel
|
|
337
|
+
> = GetIntegrationResourcesLevel$inboundSchema;
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* @internal
|
|
341
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
342
|
+
*/
|
|
343
|
+
export namespace GetIntegrationResourcesLevel$ {
|
|
344
|
+
/** @deprecated use `GetIntegrationResourcesLevel$inboundSchema` instead. */
|
|
345
|
+
export const inboundSchema = GetIntegrationResourcesLevel$inboundSchema;
|
|
346
|
+
/** @deprecated use `GetIntegrationResourcesLevel$outboundSchema` instead. */
|
|
347
|
+
export const outboundSchema = GetIntegrationResourcesLevel$outboundSchema;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
/** @internal */
|
|
351
|
+
export const GetIntegrationResourcesNotification$inboundSchema: z.ZodType<
|
|
352
|
+
GetIntegrationResourcesNotification,
|
|
353
|
+
z.ZodTypeDef,
|
|
354
|
+
unknown
|
|
355
|
+
> = z.object({
|
|
356
|
+
level: GetIntegrationResourcesLevel$inboundSchema,
|
|
357
|
+
title: z.string(),
|
|
358
|
+
message: z.string().optional(),
|
|
359
|
+
href: z.string().optional(),
|
|
360
|
+
});
|
|
361
|
+
|
|
362
|
+
/** @internal */
|
|
363
|
+
export type GetIntegrationResourcesNotification$Outbound = {
|
|
364
|
+
level: string;
|
|
365
|
+
title: string;
|
|
366
|
+
message?: string | undefined;
|
|
367
|
+
href?: string | undefined;
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
/** @internal */
|
|
371
|
+
export const GetIntegrationResourcesNotification$outboundSchema: z.ZodType<
|
|
372
|
+
GetIntegrationResourcesNotification$Outbound,
|
|
373
|
+
z.ZodTypeDef,
|
|
374
|
+
GetIntegrationResourcesNotification
|
|
375
|
+
> = z.object({
|
|
376
|
+
level: GetIntegrationResourcesLevel$outboundSchema,
|
|
377
|
+
title: z.string(),
|
|
378
|
+
message: z.string().optional(),
|
|
379
|
+
href: z.string().optional(),
|
|
380
|
+
});
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* @internal
|
|
384
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
385
|
+
*/
|
|
386
|
+
export namespace GetIntegrationResourcesNotification$ {
|
|
387
|
+
/** @deprecated use `GetIntegrationResourcesNotification$inboundSchema` instead. */
|
|
388
|
+
export const inboundSchema =
|
|
389
|
+
GetIntegrationResourcesNotification$inboundSchema;
|
|
390
|
+
/** @deprecated use `GetIntegrationResourcesNotification$outboundSchema` instead. */
|
|
391
|
+
export const outboundSchema =
|
|
392
|
+
GetIntegrationResourcesNotification$outboundSchema;
|
|
393
|
+
/** @deprecated use `GetIntegrationResourcesNotification$Outbound` instead. */
|
|
394
|
+
export type Outbound = GetIntegrationResourcesNotification$Outbound;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
export function getIntegrationResourcesNotificationToJSON(
|
|
398
|
+
getIntegrationResourcesNotification: GetIntegrationResourcesNotification,
|
|
399
|
+
): string {
|
|
400
|
+
return JSON.stringify(
|
|
401
|
+
GetIntegrationResourcesNotification$outboundSchema.parse(
|
|
402
|
+
getIntegrationResourcesNotification,
|
|
403
|
+
),
|
|
404
|
+
);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
export function getIntegrationResourcesNotificationFromJSON(
|
|
408
|
+
jsonString: string,
|
|
409
|
+
): SafeParseResult<GetIntegrationResourcesNotification, SDKValidationError> {
|
|
410
|
+
return safeParse(
|
|
411
|
+
jsonString,
|
|
412
|
+
(x) =>
|
|
413
|
+
GetIntegrationResourcesNotification$inboundSchema.parse(JSON.parse(x)),
|
|
414
|
+
`Failed to parse 'GetIntegrationResourcesNotification' from JSON`,
|
|
415
|
+
);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
/** @internal */
|
|
419
|
+
export const GetIntegrationResourcesMetadata$inboundSchema: z.ZodType<
|
|
420
|
+
GetIntegrationResourcesMetadata,
|
|
421
|
+
z.ZodTypeDef,
|
|
422
|
+
unknown
|
|
423
|
+
> = z.union([
|
|
424
|
+
z.string(),
|
|
425
|
+
z.number(),
|
|
426
|
+
z.boolean(),
|
|
427
|
+
z.array(z.string()),
|
|
428
|
+
z.array(z.number()),
|
|
429
|
+
]);
|
|
430
|
+
|
|
431
|
+
/** @internal */
|
|
432
|
+
export type GetIntegrationResourcesMetadata$Outbound =
|
|
433
|
+
| string
|
|
434
|
+
| number
|
|
435
|
+
| boolean
|
|
436
|
+
| Array<string>
|
|
437
|
+
| Array<number>;
|
|
438
|
+
|
|
439
|
+
/** @internal */
|
|
440
|
+
export const GetIntegrationResourcesMetadata$outboundSchema: z.ZodType<
|
|
441
|
+
GetIntegrationResourcesMetadata$Outbound,
|
|
442
|
+
z.ZodTypeDef,
|
|
443
|
+
GetIntegrationResourcesMetadata
|
|
444
|
+
> = z.union([
|
|
445
|
+
z.string(),
|
|
446
|
+
z.number(),
|
|
447
|
+
z.boolean(),
|
|
448
|
+
z.array(z.string()),
|
|
449
|
+
z.array(z.number()),
|
|
450
|
+
]);
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* @internal
|
|
454
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
455
|
+
*/
|
|
456
|
+
export namespace GetIntegrationResourcesMetadata$ {
|
|
457
|
+
/** @deprecated use `GetIntegrationResourcesMetadata$inboundSchema` instead. */
|
|
458
|
+
export const inboundSchema = GetIntegrationResourcesMetadata$inboundSchema;
|
|
459
|
+
/** @deprecated use `GetIntegrationResourcesMetadata$outboundSchema` instead. */
|
|
460
|
+
export const outboundSchema = GetIntegrationResourcesMetadata$outboundSchema;
|
|
461
|
+
/** @deprecated use `GetIntegrationResourcesMetadata$Outbound` instead. */
|
|
462
|
+
export type Outbound = GetIntegrationResourcesMetadata$Outbound;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
export function getIntegrationResourcesMetadataToJSON(
|
|
466
|
+
getIntegrationResourcesMetadata: GetIntegrationResourcesMetadata,
|
|
467
|
+
): string {
|
|
468
|
+
return JSON.stringify(
|
|
469
|
+
GetIntegrationResourcesMetadata$outboundSchema.parse(
|
|
470
|
+
getIntegrationResourcesMetadata,
|
|
471
|
+
),
|
|
472
|
+
);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
export function getIntegrationResourcesMetadataFromJSON(
|
|
476
|
+
jsonString: string,
|
|
477
|
+
): SafeParseResult<GetIntegrationResourcesMetadata, SDKValidationError> {
|
|
478
|
+
return safeParse(
|
|
479
|
+
jsonString,
|
|
480
|
+
(x) => GetIntegrationResourcesMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
481
|
+
`Failed to parse 'GetIntegrationResourcesMetadata' from JSON`,
|
|
482
|
+
);
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
/** @internal */
|
|
486
|
+
export const Resources$inboundSchema: z.ZodType<
|
|
487
|
+
Resources,
|
|
488
|
+
z.ZodTypeDef,
|
|
489
|
+
unknown
|
|
490
|
+
> = z.object({
|
|
491
|
+
partnerId: z.string(),
|
|
492
|
+
internalId: z.string(),
|
|
493
|
+
name: z.string(),
|
|
494
|
+
status: GetIntegrationResourcesStatus$inboundSchema.optional(),
|
|
495
|
+
productId: z.string(),
|
|
496
|
+
protocolSettings: z.lazy(() =>
|
|
497
|
+
GetIntegrationResourcesProtocolSettings$inboundSchema
|
|
498
|
+
).optional(),
|
|
499
|
+
notification: z.lazy(() => GetIntegrationResourcesNotification$inboundSchema)
|
|
500
|
+
.optional(),
|
|
501
|
+
billingPlanId: z.string().optional(),
|
|
502
|
+
metadata: z.record(
|
|
503
|
+
z.union([
|
|
504
|
+
z.string(),
|
|
505
|
+
z.number(),
|
|
506
|
+
z.boolean(),
|
|
507
|
+
z.array(z.string()),
|
|
508
|
+
z.array(z.number()),
|
|
509
|
+
]),
|
|
510
|
+
).optional(),
|
|
511
|
+
});
|
|
512
|
+
|
|
513
|
+
/** @internal */
|
|
514
|
+
export type Resources$Outbound = {
|
|
515
|
+
partnerId: string;
|
|
516
|
+
internalId: string;
|
|
517
|
+
name: string;
|
|
518
|
+
status?: string | undefined;
|
|
519
|
+
productId: string;
|
|
520
|
+
protocolSettings?:
|
|
521
|
+
| GetIntegrationResourcesProtocolSettings$Outbound
|
|
522
|
+
| undefined;
|
|
523
|
+
notification?: GetIntegrationResourcesNotification$Outbound | undefined;
|
|
524
|
+
billingPlanId?: string | undefined;
|
|
525
|
+
metadata?: {
|
|
526
|
+
[k: string]: string | number | boolean | Array<string> | Array<number>;
|
|
527
|
+
} | undefined;
|
|
528
|
+
};
|
|
529
|
+
|
|
530
|
+
/** @internal */
|
|
531
|
+
export const Resources$outboundSchema: z.ZodType<
|
|
532
|
+
Resources$Outbound,
|
|
533
|
+
z.ZodTypeDef,
|
|
534
|
+
Resources
|
|
535
|
+
> = z.object({
|
|
536
|
+
partnerId: z.string(),
|
|
537
|
+
internalId: z.string(),
|
|
538
|
+
name: z.string(),
|
|
539
|
+
status: GetIntegrationResourcesStatus$outboundSchema.optional(),
|
|
540
|
+
productId: z.string(),
|
|
541
|
+
protocolSettings: z.lazy(() =>
|
|
542
|
+
GetIntegrationResourcesProtocolSettings$outboundSchema
|
|
543
|
+
).optional(),
|
|
544
|
+
notification: z.lazy(() => GetIntegrationResourcesNotification$outboundSchema)
|
|
545
|
+
.optional(),
|
|
546
|
+
billingPlanId: z.string().optional(),
|
|
547
|
+
metadata: z.record(
|
|
548
|
+
z.union([
|
|
549
|
+
z.string(),
|
|
550
|
+
z.number(),
|
|
551
|
+
z.boolean(),
|
|
552
|
+
z.array(z.string()),
|
|
553
|
+
z.array(z.number()),
|
|
554
|
+
]),
|
|
555
|
+
).optional(),
|
|
556
|
+
});
|
|
557
|
+
|
|
558
|
+
/**
|
|
559
|
+
* @internal
|
|
560
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
561
|
+
*/
|
|
562
|
+
export namespace Resources$ {
|
|
563
|
+
/** @deprecated use `Resources$inboundSchema` instead. */
|
|
564
|
+
export const inboundSchema = Resources$inboundSchema;
|
|
565
|
+
/** @deprecated use `Resources$outboundSchema` instead. */
|
|
566
|
+
export const outboundSchema = Resources$outboundSchema;
|
|
567
|
+
/** @deprecated use `Resources$Outbound` instead. */
|
|
568
|
+
export type Outbound = Resources$Outbound;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
export function resourcesToJSON(resources: Resources): string {
|
|
572
|
+
return JSON.stringify(Resources$outboundSchema.parse(resources));
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
export function resourcesFromJSON(
|
|
576
|
+
jsonString: string,
|
|
577
|
+
): SafeParseResult<Resources, SDKValidationError> {
|
|
578
|
+
return safeParse(
|
|
579
|
+
jsonString,
|
|
580
|
+
(x) => Resources$inboundSchema.parse(JSON.parse(x)),
|
|
581
|
+
`Failed to parse 'Resources' from JSON`,
|
|
582
|
+
);
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
/** @internal */
|
|
586
|
+
export const GetIntegrationResourcesResponseBody$inboundSchema: z.ZodType<
|
|
587
|
+
GetIntegrationResourcesResponseBody,
|
|
588
|
+
z.ZodTypeDef,
|
|
589
|
+
unknown
|
|
590
|
+
> = z.object({
|
|
591
|
+
resources: z.array(z.lazy(() => Resources$inboundSchema)),
|
|
592
|
+
});
|
|
593
|
+
|
|
594
|
+
/** @internal */
|
|
595
|
+
export type GetIntegrationResourcesResponseBody$Outbound = {
|
|
596
|
+
resources: Array<Resources$Outbound>;
|
|
597
|
+
};
|
|
598
|
+
|
|
599
|
+
/** @internal */
|
|
600
|
+
export const GetIntegrationResourcesResponseBody$outboundSchema: z.ZodType<
|
|
601
|
+
GetIntegrationResourcesResponseBody$Outbound,
|
|
602
|
+
z.ZodTypeDef,
|
|
603
|
+
GetIntegrationResourcesResponseBody
|
|
604
|
+
> = z.object({
|
|
605
|
+
resources: z.array(z.lazy(() => Resources$outboundSchema)),
|
|
606
|
+
});
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* @internal
|
|
610
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
611
|
+
*/
|
|
612
|
+
export namespace GetIntegrationResourcesResponseBody$ {
|
|
613
|
+
/** @deprecated use `GetIntegrationResourcesResponseBody$inboundSchema` instead. */
|
|
614
|
+
export const inboundSchema =
|
|
615
|
+
GetIntegrationResourcesResponseBody$inboundSchema;
|
|
616
|
+
/** @deprecated use `GetIntegrationResourcesResponseBody$outboundSchema` instead. */
|
|
617
|
+
export const outboundSchema =
|
|
618
|
+
GetIntegrationResourcesResponseBody$outboundSchema;
|
|
619
|
+
/** @deprecated use `GetIntegrationResourcesResponseBody$Outbound` instead. */
|
|
620
|
+
export type Outbound = GetIntegrationResourcesResponseBody$Outbound;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
export function getIntegrationResourcesResponseBodyToJSON(
|
|
624
|
+
getIntegrationResourcesResponseBody: GetIntegrationResourcesResponseBody,
|
|
625
|
+
): string {
|
|
626
|
+
return JSON.stringify(
|
|
627
|
+
GetIntegrationResourcesResponseBody$outboundSchema.parse(
|
|
628
|
+
getIntegrationResourcesResponseBody,
|
|
629
|
+
),
|
|
630
|
+
);
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
export function getIntegrationResourcesResponseBodyFromJSON(
|
|
634
|
+
jsonString: string,
|
|
635
|
+
): SafeParseResult<GetIntegrationResourcesResponseBody, SDKValidationError> {
|
|
636
|
+
return safeParse(
|
|
637
|
+
jsonString,
|
|
638
|
+
(x) =>
|
|
639
|
+
GetIntegrationResourcesResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
640
|
+
`Failed to parse 'GetIntegrationResourcesResponseBody' from JSON`,
|
|
641
|
+
);
|
|
642
|
+
}
|
|
@@ -662,6 +662,7 @@ export const GetProjectsFramework = {
|
|
|
662
662
|
SanityV3: "sanity-v3",
|
|
663
663
|
Sanity: "sanity",
|
|
664
664
|
Storybook: "storybook",
|
|
665
|
+
Nitro: "nitro",
|
|
665
666
|
} as const;
|
|
666
667
|
export type GetProjectsFramework = ClosedEnum<typeof GetProjectsFramework>;
|
|
667
668
|
|
|
@@ -1134,6 +1135,7 @@ export const GetProjectsDeploymentType = {
|
|
|
1134
1135
|
Preview: "preview",
|
|
1135
1136
|
All: "all",
|
|
1136
1137
|
ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
|
|
1138
|
+
AllExceptCustomDomains: "all_except_custom_domains",
|
|
1137
1139
|
} as const;
|
|
1138
1140
|
export type GetProjectsDeploymentType = ClosedEnum<
|
|
1139
1141
|
typeof GetProjectsDeploymentType
|
|
@@ -1577,6 +1579,7 @@ export const GetProjectsTrustedIpsProjectsDeploymentType = {
|
|
|
1577
1579
|
Preview: "preview",
|
|
1578
1580
|
All: "all",
|
|
1579
1581
|
ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
|
|
1582
|
+
AllExceptCustomDomains: "all_except_custom_domains",
|
|
1580
1583
|
} as const;
|
|
1581
1584
|
export type GetProjectsTrustedIpsProjectsDeploymentType = ClosedEnum<
|
|
1582
1585
|
typeof GetProjectsTrustedIpsProjectsDeploymentType
|
|
@@ -1591,6 +1594,7 @@ export const GetProjectsTrustedIpsDeploymentType = {
|
|
|
1591
1594
|
Preview: "preview",
|
|
1592
1595
|
All: "all",
|
|
1593
1596
|
ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
|
|
1597
|
+
AllExceptCustomDomains: "all_except_custom_domains",
|
|
1594
1598
|
} as const;
|
|
1595
1599
|
export type GetProjectsTrustedIpsDeploymentType = ClosedEnum<
|
|
1596
1600
|
typeof GetProjectsTrustedIpsDeploymentType
|
|
@@ -1965,7 +1969,6 @@ export type GetProjectsProjects = {
|
|
|
1965
1969
|
rollingRelease?: GetProjectsRollingRelease | null | undefined;
|
|
1966
1970
|
defaultResourceConfig: GetProjectsDefaultResourceConfig;
|
|
1967
1971
|
rootDirectory?: string | null | undefined;
|
|
1968
|
-
serverlessFunctionRegion?: string | null | undefined;
|
|
1969
1972
|
serverlessFunctionZeroConfigFailover?: boolean | undefined;
|
|
1970
1973
|
skewProtectionBoundaryAt?: number | undefined;
|
|
1971
1974
|
skewProtectionMaxAge?: number | undefined;
|
|
@@ -11060,7 +11063,6 @@ export const GetProjectsProjects$inboundSchema: z.ZodType<
|
|
|
11060
11063
|
GetProjectsDefaultResourceConfig$inboundSchema
|
|
11061
11064
|
),
|
|
11062
11065
|
rootDirectory: z.nullable(z.string()).optional(),
|
|
11063
|
-
serverlessFunctionRegion: z.nullable(z.string()).optional(),
|
|
11064
11066
|
serverlessFunctionZeroConfigFailover: z.boolean().optional(),
|
|
11065
11067
|
skewProtectionBoundaryAt: z.number().optional(),
|
|
11066
11068
|
skewProtectionMaxAge: z.number().optional(),
|
|
@@ -11176,7 +11178,6 @@ export type GetProjectsProjects$Outbound = {
|
|
|
11176
11178
|
rollingRelease?: GetProjectsRollingRelease$Outbound | null | undefined;
|
|
11177
11179
|
defaultResourceConfig: GetProjectsDefaultResourceConfig$Outbound;
|
|
11178
11180
|
rootDirectory?: string | null | undefined;
|
|
11179
|
-
serverlessFunctionRegion?: string | null | undefined;
|
|
11180
11181
|
serverlessFunctionZeroConfigFailover?: boolean | undefined;
|
|
11181
11182
|
skewProtectionBoundaryAt?: number | undefined;
|
|
11182
11183
|
skewProtectionMaxAge?: number | undefined;
|
|
@@ -11297,7 +11298,6 @@ export const GetProjectsProjects$outboundSchema: z.ZodType<
|
|
|
11297
11298
|
GetProjectsDefaultResourceConfig$outboundSchema
|
|
11298
11299
|
),
|
|
11299
11300
|
rootDirectory: z.nullable(z.string()).optional(),
|
|
11300
|
-
serverlessFunctionRegion: z.nullable(z.string()).optional(),
|
|
11301
11301
|
serverlessFunctionZeroConfigFailover: z.boolean().optional(),
|
|
11302
11302
|
skewProtectionBoundaryAt: z.number().optional(),
|
|
11303
11303
|
skewProtectionMaxAge: z.number().optional(),
|