@alienplatform/manager-api 3.3.30 → 3.3.32
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/esm/funcs/commandsStoreCommandPayload.d.ts +2 -2
- package/esm/funcs/commandsStoreCommandPayload.d.ts.map +1 -1
- package/esm/funcs/commandsStoreCommandPayload.js +8 -4
- package/esm/funcs/commandsStoreCommandPayload.js.map +1 -1
- package/esm/funcs/commandsSubmitResponse.d.ts +2 -2
- package/esm/funcs/commandsSubmitResponse.d.ts.map +1 -1
- package/esm/funcs/commandsSubmitResponse.js +8 -4
- package/esm/funcs/commandsSubmitResponse.js.map +1 -1
- package/esm/funcs/commandsUploadComplete.d.ts +1 -2
- package/esm/funcs/commandsUploadComplete.d.ts.map +1 -1
- package/esm/funcs/commandsUploadComplete.js +8 -4
- package/esm/funcs/commandsUploadComplete.js.map +1 -1
- package/esm/funcs/deploymentsDeleteDeployment.d.ts +1 -2
- package/esm/funcs/deploymentsDeleteDeployment.d.ts.map +1 -1
- package/esm/funcs/deploymentsDeleteDeployment.js +8 -4
- package/esm/funcs/deploymentsDeleteDeployment.js.map +1 -1
- package/esm/funcs/deploymentsImportDeploymentStatus.d.ts +1 -2
- package/esm/funcs/deploymentsImportDeploymentStatus.d.ts.map +1 -1
- package/esm/funcs/deploymentsImportDeploymentStatus.js +8 -4
- package/esm/funcs/deploymentsImportDeploymentStatus.js.map +1 -1
- package/esm/funcs/deploymentsSetDeploymentChannel.d.ts +1 -2
- package/esm/funcs/deploymentsSetDeploymentChannel.d.ts.map +1 -1
- package/esm/funcs/deploymentsSetDeploymentChannel.js +8 -4
- package/esm/funcs/deploymentsSetDeploymentChannel.js.map +1 -1
- package/esm/funcs/deploymentsSetDeploymentPin.d.ts +1 -2
- package/esm/funcs/deploymentsSetDeploymentPin.d.ts.map +1 -1
- package/esm/funcs/deploymentsSetDeploymentPin.js +8 -4
- package/esm/funcs/deploymentsSetDeploymentPin.js.map +1 -1
- package/esm/funcs/deploymentsSignDeploymentBundle.d.ts +1 -2
- package/esm/funcs/deploymentsSignDeploymentBundle.d.ts.map +1 -1
- package/esm/funcs/deploymentsSignDeploymentBundle.js +8 -4
- package/esm/funcs/deploymentsSignDeploymentBundle.js.map +1 -1
- package/esm/funcs/releasesPromoteManagerRelease.d.ts +1 -2
- package/esm/funcs/releasesPromoteManagerRelease.d.ts.map +1 -1
- package/esm/funcs/releasesPromoteManagerRelease.js +8 -4
- package/esm/funcs/releasesPromoteManagerRelease.js.map +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/acquireresponse.d.ts +8 -0
- package/esm/models/acquireresponse.d.ts.map +1 -1
- package/esm/models/acquireresponse.js +2 -0
- package/esm/models/acquireresponse.js.map +1 -1
- package/esm/models/agentsyncrequest.d.ts +3 -0
- package/esm/models/agentsyncrequest.d.ts.map +1 -1
- package/esm/models/agentsyncrequest.js +2 -0
- package/esm/models/agentsyncrequest.js.map +1 -1
- package/esm/models/bindingvalueoptionstringunion.d.ts +39 -0
- package/esm/models/bindingvalueoptionstringunion.d.ts.map +1 -0
- package/esm/models/bindingvalueoptionstringunion.js +39 -0
- package/esm/models/bindingvalueoptionstringunion.js.map +1 -0
- package/esm/models/bindingvaluestringunion.d.ts +39 -0
- package/esm/models/bindingvaluestringunion.d.ts.map +1 -0
- package/esm/models/bindingvaluestringunion.js +39 -0
- package/esm/models/bindingvaluestringunion.js.map +1 -0
- package/esm/models/bindingvalueu16union.d.ts +39 -0
- package/esm/models/bindingvalueu16union.d.ts.map +1 -0
- package/esm/models/bindingvalueu16union.js +31 -0
- package/esm/models/bindingvalueu16union.js.map +1 -0
- package/esm/models/bindingvalueu8union.d.ts +39 -0
- package/esm/models/bindingvalueu8union.d.ts.map +1 -0
- package/esm/models/bindingvalueu8union.js +31 -0
- package/esm/models/bindingvalueu8union.js.map +1 -0
- package/esm/models/bindingvaluevecstringunion.d.ts +39 -0
- package/esm/models/bindingvaluevecstringunion.d.ts.map +1 -0
- package/esm/models/bindingvaluevecstringunion.js +39 -0
- package/esm/models/bindingvaluevecstringunion.js.map +1 -0
- package/esm/models/computesettings.d.ts +10 -0
- package/esm/models/computesettings.d.ts.map +1 -1
- package/esm/models/computesettings.js +5 -0
- package/esm/models/computesettings.js.map +1 -1
- package/esm/models/containerresourceselection.d.ts +28 -0
- package/esm/models/containerresourceselection.d.ts.map +1 -0
- package/esm/models/containerresourceselection.js +22 -0
- package/esm/models/containerresourceselection.js.map +1 -0
- package/esm/models/custompluginoperationsconfig.d.ts +46 -0
- package/esm/models/custompluginoperationsconfig.d.ts.map +1 -0
- package/esm/models/custompluginoperationsconfig.js +19 -0
- package/esm/models/custompluginoperationsconfig.js.map +1 -0
- package/esm/models/deploymentacquireunavailablereason.d.ts +32 -0
- package/esm/models/deploymentacquireunavailablereason.d.ts.map +1 -0
- package/esm/models/deploymentacquireunavailablereason.js +25 -0
- package/esm/models/deploymentacquireunavailablereason.js.map +1 -0
- package/esm/models/externalbindingunion.d.ts +1414 -0
- package/esm/models/externalbindingunion.d.ts.map +1 -0
- package/esm/models/externalbindingunion.js +1075 -0
- package/esm/models/externalbindingunion.js.map +1 -0
- package/esm/models/externalpostgressslmode.d.ts +28 -0
- package/esm/models/externalpostgressslmode.d.ts.map +1 -0
- package/esm/models/externalpostgressslmode.js +21 -0
- package/esm/models/externalpostgressslmode.js.map +1 -0
- package/esm/models/index.d.ts +17 -0
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +17 -0
- package/esm/models/index.js.map +1 -1
- package/esm/models/operationapprovaldecision.d.ts +16 -0
- package/esm/models/operationapprovaldecision.d.ts.map +1 -0
- package/esm/models/operationapprovaldecision.js +14 -0
- package/esm/models/operationapprovaldecision.js.map +1 -0
- package/esm/models/operationapprovalunion.d.ts +36 -0
- package/esm/models/operationapprovalunion.d.ts.map +1 -0
- package/esm/models/operationapprovalunion.js +22 -0
- package/esm/models/operationapprovalunion.js.map +1 -0
- package/esm/models/operationsbundledownload.d.ts +9 -0
- package/esm/models/operationsbundledownload.d.ts.map +1 -1
- package/esm/models/operationsbundledownload.js +1 -0
- package/esm/models/operationsbundledownload.js.map +1 -1
- package/esm/models/operationsconfig.d.ts +29 -0
- package/esm/models/operationsconfig.d.ts.map +1 -0
- package/esm/models/operationsconfig.js +16 -0
- package/esm/models/operationsconfig.js.map +1 -0
- package/esm/models/operationsettingvalueunion.d.ts +62 -0
- package/esm/models/operationsettingvalueunion.d.ts.map +1 -0
- package/esm/models/operationsettingvalueunion.js +36 -0
- package/esm/models/operationsettingvalueunion.js.map +1 -0
- package/esm/models/pluginoperationsconfig.d.ts +36 -0
- package/esm/models/pluginoperationsconfig.d.ts.map +1 -0
- package/esm/models/pluginoperationsconfig.js +17 -0
- package/esm/models/pluginoperationsconfig.js.map +1 -0
- package/esm/models/secretreference.d.ts +22 -0
- package/esm/models/secretreference.d.ts.map +1 -0
- package/esm/models/secretreference.js +22 -0
- package/esm/models/secretreference.js.map +1 -0
- package/esm/models/stacksettings.d.ts +7 -27
- package/esm/models/stacksettings.d.ts.map +1 -1
- package/esm/models/stacksettings.js +3 -14
- package/esm/models/stacksettings.js.map +1 -1
- package/esm/models/unacquireddeployment.d.ts +24 -0
- package/esm/models/unacquireddeployment.d.ts.map +1 -0
- package/esm/models/unacquireddeployment.js +16 -0
- package/esm/models/unacquireddeployment.js.map +1 -0
- package/esm/sdk/commands.d.ts +3 -3
- package/esm/sdk/commands.d.ts.map +1 -1
- package/esm/sdk/commands.js +6 -6
- package/esm/sdk/commands.js.map +1 -1
- package/esm/sdk/deployments.d.ts +5 -5
- package/esm/sdk/deployments.d.ts.map +1 -1
- package/esm/sdk/deployments.js +10 -10
- package/esm/sdk/deployments.js.map +1 -1
- package/esm/sdk/releases.d.ts +1 -1
- package/esm/sdk/releases.d.ts.map +1 -1
- package/esm/sdk/releases.js +2 -2
- package/esm/sdk/releases.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +3 -3
- package/src/funcs/commandsStoreCommandPayload.ts +13 -4
- package/src/funcs/commandsSubmitResponse.ts +13 -4
- package/src/funcs/commandsUploadComplete.ts +12 -4
- package/src/funcs/deploymentsDeleteDeployment.ts +12 -4
- package/src/funcs/deploymentsImportDeploymentStatus.ts +12 -4
- package/src/funcs/deploymentsSetDeploymentChannel.ts +12 -4
- package/src/funcs/deploymentsSetDeploymentPin.ts +12 -4
- package/src/funcs/deploymentsSignDeploymentBundle.ts +12 -4
- package/src/funcs/releasesPromoteManagerRelease.ts +12 -4
- package/src/lib/config.ts +2 -2
- package/src/models/acquireresponse.ts +12 -0
- package/src/models/agentsyncrequest.ts +8 -0
- package/src/models/bindingvalueoptionstringunion.ts +116 -0
- package/src/models/bindingvaluestringunion.ts +111 -0
- package/src/models/bindingvalueu16union.ts +101 -0
- package/src/models/bindingvalueu8union.ts +97 -0
- package/src/models/bindingvaluevecstringunion.ts +114 -0
- package/src/models/computesettings.ts +15 -0
- package/src/models/containerresourceselection.ts +62 -0
- package/src/models/custompluginoperationsconfig.ts +71 -0
- package/src/models/deploymentacquireunavailablereason.ts +41 -0
- package/src/models/externalbindingunion.ts +3068 -0
- package/src/models/externalpostgressslmode.ts +39 -0
- package/src/models/index.ts +17 -0
- package/src/models/operationapprovaldecision.ts +25 -0
- package/src/models/operationapprovalunion.ts +78 -0
- package/src/models/operationsbundledownload.ts +8 -0
- package/src/models/operationsconfig.ts +53 -0
- package/src/models/operationsettingvalueunion.ts +136 -0
- package/src/models/pluginoperationsconfig.ts +57 -0
- package/src/models/secretreference.ts +54 -0
- package/src/models/stacksettings.ts +17 -55
- package/src/models/unacquireddeployment.ts +51 -0
- package/src/sdk/commands.ts +12 -6
- package/src/sdk/deployments.ts +20 -10
- package/src/sdk/releases.ts +4 -2
package/esm/sdk/releases.js
CHANGED
|
@@ -38,8 +38,8 @@ export class Releases extends ClientSDK {
|
|
|
38
38
|
async getRelease(request, options) {
|
|
39
39
|
return unwrapAsync(releasesGetRelease(this, request, options));
|
|
40
40
|
}
|
|
41
|
-
async promoteManagerRelease(
|
|
42
|
-
return unwrapAsync(releasesPromoteManagerRelease(this,
|
|
41
|
+
async promoteManagerRelease(id, promoteReleaseRequest, options) {
|
|
42
|
+
return unwrapAsync(releasesPromoteManagerRelease(this, id, promoteReleaseRequest, options));
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
//# sourceMappingURL=releases.js.map
|
package/esm/sdk/releases.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"releases.js","sourceRoot":"","sources":["../../src/sdk/releases.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mCAAmC,EAAE,MAAM,iDAAiD,CAAC;AACtG,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,mCAAmC,EAAE,MAAM,iDAAiD,CAAC;AACtG,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,kCAAkC,EAAE,MAAM,gDAAgD,CAAC;AACpG,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,QAAS,SAAQ,SAAS;IACrC,KAAK,CAAC,0BAA0B,CAC9B,OAAwB;QAExB,OAAO,WAAW,CAAC,kCAAkC,CACnD,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,2BAA2B,CAC/B,OAA2C,EAC3C,OAAwB;QAExB,OAAO,WAAW,CAAC,mCAAmC,CACpD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,2BAA2B,CAC/B,OAAsD,EACtD,OAAwB;QAExB,OAAO,WAAW,CAAC,mCAAmC,CACpD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,YAAY,CAChB,OAAwB;QAExB,OAAO,WAAW,CAAC,oBAAoB,CACrC,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,aAAa,CACjB,OAAoC,EACpC,OAAwB;QAExB,OAAO,WAAW,CAAC,qBAAqB,CACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,gBAAgB,CACpB,OAAwB;QAExB,OAAO,WAAW,CAAC,wBAAwB,CACzC,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,UAAU,CACd,OAAqC,EACrC,OAAwB;QAExB,OAAO,WAAW,CAAC,kBAAkB,CACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,qBAAqB,CACzB,
|
|
1
|
+
{"version":3,"file":"releases.js","sourceRoot":"","sources":["../../src/sdk/releases.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mCAAmC,EAAE,MAAM,iDAAiD,CAAC;AACtG,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,mCAAmC,EAAE,MAAM,iDAAiD,CAAC;AACtG,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,kCAAkC,EAAE,MAAM,gDAAgD,CAAC;AACpG,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,QAAS,SAAQ,SAAS;IACrC,KAAK,CAAC,0BAA0B,CAC9B,OAAwB;QAExB,OAAO,WAAW,CAAC,kCAAkC,CACnD,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,2BAA2B,CAC/B,OAA2C,EAC3C,OAAwB;QAExB,OAAO,WAAW,CAAC,mCAAmC,CACpD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,2BAA2B,CAC/B,OAAsD,EACtD,OAAwB;QAExB,OAAO,WAAW,CAAC,mCAAmC,CACpD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,YAAY,CAChB,OAAwB;QAExB,OAAO,WAAW,CAAC,oBAAoB,CACrC,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,aAAa,CACjB,OAAoC,EACpC,OAAwB;QAExB,OAAO,WAAW,CAAC,qBAAqB,CACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,gBAAgB,CACpB,OAAwB;QAExB,OAAO,WAAW,CAAC,wBAAwB,CACzC,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,UAAU,CACd,OAAqC,EACrC,OAAwB;QAExB,OAAO,WAAW,CAAC,kBAAkB,CACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,qBAAqB,CACzB,EAAU,EACV,qBAAmD,EACnD,OAAwB;QAExB,OAAO,WAAW,CAAC,6BAA6B,CAC9C,IAAI,EACJ,EAAE,EACF,qBAAqB,EACrB,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alienplatform/manager-api",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.32",
|
|
4
4
|
"author": "Alien Software, Inc. <hi@alien.dev>",
|
|
5
5
|
"homepage": "https://alien.dev",
|
|
6
6
|
"license": "FSL-1.1-Apache-2.0",
|
|
7
7
|
"repository": {
|
|
8
|
+
"type": "git",
|
|
8
9
|
"url": "https://github.com/alienplatform/alien.git",
|
|
9
|
-
"directory": "client-sdks/manager/typescript"
|
|
10
|
-
"type": "git"
|
|
10
|
+
"directory": "client-sdks/manager/typescript"
|
|
11
11
|
},
|
|
12
12
|
"type": "module",
|
|
13
13
|
"main": "./esm/index.js",
|
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
import * as errors from "../models/errors/index.js";
|
|
23
23
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
24
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
+
import * as models from "../models/index.js";
|
|
25
26
|
import * as operations from "../models/operations/index.js";
|
|
26
27
|
import { APICall, APIPromise } from "../types/async.js";
|
|
27
28
|
import { Result } from "../types/fp.js";
|
|
@@ -35,7 +36,8 @@ import { Result } from "../types/fp.js";
|
|
|
35
36
|
*/
|
|
36
37
|
export function commandsStoreCommandPayload(
|
|
37
38
|
client: AlienManagerCore,
|
|
38
|
-
|
|
39
|
+
commandId: string,
|
|
40
|
+
storePayloadRequest: models.StorePayloadRequest,
|
|
39
41
|
options?: RequestOptions,
|
|
40
42
|
): APIPromise<
|
|
41
43
|
Result<
|
|
@@ -53,14 +55,16 @@ export function commandsStoreCommandPayload(
|
|
|
53
55
|
> {
|
|
54
56
|
return new APIPromise($do(
|
|
55
57
|
client,
|
|
56
|
-
|
|
58
|
+
commandId,
|
|
59
|
+
storePayloadRequest,
|
|
57
60
|
options,
|
|
58
61
|
));
|
|
59
62
|
}
|
|
60
63
|
|
|
61
64
|
async function $do(
|
|
62
65
|
client: AlienManagerCore,
|
|
63
|
-
|
|
66
|
+
commandId: string,
|
|
67
|
+
storePayloadRequest: models.StorePayloadRequest,
|
|
64
68
|
options?: RequestOptions,
|
|
65
69
|
): Promise<
|
|
66
70
|
[
|
|
@@ -79,8 +83,13 @@ async function $do(
|
|
|
79
83
|
APICall,
|
|
80
84
|
]
|
|
81
85
|
> {
|
|
86
|
+
const input: operations.StoreCommandPayloadRequest = {
|
|
87
|
+
commandId: commandId,
|
|
88
|
+
storePayloadRequest: storePayloadRequest,
|
|
89
|
+
};
|
|
90
|
+
|
|
82
91
|
const parsed = safeParse(
|
|
83
|
-
|
|
92
|
+
input,
|
|
84
93
|
(value) =>
|
|
85
94
|
operations.StoreCommandPayloadRequest$outboundSchema.parse(value),
|
|
86
95
|
"Input validation failed",
|
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
import * as errors from "../models/errors/index.js";
|
|
23
23
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
24
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
+
import * as models from "../models/index.js";
|
|
25
26
|
import * as operations from "../models/operations/index.js";
|
|
26
27
|
import { APICall, APIPromise } from "../types/async.js";
|
|
27
28
|
import { Result } from "../types/fp.js";
|
|
@@ -31,7 +32,8 @@ import { Result } from "../types/fp.js";
|
|
|
31
32
|
*/
|
|
32
33
|
export function commandsSubmitResponse(
|
|
33
34
|
client: AlienManagerCore,
|
|
34
|
-
|
|
35
|
+
commandId: string,
|
|
36
|
+
commandResponse: models.CommandResponse,
|
|
35
37
|
options?: RequestOptions,
|
|
36
38
|
): APIPromise<
|
|
37
39
|
Result<
|
|
@@ -49,14 +51,16 @@ export function commandsSubmitResponse(
|
|
|
49
51
|
> {
|
|
50
52
|
return new APIPromise($do(
|
|
51
53
|
client,
|
|
52
|
-
|
|
54
|
+
commandId,
|
|
55
|
+
commandResponse,
|
|
53
56
|
options,
|
|
54
57
|
));
|
|
55
58
|
}
|
|
56
59
|
|
|
57
60
|
async function $do(
|
|
58
61
|
client: AlienManagerCore,
|
|
59
|
-
|
|
62
|
+
commandId: string,
|
|
63
|
+
commandResponse: models.CommandResponse,
|
|
60
64
|
options?: RequestOptions,
|
|
61
65
|
): Promise<
|
|
62
66
|
[
|
|
@@ -75,8 +79,13 @@ async function $do(
|
|
|
75
79
|
APICall,
|
|
76
80
|
]
|
|
77
81
|
> {
|
|
82
|
+
const input: operations.SubmitResponseRequest = {
|
|
83
|
+
commandId: commandId,
|
|
84
|
+
commandResponse: commandResponse,
|
|
85
|
+
};
|
|
86
|
+
|
|
78
87
|
const parsed = safeParse(
|
|
79
|
-
|
|
88
|
+
input,
|
|
80
89
|
(value) => operations.SubmitResponseRequest$outboundSchema.parse(value),
|
|
81
90
|
"Input validation failed",
|
|
82
91
|
);
|
|
@@ -31,7 +31,8 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
*/
|
|
32
32
|
export function commandsUploadComplete(
|
|
33
33
|
client: AlienManagerCore,
|
|
34
|
-
|
|
34
|
+
commandId: string,
|
|
35
|
+
uploadCompleteRequest: models.UploadCompleteRequest,
|
|
35
36
|
options?: RequestOptions,
|
|
36
37
|
): APIPromise<
|
|
37
38
|
Result<
|
|
@@ -49,14 +50,16 @@ export function commandsUploadComplete(
|
|
|
49
50
|
> {
|
|
50
51
|
return new APIPromise($do(
|
|
51
52
|
client,
|
|
52
|
-
|
|
53
|
+
commandId,
|
|
54
|
+
uploadCompleteRequest,
|
|
53
55
|
options,
|
|
54
56
|
));
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
async function $do(
|
|
58
60
|
client: AlienManagerCore,
|
|
59
|
-
|
|
61
|
+
commandId: string,
|
|
62
|
+
uploadCompleteRequest: models.UploadCompleteRequest,
|
|
60
63
|
options?: RequestOptions,
|
|
61
64
|
): Promise<
|
|
62
65
|
[
|
|
@@ -75,8 +78,13 @@ async function $do(
|
|
|
75
78
|
APICall,
|
|
76
79
|
]
|
|
77
80
|
> {
|
|
81
|
+
const input: operations.UploadCompleteRequest = {
|
|
82
|
+
commandId: commandId,
|
|
83
|
+
uploadCompleteRequest: uploadCompleteRequest,
|
|
84
|
+
};
|
|
85
|
+
|
|
78
86
|
const parsed = safeParse(
|
|
79
|
-
|
|
87
|
+
input,
|
|
80
88
|
(value) => operations.UploadCompleteRequest$outboundSchema.parse(value),
|
|
81
89
|
"Input validation failed",
|
|
82
90
|
);
|
|
@@ -27,7 +27,8 @@ import { Result } from "../types/fp.js";
|
|
|
27
27
|
|
|
28
28
|
export function deploymentsDeleteDeployment(
|
|
29
29
|
client: AlienManagerCore,
|
|
30
|
-
|
|
30
|
+
id: string,
|
|
31
|
+
deleteDeploymentRequest: models.DeleteDeploymentRequest,
|
|
31
32
|
options?: RequestOptions,
|
|
32
33
|
): APIPromise<
|
|
33
34
|
Result<
|
|
@@ -44,14 +45,16 @@ export function deploymentsDeleteDeployment(
|
|
|
44
45
|
> {
|
|
45
46
|
return new APIPromise($do(
|
|
46
47
|
client,
|
|
47
|
-
|
|
48
|
+
id,
|
|
49
|
+
deleteDeploymentRequest,
|
|
48
50
|
options,
|
|
49
51
|
));
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
async function $do(
|
|
53
55
|
client: AlienManagerCore,
|
|
54
|
-
|
|
56
|
+
id: string,
|
|
57
|
+
deleteDeploymentRequest: models.DeleteDeploymentRequest,
|
|
55
58
|
options?: RequestOptions,
|
|
56
59
|
): Promise<
|
|
57
60
|
[
|
|
@@ -69,8 +72,13 @@ async function $do(
|
|
|
69
72
|
APICall,
|
|
70
73
|
]
|
|
71
74
|
> {
|
|
75
|
+
const input: operations.DeleteDeploymentRequest = {
|
|
76
|
+
id: id,
|
|
77
|
+
deleteDeploymentRequest: deleteDeploymentRequest,
|
|
78
|
+
};
|
|
79
|
+
|
|
72
80
|
const parsed = safeParse(
|
|
73
|
-
|
|
81
|
+
input,
|
|
74
82
|
(value) => operations.DeleteDeploymentRequest$outboundSchema.parse(value),
|
|
75
83
|
"Input validation failed",
|
|
76
84
|
);
|
|
@@ -27,7 +27,8 @@ import { Result } from "../types/fp.js";
|
|
|
27
27
|
|
|
28
28
|
export function deploymentsImportDeploymentStatus(
|
|
29
29
|
client: AlienManagerCore,
|
|
30
|
-
|
|
30
|
+
id: string,
|
|
31
|
+
statusReport: models.StatusReport,
|
|
31
32
|
options?: RequestOptions,
|
|
32
33
|
): APIPromise<
|
|
33
34
|
Result<
|
|
@@ -44,14 +45,16 @@ export function deploymentsImportDeploymentStatus(
|
|
|
44
45
|
> {
|
|
45
46
|
return new APIPromise($do(
|
|
46
47
|
client,
|
|
47
|
-
|
|
48
|
+
id,
|
|
49
|
+
statusReport,
|
|
48
50
|
options,
|
|
49
51
|
));
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
async function $do(
|
|
53
55
|
client: AlienManagerCore,
|
|
54
|
-
|
|
56
|
+
id: string,
|
|
57
|
+
statusReport: models.StatusReport,
|
|
55
58
|
options?: RequestOptions,
|
|
56
59
|
): Promise<
|
|
57
60
|
[
|
|
@@ -69,8 +72,13 @@ async function $do(
|
|
|
69
72
|
APICall,
|
|
70
73
|
]
|
|
71
74
|
> {
|
|
75
|
+
const input: operations.ImportDeploymentStatusRequest = {
|
|
76
|
+
id: id,
|
|
77
|
+
statusReport: statusReport,
|
|
78
|
+
};
|
|
79
|
+
|
|
72
80
|
const parsed = safeParse(
|
|
73
|
-
|
|
81
|
+
input,
|
|
74
82
|
(value) =>
|
|
75
83
|
operations.ImportDeploymentStatusRequest$outboundSchema.parse(value),
|
|
76
84
|
"Input validation failed",
|
|
@@ -27,7 +27,8 @@ import { Result } from "../types/fp.js";
|
|
|
27
27
|
|
|
28
28
|
export function deploymentsSetDeploymentChannel(
|
|
29
29
|
client: AlienManagerCore,
|
|
30
|
-
|
|
30
|
+
id: string,
|
|
31
|
+
setDeploymentChannelRequest: models.SetDeploymentChannelRequest,
|
|
31
32
|
options?: RequestOptions,
|
|
32
33
|
): APIPromise<
|
|
33
34
|
Result<
|
|
@@ -44,14 +45,16 @@ export function deploymentsSetDeploymentChannel(
|
|
|
44
45
|
> {
|
|
45
46
|
return new APIPromise($do(
|
|
46
47
|
client,
|
|
47
|
-
|
|
48
|
+
id,
|
|
49
|
+
setDeploymentChannelRequest,
|
|
48
50
|
options,
|
|
49
51
|
));
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
async function $do(
|
|
53
55
|
client: AlienManagerCore,
|
|
54
|
-
|
|
56
|
+
id: string,
|
|
57
|
+
setDeploymentChannelRequest: models.SetDeploymentChannelRequest,
|
|
55
58
|
options?: RequestOptions,
|
|
56
59
|
): Promise<
|
|
57
60
|
[
|
|
@@ -69,8 +72,13 @@ async function $do(
|
|
|
69
72
|
APICall,
|
|
70
73
|
]
|
|
71
74
|
> {
|
|
75
|
+
const input: operations.SetDeploymentChannelRequest = {
|
|
76
|
+
id: id,
|
|
77
|
+
setDeploymentChannelRequest: setDeploymentChannelRequest,
|
|
78
|
+
};
|
|
79
|
+
|
|
72
80
|
const parsed = safeParse(
|
|
73
|
-
|
|
81
|
+
input,
|
|
74
82
|
(value) =>
|
|
75
83
|
operations.SetDeploymentChannelRequest$outboundSchema.parse(value),
|
|
76
84
|
"Input validation failed",
|
|
@@ -27,7 +27,8 @@ import { Result } from "../types/fp.js";
|
|
|
27
27
|
|
|
28
28
|
export function deploymentsSetDeploymentPin(
|
|
29
29
|
client: AlienManagerCore,
|
|
30
|
-
|
|
30
|
+
id: string,
|
|
31
|
+
setDeploymentPinRequest: models.SetDeploymentPinRequest,
|
|
31
32
|
options?: RequestOptions,
|
|
32
33
|
): APIPromise<
|
|
33
34
|
Result<
|
|
@@ -44,14 +45,16 @@ export function deploymentsSetDeploymentPin(
|
|
|
44
45
|
> {
|
|
45
46
|
return new APIPromise($do(
|
|
46
47
|
client,
|
|
47
|
-
|
|
48
|
+
id,
|
|
49
|
+
setDeploymentPinRequest,
|
|
48
50
|
options,
|
|
49
51
|
));
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
async function $do(
|
|
53
55
|
client: AlienManagerCore,
|
|
54
|
-
|
|
56
|
+
id: string,
|
|
57
|
+
setDeploymentPinRequest: models.SetDeploymentPinRequest,
|
|
55
58
|
options?: RequestOptions,
|
|
56
59
|
): Promise<
|
|
57
60
|
[
|
|
@@ -69,8 +72,13 @@ async function $do(
|
|
|
69
72
|
APICall,
|
|
70
73
|
]
|
|
71
74
|
> {
|
|
75
|
+
const input: operations.SetDeploymentPinRequest = {
|
|
76
|
+
id: id,
|
|
77
|
+
setDeploymentPinRequest: setDeploymentPinRequest,
|
|
78
|
+
};
|
|
79
|
+
|
|
72
80
|
const parsed = safeParse(
|
|
73
|
-
|
|
81
|
+
input,
|
|
74
82
|
(value) => operations.SetDeploymentPinRequest$outboundSchema.parse(value),
|
|
75
83
|
"Input validation failed",
|
|
76
84
|
);
|
|
@@ -27,7 +27,8 @@ import { Result } from "../types/fp.js";
|
|
|
27
27
|
|
|
28
28
|
export function deploymentsSignDeploymentBundle(
|
|
29
29
|
client: AlienManagerCore,
|
|
30
|
-
|
|
30
|
+
id: string,
|
|
31
|
+
bundleSignatureRequest: models.BundleSignatureRequest,
|
|
31
32
|
options?: RequestOptions,
|
|
32
33
|
): APIPromise<
|
|
33
34
|
Result<
|
|
@@ -44,14 +45,16 @@ export function deploymentsSignDeploymentBundle(
|
|
|
44
45
|
> {
|
|
45
46
|
return new APIPromise($do(
|
|
46
47
|
client,
|
|
47
|
-
|
|
48
|
+
id,
|
|
49
|
+
bundleSignatureRequest,
|
|
48
50
|
options,
|
|
49
51
|
));
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
async function $do(
|
|
53
55
|
client: AlienManagerCore,
|
|
54
|
-
|
|
56
|
+
id: string,
|
|
57
|
+
bundleSignatureRequest: models.BundleSignatureRequest,
|
|
55
58
|
options?: RequestOptions,
|
|
56
59
|
): Promise<
|
|
57
60
|
[
|
|
@@ -69,8 +72,13 @@ async function $do(
|
|
|
69
72
|
APICall,
|
|
70
73
|
]
|
|
71
74
|
> {
|
|
75
|
+
const input: operations.SignDeploymentBundleRequest = {
|
|
76
|
+
id: id,
|
|
77
|
+
bundleSignatureRequest: bundleSignatureRequest,
|
|
78
|
+
};
|
|
79
|
+
|
|
72
80
|
const parsed = safeParse(
|
|
73
|
-
|
|
81
|
+
input,
|
|
74
82
|
(value) =>
|
|
75
83
|
operations.SignDeploymentBundleRequest$outboundSchema.parse(value),
|
|
76
84
|
"Input validation failed",
|
|
@@ -27,7 +27,8 @@ import { Result } from "../types/fp.js";
|
|
|
27
27
|
|
|
28
28
|
export function releasesPromoteManagerRelease(
|
|
29
29
|
client: AlienManagerCore,
|
|
30
|
-
|
|
30
|
+
id: string,
|
|
31
|
+
promoteReleaseRequest: models.PromoteReleaseRequest,
|
|
31
32
|
options?: RequestOptions,
|
|
32
33
|
): APIPromise<
|
|
33
34
|
Result<
|
|
@@ -44,14 +45,16 @@ export function releasesPromoteManagerRelease(
|
|
|
44
45
|
> {
|
|
45
46
|
return new APIPromise($do(
|
|
46
47
|
client,
|
|
47
|
-
|
|
48
|
+
id,
|
|
49
|
+
promoteReleaseRequest,
|
|
48
50
|
options,
|
|
49
51
|
));
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
async function $do(
|
|
53
55
|
client: AlienManagerCore,
|
|
54
|
-
|
|
56
|
+
id: string,
|
|
57
|
+
promoteReleaseRequest: models.PromoteReleaseRequest,
|
|
55
58
|
options?: RequestOptions,
|
|
56
59
|
): Promise<
|
|
57
60
|
[
|
|
@@ -69,8 +72,13 @@ async function $do(
|
|
|
69
72
|
APICall,
|
|
70
73
|
]
|
|
71
74
|
> {
|
|
75
|
+
const input: operations.PromoteManagerReleaseRequest = {
|
|
76
|
+
id: id,
|
|
77
|
+
promoteReleaseRequest: promoteReleaseRequest,
|
|
78
|
+
};
|
|
79
|
+
|
|
72
80
|
const parsed = safeParse(
|
|
73
|
-
|
|
81
|
+
input,
|
|
74
82
|
(value) =>
|
|
75
83
|
operations.PromoteManagerReleaseRequest$outboundSchema.parse(value),
|
|
76
84
|
"Input validation failed",
|
package/src/lib/config.ts
CHANGED
|
@@ -58,8 +58,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
58
58
|
export const SDK_METADATA = {
|
|
59
59
|
language: "typescript",
|
|
60
60
|
openapiDocVersion: "1.0.0",
|
|
61
|
-
sdkVersion: "3.3.
|
|
61
|
+
sdkVersion: "3.3.32",
|
|
62
62
|
genVersion: "2.788.15",
|
|
63
63
|
userAgent:
|
|
64
|
-
"speakeasy-sdk/typescript 3.3.
|
|
64
|
+
"speakeasy-sdk/typescript 3.3.32 2.788.15 1.0.0 @alienplatform/manager-api",
|
|
65
65
|
} as const;
|
|
@@ -10,9 +10,20 @@ import {
|
|
|
10
10
|
AcquiredDeploymentResponse$inboundSchema,
|
|
11
11
|
} from "./acquireddeploymentresponse.js";
|
|
12
12
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
13
|
+
import {
|
|
14
|
+
UnacquiredDeployment,
|
|
15
|
+
UnacquiredDeployment$inboundSchema,
|
|
16
|
+
} from "./unacquireddeployment.js";
|
|
13
17
|
|
|
14
18
|
export type AcquireResponse = {
|
|
15
19
|
deployments: Array<AcquiredDeploymentResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Bounded reasons for explicitly requested deployments that were not acquired.
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* Empty for discovery-style batch acquisition.
|
|
25
|
+
*/
|
|
26
|
+
notAcquired?: Array<UnacquiredDeployment> | undefined;
|
|
16
27
|
};
|
|
17
28
|
|
|
18
29
|
/** @internal */
|
|
@@ -21,6 +32,7 @@ export const AcquireResponse$inboundSchema: z.ZodType<
|
|
|
21
32
|
unknown
|
|
22
33
|
> = z.object({
|
|
23
34
|
deployments: z.array(AcquiredDeploymentResponse$inboundSchema),
|
|
35
|
+
notAcquired: z.array(UnacquiredDeployment$inboundSchema).optional(),
|
|
24
36
|
});
|
|
25
37
|
|
|
26
38
|
export function acquireResponseFromJSON(
|
|
@@ -23,6 +23,11 @@ import {
|
|
|
23
23
|
ObservedInventoryBatch$Outbound,
|
|
24
24
|
ObservedInventoryBatch$outboundSchema,
|
|
25
25
|
} from "./observedinventorybatch.js";
|
|
26
|
+
import {
|
|
27
|
+
OperationsConfig,
|
|
28
|
+
OperationsConfig$Outbound,
|
|
29
|
+
OperationsConfig$outboundSchema,
|
|
30
|
+
} from "./operationsconfig.js";
|
|
26
31
|
import {
|
|
27
32
|
OperationsReport,
|
|
28
33
|
OperationsReport$Outbound,
|
|
@@ -77,6 +82,7 @@ export type AgentSyncRequest = {
|
|
|
77
82
|
* Absent for older Operators. This report has no secret values.
|
|
78
83
|
*/
|
|
79
84
|
dynamicContainers?: Array<DynamicContainerReport> | null | undefined;
|
|
85
|
+
operationsConfig?: OperationsConfig | null | undefined;
|
|
80
86
|
operatorImage?: OperatorImageReport | null | undefined;
|
|
81
87
|
};
|
|
82
88
|
|
|
@@ -95,6 +101,7 @@ export type AgentSyncRequest$Outbound = {
|
|
|
95
101
|
supportsTunnels?: boolean | undefined;
|
|
96
102
|
application?: ObservedApplicationReport$Outbound | null | undefined;
|
|
97
103
|
dynamicContainers?: Array<DynamicContainerReport$Outbound> | null | undefined;
|
|
104
|
+
operationsConfig?: OperationsConfig$Outbound | null | undefined;
|
|
98
105
|
operatorImage?: OperatorImageReport$Outbound | null | undefined;
|
|
99
106
|
};
|
|
100
107
|
|
|
@@ -118,6 +125,7 @@ export const AgentSyncRequest$outboundSchema: z.ZodType<
|
|
|
118
125
|
application: z.nullable(ObservedApplicationReport$outboundSchema).optional(),
|
|
119
126
|
dynamicContainers: z.nullable(z.array(DynamicContainerReport$outboundSchema))
|
|
120
127
|
.optional(),
|
|
128
|
+
operationsConfig: z.nullable(OperationsConfig$outboundSchema).optional(),
|
|
121
129
|
operatorImage: z.nullable(OperatorImageReport$outboundSchema).optional(),
|
|
122
130
|
});
|
|
123
131
|
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
SecretReference,
|
|
11
|
+
SecretReference$inboundSchema,
|
|
12
|
+
SecretReference$Outbound,
|
|
13
|
+
SecretReference$outboundSchema,
|
|
14
|
+
} from "./secretreference.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* A Kubernetes Secret reference (must come before Expression)
|
|
18
|
+
*/
|
|
19
|
+
export type BindingValueOptionString = {
|
|
20
|
+
/**
|
|
21
|
+
* Reference to a Kubernetes Secret
|
|
22
|
+
*/
|
|
23
|
+
secretRef: SecretReference;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Represents a value that can be either a concrete value, a template expression,
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* or a reference to a Kubernetes Secret
|
|
31
|
+
*/
|
|
32
|
+
export type BindingValueOptionStringUnion =
|
|
33
|
+
| BindingValueOptionString
|
|
34
|
+
| string
|
|
35
|
+
| any;
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const BindingValueOptionString$inboundSchema: z.ZodType<
|
|
39
|
+
BindingValueOptionString,
|
|
40
|
+
unknown
|
|
41
|
+
> = z.object({
|
|
42
|
+
secretRef: SecretReference$inboundSchema,
|
|
43
|
+
});
|
|
44
|
+
/** @internal */
|
|
45
|
+
export type BindingValueOptionString$Outbound = {
|
|
46
|
+
secretRef: SecretReference$Outbound;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const BindingValueOptionString$outboundSchema: z.ZodType<
|
|
51
|
+
BindingValueOptionString$Outbound,
|
|
52
|
+
BindingValueOptionString
|
|
53
|
+
> = z.object({
|
|
54
|
+
secretRef: SecretReference$outboundSchema,
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
export function bindingValueOptionStringToJSON(
|
|
58
|
+
bindingValueOptionString: BindingValueOptionString,
|
|
59
|
+
): string {
|
|
60
|
+
return JSON.stringify(
|
|
61
|
+
BindingValueOptionString$outboundSchema.parse(bindingValueOptionString),
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
export function bindingValueOptionStringFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<BindingValueOptionString, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) => BindingValueOptionString$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'BindingValueOptionString' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export const BindingValueOptionStringUnion$inboundSchema: z.ZodType<
|
|
76
|
+
BindingValueOptionStringUnion,
|
|
77
|
+
unknown
|
|
78
|
+
> = z.union([
|
|
79
|
+
z.lazy(() => BindingValueOptionString$inboundSchema),
|
|
80
|
+
z.string(),
|
|
81
|
+
z.any(),
|
|
82
|
+
]);
|
|
83
|
+
/** @internal */
|
|
84
|
+
export type BindingValueOptionStringUnion$Outbound =
|
|
85
|
+
| BindingValueOptionString$Outbound
|
|
86
|
+
| string
|
|
87
|
+
| any;
|
|
88
|
+
|
|
89
|
+
/** @internal */
|
|
90
|
+
export const BindingValueOptionStringUnion$outboundSchema: z.ZodType<
|
|
91
|
+
BindingValueOptionStringUnion$Outbound,
|
|
92
|
+
BindingValueOptionStringUnion
|
|
93
|
+
> = z.union([
|
|
94
|
+
z.lazy(() => BindingValueOptionString$outboundSchema),
|
|
95
|
+
z.string(),
|
|
96
|
+
z.any(),
|
|
97
|
+
]);
|
|
98
|
+
|
|
99
|
+
export function bindingValueOptionStringUnionToJSON(
|
|
100
|
+
bindingValueOptionStringUnion: BindingValueOptionStringUnion,
|
|
101
|
+
): string {
|
|
102
|
+
return JSON.stringify(
|
|
103
|
+
BindingValueOptionStringUnion$outboundSchema.parse(
|
|
104
|
+
bindingValueOptionStringUnion,
|
|
105
|
+
),
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
export function bindingValueOptionStringUnionFromJSON(
|
|
109
|
+
jsonString: string,
|
|
110
|
+
): SafeParseResult<BindingValueOptionStringUnion, SDKValidationError> {
|
|
111
|
+
return safeParse(
|
|
112
|
+
jsonString,
|
|
113
|
+
(x) => BindingValueOptionStringUnion$inboundSchema.parse(JSON.parse(x)),
|
|
114
|
+
`Failed to parse 'BindingValueOptionStringUnion' from JSON`,
|
|
115
|
+
);
|
|
116
|
+
}
|