@vercel/sdk 1.15.0 → 1.16.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 +42 -25
- package/bin/mcp-server.js +3040 -1304
- package/bin/mcp-server.js.map +60 -42
- package/docs/sdks/connect/README.md +10 -10
- package/docs/sdks/environment/README.md +512 -0
- package/docs/sdks/staticips/README.md +95 -0
- package/esm/__tests__/accessgroups.test.js +1 -3
- package/esm/__tests__/accessgroups.test.js.map +1 -1
- package/esm/__tests__/checks.test.js +1 -1
- package/esm/__tests__/checks.test.js.map +1 -1
- package/esm/__tests__/connect.test.js +10 -7
- package/esm/__tests__/connect.test.js.map +1 -1
- package/esm/__tests__/domains.test.js +10 -3
- package/esm/__tests__/domains.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__/environment.test.js +164 -0
- package/esm/__tests__/environment.test.js.map +1 -1
- package/esm/__tests__/integrations.test.js +1 -1
- package/esm/__tests__/logdrains.test.js +1 -3
- package/esm/__tests__/logdrains.test.js.map +1 -1
- package/esm/__tests__/rollingrelease.test.js +2 -1
- package/esm/__tests__/rollingrelease.test.js.map +1 -1
- package/esm/__tests__/security.test.js +11 -1
- package/esm/__tests__/security.test.js.map +1 -1
- package/esm/funcs/connectUpdateStaticIps.d.ts +17 -0
- package/esm/funcs/connectUpdateStaticIps.d.ts.map +1 -0
- package/esm/funcs/{connectUpdateSharedConnectLinks.js → connectUpdateStaticIps.js} +8 -8
- package/esm/funcs/connectUpdateStaticIps.js.map +1 -0
- package/esm/funcs/environmentCreateSharedEnvVariable.d.ts +17 -0
- package/esm/funcs/environmentCreateSharedEnvVariable.d.ts.map +1 -0
- package/esm/funcs/environmentCreateSharedEnvVariable.js +83 -0
- package/esm/funcs/environmentCreateSharedEnvVariable.js.map +1 -0
- package/esm/funcs/environmentDeleteSharedEnvVariable.d.ts +17 -0
- package/esm/funcs/environmentDeleteSharedEnvVariable.d.ts.map +1 -0
- package/esm/funcs/environmentDeleteSharedEnvVariable.js +83 -0
- package/esm/funcs/environmentDeleteSharedEnvVariable.js.map +1 -0
- package/esm/funcs/environmentGetSharedEnvVar.d.ts +17 -0
- package/esm/funcs/environmentGetSharedEnvVar.d.ts.map +1 -0
- package/esm/funcs/environmentGetSharedEnvVar.js +88 -0
- package/esm/funcs/environmentGetSharedEnvVar.js.map +1 -0
- package/esm/funcs/environmentListSharedEnvVariable.d.ts +17 -0
- package/esm/funcs/environmentListSharedEnvVariable.d.ts.map +1 -0
- package/esm/funcs/environmentListSharedEnvVariable.js +89 -0
- package/esm/funcs/environmentListSharedEnvVariable.js.map +1 -0
- package/esm/funcs/environmentUnlinkSharedEnvVariable.d.ts +17 -0
- package/esm/funcs/environmentUnlinkSharedEnvVariable.d.ts.map +1 -0
- package/esm/funcs/environmentUnlinkSharedEnvVariable.js +92 -0
- package/esm/funcs/environmentUnlinkSharedEnvVariable.js.map +1 -0
- package/esm/funcs/environmentUpdateSharedEnvVariable.d.ts +17 -0
- package/esm/funcs/environmentUpdateSharedEnvVariable.d.ts.map +1 -0
- package/esm/funcs/environmentUpdateSharedEnvVariable.js +83 -0
- package/esm/funcs/environmentUpdateSharedEnvVariable.js.map +1 -0
- package/esm/funcs/integrationsCreateIntegrationStoreDirect.js +13 -2
- package/esm/funcs/integrationsCreateIntegrationStoreDirect.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +20 -8
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/connectUpdateStaticIps.d.ts +7 -0
- package/esm/mcp-server/tools/connectUpdateStaticIps.d.ts.map +1 -0
- package/esm/mcp-server/tools/connectUpdateStaticIps.js +28 -0
- package/esm/mcp-server/tools/connectUpdateStaticIps.js.map +1 -0
- package/esm/mcp-server/tools/environmentCreateSharedEnvVariable.d.ts +7 -0
- package/esm/mcp-server/tools/environmentCreateSharedEnvVariable.d.ts.map +1 -0
- package/esm/mcp-server/tools/environmentCreateSharedEnvVariable.js +28 -0
- package/esm/mcp-server/tools/environmentCreateSharedEnvVariable.js.map +1 -0
- package/esm/mcp-server/tools/environmentDeleteSharedEnvVariable.d.ts +7 -0
- package/esm/mcp-server/tools/environmentDeleteSharedEnvVariable.d.ts.map +1 -0
- package/esm/mcp-server/tools/environmentDeleteSharedEnvVariable.js +28 -0
- package/esm/mcp-server/tools/environmentDeleteSharedEnvVariable.js.map +1 -0
- package/esm/mcp-server/tools/environmentGetSharedEnvVar.d.ts +7 -0
- package/esm/mcp-server/tools/environmentGetSharedEnvVar.d.ts.map +1 -0
- package/esm/mcp-server/tools/environmentGetSharedEnvVar.js +28 -0
- package/esm/mcp-server/tools/environmentGetSharedEnvVar.js.map +1 -0
- package/esm/mcp-server/tools/environmentListSharedEnvVariable.d.ts +7 -0
- package/esm/mcp-server/tools/environmentListSharedEnvVariable.d.ts.map +1 -0
- package/esm/mcp-server/tools/environmentListSharedEnvVariable.js +28 -0
- package/esm/mcp-server/tools/environmentListSharedEnvVariable.js.map +1 -0
- package/esm/mcp-server/tools/environmentUnlinkSharedEnvVariable.d.ts +7 -0
- package/esm/mcp-server/tools/environmentUnlinkSharedEnvVariable.d.ts.map +1 -0
- package/esm/mcp-server/tools/environmentUnlinkSharedEnvVariable.js +28 -0
- package/esm/mcp-server/tools/environmentUnlinkSharedEnvVariable.js.map +1 -0
- package/esm/mcp-server/tools/environmentUpdateSharedEnvVariable.d.ts +7 -0
- package/esm/mcp-server/tools/environmentUpdateSharedEnvVariable.d.ts.map +1 -0
- package/esm/mcp-server/tools/environmentUpdateSharedEnvVariable.js +28 -0
- package/esm/mcp-server/tools/environmentUpdateSharedEnvVariable.js.map +1 -0
- package/esm/models/buydomainsop.d.ts +4 -4
- package/esm/models/buydomainsop.d.ts.map +1 -1
- package/esm/models/buysingledomainop.d.ts +4 -4
- package/esm/models/buysingledomainop.d.ts.map +1 -1
- package/esm/models/canceldeploymentop.d.ts +3 -0
- package/esm/models/canceldeploymentop.d.ts.map +1 -1
- package/esm/models/canceldeploymentop.js +1 -0
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/createdeploymentop.d.ts +6 -0
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +2 -0
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/createdrainop.d.ts +3 -0
- package/esm/models/createdrainop.d.ts.map +1 -1
- package/esm/models/createdrainop.js +1 -0
- package/esm/models/createdrainop.js.map +1 -1
- package/esm/models/createintegrationstoredirectop.d.ts +288 -285
- package/esm/models/createintegrationstoredirectop.d.ts.map +1 -1
- package/esm/models/createintegrationstoredirectop.js +352 -351
- package/esm/models/createintegrationstoredirectop.js.map +1 -1
- package/esm/models/createprojectenvop.d.ts +37 -37
- package/esm/models/createprojectenvop.d.ts.map +1 -1
- package/esm/models/createprojectenvop.js +44 -44
- package/esm/models/createprojectenvop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +6 -0
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +2 -0
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/createsharedenvvariableop.d.ts +746 -0
- package/esm/models/createsharedenvvariableop.d.ts.map +1 -0
- package/esm/models/createsharedenvvariableop.js +609 -0
- package/esm/models/createsharedenvvariableop.js.map +1 -0
- package/esm/models/deletesharedenvvariableop.d.ts +291 -0
- package/esm/models/deletesharedenvvariableop.d.ts.map +1 -0
- package/esm/models/deletesharedenvvariableop.js +291 -0
- package/esm/models/deletesharedenvvariableop.js.map +1 -0
- package/esm/models/getalllogdrainsop.d.ts +6 -0
- package/esm/models/getalllogdrainsop.d.ts.map +1 -1
- package/esm/models/getalllogdrainsop.js +2 -0
- package/esm/models/getalllogdrainsop.js.map +1 -1
- package/esm/models/getconfigurablelogdrainop.d.ts +3 -0
- package/esm/models/getconfigurablelogdrainop.d.ts.map +1 -1
- package/esm/models/getconfigurablelogdrainop.js +1 -0
- package/esm/models/getconfigurablelogdrainop.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 -2
- package/esm/models/getcontactinfoschemaop.d.ts.map +1 -1
- package/esm/models/getdeploymentop.d.ts +3 -0
- package/esm/models/getdeploymentop.d.ts.map +1 -1
- package/esm/models/getdeploymentop.js +1 -0
- 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 +4 -4
- package/esm/models/getdomainauthcodeop.d.ts.map +1 -1
- package/esm/models/getdomainpriceop.d.ts +2 -2
- package/esm/models/getdomainpriceop.d.ts.map +1 -1
- package/esm/models/getdomaintransferinop.d.ts +2 -2
- package/esm/models/getdomaintransferinop.d.ts.map +1 -1
- package/esm/models/getdrainop.d.ts +3 -0
- package/esm/models/getdrainop.d.ts.map +1 -1
- package/esm/models/getdrainop.js +1 -0
- package/esm/models/getdrainop.js.map +1 -1
- package/esm/models/getdrainsop.d.ts +3 -0
- package/esm/models/getdrainsop.d.ts.map +1 -1
- package/esm/models/getdrainsop.js +1 -0
- package/esm/models/getdrainsop.js.map +1 -1
- package/esm/models/getinvoiceop.d.ts +3 -0
- package/esm/models/getinvoiceop.d.ts.map +1 -1
- package/esm/models/getinvoiceop.js +1 -0
- package/esm/models/getinvoiceop.js.map +1 -1
- package/esm/models/getorderop.d.ts +2 -2
- package/esm/models/getorderop.d.ts.map +1 -1
- package/esm/models/getprojectsop.d.ts +3 -0
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +1 -0
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/getsharedenvvarop.d.ts +227 -0
- package/esm/models/getsharedenvvarop.d.ts.map +1 -0
- package/esm/models/getsharedenvvarop.js +142 -0
- package/esm/models/getsharedenvvarop.js.map +1 -0
- package/esm/models/gettldpriceop.d.ts +2 -2
- package/esm/models/gettldpriceop.d.ts.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/listsharedenvvariableop.d.ts +285 -0
- package/esm/models/listsharedenvvariableop.d.ts.map +1 -0
- package/esm/models/listsharedenvvariableop.js +198 -0
- package/esm/models/listsharedenvvariableop.js.map +1 -0
- package/esm/models/renewdomainop.d.ts +4 -4
- package/esm/models/renewdomainop.d.ts.map +1 -1
- package/esm/models/transferindomainop.d.ts +4 -4
- package/esm/models/transferindomainop.d.ts.map +1 -1
- package/esm/models/unlinksharedenvvariableop.d.ts +69 -0
- package/esm/models/unlinksharedenvvariableop.d.ts.map +1 -0
- package/esm/models/unlinksharedenvvariableop.js +62 -0
- package/esm/models/unlinksharedenvvariableop.js.map +1 -0
- package/esm/models/updatedomainautorenewop.d.ts +4 -4
- package/esm/models/updatedomainautorenewop.d.ts.map +1 -1
- package/esm/models/updatedomainnameserversop.d.ts +4 -4
- package/esm/models/updatedomainnameserversop.d.ts.map +1 -1
- package/esm/models/updatedrainop.d.ts +3 -0
- package/esm/models/updatedrainop.d.ts.map +1 -1
- package/esm/models/updatedrainop.js +1 -0
- package/esm/models/updatedrainop.js.map +1 -1
- package/esm/models/updateinstallationop.d.ts +32 -5
- package/esm/models/updateinstallationop.d.ts.map +1 -1
- package/esm/models/updateinstallationop.js +29 -4
- package/esm/models/updateinstallationop.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +3 -0
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +1 -0
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +6 -0
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +2 -0
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/updatesharedenvvariableop.d.ts +629 -0
- package/esm/models/updatesharedenvvariableop.d.ts.map +1 -0
- package/esm/models/updatesharedenvvariableop.js +507 -0
- package/esm/models/updatesharedenvvariableop.js.map +1 -0
- package/esm/models/updatestaticipsop.d.ts +238 -0
- package/esm/models/updatestaticipsop.d.ts.map +1 -0
- package/esm/models/updatestaticipsop.js +239 -0
- package/esm/models/updatestaticipsop.js.map +1 -0
- package/esm/sdk/connect.d.ts +4 -4
- package/esm/sdk/connect.d.ts.map +1 -1
- package/esm/sdk/connect.js +5 -5
- package/esm/sdk/connect.js.map +1 -1
- package/esm/sdk/environment.d.ts +48 -0
- package/esm/sdk/environment.d.ts.map +1 -1
- package/esm/sdk/environment.js +60 -0
- package/esm/sdk/environment.js.map +1 -1
- package/esm/sdk/sdk.d.ts +5 -2
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +6 -2
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/sdk/staticips.d.ts +12 -0
- package/esm/sdk/staticips.d.ts.map +1 -0
- package/esm/sdk/staticips.js +18 -0
- package/esm/sdk/staticips.js.map +1 -0
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/accessgroups.test.ts +1 -3
- package/src/__tests__/checks.test.ts +1 -1
- package/src/__tests__/connect.test.ts +13 -7
- package/src/__tests__/domains.test.ts +10 -3
- package/src/__tests__/edgeconfig.test.ts +6 -6
- package/src/__tests__/environment.test.ts +184 -0
- package/src/__tests__/integrations.test.ts +1 -1
- package/src/__tests__/logdrains.test.ts +1 -3
- package/src/__tests__/rollingrelease.test.ts +2 -1
- package/src/__tests__/security.test.ts +11 -1
- package/src/funcs/{connectUpdateSharedConnectLinks.ts → connectUpdateStaticIps.ts} +16 -16
- package/src/funcs/environmentCreateSharedEnvVariable.ts +171 -0
- package/src/funcs/environmentDeleteSharedEnvVariable.ts +171 -0
- package/src/funcs/environmentGetSharedEnvVar.ts +177 -0
- package/src/funcs/environmentListSharedEnvVariable.ts +177 -0
- package/src/funcs/environmentUnlinkSharedEnvVariable.ts +181 -0
- package/src/funcs/environmentUpdateSharedEnvVariable.ts +171 -0
- package/src/funcs/integrationsCreateIntegrationStoreDirect.ts +13 -2
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +20 -8
- package/src/mcp-server/tools/connectUpdateStaticIps.ts +37 -0
- package/src/mcp-server/tools/environmentCreateSharedEnvVariable.ts +39 -0
- package/src/mcp-server/tools/environmentDeleteSharedEnvVariable.ts +39 -0
- package/src/mcp-server/tools/environmentGetSharedEnvVar.ts +38 -0
- package/src/mcp-server/tools/environmentListSharedEnvVariable.ts +39 -0
- package/src/mcp-server/tools/environmentUnlinkSharedEnvVariable.ts +39 -0
- package/src/mcp-server/tools/environmentUpdateSharedEnvVariable.ts +39 -0
- package/src/models/buydomainsop.ts +2 -2
- package/src/models/buysingledomainop.ts +2 -2
- package/src/models/canceldeploymentop.ts +1 -0
- package/src/models/createdeploymentop.ts +2 -0
- package/src/models/createdrainop.ts +1 -0
- package/src/models/createintegrationstoredirectop.ts +605 -604
- package/src/models/createprojectenvop.ts +86 -66
- package/src/models/createprojectop.ts +2 -0
- package/src/models/createsharedenvvariableop.ts +1298 -0
- package/src/models/deletesharedenvvariableop.ts +608 -0
- package/src/models/getalllogdrainsop.ts +2 -0
- package/src/models/getconfigurablelogdrainop.ts +1 -0
- package/src/models/getconfigurationproductsop.ts +802 -802
- package/src/models/getcontactinfoschemaop.ts +1 -1
- package/src/models/getdeploymentop.ts +1 -0
- package/src/models/getdeploymentsop.ts +1 -0
- package/src/models/getdomainauthcodeop.ts +2 -2
- package/src/models/getdomainpriceop.ts +1 -1
- package/src/models/getdomaintransferinop.ts +1 -1
- package/src/models/getdrainop.ts +1 -0
- package/src/models/getdrainsop.ts +1 -0
- package/src/models/getinvoiceop.ts +1 -0
- package/src/models/getorderop.ts +1 -1
- package/src/models/getprojectsop.ts +1 -0
- package/src/models/getsharedenvvarop.ts +336 -0
- package/src/models/gettldpriceop.ts +1 -1
- package/src/models/getwebhooksop.ts +1 -0
- package/src/models/listsharedenvvariableop.ts +458 -0
- package/src/models/renewdomainop.ts +2 -2
- package/src/models/transferindomainop.ts +2 -2
- package/src/models/unlinksharedenvvariableop.ts +152 -0
- package/src/models/updatedomainautorenewop.ts +2 -2
- package/src/models/updatedomainnameserversop.ts +2 -2
- package/src/models/updatedrainop.ts +1 -0
- package/src/models/updateinstallationop.ts +67 -11
- package/src/models/updateprojectdatacacheop.ts +1 -0
- package/src/models/updateprojectop.ts +2 -0
- package/src/models/updatesharedenvvariableop.ts +1105 -0
- package/src/models/updatestaticipsop.ts +530 -0
- package/src/sdk/connect.ts +10 -10
- package/src/sdk/environment.ts +132 -0
- package/src/sdk/sdk.ts +9 -3
- package/src/sdk/staticips.ts +30 -0
- package/vercel-spec.json +1623 -121
- package/esm/funcs/connectUpdateSharedConnectLinks.d.ts +0 -17
- package/esm/funcs/connectUpdateSharedConnectLinks.d.ts.map +0 -1
- package/esm/funcs/connectUpdateSharedConnectLinks.js.map +0 -1
- package/esm/mcp-server/tools/connectUpdateSharedConnectLinks.d.ts +0 -7
- package/esm/mcp-server/tools/connectUpdateSharedConnectLinks.d.ts.map +0 -1
- package/esm/mcp-server/tools/connectUpdateSharedConnectLinks.js +0 -28
- package/esm/mcp-server/tools/connectUpdateSharedConnectLinks.js.map +0 -1
- package/esm/models/updatesharedconnectlinksop.d.ts +0 -182
- package/esm/models/updatesharedconnectlinksop.d.ts.map +0 -1
- package/esm/models/updatesharedconnectlinksop.js +0 -179
- package/esm/models/updatesharedconnectlinksop.js.map +0 -1
- package/src/mcp-server/tools/connectUpdateSharedConnectLinks.ts +0 -38
- package/src/models/updatesharedconnectlinksop.ts +0 -402
|
@@ -0,0 +1,1105 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export const UpdateSharedEnvVariableTarget = {
|
|
13
|
+
Production: "production",
|
|
14
|
+
Preview: "preview",
|
|
15
|
+
Development: "development",
|
|
16
|
+
} as const;
|
|
17
|
+
export type UpdateSharedEnvVariableTarget = ClosedEnum<
|
|
18
|
+
typeof UpdateSharedEnvVariableTarget
|
|
19
|
+
>;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Incrementally update project associations without specifying the full list
|
|
23
|
+
*/
|
|
24
|
+
export type ProjectIdUpdates = {
|
|
25
|
+
/**
|
|
26
|
+
* Project IDs to add to this environment variable
|
|
27
|
+
*/
|
|
28
|
+
link?: Array<string> | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Project IDs to remove from this environment variable
|
|
31
|
+
*/
|
|
32
|
+
unlink?: Array<string> | undefined;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* The new type of the Shared Environment Variable
|
|
37
|
+
*/
|
|
38
|
+
export const UpdateSharedEnvVariableType = {
|
|
39
|
+
Encrypted: "encrypted",
|
|
40
|
+
Sensitive: "sensitive",
|
|
41
|
+
} as const;
|
|
42
|
+
/**
|
|
43
|
+
* The new type of the Shared Environment Variable
|
|
44
|
+
*/
|
|
45
|
+
export type UpdateSharedEnvVariableType = ClosedEnum<
|
|
46
|
+
typeof UpdateSharedEnvVariableType
|
|
47
|
+
>;
|
|
48
|
+
|
|
49
|
+
export type Updates = {
|
|
50
|
+
/**
|
|
51
|
+
* The name of the Shared Environment Variable
|
|
52
|
+
*/
|
|
53
|
+
key?: string | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* The value of the Shared Environment Variable
|
|
56
|
+
*/
|
|
57
|
+
value?: string | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* The target environment of the Shared Environment Variable
|
|
60
|
+
*/
|
|
61
|
+
target?: Array<UpdateSharedEnvVariableTarget> | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Associate a Shared Environment Variable to projects.
|
|
64
|
+
*/
|
|
65
|
+
projectId?: Array<string> | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Incrementally update project associations without specifying the full list
|
|
68
|
+
*/
|
|
69
|
+
projectIdUpdates?: ProjectIdUpdates | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* The new type of the Shared Environment Variable
|
|
72
|
+
*/
|
|
73
|
+
type?: UpdateSharedEnvVariableType | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* A comment to add context on what this Shared Environment Variable is for
|
|
76
|
+
*/
|
|
77
|
+
comment?: string | undefined;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export type UpdateSharedEnvVariableRequestBody = {
|
|
81
|
+
updates: { [k: string]: Updates };
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export type UpdateSharedEnvVariableRequest = {
|
|
85
|
+
/**
|
|
86
|
+
* The Team identifier to perform the request on behalf of.
|
|
87
|
+
*/
|
|
88
|
+
teamId?: string | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* The Team slug to perform the request on behalf of.
|
|
91
|
+
*/
|
|
92
|
+
slug?: string | undefined;
|
|
93
|
+
requestBody?: UpdateSharedEnvVariableRequestBody | undefined;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* The type of this cosmos doc instance, if blank, assume secret.
|
|
98
|
+
*/
|
|
99
|
+
export const UpdateSharedEnvVariableEnvironmentType = {
|
|
100
|
+
Encrypted: "encrypted",
|
|
101
|
+
Sensitive: "sensitive",
|
|
102
|
+
System: "system",
|
|
103
|
+
Plain: "plain",
|
|
104
|
+
} as const;
|
|
105
|
+
/**
|
|
106
|
+
* The type of this cosmos doc instance, if blank, assume secret.
|
|
107
|
+
*/
|
|
108
|
+
export type UpdateSharedEnvVariableEnvironmentType = ClosedEnum<
|
|
109
|
+
typeof UpdateSharedEnvVariableEnvironmentType
|
|
110
|
+
>;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* environments this env variable targets
|
|
114
|
+
*/
|
|
115
|
+
export const UpdateSharedEnvVariableEnvironmentTarget = {
|
|
116
|
+
Production: "production",
|
|
117
|
+
Preview: "preview",
|
|
118
|
+
Development: "development",
|
|
119
|
+
} as const;
|
|
120
|
+
/**
|
|
121
|
+
* environments this env variable targets
|
|
122
|
+
*/
|
|
123
|
+
export type UpdateSharedEnvVariableEnvironmentTarget = ClosedEnum<
|
|
124
|
+
typeof UpdateSharedEnvVariableEnvironmentTarget
|
|
125
|
+
>;
|
|
126
|
+
|
|
127
|
+
export type Updated = {
|
|
128
|
+
/**
|
|
129
|
+
* The date when the Shared Env Var was created.
|
|
130
|
+
*/
|
|
131
|
+
created?: Date | undefined;
|
|
132
|
+
/**
|
|
133
|
+
* The name of the Shared Env Var.
|
|
134
|
+
*/
|
|
135
|
+
key?: string | undefined;
|
|
136
|
+
/**
|
|
137
|
+
* The unique identifier of the owner (team) the Shared Env Var was created for.
|
|
138
|
+
*/
|
|
139
|
+
ownerId?: string | null | undefined;
|
|
140
|
+
/**
|
|
141
|
+
* The unique identifier of the Shared Env Var.
|
|
142
|
+
*/
|
|
143
|
+
id?: string | undefined;
|
|
144
|
+
/**
|
|
145
|
+
* The unique identifier of the user who created the Shared Env Var.
|
|
146
|
+
*/
|
|
147
|
+
createdBy?: string | null | undefined;
|
|
148
|
+
/**
|
|
149
|
+
* The unique identifier of the user who deleted the Shared Env Var.
|
|
150
|
+
*/
|
|
151
|
+
deletedBy?: string | null | undefined;
|
|
152
|
+
/**
|
|
153
|
+
* The unique identifier of the user who last updated the Shared Env Var.
|
|
154
|
+
*/
|
|
155
|
+
updatedBy?: string | null | undefined;
|
|
156
|
+
/**
|
|
157
|
+
* Timestamp for when the Shared Env Var was created.
|
|
158
|
+
*/
|
|
159
|
+
createdAt?: number | undefined;
|
|
160
|
+
/**
|
|
161
|
+
* Timestamp for when the Shared Env Var was (soft) deleted.
|
|
162
|
+
*/
|
|
163
|
+
deletedAt?: number | undefined;
|
|
164
|
+
/**
|
|
165
|
+
* Timestamp for when the Shared Env Var was last updated.
|
|
166
|
+
*/
|
|
167
|
+
updatedAt?: number | undefined;
|
|
168
|
+
/**
|
|
169
|
+
* The value of the Shared Env Var.
|
|
170
|
+
*/
|
|
171
|
+
value?: string | undefined;
|
|
172
|
+
/**
|
|
173
|
+
* The unique identifiers of the projects which the Shared Env Var is linked to.
|
|
174
|
+
*/
|
|
175
|
+
projectId?: Array<string> | undefined;
|
|
176
|
+
/**
|
|
177
|
+
* The type of this cosmos doc instance, if blank, assume secret.
|
|
178
|
+
*/
|
|
179
|
+
type?: UpdateSharedEnvVariableEnvironmentType | undefined;
|
|
180
|
+
/**
|
|
181
|
+
* environments this env variable targets
|
|
182
|
+
*/
|
|
183
|
+
target?: Array<UpdateSharedEnvVariableEnvironmentTarget> | undefined;
|
|
184
|
+
/**
|
|
185
|
+
* whether or not this env varible applies to custom environments
|
|
186
|
+
*/
|
|
187
|
+
applyToAllCustomEnvironments?: boolean | undefined;
|
|
188
|
+
/**
|
|
189
|
+
* whether or not this env variable is decrypted
|
|
190
|
+
*/
|
|
191
|
+
decrypted?: boolean | undefined;
|
|
192
|
+
/**
|
|
193
|
+
* A user provided comment that describes what this Shared Env Var is for.
|
|
194
|
+
*/
|
|
195
|
+
comment?: string | undefined;
|
|
196
|
+
/**
|
|
197
|
+
* The last editor full name or username.
|
|
198
|
+
*/
|
|
199
|
+
lastEditedByDisplayName?: string | undefined;
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
export const UpdateSharedEnvVariableValue2 = {
|
|
203
|
+
Production: "production",
|
|
204
|
+
Preview: "preview",
|
|
205
|
+
Development: "development",
|
|
206
|
+
} as const;
|
|
207
|
+
export type UpdateSharedEnvVariableValue2 = ClosedEnum<
|
|
208
|
+
typeof UpdateSharedEnvVariableValue2
|
|
209
|
+
>;
|
|
210
|
+
|
|
211
|
+
export type UpdateSharedEnvVariableValue =
|
|
212
|
+
| string
|
|
213
|
+
| Array<UpdateSharedEnvVariableValue2>;
|
|
214
|
+
|
|
215
|
+
export const UpdateSharedEnvVariableTarget2 = {
|
|
216
|
+
Production: "production",
|
|
217
|
+
Preview: "preview",
|
|
218
|
+
Development: "development",
|
|
219
|
+
} as const;
|
|
220
|
+
export type UpdateSharedEnvVariableTarget2 = ClosedEnum<
|
|
221
|
+
typeof UpdateSharedEnvVariableTarget2
|
|
222
|
+
>;
|
|
223
|
+
|
|
224
|
+
export const UpdateSharedEnvVariableTarget1 = {
|
|
225
|
+
Production: "production",
|
|
226
|
+
Preview: "preview",
|
|
227
|
+
Development: "development",
|
|
228
|
+
} as const;
|
|
229
|
+
export type UpdateSharedEnvVariableTarget1 = ClosedEnum<
|
|
230
|
+
typeof UpdateSharedEnvVariableTarget1
|
|
231
|
+
>;
|
|
232
|
+
|
|
233
|
+
export type UpdateSharedEnvVariableEnvironmentResponseTarget =
|
|
234
|
+
| Array<UpdateSharedEnvVariableTarget1>
|
|
235
|
+
| UpdateSharedEnvVariableTarget2;
|
|
236
|
+
|
|
237
|
+
export type UpdateSharedEnvVariableError = {
|
|
238
|
+
code: string;
|
|
239
|
+
message: string;
|
|
240
|
+
key?: string | undefined;
|
|
241
|
+
envVarId?: string | undefined;
|
|
242
|
+
envVarKey?: string | undefined;
|
|
243
|
+
action?: string | undefined;
|
|
244
|
+
link?: string | undefined;
|
|
245
|
+
value?: string | Array<UpdateSharedEnvVariableValue2> | undefined;
|
|
246
|
+
gitBranch?: string | undefined;
|
|
247
|
+
target?:
|
|
248
|
+
| Array<UpdateSharedEnvVariableTarget1>
|
|
249
|
+
| UpdateSharedEnvVariableTarget2
|
|
250
|
+
| undefined;
|
|
251
|
+
project?: string | undefined;
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
export type UpdateSharedEnvVariableFailed = {
|
|
255
|
+
error: UpdateSharedEnvVariableError;
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
export type UpdateSharedEnvVariableResponseBody = {
|
|
259
|
+
updated: Array<Updated>;
|
|
260
|
+
failed: Array<UpdateSharedEnvVariableFailed>;
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
/** @internal */
|
|
264
|
+
export const UpdateSharedEnvVariableTarget$inboundSchema: z.ZodNativeEnum<
|
|
265
|
+
typeof UpdateSharedEnvVariableTarget
|
|
266
|
+
> = z.nativeEnum(UpdateSharedEnvVariableTarget);
|
|
267
|
+
|
|
268
|
+
/** @internal */
|
|
269
|
+
export const UpdateSharedEnvVariableTarget$outboundSchema: z.ZodNativeEnum<
|
|
270
|
+
typeof UpdateSharedEnvVariableTarget
|
|
271
|
+
> = UpdateSharedEnvVariableTarget$inboundSchema;
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* @internal
|
|
275
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
276
|
+
*/
|
|
277
|
+
export namespace UpdateSharedEnvVariableTarget$ {
|
|
278
|
+
/** @deprecated use `UpdateSharedEnvVariableTarget$inboundSchema` instead. */
|
|
279
|
+
export const inboundSchema = UpdateSharedEnvVariableTarget$inboundSchema;
|
|
280
|
+
/** @deprecated use `UpdateSharedEnvVariableTarget$outboundSchema` instead. */
|
|
281
|
+
export const outboundSchema = UpdateSharedEnvVariableTarget$outboundSchema;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/** @internal */
|
|
285
|
+
export const ProjectIdUpdates$inboundSchema: z.ZodType<
|
|
286
|
+
ProjectIdUpdates,
|
|
287
|
+
z.ZodTypeDef,
|
|
288
|
+
unknown
|
|
289
|
+
> = z.object({
|
|
290
|
+
link: z.array(z.string()).optional(),
|
|
291
|
+
unlink: z.array(z.string()).optional(),
|
|
292
|
+
});
|
|
293
|
+
|
|
294
|
+
/** @internal */
|
|
295
|
+
export type ProjectIdUpdates$Outbound = {
|
|
296
|
+
link?: Array<string> | undefined;
|
|
297
|
+
unlink?: Array<string> | undefined;
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
/** @internal */
|
|
301
|
+
export const ProjectIdUpdates$outboundSchema: z.ZodType<
|
|
302
|
+
ProjectIdUpdates$Outbound,
|
|
303
|
+
z.ZodTypeDef,
|
|
304
|
+
ProjectIdUpdates
|
|
305
|
+
> = z.object({
|
|
306
|
+
link: z.array(z.string()).optional(),
|
|
307
|
+
unlink: z.array(z.string()).optional(),
|
|
308
|
+
});
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* @internal
|
|
312
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
313
|
+
*/
|
|
314
|
+
export namespace ProjectIdUpdates$ {
|
|
315
|
+
/** @deprecated use `ProjectIdUpdates$inboundSchema` instead. */
|
|
316
|
+
export const inboundSchema = ProjectIdUpdates$inboundSchema;
|
|
317
|
+
/** @deprecated use `ProjectIdUpdates$outboundSchema` instead. */
|
|
318
|
+
export const outboundSchema = ProjectIdUpdates$outboundSchema;
|
|
319
|
+
/** @deprecated use `ProjectIdUpdates$Outbound` instead. */
|
|
320
|
+
export type Outbound = ProjectIdUpdates$Outbound;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
export function projectIdUpdatesToJSON(
|
|
324
|
+
projectIdUpdates: ProjectIdUpdates,
|
|
325
|
+
): string {
|
|
326
|
+
return JSON.stringify(
|
|
327
|
+
ProjectIdUpdates$outboundSchema.parse(projectIdUpdates),
|
|
328
|
+
);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
export function projectIdUpdatesFromJSON(
|
|
332
|
+
jsonString: string,
|
|
333
|
+
): SafeParseResult<ProjectIdUpdates, SDKValidationError> {
|
|
334
|
+
return safeParse(
|
|
335
|
+
jsonString,
|
|
336
|
+
(x) => ProjectIdUpdates$inboundSchema.parse(JSON.parse(x)),
|
|
337
|
+
`Failed to parse 'ProjectIdUpdates' from JSON`,
|
|
338
|
+
);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/** @internal */
|
|
342
|
+
export const UpdateSharedEnvVariableType$inboundSchema: z.ZodNativeEnum<
|
|
343
|
+
typeof UpdateSharedEnvVariableType
|
|
344
|
+
> = z.nativeEnum(UpdateSharedEnvVariableType);
|
|
345
|
+
|
|
346
|
+
/** @internal */
|
|
347
|
+
export const UpdateSharedEnvVariableType$outboundSchema: z.ZodNativeEnum<
|
|
348
|
+
typeof UpdateSharedEnvVariableType
|
|
349
|
+
> = UpdateSharedEnvVariableType$inboundSchema;
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* @internal
|
|
353
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
354
|
+
*/
|
|
355
|
+
export namespace UpdateSharedEnvVariableType$ {
|
|
356
|
+
/** @deprecated use `UpdateSharedEnvVariableType$inboundSchema` instead. */
|
|
357
|
+
export const inboundSchema = UpdateSharedEnvVariableType$inboundSchema;
|
|
358
|
+
/** @deprecated use `UpdateSharedEnvVariableType$outboundSchema` instead. */
|
|
359
|
+
export const outboundSchema = UpdateSharedEnvVariableType$outboundSchema;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
/** @internal */
|
|
363
|
+
export const Updates$inboundSchema: z.ZodType<Updates, z.ZodTypeDef, unknown> =
|
|
364
|
+
z.object({
|
|
365
|
+
key: z.string().optional(),
|
|
366
|
+
value: z.string().optional(),
|
|
367
|
+
target: z.array(UpdateSharedEnvVariableTarget$inboundSchema).optional(),
|
|
368
|
+
projectId: z.array(z.string()).optional(),
|
|
369
|
+
projectIdUpdates: z.lazy(() => ProjectIdUpdates$inboundSchema).optional(),
|
|
370
|
+
type: UpdateSharedEnvVariableType$inboundSchema.optional(),
|
|
371
|
+
comment: z.string().optional(),
|
|
372
|
+
});
|
|
373
|
+
|
|
374
|
+
/** @internal */
|
|
375
|
+
export type Updates$Outbound = {
|
|
376
|
+
key?: string | undefined;
|
|
377
|
+
value?: string | undefined;
|
|
378
|
+
target?: Array<string> | undefined;
|
|
379
|
+
projectId?: Array<string> | undefined;
|
|
380
|
+
projectIdUpdates?: ProjectIdUpdates$Outbound | undefined;
|
|
381
|
+
type?: string | undefined;
|
|
382
|
+
comment?: string | undefined;
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
/** @internal */
|
|
386
|
+
export const Updates$outboundSchema: z.ZodType<
|
|
387
|
+
Updates$Outbound,
|
|
388
|
+
z.ZodTypeDef,
|
|
389
|
+
Updates
|
|
390
|
+
> = z.object({
|
|
391
|
+
key: z.string().optional(),
|
|
392
|
+
value: z.string().optional(),
|
|
393
|
+
target: z.array(UpdateSharedEnvVariableTarget$outboundSchema).optional(),
|
|
394
|
+
projectId: z.array(z.string()).optional(),
|
|
395
|
+
projectIdUpdates: z.lazy(() => ProjectIdUpdates$outboundSchema).optional(),
|
|
396
|
+
type: UpdateSharedEnvVariableType$outboundSchema.optional(),
|
|
397
|
+
comment: z.string().optional(),
|
|
398
|
+
});
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* @internal
|
|
402
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
403
|
+
*/
|
|
404
|
+
export namespace Updates$ {
|
|
405
|
+
/** @deprecated use `Updates$inboundSchema` instead. */
|
|
406
|
+
export const inboundSchema = Updates$inboundSchema;
|
|
407
|
+
/** @deprecated use `Updates$outboundSchema` instead. */
|
|
408
|
+
export const outboundSchema = Updates$outboundSchema;
|
|
409
|
+
/** @deprecated use `Updates$Outbound` instead. */
|
|
410
|
+
export type Outbound = Updates$Outbound;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
export function updatesToJSON(updates: Updates): string {
|
|
414
|
+
return JSON.stringify(Updates$outboundSchema.parse(updates));
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
export function updatesFromJSON(
|
|
418
|
+
jsonString: string,
|
|
419
|
+
): SafeParseResult<Updates, SDKValidationError> {
|
|
420
|
+
return safeParse(
|
|
421
|
+
jsonString,
|
|
422
|
+
(x) => Updates$inboundSchema.parse(JSON.parse(x)),
|
|
423
|
+
`Failed to parse 'Updates' from JSON`,
|
|
424
|
+
);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
/** @internal */
|
|
428
|
+
export const UpdateSharedEnvVariableRequestBody$inboundSchema: z.ZodType<
|
|
429
|
+
UpdateSharedEnvVariableRequestBody,
|
|
430
|
+
z.ZodTypeDef,
|
|
431
|
+
unknown
|
|
432
|
+
> = z.object({
|
|
433
|
+
updates: z.record(z.lazy(() => Updates$inboundSchema)),
|
|
434
|
+
});
|
|
435
|
+
|
|
436
|
+
/** @internal */
|
|
437
|
+
export type UpdateSharedEnvVariableRequestBody$Outbound = {
|
|
438
|
+
updates: { [k: string]: Updates$Outbound };
|
|
439
|
+
};
|
|
440
|
+
|
|
441
|
+
/** @internal */
|
|
442
|
+
export const UpdateSharedEnvVariableRequestBody$outboundSchema: z.ZodType<
|
|
443
|
+
UpdateSharedEnvVariableRequestBody$Outbound,
|
|
444
|
+
z.ZodTypeDef,
|
|
445
|
+
UpdateSharedEnvVariableRequestBody
|
|
446
|
+
> = z.object({
|
|
447
|
+
updates: z.record(z.lazy(() => Updates$outboundSchema)),
|
|
448
|
+
});
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* @internal
|
|
452
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
453
|
+
*/
|
|
454
|
+
export namespace UpdateSharedEnvVariableRequestBody$ {
|
|
455
|
+
/** @deprecated use `UpdateSharedEnvVariableRequestBody$inboundSchema` instead. */
|
|
456
|
+
export const inboundSchema = UpdateSharedEnvVariableRequestBody$inboundSchema;
|
|
457
|
+
/** @deprecated use `UpdateSharedEnvVariableRequestBody$outboundSchema` instead. */
|
|
458
|
+
export const outboundSchema =
|
|
459
|
+
UpdateSharedEnvVariableRequestBody$outboundSchema;
|
|
460
|
+
/** @deprecated use `UpdateSharedEnvVariableRequestBody$Outbound` instead. */
|
|
461
|
+
export type Outbound = UpdateSharedEnvVariableRequestBody$Outbound;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
export function updateSharedEnvVariableRequestBodyToJSON(
|
|
465
|
+
updateSharedEnvVariableRequestBody: UpdateSharedEnvVariableRequestBody,
|
|
466
|
+
): string {
|
|
467
|
+
return JSON.stringify(
|
|
468
|
+
UpdateSharedEnvVariableRequestBody$outboundSchema.parse(
|
|
469
|
+
updateSharedEnvVariableRequestBody,
|
|
470
|
+
),
|
|
471
|
+
);
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
export function updateSharedEnvVariableRequestBodyFromJSON(
|
|
475
|
+
jsonString: string,
|
|
476
|
+
): SafeParseResult<UpdateSharedEnvVariableRequestBody, SDKValidationError> {
|
|
477
|
+
return safeParse(
|
|
478
|
+
jsonString,
|
|
479
|
+
(x) =>
|
|
480
|
+
UpdateSharedEnvVariableRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
481
|
+
`Failed to parse 'UpdateSharedEnvVariableRequestBody' from JSON`,
|
|
482
|
+
);
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
/** @internal */
|
|
486
|
+
export const UpdateSharedEnvVariableRequest$inboundSchema: z.ZodType<
|
|
487
|
+
UpdateSharedEnvVariableRequest,
|
|
488
|
+
z.ZodTypeDef,
|
|
489
|
+
unknown
|
|
490
|
+
> = z.object({
|
|
491
|
+
teamId: z.string().optional(),
|
|
492
|
+
slug: z.string().optional(),
|
|
493
|
+
RequestBody: z.lazy(() => UpdateSharedEnvVariableRequestBody$inboundSchema)
|
|
494
|
+
.optional(),
|
|
495
|
+
}).transform((v) => {
|
|
496
|
+
return remap$(v, {
|
|
497
|
+
"RequestBody": "requestBody",
|
|
498
|
+
});
|
|
499
|
+
});
|
|
500
|
+
|
|
501
|
+
/** @internal */
|
|
502
|
+
export type UpdateSharedEnvVariableRequest$Outbound = {
|
|
503
|
+
teamId?: string | undefined;
|
|
504
|
+
slug?: string | undefined;
|
|
505
|
+
RequestBody?: UpdateSharedEnvVariableRequestBody$Outbound | undefined;
|
|
506
|
+
};
|
|
507
|
+
|
|
508
|
+
/** @internal */
|
|
509
|
+
export const UpdateSharedEnvVariableRequest$outboundSchema: z.ZodType<
|
|
510
|
+
UpdateSharedEnvVariableRequest$Outbound,
|
|
511
|
+
z.ZodTypeDef,
|
|
512
|
+
UpdateSharedEnvVariableRequest
|
|
513
|
+
> = z.object({
|
|
514
|
+
teamId: z.string().optional(),
|
|
515
|
+
slug: z.string().optional(),
|
|
516
|
+
requestBody: z.lazy(() => UpdateSharedEnvVariableRequestBody$outboundSchema)
|
|
517
|
+
.optional(),
|
|
518
|
+
}).transform((v) => {
|
|
519
|
+
return remap$(v, {
|
|
520
|
+
requestBody: "RequestBody",
|
|
521
|
+
});
|
|
522
|
+
});
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* @internal
|
|
526
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
527
|
+
*/
|
|
528
|
+
export namespace UpdateSharedEnvVariableRequest$ {
|
|
529
|
+
/** @deprecated use `UpdateSharedEnvVariableRequest$inboundSchema` instead. */
|
|
530
|
+
export const inboundSchema = UpdateSharedEnvVariableRequest$inboundSchema;
|
|
531
|
+
/** @deprecated use `UpdateSharedEnvVariableRequest$outboundSchema` instead. */
|
|
532
|
+
export const outboundSchema = UpdateSharedEnvVariableRequest$outboundSchema;
|
|
533
|
+
/** @deprecated use `UpdateSharedEnvVariableRequest$Outbound` instead. */
|
|
534
|
+
export type Outbound = UpdateSharedEnvVariableRequest$Outbound;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
export function updateSharedEnvVariableRequestToJSON(
|
|
538
|
+
updateSharedEnvVariableRequest: UpdateSharedEnvVariableRequest,
|
|
539
|
+
): string {
|
|
540
|
+
return JSON.stringify(
|
|
541
|
+
UpdateSharedEnvVariableRequest$outboundSchema.parse(
|
|
542
|
+
updateSharedEnvVariableRequest,
|
|
543
|
+
),
|
|
544
|
+
);
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
export function updateSharedEnvVariableRequestFromJSON(
|
|
548
|
+
jsonString: string,
|
|
549
|
+
): SafeParseResult<UpdateSharedEnvVariableRequest, SDKValidationError> {
|
|
550
|
+
return safeParse(
|
|
551
|
+
jsonString,
|
|
552
|
+
(x) => UpdateSharedEnvVariableRequest$inboundSchema.parse(JSON.parse(x)),
|
|
553
|
+
`Failed to parse 'UpdateSharedEnvVariableRequest' from JSON`,
|
|
554
|
+
);
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
/** @internal */
|
|
558
|
+
export const UpdateSharedEnvVariableEnvironmentType$inboundSchema:
|
|
559
|
+
z.ZodNativeEnum<typeof UpdateSharedEnvVariableEnvironmentType> = z.nativeEnum(
|
|
560
|
+
UpdateSharedEnvVariableEnvironmentType,
|
|
561
|
+
);
|
|
562
|
+
|
|
563
|
+
/** @internal */
|
|
564
|
+
export const UpdateSharedEnvVariableEnvironmentType$outboundSchema:
|
|
565
|
+
z.ZodNativeEnum<typeof UpdateSharedEnvVariableEnvironmentType> =
|
|
566
|
+
UpdateSharedEnvVariableEnvironmentType$inboundSchema;
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* @internal
|
|
570
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
571
|
+
*/
|
|
572
|
+
export namespace UpdateSharedEnvVariableEnvironmentType$ {
|
|
573
|
+
/** @deprecated use `UpdateSharedEnvVariableEnvironmentType$inboundSchema` instead. */
|
|
574
|
+
export const inboundSchema =
|
|
575
|
+
UpdateSharedEnvVariableEnvironmentType$inboundSchema;
|
|
576
|
+
/** @deprecated use `UpdateSharedEnvVariableEnvironmentType$outboundSchema` instead. */
|
|
577
|
+
export const outboundSchema =
|
|
578
|
+
UpdateSharedEnvVariableEnvironmentType$outboundSchema;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
/** @internal */
|
|
582
|
+
export const UpdateSharedEnvVariableEnvironmentTarget$inboundSchema:
|
|
583
|
+
z.ZodNativeEnum<typeof UpdateSharedEnvVariableEnvironmentTarget> = z
|
|
584
|
+
.nativeEnum(UpdateSharedEnvVariableEnvironmentTarget);
|
|
585
|
+
|
|
586
|
+
/** @internal */
|
|
587
|
+
export const UpdateSharedEnvVariableEnvironmentTarget$outboundSchema:
|
|
588
|
+
z.ZodNativeEnum<typeof UpdateSharedEnvVariableEnvironmentTarget> =
|
|
589
|
+
UpdateSharedEnvVariableEnvironmentTarget$inboundSchema;
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* @internal
|
|
593
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
594
|
+
*/
|
|
595
|
+
export namespace UpdateSharedEnvVariableEnvironmentTarget$ {
|
|
596
|
+
/** @deprecated use `UpdateSharedEnvVariableEnvironmentTarget$inboundSchema` instead. */
|
|
597
|
+
export const inboundSchema =
|
|
598
|
+
UpdateSharedEnvVariableEnvironmentTarget$inboundSchema;
|
|
599
|
+
/** @deprecated use `UpdateSharedEnvVariableEnvironmentTarget$outboundSchema` instead. */
|
|
600
|
+
export const outboundSchema =
|
|
601
|
+
UpdateSharedEnvVariableEnvironmentTarget$outboundSchema;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
/** @internal */
|
|
605
|
+
export const Updated$inboundSchema: z.ZodType<Updated, z.ZodTypeDef, unknown> =
|
|
606
|
+
z.object({
|
|
607
|
+
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
608
|
+
.optional(),
|
|
609
|
+
key: z.string().optional(),
|
|
610
|
+
ownerId: z.nullable(z.string()).optional(),
|
|
611
|
+
id: z.string().optional(),
|
|
612
|
+
createdBy: z.nullable(z.string()).optional(),
|
|
613
|
+
deletedBy: z.nullable(z.string()).optional(),
|
|
614
|
+
updatedBy: z.nullable(z.string()).optional(),
|
|
615
|
+
createdAt: z.number().optional(),
|
|
616
|
+
deletedAt: z.number().optional(),
|
|
617
|
+
updatedAt: z.number().optional(),
|
|
618
|
+
value: z.string().optional(),
|
|
619
|
+
projectId: z.array(z.string()).optional(),
|
|
620
|
+
type: UpdateSharedEnvVariableEnvironmentType$inboundSchema.optional(),
|
|
621
|
+
target: z.array(UpdateSharedEnvVariableEnvironmentTarget$inboundSchema)
|
|
622
|
+
.optional(),
|
|
623
|
+
applyToAllCustomEnvironments: z.boolean().optional(),
|
|
624
|
+
decrypted: z.boolean().optional(),
|
|
625
|
+
comment: z.string().optional(),
|
|
626
|
+
lastEditedByDisplayName: z.string().optional(),
|
|
627
|
+
});
|
|
628
|
+
|
|
629
|
+
/** @internal */
|
|
630
|
+
export type Updated$Outbound = {
|
|
631
|
+
created?: string | undefined;
|
|
632
|
+
key?: string | undefined;
|
|
633
|
+
ownerId?: string | null | undefined;
|
|
634
|
+
id?: string | undefined;
|
|
635
|
+
createdBy?: string | null | undefined;
|
|
636
|
+
deletedBy?: string | null | undefined;
|
|
637
|
+
updatedBy?: string | null | undefined;
|
|
638
|
+
createdAt?: number | undefined;
|
|
639
|
+
deletedAt?: number | undefined;
|
|
640
|
+
updatedAt?: number | undefined;
|
|
641
|
+
value?: string | undefined;
|
|
642
|
+
projectId?: Array<string> | undefined;
|
|
643
|
+
type?: string | undefined;
|
|
644
|
+
target?: Array<string> | undefined;
|
|
645
|
+
applyToAllCustomEnvironments?: boolean | undefined;
|
|
646
|
+
decrypted?: boolean | undefined;
|
|
647
|
+
comment?: string | undefined;
|
|
648
|
+
lastEditedByDisplayName?: string | undefined;
|
|
649
|
+
};
|
|
650
|
+
|
|
651
|
+
/** @internal */
|
|
652
|
+
export const Updated$outboundSchema: z.ZodType<
|
|
653
|
+
Updated$Outbound,
|
|
654
|
+
z.ZodTypeDef,
|
|
655
|
+
Updated
|
|
656
|
+
> = z.object({
|
|
657
|
+
created: z.date().transform(v => v.toISOString()).optional(),
|
|
658
|
+
key: z.string().optional(),
|
|
659
|
+
ownerId: z.nullable(z.string()).optional(),
|
|
660
|
+
id: z.string().optional(),
|
|
661
|
+
createdBy: z.nullable(z.string()).optional(),
|
|
662
|
+
deletedBy: z.nullable(z.string()).optional(),
|
|
663
|
+
updatedBy: z.nullable(z.string()).optional(),
|
|
664
|
+
createdAt: z.number().optional(),
|
|
665
|
+
deletedAt: z.number().optional(),
|
|
666
|
+
updatedAt: z.number().optional(),
|
|
667
|
+
value: z.string().optional(),
|
|
668
|
+
projectId: z.array(z.string()).optional(),
|
|
669
|
+
type: UpdateSharedEnvVariableEnvironmentType$outboundSchema.optional(),
|
|
670
|
+
target: z.array(UpdateSharedEnvVariableEnvironmentTarget$outboundSchema)
|
|
671
|
+
.optional(),
|
|
672
|
+
applyToAllCustomEnvironments: z.boolean().optional(),
|
|
673
|
+
decrypted: z.boolean().optional(),
|
|
674
|
+
comment: z.string().optional(),
|
|
675
|
+
lastEditedByDisplayName: z.string().optional(),
|
|
676
|
+
});
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* @internal
|
|
680
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
681
|
+
*/
|
|
682
|
+
export namespace Updated$ {
|
|
683
|
+
/** @deprecated use `Updated$inboundSchema` instead. */
|
|
684
|
+
export const inboundSchema = Updated$inboundSchema;
|
|
685
|
+
/** @deprecated use `Updated$outboundSchema` instead. */
|
|
686
|
+
export const outboundSchema = Updated$outboundSchema;
|
|
687
|
+
/** @deprecated use `Updated$Outbound` instead. */
|
|
688
|
+
export type Outbound = Updated$Outbound;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
export function updatedToJSON(updated: Updated): string {
|
|
692
|
+
return JSON.stringify(Updated$outboundSchema.parse(updated));
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
export function updatedFromJSON(
|
|
696
|
+
jsonString: string,
|
|
697
|
+
): SafeParseResult<Updated, SDKValidationError> {
|
|
698
|
+
return safeParse(
|
|
699
|
+
jsonString,
|
|
700
|
+
(x) => Updated$inboundSchema.parse(JSON.parse(x)),
|
|
701
|
+
`Failed to parse 'Updated' from JSON`,
|
|
702
|
+
);
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
/** @internal */
|
|
706
|
+
export const UpdateSharedEnvVariableValue2$inboundSchema: z.ZodNativeEnum<
|
|
707
|
+
typeof UpdateSharedEnvVariableValue2
|
|
708
|
+
> = z.nativeEnum(UpdateSharedEnvVariableValue2);
|
|
709
|
+
|
|
710
|
+
/** @internal */
|
|
711
|
+
export const UpdateSharedEnvVariableValue2$outboundSchema: z.ZodNativeEnum<
|
|
712
|
+
typeof UpdateSharedEnvVariableValue2
|
|
713
|
+
> = UpdateSharedEnvVariableValue2$inboundSchema;
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* @internal
|
|
717
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
718
|
+
*/
|
|
719
|
+
export namespace UpdateSharedEnvVariableValue2$ {
|
|
720
|
+
/** @deprecated use `UpdateSharedEnvVariableValue2$inboundSchema` instead. */
|
|
721
|
+
export const inboundSchema = UpdateSharedEnvVariableValue2$inboundSchema;
|
|
722
|
+
/** @deprecated use `UpdateSharedEnvVariableValue2$outboundSchema` instead. */
|
|
723
|
+
export const outboundSchema = UpdateSharedEnvVariableValue2$outboundSchema;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
/** @internal */
|
|
727
|
+
export const UpdateSharedEnvVariableValue$inboundSchema: z.ZodType<
|
|
728
|
+
UpdateSharedEnvVariableValue,
|
|
729
|
+
z.ZodTypeDef,
|
|
730
|
+
unknown
|
|
731
|
+
> = z.union([z.string(), z.array(UpdateSharedEnvVariableValue2$inboundSchema)]);
|
|
732
|
+
|
|
733
|
+
/** @internal */
|
|
734
|
+
export type UpdateSharedEnvVariableValue$Outbound = string | Array<string>;
|
|
735
|
+
|
|
736
|
+
/** @internal */
|
|
737
|
+
export const UpdateSharedEnvVariableValue$outboundSchema: z.ZodType<
|
|
738
|
+
UpdateSharedEnvVariableValue$Outbound,
|
|
739
|
+
z.ZodTypeDef,
|
|
740
|
+
UpdateSharedEnvVariableValue
|
|
741
|
+
> = z.union([
|
|
742
|
+
z.string(),
|
|
743
|
+
z.array(UpdateSharedEnvVariableValue2$outboundSchema),
|
|
744
|
+
]);
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* @internal
|
|
748
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
749
|
+
*/
|
|
750
|
+
export namespace UpdateSharedEnvVariableValue$ {
|
|
751
|
+
/** @deprecated use `UpdateSharedEnvVariableValue$inboundSchema` instead. */
|
|
752
|
+
export const inboundSchema = UpdateSharedEnvVariableValue$inboundSchema;
|
|
753
|
+
/** @deprecated use `UpdateSharedEnvVariableValue$outboundSchema` instead. */
|
|
754
|
+
export const outboundSchema = UpdateSharedEnvVariableValue$outboundSchema;
|
|
755
|
+
/** @deprecated use `UpdateSharedEnvVariableValue$Outbound` instead. */
|
|
756
|
+
export type Outbound = UpdateSharedEnvVariableValue$Outbound;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
export function updateSharedEnvVariableValueToJSON(
|
|
760
|
+
updateSharedEnvVariableValue: UpdateSharedEnvVariableValue,
|
|
761
|
+
): string {
|
|
762
|
+
return JSON.stringify(
|
|
763
|
+
UpdateSharedEnvVariableValue$outboundSchema.parse(
|
|
764
|
+
updateSharedEnvVariableValue,
|
|
765
|
+
),
|
|
766
|
+
);
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
export function updateSharedEnvVariableValueFromJSON(
|
|
770
|
+
jsonString: string,
|
|
771
|
+
): SafeParseResult<UpdateSharedEnvVariableValue, SDKValidationError> {
|
|
772
|
+
return safeParse(
|
|
773
|
+
jsonString,
|
|
774
|
+
(x) => UpdateSharedEnvVariableValue$inboundSchema.parse(JSON.parse(x)),
|
|
775
|
+
`Failed to parse 'UpdateSharedEnvVariableValue' from JSON`,
|
|
776
|
+
);
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
/** @internal */
|
|
780
|
+
export const UpdateSharedEnvVariableTarget2$inboundSchema: z.ZodNativeEnum<
|
|
781
|
+
typeof UpdateSharedEnvVariableTarget2
|
|
782
|
+
> = z.nativeEnum(UpdateSharedEnvVariableTarget2);
|
|
783
|
+
|
|
784
|
+
/** @internal */
|
|
785
|
+
export const UpdateSharedEnvVariableTarget2$outboundSchema: z.ZodNativeEnum<
|
|
786
|
+
typeof UpdateSharedEnvVariableTarget2
|
|
787
|
+
> = UpdateSharedEnvVariableTarget2$inboundSchema;
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* @internal
|
|
791
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
792
|
+
*/
|
|
793
|
+
export namespace UpdateSharedEnvVariableTarget2$ {
|
|
794
|
+
/** @deprecated use `UpdateSharedEnvVariableTarget2$inboundSchema` instead. */
|
|
795
|
+
export const inboundSchema = UpdateSharedEnvVariableTarget2$inboundSchema;
|
|
796
|
+
/** @deprecated use `UpdateSharedEnvVariableTarget2$outboundSchema` instead. */
|
|
797
|
+
export const outboundSchema = UpdateSharedEnvVariableTarget2$outboundSchema;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
/** @internal */
|
|
801
|
+
export const UpdateSharedEnvVariableTarget1$inboundSchema: z.ZodNativeEnum<
|
|
802
|
+
typeof UpdateSharedEnvVariableTarget1
|
|
803
|
+
> = z.nativeEnum(UpdateSharedEnvVariableTarget1);
|
|
804
|
+
|
|
805
|
+
/** @internal */
|
|
806
|
+
export const UpdateSharedEnvVariableTarget1$outboundSchema: z.ZodNativeEnum<
|
|
807
|
+
typeof UpdateSharedEnvVariableTarget1
|
|
808
|
+
> = UpdateSharedEnvVariableTarget1$inboundSchema;
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* @internal
|
|
812
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
813
|
+
*/
|
|
814
|
+
export namespace UpdateSharedEnvVariableTarget1$ {
|
|
815
|
+
/** @deprecated use `UpdateSharedEnvVariableTarget1$inboundSchema` instead. */
|
|
816
|
+
export const inboundSchema = UpdateSharedEnvVariableTarget1$inboundSchema;
|
|
817
|
+
/** @deprecated use `UpdateSharedEnvVariableTarget1$outboundSchema` instead. */
|
|
818
|
+
export const outboundSchema = UpdateSharedEnvVariableTarget1$outboundSchema;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
/** @internal */
|
|
822
|
+
export const UpdateSharedEnvVariableEnvironmentResponseTarget$inboundSchema:
|
|
823
|
+
z.ZodType<
|
|
824
|
+
UpdateSharedEnvVariableEnvironmentResponseTarget,
|
|
825
|
+
z.ZodTypeDef,
|
|
826
|
+
unknown
|
|
827
|
+
> = z.union([
|
|
828
|
+
z.array(UpdateSharedEnvVariableTarget1$inboundSchema),
|
|
829
|
+
UpdateSharedEnvVariableTarget2$inboundSchema,
|
|
830
|
+
]);
|
|
831
|
+
|
|
832
|
+
/** @internal */
|
|
833
|
+
export type UpdateSharedEnvVariableEnvironmentResponseTarget$Outbound =
|
|
834
|
+
| Array<string>
|
|
835
|
+
| string;
|
|
836
|
+
|
|
837
|
+
/** @internal */
|
|
838
|
+
export const UpdateSharedEnvVariableEnvironmentResponseTarget$outboundSchema:
|
|
839
|
+
z.ZodType<
|
|
840
|
+
UpdateSharedEnvVariableEnvironmentResponseTarget$Outbound,
|
|
841
|
+
z.ZodTypeDef,
|
|
842
|
+
UpdateSharedEnvVariableEnvironmentResponseTarget
|
|
843
|
+
> = z.union([
|
|
844
|
+
z.array(UpdateSharedEnvVariableTarget1$outboundSchema),
|
|
845
|
+
UpdateSharedEnvVariableTarget2$outboundSchema,
|
|
846
|
+
]);
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* @internal
|
|
850
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
851
|
+
*/
|
|
852
|
+
export namespace UpdateSharedEnvVariableEnvironmentResponseTarget$ {
|
|
853
|
+
/** @deprecated use `UpdateSharedEnvVariableEnvironmentResponseTarget$inboundSchema` instead. */
|
|
854
|
+
export const inboundSchema =
|
|
855
|
+
UpdateSharedEnvVariableEnvironmentResponseTarget$inboundSchema;
|
|
856
|
+
/** @deprecated use `UpdateSharedEnvVariableEnvironmentResponseTarget$outboundSchema` instead. */
|
|
857
|
+
export const outboundSchema =
|
|
858
|
+
UpdateSharedEnvVariableEnvironmentResponseTarget$outboundSchema;
|
|
859
|
+
/** @deprecated use `UpdateSharedEnvVariableEnvironmentResponseTarget$Outbound` instead. */
|
|
860
|
+
export type Outbound =
|
|
861
|
+
UpdateSharedEnvVariableEnvironmentResponseTarget$Outbound;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
export function updateSharedEnvVariableEnvironmentResponseTargetToJSON(
|
|
865
|
+
updateSharedEnvVariableEnvironmentResponseTarget:
|
|
866
|
+
UpdateSharedEnvVariableEnvironmentResponseTarget,
|
|
867
|
+
): string {
|
|
868
|
+
return JSON.stringify(
|
|
869
|
+
UpdateSharedEnvVariableEnvironmentResponseTarget$outboundSchema.parse(
|
|
870
|
+
updateSharedEnvVariableEnvironmentResponseTarget,
|
|
871
|
+
),
|
|
872
|
+
);
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
export function updateSharedEnvVariableEnvironmentResponseTargetFromJSON(
|
|
876
|
+
jsonString: string,
|
|
877
|
+
): SafeParseResult<
|
|
878
|
+
UpdateSharedEnvVariableEnvironmentResponseTarget,
|
|
879
|
+
SDKValidationError
|
|
880
|
+
> {
|
|
881
|
+
return safeParse(
|
|
882
|
+
jsonString,
|
|
883
|
+
(x) =>
|
|
884
|
+
UpdateSharedEnvVariableEnvironmentResponseTarget$inboundSchema.parse(
|
|
885
|
+
JSON.parse(x),
|
|
886
|
+
),
|
|
887
|
+
`Failed to parse 'UpdateSharedEnvVariableEnvironmentResponseTarget' from JSON`,
|
|
888
|
+
);
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
/** @internal */
|
|
892
|
+
export const UpdateSharedEnvVariableError$inboundSchema: z.ZodType<
|
|
893
|
+
UpdateSharedEnvVariableError,
|
|
894
|
+
z.ZodTypeDef,
|
|
895
|
+
unknown
|
|
896
|
+
> = z.object({
|
|
897
|
+
code: z.string(),
|
|
898
|
+
message: z.string(),
|
|
899
|
+
key: z.string().optional(),
|
|
900
|
+
envVarId: z.string().optional(),
|
|
901
|
+
envVarKey: z.string().optional(),
|
|
902
|
+
action: z.string().optional(),
|
|
903
|
+
link: z.string().optional(),
|
|
904
|
+
value: z.union([
|
|
905
|
+
z.string(),
|
|
906
|
+
z.array(UpdateSharedEnvVariableValue2$inboundSchema),
|
|
907
|
+
]).optional(),
|
|
908
|
+
gitBranch: z.string().optional(),
|
|
909
|
+
target: z.union([
|
|
910
|
+
z.array(UpdateSharedEnvVariableTarget1$inboundSchema),
|
|
911
|
+
UpdateSharedEnvVariableTarget2$inboundSchema,
|
|
912
|
+
]).optional(),
|
|
913
|
+
project: z.string().optional(),
|
|
914
|
+
});
|
|
915
|
+
|
|
916
|
+
/** @internal */
|
|
917
|
+
export type UpdateSharedEnvVariableError$Outbound = {
|
|
918
|
+
code: string;
|
|
919
|
+
message: string;
|
|
920
|
+
key?: string | undefined;
|
|
921
|
+
envVarId?: string | undefined;
|
|
922
|
+
envVarKey?: string | undefined;
|
|
923
|
+
action?: string | undefined;
|
|
924
|
+
link?: string | undefined;
|
|
925
|
+
value?: string | Array<string> | undefined;
|
|
926
|
+
gitBranch?: string | undefined;
|
|
927
|
+
target?: Array<string> | string | undefined;
|
|
928
|
+
project?: string | undefined;
|
|
929
|
+
};
|
|
930
|
+
|
|
931
|
+
/** @internal */
|
|
932
|
+
export const UpdateSharedEnvVariableError$outboundSchema: z.ZodType<
|
|
933
|
+
UpdateSharedEnvVariableError$Outbound,
|
|
934
|
+
z.ZodTypeDef,
|
|
935
|
+
UpdateSharedEnvVariableError
|
|
936
|
+
> = z.object({
|
|
937
|
+
code: z.string(),
|
|
938
|
+
message: z.string(),
|
|
939
|
+
key: z.string().optional(),
|
|
940
|
+
envVarId: z.string().optional(),
|
|
941
|
+
envVarKey: z.string().optional(),
|
|
942
|
+
action: z.string().optional(),
|
|
943
|
+
link: z.string().optional(),
|
|
944
|
+
value: z.union([
|
|
945
|
+
z.string(),
|
|
946
|
+
z.array(UpdateSharedEnvVariableValue2$outboundSchema),
|
|
947
|
+
]).optional(),
|
|
948
|
+
gitBranch: z.string().optional(),
|
|
949
|
+
target: z.union([
|
|
950
|
+
z.array(UpdateSharedEnvVariableTarget1$outboundSchema),
|
|
951
|
+
UpdateSharedEnvVariableTarget2$outboundSchema,
|
|
952
|
+
]).optional(),
|
|
953
|
+
project: z.string().optional(),
|
|
954
|
+
});
|
|
955
|
+
|
|
956
|
+
/**
|
|
957
|
+
* @internal
|
|
958
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
959
|
+
*/
|
|
960
|
+
export namespace UpdateSharedEnvVariableError$ {
|
|
961
|
+
/** @deprecated use `UpdateSharedEnvVariableError$inboundSchema` instead. */
|
|
962
|
+
export const inboundSchema = UpdateSharedEnvVariableError$inboundSchema;
|
|
963
|
+
/** @deprecated use `UpdateSharedEnvVariableError$outboundSchema` instead. */
|
|
964
|
+
export const outboundSchema = UpdateSharedEnvVariableError$outboundSchema;
|
|
965
|
+
/** @deprecated use `UpdateSharedEnvVariableError$Outbound` instead. */
|
|
966
|
+
export type Outbound = UpdateSharedEnvVariableError$Outbound;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
export function updateSharedEnvVariableErrorToJSON(
|
|
970
|
+
updateSharedEnvVariableError: UpdateSharedEnvVariableError,
|
|
971
|
+
): string {
|
|
972
|
+
return JSON.stringify(
|
|
973
|
+
UpdateSharedEnvVariableError$outboundSchema.parse(
|
|
974
|
+
updateSharedEnvVariableError,
|
|
975
|
+
),
|
|
976
|
+
);
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
export function updateSharedEnvVariableErrorFromJSON(
|
|
980
|
+
jsonString: string,
|
|
981
|
+
): SafeParseResult<UpdateSharedEnvVariableError, SDKValidationError> {
|
|
982
|
+
return safeParse(
|
|
983
|
+
jsonString,
|
|
984
|
+
(x) => UpdateSharedEnvVariableError$inboundSchema.parse(JSON.parse(x)),
|
|
985
|
+
`Failed to parse 'UpdateSharedEnvVariableError' from JSON`,
|
|
986
|
+
);
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
/** @internal */
|
|
990
|
+
export const UpdateSharedEnvVariableFailed$inboundSchema: z.ZodType<
|
|
991
|
+
UpdateSharedEnvVariableFailed,
|
|
992
|
+
z.ZodTypeDef,
|
|
993
|
+
unknown
|
|
994
|
+
> = z.object({
|
|
995
|
+
error: z.lazy(() => UpdateSharedEnvVariableError$inboundSchema),
|
|
996
|
+
});
|
|
997
|
+
|
|
998
|
+
/** @internal */
|
|
999
|
+
export type UpdateSharedEnvVariableFailed$Outbound = {
|
|
1000
|
+
error: UpdateSharedEnvVariableError$Outbound;
|
|
1001
|
+
};
|
|
1002
|
+
|
|
1003
|
+
/** @internal */
|
|
1004
|
+
export const UpdateSharedEnvVariableFailed$outboundSchema: z.ZodType<
|
|
1005
|
+
UpdateSharedEnvVariableFailed$Outbound,
|
|
1006
|
+
z.ZodTypeDef,
|
|
1007
|
+
UpdateSharedEnvVariableFailed
|
|
1008
|
+
> = z.object({
|
|
1009
|
+
error: z.lazy(() => UpdateSharedEnvVariableError$outboundSchema),
|
|
1010
|
+
});
|
|
1011
|
+
|
|
1012
|
+
/**
|
|
1013
|
+
* @internal
|
|
1014
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1015
|
+
*/
|
|
1016
|
+
export namespace UpdateSharedEnvVariableFailed$ {
|
|
1017
|
+
/** @deprecated use `UpdateSharedEnvVariableFailed$inboundSchema` instead. */
|
|
1018
|
+
export const inboundSchema = UpdateSharedEnvVariableFailed$inboundSchema;
|
|
1019
|
+
/** @deprecated use `UpdateSharedEnvVariableFailed$outboundSchema` instead. */
|
|
1020
|
+
export const outboundSchema = UpdateSharedEnvVariableFailed$outboundSchema;
|
|
1021
|
+
/** @deprecated use `UpdateSharedEnvVariableFailed$Outbound` instead. */
|
|
1022
|
+
export type Outbound = UpdateSharedEnvVariableFailed$Outbound;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
export function updateSharedEnvVariableFailedToJSON(
|
|
1026
|
+
updateSharedEnvVariableFailed: UpdateSharedEnvVariableFailed,
|
|
1027
|
+
): string {
|
|
1028
|
+
return JSON.stringify(
|
|
1029
|
+
UpdateSharedEnvVariableFailed$outboundSchema.parse(
|
|
1030
|
+
updateSharedEnvVariableFailed,
|
|
1031
|
+
),
|
|
1032
|
+
);
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
export function updateSharedEnvVariableFailedFromJSON(
|
|
1036
|
+
jsonString: string,
|
|
1037
|
+
): SafeParseResult<UpdateSharedEnvVariableFailed, SDKValidationError> {
|
|
1038
|
+
return safeParse(
|
|
1039
|
+
jsonString,
|
|
1040
|
+
(x) => UpdateSharedEnvVariableFailed$inboundSchema.parse(JSON.parse(x)),
|
|
1041
|
+
`Failed to parse 'UpdateSharedEnvVariableFailed' from JSON`,
|
|
1042
|
+
);
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
/** @internal */
|
|
1046
|
+
export const UpdateSharedEnvVariableResponseBody$inboundSchema: z.ZodType<
|
|
1047
|
+
UpdateSharedEnvVariableResponseBody,
|
|
1048
|
+
z.ZodTypeDef,
|
|
1049
|
+
unknown
|
|
1050
|
+
> = z.object({
|
|
1051
|
+
updated: z.array(z.lazy(() => Updated$inboundSchema)),
|
|
1052
|
+
failed: z.array(z.lazy(() => UpdateSharedEnvVariableFailed$inboundSchema)),
|
|
1053
|
+
});
|
|
1054
|
+
|
|
1055
|
+
/** @internal */
|
|
1056
|
+
export type UpdateSharedEnvVariableResponseBody$Outbound = {
|
|
1057
|
+
updated: Array<Updated$Outbound>;
|
|
1058
|
+
failed: Array<UpdateSharedEnvVariableFailed$Outbound>;
|
|
1059
|
+
};
|
|
1060
|
+
|
|
1061
|
+
/** @internal */
|
|
1062
|
+
export const UpdateSharedEnvVariableResponseBody$outboundSchema: z.ZodType<
|
|
1063
|
+
UpdateSharedEnvVariableResponseBody$Outbound,
|
|
1064
|
+
z.ZodTypeDef,
|
|
1065
|
+
UpdateSharedEnvVariableResponseBody
|
|
1066
|
+
> = z.object({
|
|
1067
|
+
updated: z.array(z.lazy(() => Updated$outboundSchema)),
|
|
1068
|
+
failed: z.array(z.lazy(() => UpdateSharedEnvVariableFailed$outboundSchema)),
|
|
1069
|
+
});
|
|
1070
|
+
|
|
1071
|
+
/**
|
|
1072
|
+
* @internal
|
|
1073
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1074
|
+
*/
|
|
1075
|
+
export namespace UpdateSharedEnvVariableResponseBody$ {
|
|
1076
|
+
/** @deprecated use `UpdateSharedEnvVariableResponseBody$inboundSchema` instead. */
|
|
1077
|
+
export const inboundSchema =
|
|
1078
|
+
UpdateSharedEnvVariableResponseBody$inboundSchema;
|
|
1079
|
+
/** @deprecated use `UpdateSharedEnvVariableResponseBody$outboundSchema` instead. */
|
|
1080
|
+
export const outboundSchema =
|
|
1081
|
+
UpdateSharedEnvVariableResponseBody$outboundSchema;
|
|
1082
|
+
/** @deprecated use `UpdateSharedEnvVariableResponseBody$Outbound` instead. */
|
|
1083
|
+
export type Outbound = UpdateSharedEnvVariableResponseBody$Outbound;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
export function updateSharedEnvVariableResponseBodyToJSON(
|
|
1087
|
+
updateSharedEnvVariableResponseBody: UpdateSharedEnvVariableResponseBody,
|
|
1088
|
+
): string {
|
|
1089
|
+
return JSON.stringify(
|
|
1090
|
+
UpdateSharedEnvVariableResponseBody$outboundSchema.parse(
|
|
1091
|
+
updateSharedEnvVariableResponseBody,
|
|
1092
|
+
),
|
|
1093
|
+
);
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
export function updateSharedEnvVariableResponseBodyFromJSON(
|
|
1097
|
+
jsonString: string,
|
|
1098
|
+
): SafeParseResult<UpdateSharedEnvVariableResponseBody, SDKValidationError> {
|
|
1099
|
+
return safeParse(
|
|
1100
|
+
jsonString,
|
|
1101
|
+
(x) =>
|
|
1102
|
+
UpdateSharedEnvVariableResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
1103
|
+
`Failed to parse 'UpdateSharedEnvVariableResponseBody' from JSON`,
|
|
1104
|
+
);
|
|
1105
|
+
}
|