@alienplatform/manager-api 3.3.62 → 3.3.64
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 +24 -2
- package/esm/funcs/identityEnrollRuntimeIdentity.d.ts +11 -0
- package/esm/funcs/identityEnrollRuntimeIdentity.d.ts.map +1 -0
- package/esm/funcs/identityEnrollRuntimeIdentity.js +72 -0
- package/esm/funcs/identityEnrollRuntimeIdentity.js.map +1 -0
- package/esm/funcs/identityExchangeRuntimeIdentity.d.ts +14 -0
- package/esm/funcs/identityExchangeRuntimeIdentity.d.ts.map +1 -0
- package/esm/funcs/identityExchangeRuntimeIdentity.js +75 -0
- package/esm/funcs/identityExchangeRuntimeIdentity.js.map +1 -0
- package/esm/funcs/identityIssueEnrollmentCode.d.ts +15 -0
- package/esm/funcs/identityIssueEnrollmentCode.d.ts.map +1 -0
- package/esm/funcs/identityIssueEnrollmentCode.js +81 -0
- package/esm/funcs/identityIssueEnrollmentCode.js.map +1 -0
- package/esm/funcs/identityRotateRuntimeIdentity.d.ts +11 -0
- package/esm/funcs/identityRotateRuntimeIdentity.d.ts.map +1 -0
- package/esm/funcs/identityRotateRuntimeIdentity.js +72 -0
- package/esm/funcs/identityRotateRuntimeIdentity.js.map +1 -0
- package/esm/funcs/valuesDeleteValue.d.ts +11 -0
- package/esm/funcs/valuesDeleteValue.d.ts.map +1 -0
- package/esm/funcs/valuesDeleteValue.js +82 -0
- package/esm/funcs/valuesDeleteValue.js.map +1 -0
- package/esm/funcs/valuesListValues.d.ts +12 -0
- package/esm/funcs/valuesListValues.d.ts.map +1 -0
- package/esm/funcs/valuesListValues.js +78 -0
- package/esm/funcs/valuesListValues.js.map +1 -0
- package/esm/funcs/valuesPutValues.d.ts +15 -0
- package/esm/funcs/valuesPutValues.d.ts.map +1 -0
- package/esm/funcs/valuesPutValues.js +86 -0
- package/esm/funcs/valuesPutValues.js.map +1 -0
- package/esm/funcs/valuesVerifyValues.d.ts +11 -0
- package/esm/funcs/valuesVerifyValues.d.ts.map +1 -0
- package/esm/funcs/valuesVerifyValues.js +85 -0
- package/esm/funcs/valuesVerifyValues.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 +20 -0
- package/esm/models/agentsyncrequest.d.ts.map +1 -1
- package/esm/models/agentsyncrequest.js +4 -0
- package/esm/models/agentsyncrequest.js.map +1 -1
- package/esm/models/aimodelavailabilityobservation.d.ts +17 -0
- package/esm/models/aimodelavailabilityobservation.d.ts.map +1 -1
- package/esm/models/aimodelavailabilityobservation.js +3 -0
- package/esm/models/aimodelavailabilityobservation.js.map +1 -1
- package/esm/models/aiquotawarning.d.ts +19 -0
- package/esm/models/aiquotawarning.d.ts.map +1 -0
- package/esm/models/aiquotawarning.js +14 -0
- package/esm/models/aiquotawarning.js.map +1 -0
- package/esm/models/deploymentresponse.d.ts +13 -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/externalbindingunion.d.ts +353 -18
- package/esm/models/externalbindingunion.d.ts.map +1 -1
- package/esm/models/externalbindingunion.js +241 -20
- package/esm/models/externalbindingunion.js.map +1 -1
- package/esm/models/identityenrollmentrequest.d.ts +17 -0
- package/esm/models/identityenrollmentrequest.d.ts.map +1 -0
- package/esm/models/identityenrollmentrequest.js +13 -0
- package/esm/models/identityenrollmentrequest.js.map +1 -0
- package/esm/models/identityenrollmentresponse.d.ts +13 -0
- package/esm/models/identityenrollmentresponse.d.ts.map +1 -0
- package/esm/models/identityenrollmentresponse.js +16 -0
- package/esm/models/identityenrollmentresponse.js.map +1 -0
- package/esm/models/identityexchangerequest.d.ts +27 -0
- package/esm/models/identityexchangerequest.d.ts.map +1 -0
- package/esm/models/identityexchangerequest.js +16 -0
- package/esm/models/identityexchangerequest.js.map +1 -0
- package/esm/models/identityrotationrequest.d.ts +19 -0
- package/esm/models/identityrotationrequest.d.ts.map +1 -0
- package/esm/models/identityrotationrequest.js +14 -0
- package/esm/models/identityrotationrequest.js.map +1 -0
- package/esm/models/identityrotationresponse.d.ts +14 -0
- package/esm/models/identityrotationresponse.d.ts.map +1 -0
- package/esm/models/identityrotationresponse.js +14 -0
- package/esm/models/identityrotationresponse.js.map +1 -0
- package/esm/models/index.d.ts +24 -0
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +24 -0
- package/esm/models/index.js.map +1 -1
- package/esm/models/installedsetup.d.ts +46 -0
- package/esm/models/installedsetup.d.ts.map +1 -0
- package/esm/models/installedsetup.js +17 -0
- package/esm/models/installedsetup.js.map +1 -0
- package/esm/models/issuedenrollmentcode.d.ts +19 -0
- package/esm/models/issuedenrollmentcode.d.ts.map +1 -0
- package/esm/models/issuedenrollmentcode.js +16 -0
- package/esm/models/issuedenrollmentcode.js.map +1 -0
- package/esm/models/issuedruntimecredential.d.ts +14 -0
- package/esm/models/issuedruntimecredential.d.ts.map +1 -0
- package/esm/models/issuedruntimecredential.js +14 -0
- package/esm/models/issuedruntimecredential.js.map +1 -0
- package/esm/models/managercapabilities.d.ts +7 -0
- package/esm/models/managercapabilities.d.ts.map +1 -1
- package/esm/models/managercapabilities.js +1 -0
- package/esm/models/managercapabilities.js.map +1 -1
- package/esm/models/networksettings.d.ts +2 -2
- package/esm/models/operations/deletevalue.d.ts +20 -0
- package/esm/models/operations/deletevalue.d.ts.map +1 -0
- package/esm/models/operations/deletevalue.js +13 -0
- package/esm/models/operations/deletevalue.js.map +1 -0
- package/esm/models/operations/index.d.ts +5 -0
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +5 -0
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/issueenrollmentcode.d.ts +15 -0
- package/esm/models/operations/issueenrollmentcode.d.ts.map +1 -0
- package/esm/models/operations/issueenrollmentcode.js +12 -0
- package/esm/models/operations/issueenrollmentcode.js.map +1 -0
- package/esm/models/operations/listvalues.d.ts +15 -0
- package/esm/models/operations/listvalues.d.ts.map +1 -0
- package/esm/models/operations/listvalues.js +12 -0
- package/esm/models/operations/listvalues.js.map +1 -0
- package/esm/models/operations/putvalues.d.ts +23 -0
- package/esm/models/operations/putvalues.d.ts.map +1 -0
- package/esm/models/operations/putvalues.js +21 -0
- package/esm/models/operations/putvalues.js.map +1 -0
- package/esm/models/operations/verifyvalues.d.ts +18 -0
- package/esm/models/operations/verifyvalues.d.ts.map +1 -0
- package/esm/models/operations/verifyvalues.js +19 -0
- package/esm/models/operations/verifyvalues.js.map +1 -0
- package/esm/models/putvalue.d.ts +23 -0
- package/esm/models/putvalue.d.ts.map +1 -0
- package/esm/models/putvalue.js +16 -0
- package/esm/models/putvalue.js.map +1 -0
- package/esm/models/putvaluesrequest.d.ts +13 -0
- package/esm/models/putvaluesrequest.d.ts.map +1 -0
- package/esm/models/putvaluesrequest.js +13 -0
- package/esm/models/putvaluesrequest.js.map +1 -0
- package/esm/models/redisheartbeatdata.d.ts +157 -0
- package/esm/models/redisheartbeatdata.d.ts.map +1 -0
- package/esm/models/redisheartbeatdata.js +66 -0
- package/esm/models/redisheartbeatdata.js.map +1 -0
- package/esm/models/redisheartbeatstatus.d.ts +28 -0
- package/esm/models/redisheartbeatstatus.d.ts.map +1 -0
- package/esm/models/redisheartbeatstatus.js +20 -0
- package/esm/models/redisheartbeatstatus.js.map +1 -0
- package/esm/models/redismetricssample.d.ts +36 -0
- package/esm/models/redismetricssample.d.ts.map +1 -0
- package/esm/models/redismetricssample.js +15 -0
- package/esm/models/redismetricssample.js.map +1 -0
- package/esm/models/redisobservedconfig.d.ts +48 -0
- package/esm/models/redisobservedconfig.d.ts.map +1 -0
- package/esm/models/redisobservedconfig.js +21 -0
- package/esm/models/redisobservedconfig.js.map +1 -0
- package/esm/models/resourceheartbeatdata.d.ts +21 -2
- package/esm/models/resourceheartbeatdata.d.ts.map +1 -1
- package/esm/models/resourceheartbeatdata.js +10 -0
- package/esm/models/resourceheartbeatdata.js.map +1 -1
- package/esm/models/runtimeidentityproof.d.ts +71 -0
- package/esm/models/runtimeidentityproof.d.ts.map +1 -0
- package/esm/models/runtimeidentityproof.js +47 -0
- package/esm/models/runtimeidentityproof.js.map +1 -0
- package/esm/models/runtimepurpose.d.ts +113 -0
- package/esm/models/runtimepurpose.d.ts.map +1 -0
- package/esm/models/runtimepurpose.js +70 -0
- package/esm/models/runtimepurpose.js.map +1 -0
- package/esm/models/valuekind.d.ts +18 -0
- package/esm/models/valuekind.d.ts.map +1 -0
- package/esm/models/valuekind.js +16 -0
- package/esm/models/valuekind.js.map +1 -0
- package/esm/models/valueslotentry.d.ts +24 -0
- package/esm/models/valueslotentry.d.ts.map +1 -0
- package/esm/models/valueslotentry.js +18 -0
- package/esm/models/valueslotentry.js.map +1 -0
- package/esm/models/valueslotsresponse.d.ts +11 -0
- package/esm/models/valueslotsresponse.d.ts.map +1 -0
- package/esm/models/valueslotsresponse.js +14 -0
- package/esm/models/valueslotsresponse.js.map +1 -0
- package/esm/models/verifyresult.d.ts +11 -0
- package/esm/models/verifyresult.d.ts.map +1 -0
- package/esm/models/verifyresult.js +15 -0
- package/esm/models/verifyresult.js.map +1 -0
- package/esm/models/verifyvalue.d.ts +14 -0
- package/esm/models/verifyvalue.d.ts.map +1 -0
- package/esm/models/verifyvalue.js +13 -0
- package/esm/models/verifyvalue.js.map +1 -0
- package/esm/models/verifyvaluesrequest.d.ts +13 -0
- package/esm/models/verifyvaluesrequest.d.ts.map +1 -0
- package/esm/models/verifyvaluesrequest.js +13 -0
- package/esm/models/verifyvaluesrequest.js.map +1 -0
- package/esm/models/verifyvaluesresponse.d.ts +11 -0
- package/esm/models/verifyvaluesresponse.d.ts.map +1 -0
- package/esm/models/verifyvaluesresponse.js +14 -0
- package/esm/models/verifyvaluesresponse.js.map +1 -0
- package/esm/sdk/identity.d.ts +16 -0
- package/esm/sdk/identity.d.ts.map +1 -0
- package/esm/sdk/identity.js +30 -0
- package/esm/sdk/identity.js.map +1 -0
- package/esm/sdk/sdk.d.ts +6 -0
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +8 -0
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/sdk/values.d.ts +13 -0
- package/esm/sdk/values.d.ts.map +1 -0
- package/esm/sdk/values.js +27 -0
- package/esm/sdk/values.js.map +1 -0
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +3 -3
- package/src/funcs/identityEnrollRuntimeIdentity.ts +154 -0
- package/src/funcs/identityExchangeRuntimeIdentity.ts +157 -0
- package/src/funcs/identityIssueEnrollmentCode.ts +165 -0
- package/src/funcs/identityRotateRuntimeIdentity.ts +154 -0
- package/src/funcs/valuesDeleteValue.ts +165 -0
- package/src/funcs/valuesListValues.ts +161 -0
- package/src/funcs/valuesPutValues.ts +169 -0
- package/src/funcs/valuesVerifyValues.ts +172 -0
- package/src/lib/config.ts +2 -2
- package/src/models/agentsyncrequest.ts +27 -0
- package/src/models/aimodelavailabilityobservation.ts +23 -0
- package/src/models/aiquotawarning.ts +35 -0
- package/src/models/deploymentresponse.ts +15 -0
- package/src/models/externalbindingunion.ts +716 -46
- package/src/models/identityenrollmentrequest.ts +36 -0
- package/src/models/identityenrollmentresponse.ts +36 -0
- package/src/models/identityexchangerequest.ts +55 -0
- package/src/models/identityrotationrequest.ts +39 -0
- package/src/models/identityrotationresponse.ts +35 -0
- package/src/models/index.ts +24 -0
- package/src/models/installedsetup.ts +65 -0
- package/src/models/issuedenrollmentcode.ts +42 -0
- package/src/models/issuedruntimecredential.ts +35 -0
- package/src/models/managercapabilities.ts +8 -0
- package/src/models/networksettings.ts +2 -2
- package/src/models/operations/deletevalue.ts +39 -0
- package/src/models/operations/index.ts +5 -0
- package/src/models/operations/issueenrollmentcode.ts +33 -0
- package/src/models/operations/listvalues.ts +33 -0
- package/src/models/operations/putvalues.ts +49 -0
- package/src/models/operations/verifyvalues.ts +42 -0
- package/src/models/putvalue.ts +37 -0
- package/src/models/putvaluesrequest.ts +35 -0
- package/src/models/redisheartbeatdata.ts +284 -0
- package/src/models/redisheartbeatstatus.ts +61 -0
- package/src/models/redismetricssample.ts +57 -0
- package/src/models/redisobservedconfig.ts +75 -0
- package/src/models/resourceheartbeatdata.ts +42 -0
- package/src/models/runtimeidentityproof.ts +168 -0
- package/src/models/runtimepurpose.ts +266 -0
- package/src/models/valuekind.ts +26 -0
- package/src/models/valueslotentry.ts +46 -0
- package/src/models/valueslotsresponse.ts +34 -0
- package/src/models/verifyresult.ts +30 -0
- package/src/models/verifyvalue.ts +29 -0
- package/src/models/verifyvaluesrequest.ts +35 -0
- package/src/models/verifyvaluesresponse.ts +31 -0
- package/src/sdk/identity.ts +64 -0
- package/src/sdk/sdk.ts +12 -0
- package/src/sdk/values.ts +63 -0
|
@@ -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 valuesListValues(
|
|
29
|
+
client: AlienManagerCore,
|
|
30
|
+
request: operations.ListValuesRequest,
|
|
31
|
+
options?: RequestOptions,
|
|
32
|
+
): APIPromise<
|
|
33
|
+
Result<
|
|
34
|
+
models.ValueSlotsResponse,
|
|
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.ListValuesRequest,
|
|
55
|
+
options?: RequestOptions,
|
|
56
|
+
): Promise<
|
|
57
|
+
[
|
|
58
|
+
Result<
|
|
59
|
+
models.ValueSlotsResponse,
|
|
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.ListValuesRequest$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
|
+
scope: encodeSimple("scope", payload.scope, {
|
|
85
|
+
explode: false,
|
|
86
|
+
charEncoding: "percent",
|
|
87
|
+
}),
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const path = pathToFunc("/v1/values/{scope}")(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_values",
|
|
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.ValueSlotsResponse,
|
|
143
|
+
| AlienManagerError
|
|
144
|
+
| ResponseValidationError
|
|
145
|
+
| ConnectionError
|
|
146
|
+
| RequestAbortedError
|
|
147
|
+
| RequestTimeoutError
|
|
148
|
+
| InvalidRequestError
|
|
149
|
+
| UnexpectedClientError
|
|
150
|
+
| SDKValidationError
|
|
151
|
+
>(
|
|
152
|
+
M.json(200, models.ValueSlotsResponse$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,169 @@
|
|
|
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
|
+
/**
|
|
29
|
+
* Stores the values, replacing any held in the same slots. With the header `If-None-Match: *` the request must carry exactly one value, and it is written only when its slot is empty, atomically: of several concurrent conditional writes to one slot exactly one succeeds. A manager that serves values (`capabilities.values` = 1) honours this header.
|
|
30
|
+
*/
|
|
31
|
+
export function valuesPutValues(
|
|
32
|
+
client: AlienManagerCore,
|
|
33
|
+
request: operations.PutValuesRequest,
|
|
34
|
+
options?: RequestOptions,
|
|
35
|
+
): APIPromise<
|
|
36
|
+
Result<
|
|
37
|
+
models.ValueSlotsResponse,
|
|
38
|
+
| AlienManagerError
|
|
39
|
+
| ResponseValidationError
|
|
40
|
+
| ConnectionError
|
|
41
|
+
| RequestAbortedError
|
|
42
|
+
| RequestTimeoutError
|
|
43
|
+
| InvalidRequestError
|
|
44
|
+
| UnexpectedClientError
|
|
45
|
+
| SDKValidationError
|
|
46
|
+
>
|
|
47
|
+
> {
|
|
48
|
+
return new APIPromise($do(
|
|
49
|
+
client,
|
|
50
|
+
request,
|
|
51
|
+
options,
|
|
52
|
+
));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
async function $do(
|
|
56
|
+
client: AlienManagerCore,
|
|
57
|
+
request: operations.PutValuesRequest,
|
|
58
|
+
options?: RequestOptions,
|
|
59
|
+
): Promise<
|
|
60
|
+
[
|
|
61
|
+
Result<
|
|
62
|
+
models.ValueSlotsResponse,
|
|
63
|
+
| AlienManagerError
|
|
64
|
+
| ResponseValidationError
|
|
65
|
+
| ConnectionError
|
|
66
|
+
| RequestAbortedError
|
|
67
|
+
| RequestTimeoutError
|
|
68
|
+
| InvalidRequestError
|
|
69
|
+
| UnexpectedClientError
|
|
70
|
+
| SDKValidationError
|
|
71
|
+
>,
|
|
72
|
+
APICall,
|
|
73
|
+
]
|
|
74
|
+
> {
|
|
75
|
+
const parsed = safeParse(
|
|
76
|
+
request,
|
|
77
|
+
(value) => operations.PutValuesRequest$outboundSchema.parse(value),
|
|
78
|
+
"Input validation failed",
|
|
79
|
+
);
|
|
80
|
+
if (!parsed.ok) {
|
|
81
|
+
return [parsed, { status: "invalid" }];
|
|
82
|
+
}
|
|
83
|
+
const payload = parsed.value;
|
|
84
|
+
const body = encodeJSON("body", payload.PutValuesRequest, { explode: true });
|
|
85
|
+
|
|
86
|
+
const pathParams = {
|
|
87
|
+
scope: encodeSimple("scope", payload.scope, {
|
|
88
|
+
explode: false,
|
|
89
|
+
charEncoding: "percent",
|
|
90
|
+
}),
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
const path = pathToFunc("/v1/values/{scope}")(pathParams);
|
|
94
|
+
|
|
95
|
+
const headers = new Headers(compactMap({
|
|
96
|
+
"Content-Type": "application/json",
|
|
97
|
+
Accept: "application/json",
|
|
98
|
+
"If-None-Match": encodeSimple("If-None-Match", payload["If-None-Match"], {
|
|
99
|
+
explode: false,
|
|
100
|
+
charEncoding: "none",
|
|
101
|
+
}),
|
|
102
|
+
}));
|
|
103
|
+
|
|
104
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
105
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
106
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
107
|
+
|
|
108
|
+
const context = {
|
|
109
|
+
options: client._options,
|
|
110
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
111
|
+
operationID: "put_values",
|
|
112
|
+
oAuth2Scopes: null,
|
|
113
|
+
|
|
114
|
+
resolvedSecurity: requestSecurity,
|
|
115
|
+
|
|
116
|
+
securitySource: client._options.bearer,
|
|
117
|
+
retryConfig: options?.retries
|
|
118
|
+
|| client._options.retryConfig
|
|
119
|
+
|| { strategy: "none" },
|
|
120
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
const requestRes = client._createRequest(context, {
|
|
124
|
+
security: requestSecurity,
|
|
125
|
+
method: "PUT",
|
|
126
|
+
baseURL: options?.serverURL,
|
|
127
|
+
path: path,
|
|
128
|
+
headers: headers,
|
|
129
|
+
body: body,
|
|
130
|
+
userAgent: client._options.userAgent,
|
|
131
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
132
|
+
}, options);
|
|
133
|
+
if (!requestRes.ok) {
|
|
134
|
+
return [requestRes, { status: "invalid" }];
|
|
135
|
+
}
|
|
136
|
+
const req = requestRes.value;
|
|
137
|
+
|
|
138
|
+
const doResult = await client._do(req, {
|
|
139
|
+
context,
|
|
140
|
+
errorCodes: ["400", "403", "412", "413", "4XX", "5XX"],
|
|
141
|
+
retryConfig: context.retryConfig,
|
|
142
|
+
retryCodes: context.retryCodes,
|
|
143
|
+
});
|
|
144
|
+
if (!doResult.ok) {
|
|
145
|
+
return [doResult, { status: "request-error", request: req }];
|
|
146
|
+
}
|
|
147
|
+
const response = doResult.value;
|
|
148
|
+
|
|
149
|
+
const [result] = await M.match<
|
|
150
|
+
models.ValueSlotsResponse,
|
|
151
|
+
| AlienManagerError
|
|
152
|
+
| ResponseValidationError
|
|
153
|
+
| ConnectionError
|
|
154
|
+
| RequestAbortedError
|
|
155
|
+
| RequestTimeoutError
|
|
156
|
+
| InvalidRequestError
|
|
157
|
+
| UnexpectedClientError
|
|
158
|
+
| SDKValidationError
|
|
159
|
+
>(
|
|
160
|
+
M.json(200, models.ValueSlotsResponse$inboundSchema),
|
|
161
|
+
M.fail([400, 403, 412, 413, "4XX"]),
|
|
162
|
+
M.fail("5XX"),
|
|
163
|
+
)(response, req);
|
|
164
|
+
if (!result.ok) {
|
|
165
|
+
return [result, { status: "complete", request: req, response }];
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
return [result, { status: "complete", request: req, response }];
|
|
169
|
+
}
|
|
@@ -0,0 +1,172 @@
|
|
|
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 valuesVerifyValues(
|
|
29
|
+
client: AlienManagerCore,
|
|
30
|
+
scope: string,
|
|
31
|
+
verifyValuesRequest: models.VerifyValuesRequest,
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): APIPromise<
|
|
34
|
+
Result<
|
|
35
|
+
models.VerifyValuesResponse,
|
|
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
|
+
scope,
|
|
49
|
+
verifyValuesRequest,
|
|
50
|
+
options,
|
|
51
|
+
));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
async function $do(
|
|
55
|
+
client: AlienManagerCore,
|
|
56
|
+
scope: string,
|
|
57
|
+
verifyValuesRequest: models.VerifyValuesRequest,
|
|
58
|
+
options?: RequestOptions,
|
|
59
|
+
): Promise<
|
|
60
|
+
[
|
|
61
|
+
Result<
|
|
62
|
+
models.VerifyValuesResponse,
|
|
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.VerifyValuesRequest = {
|
|
76
|
+
scope: scope,
|
|
77
|
+
verifyValuesRequest: verifyValuesRequest,
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
const parsed = safeParse(
|
|
81
|
+
input,
|
|
82
|
+
(value) => operations.VerifyValuesRequest$outboundSchema.parse(value),
|
|
83
|
+
"Input validation failed",
|
|
84
|
+
);
|
|
85
|
+
if (!parsed.ok) {
|
|
86
|
+
return [parsed, { status: "invalid" }];
|
|
87
|
+
}
|
|
88
|
+
const payload = parsed.value;
|
|
89
|
+
const body = encodeJSON("body", payload.VerifyValuesRequest, {
|
|
90
|
+
explode: true,
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
const pathParams = {
|
|
94
|
+
scope: encodeSimple("scope", payload.scope, {
|
|
95
|
+
explode: false,
|
|
96
|
+
charEncoding: "percent",
|
|
97
|
+
}),
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
const path = pathToFunc("/v1/values/{scope}/verify")(pathParams);
|
|
101
|
+
|
|
102
|
+
const headers = new Headers(compactMap({
|
|
103
|
+
"Content-Type": "application/json",
|
|
104
|
+
Accept: "application/json",
|
|
105
|
+
}));
|
|
106
|
+
|
|
107
|
+
const secConfig = await extractSecurity(client._options.bearer);
|
|
108
|
+
const securityInput = secConfig == null ? {} : { bearer: secConfig };
|
|
109
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
110
|
+
|
|
111
|
+
const context = {
|
|
112
|
+
options: client._options,
|
|
113
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
114
|
+
operationID: "verify_values",
|
|
115
|
+
oAuth2Scopes: null,
|
|
116
|
+
|
|
117
|
+
resolvedSecurity: requestSecurity,
|
|
118
|
+
|
|
119
|
+
securitySource: client._options.bearer,
|
|
120
|
+
retryConfig: options?.retries
|
|
121
|
+
|| client._options.retryConfig
|
|
122
|
+
|| { strategy: "none" },
|
|
123
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
const requestRes = client._createRequest(context, {
|
|
127
|
+
security: requestSecurity,
|
|
128
|
+
method: "POST",
|
|
129
|
+
baseURL: options?.serverURL,
|
|
130
|
+
path: path,
|
|
131
|
+
headers: headers,
|
|
132
|
+
body: body,
|
|
133
|
+
userAgent: client._options.userAgent,
|
|
134
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
135
|
+
}, options);
|
|
136
|
+
if (!requestRes.ok) {
|
|
137
|
+
return [requestRes, { status: "invalid" }];
|
|
138
|
+
}
|
|
139
|
+
const req = requestRes.value;
|
|
140
|
+
|
|
141
|
+
const doResult = await client._do(req, {
|
|
142
|
+
context,
|
|
143
|
+
errorCodes: ["400", "429", "4XX", "5XX"],
|
|
144
|
+
retryConfig: context.retryConfig,
|
|
145
|
+
retryCodes: context.retryCodes,
|
|
146
|
+
});
|
|
147
|
+
if (!doResult.ok) {
|
|
148
|
+
return [doResult, { status: "request-error", request: req }];
|
|
149
|
+
}
|
|
150
|
+
const response = doResult.value;
|
|
151
|
+
|
|
152
|
+
const [result] = await M.match<
|
|
153
|
+
models.VerifyValuesResponse,
|
|
154
|
+
| AlienManagerError
|
|
155
|
+
| ResponseValidationError
|
|
156
|
+
| ConnectionError
|
|
157
|
+
| RequestAbortedError
|
|
158
|
+
| RequestTimeoutError
|
|
159
|
+
| InvalidRequestError
|
|
160
|
+
| UnexpectedClientError
|
|
161
|
+
| SDKValidationError
|
|
162
|
+
>(
|
|
163
|
+
M.json(200, models.VerifyValuesResponse$inboundSchema),
|
|
164
|
+
M.fail([400, 429, "4XX"]),
|
|
165
|
+
M.fail("5XX"),
|
|
166
|
+
)(response, req);
|
|
167
|
+
if (!result.ok) {
|
|
168
|
+
return [result, { status: "complete", request: req, response }];
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
return [result, { status: "complete", request: req, response }];
|
|
172
|
+
}
|
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.64",
|
|
62
62
|
genVersion: "2.788.15",
|
|
63
63
|
userAgent:
|
|
64
|
-
"speakeasy-sdk/typescript 3.3.
|
|
64
|
+
"speakeasy-sdk/typescript 3.3.64 2.788.15 1.0.0 @alienplatform/manager-api",
|
|
65
65
|
} as const;
|
|
@@ -13,6 +13,11 @@ import {
|
|
|
13
13
|
ExecutionClaim$Outbound,
|
|
14
14
|
ExecutionClaim$outboundSchema,
|
|
15
15
|
} from "./executionclaim.js";
|
|
16
|
+
import {
|
|
17
|
+
InstalledSetup,
|
|
18
|
+
InstalledSetup$Outbound,
|
|
19
|
+
InstalledSetup$outboundSchema,
|
|
20
|
+
} from "./installedsetup.js";
|
|
16
21
|
import {
|
|
17
22
|
ObservedApplicationReport,
|
|
18
23
|
ObservedApplicationReport$Outbound,
|
|
@@ -82,12 +87,28 @@ export type AgentSyncRequest = {
|
|
|
82
87
|
* Absent for older Operators. This report has no secret values.
|
|
83
88
|
*/
|
|
84
89
|
dynamicContainers?: Array<DynamicContainerReport> | null | undefined;
|
|
90
|
+
/**
|
|
91
|
+
* The Operator runs a settled release but lost its config (it cleared
|
|
92
|
+
*
|
|
93
|
+
* @remarks
|
|
94
|
+
* it in token mode, then enrolled). Answered with the current release.
|
|
95
|
+
*/
|
|
96
|
+
installedConfigMissing?: boolean | undefined;
|
|
97
|
+
installedSetup?: InstalledSetup | null | undefined;
|
|
85
98
|
/**
|
|
86
99
|
* Missing on actors that only understand protocol1.
|
|
87
100
|
*/
|
|
88
101
|
maxSupportedDeploymentProtocolVersion?: number | null | undefined;
|
|
89
102
|
operationsConfig?: OperationsConfig | null | undefined;
|
|
90
103
|
operatorImage?: OperatorImageReport | null | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* The Operator rewrote the pull Secret its Deployment references from
|
|
106
|
+
*
|
|
107
|
+
* @remarks
|
|
108
|
+
* its own registry pull credential. Sent on every sync while that holds.
|
|
109
|
+
* The manager keeps the deployment token until it sees this.
|
|
110
|
+
*/
|
|
111
|
+
pullSecretRefreshed?: boolean | undefined;
|
|
91
112
|
};
|
|
92
113
|
|
|
93
114
|
/** @internal */
|
|
@@ -105,9 +126,12 @@ export type AgentSyncRequest$Outbound = {
|
|
|
105
126
|
supportsTunnels?: boolean | undefined;
|
|
106
127
|
application?: ObservedApplicationReport$Outbound | null | undefined;
|
|
107
128
|
dynamicContainers?: Array<DynamicContainerReport$Outbound> | null | undefined;
|
|
129
|
+
installedConfigMissing?: boolean | undefined;
|
|
130
|
+
installedSetup?: InstalledSetup$Outbound | null | undefined;
|
|
108
131
|
maxSupportedDeploymentProtocolVersion?: number | null | undefined;
|
|
109
132
|
operationsConfig?: OperationsConfig$Outbound | null | undefined;
|
|
110
133
|
operatorImage?: OperatorImageReport$Outbound | null | undefined;
|
|
134
|
+
pullSecretRefreshed?: boolean | undefined;
|
|
111
135
|
};
|
|
112
136
|
|
|
113
137
|
/** @internal */
|
|
@@ -130,9 +154,12 @@ export const AgentSyncRequest$outboundSchema: z.ZodType<
|
|
|
130
154
|
application: z.nullable(ObservedApplicationReport$outboundSchema).optional(),
|
|
131
155
|
dynamicContainers: z.nullable(z.array(DynamicContainerReport$outboundSchema))
|
|
132
156
|
.optional(),
|
|
157
|
+
installedConfigMissing: z.boolean().optional(),
|
|
158
|
+
installedSetup: z.nullable(InstalledSetup$outboundSchema).optional(),
|
|
133
159
|
maxSupportedDeploymentProtocolVersion: z.nullable(z.int()).optional(),
|
|
134
160
|
operationsConfig: z.nullable(OperationsConfig$outboundSchema).optional(),
|
|
135
161
|
operatorImage: z.nullable(OperatorImageReport$outboundSchema).optional(),
|
|
162
|
+
pullSecretRefreshed: z.boolean().optional(),
|
|
136
163
|
});
|
|
137
164
|
|
|
138
165
|
export function agentSyncRequestToJSON(
|
|
@@ -12,6 +12,11 @@ import {
|
|
|
12
12
|
AiModelAvailability,
|
|
13
13
|
AiModelAvailability$outboundSchema,
|
|
14
14
|
} from "./aimodelavailability.js";
|
|
15
|
+
import {
|
|
16
|
+
AiQuotaWarning,
|
|
17
|
+
AiQuotaWarning$Outbound,
|
|
18
|
+
AiQuotaWarning$outboundSchema,
|
|
19
|
+
} from "./aiquotawarning.js";
|
|
15
20
|
import { ClientApi, ClientApi$outboundSchema } from "./clientapi.js";
|
|
16
21
|
|
|
17
22
|
export type AiModelAvailabilityObservation = {
|
|
@@ -21,7 +26,21 @@ export type AiModelAvailabilityObservation = {
|
|
|
21
26
|
clientApis: Array<ClientApi>;
|
|
22
27
|
errorCode?: string | null | undefined;
|
|
23
28
|
publicModelId: string;
|
|
29
|
+
/**
|
|
30
|
+
* Applied quotas far below the cloud's default for this model. Empty when none were read
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* or none are low.
|
|
34
|
+
*/
|
|
35
|
+
quotaWarnings?: Array<AiQuotaWarning> | undefined;
|
|
24
36
|
testedAt?: Date | null | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Requests the cloud throttled for this model in the last hour, from the cloud's own
|
|
39
|
+
*
|
|
40
|
+
* @remarks
|
|
41
|
+
* metrics. `None` when not read; `Some(0)` is a real zero.
|
|
42
|
+
*/
|
|
43
|
+
throttledLastHour?: number | null | undefined;
|
|
25
44
|
};
|
|
26
45
|
|
|
27
46
|
/** @internal */
|
|
@@ -32,7 +51,9 @@ export type AiModelAvailabilityObservation$Outbound = {
|
|
|
32
51
|
clientApis: Array<string>;
|
|
33
52
|
errorCode?: string | null | undefined;
|
|
34
53
|
publicModelId: string;
|
|
54
|
+
quotaWarnings?: Array<AiQuotaWarning$Outbound> | undefined;
|
|
35
55
|
testedAt?: string | null | undefined;
|
|
56
|
+
throttledLastHour?: number | null | undefined;
|
|
36
57
|
};
|
|
37
58
|
|
|
38
59
|
/** @internal */
|
|
@@ -46,7 +67,9 @@ export const AiModelAvailabilityObservation$outboundSchema: z.ZodType<
|
|
|
46
67
|
clientApis: z.array(ClientApi$outboundSchema),
|
|
47
68
|
errorCode: z.nullable(z.string()).optional(),
|
|
48
69
|
publicModelId: z.string(),
|
|
70
|
+
quotaWarnings: z.array(AiQuotaWarning$outboundSchema).optional(),
|
|
49
71
|
testedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
72
|
+
throttledLastHour: z.nullable(z.int()).optional(),
|
|
50
73
|
});
|
|
51
74
|
|
|
52
75
|
export function aiModelAvailabilityObservationToJSON(
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* One quota the account has set well below the cloud's default (under 10%).
|
|
9
|
+
*/
|
|
10
|
+
export type AiQuotaWarning = {
|
|
11
|
+
applied: number;
|
|
12
|
+
default: number;
|
|
13
|
+
quotaName: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export type AiQuotaWarning$Outbound = {
|
|
18
|
+
applied: number;
|
|
19
|
+
default: number;
|
|
20
|
+
quotaName: string;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const AiQuotaWarning$outboundSchema: z.ZodType<
|
|
25
|
+
AiQuotaWarning$Outbound,
|
|
26
|
+
AiQuotaWarning
|
|
27
|
+
> = z.object({
|
|
28
|
+
applied: z.number(),
|
|
29
|
+
default: z.number(),
|
|
30
|
+
quotaName: z.string(),
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function aiQuotaWarningToJSON(aiQuotaWarning: AiQuotaWarning): string {
|
|
34
|
+
return JSON.stringify(AiQuotaWarning$outboundSchema.parse(aiQuotaWarning));
|
|
35
|
+
}
|
|
@@ -31,6 +31,19 @@ export type DeploymentResponse = {
|
|
|
31
31
|
id: string;
|
|
32
32
|
importSource?: ImportSourceKind | null | undefined;
|
|
33
33
|
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* Whether that Operator is older than the Operator this manager's charts
|
|
36
|
+
*
|
|
37
|
+
* @remarks
|
|
38
|
+
* install, so the next chart version would upgrade it. Absent when the
|
|
39
|
+
* Operator version is unknown, isn't a release version, or this manager
|
|
40
|
+
* serves no charts.
|
|
41
|
+
*/
|
|
42
|
+
operatorBehindTarget?: boolean | null | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Version of the Operator that last reported this deployment.
|
|
45
|
+
*/
|
|
46
|
+
operatorVersion?: string | null | undefined;
|
|
34
47
|
/**
|
|
35
48
|
* Represents the target cloud platform.
|
|
36
49
|
*/
|
|
@@ -71,6 +84,8 @@ export const DeploymentResponse$inboundSchema: z.ZodType<
|
|
|
71
84
|
id: z.string(),
|
|
72
85
|
importSource: z.nullable(ImportSourceKind$inboundSchema).optional(),
|
|
73
86
|
name: z.string(),
|
|
87
|
+
operatorBehindTarget: z.nullable(z.boolean()).optional(),
|
|
88
|
+
operatorVersion: z.nullable(z.string()).optional(),
|
|
74
89
|
platform: PlatformEnum$inboundSchema,
|
|
75
90
|
projectId: z.string(),
|
|
76
91
|
retryRequested: z.boolean(),
|