@aionixone/client-aionixfn 0.0.0-stage → 0.3.0-beta.3

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 (44) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +11 -0
  3. package/dist/generated/authoring.d.ts +18 -0
  4. package/dist/generated/authoring.d.ts.map +1 -0
  5. package/dist/generated/authoring.js +6 -0
  6. package/dist/generated/authoring.js.map +1 -0
  7. package/dist/generated/catalog.d.ts +373 -0
  8. package/dist/generated/catalog.d.ts.map +1 -0
  9. package/dist/generated/catalog.js +373 -0
  10. package/dist/generated/catalog.js.map +1 -0
  11. package/dist/generated/index.d.ts +7 -0
  12. package/dist/generated/index.d.ts.map +1 -0
  13. package/dist/generated/index.js +8 -0
  14. package/dist/generated/index.js.map +1 -0
  15. package/dist/generated/schema_types.d.ts +41 -0
  16. package/dist/generated/schema_types.d.ts.map +1 -0
  17. package/dist/generated/schema_types.js +3 -0
  18. package/dist/generated/schema_types.js.map +1 -0
  19. package/dist/generated/service.d.ts +436 -0
  20. package/dist/generated/service.d.ts.map +1 -0
  21. package/dist/generated/service.js +561 -0
  22. package/dist/generated/service.js.map +1 -0
  23. package/dist/generated/trn.d.ts +51 -0
  24. package/dist/generated/trn.d.ts.map +1 -0
  25. package/dist/generated/trn.js +241 -0
  26. package/dist/generated/trn.js.map +1 -0
  27. package/dist/generated/types.d.ts +240 -0
  28. package/dist/generated/types.d.ts.map +1 -0
  29. package/dist/generated/types.js +3 -0
  30. package/dist/generated/types.js.map +1 -0
  31. package/dist/index.d.ts +2 -0
  32. package/dist/index.d.ts.map +1 -0
  33. package/dist/index.js +2 -0
  34. package/dist/index.js.map +1 -0
  35. package/package.json +30 -4
  36. package/src/generated/authoring.ts +6 -0
  37. package/src/generated/catalog.ts +376 -0
  38. package/src/generated/index.ts +8 -0
  39. package/src/generated/schema_types.ts +42 -0
  40. package/src/generated/service.ts +596 -0
  41. package/src/generated/trn.ts +336 -0
  42. package/src/generated/types.ts +272 -0
  43. package/src/index.ts +1 -0
  44. package/README.md +0 -3
@@ -0,0 +1,561 @@
1
+ // @generated by xtask ts-client-export; DO NOT EDIT
2
+ import { encodePathParam, withQuery } from '@aionixone/client-core';
3
+ import { OPERATIONS } from './catalog.js';
4
+ /** The `aionixfn` service. */
5
+ export class AionixfnService {
6
+ function;
7
+ invocation;
8
+ layer;
9
+ /** Not part of the public API: `AionixOne` constructs every service. */
10
+ constructor(engine) {
11
+ this.function = new AionixfnFunctionResource(engine);
12
+ this.invocation = new AionixfnInvocationResource(engine);
13
+ this.layer = new AionixfnLayerResource(engine);
14
+ }
15
+ }
16
+ /** The `function` operations of the `aionixfn` service. */
17
+ export class AionixfnFunctionResource {
18
+ #engine;
19
+ /** Not part of the public API. */
20
+ constructor(engine) {
21
+ this.#engine = engine;
22
+ }
23
+ /**
24
+ * Execute function
25
+ *
26
+ * Execute the current function version or an exact qualified version without creating a durable invocation
27
+ *
28
+ * Run the current version selected by a stable Function TRN, or the exact version selected by a qualified Function TRN, without creating a durable invocation
29
+ *
30
+ * Replay: not idempotent; an attempt answered with `AionixFn_ExecutionCapacityUnavailable` did not run.
31
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Execution_PayloadLimitExceeded`, `AionixFn_FunctionNotFound`, `AionixFn_VersionNotFound`, `AionixFn_LayerNotFound`, `AionixFn_LayerVersionNotFound`, `AionixFn_InputSchemaViolation`, `AionixFn_ExecutionProfileUnsupported`, `AionixFn_ExecutionBackendUnavailable`, `AionixFn_ExecutionCapacityUnavailable`, `AionixFn_WorkloadConcurrencyLimitExceeded`, `AionixFn_Timeout`, `AionixFn_ExecutionCancelled`, `AionixFn_UnknownEffectOutcome`, `AionixFn_ExecutionFailed`, `AionixFn_OutputLimitExceeded`, `AionixFn_OutOfMemory`, `AionixFn_ProcessLimitExceeded`, `AionixFn_ExecutionEnvelopeCleanupFailed`, `AionixFn_InvocationFailed`, `Internal_IdempotencyKeyReused`, `Internal_Conflict`, `Internal_ConfigurationError`.
32
+ *
33
+ * @param trn AionixFn resource TRN in the route path, for example trn:aionixfn:tenant:test0001:function/smoke/echo or trn:aionixfn:tenant:test0001:function/smoke/echo:v1 depending on the command
34
+ * @param body The request body.
35
+ * @param options Call options.
36
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
37
+ */
38
+ execute(trn, body, options) {
39
+ return this.#engine.call(OPERATIONS.aionixfn_function_execute, { path: `/functions/${encodePathParam(trn)}/execute`, body, primaryResourceTrn: trn }, options);
40
+ }
41
+ /**
42
+ * List functions
43
+ *
44
+ * Read AionixFn resource
45
+ *
46
+ * List functions with bounded offset pagination
47
+ *
48
+ * Replay: has no effect; retried after an attempt with an unknown result.
49
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`.
50
+ *
51
+ * @param query The query, by wire names.
52
+ * @param options Call options.
53
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
54
+ */
55
+ list(query, options) {
56
+ return this.#engine.call(OPERATIONS.aionixfn_function_list, { path: withQuery(`/functions`, query) }, options);
57
+ }
58
+ /**
59
+ * Every item of `aionixfn.function.list`, page after page, starting from `query`.
60
+ * Each page is one call with its own time budget and retries.
61
+ *
62
+ * @param query The query of the first page; `limit` is the size of every page.
63
+ * @param options Call options of every page.
64
+ */
65
+ async *listIter(query, options) {
66
+ let offset = query?.offset ?? 0;
67
+ for (;;) {
68
+ const response = await this.list({ ...query, offset }, options);
69
+ const page = response;
70
+ yield* page.items;
71
+ if (!page.hasMore)
72
+ return;
73
+ offset += page.items.length;
74
+ }
75
+ }
76
+ /**
77
+ * Read function logs
78
+ *
79
+ * Read a function's output
80
+ *
81
+ * Read one function's stdout, stderr and system records, optionally for one call. An empty result only means nothing currently matches.
82
+ *
83
+ * Replay: has no effect; retried after an attempt with an unknown result.
84
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `AionixFn_FunctionNotFound`, `Observability_CursorUnsupported`, `Observability_BackendUnavailable`, `Observability_BackendDecodeFailed`.
85
+ *
86
+ * @param trn AionixFn Function TRN whose output will be read
87
+ * @param query The query, by wire names.
88
+ * @param options Call options.
89
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
90
+ */
91
+ logQuery(trn, query, options) {
92
+ return this.#engine.call(OPERATIONS.aionixfn_function_log_query, { path: withQuery(`/functions/${encodePathParam(trn)}/logs`, query), primaryResourceTrn: trn }, options);
93
+ }
94
+ /**
95
+ * Every item of `aionixfn.function.log_query`, page after page, starting from `query`.
96
+ * Each page is one call with its own time budget and retries.
97
+ *
98
+ * @param trn AionixFn Function TRN whose output will be read
99
+ * @param query The query of the first page; `limit` is the size of every page.
100
+ * @param options Call options of every page.
101
+ */
102
+ async *logQueryIter(trn, query, options) {
103
+ let cursor = query?.cursor;
104
+ for (;;) {
105
+ const response = await this.logQuery(trn, { ...query, cursor }, options);
106
+ const page = response;
107
+ yield* page.items;
108
+ if (page.nextCursor == null)
109
+ return;
110
+ cursor = page.nextCursor;
111
+ }
112
+ }
113
+ /**
114
+ * Read function
115
+ *
116
+ * Read AionixFn resource
117
+ *
118
+ * Read one function definition, including runtime metadata, status, and version summary fields
119
+ *
120
+ * Replay: has no effect; retried after an attempt with an unknown result.
121
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `AionixFn_FunctionNotFound`.
122
+ *
123
+ * @param trn AionixFn resource TRN in the route path, for example trn:aionixfn:tenant:test0001:function/smoke/echo or trn:aionixfn:tenant:test0001:function/smoke/echo:v1 depending on the command
124
+ * @param options Call options.
125
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
126
+ */
127
+ read(trn, options) {
128
+ return this.#engine.call(OPERATIONS.aionixfn_function_read, { path: `/functions/${encodePathParam(trn)}`, primaryResourceTrn: trn }, options);
129
+ }
130
+ /**
131
+ * Read a function invocation contract
132
+ *
133
+ * Read the resource invocation contract
134
+ *
135
+ * Export the frozen tool contract resolved from a stable or qualified Function TRN
136
+ *
137
+ * Replay: has no effect; retried after an attempt with an unknown result.
138
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `AionixFn_FunctionNotFound`, `AionixFn_VersionNotFound`.
139
+ *
140
+ * @param trn AionixFn resource TRN in the route path, for example trn:aionixfn:tenant:test0001:function/smoke/echo or trn:aionixfn:tenant:test0001:function/smoke/echo:v1 depending on the command
141
+ * @param options Call options.
142
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
143
+ */
144
+ schemaRead(trn, options) {
145
+ return this.#engine.call(OPERATIONS.aionixfn_function_schema_read, { path: `/functions/${encodePathParam(trn)}/schema`, primaryResourceTrn: trn }, options);
146
+ }
147
+ /**
148
+ * List authored file metadata for one immutable Function version
149
+ *
150
+ * Replay: has no effect; retried after an attempt with an unknown result.
151
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_RateLimited`, `Internal_PayloadTooLarge`, `AionixFn_FunctionNotFound`, `AionixFn_VersionNotFound`, `Internal_NotFound`, `Internal_Conflict`.
152
+ *
153
+ * @param trn AionixFn resource TRN in the route path, for example trn:aionixfn:tenant:test0001:function/smoke/echo or trn:aionixfn:tenant:test0001:function/smoke/echo:v1 depending on the command
154
+ * @param query The query, by wire names.
155
+ * @param options Call options.
156
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
157
+ */
158
+ sourceFileList(trn, query, options) {
159
+ return this.#engine.call(OPERATIONS.aionixfn_function_source_file_list, { path: withQuery(`/functions/${encodePathParam(trn)}/source/files`, query), primaryResourceTrn: trn }, options);
160
+ }
161
+ /**
162
+ * Every item of `aionixfn.function.source_file_list`, page after page, starting from `query`.
163
+ * Each page is one call with its own time budget and retries.
164
+ *
165
+ * @param trn AionixFn resource TRN in the route path, for example trn:aionixfn:tenant:test0001:function/smoke/echo or trn:aionixfn:tenant:test0001:function/smoke/echo:v1 depending on the command
166
+ * @param query The query of the first page; `limit` is the size of every page.
167
+ * @param options Call options of every page.
168
+ */
169
+ async *sourceFileListIter(trn, query, options) {
170
+ let offset = query?.offset ?? 0;
171
+ for (;;) {
172
+ const response = await this.sourceFileList(trn, { ...query, offset }, options);
173
+ const page = response.page;
174
+ yield* page.items;
175
+ if (!page.hasMore)
176
+ return;
177
+ offset += page.items.length;
178
+ }
179
+ }
180
+ /**
181
+ * Read one verified source file; large files require explicit download
182
+ *
183
+ * Replay: has no effect; retried after an attempt with an unknown result.
184
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_RateLimited`, `Internal_PayloadTooLarge`, `AionixFn_FunctionNotFound`, `AionixFn_VersionNotFound`, `Internal_NotFound`, `Internal_Conflict`.
185
+ *
186
+ * @param trn AionixFn resource TRN in the route path, for example trn:aionixfn:tenant:test0001:function/smoke/echo or trn:aionixfn:tenant:test0001:function/smoke/echo:v1 depending on the command
187
+ * @param query The query, by wire names.
188
+ * @param options Call options.
189
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
190
+ */
191
+ sourceFileRead(trn, query, options) {
192
+ return this.#engine.call(OPERATIONS.aionixfn_function_source_file_read, { path: withQuery(`/functions/${encodePathParam(trn)}/source/file`, query), primaryResourceTrn: trn }, options);
193
+ }
194
+ /**
195
+ * Download function source
196
+ *
197
+ * Read a canonical function source package
198
+ *
199
+ * Replay: has no effect; retried after an attempt with an unknown result.
200
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_RateLimited`, `Internal_PayloadTooLarge`, `AionixFn_FunctionNotFound`, `AionixFn_VersionNotFound`, `Internal_NotFound`, `Internal_Conflict`.
201
+ *
202
+ * @param trn AionixFn resource TRN in the route path, for example trn:aionixfn:tenant:test0001:function/smoke/echo or trn:aionixfn:tenant:test0001:function/smoke/echo:v1 depending on the command
203
+ * @param options Call options.
204
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
205
+ */
206
+ sourceRead(trn, options) {
207
+ return this.#engine.call(OPERATIONS.aionixfn_function_source_read, { path: `/functions/${encodePathParam(trn)}/source`, primaryResourceTrn: trn }, options);
208
+ }
209
+ /**
210
+ * Submit function
211
+ *
212
+ * Submit a durable invocation for the current function version or an exact qualified version
213
+ *
214
+ * Create a durable invocation for the current version selected by a stable Function TRN, or the exact version selected by a qualified Function TRN
215
+ *
216
+ * Replay: the idempotency key replays the accepted execution for 3600 seconds.
217
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_PayloadTooLarge`, `Internal_UnsupportedMediaType`, `Internal_Timeout`, `Execution_PayloadLimitExceeded`, `AionixFn_FunctionNotFound`, `AionixFn_VersionNotFound`, `AionixFn_LayerNotFound`, `AionixFn_LayerVersionNotFound`, `AionixFn_InputSchemaViolation`, `AionixFn_ExecutionProfileUnsupported`, `AionixFn_ExecutionBackendUnavailable`, `Internal_IdempotencyKeyReused`, `Internal_Conflict`, `Internal_ConfigurationError`.
218
+ *
219
+ * @param trn AionixFn resource TRN in the route path, for example trn:aionixfn:tenant:test0001:function/smoke/echo or trn:aionixfn:tenant:test0001:function/smoke/echo:v1 depending on the command
220
+ * @param body The request body.
221
+ * @param options Call options.
222
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
223
+ */
224
+ submit(trn, body, options) {
225
+ return this.#engine.call(OPERATIONS.aionixfn_function_submit, { path: `/functions/${encodePathParam(trn)}/submit`, body, primaryResourceTrn: trn }, options);
226
+ }
227
+ /**
228
+ * Delete function version
229
+ *
230
+ * Delete Function version
231
+ *
232
+ * Delete one immutable function version; the current version is refused
233
+ *
234
+ * Replay: not declared; an attempt with an unknown result is not retried.
235
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `AionixFn_FunctionNotFound`, `AionixFn_VersionNotFound`, `Declarative_RemovalBlocked`.
236
+ *
237
+ * @param trn Version TRN: the resource TRN with the v<n> qualifier of one version
238
+ * @param options Call options.
239
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
240
+ */
241
+ versionDelete(trn, options) {
242
+ return this.#engine.call(OPERATIONS.aionixfn_function_version_delete, { path: `/functions/${encodePathParam(trn)}/version`, primaryResourceTrn: trn }, options);
243
+ }
244
+ /**
245
+ * List function versions
246
+ *
247
+ * Read AionixFn resource
248
+ *
249
+ * List published versions for one function TRN
250
+ *
251
+ * Replay: has no effect; retried after an attempt with an unknown result.
252
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `AionixFn_FunctionNotFound`.
253
+ *
254
+ * @param trn Stable TRN of the versioned resource, without a version qualifier
255
+ * @param query The query, by wire names.
256
+ * @param options Call options.
257
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
258
+ */
259
+ versionList(trn, query, options) {
260
+ return this.#engine.call(OPERATIONS.aionixfn_function_version_list, { path: withQuery(`/functions/${encodePathParam(trn)}/versions`, query), primaryResourceTrn: trn }, options);
261
+ }
262
+ /**
263
+ * Every item of `aionixfn.function.version_list`, page after page, starting from `query`.
264
+ * Each page is one call with its own time budget and retries.
265
+ *
266
+ * @param trn Stable TRN of the versioned resource, without a version qualifier
267
+ * @param query The query of the first page; `limit` is the size of every page.
268
+ * @param options Call options of every page.
269
+ */
270
+ async *versionListIter(trn, query, options) {
271
+ let offset = query?.offset ?? 0;
272
+ for (;;) {
273
+ const response = await this.versionList(trn, { ...query, offset }, options);
274
+ const page = response;
275
+ yield* page.items;
276
+ if (!page.hasMore)
277
+ return;
278
+ offset += page.items.length;
279
+ }
280
+ }
281
+ /**
282
+ * Read function version
283
+ *
284
+ * Read AionixFn resource
285
+ *
286
+ * Read one immutable function version and its frozen runtime metadata
287
+ *
288
+ * Replay: has no effect; retried after an attempt with an unknown result.
289
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `AionixFn_FunctionNotFound`, `AionixFn_VersionNotFound`.
290
+ *
291
+ * @param trn Version TRN: the resource TRN with the v<n> qualifier of one version
292
+ * @param options Call options.
293
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
294
+ */
295
+ versionRead(trn, options) {
296
+ return this.#engine.call(OPERATIONS.aionixfn_function_version_read, { path: `/functions/${encodePathParam(trn)}/version`, primaryResourceTrn: trn }, options);
297
+ }
298
+ /**
299
+ * Set the current function version
300
+ *
301
+ * Set the current Function version
302
+ *
303
+ * Point a function at one of its versions; stable invocations run it from now on
304
+ *
305
+ * Replay: not idempotent; an attempt answered with `AionixFn_FunctionNotFound`, `AionixFn_VersionNotFound` did not run.
306
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `AionixFn_FunctionNotFound`, `AionixFn_VersionNotFound`.
307
+ *
308
+ * @param trn Version TRN: the resource TRN with the v<n> qualifier of one version
309
+ * @param options Call options.
310
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
311
+ */
312
+ versionSetCurrent(trn, options) {
313
+ return this.#engine.call(OPERATIONS.aionixfn_function_version_set_current, { path: `/functions/${encodePathParam(trn)}/version/set-current`, primaryResourceTrn: trn }, options);
314
+ }
315
+ }
316
+ /** The `invocation` operations of the `aionixfn` service. */
317
+ export class AionixfnInvocationResource {
318
+ #engine;
319
+ /** Not part of the public API. */
320
+ constructor(engine) {
321
+ this.#engine = engine;
322
+ }
323
+ /**
324
+ * Cancel invocation
325
+ *
326
+ * Cancel a running invocation
327
+ *
328
+ * Request cancellation for one invocation by its exact TRN
329
+ *
330
+ * Replay: not declared; an attempt with an unknown result is not retried.
331
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `AionixFn_InvocationNotFound`, `Internal_Conflict`.
332
+ *
333
+ * @param trn AionixFn resource TRN in the route path, for example trn:aionixfn:tenant:test0001:function/smoke/echo or trn:aionixfn:tenant:test0001:function/smoke/echo:v1 depending on the command
334
+ * @param body The request body.
335
+ * @param options Call options.
336
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
337
+ */
338
+ cancel(trn, body, options) {
339
+ return this.#engine.call(OPERATIONS.aionixfn_invocation_cancel, { path: `/invocations/${encodePathParam(trn)}/cancel`, body, primaryResourceTrn: trn }, options);
340
+ }
341
+ /**
342
+ * List invocations
343
+ *
344
+ * Read AionixFn resource
345
+ *
346
+ * List invocations recorded for one function or version lineage depending on the TRN you query
347
+ *
348
+ * Replay: has no effect; retried after an attempt with an unknown result.
349
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `AionixFn_FunctionNotFound`.
350
+ *
351
+ * @param trn AionixFn Function TRN whose invocations will be listed
352
+ * @param query The query, by wire names.
353
+ * @param options Call options.
354
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
355
+ */
356
+ list(trn, query, options) {
357
+ return this.#engine.call(OPERATIONS.aionixfn_invocation_list, { path: withQuery(`/functions/${encodePathParam(trn)}/invocations`, query), primaryResourceTrn: trn }, options);
358
+ }
359
+ /**
360
+ * Every item of `aionixfn.invocation.list`, page after page, starting from `query`.
361
+ * Each page is one call with its own time budget and retries.
362
+ *
363
+ * @param trn AionixFn Function TRN whose invocations will be listed
364
+ * @param query The query of the first page; `limit` is the size of every page.
365
+ * @param options Call options of every page.
366
+ */
367
+ async *listIter(trn, query, options) {
368
+ let offset = query?.offset ?? 0;
369
+ for (;;) {
370
+ const response = await this.list(trn, { ...query, offset }, options);
371
+ const page = response;
372
+ yield* page.items;
373
+ if (!page.hasMore)
374
+ return;
375
+ offset += page.items.length;
376
+ }
377
+ }
378
+ /**
379
+ * Read invocation
380
+ *
381
+ * Read AionixFn resource
382
+ *
383
+ * Read one invocation record, including status, input/output payloads, and execution metadata
384
+ *
385
+ * Replay: has no effect; retried after an attempt with an unknown result.
386
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `AionixFn_InvocationNotFound`.
387
+ *
388
+ * @param trn AionixFn resource TRN in the route path, for example trn:aionixfn:tenant:test0001:function/smoke/echo or trn:aionixfn:tenant:test0001:function/smoke/echo:v1 depending on the command
389
+ * @param options Call options.
390
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
391
+ */
392
+ read(trn, options) {
393
+ return this.#engine.call(OPERATIONS.aionixfn_invocation_read, { path: `/invocations/${encodePathParam(trn)}`, primaryResourceTrn: trn }, options);
394
+ }
395
+ }
396
+ /** The `layer` operations of the `aionixfn` service. */
397
+ export class AionixfnLayerResource {
398
+ #engine;
399
+ /** Not part of the public API. */
400
+ constructor(engine) {
401
+ this.#engine = engine;
402
+ }
403
+ /**
404
+ * List layers
405
+ *
406
+ * List declaratively managed AionixFn Layers
407
+ *
408
+ * List declaratively managed layers with their current status
409
+ *
410
+ * Replay: has no effect; retried after an attempt with an unknown result.
411
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`.
412
+ *
413
+ * @param query The query, by wire names.
414
+ * @param options Call options.
415
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
416
+ */
417
+ list(query, options) {
418
+ return this.#engine.call(OPERATIONS.aionixfn_layer_list, { path: withQuery(`/layers`, query) }, options);
419
+ }
420
+ /**
421
+ * Every item of `aionixfn.layer.list`, page after page, starting from `query`.
422
+ * Each page is one call with its own time budget and retries.
423
+ *
424
+ * @param query The query of the first page; `limit` is the size of every page.
425
+ * @param options Call options of every page.
426
+ */
427
+ async *listIter(query, options) {
428
+ let offset = query?.offset ?? 0;
429
+ for (;;) {
430
+ const response = await this.list({ ...query, offset }, options);
431
+ const page = response;
432
+ yield* page.items;
433
+ if (!page.hasMore)
434
+ return;
435
+ offset += page.items.length;
436
+ }
437
+ }
438
+ /**
439
+ * Read layer
440
+ *
441
+ * Read one declaratively managed AionixFn Layer
442
+ *
443
+ * Read one declaratively managed layer and its current status
444
+ *
445
+ * Replay: has no effect; retried after an attempt with an unknown result.
446
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `AionixFn_LayerNotFound`.
447
+ *
448
+ * @param trn AionixFn resource TRN in the route path, for example trn:aionixfn:tenant:test0001:function/smoke/echo or trn:aionixfn:tenant:test0001:function/smoke/echo:v1 depending on the command
449
+ * @param options Call options.
450
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
451
+ */
452
+ read(trn, options) {
453
+ return this.#engine.call(OPERATIONS.aionixfn_layer_read, { path: `/layers/${encodePathParam(trn)}`, primaryResourceTrn: trn }, options);
454
+ }
455
+ /**
456
+ * Delete layer version
457
+ *
458
+ * Delete one immutable AionixFn Layer version
459
+ *
460
+ * Delete one immutable layer version; the current version is refused
461
+ *
462
+ * Replay: not declared; an attempt with an unknown result is not retried.
463
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `AionixFn_LayerNotFound`, `AionixFn_LayerVersionNotFound`, `Declarative_RemovalBlocked`.
464
+ *
465
+ * @param trn Version TRN: the resource TRN with the v<n> qualifier of one version
466
+ * @param options Call options.
467
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
468
+ */
469
+ versionDelete(trn, options) {
470
+ return this.#engine.call(OPERATIONS.aionixfn_layer_version_delete, { path: `/layers/${encodePathParam(trn)}/version`, primaryResourceTrn: trn }, options);
471
+ }
472
+ /**
473
+ * Download layer version
474
+ *
475
+ * Download one immutable AionixFn Layer bundle
476
+ *
477
+ * Download the verified bundle for one exact layer version
478
+ *
479
+ * Replay: has no effect; retried after an attempt with an unknown result.
480
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `AionixFn_LayerVersionNotFound`, `Internal_NotFound`, `Internal_Conflict`.
481
+ *
482
+ * @param trn AionixFn resource TRN in the route path, for example trn:aionixfn:tenant:test0001:function/smoke/echo or trn:aionixfn:tenant:test0001:function/smoke/echo:v1 depending on the command
483
+ * @param options Call options.
484
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
485
+ */
486
+ versionDownload(trn, options) {
487
+ return this.#engine.call(OPERATIONS.aionixfn_layer_version_download, { path: `/layers/${encodePathParam(trn)}/version/download`, primaryResourceTrn: trn }, options);
488
+ }
489
+ /**
490
+ * List layer versions
491
+ *
492
+ * List immutable versions for one AionixFn Layer
493
+ *
494
+ * List immutable versions published for one layer
495
+ *
496
+ * Replay: has no effect; retried after an attempt with an unknown result.
497
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `AionixFn_LayerNotFound`.
498
+ *
499
+ * @param trn Stable TRN of the versioned resource, without a version qualifier
500
+ * @param query The query, by wire names.
501
+ * @param options Call options.
502
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
503
+ */
504
+ versionList(trn, query, options) {
505
+ return this.#engine.call(OPERATIONS.aionixfn_layer_version_list, { path: withQuery(`/layers/${encodePathParam(trn)}/versions`, query), primaryResourceTrn: trn }, options);
506
+ }
507
+ /**
508
+ * Every item of `aionixfn.layer.version_list`, page after page, starting from `query`.
509
+ * Each page is one call with its own time budget and retries.
510
+ *
511
+ * @param trn Stable TRN of the versioned resource, without a version qualifier
512
+ * @param query The query of the first page; `limit` is the size of every page.
513
+ * @param options Call options of every page.
514
+ */
515
+ async *versionListIter(trn, query, options) {
516
+ let offset = query?.offset ?? 0;
517
+ for (;;) {
518
+ const response = await this.versionList(trn, { ...query, offset }, options);
519
+ const page = response;
520
+ yield* page.items;
521
+ if (!page.hasMore)
522
+ return;
523
+ offset += page.items.length;
524
+ }
525
+ }
526
+ /**
527
+ * Read layer version
528
+ *
529
+ * Read one immutable AionixFn Layer version
530
+ *
531
+ * Read one immutable layer version and what it contributes to a function composition
532
+ *
533
+ * Replay: has no effect; retried after an attempt with an unknown result.
534
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `AionixFn_LayerVersionNotFound`.
535
+ *
536
+ * @param trn Version TRN: the resource TRN with the v<n> qualifier of one version
537
+ * @param options Call options.
538
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
539
+ */
540
+ versionRead(trn, options) {
541
+ return this.#engine.call(OPERATIONS.aionixfn_layer_version_read, { path: `/layers/${encodePathParam(trn)}/version`, primaryResourceTrn: trn }, options);
542
+ }
543
+ /**
544
+ * Set the current layer version
545
+ *
546
+ * Set the current Layer version
547
+ *
548
+ * Point a layer at one of its versions; stable references resolve to it from now on
549
+ *
550
+ * Replay: not idempotent; an attempt answered with `AionixFn_LayerNotFound`, `AionixFn_LayerVersionNotFound` did not run.
551
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `AionixFn_LayerNotFound`, `AionixFn_LayerVersionNotFound`.
552
+ *
553
+ * @param trn Version TRN: the resource TRN with the v<n> qualifier of one version
554
+ * @param options Call options.
555
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
556
+ */
557
+ versionSetCurrent(trn, options) {
558
+ return this.#engine.call(OPERATIONS.aionixfn_layer_version_set_current, { path: `/layers/${encodePathParam(trn)}/version/set-current`, primaryResourceTrn: trn }, options);
559
+ }
560
+ }
561
+ //# sourceMappingURL=service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.js","sourceRoot":"","sources":["../../src/generated/service.ts"],"names":[],"mappings":"AAAA,oDAAoD;AAEpD,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEpE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C,8BAA8B;AAC9B,MAAM,OAAO,eAAe;IACjB,QAAQ,CAA2B;IACnC,UAAU,CAA6B;IACvC,KAAK,CAAwB;IAEtC,wEAAwE;IACxE,YAAY,MAAkB;QAC5B,IAAI,CAAC,QAAQ,GAAG,IAAI,wBAAwB,CAAC,MAAM,CAAC,CAAC;QACrD,IAAI,CAAC,UAAU,GAAG,IAAI,0BAA0B,CAAC,MAAM,CAAC,CAAC;QACzD,IAAI,CAAC,KAAK,GAAG,IAAI,qBAAqB,CAAC,MAAM,CAAC,CAAC;IACjD,CAAC;CACF;AAED,2DAA2D;AAC3D,MAAM,OAAO,wBAAwB;IAC1B,OAAO,CAAa;IAE7B,kCAAkC;IAClC,YAAY,MAAkB;QAC5B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,GAAW,EAAE,IAA4B,EAAE,OAAqB;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAkC,UAAU,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,cAAc,eAAe,CAAC,GAAG,CAAC,UAAU,EAAE,IAAI,EAAE,kBAAkB,EAA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CAAC;CACF"}
@@ -0,0 +1,51 @@
1
+ export interface buildAionixfnFunctionCollectionTrnInput {
2
+ tenant: string;
3
+ }
4
+ export declare function buildAionixfnFunctionCollectionTrn(input: buildAionixfnFunctionCollectionTrnInput): string;
5
+ export declare function parseAionixfnFunctionCollectionTrn(trn: string): buildAionixfnFunctionCollectionTrnInput | null;
6
+ export interface buildAionixfnFunctionExecutionTargetTrnInput {
7
+ tenant: string;
8
+ function_name: string;
9
+ version_id?: string;
10
+ }
11
+ export declare function buildAionixfnFunctionExecutionTargetTrn(input: buildAionixfnFunctionExecutionTargetTrnInput): string;
12
+ export declare function parseAionixfnFunctionExecutionTargetTrn(trn: string): buildAionixfnFunctionExecutionTargetTrnInput | null;
13
+ export interface buildAionixfnFunctionItemTrnInput {
14
+ tenant: string;
15
+ function_name: string;
16
+ }
17
+ export declare function buildAionixfnFunctionItemTrn(input: buildAionixfnFunctionItemTrnInput): string;
18
+ export declare function parseAionixfnFunctionItemTrn(trn: string): buildAionixfnFunctionItemTrnInput | null;
19
+ export interface buildAionixfnFunctionVersionTrnInput {
20
+ tenant: string;
21
+ function_name: string;
22
+ version_id: string;
23
+ }
24
+ export declare function buildAionixfnFunctionVersionTrn(input: buildAionixfnFunctionVersionTrnInput): string;
25
+ export declare function parseAionixfnFunctionVersionTrn(trn: string): buildAionixfnFunctionVersionTrnInput | null;
26
+ export interface buildAionixfnInvocationItemTrnInput {
27
+ tenant: string;
28
+ function_name: string;
29
+ invocation_id: string;
30
+ }
31
+ export declare function buildAionixfnInvocationItemTrn(input: buildAionixfnInvocationItemTrnInput): string;
32
+ export declare function parseAionixfnInvocationItemTrn(trn: string): buildAionixfnInvocationItemTrnInput | null;
33
+ export interface buildAionixfnLayerCollectionTrnInput {
34
+ tenant: string;
35
+ }
36
+ export declare function buildAionixfnLayerCollectionTrn(input: buildAionixfnLayerCollectionTrnInput): string;
37
+ export declare function parseAionixfnLayerCollectionTrn(trn: string): buildAionixfnLayerCollectionTrnInput | null;
38
+ export interface buildAionixfnLayerItemTrnInput {
39
+ tenant: string;
40
+ layer_name: string;
41
+ }
42
+ export declare function buildAionixfnLayerItemTrn(input: buildAionixfnLayerItemTrnInput): string;
43
+ export declare function parseAionixfnLayerItemTrn(trn: string): buildAionixfnLayerItemTrnInput | null;
44
+ export interface buildAionixfnLayerVersionTrnInput {
45
+ tenant: string;
46
+ layer_name: string;
47
+ version_id: string;
48
+ }
49
+ export declare function buildAionixfnLayerVersionTrn(input: buildAionixfnLayerVersionTrnInput): string;
50
+ export declare function parseAionixfnLayerVersionTrn(trn: string): buildAionixfnLayerVersionTrnInput | null;
51
+ //# sourceMappingURL=trn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trn.d.ts","sourceRoot":"","sources":["../../src/generated/trn.ts"],"names":[],"mappings":"AAiJA,MAAM,WAAW,uCAAuC;IACtD,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,uCAAuC,GAAG,MAAM,CAIzG;AAED,wBAAgB,kCAAkC,CAAC,GAAG,EAAE,MAAM,GAAG,uCAAuC,GAAG,IAAI,CAQ9G;AAED,MAAM,WAAW,4CAA4C;IAC3D,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,uCAAuC,CAAC,KAAK,EAAE,4CAA4C,GAAG,MAAM,CAQnH;AAED,wBAAgB,uCAAuC,CAAC,GAAG,EAAE,MAAM,GAAG,4CAA4C,GAAG,IAAI,CAUxH;AAED,MAAM,WAAW,iCAAiC;IAChD,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,iCAAiC,GAAG,MAAM,CAK7F;AAED,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,MAAM,GAAG,iCAAiC,GAAG,IAAI,CASlG;AAED,MAA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