@alienplatform/manager-api 3.3.61 → 3.3.63

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.
Files changed (249) hide show
  1. package/README.md +24 -2
  2. package/esm/funcs/identityEnrollRuntimeIdentity.d.ts +11 -0
  3. package/esm/funcs/identityEnrollRuntimeIdentity.d.ts.map +1 -0
  4. package/esm/funcs/identityEnrollRuntimeIdentity.js +72 -0
  5. package/esm/funcs/identityEnrollRuntimeIdentity.js.map +1 -0
  6. package/esm/funcs/identityExchangeRuntimeIdentity.d.ts +14 -0
  7. package/esm/funcs/identityExchangeRuntimeIdentity.d.ts.map +1 -0
  8. package/esm/funcs/identityExchangeRuntimeIdentity.js +75 -0
  9. package/esm/funcs/identityExchangeRuntimeIdentity.js.map +1 -0
  10. package/esm/funcs/identityIssueEnrollmentCode.d.ts +15 -0
  11. package/esm/funcs/identityIssueEnrollmentCode.d.ts.map +1 -0
  12. package/esm/funcs/identityIssueEnrollmentCode.js +81 -0
  13. package/esm/funcs/identityIssueEnrollmentCode.js.map +1 -0
  14. package/esm/funcs/identityRotateRuntimeIdentity.d.ts +11 -0
  15. package/esm/funcs/identityRotateRuntimeIdentity.d.ts.map +1 -0
  16. package/esm/funcs/identityRotateRuntimeIdentity.js +72 -0
  17. package/esm/funcs/identityRotateRuntimeIdentity.js.map +1 -0
  18. package/esm/funcs/valuesDeleteValue.d.ts +11 -0
  19. package/esm/funcs/valuesDeleteValue.d.ts.map +1 -0
  20. package/esm/funcs/valuesDeleteValue.js +82 -0
  21. package/esm/funcs/valuesDeleteValue.js.map +1 -0
  22. package/esm/funcs/valuesListValues.d.ts +12 -0
  23. package/esm/funcs/valuesListValues.d.ts.map +1 -0
  24. package/esm/funcs/valuesListValues.js +78 -0
  25. package/esm/funcs/valuesListValues.js.map +1 -0
  26. package/esm/funcs/valuesPutValues.d.ts +15 -0
  27. package/esm/funcs/valuesPutValues.d.ts.map +1 -0
  28. package/esm/funcs/valuesPutValues.js +86 -0
  29. package/esm/funcs/valuesPutValues.js.map +1 -0
  30. package/esm/funcs/valuesVerifyValues.d.ts +11 -0
  31. package/esm/funcs/valuesVerifyValues.d.ts.map +1 -0
  32. package/esm/funcs/valuesVerifyValues.js +85 -0
  33. package/esm/funcs/valuesVerifyValues.js.map +1 -0
  34. package/esm/lib/config.d.ts +2 -2
  35. package/esm/lib/config.js +2 -2
  36. package/esm/models/agentsyncrequest.d.ts +20 -0
  37. package/esm/models/agentsyncrequest.d.ts.map +1 -1
  38. package/esm/models/agentsyncrequest.js +4 -0
  39. package/esm/models/agentsyncrequest.js.map +1 -1
  40. package/esm/models/aimodelavailabilityobservation.d.ts +17 -0
  41. package/esm/models/aimodelavailabilityobservation.d.ts.map +1 -1
  42. package/esm/models/aimodelavailabilityobservation.js +3 -0
  43. package/esm/models/aimodelavailabilityobservation.js.map +1 -1
  44. package/esm/models/aiquotawarning.d.ts +19 -0
  45. package/esm/models/aiquotawarning.d.ts.map +1 -0
  46. package/esm/models/aiquotawarning.js +14 -0
  47. package/esm/models/aiquotawarning.js.map +1 -0
  48. package/esm/models/deploymentresponse.d.ts +13 -0
  49. package/esm/models/deploymentresponse.d.ts.map +1 -1
  50. package/esm/models/deploymentresponse.js +2 -0
  51. package/esm/models/deploymentresponse.js.map +1 -1
  52. package/esm/models/externalbindingunion.d.ts +353 -18
  53. package/esm/models/externalbindingunion.d.ts.map +1 -1
  54. package/esm/models/externalbindingunion.js +241 -20
  55. package/esm/models/externalbindingunion.js.map +1 -1
  56. package/esm/models/identityenrollmentrequest.d.ts +17 -0
  57. package/esm/models/identityenrollmentrequest.d.ts.map +1 -0
  58. package/esm/models/identityenrollmentrequest.js +13 -0
  59. package/esm/models/identityenrollmentrequest.js.map +1 -0
  60. package/esm/models/identityenrollmentresponse.d.ts +13 -0
  61. package/esm/models/identityenrollmentresponse.d.ts.map +1 -0
  62. package/esm/models/identityenrollmentresponse.js +16 -0
  63. package/esm/models/identityenrollmentresponse.js.map +1 -0
  64. package/esm/models/identityexchangerequest.d.ts +27 -0
  65. package/esm/models/identityexchangerequest.d.ts.map +1 -0
  66. package/esm/models/identityexchangerequest.js +16 -0
  67. package/esm/models/identityexchangerequest.js.map +1 -0
  68. package/esm/models/identityrotationrequest.d.ts +19 -0
  69. package/esm/models/identityrotationrequest.d.ts.map +1 -0
  70. package/esm/models/identityrotationrequest.js +14 -0
  71. package/esm/models/identityrotationrequest.js.map +1 -0
  72. package/esm/models/identityrotationresponse.d.ts +14 -0
  73. package/esm/models/identityrotationresponse.d.ts.map +1 -0
  74. package/esm/models/identityrotationresponse.js +14 -0
  75. package/esm/models/identityrotationresponse.js.map +1 -0
  76. package/esm/models/index.d.ts +24 -0
  77. package/esm/models/index.d.ts.map +1 -1
  78. package/esm/models/index.js +24 -0
  79. package/esm/models/index.js.map +1 -1
  80. package/esm/models/installedsetup.d.ts +46 -0
  81. package/esm/models/installedsetup.d.ts.map +1 -0
  82. package/esm/models/installedsetup.js +17 -0
  83. package/esm/models/installedsetup.js.map +1 -0
  84. package/esm/models/issuedenrollmentcode.d.ts +19 -0
  85. package/esm/models/issuedenrollmentcode.d.ts.map +1 -0
  86. package/esm/models/issuedenrollmentcode.js +16 -0
  87. package/esm/models/issuedenrollmentcode.js.map +1 -0
  88. package/esm/models/issuedruntimecredential.d.ts +14 -0
  89. package/esm/models/issuedruntimecredential.d.ts.map +1 -0
  90. package/esm/models/issuedruntimecredential.js +14 -0
  91. package/esm/models/issuedruntimecredential.js.map +1 -0
  92. package/esm/models/managercapabilities.d.ts +7 -0
  93. package/esm/models/managercapabilities.d.ts.map +1 -1
  94. package/esm/models/managercapabilities.js +1 -0
  95. package/esm/models/managercapabilities.js.map +1 -1
  96. package/esm/models/networksettings.d.ts +2 -2
  97. package/esm/models/operations/deletevalue.d.ts +20 -0
  98. package/esm/models/operations/deletevalue.d.ts.map +1 -0
  99. package/esm/models/operations/deletevalue.js +13 -0
  100. package/esm/models/operations/deletevalue.js.map +1 -0
  101. package/esm/models/operations/index.d.ts +5 -0
  102. package/esm/models/operations/index.d.ts.map +1 -1
  103. package/esm/models/operations/index.js +5 -0
  104. package/esm/models/operations/index.js.map +1 -1
  105. package/esm/models/operations/issueenrollmentcode.d.ts +15 -0
  106. package/esm/models/operations/issueenrollmentcode.d.ts.map +1 -0
  107. package/esm/models/operations/issueenrollmentcode.js +12 -0
  108. package/esm/models/operations/issueenrollmentcode.js.map +1 -0
  109. package/esm/models/operations/listvalues.d.ts +15 -0
  110. package/esm/models/operations/listvalues.d.ts.map +1 -0
  111. package/esm/models/operations/listvalues.js +12 -0
  112. package/esm/models/operations/listvalues.js.map +1 -0
  113. package/esm/models/operations/putvalues.d.ts +23 -0
  114. package/esm/models/operations/putvalues.d.ts.map +1 -0
  115. package/esm/models/operations/putvalues.js +21 -0
  116. package/esm/models/operations/putvalues.js.map +1 -0
  117. package/esm/models/operations/verifyvalues.d.ts +18 -0
  118. package/esm/models/operations/verifyvalues.d.ts.map +1 -0
  119. package/esm/models/operations/verifyvalues.js +19 -0
  120. package/esm/models/operations/verifyvalues.js.map +1 -0
  121. package/esm/models/putvalue.d.ts +23 -0
  122. package/esm/models/putvalue.d.ts.map +1 -0
  123. package/esm/models/putvalue.js +16 -0
  124. package/esm/models/putvalue.js.map +1 -0
  125. package/esm/models/putvaluesrequest.d.ts +13 -0
  126. package/esm/models/putvaluesrequest.d.ts.map +1 -0
  127. package/esm/models/putvaluesrequest.js +13 -0
  128. package/esm/models/putvaluesrequest.js.map +1 -0
  129. package/esm/models/redisheartbeatdata.d.ts +157 -0
  130. package/esm/models/redisheartbeatdata.d.ts.map +1 -0
  131. package/esm/models/redisheartbeatdata.js +66 -0
  132. package/esm/models/redisheartbeatdata.js.map +1 -0
  133. package/esm/models/redisheartbeatstatus.d.ts +28 -0
  134. package/esm/models/redisheartbeatstatus.d.ts.map +1 -0
  135. package/esm/models/redisheartbeatstatus.js +20 -0
  136. package/esm/models/redisheartbeatstatus.js.map +1 -0
  137. package/esm/models/redismetricssample.d.ts +36 -0
  138. package/esm/models/redismetricssample.d.ts.map +1 -0
  139. package/esm/models/redismetricssample.js +15 -0
  140. package/esm/models/redismetricssample.js.map +1 -0
  141. package/esm/models/redisobservedconfig.d.ts +48 -0
  142. package/esm/models/redisobservedconfig.d.ts.map +1 -0
  143. package/esm/models/redisobservedconfig.js +21 -0
  144. package/esm/models/redisobservedconfig.js.map +1 -0
  145. package/esm/models/resourceheartbeatdata.d.ts +21 -2
  146. package/esm/models/resourceheartbeatdata.d.ts.map +1 -1
  147. package/esm/models/resourceheartbeatdata.js +10 -0
  148. package/esm/models/resourceheartbeatdata.js.map +1 -1
  149. package/esm/models/runtimeidentityproof.d.ts +71 -0
  150. package/esm/models/runtimeidentityproof.d.ts.map +1 -0
  151. package/esm/models/runtimeidentityproof.js +47 -0
  152. package/esm/models/runtimeidentityproof.js.map +1 -0
  153. package/esm/models/runtimepurpose.d.ts +113 -0
  154. package/esm/models/runtimepurpose.d.ts.map +1 -0
  155. package/esm/models/runtimepurpose.js +70 -0
  156. package/esm/models/runtimepurpose.js.map +1 -0
  157. package/esm/models/valuekind.d.ts +18 -0
  158. package/esm/models/valuekind.d.ts.map +1 -0
  159. package/esm/models/valuekind.js +16 -0
  160. package/esm/models/valuekind.js.map +1 -0
  161. package/esm/models/valueslotentry.d.ts +24 -0
  162. package/esm/models/valueslotentry.d.ts.map +1 -0
  163. package/esm/models/valueslotentry.js +18 -0
  164. package/esm/models/valueslotentry.js.map +1 -0
  165. package/esm/models/valueslotsresponse.d.ts +11 -0
  166. package/esm/models/valueslotsresponse.d.ts.map +1 -0
  167. package/esm/models/valueslotsresponse.js +14 -0
  168. package/esm/models/valueslotsresponse.js.map +1 -0
  169. package/esm/models/verifyresult.d.ts +11 -0
  170. package/esm/models/verifyresult.d.ts.map +1 -0
  171. package/esm/models/verifyresult.js +15 -0
  172. package/esm/models/verifyresult.js.map +1 -0
  173. package/esm/models/verifyvalue.d.ts +14 -0
  174. package/esm/models/verifyvalue.d.ts.map +1 -0
  175. package/esm/models/verifyvalue.js +13 -0
  176. package/esm/models/verifyvalue.js.map +1 -0
  177. package/esm/models/verifyvaluesrequest.d.ts +13 -0
  178. package/esm/models/verifyvaluesrequest.d.ts.map +1 -0
  179. package/esm/models/verifyvaluesrequest.js +13 -0
  180. package/esm/models/verifyvaluesrequest.js.map +1 -0
  181. package/esm/models/verifyvaluesresponse.d.ts +11 -0
  182. package/esm/models/verifyvaluesresponse.d.ts.map +1 -0
  183. package/esm/models/verifyvaluesresponse.js +14 -0
  184. package/esm/models/verifyvaluesresponse.js.map +1 -0
  185. package/esm/sdk/identity.d.ts +16 -0
  186. package/esm/sdk/identity.d.ts.map +1 -0
  187. package/esm/sdk/identity.js +30 -0
  188. package/esm/sdk/identity.js.map +1 -0
  189. package/esm/sdk/sdk.d.ts +6 -0
  190. package/esm/sdk/sdk.d.ts.map +1 -1
  191. package/esm/sdk/sdk.js +8 -0
  192. package/esm/sdk/sdk.js.map +1 -1
  193. package/esm/sdk/values.d.ts +13 -0
  194. package/esm/sdk/values.d.ts.map +1 -0
  195. package/esm/sdk/values.js +27 -0
  196. package/esm/sdk/values.js.map +1 -0
  197. package/examples/package-lock.json +1 -1
  198. package/jsr.json +1 -1
  199. package/package.json +3 -3
  200. package/src/funcs/identityEnrollRuntimeIdentity.ts +154 -0
  201. package/src/funcs/identityExchangeRuntimeIdentity.ts +157 -0
  202. package/src/funcs/identityIssueEnrollmentCode.ts +165 -0
  203. package/src/funcs/identityRotateRuntimeIdentity.ts +154 -0
  204. package/src/funcs/valuesDeleteValue.ts +165 -0
  205. package/src/funcs/valuesListValues.ts +161 -0
  206. package/src/funcs/valuesPutValues.ts +169 -0
  207. package/src/funcs/valuesVerifyValues.ts +172 -0
  208. package/src/lib/config.ts +2 -2
  209. package/src/models/agentsyncrequest.ts +27 -0
  210. package/src/models/aimodelavailabilityobservation.ts +23 -0
  211. package/src/models/aiquotawarning.ts +35 -0
  212. package/src/models/deploymentresponse.ts +15 -0
  213. package/src/models/externalbindingunion.ts +716 -46
  214. package/src/models/identityenrollmentrequest.ts +36 -0
  215. package/src/models/identityenrollmentresponse.ts +36 -0
  216. package/src/models/identityexchangerequest.ts +55 -0
  217. package/src/models/identityrotationrequest.ts +39 -0
  218. package/src/models/identityrotationresponse.ts +35 -0
  219. package/src/models/index.ts +24 -0
  220. package/src/models/installedsetup.ts +65 -0
  221. package/src/models/issuedenrollmentcode.ts +42 -0
  222. package/src/models/issuedruntimecredential.ts +35 -0
  223. package/src/models/managercapabilities.ts +8 -0
  224. package/src/models/networksettings.ts +2 -2
  225. package/src/models/operations/deletevalue.ts +39 -0
  226. package/src/models/operations/index.ts +5 -0
  227. package/src/models/operations/issueenrollmentcode.ts +33 -0
  228. package/src/models/operations/listvalues.ts +33 -0
  229. package/src/models/operations/putvalues.ts +49 -0
  230. package/src/models/operations/verifyvalues.ts +42 -0
  231. package/src/models/putvalue.ts +37 -0
  232. package/src/models/putvaluesrequest.ts +35 -0
  233. package/src/models/redisheartbeatdata.ts +284 -0
  234. package/src/models/redisheartbeatstatus.ts +61 -0
  235. package/src/models/redismetricssample.ts +57 -0
  236. package/src/models/redisobservedconfig.ts +75 -0
  237. package/src/models/resourceheartbeatdata.ts +42 -0
  238. package/src/models/runtimeidentityproof.ts +168 -0
  239. package/src/models/runtimepurpose.ts +266 -0
  240. package/src/models/valuekind.ts +26 -0
  241. package/src/models/valueslotentry.ts +46 -0
  242. package/src/models/valueslotsresponse.ts +34 -0
  243. package/src/models/verifyresult.ts +30 -0
  244. package/src/models/verifyvalue.ts +29 -0
  245. package/src/models/verifyvaluesrequest.ts +35 -0
  246. package/src/models/verifyvaluesresponse.ts +31 -0
  247. package/src/sdk/identity.ts +64 -0
  248. package/src/sdk/sdk.ts +12 -0
  249. 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",
61
+ sdkVersion: "3.3.63",
62
62
  genVersion: "2.788.15",
63
63
  userAgent:
64
- "speakeasy-sdk/typescript 3.3.61 2.788.15 1.0.0 @alienplatform/manager-api",
64
+ "speakeasy-sdk/typescript 3.3.63 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(),