@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,436 @@
1
+ import type { CallEngine, CallOptions, ExecutionCallOptions } from '@aionixone/client-core';
2
+ import type { AionixfnFunctionExecuteResponse, AionixfnFunctionListQuery, AionixfnFunctionListResponse, AionixfnFunctionLogQueryQuery, AionixfnFunctionLogQueryResponse, AionixfnFunctionReadResponse, AionixfnFunctionSchemaReadResponse, AionixfnFunctionSourceFileListQuery, AionixfnFunctionSourceFileListResponse, AionixfnFunctionSourceFileReadQuery, AionixfnFunctionSourceFileReadResponse, AionixfnFunctionSourceReadResponse, AionixfnFunctionSubmitResponse, AionixfnFunctionVersionDeleteResponse, AionixfnFunctionVersionListQuery, AionixfnFunctionVersionListResponse, AionixfnFunctionVersionReadResponse, AionixfnFunctionVersionSetCurrentResponse, AionixfnInvocationCancelResponse, AionixfnInvocationListQuery, AionixfnInvocationListResponse, AionixfnInvocationReadResponse, AionixfnLayerListQuery, AionixfnLayerListResponse, AionixfnLayerReadResponse, AionixfnLayerVersionDeleteResponse, AionixfnLayerVersionDownloadResponse, AionixfnLayerVersionListQuery, AionixfnLayerVersionListResponse, AionixfnLayerVersionReadResponse, AionixfnLayerVersionSetCurrentResponse } from './types.js';
3
+ import type { ExecuteFunctionRequest, SubmitFunctionRequest } from "@aionixone/client-types/aionixfn";
4
+ import type { DurableInvocationCancelRequest } from "@aionixone/client-types/core";
5
+ /** The `aionixfn` service. */
6
+ export declare class AionixfnService {
7
+ readonly function: AionixfnFunctionResource;
8
+ readonly invocation: AionixfnInvocationResource;
9
+ readonly layer: AionixfnLayerResource;
10
+ /** Not part of the public API: `AionixOne` constructs every service. */
11
+ constructor(engine: CallEngine);
12
+ }
13
+ /** The `function` operations of the `aionixfn` service. */
14
+ export declare class AionixfnFunctionResource {
15
+ #private;
16
+ /** Not part of the public API. */
17
+ constructor(engine: CallEngine);
18
+ /**
19
+ * Execute function
20
+ *
21
+ * Execute the current function version or an exact qualified version without creating a durable invocation
22
+ *
23
+ * 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
24
+ *
25
+ * Replay: not idempotent; an attempt answered with `AionixFn_ExecutionCapacityUnavailable` did not run.
26
+ * 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`.
27
+ *
28
+ * @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
29
+ * @param body The request body.
30
+ * @param options Call options.
31
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
32
+ */
33
+ execute(trn: string, body: ExecuteFunctionRequest, options?: CallOptions): Promise<AionixfnFunctionExecuteResponse>;
34
+ /**
35
+ * List functions
36
+ *
37
+ * Read AionixFn resource
38
+ *
39
+ * List functions with bounded offset pagination
40
+ *
41
+ * Replay: has no effect; retried after an attempt with an unknown result.
42
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`.
43
+ *
44
+ * @param query The query, by wire names.
45
+ * @param options Call options.
46
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
47
+ */
48
+ list(query?: AionixfnFunctionListQuery, options?: CallOptions): Promise<AionixfnFunctionListResponse>;
49
+ /**
50
+ * Every item of `aionixfn.function.list`, page after page, starting from `query`.
51
+ * Each page is one call with its own time budget and retries.
52
+ *
53
+ * @param query The query of the first page; `limit` is the size of every page.
54
+ * @param options Call options of every page.
55
+ */
56
+ listIter(query?: AionixfnFunctionListQuery, options?: CallOptions): AsyncGenerator<AionixfnFunctionListResponse['items'][number], void, undefined>;
57
+ /**
58
+ * Read function logs
59
+ *
60
+ * Read a function's output
61
+ *
62
+ * Read one function's stdout, stderr and system records, optionally for one call. An empty result only means nothing currently matches.
63
+ *
64
+ * Replay: has no effect; retried after an attempt with an unknown result.
65
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `AionixFn_FunctionNotFound`, `Observability_CursorUnsupported`, `Observability_BackendUnavailable`, `Observability_BackendDecodeFailed`.
66
+ *
67
+ * @param trn AionixFn Function TRN whose output will be read
68
+ * @param query The query, by wire names.
69
+ * @param options Call options.
70
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
71
+ */
72
+ logQuery(trn: string, query?: AionixfnFunctionLogQueryQuery, options?: CallOptions): Promise<AionixfnFunctionLogQueryResponse>;
73
+ /**
74
+ * Every item of `aionixfn.function.log_query`, page after page, starting from `query`.
75
+ * Each page is one call with its own time budget and retries.
76
+ *
77
+ * @param trn AionixFn Function TRN whose output will be read
78
+ * @param query The query of the first page; `limit` is the size of every page.
79
+ * @param options Call options of every page.
80
+ */
81
+ logQueryIter(trn: string, query?: AionixfnFunctionLogQueryQuery, options?: CallOptions): AsyncGenerator<AionixfnFunctionLogQueryResponse['items'][number], void, undefined>;
82
+ /**
83
+ * Read function
84
+ *
85
+ * Read AionixFn resource
86
+ *
87
+ * Read one function definition, including runtime metadata, status, and version summary fields
88
+ *
89
+ * Replay: has no effect; retried after an attempt with an unknown result.
90
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `AionixFn_FunctionNotFound`.
91
+ *
92
+ * @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
93
+ * @param options Call options.
94
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
95
+ */
96
+ read(trn: string, options?: CallOptions): Promise<AionixfnFunctionReadResponse>;
97
+ /**
98
+ * Read a function invocation contract
99
+ *
100
+ * Read the resource invocation contract
101
+ *
102
+ * Export the frozen tool contract resolved from a stable or qualified Function TRN
103
+ *
104
+ * Replay: has no effect; retried after an attempt with an unknown result.
105
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `AionixFn_FunctionNotFound`, `AionixFn_VersionNotFound`.
106
+ *
107
+ * @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
108
+ * @param options Call options.
109
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
110
+ */
111
+ schemaRead(trn: string, options?: CallOptions): Promise<AionixfnFunctionSchemaReadResponse>;
112
+ /**
113
+ * List authored file metadata for one immutable Function version
114
+ *
115
+ * Replay: has no effect; retried after an attempt with an unknown result.
116
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_RateLimited`, `Internal_PayloadTooLarge`, `AionixFn_FunctionNotFound`, `AionixFn_VersionNotFound`, `Internal_NotFound`, `Internal_Conflict`.
117
+ *
118
+ * @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
119
+ * @param query The query, by wire names.
120
+ * @param options Call options.
121
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
122
+ */
123
+ sourceFileList(trn: string, query?: AionixfnFunctionSourceFileListQuery, options?: CallOptions): Promise<AionixfnFunctionSourceFileListResponse>;
124
+ /**
125
+ * Every item of `aionixfn.function.source_file_list`, page after page, starting from `query`.
126
+ * Each page is one call with its own time budget and retries.
127
+ *
128
+ * @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
129
+ * @param query The query of the first page; `limit` is the size of every page.
130
+ * @param options Call options of every page.
131
+ */
132
+ sourceFileListIter(trn: string, query?: AionixfnFunctionSourceFileListQuery, options?: CallOptions): AsyncGenerator<AionixfnFunctionSourceFileListResponse['page']['items'][number], void, undefined>;
133
+ /**
134
+ * Read one verified source file; large files require explicit download
135
+ *
136
+ * Replay: has no effect; retried after an attempt with an unknown result.
137
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `Internal_RateLimited`, `Internal_PayloadTooLarge`, `AionixFn_FunctionNotFound`, `AionixFn_VersionNotFound`, `Internal_NotFound`, `Internal_Conflict`.
138
+ *
139
+ * @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
140
+ * @param query The query, by wire names.
141
+ * @param options Call options.
142
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
143
+ */
144
+ sourceFileRead(trn: string, query: AionixfnFunctionSourceFileReadQuery, options?: CallOptions): Promise<AionixfnFunctionSourceFileReadResponse>;
145
+ /**
146
+ * Download function source
147
+ *
148
+ * Read a canonical function source package
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 options Call options.
155
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
156
+ */
157
+ sourceRead(trn: string, options?: CallOptions): Promise<AionixfnFunctionSourceReadResponse>;
158
+ /**
159
+ * Submit function
160
+ *
161
+ * Submit a durable invocation for the current function version or an exact qualified version
162
+ *
163
+ * Create a durable invocation for the current version selected by a stable Function TRN, or the exact version selected by a qualified Function TRN
164
+ *
165
+ * Replay: the idempotency key replays the accepted execution for 3600 seconds.
166
+ * 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`.
167
+ *
168
+ * @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
169
+ * @param body The request body.
170
+ * @param options Call options.
171
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
172
+ */
173
+ submit(trn: string, body: SubmitFunctionRequest, options?: ExecutionCallOptions): Promise<AionixfnFunctionSubmitResponse>;
174
+ /**
175
+ * Delete function version
176
+ *
177
+ * Delete Function version
178
+ *
179
+ * Delete one immutable function version; the current version is refused
180
+ *
181
+ * Replay: not declared; an attempt with an unknown result is not retried.
182
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `AionixFn_FunctionNotFound`, `AionixFn_VersionNotFound`, `Declarative_RemovalBlocked`.
183
+ *
184
+ * @param trn Version TRN: the resource TRN with the v<n> qualifier of one version
185
+ * @param options Call options.
186
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
187
+ */
188
+ versionDelete(trn: string, options?: CallOptions): Promise<AionixfnFunctionVersionDeleteResponse>;
189
+ /**
190
+ * List function versions
191
+ *
192
+ * Read AionixFn resource
193
+ *
194
+ * List published versions for one function TRN
195
+ *
196
+ * Replay: has no effect; retried after an attempt with an unknown result.
197
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `AionixFn_FunctionNotFound`.
198
+ *
199
+ * @param trn Stable TRN of the versioned resource, without a version qualifier
200
+ * @param query The query, by wire names.
201
+ * @param options Call options.
202
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
203
+ */
204
+ versionList(trn: string, query?: AionixfnFunctionVersionListQuery, options?: CallOptions): Promise<AionixfnFunctionVersionListResponse>;
205
+ /**
206
+ * Every item of `aionixfn.function.version_list`, page after page, starting from `query`.
207
+ * Each page is one call with its own time budget and retries.
208
+ *
209
+ * @param trn Stable TRN of the versioned resource, without a version qualifier
210
+ * @param query The query of the first page; `limit` is the size of every page.
211
+ * @param options Call options of every page.
212
+ */
213
+ versionListIter(trn: string, query?: AionixfnFunctionVersionListQuery, options?: CallOptions): AsyncGenerator<AionixfnFunctionVersionListResponse['items'][number], void, undefined>;
214
+ /**
215
+ * Read function version
216
+ *
217
+ * Read AionixFn resource
218
+ *
219
+ * Read one immutable function version and its frozen runtime metadata
220
+ *
221
+ * Replay: has no effect; retried after an attempt with an unknown result.
222
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `AionixFn_FunctionNotFound`, `AionixFn_VersionNotFound`.
223
+ *
224
+ * @param trn Version TRN: the resource TRN with the v<n> qualifier of one version
225
+ * @param options Call options.
226
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
227
+ */
228
+ versionRead(trn: string, options?: CallOptions): Promise<AionixfnFunctionVersionReadResponse>;
229
+ /**
230
+ * Set the current function version
231
+ *
232
+ * Set the current Function version
233
+ *
234
+ * Point a function at one of its versions; stable invocations run it from now on
235
+ *
236
+ * Replay: not idempotent; an attempt answered with `AionixFn_FunctionNotFound`, `AionixFn_VersionNotFound` did not run.
237
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `AionixFn_FunctionNotFound`, `AionixFn_VersionNotFound`.
238
+ *
239
+ * @param trn Version TRN: the resource TRN with the v<n> qualifier of one version
240
+ * @param options Call options.
241
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
242
+ */
243
+ versionSetCurrent(trn: string, options?: CallOptions): Promise<AionixfnFunctionVersionSetCurrentResponse>;
244
+ }
245
+ /** The `invocation` operations of the `aionixfn` service. */
246
+ export declare class AionixfnInvocationResource {
247
+ #private;
248
+ /** Not part of the public API. */
249
+ constructor(engine: CallEngine);
250
+ /**
251
+ * Cancel invocation
252
+ *
253
+ * Cancel a running invocation
254
+ *
255
+ * Request cancellation for one invocation by its exact TRN
256
+ *
257
+ * Replay: not declared; an attempt with an unknown result is not retried.
258
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `AionixFn_InvocationNotFound`, `Internal_Conflict`.
259
+ *
260
+ * @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
261
+ * @param body The request body.
262
+ * @param options Call options.
263
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
264
+ */
265
+ cancel(trn: string, body: DurableInvocationCancelRequest, options?: CallOptions): Promise<AionixfnInvocationCancelResponse>;
266
+ /**
267
+ * List invocations
268
+ *
269
+ * Read AionixFn resource
270
+ *
271
+ * List invocations recorded for one function or version lineage depending on the TRN you query
272
+ *
273
+ * Replay: has no effect; retried after an attempt with an unknown result.
274
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `AionixFn_FunctionNotFound`.
275
+ *
276
+ * @param trn AionixFn Function TRN whose invocations will be listed
277
+ * @param query The query, by wire names.
278
+ * @param options Call options.
279
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
280
+ */
281
+ list(trn: string, query?: AionixfnInvocationListQuery, options?: CallOptions): Promise<AionixfnInvocationListResponse>;
282
+ /**
283
+ * Every item of `aionixfn.invocation.list`, page after page, starting from `query`.
284
+ * Each page is one call with its own time budget and retries.
285
+ *
286
+ * @param trn AionixFn Function TRN whose invocations will be listed
287
+ * @param query The query of the first page; `limit` is the size of every page.
288
+ * @param options Call options of every page.
289
+ */
290
+ listIter(trn: string, query?: AionixfnInvocationListQuery, options?: CallOptions): AsyncGenerator<AionixfnInvocationListResponse['items'][number], void, undefined>;
291
+ /**
292
+ * Read invocation
293
+ *
294
+ * Read AionixFn resource
295
+ *
296
+ * Read one invocation record, including status, input/output payloads, and execution metadata
297
+ *
298
+ * Replay: has no effect; retried after an attempt with an unknown result.
299
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `AionixFn_InvocationNotFound`.
300
+ *
301
+ * @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
302
+ * @param options Call options.
303
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
304
+ */
305
+ read(trn: string, options?: CallOptions): Promise<AionixfnInvocationReadResponse>;
306
+ }
307
+ /** The `layer` operations of the `aionixfn` service. */
308
+ export declare class AionixfnLayerResource {
309
+ #private;
310
+ /** Not part of the public API. */
311
+ constructor(engine: CallEngine);
312
+ /**
313
+ * List layers
314
+ *
315
+ * List declaratively managed AionixFn Layers
316
+ *
317
+ * List declaratively managed layers with their current status
318
+ *
319
+ * Replay: has no effect; retried after an attempt with an unknown result.
320
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`.
321
+ *
322
+ * @param query The query, by wire names.
323
+ * @param options Call options.
324
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
325
+ */
326
+ list(query?: AionixfnLayerListQuery, options?: CallOptions): Promise<AionixfnLayerListResponse>;
327
+ /**
328
+ * Every item of `aionixfn.layer.list`, page after page, starting from `query`.
329
+ * Each page is one call with its own time budget and retries.
330
+ *
331
+ * @param query The query of the first page; `limit` is the size of every page.
332
+ * @param options Call options of every page.
333
+ */
334
+ listIter(query?: AionixfnLayerListQuery, options?: CallOptions): AsyncGenerator<AionixfnLayerListResponse['items'][number], void, undefined>;
335
+ /**
336
+ * Read layer
337
+ *
338
+ * Read one declaratively managed AionixFn Layer
339
+ *
340
+ * Read one declaratively managed layer and its current status
341
+ *
342
+ * Replay: has no effect; retried after an attempt with an unknown result.
343
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `AionixFn_LayerNotFound`.
344
+ *
345
+ * @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
346
+ * @param options Call options.
347
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
348
+ */
349
+ read(trn: string, options?: CallOptions): Promise<AionixfnLayerReadResponse>;
350
+ /**
351
+ * Delete layer version
352
+ *
353
+ * Delete one immutable AionixFn Layer version
354
+ *
355
+ * Delete one immutable layer version; the current version is refused
356
+ *
357
+ * Replay: not declared; an attempt with an unknown result is not retried.
358
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `AionixFn_LayerNotFound`, `AionixFn_LayerVersionNotFound`, `Declarative_RemovalBlocked`.
359
+ *
360
+ * @param trn Version TRN: the resource TRN with the v<n> qualifier of one version
361
+ * @param options Call options.
362
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
363
+ */
364
+ versionDelete(trn: string, options?: CallOptions): Promise<AionixfnLayerVersionDeleteResponse>;
365
+ /**
366
+ * Download layer version
367
+ *
368
+ * Download one immutable AionixFn Layer bundle
369
+ *
370
+ * Download the verified bundle for one exact layer version
371
+ *
372
+ * Replay: has no effect; retried after an attempt with an unknown result.
373
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `AionixFn_LayerVersionNotFound`, `Internal_NotFound`, `Internal_Conflict`.
374
+ *
375
+ * @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
376
+ * @param options Call options.
377
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
378
+ */
379
+ versionDownload(trn: string, options?: CallOptions): Promise<AionixfnLayerVersionDownloadResponse>;
380
+ /**
381
+ * List layer versions
382
+ *
383
+ * List immutable versions for one AionixFn Layer
384
+ *
385
+ * List immutable versions published for one layer
386
+ *
387
+ * Replay: has no effect; retried after an attempt with an unknown result.
388
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `AionixFn_LayerNotFound`.
389
+ *
390
+ * @param trn Stable TRN of the versioned resource, without a version qualifier
391
+ * @param query The query, by wire names.
392
+ * @param options Call options.
393
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
394
+ */
395
+ versionList(trn: string, query?: AionixfnLayerVersionListQuery, options?: CallOptions): Promise<AionixfnLayerVersionListResponse>;
396
+ /**
397
+ * Every item of `aionixfn.layer.version_list`, page after page, starting from `query`.
398
+ * Each page is one call with its own time budget and retries.
399
+ *
400
+ * @param trn Stable TRN of the versioned resource, without a version qualifier
401
+ * @param query The query of the first page; `limit` is the size of every page.
402
+ * @param options Call options of every page.
403
+ */
404
+ versionListIter(trn: string, query?: AionixfnLayerVersionListQuery, options?: CallOptions): AsyncGenerator<AionixfnLayerVersionListResponse['items'][number], void, undefined>;
405
+ /**
406
+ * Read layer version
407
+ *
408
+ * Read one immutable AionixFn Layer version
409
+ *
410
+ * Read one immutable layer version and what it contributes to a function composition
411
+ *
412
+ * Replay: has no effect; retried after an attempt with an unknown result.
413
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `AionixFn_LayerVersionNotFound`.
414
+ *
415
+ * @param trn Version TRN: the resource TRN with the v<n> qualifier of one version
416
+ * @param options Call options.
417
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
418
+ */
419
+ versionRead(trn: string, options?: CallOptions): Promise<AionixfnLayerVersionReadResponse>;
420
+ /**
421
+ * Set the current layer version
422
+ *
423
+ * Set the current Layer version
424
+ *
425
+ * Point a layer at one of its versions; stable references resolve to it from now on
426
+ *
427
+ * Replay: not idempotent; an attempt answered with `AionixFn_LayerNotFound`, `AionixFn_LayerVersionNotFound` did not run.
428
+ * Declared errors: `Internal_Unauthorized`, `Internal_PermissionDenied`, `Internal_ValidationFailed`, `Internal_ServiceUnavailable`, `Internal_SystemError`, `AionixFn_LayerNotFound`, `AionixFn_LayerVersionNotFound`.
429
+ *
430
+ * @param trn Version TRN: the resource TRN with the v<n> qualifier of one version
431
+ * @param options Call options.
432
+ * @throws {AionixCallError} when the call fails, summarized over its attempts.
433
+ */
434
+ versionSetCurrent(trn: string, options?: CallOptions): Promise<AionixfnLayerVersionSetCurrentResponse>;
435
+ }
436
+ //# sourceMappingURL=service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/generated/service.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE5F,OAAO,KAAK,EAAE,+BAA+B,EAAE,yBAAyB,EAAE,4BAA4B,EAAE,6BAA6B,EAAE,gCAAgC,EAAE,4BAA4B,EAAE,kCAAkC,EAAE,mCAAmC,EAAE,sCAAsC,EAAE,mCAAmC,EAAE,sCAAsC,EAAE,kCAAkC,EAAE,8BAA8B,EAAE,qCAAqC,EAAE,gCAAgC,EAAE,mCAAmC,EAAE,mCAAmC,EAAE,yCAAyC,EAAE,gCAAgC,EAAE,2BAA2B,EAAE,8BAA8B,EAAE,8BAA8B,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,kCAAkC,EAAE,oCAAoC,EAAE,6BAA6B,EAAE,gCAAgC,EAAE,gCAAgC,EAAE,sCAAsC,EAAE,MAAM,YAAY,CAAC;AAC5jC,OAAO,KAAK,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACtG,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAEnF,8BAA8B;AAC9B,qBAAa,eAAe;IAC1B,QAAQ,CAAC,QAAQ,EAAE,wBAAwB,CAAC;IAC5C,QAAQ,CA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