@vercel/sdk 1.13.7 → 1.13.9
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 +27 -21
- package/bin/mcp-server.js +2709 -1875
- package/bin/mcp-server.js.map +61 -54
- package/docs/sdks/domainsregistrar/README.md +73 -32
- package/docs/sdks/marketplace/README.md +150 -0
- package/esm/__tests__/accessgroups.test.js +2 -6
- package/esm/__tests__/accessgroups.test.js.map +1 -1
- package/esm/__tests__/domainsregistrar.test.js +33 -15
- package/esm/__tests__/domainsregistrar.test.js.map +1 -1
- package/esm/__tests__/edgeconfig.test.js +6 -6
- package/esm/__tests__/edgeconfig.test.js.map +1 -1
- package/esm/__tests__/integrations.test.js +1 -1
- package/esm/__tests__/logdrains.test.js +2 -6
- package/esm/__tests__/logdrains.test.js.map +1 -1
- package/esm/__tests__/marketplace.test.js +16 -0
- package/esm/__tests__/marketplace.test.js.map +1 -1
- package/esm/__tests__/rollingrelease.test.js +1 -1
- 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__/teams.test.js +2 -2
- package/esm/__tests__/teams.test.js.map +1 -1
- package/esm/funcs/domainsRegistrarBuyDomains.d.ts +2 -2
- package/esm/funcs/domainsRegistrarBuyDomains.d.ts.map +1 -1
- package/esm/funcs/domainsRegistrarBuyDomains.js +8 -4
- package/esm/funcs/domainsRegistrarBuyDomains.js.map +1 -1
- package/esm/funcs/domainsRegistrarBuySingleDomain.js +5 -1
- package/esm/funcs/domainsRegistrarBuySingleDomain.js.map +1 -1
- package/esm/funcs/domainsRegistrarGetBulkAvailability.d.ts +2 -2
- package/esm/funcs/domainsRegistrarGetBulkAvailability.d.ts.map +1 -1
- package/esm/funcs/domainsRegistrarGetBulkAvailability.js +8 -4
- package/esm/funcs/domainsRegistrarGetBulkAvailability.js.map +1 -1
- package/esm/funcs/domainsRegistrarGetContactInfoSchema.js +5 -1
- package/esm/funcs/domainsRegistrarGetContactInfoSchema.js.map +1 -1
- package/esm/funcs/domainsRegistrarGetDomainAuthCode.js +5 -1
- package/esm/funcs/domainsRegistrarGetDomainAuthCode.js.map +1 -1
- package/esm/funcs/domainsRegistrarGetDomainAvailability.js +5 -1
- package/esm/funcs/domainsRegistrarGetDomainAvailability.js.map +1 -1
- package/esm/funcs/domainsRegistrarGetDomainPrice.js +1 -0
- package/esm/funcs/domainsRegistrarGetDomainPrice.js.map +1 -1
- package/esm/funcs/domainsRegistrarGetDomainTransferIn.js +5 -1
- package/esm/funcs/domainsRegistrarGetDomainTransferIn.js.map +1 -1
- package/esm/funcs/domainsRegistrarGetOrder.js +5 -1
- package/esm/funcs/domainsRegistrarGetOrder.js.map +1 -1
- package/esm/funcs/domainsRegistrarGetSupportedTlds.d.ts +2 -1
- package/esm/funcs/domainsRegistrarGetSupportedTlds.d.ts.map +1 -1
- package/esm/funcs/domainsRegistrarGetSupportedTlds.js +17 -3
- package/esm/funcs/domainsRegistrarGetSupportedTlds.js.map +1 -1
- package/esm/funcs/domainsRegistrarGetTldPrice.js +1 -0
- package/esm/funcs/domainsRegistrarGetTldPrice.js.map +1 -1
- package/esm/funcs/domainsRegistrarRenewDomain.js +5 -1
- package/esm/funcs/domainsRegistrarRenewDomain.js.map +1 -1
- package/esm/funcs/domainsRegistrarTransferInDomain.js +5 -1
- package/esm/funcs/domainsRegistrarTransferInDomain.js.map +1 -1
- package/esm/funcs/domainsRegistrarUpdateDomainAutoRenew.js +5 -1
- package/esm/funcs/domainsRegistrarUpdateDomainAutoRenew.js.map +1 -1
- package/esm/funcs/domainsRegistrarUpdateDomainNameservers.js +5 -1
- package/esm/funcs/domainsRegistrarUpdateDomainNameservers.js.map +1 -1
- package/esm/funcs/marketplaceUpdateInstallation.d.ts +17 -0
- package/esm/funcs/marketplaceUpdateInstallation.d.ts.map +1 -0
- package/esm/funcs/marketplaceUpdateInstallation.js +82 -0
- package/esm/funcs/marketplaceUpdateInstallation.js.map +1 -0
- package/esm/funcs/marketplaceUpdateResource.d.ts +17 -0
- package/esm/funcs/marketplaceUpdateResource.d.ts.map +1 -0
- package/esm/funcs/marketplaceUpdateResource.js +85 -0
- package/esm/funcs/marketplaceUpdateResource.js.map +1 -0
- package/esm/funcs/projectsPauseProject.js +2 -2
- package/esm/funcs/projectsPauseProject.js.map +1 -1
- 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/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +5 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/domainsRegistrarBuyDomains.d.ts +1 -1
- package/esm/mcp-server/tools/domainsRegistrarBuyDomains.js +2 -2
- package/esm/mcp-server/tools/domainsRegistrarBuyDomains.js.map +1 -1
- package/esm/mcp-server/tools/domainsRegistrarGetBulkAvailability.d.ts +1 -1
- package/esm/mcp-server/tools/domainsRegistrarGetBulkAvailability.js +2 -2
- package/esm/mcp-server/tools/domainsRegistrarGetBulkAvailability.js.map +1 -1
- package/esm/mcp-server/tools/domainsRegistrarGetSupportedTlds.d.ts +5 -1
- package/esm/mcp-server/tools/domainsRegistrarGetSupportedTlds.d.ts.map +1 -1
- package/esm/mcp-server/tools/domainsRegistrarGetSupportedTlds.js +7 -2
- package/esm/mcp-server/tools/domainsRegistrarGetSupportedTlds.js.map +1 -1
- package/esm/mcp-server/tools/marketplaceUpdateInstallation.d.ts +7 -0
- package/esm/mcp-server/tools/marketplaceUpdateInstallation.d.ts.map +1 -0
- package/esm/mcp-server/tools/marketplaceUpdateInstallation.js +27 -0
- package/esm/mcp-server/tools/marketplaceUpdateInstallation.js.map +1 -0
- package/esm/mcp-server/tools/marketplaceUpdateResource.d.ts +7 -0
- package/esm/mcp-server/tools/marketplaceUpdateResource.d.ts.map +1 -0
- package/esm/mcp-server/tools/marketplaceUpdateResource.js +28 -0
- package/esm/mcp-server/tools/marketplaceUpdateResource.js.map +1 -0
- package/esm/models/buydomainsop.d.ts +27 -0
- package/esm/models/buydomainsop.d.ts.map +1 -1
- package/esm/models/buydomainsop.js +35 -0
- package/esm/models/buydomainsop.js.map +1 -1
- package/esm/models/buysingledomainop.d.ts +10 -8
- package/esm/models/buysingledomainop.d.ts.map +1 -1
- package/esm/models/buysingledomainop.js +14 -13
- package/esm/models/buysingledomainop.js.map +1 -1
- package/esm/models/canceldeploymentop.d.ts +3 -10
- package/esm/models/canceldeploymentop.d.ts.map +1 -1
- package/esm/models/canceldeploymentop.js +1 -4
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/createdeploymentop.d.ts +6 -10
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +2 -4
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/createintegrationstoredirectop.d.ts +415 -285
- package/esm/models/createintegrationstoredirectop.d.ts.map +1 -1
- package/esm/models/createintegrationstoredirectop.js +477 -351
- package/esm/models/createintegrationstoredirectop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +130 -124
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +133 -131
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/exchangessotokenop.d.ts +2 -0
- package/esm/models/exchangessotokenop.d.ts.map +1 -1
- package/esm/models/exchangessotokenop.js +4 -0
- package/esm/models/exchangessotokenop.js.map +1 -1
- package/esm/models/getbulkavailabilityop.d.ts +27 -0
- package/esm/models/getbulkavailabilityop.d.ts.map +1 -1
- package/esm/models/getbulkavailabilityop.js +36 -0
- package/esm/models/getbulkavailabilityop.js.map +1 -1
- package/esm/models/getconfigurationproductsop.d.ts +375 -375
- package/esm/models/getconfigurationproductsop.js +465 -465
- package/esm/models/getcontactinfoschemaop.d.ts +2 -0
- package/esm/models/getcontactinfoschemaop.d.ts.map +1 -1
- package/esm/models/getcontactinfoschemaop.js +2 -0
- package/esm/models/getcontactinfoschemaop.js.map +1 -1
- package/esm/models/getdeploymentop.d.ts +3 -10
- package/esm/models/getdeploymentop.d.ts.map +1 -1
- package/esm/models/getdeploymentop.js +1 -4
- package/esm/models/getdeploymentop.js.map +1 -1
- package/esm/models/getdeploymentsop.d.ts +3 -0
- package/esm/models/getdeploymentsop.d.ts.map +1 -1
- package/esm/models/getdeploymentsop.js +1 -0
- package/esm/models/getdeploymentsop.js.map +1 -1
- package/esm/models/getdomainauthcodeop.d.ts +2 -0
- package/esm/models/getdomainauthcodeop.d.ts.map +1 -1
- package/esm/models/getdomainauthcodeop.js +2 -0
- package/esm/models/getdomainauthcodeop.js.map +1 -1
- package/esm/models/getdomainavailabilityop.d.ts +2 -0
- package/esm/models/getdomainavailabilityop.d.ts.map +1 -1
- package/esm/models/getdomainavailabilityop.js +2 -0
- package/esm/models/getdomainavailabilityop.js.map +1 -1
- package/esm/models/getdomainpriceop.d.ts +2 -0
- package/esm/models/getdomainpriceop.d.ts.map +1 -1
- package/esm/models/getdomainpriceop.js +2 -0
- package/esm/models/getdomainpriceop.js.map +1 -1
- package/esm/models/getdomaintransferinop.d.ts +2 -0
- package/esm/models/getdomaintransferinop.d.ts.map +1 -1
- package/esm/models/getdomaintransferinop.js +2 -0
- package/esm/models/getdomaintransferinop.js.map +1 -1
- package/esm/models/getorderop.d.ts +2 -0
- package/esm/models/getorderop.d.ts.map +1 -1
- package/esm/models/getorderop.js +2 -0
- package/esm/models/getorderop.js.map +1 -1
- package/esm/models/getprojectsop.d.ts +127 -124
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +132 -131
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/getsupportedtldsop.d.ts +29 -0
- package/esm/models/getsupportedtldsop.d.ts.map +1 -0
- package/esm/models/getsupportedtldsop.js +31 -0
- package/esm/models/getsupportedtldsop.js.map +1 -0
- package/esm/models/gettldpriceop.d.ts +2 -0
- package/esm/models/gettldpriceop.d.ts.map +1 -1
- package/esm/models/gettldpriceop.js +2 -0
- package/esm/models/gettldpriceop.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 +68 -68
- package/esm/models/importresourceop.d.ts.map +1 -1
- package/esm/models/importresourceop.js +75 -72
- package/esm/models/importresourceop.js.map +1 -1
- package/esm/models/renewdomainop.d.ts +2 -0
- package/esm/models/renewdomainop.d.ts.map +1 -1
- package/esm/models/renewdomainop.js +2 -0
- package/esm/models/renewdomainop.js.map +1 -1
- package/esm/models/team.d.ts +10 -10
- package/esm/models/team.d.ts.map +1 -1
- package/esm/models/team.js +5 -5
- package/esm/models/team.js.map +1 -1
- package/esm/models/transferindomainop.d.ts +2 -0
- package/esm/models/transferindomainop.d.ts.map +1 -1
- package/esm/models/transferindomainop.js +2 -0
- package/esm/models/transferindomainop.js.map +1 -1
- package/esm/models/updatedomainautorenewop.d.ts +2 -0
- package/esm/models/updatedomainautorenewop.d.ts.map +1 -1
- package/esm/models/updatedomainautorenewop.js +2 -0
- package/esm/models/updatedomainautorenewop.js.map +1 -1
- package/esm/models/updatedomainnameserversop.d.ts +2 -0
- package/esm/models/updatedomainnameserversop.d.ts.map +1 -1
- package/esm/models/updatedomainnameserversop.js +2 -0
- package/esm/models/updatedomainnameserversop.js.map +1 -1
- package/esm/models/updateinstallationop.d.ts +242 -0
- package/esm/models/updateinstallationop.d.ts.map +1 -0
- package/esm/models/updateinstallationop.js +246 -0
- package/esm/models/updateinstallationop.js.map +1 -0
- package/esm/models/updateprojectdatacacheop.d.ts +127 -124
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +132 -131
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +130 -124
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +133 -131
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/updateresourceop.d.ts +432 -0
- package/esm/models/updateresourceop.d.ts.map +1 -0
- package/esm/models/updateresourceop.js +393 -0
- package/esm/models/updateresourceop.js.map +1 -0
- package/esm/models/userevent.d.ts +152 -6
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +112 -2
- package/esm/models/userevent.js.map +1 -1
- package/esm/sdk/domainsregistrar.d.ts +6 -5
- package/esm/sdk/domainsregistrar.d.ts.map +1 -1
- package/esm/sdk/domainsregistrar.js +2 -2
- package/esm/sdk/domainsregistrar.js.map +1 -1
- package/esm/sdk/marketplace.d.ts +16 -0
- package/esm/sdk/marketplace.d.ts.map +1 -1
- package/esm/sdk/marketplace.js +20 -0
- package/esm/sdk/marketplace.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/accessgroups.test.ts +2 -6
- package/src/__tests__/domainsregistrar.test.ts +33 -15
- package/src/__tests__/edgeconfig.test.ts +6 -6
- package/src/__tests__/integrations.test.ts +1 -1
- package/src/__tests__/logdrains.test.ts +2 -6
- package/src/__tests__/marketplace.test.ts +19 -0
- package/src/__tests__/rollingrelease.test.ts +1 -1
- package/src/__tests__/security.test.ts +4 -4
- package/src/__tests__/teams.test.ts +2 -2
- package/src/funcs/domainsRegistrarBuyDomains.ts +12 -7
- package/src/funcs/domainsRegistrarBuySingleDomain.ts +6 -1
- package/src/funcs/domainsRegistrarGetBulkAvailability.ts +12 -7
- package/src/funcs/domainsRegistrarGetContactInfoSchema.ts +6 -1
- package/src/funcs/domainsRegistrarGetDomainAuthCode.ts +6 -1
- package/src/funcs/domainsRegistrarGetDomainAvailability.ts +6 -1
- package/src/funcs/domainsRegistrarGetDomainPrice.ts +1 -0
- package/src/funcs/domainsRegistrarGetDomainTransferIn.ts +6 -1
- package/src/funcs/domainsRegistrarGetOrder.ts +6 -1
- package/src/funcs/domainsRegistrarGetSupportedTlds.ts +26 -0
- package/src/funcs/domainsRegistrarGetTldPrice.ts +1 -0
- package/src/funcs/domainsRegistrarRenewDomain.ts +6 -1
- package/src/funcs/domainsRegistrarTransferInDomain.ts +6 -1
- package/src/funcs/domainsRegistrarUpdateDomainAutoRenew.ts +6 -1
- package/src/funcs/domainsRegistrarUpdateDomainNameservers.ts +6 -1
- package/src/funcs/marketplaceUpdateInstallation.ts +174 -0
- package/src/funcs/marketplaceUpdateResource.ts +179 -0
- package/src/funcs/projectsPauseProject.ts +2 -2
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/domainsRegistrarBuyDomains.ts +2 -2
- package/src/mcp-server/tools/domainsRegistrarGetBulkAvailability.ts +2 -2
- package/src/mcp-server/tools/domainsRegistrarGetSupportedTlds.ts +11 -2
- package/src/mcp-server/tools/marketplaceUpdateInstallation.ts +35 -0
- package/src/mcp-server/tools/marketplaceUpdateResource.ts +37 -0
- package/src/models/buydomainsop.ts +70 -0
- package/src/models/buysingledomainop.ts +20 -14
- package/src/models/canceldeploymentop.ts +1 -14
- package/src/models/createdeploymentop.ts +2 -14
- package/src/models/createintegrationstoredirectop.ts +821 -604
- package/src/models/createprojectop.ts +257 -255
- package/src/models/exchangessotokenop.ts +6 -0
- package/src/models/getbulkavailabilityop.ts +71 -0
- package/src/models/getconfigurationproductsop.ts +802 -802
- package/src/models/getcontactinfoschemaop.ts +4 -0
- package/src/models/getdeploymentop.ts +1 -14
- package/src/models/getdeploymentsop.ts +1 -0
- package/src/models/getdomainauthcodeop.ts +4 -0
- package/src/models/getdomainavailabilityop.ts +4 -0
- package/src/models/getdomainpriceop.ts +4 -0
- package/src/models/getdomaintransferinop.ts +4 -0
- package/src/models/getorderop.ts +4 -0
- package/src/models/getprojectsop.ts +256 -255
- package/src/models/getsupportedtldsop.ts +66 -0
- package/src/models/gettldpriceop.ts +4 -0
- package/src/models/getwebhooksop.ts +1 -0
- package/src/models/importresourceop.ts +142 -115
- package/src/models/renewdomainop.ts +4 -0
- package/src/models/team.ts +12 -12
- package/src/models/transferindomainop.ts +4 -0
- package/src/models/updatedomainautorenewop.ts +4 -0
- package/src/models/updatedomainnameserversop.ts +4 -0
- package/src/models/updateinstallationop.ts +488 -0
- package/src/models/updateprojectdatacacheop.ts +256 -255
- package/src/models/updateprojectop.ts +257 -255
- package/src/models/updateresourceop.ts +823 -0
- package/src/models/userevent.ts +220 -2
- package/src/sdk/domainsregistrar.ts +7 -4
- package/src/sdk/marketplace.ts +41 -0
- package/vercel-spec.json +1824 -1187
package/src/models/team.ts
CHANGED
|
@@ -20,14 +20,14 @@ export type Connect = {
|
|
|
20
20
|
* Information for the SAML Single Sign-On configuration.
|
|
21
21
|
*/
|
|
22
22
|
export type Connection = {
|
|
23
|
-
/**
|
|
24
|
-
* Current status of the connection.
|
|
25
|
-
*/
|
|
26
|
-
status: string;
|
|
27
23
|
/**
|
|
28
24
|
* The Identity Provider "type", for example Okta.
|
|
29
25
|
*/
|
|
30
26
|
type: string;
|
|
27
|
+
/**
|
|
28
|
+
* Current status of the connection.
|
|
29
|
+
*/
|
|
30
|
+
status: string;
|
|
31
31
|
/**
|
|
32
32
|
* Current state of the connection.
|
|
33
33
|
*/
|
|
@@ -340,9 +340,9 @@ export const TeamTeamPermissions = {
|
|
|
340
340
|
export type TeamTeamPermissions = ClosedEnum<typeof TeamTeamPermissions>;
|
|
341
341
|
|
|
342
342
|
export const Origin = {
|
|
343
|
+
Link: "link",
|
|
343
344
|
Saml: "saml",
|
|
344
345
|
Mail: "mail",
|
|
345
|
-
Link: "link",
|
|
346
346
|
Import: "import",
|
|
347
347
|
Teams: "teams",
|
|
348
348
|
Github: "github",
|
|
@@ -376,12 +376,12 @@ export type JoinedFrom = {
|
|
|
376
376
|
export type Membership = {
|
|
377
377
|
uid?: string | undefined;
|
|
378
378
|
entitlements?: Array<Entitlements> | undefined;
|
|
379
|
+
teamId?: string | undefined;
|
|
379
380
|
confirmed: boolean;
|
|
380
381
|
accessRequestedAt?: number | undefined;
|
|
381
382
|
role: Role;
|
|
382
383
|
teamRoles?: Array<TeamTeamRoles> | undefined;
|
|
383
384
|
teamPermissions?: Array<TeamTeamPermissions> | undefined;
|
|
384
|
-
teamId?: string | undefined;
|
|
385
385
|
createdAt: number;
|
|
386
386
|
created: number;
|
|
387
387
|
joinedFrom?: JoinedFrom | undefined;
|
|
@@ -550,8 +550,8 @@ export const Connection$inboundSchema: z.ZodType<
|
|
|
550
550
|
z.ZodTypeDef,
|
|
551
551
|
unknown
|
|
552
552
|
> = z.object({
|
|
553
|
-
status: z.string(),
|
|
554
553
|
type: z.string(),
|
|
554
|
+
status: z.string(),
|
|
555
555
|
state: z.string(),
|
|
556
556
|
connectedAt: z.number(),
|
|
557
557
|
lastReceivedWebhookEvent: z.number().optional(),
|
|
@@ -559,8 +559,8 @@ export const Connection$inboundSchema: z.ZodType<
|
|
|
559
559
|
|
|
560
560
|
/** @internal */
|
|
561
561
|
export type Connection$Outbound = {
|
|
562
|
-
status: string;
|
|
563
562
|
type: string;
|
|
563
|
+
status: string;
|
|
564
564
|
state: string;
|
|
565
565
|
connectedAt: number;
|
|
566
566
|
lastReceivedWebhookEvent?: number | undefined;
|
|
@@ -572,8 +572,8 @@ export const Connection$outboundSchema: z.ZodType<
|
|
|
572
572
|
z.ZodTypeDef,
|
|
573
573
|
Connection
|
|
574
574
|
> = z.object({
|
|
575
|
-
status: z.string(),
|
|
576
575
|
type: z.string(),
|
|
576
|
+
status: z.string(),
|
|
577
577
|
state: z.string(),
|
|
578
578
|
connectedAt: z.number(),
|
|
579
579
|
lastReceivedWebhookEvent: z.number().optional(),
|
|
@@ -1779,12 +1779,12 @@ export const Membership$inboundSchema: z.ZodType<
|
|
|
1779
1779
|
> = z.object({
|
|
1780
1780
|
uid: z.string().optional(),
|
|
1781
1781
|
entitlements: z.array(z.lazy(() => Entitlements$inboundSchema)).optional(),
|
|
1782
|
+
teamId: z.string().optional(),
|
|
1782
1783
|
confirmed: z.boolean(),
|
|
1783
1784
|
accessRequestedAt: z.number().optional(),
|
|
1784
1785
|
role: Role$inboundSchema,
|
|
1785
1786
|
teamRoles: z.array(TeamTeamRoles$inboundSchema).optional(),
|
|
1786
1787
|
teamPermissions: z.array(TeamTeamPermissions$inboundSchema).optional(),
|
|
1787
|
-
teamId: z.string().optional(),
|
|
1788
1788
|
createdAt: z.number(),
|
|
1789
1789
|
created: z.number(),
|
|
1790
1790
|
joinedFrom: z.lazy(() => JoinedFrom$inboundSchema).optional(),
|
|
@@ -1794,12 +1794,12 @@ export const Membership$inboundSchema: z.ZodType<
|
|
|
1794
1794
|
export type Membership$Outbound = {
|
|
1795
1795
|
uid?: string | undefined;
|
|
1796
1796
|
entitlements?: Array<Entitlements$Outbound> | undefined;
|
|
1797
|
+
teamId?: string | undefined;
|
|
1797
1798
|
confirmed: boolean;
|
|
1798
1799
|
accessRequestedAt?: number | undefined;
|
|
1799
1800
|
role: string;
|
|
1800
1801
|
teamRoles?: Array<string> | undefined;
|
|
1801
1802
|
teamPermissions?: Array<string> | undefined;
|
|
1802
|
-
teamId?: string | undefined;
|
|
1803
1803
|
createdAt: number;
|
|
1804
1804
|
created: number;
|
|
1805
1805
|
joinedFrom?: JoinedFrom$Outbound | undefined;
|
|
@@ -1813,12 +1813,12 @@ export const Membership$outboundSchema: z.ZodType<
|
|
|
1813
1813
|
> = z.object({
|
|
1814
1814
|
uid: z.string().optional(),
|
|
1815
1815
|
entitlements: z.array(z.lazy(() => Entitlements$outboundSchema)).optional(),
|
|
1816
|
+
teamId: z.string().optional(),
|
|
1816
1817
|
confirmed: z.boolean(),
|
|
1817
1818
|
accessRequestedAt: z.number().optional(),
|
|
1818
1819
|
role: Role$outboundSchema,
|
|
1819
1820
|
teamRoles: z.array(TeamTeamRoles$outboundSchema).optional(),
|
|
1820
1821
|
teamPermissions: z.array(TeamTeamPermissions$outboundSchema).optional(),
|
|
1821
|
-
teamId: z.string().optional(),
|
|
1822
1822
|
createdAt: z.number(),
|
|
1823
1823
|
created: z.number(),
|
|
1824
1824
|
joinedFrom: z.lazy(() => JoinedFrom$outboundSchema).optional(),
|
|
@@ -121,6 +121,7 @@ export type TransferInDomainRequestBody = {
|
|
|
121
121
|
|
|
122
122
|
export type TransferInDomainRequest = {
|
|
123
123
|
domain: string;
|
|
124
|
+
teamId?: string | undefined;
|
|
124
125
|
requestBody: TransferInDomainRequestBody;
|
|
125
126
|
};
|
|
126
127
|
|
|
@@ -333,6 +334,7 @@ export const TransferInDomainRequest$inboundSchema: z.ZodType<
|
|
|
333
334
|
unknown
|
|
334
335
|
> = z.object({
|
|
335
336
|
domain: z.string(),
|
|
337
|
+
teamId: z.string().optional(),
|
|
336
338
|
RequestBody: z.lazy(() => TransferInDomainRequestBody$inboundSchema),
|
|
337
339
|
}).transform((v) => {
|
|
338
340
|
return remap$(v, {
|
|
@@ -343,6 +345,7 @@ export const TransferInDomainRequest$inboundSchema: z.ZodType<
|
|
|
343
345
|
/** @internal */
|
|
344
346
|
export type TransferInDomainRequest$Outbound = {
|
|
345
347
|
domain: string;
|
|
348
|
+
teamId?: string | undefined;
|
|
346
349
|
RequestBody: TransferInDomainRequestBody$Outbound;
|
|
347
350
|
};
|
|
348
351
|
|
|
@@ -353,6 +356,7 @@ export const TransferInDomainRequest$outboundSchema: z.ZodType<
|
|
|
353
356
|
TransferInDomainRequest
|
|
354
357
|
> = z.object({
|
|
355
358
|
domain: z.string(),
|
|
359
|
+
teamId: z.string().optional(),
|
|
356
360
|
requestBody: z.lazy(() => TransferInDomainRequestBody$outboundSchema),
|
|
357
361
|
}).transform((v) => {
|
|
358
362
|
return remap$(v, {
|
|
@@ -50,6 +50,7 @@ export type UpdateDomainAutoRenewRequestBody = {
|
|
|
50
50
|
|
|
51
51
|
export type UpdateDomainAutoRenewRequest = {
|
|
52
52
|
domain: string;
|
|
53
|
+
teamId?: string | undefined;
|
|
53
54
|
requestBody: UpdateDomainAutoRenewRequestBody;
|
|
54
55
|
};
|
|
55
56
|
|
|
@@ -132,6 +133,7 @@ export const UpdateDomainAutoRenewRequest$inboundSchema: z.ZodType<
|
|
|
132
133
|
unknown
|
|
133
134
|
> = z.object({
|
|
134
135
|
domain: z.string(),
|
|
136
|
+
teamId: z.string().optional(),
|
|
135
137
|
RequestBody: z.lazy(() => UpdateDomainAutoRenewRequestBody$inboundSchema),
|
|
136
138
|
}).transform((v) => {
|
|
137
139
|
return remap$(v, {
|
|
@@ -142,6 +144,7 @@ export const UpdateDomainAutoRenewRequest$inboundSchema: z.ZodType<
|
|
|
142
144
|
/** @internal */
|
|
143
145
|
export type UpdateDomainAutoRenewRequest$Outbound = {
|
|
144
146
|
domain: string;
|
|
147
|
+
teamId?: string | undefined;
|
|
145
148
|
RequestBody: UpdateDomainAutoRenewRequestBody$Outbound;
|
|
146
149
|
};
|
|
147
150
|
|
|
@@ -152,6 +155,7 @@ export const UpdateDomainAutoRenewRequest$outboundSchema: z.ZodType<
|
|
|
152
155
|
UpdateDomainAutoRenewRequest
|
|
153
156
|
> = z.object({
|
|
154
157
|
domain: z.string(),
|
|
158
|
+
teamId: z.string().optional(),
|
|
155
159
|
requestBody: z.lazy(() => UpdateDomainAutoRenewRequestBody$outboundSchema),
|
|
156
160
|
}).transform((v) => {
|
|
157
161
|
return remap$(v, {
|
|
@@ -38,6 +38,7 @@ export type UpdateDomainNameserversRequestBody = {
|
|
|
38
38
|
|
|
39
39
|
export type UpdateDomainNameserversRequest = {
|
|
40
40
|
domain: string;
|
|
41
|
+
teamId?: string | undefined;
|
|
41
42
|
requestBody: UpdateDomainNameserversRequestBody;
|
|
42
43
|
};
|
|
43
44
|
|
|
@@ -120,6 +121,7 @@ export const UpdateDomainNameserversRequest$inboundSchema: z.ZodType<
|
|
|
120
121
|
unknown
|
|
121
122
|
> = z.object({
|
|
122
123
|
domain: z.string(),
|
|
124
|
+
teamId: z.string().optional(),
|
|
123
125
|
RequestBody: z.lazy(() => UpdateDomainNameserversRequestBody$inboundSchema),
|
|
124
126
|
}).transform((v) => {
|
|
125
127
|
return remap$(v, {
|
|
@@ -130,6 +132,7 @@ export const UpdateDomainNameserversRequest$inboundSchema: z.ZodType<
|
|
|
130
132
|
/** @internal */
|
|
131
133
|
export type UpdateDomainNameserversRequest$Outbound = {
|
|
132
134
|
domain: string;
|
|
135
|
+
teamId?: string | undefined;
|
|
133
136
|
RequestBody: UpdateDomainNameserversRequestBody$Outbound;
|
|
134
137
|
};
|
|
135
138
|
|
|
@@ -140,6 +143,7 @@ export const UpdateDomainNameserversRequest$outboundSchema: z.ZodType<
|
|
|
140
143
|
UpdateDomainNameserversRequest
|
|
141
144
|
> = z.object({
|
|
142
145
|
domain: z.string(),
|
|
146
|
+
teamId: z.string().optional(),
|
|
143
147
|
requestBody: z.lazy(() => UpdateDomainNameserversRequestBody$outboundSchema),
|
|
144
148
|
}).transform((v) => {
|
|
145
149
|
return remap$(v, {
|
|
@@ -0,0 +1,488 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import {
|
|
8
|
+
collectExtraKeys as collectExtraKeys$,
|
|
9
|
+
safeParse,
|
|
10
|
+
} from "../lib/schemas.js";
|
|
11
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
12
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
13
|
+
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
14
|
+
|
|
15
|
+
export const UpdateInstallationType = {
|
|
16
|
+
Prepayment: "prepayment",
|
|
17
|
+
Subscription: "subscription",
|
|
18
|
+
} as const;
|
|
19
|
+
export type UpdateInstallationType = ClosedEnum<typeof UpdateInstallationType>;
|
|
20
|
+
|
|
21
|
+
export type Details = {
|
|
22
|
+
label: string;
|
|
23
|
+
value?: string | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export type HighlightedDetails = {
|
|
27
|
+
label: string;
|
|
28
|
+
value?: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export type BillingPlan = {
|
|
32
|
+
id: string;
|
|
33
|
+
type: UpdateInstallationType;
|
|
34
|
+
name: string;
|
|
35
|
+
description?: string | undefined;
|
|
36
|
+
paymentMethodRequired?: boolean | undefined;
|
|
37
|
+
cost?: string | undefined;
|
|
38
|
+
details?: Array<Details> | undefined;
|
|
39
|
+
highlightedDetails?: Array<HighlightedDetails> | undefined;
|
|
40
|
+
effectiveDate?: string | undefined;
|
|
41
|
+
additionalProperties?: { [k: string]: any };
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export const Level = {
|
|
45
|
+
Info: "info",
|
|
46
|
+
Warn: "warn",
|
|
47
|
+
Error: "error",
|
|
48
|
+
} as const;
|
|
49
|
+
export type Level = ClosedEnum<typeof Level>;
|
|
50
|
+
|
|
51
|
+
export type Notification = {
|
|
52
|
+
level: Level;
|
|
53
|
+
title: string;
|
|
54
|
+
message?: string | undefined;
|
|
55
|
+
href?: string | undefined;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export type UpdateInstallationRequestBody = {
|
|
59
|
+
billingPlan?: BillingPlan | undefined;
|
|
60
|
+
notification?: Notification | undefined;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export type UpdateInstallationRequest = {
|
|
64
|
+
integrationConfigurationId: string;
|
|
65
|
+
requestBody?: UpdateInstallationRequestBody | undefined;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
export const UpdateInstallationType$inboundSchema: z.ZodNativeEnum<
|
|
70
|
+
typeof UpdateInstallationType
|
|
71
|
+
> = z.nativeEnum(UpdateInstallationType);
|
|
72
|
+
|
|
73
|
+
/** @internal */
|
|
74
|
+
export const UpdateInstallationType$outboundSchema: z.ZodNativeEnum<
|
|
75
|
+
typeof UpdateInstallationType
|
|
76
|
+
> = UpdateInstallationType$inboundSchema;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @internal
|
|
80
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
81
|
+
*/
|
|
82
|
+
export namespace UpdateInstallationType$ {
|
|
83
|
+
/** @deprecated use `UpdateInstallationType$inboundSchema` instead. */
|
|
84
|
+
export const inboundSchema = UpdateInstallationType$inboundSchema;
|
|
85
|
+
/** @deprecated use `UpdateInstallationType$outboundSchema` instead. */
|
|
86
|
+
export const outboundSchema = UpdateInstallationType$outboundSchema;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** @internal */
|
|
90
|
+
export const Details$inboundSchema: z.ZodType<Details, z.ZodTypeDef, unknown> =
|
|
91
|
+
z.object({
|
|
92
|
+
label: z.string(),
|
|
93
|
+
value: z.string().optional(),
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
/** @internal */
|
|
97
|
+
export type Details$Outbound = {
|
|
98
|
+
label: string;
|
|
99
|
+
value?: string | undefined;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
/** @internal */
|
|
103
|
+
export const Details$outboundSchema: z.ZodType<
|
|
104
|
+
Details$Outbound,
|
|
105
|
+
z.ZodTypeDef,
|
|
106
|
+
Details
|
|
107
|
+
> = z.object({
|
|
108
|
+
label: z.string(),
|
|
109
|
+
value: z.string().optional(),
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* @internal
|
|
114
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
115
|
+
*/
|
|
116
|
+
export namespace Details$ {
|
|
117
|
+
/** @deprecated use `Details$inboundSchema` instead. */
|
|
118
|
+
export const inboundSchema = Details$inboundSchema;
|
|
119
|
+
/** @deprecated use `Details$outboundSchema` instead. */
|
|
120
|
+
export const outboundSchema = Details$outboundSchema;
|
|
121
|
+
/** @deprecated use `Details$Outbound` instead. */
|
|
122
|
+
export type Outbound = Details$Outbound;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function detailsToJSON(details: Details): string {
|
|
126
|
+
return JSON.stringify(Details$outboundSchema.parse(details));
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export function detailsFromJSON(
|
|
130
|
+
jsonString: string,
|
|
131
|
+
): SafeParseResult<Details, SDKValidationError> {
|
|
132
|
+
return safeParse(
|
|
133
|
+
jsonString,
|
|
134
|
+
(x) => Details$inboundSchema.parse(JSON.parse(x)),
|
|
135
|
+
`Failed to parse 'Details' from JSON`,
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/** @internal */
|
|
140
|
+
export const HighlightedDetails$inboundSchema: z.ZodType<
|
|
141
|
+
HighlightedDetails,
|
|
142
|
+
z.ZodTypeDef,
|
|
143
|
+
unknown
|
|
144
|
+
> = z.object({
|
|
145
|
+
label: z.string(),
|
|
146
|
+
value: z.string().optional(),
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
/** @internal */
|
|
150
|
+
export type HighlightedDetails$Outbound = {
|
|
151
|
+
label: string;
|
|
152
|
+
value?: string | undefined;
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
/** @internal */
|
|
156
|
+
export const HighlightedDetails$outboundSchema: z.ZodType<
|
|
157
|
+
HighlightedDetails$Outbound,
|
|
158
|
+
z.ZodTypeDef,
|
|
159
|
+
HighlightedDetails
|
|
160
|
+
> = z.object({
|
|
161
|
+
label: z.string(),
|
|
162
|
+
value: z.string().optional(),
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* @internal
|
|
167
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
168
|
+
*/
|
|
169
|
+
export namespace HighlightedDetails$ {
|
|
170
|
+
/** @deprecated use `HighlightedDetails$inboundSchema` instead. */
|
|
171
|
+
export const inboundSchema = HighlightedDetails$inboundSchema;
|
|
172
|
+
/** @deprecated use `HighlightedDetails$outboundSchema` instead. */
|
|
173
|
+
export const outboundSchema = HighlightedDetails$outboundSchema;
|
|
174
|
+
/** @deprecated use `HighlightedDetails$Outbound` instead. */
|
|
175
|
+
export type Outbound = HighlightedDetails$Outbound;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export function highlightedDetailsToJSON(
|
|
179
|
+
highlightedDetails: HighlightedDetails,
|
|
180
|
+
): string {
|
|
181
|
+
return JSON.stringify(
|
|
182
|
+
HighlightedDetails$outboundSchema.parse(highlightedDetails),
|
|
183
|
+
);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export function highlightedDetailsFromJSON(
|
|
187
|
+
jsonString: string,
|
|
188
|
+
): SafeParseResult<HighlightedDetails, SDKValidationError> {
|
|
189
|
+
return safeParse(
|
|
190
|
+
jsonString,
|
|
191
|
+
(x) => HighlightedDetails$inboundSchema.parse(JSON.parse(x)),
|
|
192
|
+
`Failed to parse 'HighlightedDetails' from JSON`,
|
|
193
|
+
);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/** @internal */
|
|
197
|
+
export const BillingPlan$inboundSchema: z.ZodType<
|
|
198
|
+
BillingPlan,
|
|
199
|
+
z.ZodTypeDef,
|
|
200
|
+
unknown
|
|
201
|
+
> = collectExtraKeys$(
|
|
202
|
+
z.object({
|
|
203
|
+
id: z.string(),
|
|
204
|
+
type: UpdateInstallationType$inboundSchema,
|
|
205
|
+
name: z.string(),
|
|
206
|
+
description: z.string().optional(),
|
|
207
|
+
paymentMethodRequired: z.boolean().optional(),
|
|
208
|
+
cost: z.string().optional(),
|
|
209
|
+
details: z.array(z.lazy(() => Details$inboundSchema)).optional(),
|
|
210
|
+
highlightedDetails: z.array(z.lazy(() => HighlightedDetails$inboundSchema))
|
|
211
|
+
.optional(),
|
|
212
|
+
effectiveDate: z.string().optional(),
|
|
213
|
+
}).catchall(z.any()),
|
|
214
|
+
"additionalProperties",
|
|
215
|
+
true,
|
|
216
|
+
);
|
|
217
|
+
|
|
218
|
+
/** @internal */
|
|
219
|
+
export type BillingPlan$Outbound = {
|
|
220
|
+
id: string;
|
|
221
|
+
type: string;
|
|
222
|
+
name: string;
|
|
223
|
+
description?: string | undefined;
|
|
224
|
+
paymentMethodRequired?: boolean | undefined;
|
|
225
|
+
cost?: string | undefined;
|
|
226
|
+
details?: Array<Details$Outbound> | undefined;
|
|
227
|
+
highlightedDetails?: Array<HighlightedDetails$Outbound> | undefined;
|
|
228
|
+
effectiveDate?: string | undefined;
|
|
229
|
+
[additionalProperties: string]: unknown;
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
/** @internal */
|
|
233
|
+
export const BillingPlan$outboundSchema: z.ZodType<
|
|
234
|
+
BillingPlan$Outbound,
|
|
235
|
+
z.ZodTypeDef,
|
|
236
|
+
BillingPlan
|
|
237
|
+
> = z.object({
|
|
238
|
+
id: z.string(),
|
|
239
|
+
type: UpdateInstallationType$outboundSchema,
|
|
240
|
+
name: z.string(),
|
|
241
|
+
description: z.string().optional(),
|
|
242
|
+
paymentMethodRequired: z.boolean().optional(),
|
|
243
|
+
cost: z.string().optional(),
|
|
244
|
+
details: z.array(z.lazy(() => Details$outboundSchema)).optional(),
|
|
245
|
+
highlightedDetails: z.array(z.lazy(() => HighlightedDetails$outboundSchema))
|
|
246
|
+
.optional(),
|
|
247
|
+
effectiveDate: z.string().optional(),
|
|
248
|
+
additionalProperties: z.record(z.any()),
|
|
249
|
+
}).transform((v) => {
|
|
250
|
+
return {
|
|
251
|
+
...v.additionalProperties,
|
|
252
|
+
...remap$(v, {
|
|
253
|
+
additionalProperties: null,
|
|
254
|
+
}),
|
|
255
|
+
};
|
|
256
|
+
});
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* @internal
|
|
260
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
261
|
+
*/
|
|
262
|
+
export namespace BillingPlan$ {
|
|
263
|
+
/** @deprecated use `BillingPlan$inboundSchema` instead. */
|
|
264
|
+
export const inboundSchema = BillingPlan$inboundSchema;
|
|
265
|
+
/** @deprecated use `BillingPlan$outboundSchema` instead. */
|
|
266
|
+
export const outboundSchema = BillingPlan$outboundSchema;
|
|
267
|
+
/** @deprecated use `BillingPlan$Outbound` instead. */
|
|
268
|
+
export type Outbound = BillingPlan$Outbound;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export function billingPlanToJSON(billingPlan: BillingPlan): string {
|
|
272
|
+
return JSON.stringify(BillingPlan$outboundSchema.parse(billingPlan));
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export function billingPlanFromJSON(
|
|
276
|
+
jsonString: string,
|
|
277
|
+
): SafeParseResult<BillingPlan, SDKValidationError> {
|
|
278
|
+
return safeParse(
|
|
279
|
+
jsonString,
|
|
280
|
+
(x) => BillingPlan$inboundSchema.parse(JSON.parse(x)),
|
|
281
|
+
`Failed to parse 'BillingPlan' from JSON`,
|
|
282
|
+
);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/** @internal */
|
|
286
|
+
export const Level$inboundSchema: z.ZodNativeEnum<typeof Level> = z.nativeEnum(
|
|
287
|
+
Level,
|
|
288
|
+
);
|
|
289
|
+
|
|
290
|
+
/** @internal */
|
|
291
|
+
export const Level$outboundSchema: z.ZodNativeEnum<typeof Level> =
|
|
292
|
+
Level$inboundSchema;
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* @internal
|
|
296
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
297
|
+
*/
|
|
298
|
+
export namespace Level$ {
|
|
299
|
+
/** @deprecated use `Level$inboundSchema` instead. */
|
|
300
|
+
export const inboundSchema = Level$inboundSchema;
|
|
301
|
+
/** @deprecated use `Level$outboundSchema` instead. */
|
|
302
|
+
export const outboundSchema = Level$outboundSchema;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/** @internal */
|
|
306
|
+
export const Notification$inboundSchema: z.ZodType<
|
|
307
|
+
Notification,
|
|
308
|
+
z.ZodTypeDef,
|
|
309
|
+
unknown
|
|
310
|
+
> = z.object({
|
|
311
|
+
level: Level$inboundSchema,
|
|
312
|
+
title: z.string(),
|
|
313
|
+
message: z.string().optional(),
|
|
314
|
+
href: z.string().optional(),
|
|
315
|
+
});
|
|
316
|
+
|
|
317
|
+
/** @internal */
|
|
318
|
+
export type Notification$Outbound = {
|
|
319
|
+
level: string;
|
|
320
|
+
title: string;
|
|
321
|
+
message?: string | undefined;
|
|
322
|
+
href?: string | undefined;
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
/** @internal */
|
|
326
|
+
export const Notification$outboundSchema: z.ZodType<
|
|
327
|
+
Notification$Outbound,
|
|
328
|
+
z.ZodTypeDef,
|
|
329
|
+
Notification
|
|
330
|
+
> = z.object({
|
|
331
|
+
level: Level$outboundSchema,
|
|
332
|
+
title: z.string(),
|
|
333
|
+
message: z.string().optional(),
|
|
334
|
+
href: z.string().optional(),
|
|
335
|
+
});
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* @internal
|
|
339
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
340
|
+
*/
|
|
341
|
+
export namespace Notification$ {
|
|
342
|
+
/** @deprecated use `Notification$inboundSchema` instead. */
|
|
343
|
+
export const inboundSchema = Notification$inboundSchema;
|
|
344
|
+
/** @deprecated use `Notification$outboundSchema` instead. */
|
|
345
|
+
export const outboundSchema = Notification$outboundSchema;
|
|
346
|
+
/** @deprecated use `Notification$Outbound` instead. */
|
|
347
|
+
export type Outbound = Notification$Outbound;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
export function notificationToJSON(notification: Notification): string {
|
|
351
|
+
return JSON.stringify(Notification$outboundSchema.parse(notification));
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
export function notificationFromJSON(
|
|
355
|
+
jsonString: string,
|
|
356
|
+
): SafeParseResult<Notification, SDKValidationError> {
|
|
357
|
+
return safeParse(
|
|
358
|
+
jsonString,
|
|
359
|
+
(x) => Notification$inboundSchema.parse(JSON.parse(x)),
|
|
360
|
+
`Failed to parse 'Notification' from JSON`,
|
|
361
|
+
);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
/** @internal */
|
|
365
|
+
export const UpdateInstallationRequestBody$inboundSchema: z.ZodType<
|
|
366
|
+
UpdateInstallationRequestBody,
|
|
367
|
+
z.ZodTypeDef,
|
|
368
|
+
unknown
|
|
369
|
+
> = z.object({
|
|
370
|
+
billingPlan: z.lazy(() => BillingPlan$inboundSchema).optional(),
|
|
371
|
+
notification: z.lazy(() => Notification$inboundSchema).optional(),
|
|
372
|
+
});
|
|
373
|
+
|
|
374
|
+
/** @internal */
|
|
375
|
+
export type UpdateInstallationRequestBody$Outbound = {
|
|
376
|
+
billingPlan?: BillingPlan$Outbound | undefined;
|
|
377
|
+
notification?: Notification$Outbound | undefined;
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
/** @internal */
|
|
381
|
+
export const UpdateInstallationRequestBody$outboundSchema: z.ZodType<
|
|
382
|
+
UpdateInstallationRequestBody$Outbound,
|
|
383
|
+
z.ZodTypeDef,
|
|
384
|
+
UpdateInstallationRequestBody
|
|
385
|
+
> = z.object({
|
|
386
|
+
billingPlan: z.lazy(() => BillingPlan$outboundSchema).optional(),
|
|
387
|
+
notification: z.lazy(() => Notification$outboundSchema).optional(),
|
|
388
|
+
});
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* @internal
|
|
392
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
393
|
+
*/
|
|
394
|
+
export namespace UpdateInstallationRequestBody$ {
|
|
395
|
+
/** @deprecated use `UpdateInstallationRequestBody$inboundSchema` instead. */
|
|
396
|
+
export const inboundSchema = UpdateInstallationRequestBody$inboundSchema;
|
|
397
|
+
/** @deprecated use `UpdateInstallationRequestBody$outboundSchema` instead. */
|
|
398
|
+
export const outboundSchema = UpdateInstallationRequestBody$outboundSchema;
|
|
399
|
+
/** @deprecated use `UpdateInstallationRequestBody$Outbound` instead. */
|
|
400
|
+
export type Outbound = UpdateInstallationRequestBody$Outbound;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
export function updateInstallationRequestBodyToJSON(
|
|
404
|
+
updateInstallationRequestBody: UpdateInstallationRequestBody,
|
|
405
|
+
): string {
|
|
406
|
+
return JSON.stringify(
|
|
407
|
+
UpdateInstallationRequestBody$outboundSchema.parse(
|
|
408
|
+
updateInstallationRequestBody,
|
|
409
|
+
),
|
|
410
|
+
);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
export function updateInstallationRequestBodyFromJSON(
|
|
414
|
+
jsonString: string,
|
|
415
|
+
): SafeParseResult<UpdateInstallationRequestBody, SDKValidationError> {
|
|
416
|
+
return safeParse(
|
|
417
|
+
jsonString,
|
|
418
|
+
(x) => UpdateInstallationRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
419
|
+
`Failed to parse 'UpdateInstallationRequestBody' from JSON`,
|
|
420
|
+
);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/** @internal */
|
|
424
|
+
export const UpdateInstallationRequest$inboundSchema: z.ZodType<
|
|
425
|
+
UpdateInstallationRequest,
|
|
426
|
+
z.ZodTypeDef,
|
|
427
|
+
unknown
|
|
428
|
+
> = z.object({
|
|
429
|
+
integrationConfigurationId: z.string(),
|
|
430
|
+
RequestBody: z.lazy(() => UpdateInstallationRequestBody$inboundSchema)
|
|
431
|
+
.optional(),
|
|
432
|
+
}).transform((v) => {
|
|
433
|
+
return remap$(v, {
|
|
434
|
+
"RequestBody": "requestBody",
|
|
435
|
+
});
|
|
436
|
+
});
|
|
437
|
+
|
|
438
|
+
/** @internal */
|
|
439
|
+
export type UpdateInstallationRequest$Outbound = {
|
|
440
|
+
integrationConfigurationId: string;
|
|
441
|
+
RequestBody?: UpdateInstallationRequestBody$Outbound | undefined;
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
/** @internal */
|
|
445
|
+
export const UpdateInstallationRequest$outboundSchema: z.ZodType<
|
|
446
|
+
UpdateInstallationRequest$Outbound,
|
|
447
|
+
z.ZodTypeDef,
|
|
448
|
+
UpdateInstallationRequest
|
|
449
|
+
> = z.object({
|
|
450
|
+
integrationConfigurationId: z.string(),
|
|
451
|
+
requestBody: z.lazy(() => UpdateInstallationRequestBody$outboundSchema)
|
|
452
|
+
.optional(),
|
|
453
|
+
}).transform((v) => {
|
|
454
|
+
return remap$(v, {
|
|
455
|
+
requestBody: "RequestBody",
|
|
456
|
+
});
|
|
457
|
+
});
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* @internal
|
|
461
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
462
|
+
*/
|
|
463
|
+
export namespace UpdateInstallationRequest$ {
|
|
464
|
+
/** @deprecated use `UpdateInstallationRequest$inboundSchema` instead. */
|
|
465
|
+
export const inboundSchema = UpdateInstallationRequest$inboundSchema;
|
|
466
|
+
/** @deprecated use `UpdateInstallationRequest$outboundSchema` instead. */
|
|
467
|
+
export const outboundSchema = UpdateInstallationRequest$outboundSchema;
|
|
468
|
+
/** @deprecated use `UpdateInstallationRequest$Outbound` instead. */
|
|
469
|
+
export type Outbound = UpdateInstallationRequest$Outbound;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
export function updateInstallationRequestToJSON(
|
|
473
|
+
updateInstallationRequest: UpdateInstallationRequest,
|
|
474
|
+
): string {
|
|
475
|
+
return JSON.stringify(
|
|
476
|
+
UpdateInstallationRequest$outboundSchema.parse(updateInstallationRequest),
|
|
477
|
+
);
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
export function updateInstallationRequestFromJSON(
|
|
481
|
+
jsonString: string,
|
|
482
|
+
): SafeParseResult<UpdateInstallationRequest, SDKValidationError> {
|
|
483
|
+
return safeParse(
|
|
484
|
+
jsonString,
|
|
485
|
+
(x) => UpdateInstallationRequest$inboundSchema.parse(JSON.parse(x)),
|
|
486
|
+
`Failed to parse 'UpdateInstallationRequest' from JSON`,
|
|
487
|
+
);
|
|
488
|
+
}
|