bem-ai-sdk 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/README.md +9 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/workflows/index.d.mts +1 -1
- package/resources/workflows/index.d.mts.map +1 -1
- package/resources/workflows/index.d.ts +1 -1
- package/resources/workflows/index.d.ts.map +1 -1
- package/resources/workflows/index.js.map +1 -1
- package/resources/workflows/index.mjs.map +1 -1
- package/resources/workflows/versions.d.mts +3 -0
- package/resources/workflows/versions.d.mts.map +1 -1
- package/resources/workflows/versions.d.ts +3 -0
- package/resources/workflows/versions.d.ts.map +1 -1
- package/resources/workflows/workflows.d.mts +169 -102
- package/resources/workflows/workflows.d.mts.map +1 -1
- package/resources/workflows/workflows.d.ts +169 -102
- package/resources/workflows/workflows.d.ts.map +1 -1
- package/resources/workflows/workflows.js.map +1 -1
- package/resources/workflows/workflows.mjs.map +1 -1
- package/src/client.ts +6 -2
- package/src/resources/index.ts +3 -1
- package/src/resources/workflows/index.ts +3 -1
- package/src/resources/workflows/versions.ts +3 -0
- package/src/resources/workflows/workflows.ts +187 -106
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -132,99 +132,121 @@ export interface FunctionVersionIdentifier {
|
|
|
132
132
|
versionNum?: number;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
+
/**
|
|
136
|
+
* V3 read representation of a workflow version.
|
|
137
|
+
*/
|
|
135
138
|
export interface Workflow {
|
|
136
139
|
/**
|
|
137
|
-
* Unique identifier of workflow.
|
|
140
|
+
* Unique identifier of the workflow.
|
|
138
141
|
*/
|
|
139
142
|
id: string;
|
|
140
143
|
|
|
141
|
-
|
|
144
|
+
/**
|
|
145
|
+
* The date and time the workflow was created.
|
|
146
|
+
*/
|
|
147
|
+
createdAt: string;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* All directed edges in this workflow version's DAG.
|
|
151
|
+
*/
|
|
152
|
+
edges: Array<WorkflowEdgeResponse>;
|
|
142
153
|
|
|
143
154
|
/**
|
|
144
|
-
*
|
|
155
|
+
* Name of the entry-point call-site node.
|
|
156
|
+
*/
|
|
157
|
+
mainNodeName: string;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Unique name of the workflow within the environment.
|
|
145
161
|
*/
|
|
146
162
|
name: string;
|
|
147
163
|
|
|
148
164
|
/**
|
|
149
|
-
*
|
|
165
|
+
* All call-site nodes in this workflow version's DAG.
|
|
150
166
|
*/
|
|
151
|
-
|
|
167
|
+
nodes: Array<WorkflowNodeResponse>;
|
|
152
168
|
|
|
153
169
|
/**
|
|
154
|
-
*
|
|
170
|
+
* The date and time the workflow was last updated.
|
|
155
171
|
*/
|
|
156
|
-
|
|
172
|
+
updatedAt: string;
|
|
157
173
|
|
|
158
174
|
/**
|
|
159
|
-
*
|
|
175
|
+
* Version number of this workflow version.
|
|
176
|
+
*/
|
|
177
|
+
versionNum: number;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Audit trail information.
|
|
160
181
|
*/
|
|
161
|
-
|
|
182
|
+
audit?: WorkflowAudit;
|
|
162
183
|
|
|
163
184
|
/**
|
|
164
|
-
*
|
|
185
|
+
* Human-readable display name.
|
|
165
186
|
*/
|
|
166
187
|
displayName?: string;
|
|
167
188
|
|
|
168
189
|
/**
|
|
169
|
-
*
|
|
190
|
+
* Inbound email address associated with the workflow, if any.
|
|
170
191
|
*/
|
|
171
192
|
emailAddress?: string;
|
|
172
193
|
|
|
173
|
-
relationships?: Array<Workflow.Relationship>;
|
|
174
|
-
|
|
175
194
|
/**
|
|
176
|
-
*
|
|
195
|
+
* Tags associated with the workflow.
|
|
177
196
|
*/
|
|
178
197
|
tags?: Array<string>;
|
|
198
|
+
}
|
|
179
199
|
|
|
200
|
+
export interface WorkflowAudit {
|
|
180
201
|
/**
|
|
181
|
-
*
|
|
202
|
+
* Information about who created the current version.
|
|
182
203
|
*/
|
|
183
|
-
|
|
184
|
-
}
|
|
204
|
+
versionCreatedBy?: FunctionsAPI.UserActionSummary;
|
|
185
205
|
|
|
186
|
-
export namespace Workflow {
|
|
187
206
|
/**
|
|
188
|
-
*
|
|
207
|
+
* Information about who created the workflow.
|
|
189
208
|
*/
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* Information about who created the current version.
|
|
193
|
-
*/
|
|
194
|
-
versionCreatedBy?: FunctionsAPI.UserActionSummary;
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* Information about who created the workflow.
|
|
198
|
-
*/
|
|
199
|
-
workflowCreatedBy?: FunctionsAPI.UserActionSummary;
|
|
209
|
+
workflowCreatedBy?: FunctionsAPI.UserActionSummary;
|
|
200
210
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
211
|
+
/**
|
|
212
|
+
* Information about who last updated the workflow.
|
|
213
|
+
*/
|
|
214
|
+
workflowLastUpdatedBy?: FunctionsAPI.UserActionSummary;
|
|
215
|
+
}
|
|
206
216
|
|
|
207
|
-
|
|
208
|
-
|
|
217
|
+
/**
|
|
218
|
+
* Read representation of a directed edge between call-site nodes.
|
|
219
|
+
*/
|
|
220
|
+
export interface WorkflowEdgeResponse {
|
|
221
|
+
/**
|
|
222
|
+
* Name of the destination node.
|
|
223
|
+
*/
|
|
224
|
+
destinationNodeName: string;
|
|
209
225
|
|
|
210
|
-
|
|
226
|
+
/**
|
|
227
|
+
* Name of the source node.
|
|
228
|
+
*/
|
|
229
|
+
sourceNodeName: string;
|
|
211
230
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
}
|
|
231
|
+
/**
|
|
232
|
+
* Labelled outlet on the source node, if any.
|
|
233
|
+
*/
|
|
234
|
+
destinationName?: string;
|
|
217
235
|
}
|
|
218
236
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
237
|
+
/**
|
|
238
|
+
* Read representation of a call-site node.
|
|
239
|
+
*/
|
|
240
|
+
export interface WorkflowNodeResponse {
|
|
241
|
+
/**
|
|
242
|
+
* Function (and version) executing at this call site.
|
|
243
|
+
*/
|
|
244
|
+
function: FunctionVersionIdentifier;
|
|
223
245
|
|
|
224
246
|
/**
|
|
225
|
-
* Name of
|
|
247
|
+
* Name of this call site, unique within the workflow version.
|
|
226
248
|
*/
|
|
227
|
-
|
|
249
|
+
name: string;
|
|
228
250
|
}
|
|
229
251
|
|
|
230
252
|
export interface WorkflowCreateResponse {
|
|
@@ -233,6 +255,9 @@ export interface WorkflowCreateResponse {
|
|
|
233
255
|
*/
|
|
234
256
|
error?: string;
|
|
235
257
|
|
|
258
|
+
/**
|
|
259
|
+
* V3 read representation of a workflow version.
|
|
260
|
+
*/
|
|
236
261
|
workflow?: Workflow;
|
|
237
262
|
}
|
|
238
263
|
|
|
@@ -242,6 +267,9 @@ export interface WorkflowRetrieveResponse {
|
|
|
242
267
|
*/
|
|
243
268
|
error?: string;
|
|
244
269
|
|
|
270
|
+
/**
|
|
271
|
+
* V3 read representation of a workflow version.
|
|
272
|
+
*/
|
|
245
273
|
workflow?: Workflow;
|
|
246
274
|
}
|
|
247
275
|
|
|
@@ -251,18 +279,21 @@ export interface WorkflowUpdateResponse {
|
|
|
251
279
|
*/
|
|
252
280
|
error?: string;
|
|
253
281
|
|
|
282
|
+
/**
|
|
283
|
+
* V3 read representation of a workflow version.
|
|
284
|
+
*/
|
|
254
285
|
workflow?: Workflow;
|
|
255
286
|
}
|
|
256
287
|
|
|
257
288
|
export interface WorkflowCopyResponse {
|
|
258
289
|
/**
|
|
259
|
-
*
|
|
260
|
-
*
|
|
290
|
+
* Functions that were copied when copying to a different environment. Empty when
|
|
291
|
+
* copying within the same environment.
|
|
261
292
|
*/
|
|
262
293
|
copiedFunctions?: Array<WorkflowCopyResponse.CopiedFunction>;
|
|
263
294
|
|
|
264
295
|
/**
|
|
265
|
-
* The environment
|
|
296
|
+
* The environment the workflow was copied to.
|
|
266
297
|
*/
|
|
267
298
|
environment?: string;
|
|
268
299
|
|
|
@@ -272,7 +303,7 @@ export interface WorkflowCopyResponse {
|
|
|
272
303
|
error?: string;
|
|
273
304
|
|
|
274
305
|
/**
|
|
275
|
-
*
|
|
306
|
+
* V3 read representation of a workflow version.
|
|
276
307
|
*/
|
|
277
308
|
workflow?: Workflow;
|
|
278
309
|
}
|
|
@@ -313,92 +344,140 @@ export namespace WorkflowCopyResponse {
|
|
|
313
344
|
|
|
314
345
|
export interface WorkflowCreateParams {
|
|
315
346
|
/**
|
|
316
|
-
*
|
|
347
|
+
* Name of the entry-point node. Must not be a destination of any edge.
|
|
317
348
|
*/
|
|
318
|
-
|
|
349
|
+
mainNodeName: string;
|
|
319
350
|
|
|
320
351
|
/**
|
|
321
|
-
*
|
|
322
|
-
* act as a unit and must be provided together, or neither provided.
|
|
323
|
-
*
|
|
324
|
-
* - If `mainFunction` is provided without `relationships`, relationships will
|
|
325
|
-
* default to an empty array.
|
|
326
|
-
* - If `relationships` is provided, `mainFunction` must also be provided
|
|
327
|
-
* (validation error if missing).
|
|
328
|
-
* - If neither is provided, both mainFunction and relationships remain unchanged
|
|
329
|
-
* from the current workflow version.
|
|
352
|
+
* Unique name for the workflow. Must match `^[a-zA-Z0-9_-]{1,128}$`.
|
|
330
353
|
*/
|
|
331
|
-
|
|
354
|
+
name: string;
|
|
332
355
|
|
|
333
356
|
/**
|
|
334
|
-
*
|
|
335
|
-
* the environment and match the pattern ^[a-zA-Z0-9_-]{1,128}$.
|
|
357
|
+
* Call-site nodes in the DAG. At least one is required.
|
|
336
358
|
*/
|
|
337
|
-
|
|
359
|
+
nodes: Array<WorkflowCreateParams.Node>;
|
|
338
360
|
|
|
339
361
|
/**
|
|
340
|
-
*
|
|
341
|
-
* `relationships` fields act as a unit and must be provided together, or neither
|
|
342
|
-
* provided.
|
|
343
|
-
*
|
|
344
|
-
* - If `relationships` is provided, `mainFunction` must also be provided
|
|
345
|
-
* (validation error if missing).
|
|
346
|
-
* - If `mainFunction` is provided without `relationships`, relationships will
|
|
347
|
-
* default to an empty array.
|
|
348
|
-
* - If neither is provided, both mainFunction and relationships remain unchanged
|
|
349
|
-
* from the current workflow version.
|
|
362
|
+
* Human-readable display name.
|
|
350
363
|
*/
|
|
351
|
-
|
|
364
|
+
displayName?: string;
|
|
352
365
|
|
|
353
366
|
/**
|
|
354
|
-
*
|
|
367
|
+
* Directed edges between nodes. Omit or leave empty for single-node workflows.
|
|
368
|
+
*/
|
|
369
|
+
edges?: Array<WorkflowCreateParams.Edge>;
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* Tags to categorize and organize the workflow.
|
|
355
373
|
*/
|
|
356
374
|
tags?: Array<string>;
|
|
357
375
|
}
|
|
358
376
|
|
|
377
|
+
export namespace WorkflowCreateParams {
|
|
378
|
+
/**
|
|
379
|
+
* A single function call-site node in a workflow DAG.
|
|
380
|
+
*/
|
|
381
|
+
export interface Node {
|
|
382
|
+
/**
|
|
383
|
+
* The function (and version) to execute at this call site.
|
|
384
|
+
*/
|
|
385
|
+
function: WorkflowsAPI.FunctionVersionIdentifier;
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Name for this call site. Must be unique within the workflow version. Defaults to
|
|
389
|
+
* the function's own name when omitted.
|
|
390
|
+
*/
|
|
391
|
+
name?: string;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* A directed edge between two named call-site nodes.
|
|
396
|
+
*/
|
|
397
|
+
export interface Edge {
|
|
398
|
+
/**
|
|
399
|
+
* Name of the destination node.
|
|
400
|
+
*/
|
|
401
|
+
destinationNodeName: string;
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Name of the source node.
|
|
405
|
+
*/
|
|
406
|
+
sourceNodeName: string;
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* Labelled outlet on the source node that activates this edge. Omit for the
|
|
410
|
+
* default (unlabelled) outlet.
|
|
411
|
+
*/
|
|
412
|
+
destinationName?: string;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
|
|
359
416
|
export interface WorkflowUpdateParams {
|
|
360
417
|
/**
|
|
361
|
-
*
|
|
418
|
+
* Human-readable display name.
|
|
362
419
|
*/
|
|
363
420
|
displayName?: string;
|
|
364
421
|
|
|
422
|
+
edges?: Array<WorkflowUpdateParams.Edge>;
|
|
423
|
+
|
|
365
424
|
/**
|
|
366
|
-
*
|
|
367
|
-
*
|
|
368
|
-
*
|
|
369
|
-
* - If `mainFunction` is provided without `relationships`, relationships will
|
|
370
|
-
* default to an empty array.
|
|
371
|
-
* - If `relationships` is provided, `mainFunction` must also be provided
|
|
372
|
-
* (validation error if missing).
|
|
373
|
-
* - If neither is provided, both mainFunction and relationships remain unchanged
|
|
374
|
-
* from the current workflow version.
|
|
425
|
+
* `mainNodeName`, `nodes`, and `edges` must be provided together to update the DAG
|
|
426
|
+
* topology. If none are provided the topology is copied unchanged from the current
|
|
427
|
+
* version.
|
|
375
428
|
*/
|
|
376
|
-
|
|
429
|
+
mainNodeName?: string;
|
|
377
430
|
|
|
378
431
|
/**
|
|
379
|
-
*
|
|
380
|
-
* the environment and match the pattern ^[a-zA-Z0-9_-]{1,128}$.
|
|
432
|
+
* New name for the workflow (renames it). Must match `^[a-zA-Z0-9_-]{1,128}$`.
|
|
381
433
|
*/
|
|
382
434
|
name?: string;
|
|
383
435
|
|
|
436
|
+
nodes?: Array<WorkflowUpdateParams.Node>;
|
|
437
|
+
|
|
384
438
|
/**
|
|
385
|
-
*
|
|
386
|
-
* `relationships` fields act as a unit and must be provided together, or neither
|
|
387
|
-
* provided.
|
|
388
|
-
*
|
|
389
|
-
* - If `relationships` is provided, `mainFunction` must also be provided
|
|
390
|
-
* (validation error if missing).
|
|
391
|
-
* - If `mainFunction` is provided without `relationships`, relationships will
|
|
392
|
-
* default to an empty array.
|
|
393
|
-
* - If neither is provided, both mainFunction and relationships remain unchanged
|
|
394
|
-
* from the current workflow version.
|
|
439
|
+
* Tags to categorize and organize the workflow.
|
|
395
440
|
*/
|
|
396
|
-
|
|
441
|
+
tags?: Array<string>;
|
|
442
|
+
}
|
|
397
443
|
|
|
444
|
+
export namespace WorkflowUpdateParams {
|
|
398
445
|
/**
|
|
399
|
-
*
|
|
446
|
+
* A directed edge between two named call-site nodes.
|
|
400
447
|
*/
|
|
401
|
-
|
|
448
|
+
export interface Edge {
|
|
449
|
+
/**
|
|
450
|
+
* Name of the destination node.
|
|
451
|
+
*/
|
|
452
|
+
destinationNodeName: string;
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Name of the source node.
|
|
456
|
+
*/
|
|
457
|
+
sourceNodeName: string;
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Labelled outlet on the source node that activates this edge. Omit for the
|
|
461
|
+
* default (unlabelled) outlet.
|
|
462
|
+
*/
|
|
463
|
+
destinationName?: string;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* A single function call-site node in a workflow DAG.
|
|
468
|
+
*/
|
|
469
|
+
export interface Node {
|
|
470
|
+
/**
|
|
471
|
+
* The function (and version) to execute at this call site.
|
|
472
|
+
*/
|
|
473
|
+
function: WorkflowsAPI.FunctionVersionIdentifier;
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* Name for this call site. Must be unique within the workflow version. Defaults to
|
|
477
|
+
* the function's own name when omitted.
|
|
478
|
+
*/
|
|
479
|
+
name?: string;
|
|
480
|
+
}
|
|
402
481
|
}
|
|
403
482
|
|
|
404
483
|
export interface WorkflowListParams extends WorkflowsPageParams {
|
|
@@ -483,7 +562,9 @@ export declare namespace Workflows {
|
|
|
483
562
|
export {
|
|
484
563
|
type FunctionVersionIdentifier as FunctionVersionIdentifier,
|
|
485
564
|
type Workflow as Workflow,
|
|
486
|
-
type
|
|
565
|
+
type WorkflowAudit as WorkflowAudit,
|
|
566
|
+
type WorkflowEdgeResponse as WorkflowEdgeResponse,
|
|
567
|
+
type WorkflowNodeResponse as WorkflowNodeResponse,
|
|
487
568
|
type WorkflowCreateResponse as WorkflowCreateResponse,
|
|
488
569
|
type WorkflowRetrieveResponse as WorkflowRetrieveResponse,
|
|
489
570
|
type WorkflowUpdateResponse as WorkflowUpdateResponse,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.2.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.2.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.2.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.2.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|