@naturali/cli 0.282.1 → 0.282.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 (2) hide show
  1. package/dist/index.mjs +180 -57
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -17,7 +17,7 @@ var __exportAll = (all, no_symbols) => {
17
17
  };
18
18
  //#endregion
19
19
  //#region package.json
20
- var version = "0.282.1";
20
+ var version = "0.282.3";
21
21
  //#endregion
22
22
  //#region ../sdk/src/generated/core/bodySerializer.gen.ts
23
23
  const serializeFormDataPair = (data, key, value) => {
@@ -2845,7 +2845,7 @@ var Embeddings = class {
2845
2845
  * Provide `input` for a single text or `inputs` for a batch. At least one is required.
2846
2846
  * Returns `embedding` when `input` is used, and `embeddings` when `inputs` is used.
2847
2847
  *
2848
- * The call's token usage is metered against the project in the path, so embedding spend reaches the usage rollup and the project's `cost_usd` / `tokens` quotas.
2848
+ * The call's token usage is metered against the project in the path, so embedding spend reaches the usage rollup and the project's `cost_usd` / `tokens` quotas. The caller needs `embeddings:CreateEmbeddings` on that project.
2849
2849
  *
2850
2850
  */
2851
2851
  static createEmbeddings(options) {
@@ -14876,7 +14876,7 @@ const routes = {
14876
14876
  "create-embeddings": {
14877
14877
  serviceClass: "Embeddings",
14878
14878
  operationId: "createEmbeddings",
14879
- description: "Generates embedding vectors for one or more text inputs using the server's configured embedding model. Provide `input` for a single text or `inputs` for a batch. At least one is required. Returns `embedding` when `input` is used, and `embeddings` when `inputs` is used. The call's token usage is metered against the project in the path, so embedding spend reaches the usage rollup and the project's `cost_usd` / `tokens` quotas.",
14879
+ description: "Generates embedding vectors for one or more text inputs using the server's configured embedding model. Provide `input` for a single text or `inputs` for a batch. At least one is required. Returns `embedding` when `input` is used, and `embeddings` when `inputs` is used. The call's token usage is metered against the project in the path, so embedding spend reaches the usage rollup and the project's `cost_usd` / `tokens` quotas. The caller needs `embeddings:CreateEmbeddings` on that project.",
14880
14880
  moduleDocsUrl: "https://naturali.ai/docs/modules/embeddings",
14881
14881
  httpMethod: "post",
14882
14882
  pathParams: ["project_id"],
@@ -24779,7 +24779,7 @@ const routes = {
24779
24779
  },
24780
24780
  {
24781
24781
  "name": "workflow_id",
24782
- "description": "",
24782
+ "description": "Only the tasks of this workflow. Every `/tasks/{task_id}` operation takes the same pin, so a tool presetting it reaches no task of another workflow.",
24783
24783
  "required": false,
24784
24784
  "type": "string",
24785
24785
  "in": "query"
@@ -24946,22 +24946,32 @@ const routes = {
24946
24946
  moduleDocsUrl: "https://naturali.ai/docs/modules/tasks",
24947
24947
  httpMethod: "get",
24948
24948
  pathParams: ["project_id", "task_id"],
24949
- queryParams: [],
24949
+ queryParams: ["workflow_id"],
24950
24950
  headerParams: [],
24951
24951
  cookieParams: [],
24952
- flags: [{
24953
- "name": "project_id",
24954
- "description": "Project public ID (proj_ prefix).",
24955
- "required": true,
24956
- "type": "string",
24957
- "in": "path"
24958
- }, {
24959
- "name": "task_id",
24960
- "description": "",
24961
- "required": true,
24962
- "type": "string",
24963
- "in": "path"
24964
- }]
24952
+ flags: [
24953
+ {
24954
+ "name": "project_id",
24955
+ "description": "Project public ID (proj_ prefix).",
24956
+ "required": true,
24957
+ "type": "string",
24958
+ "in": "path"
24959
+ },
24960
+ {
24961
+ "name": "workflow_id",
24962
+ "description": "Pins the call to the tasks of this workflow, as the listing's `workflow_id` filters them. A task of another workflow is `404`, as if it did not exist.",
24963
+ "required": false,
24964
+ "type": "string",
24965
+ "in": "query"
24966
+ },
24967
+ {
24968
+ "name": "task_id",
24969
+ "description": "",
24970
+ "required": true,
24971
+ "type": "string",
24972
+ "in": "path"
24973
+ }
24974
+ ]
24965
24975
  },
24966
24976
  "update-task": {
24967
24977
  serviceClass: "Tasks",
@@ -24970,7 +24980,7 @@ const routes = {
24970
24980
  moduleDocsUrl: "https://naturali.ai/docs/modules/tasks",
24971
24981
  httpMethod: "patch",
24972
24982
  pathParams: ["project_id", "task_id"],
24973
- queryParams: [],
24983
+ queryParams: ["workflow_id"],
24974
24984
  headerParams: [],
24975
24985
  cookieParams: [],
24976
24986
  flags: [
@@ -24981,6 +24991,13 @@ const routes = {
24981
24991
  "type": "string",
24982
24992
  "in": "path"
24983
24993
  },
24994
+ {
24995
+ "name": "workflow_id",
24996
+ "description": "Pins the call to the tasks of this workflow, as the listing's `workflow_id` filters them. A task of another workflow is `404`, as if it did not exist.",
24997
+ "required": false,
24998
+ "type": "string",
24999
+ "in": "query"
25000
+ },
24984
25001
  {
24985
25002
  "name": "task_id",
24986
25003
  "description": "",
@@ -25018,22 +25035,32 @@ const routes = {
25018
25035
  moduleDocsUrl: "https://naturali.ai/docs/modules/tasks",
25019
25036
  httpMethod: "delete",
25020
25037
  pathParams: ["project_id", "task_id"],
25021
- queryParams: [],
25038
+ queryParams: ["workflow_id"],
25022
25039
  headerParams: [],
25023
25040
  cookieParams: [],
25024
- flags: [{
25025
- "name": "project_id",
25026
- "description": "Project public ID (proj_ prefix).",
25027
- "required": true,
25028
- "type": "string",
25029
- "in": "path"
25030
- }, {
25031
- "name": "task_id",
25032
- "description": "",
25033
- "required": true,
25034
- "type": "string",
25035
- "in": "path"
25036
- }]
25041
+ flags: [
25042
+ {
25043
+ "name": "project_id",
25044
+ "description": "Project public ID (proj_ prefix).",
25045
+ "required": true,
25046
+ "type": "string",
25047
+ "in": "path"
25048
+ },
25049
+ {
25050
+ "name": "workflow_id",
25051
+ "description": "Pins the call to the tasks of this workflow, as the listing's `workflow_id` filters them. A task of another workflow is `404`, as if it did not exist.",
25052
+ "required": false,
25053
+ "type": "string",
25054
+ "in": "query"
25055
+ },
25056
+ {
25057
+ "name": "task_id",
25058
+ "description": "",
25059
+ "required": true,
25060
+ "type": "string",
25061
+ "in": "path"
25062
+ }
25063
+ ]
25037
25064
  },
25038
25065
  "list-task-transitions": {
25039
25066
  serviceClass: "Tasks",
@@ -25042,7 +25069,11 @@ const routes = {
25042
25069
  moduleDocsUrl: "https://naturali.ai/docs/modules/tasks",
25043
25070
  httpMethod: "get",
25044
25071
  pathParams: ["project_id", "task_id"],
25045
- queryParams: ["limit", "cursor"],
25072
+ queryParams: [
25073
+ "workflow_id",
25074
+ "limit",
25075
+ "cursor"
25076
+ ],
25046
25077
  headerParams: [],
25047
25078
  cookieParams: [],
25048
25079
  flags: [
@@ -25053,6 +25084,13 @@ const routes = {
25053
25084
  "type": "string",
25054
25085
  "in": "path"
25055
25086
  },
25087
+ {
25088
+ "name": "workflow_id",
25089
+ "description": "Pins the call to the tasks of this workflow, as the listing's `workflow_id` filters them. A task of another workflow is `404`, as if it did not exist.",
25090
+ "required": false,
25091
+ "type": "string",
25092
+ "in": "query"
25093
+ },
25056
25094
  {
25057
25095
  "name": "task_id",
25058
25096
  "description": "The task whose transitions are listed.",
@@ -25083,7 +25121,7 @@ const routes = {
25083
25121
  moduleDocsUrl: "https://naturali.ai/docs/modules/tasks",
25084
25122
  httpMethod: "post",
25085
25123
  pathParams: ["project_id", "task_id"],
25086
- queryParams: [],
25124
+ queryParams: ["workflow_id"],
25087
25125
  headerParams: ["Idempotency-Key"],
25088
25126
  cookieParams: [],
25089
25127
  flags: [
@@ -25094,6 +25132,13 @@ const routes = {
25094
25132
  "type": "string",
25095
25133
  "in": "path"
25096
25134
  },
25135
+ {
25136
+ "name": "workflow_id",
25137
+ "description": "Pins the call to the tasks of this workflow, as the listing's `workflow_id` filters them. A task of another workflow is `404`, as if it did not exist.",
25138
+ "required": false,
25139
+ "type": "string",
25140
+ "in": "query"
25141
+ },
25097
25142
  {
25098
25143
  "name": "task_id",
25099
25144
  "description": "",
@@ -25152,7 +25197,7 @@ const routes = {
25152
25197
  moduleDocsUrl: "https://naturali.ai/docs/modules/tasks",
25153
25198
  httpMethod: "post",
25154
25199
  pathParams: ["project_id", "task_id"],
25155
- queryParams: [],
25200
+ queryParams: ["workflow_id"],
25156
25201
  headerParams: [],
25157
25202
  cookieParams: [],
25158
25203
  flags: [
@@ -25163,6 +25208,13 @@ const routes = {
25163
25208
  "type": "string",
25164
25209
  "in": "path"
25165
25210
  },
25211
+ {
25212
+ "name": "workflow_id",
25213
+ "description": "Pins the call to the tasks of this workflow, as the listing's `workflow_id` filters them. A task of another workflow is `404`, as if it did not exist.",
25214
+ "required": false,
25215
+ "type": "string",
25216
+ "in": "query"
25217
+ },
25166
25218
  {
25167
25219
  "name": "task_id",
25168
25220
  "description": "The task to migrate.",
@@ -25193,7 +25245,7 @@ const routes = {
25193
25245
  moduleDocsUrl: "https://naturali.ai/docs/modules/tasks",
25194
25246
  httpMethod: "put",
25195
25247
  pathParams: ["project_id", "task_id"],
25196
- queryParams: [],
25248
+ queryParams: ["workflow_id"],
25197
25249
  headerParams: [],
25198
25250
  cookieParams: [],
25199
25251
  flags: [
@@ -25204,6 +25256,13 @@ const routes = {
25204
25256
  "type": "string",
25205
25257
  "in": "path"
25206
25258
  },
25259
+ {
25260
+ "name": "workflow_id",
25261
+ "description": "Pins the call to the tasks of this workflow, as the listing's `workflow_id` filters them. A task of another workflow is `404`, as if it did not exist.",
25262
+ "required": false,
25263
+ "type": "string",
25264
+ "in": "query"
25265
+ },
25207
25266
  {
25208
25267
  "name": "task_id",
25209
25268
  "description": "The task's ID.",
@@ -25227,7 +25286,7 @@ const routes = {
25227
25286
  moduleDocsUrl: "https://naturali.ai/docs/modules/tasks",
25228
25287
  httpMethod: "post",
25229
25288
  pathParams: ["project_id", "task_id"],
25230
- queryParams: [],
25289
+ queryParams: ["workflow_id"],
25231
25290
  headerParams: [],
25232
25291
  cookieParams: [],
25233
25292
  flags: [
@@ -25238,6 +25297,13 @@ const routes = {
25238
25297
  "type": "string",
25239
25298
  "in": "path"
25240
25299
  },
25300
+ {
25301
+ "name": "workflow_id",
25302
+ "description": "Pins the call to the tasks of this workflow, as the listing's `workflow_id` filters them. A task of another workflow is `404`, as if it did not exist.",
25303
+ "required": false,
25304
+ "type": "string",
25305
+ "in": "query"
25306
+ },
25241
25307
  {
25242
25308
  "name": "task_id",
25243
25309
  "description": "",
@@ -25261,22 +25327,32 @@ const routes = {
25261
25327
  moduleDocsUrl: "https://naturali.ai/docs/modules/tasks",
25262
25328
  httpMethod: "post",
25263
25329
  pathParams: ["project_id", "task_id"],
25264
- queryParams: [],
25330
+ queryParams: ["workflow_id"],
25265
25331
  headerParams: [],
25266
25332
  cookieParams: [],
25267
- flags: [{
25268
- "name": "project_id",
25269
- "description": "Project public ID (proj_ prefix).",
25270
- "required": true,
25271
- "type": "string",
25272
- "in": "path"
25273
- }, {
25274
- "name": "task_id",
25275
- "description": "",
25276
- "required": true,
25277
- "type": "string",
25278
- "in": "path"
25279
- }]
25333
+ flags: [
25334
+ {
25335
+ "name": "project_id",
25336
+ "description": "Project public ID (proj_ prefix).",
25337
+ "required": true,
25338
+ "type": "string",
25339
+ "in": "path"
25340
+ },
25341
+ {
25342
+ "name": "workflow_id",
25343
+ "description": "Pins the call to the tasks of this workflow, as the listing's `workflow_id` filters them. A task of another workflow is `404`, as if it did not exist.",
25344
+ "required": false,
25345
+ "type": "string",
25346
+ "in": "query"
25347
+ },
25348
+ {
25349
+ "name": "task_id",
25350
+ "description": "",
25351
+ "required": true,
25352
+ "type": "string",
25353
+ "in": "path"
25354
+ }
25355
+ ]
25280
25356
  },
25281
25357
  "list-task-dependencies": {
25282
25358
  serviceClass: "Tasks",
@@ -25285,7 +25361,11 @@ const routes = {
25285
25361
  moduleDocsUrl: "https://naturali.ai/docs/modules/tasks",
25286
25362
  httpMethod: "get",
25287
25363
  pathParams: ["project_id", "task_id"],
25288
- queryParams: ["limit", "cursor"],
25364
+ queryParams: [
25365
+ "workflow_id",
25366
+ "limit",
25367
+ "cursor"
25368
+ ],
25289
25369
  headerParams: [],
25290
25370
  cookieParams: [],
25291
25371
  flags: [
@@ -25296,6 +25376,13 @@ const routes = {
25296
25376
  "type": "string",
25297
25377
  "in": "path"
25298
25378
  },
25379
+ {
25380
+ "name": "workflow_id",
25381
+ "description": "Pins the call to the tasks of this workflow, as the listing's `workflow_id` filters them. A task of another workflow is `404`, as if it did not exist.",
25382
+ "required": false,
25383
+ "type": "string",
25384
+ "in": "query"
25385
+ },
25299
25386
  {
25300
25387
  "name": "task_id",
25301
25388
  "description": "The task that waits.",
@@ -25326,7 +25413,7 @@ const routes = {
25326
25413
  moduleDocsUrl: "https://naturali.ai/docs/modules/tasks",
25327
25414
  httpMethod: "post",
25328
25415
  pathParams: ["project_id", "task_id"],
25329
- queryParams: [],
25416
+ queryParams: ["workflow_id"],
25330
25417
  headerParams: [],
25331
25418
  cookieParams: [],
25332
25419
  flags: [
@@ -25337,6 +25424,13 @@ const routes = {
25337
25424
  "type": "string",
25338
25425
  "in": "path"
25339
25426
  },
25427
+ {
25428
+ "name": "workflow_id",
25429
+ "description": "Pins the call to the tasks of this workflow, as the listing's `workflow_id` filters them. A task of another workflow is `404`, as if it did not exist.",
25430
+ "required": false,
25431
+ "type": "string",
25432
+ "in": "query"
25433
+ },
25340
25434
  {
25341
25435
  "name": "task_id",
25342
25436
  "description": "The task that waits.",
@@ -25367,7 +25461,11 @@ const routes = {
25367
25461
  moduleDocsUrl: "https://naturali.ai/docs/modules/tasks",
25368
25462
  httpMethod: "get",
25369
25463
  pathParams: ["project_id", "task_id"],
25370
- queryParams: ["limit", "cursor"],
25464
+ queryParams: [
25465
+ "workflow_id",
25466
+ "limit",
25467
+ "cursor"
25468
+ ],
25371
25469
  headerParams: [],
25372
25470
  cookieParams: [],
25373
25471
  flags: [
@@ -25378,6 +25476,13 @@ const routes = {
25378
25476
  "type": "string",
25379
25477
  "in": "path"
25380
25478
  },
25479
+ {
25480
+ "name": "workflow_id",
25481
+ "description": "Pins the call to the tasks of this workflow, as the listing's `workflow_id` filters them. A task of another workflow is `404`, as if it did not exist.",
25482
+ "required": false,
25483
+ "type": "string",
25484
+ "in": "query"
25485
+ },
25381
25486
  {
25382
25487
  "name": "task_id",
25383
25488
  "description": "The task the dependents wait on.",
@@ -25412,7 +25517,7 @@ const routes = {
25412
25517
  "task_id",
25413
25518
  "depends_on_task_id"
25414
25519
  ],
25415
- queryParams: [],
25520
+ queryParams: ["workflow_id"],
25416
25521
  headerParams: [],
25417
25522
  cookieParams: [],
25418
25523
  flags: [
@@ -25423,6 +25528,13 @@ const routes = {
25423
25528
  "type": "string",
25424
25529
  "in": "path"
25425
25530
  },
25531
+ {
25532
+ "name": "workflow_id",
25533
+ "description": "Pins the call to the tasks of this workflow, as the listing's `workflow_id` filters them. A task of another workflow is `404`, as if it did not exist.",
25534
+ "required": false,
25535
+ "type": "string",
25536
+ "in": "query"
25537
+ },
25426
25538
  {
25427
25539
  "name": "task_id",
25428
25540
  "description": "The task that waits.",
@@ -25446,7 +25558,11 @@ const routes = {
25446
25558
  moduleDocsUrl: "https://naturali.ai/docs/modules/tasks",
25447
25559
  httpMethod: "get",
25448
25560
  pathParams: ["project_id", "task_id"],
25449
- queryParams: ["limit", "cursor"],
25561
+ queryParams: [
25562
+ "workflow_id",
25563
+ "limit",
25564
+ "cursor"
25565
+ ],
25450
25566
  headerParams: [],
25451
25567
  cookieParams: [],
25452
25568
  flags: [
@@ -25457,6 +25573,13 @@ const routes = {
25457
25573
  "type": "string",
25458
25574
  "in": "path"
25459
25575
  },
25576
+ {
25577
+ "name": "workflow_id",
25578
+ "description": "Pins the call to the tasks of this workflow, as the listing's `workflow_id` filters them. A task of another workflow is `404`, as if it did not exist.",
25579
+ "required": false,
25580
+ "type": "string",
25581
+ "in": "query"
25582
+ },
25460
25583
  {
25461
25584
  "name": "task_id",
25462
25585
  "description": "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/cli",
3
- "version": "0.282.1",
3
+ "version": "0.282.3",
4
4
  "description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "keywords": [
6
6
  "naturali",
@@ -31,7 +31,7 @@
31
31
  "yaml": "^2.9.1"
32
32
  },
33
33
  "devDependencies": {
34
- "@naturali/sdk": "0.282.1",
34
+ "@naturali/sdk": "0.282.3",
35
35
  "@ttoss/openapi-codegen": "^0.10.1",
36
36
  "@types/node": "^26.5.1",
37
37
  "tsdown": "^0.23.0",