@alienplatform/manager-api 3.3.64 → 3.3.66
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 +29 -4
- package/esm/funcs/{tokensCreateToken.d.ts → bindingsCreateSandbox.d.ts} +3 -5
- package/esm/funcs/bindingsCreateSandbox.d.ts.map +1 -0
- package/esm/funcs/{tokensCreateToken.js → bindingsCreateSandbox.js} +12 -10
- package/esm/funcs/bindingsCreateSandbox.js.map +1 -0
- package/esm/funcs/identityIssueSetupCredential.d.ts +20 -0
- package/esm/funcs/identityIssueSetupCredential.d.ts.map +1 -0
- package/esm/funcs/identityIssueSetupCredential.js +86 -0
- package/esm/funcs/identityIssueSetupCredential.js.map +1 -0
- package/esm/funcs/signingAddConfigStatement.d.ts +11 -0
- package/esm/funcs/signingAddConfigStatement.d.ts.map +1 -0
- package/esm/funcs/signingAddConfigStatement.js +83 -0
- package/esm/funcs/signingAddConfigStatement.js.map +1 -0
- package/esm/funcs/signingAddSignerList.d.ts +11 -0
- package/esm/funcs/signingAddSignerList.d.ts.map +1 -0
- package/esm/funcs/signingAddSignerList.js +83 -0
- package/esm/funcs/signingAddSignerList.js.map +1 -0
- package/esm/funcs/signingCreatePendingChange.d.ts +11 -0
- package/esm/funcs/signingCreatePendingChange.d.ts.map +1 -0
- package/esm/funcs/signingCreatePendingChange.js +85 -0
- package/esm/funcs/signingCreatePendingChange.js.map +1 -0
- package/esm/funcs/signingGetPendingChange.d.ts +12 -0
- package/esm/funcs/signingGetPendingChange.d.ts.map +1 -0
- package/esm/funcs/signingGetPendingChange.js +78 -0
- package/esm/funcs/signingGetPendingChange.js.map +1 -0
- package/esm/funcs/signingGetProjectSigning.d.ts +12 -0
- package/esm/funcs/signingGetProjectSigning.d.ts.map +1 -0
- package/esm/funcs/signingGetProjectSigning.js +78 -0
- package/esm/funcs/signingGetProjectSigning.js.map +1 -0
- package/esm/funcs/signingListConfigStatements.d.ts +12 -0
- package/esm/funcs/signingListConfigStatements.d.ts.map +1 -0
- package/esm/funcs/signingListConfigStatements.js +78 -0
- package/esm/funcs/signingListConfigStatements.js.map +1 -0
- package/esm/funcs/signingListPendingChanges.d.ts +12 -0
- package/esm/funcs/signingListPendingChanges.d.ts.map +1 -0
- package/esm/funcs/signingListPendingChanges.js +82 -0
- package/esm/funcs/signingListPendingChanges.js.map +1 -0
- package/esm/funcs/signingListSignerLists.d.ts +12 -0
- package/esm/funcs/signingListSignerLists.d.ts.map +1 -0
- package/esm/funcs/signingListSignerLists.js +78 -0
- package/esm/funcs/signingListSignerLists.js.map +1 -0
- package/esm/funcs/signingResolvePendingChange.d.ts +11 -0
- package/esm/funcs/signingResolvePendingChange.d.ts.map +1 -0
- package/esm/funcs/signingResolvePendingChange.js +85 -0
- package/esm/funcs/signingResolvePendingChange.js.map +1 -0
- package/esm/funcs/valuesExportValues.d.ts +14 -0
- package/esm/funcs/valuesExportValues.d.ts.map +1 -0
- package/esm/funcs/valuesExportValues.js +88 -0
- package/esm/funcs/valuesExportValues.js.map +1 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/agentsyncrequest.d.ts +3 -3
- package/esm/models/agentsyncrequest.d.ts.map +1 -1
- package/esm/models/agentsyncrequest.js +1 -1
- package/esm/models/agentsyncrequest.js.map +1 -1
- package/esm/models/agentsyncresponse.d.ts +2 -7
- package/esm/models/agentsyncresponse.d.ts.map +1 -1
- package/esm/models/agentsyncresponse.js +2 -1
- package/esm/models/agentsyncresponse.js.map +1 -1
- package/esm/models/configstatementsresponse.d.ts +17 -0
- package/esm/models/configstatementsresponse.d.ts.map +1 -0
- package/esm/models/configstatementsresponse.js +14 -0
- package/esm/models/configstatementsresponse.js.map +1 -0
- package/esm/models/creatependingchangerequest.d.ts +38 -0
- package/esm/models/creatependingchangerequest.d.ts.map +1 -0
- package/esm/models/creatependingchangerequest.js +14 -0
- package/esm/models/creatependingchangerequest.js.map +1 -0
- package/esm/models/createreleaserequest.d.ts +31 -0
- package/esm/models/createreleaserequest.d.ts.map +1 -1
- package/esm/models/createreleaserequest.js +4 -0
- package/esm/models/createreleaserequest.js.map +1 -1
- package/esm/models/createremotesandboxrequest.d.ts +38 -0
- package/esm/models/createremotesandboxrequest.d.ts.map +1 -0
- package/esm/models/createremotesandboxrequest.js +15 -0
- package/esm/models/createremotesandboxrequest.js.map +1 -0
- package/esm/models/deploymentresponse.d.ts +14 -0
- package/esm/models/deploymentresponse.d.ts.map +1 -1
- package/esm/models/deploymentresponse.js +2 -0
- package/esm/models/deploymentresponse.js.map +1 -1
- package/esm/models/exportvaluesrequest.d.ts +25 -0
- package/esm/models/exportvaluesrequest.d.ts.map +1 -0
- package/esm/models/exportvaluesrequest.js +14 -0
- package/esm/models/exportvaluesrequest.js.map +1 -0
- package/esm/models/index.d.ts +19 -3
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +19 -3
- package/esm/models/index.js.map +1 -1
- package/esm/models/issuedsetupcredential.d.ts +17 -0
- package/esm/models/issuedsetupcredential.d.ts.map +1 -0
- package/esm/models/issuedsetupcredential.js +14 -0
- package/esm/models/issuedsetupcredential.js.map +1 -0
- package/esm/models/managercapabilities.d.ts +4 -1
- package/esm/models/managercapabilities.d.ts.map +1 -1
- package/esm/models/managercapabilities.js.map +1 -1
- package/esm/models/operations/addconfigstatement.d.ts +18 -0
- package/esm/models/operations/addconfigstatement.d.ts.map +1 -0
- package/esm/models/operations/addconfigstatement.js +19 -0
- package/esm/models/operations/addconfigstatement.js.map +1 -0
- package/esm/models/operations/addsignerlist.d.ts +18 -0
- package/esm/models/operations/addsignerlist.d.ts.map +1 -0
- package/esm/models/operations/addsignerlist.js +19 -0
- package/esm/models/operations/addsignerlist.js.map +1 -0
- package/esm/models/operations/creatependingchange.d.ts +18 -0
- package/esm/models/operations/creatependingchange.d.ts.map +1 -0
- package/esm/models/operations/creatependingchange.js +19 -0
- package/esm/models/operations/creatependingchange.js.map +1 -0
- package/esm/models/operations/exportvalues.d.ts +18 -0
- package/esm/models/operations/exportvalues.d.ts.map +1 -0
- package/esm/models/operations/exportvalues.js +19 -0
- package/esm/models/operations/exportvalues.js.map +1 -0
- package/esm/models/operations/getpendingchange.d.ts +15 -0
- package/esm/models/operations/getpendingchange.d.ts.map +1 -0
- package/esm/models/operations/getpendingchange.js +12 -0
- package/esm/models/operations/getpendingchange.js.map +1 -0
- package/esm/models/operations/getprojectsigning.d.ts +15 -0
- package/esm/models/operations/getprojectsigning.d.ts.map +1 -0
- package/esm/models/operations/getprojectsigning.js +12 -0
- package/esm/models/operations/getprojectsigning.js.map +1 -0
- package/esm/models/operations/index.d.ts +11 -0
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +11 -0
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/issuesetupcredential.d.ts +15 -0
- package/esm/models/operations/issuesetupcredential.d.ts.map +1 -0
- package/esm/models/operations/issuesetupcredential.js +12 -0
- package/esm/models/operations/issuesetupcredential.js.map +1 -0
- package/esm/models/operations/listconfigstatements.d.ts +15 -0
- package/esm/models/operations/listconfigstatements.d.ts.map +1 -0
- package/esm/models/operations/listconfigstatements.js +12 -0
- package/esm/models/operations/listconfigstatements.js.map +1 -0
- package/esm/models/operations/listpendingchanges.d.ts +21 -0
- package/esm/models/operations/listpendingchanges.d.ts.map +1 -0
- package/esm/models/operations/listpendingchanges.js +14 -0
- package/esm/models/operations/listpendingchanges.js.map +1 -0
- package/esm/models/operations/listsignerlists.d.ts +15 -0
- package/esm/models/operations/listsignerlists.d.ts.map +1 -0
- package/esm/models/operations/listsignerlists.js +12 -0
- package/esm/models/operations/listsignerlists.js.map +1 -0
- package/esm/models/operations/resolvependingchange.d.ts +18 -0
- package/esm/models/operations/resolvependingchange.d.ts.map +1 -0
- package/esm/models/operations/resolvependingchange.js +19 -0
- package/esm/models/operations/resolvependingchange.js.map +1 -0
- package/esm/models/pendingchangeresponse.d.ts +43 -0
- package/esm/models/pendingchangeresponse.d.ts.map +1 -0
- package/esm/models/pendingchangeresponse.js +23 -0
- package/esm/models/pendingchangeresponse.js.map +1 -0
- package/esm/models/pendingchangesresponse.d.ts +11 -0
- package/esm/models/pendingchangesresponse.d.ts.map +1 -0
- package/esm/models/pendingchangesresponse.js +14 -0
- package/esm/models/pendingchangesresponse.js.map +1 -0
- package/esm/models/pendingchangestatus.d.ts +19 -0
- package/esm/models/pendingchangestatus.d.ts.map +1 -0
- package/esm/models/pendingchangestatus.js +17 -0
- package/esm/models/pendingchangestatus.js.map +1 -0
- package/esm/models/projectsigningresponse.d.ts +21 -0
- package/esm/models/projectsigningresponse.d.ts.map +1 -0
- package/esm/models/projectsigningresponse.js +13 -0
- package/esm/models/projectsigningresponse.js.map +1 -0
- package/esm/models/releaseresponse.d.ts +20 -0
- package/esm/models/releaseresponse.d.ts.map +1 -1
- package/esm/models/releaseresponse.js +6 -0
- package/esm/models/releaseresponse.js.map +1 -1
- package/esm/models/releasesigner.d.ts +18 -0
- package/esm/models/releasesigner.d.ts.map +1 -0
- package/esm/models/releasesigner.js +16 -0
- package/esm/models/releasesigner.js.map +1 -0
- package/esm/models/releasesigning.d.ts +27 -0
- package/esm/models/releasesigning.d.ts.map +1 -0
- package/esm/models/releasesigning.js +15 -0
- package/esm/models/releasesigning.js.map +1 -0
- package/esm/models/remoteazuresandboxbinding.d.ts +8 -0
- package/esm/models/remoteazuresandboxbinding.d.ts.map +1 -1
- package/esm/models/remoteazuresandboxbinding.js +1 -0
- package/esm/models/remoteazuresandboxbinding.js.map +1 -1
- package/esm/models/resolutionstatus.d.ts +16 -0
- package/esm/models/resolutionstatus.d.ts.map +1 -0
- package/esm/models/resolutionstatus.js +14 -0
- package/esm/models/resolutionstatus.js.map +1 -0
- package/esm/models/resolvependingchangerequest.d.ts +24 -0
- package/esm/models/resolvependingchangerequest.d.ts.map +1 -0
- package/esm/models/resolvependingchangerequest.js +14 -0
- package/esm/models/resolvependingchangerequest.js.map +1 -0
- package/esm/models/runtimepurpose.d.ts +2 -15
- package/esm/models/runtimepurpose.d.ts.map +1 -1
- package/esm/models/runtimepurpose.js +0 -8
- package/esm/models/runtimepurpose.js.map +1 -1
- package/esm/models/signature.d.ts +28 -0
- package/esm/models/signature.d.ts.map +1 -0
- package/esm/models/signature.js +22 -0
- package/esm/models/signature.js.map +1 -0
- package/esm/models/signedstatement.d.ts +29 -0
- package/esm/models/signedstatement.d.ts.map +1 -0
- package/esm/models/signedstatement.js +23 -0
- package/esm/models/signedstatement.js.map +1 -0
- package/esm/models/signerlistsresponse.d.ts +14 -0
- package/esm/models/signerlistsresponse.d.ts.map +1 -0
- package/esm/models/signerlistsresponse.js +14 -0
- package/esm/models/signerlistsresponse.js.map +1 -0
- package/esm/models/signerliststored.d.ts +16 -0
- package/esm/models/signerliststored.d.ts.map +1 -0
- package/esm/models/signerliststored.js +13 -0
- package/esm/models/signerliststored.js.map +1 -0
- package/esm/models/stackimportrequest.d.ts +9 -0
- package/esm/models/stackimportrequest.d.ts.map +1 -1
- package/esm/models/stackimportrequest.js +1 -0
- package/esm/models/stackimportrequest.js.map +1 -1
- package/esm/models/stackimportresponse.d.ts +7 -0
- package/esm/models/stackimportresponse.d.ts.map +1 -1
- package/esm/models/stackimportresponse.js +1 -0
- package/esm/models/stackimportresponse.js.map +1 -1
- package/esm/models/stacksettings.d.ts +3 -0
- package/esm/models/stacksettings.d.ts.map +1 -1
- package/esm/models/stacksettings.js +3 -0
- package/esm/models/stacksettings.js.map +1 -1
- package/esm/models/stacksigning.d.ts +33 -0
- package/esm/models/stacksigning.d.ts.map +1 -0
- package/esm/models/stacksigning.js +23 -0
- package/esm/models/stacksigning.js.map +1 -0
- package/esm/models/statementrequest.d.ts +19 -0
- package/esm/models/statementrequest.d.ts.map +1 -0
- package/esm/models/statementrequest.js +13 -0
- package/esm/models/statementrequest.js.map +1 -0
- package/esm/sdk/bindings.d.ts +1 -0
- package/esm/sdk/bindings.d.ts.map +1 -1
- package/esm/sdk/bindings.js +4 -0
- package/esm/sdk/bindings.js.map +1 -1
- package/esm/sdk/identity.d.ts +9 -0
- package/esm/sdk/identity.d.ts.map +1 -1
- package/esm/sdk/identity.js +12 -0
- package/esm/sdk/identity.js.map +1 -1
- package/esm/sdk/sdk.d.ts +3 -0
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +4 -0
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/sdk/signing.d.ts +15 -0
- package/esm/sdk/signing.d.ts.map +1 -0
- package/esm/sdk/signing.js +44 -0
- package/esm/sdk/signing.js.map +1 -0
- package/esm/sdk/tokens.d.ts +0 -4
- package/esm/sdk/tokens.d.ts.map +1 -1
- package/esm/sdk/tokens.js +0 -7
- package/esm/sdk/tokens.js.map +1 -1
- package/esm/sdk/values.d.ts +4 -0
- package/esm/sdk/values.d.ts.map +1 -1
- package/esm/sdk/values.js +7 -0
- package/esm/sdk/values.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +3 -3
- package/src/funcs/{tokensCreateToken.ts → bindingsCreateSandbox.ts} +22 -15
- package/src/funcs/identityIssueSetupCredential.ts +170 -0
- package/src/funcs/signingAddConfigStatement.ts +171 -0
- package/src/funcs/signingAddSignerList.ts +170 -0
- package/src/funcs/signingCreatePendingChange.ts +173 -0
- package/src/funcs/signingGetPendingChange.ts +161 -0
- package/src/funcs/signingGetProjectSigning.ts +161 -0
- package/src/funcs/signingListConfigStatements.ts +162 -0
- package/src/funcs/signingListPendingChanges.ts +166 -0
- package/src/funcs/signingListSignerLists.ts +161 -0
- package/src/funcs/signingResolvePendingChange.ts +173 -0
- package/src/funcs/valuesExportValues.ts +175 -0
- package/src/lib/config.ts +2 -2
- package/src/models/agentsyncrequest.ts +4 -4
- package/src/models/agentsyncresponse.ts +6 -8
- package/src/models/configstatementsresponse.ts +40 -0
- package/src/models/creatependingchangerequest.ts +54 -0
- package/src/models/createreleaserequest.ts +26 -0
- package/src/models/createremotesandboxrequest.ts +51 -0
- package/src/models/deploymentresponse.ts +16 -0
- package/src/models/exportvaluesrequest.ts +45 -0
- package/src/models/index.ts +19 -3
- package/src/models/issuedsetupcredential.ts +38 -0
- package/src/models/managercapabilities.ts +4 -1
- package/src/models/operations/addconfigstatement.ts +42 -0
- package/src/models/operations/addsignerlist.ts +42 -0
- package/src/models/operations/creatependingchange.ts +42 -0
- package/src/models/operations/exportvalues.ts +42 -0
- package/src/models/operations/getpendingchange.ts +33 -0
- package/src/models/operations/getprojectsigning.ts +33 -0
- package/src/models/operations/index.ts +11 -0
- package/src/models/operations/issuesetupcredential.ts +35 -0
- package/src/models/operations/listconfigstatements.ts +35 -0
- package/src/models/operations/listpendingchanges.ts +40 -0
- package/src/models/operations/listsignerlists.ts +33 -0
- package/src/models/operations/resolvependingchange.ts +45 -0
- package/src/models/pendingchangeresponse.ts +73 -0
- package/src/models/pendingchangesresponse.ts +34 -0
- package/src/models/pendingchangestatus.ts +28 -0
- package/src/models/projectsigningresponse.ts +39 -0
- package/src/models/releaseresponse.ts +24 -0
- package/src/models/releasesigner.ts +38 -0
- package/src/models/releasesigning.ts +46 -0
- package/src/models/remoteazuresandboxbinding.ts +9 -0
- package/src/models/resolutionstatus.ts +23 -0
- package/src/models/resolvependingchangerequest.ts +48 -0
- package/src/models/runtimepurpose.ts +0 -33
- package/src/models/signature.ts +55 -0
- package/src/models/signedstatement.ts +66 -0
- package/src/models/signerlistsresponse.ts +37 -0
- package/src/models/signerliststored.ts +36 -0
- package/src/models/stackimportrequest.ts +10 -0
- package/src/models/stackimportresponse.ts +10 -0
- package/src/models/stacksettings.ts +10 -0
- package/src/models/stacksigning.ts +61 -0
- package/src/models/statementrequest.ts +41 -0
- package/src/sdk/bindings.ts +12 -0
- package/src/sdk/identity.ts +20 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/signing.ts +126 -0
- package/src/sdk/tokens.ts +0 -15
- package/src/sdk/values.ts +17 -0
- package/esm/funcs/tokensCreateToken.d.ts.map +0 -1
- package/esm/funcs/tokensCreateToken.js.map +0 -1
- package/esm/models/creatabletokentype.d.ts +0 -15
- package/esm/models/creatabletokentype.d.ts.map +0 -1
- package/esm/models/creatabletokentype.js +0 -13
- package/esm/models/creatabletokentype.js.map +0 -1
- package/esm/models/createdtokenresponse.d.ts +0 -19
- package/esm/models/createdtokenresponse.d.ts.map +0 -1
- package/esm/models/createdtokenresponse.js +0 -19
- package/esm/models/createdtokenresponse.js.map +0 -1
- package/esm/models/createtokenrequest.d.ts +0 -21
- package/esm/models/createtokenrequest.d.ts.map +0 -1
- package/esm/models/createtokenrequest.js +0 -14
- package/esm/models/createtokenrequest.js.map +0 -1
- package/src/models/creatabletokentype.ts +0 -22
- package/src/models/createdtokenresponse.ts +0 -45
- package/src/models/createtokenrequest.ts +0 -43
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { AlienManagerCore } from "../core.js";
|
|
6
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import { AlienManagerError } from "../models/errors/alienmanagererror.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
22
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
|
+
import * as models from "../models/index.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
|
|
28
|
+
export function signingListConfigStatements(
|
|
29
|
+
client: AlienManagerCore,
|
|
30
|
+
request: operations.ListConfigStatementsRequest,
|
|
31
|
+
options?: RequestOptions,
|
|
32
|
+
): APIPromise<
|
|
33
|
+
Result<
|
|
34
|
+
models.ConfigStatementsResponse,
|
|
35
|
+
| AlienManagerError
|
|
36
|
+
| ResponseValidationError
|
|
37
|
+
| ConnectionError
|
|
38
|
+
| RequestAbortedError
|
|
39
|
+
| RequestTimeoutError
|
|
40
|
+
| InvalidRequestError
|
|
41
|
+
| UnexpectedClientError
|
|
42
|
+
| SDKValidationError
|
|
43
|
+
>
|
|
44
|
+
> {
|
|
45
|
+
return new APIPromise($do(
|
|
46
|
+
client,
|
|
47
|
+
request,
|
|
48
|
+
options,
|
|
49
|
+
));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
async function $do(
|
|
53
|
+
client: AlienManagerCore,
|
|
54
|
+
request: operations.ListConfigStatementsRequest,
|
|
55
|
+
options?: RequestOptions,
|
|
56
|
+
): Promise<
|
|
57
|
+
[
|
|
58
|
+
Result<
|
|
59
|
+
models.ConfigStatementsResponse,
|
|
60
|
+
| AlienManagerError
|
|
61
|
+
| ResponseValidationError
|
|
62
|
+
| ConnectionError
|
|
63
|
+
| RequestAbortedError
|
|
64
|
+
| RequestTimeoutError
|
|
65
|
+
| InvalidRequestError
|
|
66
|
+
| UnexpectedClientError
|
|
67
|
+
| SDKValidationError
|
|
68
|
+
>,
|
|
69
|
+
APICall,
|
|
70
|
+
]
|
|
71
|
+
> {
|
|
72
|
+
const parsed = safeParse(
|
|
73
|
+
request,
|
|
74
|
+
(value) =>
|
|
75
|
+
operations.ListConfigStatementsRequest$outboundSchema.parse(value),
|
|
76
|
+
"Input validation failed",
|
|
77
|
+
);
|
|
78
|
+
if (!parsed.ok) {
|
|
79
|
+
return [parsed, { status: "invalid" }];
|
|
80
|
+
}
|
|
81
|
+
const payload = parsed.value;
|
|
82
|
+
const body = null;
|
|
83
|
+
|
|
84
|
+
const pathParams = {
|
|
85
|
+
id: encodeSimple("id", payload.id, {
|
|
86
|
+
explode: false,
|
|
87
|
+
charEncoding: "percent",
|
|
88
|
+
}),
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
const path = pathToFunc("/v1/deployments/{id}/config-statements")(pathParams);
|
|
92
|
+
|
|
93
|
+
const headers = new Headers(compactMap({
|
|
94
|
+
Accept: "application/json",
|
|
95
|
+
}));
|
|
96
|
+
|
|
97
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
98
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
99
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
100
|
+
|
|
101
|
+
const context = {
|
|
102
|
+
options: client._options,
|
|
103
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
104
|
+
operationID: "list_config_statements",
|
|
105
|
+
oAuth2Scopes: null,
|
|
106
|
+
|
|
107
|
+
resolvedSecurity: requestSecurity,
|
|
108
|
+
|
|
109
|
+
securitySource: client._options.bearer,
|
|
110
|
+
retryConfig: options?.retries
|
|
111
|
+
|| client._options.retryConfig
|
|
112
|
+
|| { strategy: "none" },
|
|
113
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
const requestRes = client._createRequest(context, {
|
|
117
|
+
security: requestSecurity,
|
|
118
|
+
method: "GET",
|
|
119
|
+
baseURL: options?.serverURL,
|
|
120
|
+
path: path,
|
|
121
|
+
headers: headers,
|
|
122
|
+
body: body,
|
|
123
|
+
userAgent: client._options.userAgent,
|
|
124
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
125
|
+
}, options);
|
|
126
|
+
if (!requestRes.ok) {
|
|
127
|
+
return [requestRes, { status: "invalid" }];
|
|
128
|
+
}
|
|
129
|
+
const req = requestRes.value;
|
|
130
|
+
|
|
131
|
+
const doResult = await client._do(req, {
|
|
132
|
+
context,
|
|
133
|
+
errorCodes: ["4XX", "5XX"],
|
|
134
|
+
retryConfig: context.retryConfig,
|
|
135
|
+
retryCodes: context.retryCodes,
|
|
136
|
+
});
|
|
137
|
+
if (!doResult.ok) {
|
|
138
|
+
return [doResult, { status: "request-error", request: req }];
|
|
139
|
+
}
|
|
140
|
+
const response = doResult.value;
|
|
141
|
+
|
|
142
|
+
const [result] = await M.match<
|
|
143
|
+
models.ConfigStatementsResponse,
|
|
144
|
+
| AlienManagerError
|
|
145
|
+
| ResponseValidationError
|
|
146
|
+
| ConnectionError
|
|
147
|
+
| RequestAbortedError
|
|
148
|
+
| RequestTimeoutError
|
|
149
|
+
| InvalidRequestError
|
|
150
|
+
| UnexpectedClientError
|
|
151
|
+
| SDKValidationError
|
|
152
|
+
>(
|
|
153
|
+
M.json(200, models.ConfigStatementsResponse$inboundSchema),
|
|
154
|
+
M.fail("4XX"),
|
|
155
|
+
M.fail("5XX"),
|
|
156
|
+
)(response, req);
|
|
157
|
+
if (!result.ok) {
|
|
158
|
+
return [result, { status: "complete", request: req, response }];
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
return [result, { status: "complete", request: req, response }];
|
|
162
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { AlienManagerCore } from "../core.js";
|
|
6
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import { AlienManagerError } from "../models/errors/alienmanagererror.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
22
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
|
+
import * as models from "../models/index.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
|
|
28
|
+
export function signingListPendingChanges(
|
|
29
|
+
client: AlienManagerCore,
|
|
30
|
+
request: operations.ListPendingChangesRequest,
|
|
31
|
+
options?: RequestOptions,
|
|
32
|
+
): APIPromise<
|
|
33
|
+
Result<
|
|
34
|
+
models.PendingChangesResponse,
|
|
35
|
+
| AlienManagerError
|
|
36
|
+
| ResponseValidationError
|
|
37
|
+
| ConnectionError
|
|
38
|
+
| RequestAbortedError
|
|
39
|
+
| RequestTimeoutError
|
|
40
|
+
| InvalidRequestError
|
|
41
|
+
| UnexpectedClientError
|
|
42
|
+
| SDKValidationError
|
|
43
|
+
>
|
|
44
|
+
> {
|
|
45
|
+
return new APIPromise($do(
|
|
46
|
+
client,
|
|
47
|
+
request,
|
|
48
|
+
options,
|
|
49
|
+
));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
async function $do(
|
|
53
|
+
client: AlienManagerCore,
|
|
54
|
+
request: operations.ListPendingChangesRequest,
|
|
55
|
+
options?: RequestOptions,
|
|
56
|
+
): Promise<
|
|
57
|
+
[
|
|
58
|
+
Result<
|
|
59
|
+
models.PendingChangesResponse,
|
|
60
|
+
| AlienManagerError
|
|
61
|
+
| ResponseValidationError
|
|
62
|
+
| ConnectionError
|
|
63
|
+
| RequestAbortedError
|
|
64
|
+
| RequestTimeoutError
|
|
65
|
+
| InvalidRequestError
|
|
66
|
+
| UnexpectedClientError
|
|
67
|
+
| SDKValidationError
|
|
68
|
+
>,
|
|
69
|
+
APICall,
|
|
70
|
+
]
|
|
71
|
+
> {
|
|
72
|
+
const parsed = safeParse(
|
|
73
|
+
request,
|
|
74
|
+
(value) => operations.ListPendingChangesRequest$outboundSchema.parse(value),
|
|
75
|
+
"Input validation failed",
|
|
76
|
+
);
|
|
77
|
+
if (!parsed.ok) {
|
|
78
|
+
return [parsed, { status: "invalid" }];
|
|
79
|
+
}
|
|
80
|
+
const payload = parsed.value;
|
|
81
|
+
const body = null;
|
|
82
|
+
|
|
83
|
+
const pathParams = {
|
|
84
|
+
project: encodeSimple("project", payload.project, {
|
|
85
|
+
explode: false,
|
|
86
|
+
charEncoding: "percent",
|
|
87
|
+
}),
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const path = pathToFunc("/v1/projects/{project}/pending-changes")(pathParams);
|
|
91
|
+
|
|
92
|
+
const query = encodeFormQuery({
|
|
93
|
+
"status": payload.status,
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
const headers = new Headers(compactMap({
|
|
97
|
+
Accept: "application/json",
|
|
98
|
+
}));
|
|
99
|
+
|
|
100
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
101
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
102
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
103
|
+
|
|
104
|
+
const context = {
|
|
105
|
+
options: client._options,
|
|
106
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
107
|
+
operationID: "list_pending_changes",
|
|
108
|
+
oAuth2Scopes: null,
|
|
109
|
+
|
|
110
|
+
resolvedSecurity: requestSecurity,
|
|
111
|
+
|
|
112
|
+
securitySource: client._options.bearer,
|
|
113
|
+
retryConfig: options?.retries
|
|
114
|
+
|| client._options.retryConfig
|
|
115
|
+
|| { strategy: "none" },
|
|
116
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
const requestRes = client._createRequest(context, {
|
|
120
|
+
security: requestSecurity,
|
|
121
|
+
method: "GET",
|
|
122
|
+
baseURL: options?.serverURL,
|
|
123
|
+
path: path,
|
|
124
|
+
headers: headers,
|
|
125
|
+
query: query,
|
|
126
|
+
body: body,
|
|
127
|
+
userAgent: client._options.userAgent,
|
|
128
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
129
|
+
}, options);
|
|
130
|
+
if (!requestRes.ok) {
|
|
131
|
+
return [requestRes, { status: "invalid" }];
|
|
132
|
+
}
|
|
133
|
+
const req = requestRes.value;
|
|
134
|
+
|
|
135
|
+
const doResult = await client._do(req, {
|
|
136
|
+
context,
|
|
137
|
+
errorCodes: ["4XX", "5XX"],
|
|
138
|
+
retryConfig: context.retryConfig,
|
|
139
|
+
retryCodes: context.retryCodes,
|
|
140
|
+
});
|
|
141
|
+
if (!doResult.ok) {
|
|
142
|
+
return [doResult, { status: "request-error", request: req }];
|
|
143
|
+
}
|
|
144
|
+
const response = doResult.value;
|
|
145
|
+
|
|
146
|
+
const [result] = await M.match<
|
|
147
|
+
models.PendingChangesResponse,
|
|
148
|
+
| AlienManagerError
|
|
149
|
+
| ResponseValidationError
|
|
150
|
+
| ConnectionError
|
|
151
|
+
| RequestAbortedError
|
|
152
|
+
| RequestTimeoutError
|
|
153
|
+
| InvalidRequestError
|
|
154
|
+
| UnexpectedClientError
|
|
155
|
+
| SDKValidationError
|
|
156
|
+
>(
|
|
157
|
+
M.json(200, models.PendingChangesResponse$inboundSchema),
|
|
158
|
+
M.fail("4XX"),
|
|
159
|
+
M.fail("5XX"),
|
|
160
|
+
)(response, req);
|
|
161
|
+
if (!result.ok) {
|
|
162
|
+
return [result, { status: "complete", request: req, response }];
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
return [result, { status: "complete", request: req, response }];
|
|
166
|
+
}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { AlienManagerCore } from "../core.js";
|
|
6
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import { AlienManagerError } from "../models/errors/alienmanagererror.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
22
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
|
+
import * as models from "../models/index.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
|
|
28
|
+
export function signingListSignerLists(
|
|
29
|
+
client: AlienManagerCore,
|
|
30
|
+
request: operations.ListSignerListsRequest,
|
|
31
|
+
options?: RequestOptions,
|
|
32
|
+
): APIPromise<
|
|
33
|
+
Result<
|
|
34
|
+
models.SignerListsResponse,
|
|
35
|
+
| AlienManagerError
|
|
36
|
+
| ResponseValidationError
|
|
37
|
+
| ConnectionError
|
|
38
|
+
| RequestAbortedError
|
|
39
|
+
| RequestTimeoutError
|
|
40
|
+
| InvalidRequestError
|
|
41
|
+
| UnexpectedClientError
|
|
42
|
+
| SDKValidationError
|
|
43
|
+
>
|
|
44
|
+
> {
|
|
45
|
+
return new APIPromise($do(
|
|
46
|
+
client,
|
|
47
|
+
request,
|
|
48
|
+
options,
|
|
49
|
+
));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
async function $do(
|
|
53
|
+
client: AlienManagerCore,
|
|
54
|
+
request: operations.ListSignerListsRequest,
|
|
55
|
+
options?: RequestOptions,
|
|
56
|
+
): Promise<
|
|
57
|
+
[
|
|
58
|
+
Result<
|
|
59
|
+
models.SignerListsResponse,
|
|
60
|
+
| AlienManagerError
|
|
61
|
+
| ResponseValidationError
|
|
62
|
+
| ConnectionError
|
|
63
|
+
| RequestAbortedError
|
|
64
|
+
| RequestTimeoutError
|
|
65
|
+
| InvalidRequestError
|
|
66
|
+
| UnexpectedClientError
|
|
67
|
+
| SDKValidationError
|
|
68
|
+
>,
|
|
69
|
+
APICall,
|
|
70
|
+
]
|
|
71
|
+
> {
|
|
72
|
+
const parsed = safeParse(
|
|
73
|
+
request,
|
|
74
|
+
(value) => operations.ListSignerListsRequest$outboundSchema.parse(value),
|
|
75
|
+
"Input validation failed",
|
|
76
|
+
);
|
|
77
|
+
if (!parsed.ok) {
|
|
78
|
+
return [parsed, { status: "invalid" }];
|
|
79
|
+
}
|
|
80
|
+
const payload = parsed.value;
|
|
81
|
+
const body = null;
|
|
82
|
+
|
|
83
|
+
const pathParams = {
|
|
84
|
+
project: encodeSimple("project", payload.project, {
|
|
85
|
+
explode: false,
|
|
86
|
+
charEncoding: "percent",
|
|
87
|
+
}),
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const path = pathToFunc("/v1/projects/{project}/signer-lists")(pathParams);
|
|
91
|
+
|
|
92
|
+
const headers = new Headers(compactMap({
|
|
93
|
+
Accept: "application/json",
|
|
94
|
+
}));
|
|
95
|
+
|
|
96
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
97
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
98
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
99
|
+
|
|
100
|
+
const context = {
|
|
101
|
+
options: client._options,
|
|
102
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
103
|
+
operationID: "list_signer_lists",
|
|
104
|
+
oAuth2Scopes: null,
|
|
105
|
+
|
|
106
|
+
resolvedSecurity: requestSecurity,
|
|
107
|
+
|
|
108
|
+
securitySource: client._options.bearer,
|
|
109
|
+
retryConfig: options?.retries
|
|
110
|
+
|| client._options.retryConfig
|
|
111
|
+
|| { strategy: "none" },
|
|
112
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
const requestRes = client._createRequest(context, {
|
|
116
|
+
security: requestSecurity,
|
|
117
|
+
method: "GET",
|
|
118
|
+
baseURL: options?.serverURL,
|
|
119
|
+
path: path,
|
|
120
|
+
headers: headers,
|
|
121
|
+
body: body,
|
|
122
|
+
userAgent: client._options.userAgent,
|
|
123
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
124
|
+
}, options);
|
|
125
|
+
if (!requestRes.ok) {
|
|
126
|
+
return [requestRes, { status: "invalid" }];
|
|
127
|
+
}
|
|
128
|
+
const req = requestRes.value;
|
|
129
|
+
|
|
130
|
+
const doResult = await client._do(req, {
|
|
131
|
+
context,
|
|
132
|
+
errorCodes: ["4XX", "5XX"],
|
|
133
|
+
retryConfig: context.retryConfig,
|
|
134
|
+
retryCodes: context.retryCodes,
|
|
135
|
+
});
|
|
136
|
+
if (!doResult.ok) {
|
|
137
|
+
return [doResult, { status: "request-error", request: req }];
|
|
138
|
+
}
|
|
139
|
+
const response = doResult.value;
|
|
140
|
+
|
|
141
|
+
const [result] = await M.match<
|
|
142
|
+
models.SignerListsResponse,
|
|
143
|
+
| AlienManagerError
|
|
144
|
+
| ResponseValidationError
|
|
145
|
+
| ConnectionError
|
|
146
|
+
| RequestAbortedError
|
|
147
|
+
| RequestTimeoutError
|
|
148
|
+
| InvalidRequestError
|
|
149
|
+
| UnexpectedClientError
|
|
150
|
+
| SDKValidationError
|
|
151
|
+
>(
|
|
152
|
+
M.json(200, models.SignerListsResponse$inboundSchema),
|
|
153
|
+
M.fail("4XX"),
|
|
154
|
+
M.fail("5XX"),
|
|
155
|
+
)(response, req);
|
|
156
|
+
if (!result.ok) {
|
|
157
|
+
return [result, { status: "complete", request: req, response }];
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
return [result, { status: "complete", request: req, response }];
|
|
161
|
+
}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { AlienManagerCore } from "../core.js";
|
|
6
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import { AlienManagerError } from "../models/errors/alienmanagererror.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
22
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
|
+
import * as models from "../models/index.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
|
|
28
|
+
export function signingResolvePendingChange(
|
|
29
|
+
client: AlienManagerCore,
|
|
30
|
+
id: string,
|
|
31
|
+
resolvePendingChangeRequest: models.ResolvePendingChangeRequest,
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): APIPromise<
|
|
34
|
+
Result<
|
|
35
|
+
models.PendingChangeResponse,
|
|
36
|
+
| AlienManagerError
|
|
37
|
+
| ResponseValidationError
|
|
38
|
+
| ConnectionError
|
|
39
|
+
| RequestAbortedError
|
|
40
|
+
| RequestTimeoutError
|
|
41
|
+
| InvalidRequestError
|
|
42
|
+
| UnexpectedClientError
|
|
43
|
+
| SDKValidationError
|
|
44
|
+
>
|
|
45
|
+
> {
|
|
46
|
+
return new APIPromise($do(
|
|
47
|
+
client,
|
|
48
|
+
id,
|
|
49
|
+
resolvePendingChangeRequest,
|
|
50
|
+
options,
|
|
51
|
+
));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
async function $do(
|
|
55
|
+
client: AlienManagerCore,
|
|
56
|
+
id: string,
|
|
57
|
+
resolvePendingChangeRequest: models.ResolvePendingChangeRequest,
|
|
58
|
+
options?: RequestOptions,
|
|
59
|
+
): Promise<
|
|
60
|
+
[
|
|
61
|
+
Result<
|
|
62
|
+
models.PendingChangeResponse,
|
|
63
|
+
| AlienManagerError
|
|
64
|
+
| ResponseValidationError
|
|
65
|
+
| ConnectionError
|
|
66
|
+
| RequestAbortedError
|
|
67
|
+
| RequestTimeoutError
|
|
68
|
+
| InvalidRequestError
|
|
69
|
+
| UnexpectedClientError
|
|
70
|
+
| SDKValidationError
|
|
71
|
+
>,
|
|
72
|
+
APICall,
|
|
73
|
+
]
|
|
74
|
+
> {
|
|
75
|
+
const input: operations.ResolvePendingChangeRequest = {
|
|
76
|
+
id: id,
|
|
77
|
+
resolvePendingChangeRequest: resolvePendingChangeRequest,
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
const parsed = safeParse(
|
|
81
|
+
input,
|
|
82
|
+
(value) =>
|
|
83
|
+
operations.ResolvePendingChangeRequest$outboundSchema.parse(value),
|
|
84
|
+
"Input validation failed",
|
|
85
|
+
);
|
|
86
|
+
if (!parsed.ok) {
|
|
87
|
+
return [parsed, { status: "invalid" }];
|
|
88
|
+
}
|
|
89
|
+
const payload = parsed.value;
|
|
90
|
+
const body = encodeJSON("body", payload.ResolvePendingChangeRequest, {
|
|
91
|
+
explode: true,
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
const pathParams = {
|
|
95
|
+
id: encodeSimple("id", payload.id, {
|
|
96
|
+
explode: false,
|
|
97
|
+
charEncoding: "percent",
|
|
98
|
+
}),
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
const path = pathToFunc("/v1/pending-changes/{id}/resolution")(pathParams);
|
|
102
|
+
|
|
103
|
+
const headers = new Headers(compactMap({
|
|
104
|
+
"Content-Type": "application/json",
|
|
105
|
+
Accept: "application/json",
|
|
106
|
+
}));
|
|
107
|
+
|
|
108
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
109
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
110
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
111
|
+
|
|
112
|
+
const context = {
|
|
113
|
+
options: client._options,
|
|
114
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
115
|
+
operationID: "resolve_pending_change",
|
|
116
|
+
oAuth2Scopes: null,
|
|
117
|
+
|
|
118
|
+
resolvedSecurity: requestSecurity,
|
|
119
|
+
|
|
120
|
+
securitySource: client._options.bearer,
|
|
121
|
+
retryConfig: options?.retries
|
|
122
|
+
|| client._options.retryConfig
|
|
123
|
+
|| { strategy: "none" },
|
|
124
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
const requestRes = client._createRequest(context, {
|
|
128
|
+
security: requestSecurity,
|
|
129
|
+
method: "POST",
|
|
130
|
+
baseURL: options?.serverURL,
|
|
131
|
+
path: path,
|
|
132
|
+
headers: headers,
|
|
133
|
+
body: body,
|
|
134
|
+
userAgent: client._options.userAgent,
|
|
135
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
136
|
+
}, options);
|
|
137
|
+
if (!requestRes.ok) {
|
|
138
|
+
return [requestRes, { status: "invalid" }];
|
|
139
|
+
}
|
|
140
|
+
const req = requestRes.value;
|
|
141
|
+
|
|
142
|
+
const doResult = await client._do(req, {
|
|
143
|
+
context,
|
|
144
|
+
errorCodes: ["409", "4XX", "5XX"],
|
|
145
|
+
retryConfig: context.retryConfig,
|
|
146
|
+
retryCodes: context.retryCodes,
|
|
147
|
+
});
|
|
148
|
+
if (!doResult.ok) {
|
|
149
|
+
return [doResult, { status: "request-error", request: req }];
|
|
150
|
+
}
|
|
151
|
+
const response = doResult.value;
|
|
152
|
+
|
|
153
|
+
const [result] = await M.match<
|
|
154
|
+
models.PendingChangeResponse,
|
|
155
|
+
| AlienManagerError
|
|
156
|
+
| ResponseValidationError
|
|
157
|
+
| ConnectionError
|
|
158
|
+
| RequestAbortedError
|
|
159
|
+
| RequestTimeoutError
|
|
160
|
+
| InvalidRequestError
|
|
161
|
+
| UnexpectedClientError
|
|
162
|
+
| SDKValidationError
|
|
163
|
+
>(
|
|
164
|
+
M.json(200, models.PendingChangeResponse$inboundSchema),
|
|
165
|
+
M.fail([409, "4XX"]),
|
|
166
|
+
M.fail("5XX"),
|
|
167
|
+
)(response, req);
|
|
168
|
+
if (!result.ok) {
|
|
169
|
+
return [result, { status: "complete", request: req, response }];
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
return [result, { status: "complete", request: req, response }];
|
|
173
|
+
}
|