@alienplatform/manager-api 3.3.64 → 3.3.65
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
|
@@ -10,6 +10,14 @@ import {
|
|
|
10
10
|
GitMetadataResponse,
|
|
11
11
|
GitMetadataResponse$inboundSchema,
|
|
12
12
|
} from "./gitmetadataresponse.js";
|
|
13
|
+
import {
|
|
14
|
+
ReleaseSigning,
|
|
15
|
+
ReleaseSigning$inboundSchema,
|
|
16
|
+
} from "./releasesigning.js";
|
|
17
|
+
import {
|
|
18
|
+
SignedStatement,
|
|
19
|
+
SignedStatement$inboundSchema,
|
|
20
|
+
} from "./signedstatement.js";
|
|
13
21
|
import {
|
|
14
22
|
StackByPlatform,
|
|
15
23
|
StackByPlatform$inboundSchema,
|
|
@@ -30,6 +38,18 @@ export type ReleaseResponse = {
|
|
|
30
38
|
* fingerprints, so we return an empty map.
|
|
31
39
|
*/
|
|
32
40
|
setupFingerprints?: { [k: string]: any } | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Setup template bytes (base64) keyed by platform and template name,
|
|
43
|
+
*
|
|
44
|
+
* @remarks
|
|
45
|
+
* exactly as the release uploaded them; each hashes to its signed digest.
|
|
46
|
+
*/
|
|
47
|
+
setupTemplates?: { [k: string]: { [k: string]: string } } | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Signed statements keyed by platform, exactly as they were created.
|
|
50
|
+
*/
|
|
51
|
+
signedStacks?: { [k: string]: SignedStatement } | undefined;
|
|
52
|
+
signing?: ReleaseSigning | null | undefined;
|
|
33
53
|
/**
|
|
34
54
|
* The release API accepts stacks keyed by platform.
|
|
35
55
|
*
|
|
@@ -50,6 +70,10 @@ export const ReleaseResponse$inboundSchema: z.ZodType<
|
|
|
50
70
|
id: z.string(),
|
|
51
71
|
projectId: z.string(),
|
|
52
72
|
setupFingerprints: z.record(z.string(), z.any()).optional(),
|
|
73
|
+
setupTemplates: z.record(z.string(), z.record(z.string(), z.string()))
|
|
74
|
+
.optional(),
|
|
75
|
+
signedStacks: z.record(z.string(), SignedStatement$inboundSchema).optional(),
|
|
76
|
+
signing: z.nullable(ReleaseSigning$inboundSchema).optional(),
|
|
53
77
|
stack: StackByPlatform$inboundSchema,
|
|
54
78
|
workspaceId: z.string(),
|
|
55
79
|
});
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
|
|
10
|
+
/**
|
|
11
|
+
* One signer of a release.
|
|
12
|
+
*/
|
|
13
|
+
export type ReleaseSigner = {
|
|
14
|
+
id: string;
|
|
15
|
+
/**
|
|
16
|
+
* `device`, `ci` or `recovery`; absent when the signer list doesn't name it.
|
|
17
|
+
*/
|
|
18
|
+
kind?: string | null | undefined;
|
|
19
|
+
label?: string | null | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const ReleaseSigner$inboundSchema: z.ZodType<ReleaseSigner, unknown> = z
|
|
24
|
+
.object({
|
|
25
|
+
id: z.string(),
|
|
26
|
+
kind: z.nullable(z.string()).optional(),
|
|
27
|
+
label: z.nullable(z.string()).optional(),
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export function releaseSignerFromJSON(
|
|
31
|
+
jsonString: string,
|
|
32
|
+
): SafeParseResult<ReleaseSigner, SDKValidationError> {
|
|
33
|
+
return safeParse(
|
|
34
|
+
jsonString,
|
|
35
|
+
(x) => ReleaseSigner$inboundSchema.parse(JSON.parse(x)),
|
|
36
|
+
`Failed to parse 'ReleaseSigner' from JSON`,
|
|
37
|
+
);
|
|
38
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { ReleaseSigner, ReleaseSigner$inboundSchema } from "./releasesigner.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* A signed release's channel and signers, for the release badge. Display
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* only: decoded, never verified, because the manager isn't trusted to.
|
|
16
|
+
*/
|
|
17
|
+
export type ReleaseSigning = {
|
|
18
|
+
/**
|
|
19
|
+
* Channel the statements sign, such as `production`.
|
|
20
|
+
*/
|
|
21
|
+
channel: string;
|
|
22
|
+
/**
|
|
23
|
+
* Signers of the statements, with their label and kind from the signer
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* list version they name.
|
|
27
|
+
*/
|
|
28
|
+
signers: Array<ReleaseSigner>;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const ReleaseSigning$inboundSchema: z.ZodType<ReleaseSigning, unknown> =
|
|
33
|
+
z.object({
|
|
34
|
+
channel: z.string(),
|
|
35
|
+
signers: z.array(ReleaseSigner$inboundSchema),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export function releaseSigningFromJSON(
|
|
39
|
+
jsonString: string,
|
|
40
|
+
): SafeParseResult<ReleaseSigning, SDKValidationError> {
|
|
41
|
+
return safeParse(
|
|
42
|
+
jsonString,
|
|
43
|
+
(x) => ReleaseSigning$inboundSchema.parse(JSON.parse(x)),
|
|
44
|
+
`Failed to parse 'ReleaseSigning' from JSON`,
|
|
45
|
+
);
|
|
46
|
+
}
|
|
@@ -33,6 +33,14 @@ export type RemoteAzureSandboxBinding = {
|
|
|
33
33
|
* Declared sandbox ceilings, where the declaration named them.
|
|
34
34
|
*/
|
|
35
35
|
cpu?: string | null | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Set when this install creates its remote callers' sandboxes itself: the caller's own role
|
|
38
|
+
*
|
|
39
|
+
* @remarks
|
|
40
|
+
* cannot, so `POST /v1/bindings/sandboxes/create` does, from the signed release. Absent
|
|
41
|
+
* everywhere else, and for a client that predates it the data plane is the path.
|
|
42
|
+
*/
|
|
43
|
+
createViaManager?: boolean | null | undefined;
|
|
36
44
|
/**
|
|
37
45
|
* Per-region data-plane host, which is separate from the ARM control plane.
|
|
38
46
|
*/
|
|
@@ -72,6 +80,7 @@ export const RemoteAzureSandboxBinding$inboundSchema: z.ZodType<
|
|
|
72
80
|
agent: z.nullable(z.boolean()).optional(),
|
|
73
81
|
allowEgress: z.boolean(),
|
|
74
82
|
cpu: z.nullable(z.string()).optional(),
|
|
83
|
+
createViaManager: z.nullable(z.boolean()).optional(),
|
|
75
84
|
dataPlaneEndpoint: z.string(),
|
|
76
85
|
disk: z.nullable(z.string()).optional(),
|
|
77
86
|
diskImage: z.string(),
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* How a pending change ended.
|
|
10
|
+
*/
|
|
11
|
+
export const ResolutionStatus = {
|
|
12
|
+
Approved: "approved",
|
|
13
|
+
Rejected: "rejected",
|
|
14
|
+
} as const;
|
|
15
|
+
/**
|
|
16
|
+
* How a pending change ended.
|
|
17
|
+
*/
|
|
18
|
+
export type ResolutionStatus = ClosedEnum<typeof ResolutionStatus>;
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const ResolutionStatus$outboundSchema: z.ZodEnum<
|
|
22
|
+
typeof ResolutionStatus
|
|
23
|
+
> = z.enum(ResolutionStatus);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import {
|
|
7
|
+
ResolutionStatus,
|
|
8
|
+
ResolutionStatus$outboundSchema,
|
|
9
|
+
} from "./resolutionstatus.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Body of `POST /v1/pending-changes/{id}/resolution`.
|
|
13
|
+
*/
|
|
14
|
+
export type ResolvePendingChangeRequest = {
|
|
15
|
+
/**
|
|
16
|
+
* The signer list version that carries the change; required when approved.
|
|
17
|
+
*/
|
|
18
|
+
signerListVersion?: number | null | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* How a pending change ended.
|
|
21
|
+
*/
|
|
22
|
+
status: ResolutionStatus;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type ResolvePendingChangeRequest$Outbound = {
|
|
27
|
+
signerListVersion?: number | null | undefined;
|
|
28
|
+
status: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const ResolvePendingChangeRequest$outboundSchema: z.ZodType<
|
|
33
|
+
ResolvePendingChangeRequest$Outbound,
|
|
34
|
+
ResolvePendingChangeRequest
|
|
35
|
+
> = z.object({
|
|
36
|
+
signerListVersion: z.nullable(z.int()).optional(),
|
|
37
|
+
status: ResolutionStatus$outboundSchema,
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export function resolvePendingChangeRequestToJSON(
|
|
41
|
+
resolvePendingChangeRequest: ResolvePendingChangeRequest,
|
|
42
|
+
): string {
|
|
43
|
+
return JSON.stringify(
|
|
44
|
+
ResolvePendingChangeRequest$outboundSchema.parse(
|
|
45
|
+
resolvePendingChangeRequest,
|
|
46
|
+
),
|
|
47
|
+
);
|
|
48
|
+
}
|
|
@@ -38,13 +38,6 @@ export type RuntimePurposeOperatorOperations = {
|
|
|
38
38
|
type: "operatorOperations";
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
/**
|
|
42
|
-
* Connect the recorded operator tunnel.
|
|
43
|
-
*/
|
|
44
|
-
export type RuntimePurposeOperatorTunnel = {
|
|
45
|
-
type: "operatorTunnel";
|
|
46
|
-
};
|
|
47
|
-
|
|
48
41
|
/**
|
|
49
42
|
* Pull deployment images through the registry receiver.
|
|
50
43
|
*/
|
|
@@ -73,7 +66,6 @@ export type RuntimePurpose =
|
|
|
73
66
|
| RuntimePurposeTelemetry
|
|
74
67
|
| RuntimePurposeOperatorSync
|
|
75
68
|
| RuntimePurposeRegistryPull
|
|
76
|
-
| RuntimePurposeOperatorTunnel
|
|
77
69
|
| RuntimePurposeOperatorOperations
|
|
78
70
|
| RuntimePurposeOperationRelay
|
|
79
71
|
| RuntimePurposeReceiveCommands;
|
|
@@ -151,29 +143,6 @@ export function runtimePurposeOperatorOperationsToJSON(
|
|
|
151
143
|
);
|
|
152
144
|
}
|
|
153
145
|
|
|
154
|
-
/** @internal */
|
|
155
|
-
export type RuntimePurposeOperatorTunnel$Outbound = {
|
|
156
|
-
type: "operatorTunnel";
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
/** @internal */
|
|
160
|
-
export const RuntimePurposeOperatorTunnel$outboundSchema: z.ZodType<
|
|
161
|
-
RuntimePurposeOperatorTunnel$Outbound,
|
|
162
|
-
RuntimePurposeOperatorTunnel
|
|
163
|
-
> = z.object({
|
|
164
|
-
type: z.literal("operatorTunnel"),
|
|
165
|
-
});
|
|
166
|
-
|
|
167
|
-
export function runtimePurposeOperatorTunnelToJSON(
|
|
168
|
-
runtimePurposeOperatorTunnel: RuntimePurposeOperatorTunnel,
|
|
169
|
-
): string {
|
|
170
|
-
return JSON.stringify(
|
|
171
|
-
RuntimePurposeOperatorTunnel$outboundSchema.parse(
|
|
172
|
-
runtimePurposeOperatorTunnel,
|
|
173
|
-
),
|
|
174
|
-
);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
146
|
/** @internal */
|
|
178
147
|
export type RuntimePurposeRegistryPull$Outbound = {
|
|
179
148
|
type: "registryPull";
|
|
@@ -242,7 +211,6 @@ export type RuntimePurpose$Outbound =
|
|
|
242
211
|
| RuntimePurposeTelemetry$Outbound
|
|
243
212
|
| RuntimePurposeOperatorSync$Outbound
|
|
244
213
|
| RuntimePurposeRegistryPull$Outbound
|
|
245
|
-
| RuntimePurposeOperatorTunnel$Outbound
|
|
246
214
|
| RuntimePurposeOperatorOperations$Outbound
|
|
247
215
|
| RuntimePurposeOperationRelay$Outbound
|
|
248
216
|
| RuntimePurposeReceiveCommands$Outbound;
|
|
@@ -255,7 +223,6 @@ export const RuntimePurpose$outboundSchema: z.ZodType<
|
|
|
255
223
|
z.lazy(() => RuntimePurposeTelemetry$outboundSchema),
|
|
256
224
|
z.lazy(() => RuntimePurposeOperatorSync$outboundSchema),
|
|
257
225
|
z.lazy(() => RuntimePurposeRegistryPull$outboundSchema),
|
|
258
|
-
z.lazy(() => RuntimePurposeOperatorTunnel$outboundSchema),
|
|
259
226
|
z.lazy(() => RuntimePurposeOperatorOperations$outboundSchema),
|
|
260
227
|
z.lazy(() => RuntimePurposeOperationRelay$outboundSchema),
|
|
261
228
|
z.lazy(() => RuntimePurposeReceiveCommands$outboundSchema),
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
|
|
10
|
+
/**
|
|
11
|
+
* One signature over a statement's payload.
|
|
12
|
+
*/
|
|
13
|
+
export type Signature = {
|
|
14
|
+
/**
|
|
15
|
+
* Base64 DER ECDSA P-256 signature over the payload bytes.
|
|
16
|
+
*/
|
|
17
|
+
sig: string;
|
|
18
|
+
/**
|
|
19
|
+
* Id of the signer on the signer list.
|
|
20
|
+
*/
|
|
21
|
+
signer: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const Signature$inboundSchema: z.ZodType<Signature, unknown> = z.object({
|
|
26
|
+
sig: z.string(),
|
|
27
|
+
signer: z.string(),
|
|
28
|
+
});
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type Signature$Outbound = {
|
|
31
|
+
sig: string;
|
|
32
|
+
signer: string;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const Signature$outboundSchema: z.ZodType<
|
|
37
|
+
Signature$Outbound,
|
|
38
|
+
Signature
|
|
39
|
+
> = z.object({
|
|
40
|
+
sig: z.string(),
|
|
41
|
+
signer: z.string(),
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export function signatureToJSON(signature: Signature): string {
|
|
45
|
+
return JSON.stringify(Signature$outboundSchema.parse(signature));
|
|
46
|
+
}
|
|
47
|
+
export function signatureFromJSON(
|
|
48
|
+
jsonString: string,
|
|
49
|
+
): SafeParseResult<Signature, SDKValidationError> {
|
|
50
|
+
return safeParse(
|
|
51
|
+
jsonString,
|
|
52
|
+
(x) => Signature$inboundSchema.parse(JSON.parse(x)),
|
|
53
|
+
`Failed to parse 'Signature' from JSON`,
|
|
54
|
+
);
|
|
55
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
Signature,
|
|
11
|
+
Signature$inboundSchema,
|
|
12
|
+
Signature$Outbound,
|
|
13
|
+
Signature$outboundSchema,
|
|
14
|
+
} from "./signature.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* A statement as it is stored and carried.
|
|
18
|
+
*/
|
|
19
|
+
export type SignedStatement = {
|
|
20
|
+
/**
|
|
21
|
+
* Base64 of the payload bytes.
|
|
22
|
+
*/
|
|
23
|
+
payload: string;
|
|
24
|
+
/**
|
|
25
|
+
* Signatures over the payload bytes.
|
|
26
|
+
*/
|
|
27
|
+
signatures: Array<Signature>;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const SignedStatement$inboundSchema: z.ZodType<
|
|
32
|
+
SignedStatement,
|
|
33
|
+
unknown
|
|
34
|
+
> = z.object({
|
|
35
|
+
payload: z.string(),
|
|
36
|
+
signatures: z.array(Signature$inboundSchema),
|
|
37
|
+
});
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type SignedStatement$Outbound = {
|
|
40
|
+
payload: string;
|
|
41
|
+
signatures: Array<Signature$Outbound>;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const SignedStatement$outboundSchema: z.ZodType<
|
|
46
|
+
SignedStatement$Outbound,
|
|
47
|
+
SignedStatement
|
|
48
|
+
> = z.object({
|
|
49
|
+
payload: z.string(),
|
|
50
|
+
signatures: z.array(Signature$outboundSchema),
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export function signedStatementToJSON(
|
|
54
|
+
signedStatement: SignedStatement,
|
|
55
|
+
): string {
|
|
56
|
+
return JSON.stringify(SignedStatement$outboundSchema.parse(signedStatement));
|
|
57
|
+
}
|
|
58
|
+
export function signedStatementFromJSON(
|
|
59
|
+
jsonString: string,
|
|
60
|
+
): SafeParseResult<SignedStatement, SDKValidationError> {
|
|
61
|
+
return safeParse(
|
|
62
|
+
jsonString,
|
|
63
|
+
(x) => SignedStatement$inboundSchema.parse(JSON.parse(x)),
|
|
64
|
+
`Failed to parse 'SignedStatement' from JSON`,
|
|
65
|
+
);
|
|
66
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
SignedStatement,
|
|
11
|
+
SignedStatement$inboundSchema,
|
|
12
|
+
} from "./signedstatement.js";
|
|
13
|
+
|
|
14
|
+
export type SignerListsResponse = {
|
|
15
|
+
/**
|
|
16
|
+
* Every stored version, oldest first.
|
|
17
|
+
*/
|
|
18
|
+
items: Array<SignedStatement>;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const SignerListsResponse$inboundSchema: z.ZodType<
|
|
23
|
+
SignerListsResponse,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
items: z.array(SignedStatement$inboundSchema),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export function signerListsResponseFromJSON(
|
|
30
|
+
jsonString: string,
|
|
31
|
+
): SafeParseResult<SignerListsResponse, SDKValidationError> {
|
|
32
|
+
return safeParse(
|
|
33
|
+
jsonString,
|
|
34
|
+
(x) => SignerListsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
35
|
+
`Failed to parse 'SignerListsResponse' from JSON`,
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Answer to storing a signer list version.
|
|
12
|
+
*/
|
|
13
|
+
export type SignerListStored = {
|
|
14
|
+
/**
|
|
15
|
+
* The version stored.
|
|
16
|
+
*/
|
|
17
|
+
version: number;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const SignerListStored$inboundSchema: z.ZodType<
|
|
22
|
+
SignerListStored,
|
|
23
|
+
unknown
|
|
24
|
+
> = z.object({
|
|
25
|
+
version: z.int(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export function signerListStoredFromJSON(
|
|
29
|
+
jsonString: string,
|
|
30
|
+
): SafeParseResult<SignerListStored, SDKValidationError> {
|
|
31
|
+
return safeParse(
|
|
32
|
+
jsonString,
|
|
33
|
+
(x) => SignerListStored$inboundSchema.parse(JSON.parse(x)),
|
|
34
|
+
`Failed to parse 'SignerListStored' from JSON`,
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -28,6 +28,14 @@ import {
|
|
|
28
28
|
* Request body for manager-side stack import.
|
|
29
29
|
*/
|
|
30
30
|
export type StackImportRequest = {
|
|
31
|
+
/**
|
|
32
|
+
* Set by a client that can use a short-lived deployment token for this run
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* only and will not store it. Without it, the response carries no new
|
|
36
|
+
* token for an installation whose Operator already holds its own key.
|
|
37
|
+
*/
|
|
38
|
+
acceptsShortLivedDeploymentToken?: boolean | undefined;
|
|
31
39
|
basePlatform?: PlatformEnum | null | undefined;
|
|
32
40
|
/**
|
|
33
41
|
* Deployment-group token authorizing the import.
|
|
@@ -122,6 +130,7 @@ export type StackImportRequest = {
|
|
|
122
130
|
|
|
123
131
|
/** @internal */
|
|
124
132
|
export type StackImportRequest$Outbound = {
|
|
133
|
+
acceptsShortLivedDeploymentToken?: boolean | undefined;
|
|
125
134
|
basePlatform?: string | null | undefined;
|
|
126
135
|
deploymentGroupToken: string;
|
|
127
136
|
deploymentName: string;
|
|
@@ -146,6 +155,7 @@ export const StackImportRequest$outboundSchema: z.ZodType<
|
|
|
146
155
|
StackImportRequest$Outbound,
|
|
147
156
|
StackImportRequest
|
|
148
157
|
> = z.object({
|
|
158
|
+
acceptsShortLivedDeploymentToken: z.boolean().optional(),
|
|
149
159
|
basePlatform: z.nullable(PlatformEnum$outboundSchema).optional(),
|
|
150
160
|
deploymentGroupToken: z.string(),
|
|
151
161
|
deploymentName: z.string(),
|
|
@@ -21,6 +21,13 @@ export type StackImportResponse = {
|
|
|
21
21
|
* Deployment bearer token for the imported deployment, when available.
|
|
22
22
|
*/
|
|
23
23
|
deploymentToken?: string | null | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* When `deployment_token` stops working. Set only for a short-lived token,
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* which a client uses for this run and does not store.
|
|
29
|
+
*/
|
|
30
|
+
deploymentTokenExpiresAt?: Date | null | undefined;
|
|
24
31
|
/**
|
|
25
32
|
* User-customizable deployment settings specified at deploy time.
|
|
26
33
|
*
|
|
@@ -47,6 +54,9 @@ export const StackImportResponse$inboundSchema: z.ZodType<
|
|
|
47
54
|
> = z.object({
|
|
48
55
|
deploymentId: z.string(),
|
|
49
56
|
deploymentToken: z.nullable(z.string()).optional(),
|
|
57
|
+
deploymentTokenExpiresAt: z.nullable(
|
|
58
|
+
z.iso.datetime({ offset: true }).transform(v => new Date(v)),
|
|
59
|
+
).optional(),
|
|
50
60
|
stackSettings: StackSettings$inboundSchema,
|
|
51
61
|
stackState: StackState$inboundSchema,
|
|
52
62
|
});
|
|
@@ -56,6 +56,12 @@ import {
|
|
|
56
56
|
SetupManagement$inboundSchema,
|
|
57
57
|
SetupManagement$outboundSchema,
|
|
58
58
|
} from "./setupmanagement.js";
|
|
59
|
+
import {
|
|
60
|
+
StackSigning,
|
|
61
|
+
StackSigning$inboundSchema,
|
|
62
|
+
StackSigning$Outbound,
|
|
63
|
+
StackSigning$outboundSchema,
|
|
64
|
+
} from "./stacksigning.js";
|
|
59
65
|
import {
|
|
60
66
|
TelemetryMode,
|
|
61
67
|
TelemetryMode$inboundSchema,
|
|
@@ -126,6 +132,7 @@ export type StackSettings = {
|
|
|
126
132
|
* Whether setup remains a separate administrator operation.
|
|
127
133
|
*/
|
|
128
134
|
setupManagement?: SetupManagement | undefined;
|
|
135
|
+
signing?: StackSigning | null | undefined;
|
|
129
136
|
/**
|
|
130
137
|
* How telemetry (logs, metrics, traces) is handled.
|
|
131
138
|
*/
|
|
@@ -155,6 +162,7 @@ export const StackSettings$inboundSchema: z.ZodType<StackSettings, unknown> = z
|
|
|
155
162
|
).optional(),
|
|
156
163
|
quotaWarningOverrides: z.array(z.string()).optional(),
|
|
157
164
|
setupManagement: SetupManagement$inboundSchema.optional(),
|
|
165
|
+
signing: z.nullable(StackSigning$inboundSchema).optional(),
|
|
158
166
|
telemetry: TelemetryMode$inboundSchema.optional(),
|
|
159
167
|
updates: UpdatesMode$inboundSchema.optional(),
|
|
160
168
|
});
|
|
@@ -175,6 +183,7 @@ export type StackSettings$Outbound = {
|
|
|
175
183
|
publicEndpoints?: { [k: string]: { [k: string]: string } } | null | undefined;
|
|
176
184
|
quotaWarningOverrides?: Array<string> | undefined;
|
|
177
185
|
setupManagement?: string | undefined;
|
|
186
|
+
signing?: StackSigning$Outbound | null | undefined;
|
|
178
187
|
telemetry?: string | undefined;
|
|
179
188
|
updates?: string | undefined;
|
|
180
189
|
};
|
|
@@ -200,6 +209,7 @@ export const StackSettings$outboundSchema: z.ZodType<
|
|
|
200
209
|
).optional(),
|
|
201
210
|
quotaWarningOverrides: z.array(z.string()).optional(),
|
|
202
211
|
setupManagement: SetupManagement$outboundSchema.optional(),
|
|
212
|
+
signing: z.nullable(StackSigning$outboundSchema).optional(),
|
|
203
213
|
telemetry: TelemetryMode$outboundSchema.optional(),
|
|
204
214
|
updates: UpdatesMode$outboundSchema.optional(),
|
|
205
215
|
});
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
|
|
10
|
+
/**
|
|
11
|
+
* What setup pins for a protected install.
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
*
|
|
15
|
+
* Take the values from the vendor's install guide or signed release, not from the
|
|
16
|
+
* control plane.
|
|
17
|
+
*/
|
|
18
|
+
export type StackSigning = {
|
|
19
|
+
/**
|
|
20
|
+
* Release channel the install follows, such as `production`.
|
|
21
|
+
*/
|
|
22
|
+
channel: string;
|
|
23
|
+
/**
|
|
24
|
+
* `SHA256:<64 hex>` fingerprint of the vendor's signer list version 1.
|
|
25
|
+
*/
|
|
26
|
+
fingerprint: string;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const StackSigning$inboundSchema: z.ZodType<StackSigning, unknown> = z
|
|
31
|
+
.object({
|
|
32
|
+
channel: z.string(),
|
|
33
|
+
fingerprint: z.string(),
|
|
34
|
+
});
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type StackSigning$Outbound = {
|
|
37
|
+
channel: string;
|
|
38
|
+
fingerprint: string;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const StackSigning$outboundSchema: z.ZodType<
|
|
43
|
+
StackSigning$Outbound,
|
|
44
|
+
StackSigning
|
|
45
|
+
> = z.object({
|
|
46
|
+
channel: z.string(),
|
|
47
|
+
fingerprint: z.string(),
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export function stackSigningToJSON(stackSigning: StackSigning): string {
|
|
51
|
+
return JSON.stringify(StackSigning$outboundSchema.parse(stackSigning));
|
|
52
|
+
}
|
|
53
|
+
export function stackSigningFromJSON(
|
|
54
|
+
jsonString: string,
|
|
55
|
+
): SafeParseResult<StackSigning, SDKValidationError> {
|
|
56
|
+
return safeParse(
|
|
57
|
+
jsonString,
|
|
58
|
+
(x) => StackSigning$inboundSchema.parse(JSON.parse(x)),
|
|
59
|
+
`Failed to parse 'StackSigning' from JSON`,
|
|
60
|
+
);
|
|
61
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import {
|
|
7
|
+
SignedStatement,
|
|
8
|
+
SignedStatement$Outbound,
|
|
9
|
+
SignedStatement$outboundSchema,
|
|
10
|
+
} from "./signedstatement.js";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* A body carrying one signed statement.
|
|
14
|
+
*/
|
|
15
|
+
export type StatementRequest = {
|
|
16
|
+
/**
|
|
17
|
+
* A statement as it is stored and carried.
|
|
18
|
+
*/
|
|
19
|
+
statement: SignedStatement;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export type StatementRequest$Outbound = {
|
|
24
|
+
statement: SignedStatement$Outbound;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const StatementRequest$outboundSchema: z.ZodType<
|
|
29
|
+
StatementRequest$Outbound,
|
|
30
|
+
StatementRequest
|
|
31
|
+
> = z.object({
|
|
32
|
+
statement: SignedStatement$outboundSchema,
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export function statementRequestToJSON(
|
|
36
|
+
statementRequest: StatementRequest,
|
|
37
|
+
): string {
|
|
38
|
+
return JSON.stringify(
|
|
39
|
+
StatementRequest$outboundSchema.parse(statementRequest),
|
|
40
|
+
);
|
|
41
|
+
}
|