sim 2.2.25-preview.288.1 → 2.2.25-preview.290.1
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/dist/auth/device-flow.d.ts +2 -0
- package/dist/generated/v2-api.d.ts +198 -2
- package/dist/index.js +197 -15
- package/dist/runtime/request.d.ts +2 -0
- package/dist/runtime.js +197 -15
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9485,6 +9485,7 @@ async function pollForKey(endpoint, auth, signal) {
|
|
|
9485
9485
|
return {
|
|
9486
9486
|
id: body.key.id,
|
|
9487
9487
|
apiKey: body.key.apiKey,
|
|
9488
|
+
name: typeof body.key.name === "string" ? body.key.name : null,
|
|
9488
9489
|
scope: body.scope ?? "copilot",
|
|
9489
9490
|
workspaceId: body.workspaceId ?? null,
|
|
9490
9491
|
workspaceBound: body.workspaceBound === true,
|
|
@@ -10076,10 +10077,16 @@ var V2_OPERATIONS = {
|
|
|
10076
10077
|
responseMode: "json",
|
|
10077
10078
|
summary: "Compare workflow versions",
|
|
10078
10079
|
query: {
|
|
10079
|
-
base: {
|
|
10080
|
+
base: {
|
|
10081
|
+
kind: "integer",
|
|
10082
|
+
required: true,
|
|
10083
|
+
maximum: 2147483647,
|
|
10084
|
+
describe: "Deployment version to compare from."
|
|
10085
|
+
},
|
|
10080
10086
|
target: {
|
|
10081
10087
|
kind: "integer",
|
|
10082
10088
|
required: true,
|
|
10089
|
+
maximum: 2147483647,
|
|
10083
10090
|
describe: "Deployment version to compare to, in the same workflow."
|
|
10084
10091
|
}
|
|
10085
10092
|
}
|
|
@@ -10342,7 +10349,12 @@ var V2_OPERATIONS = {
|
|
|
10342
10349
|
},
|
|
10343
10350
|
name: { kind: "string", required: true, describe: "File name, including its extension." },
|
|
10344
10351
|
contentType: { kind: "string", required: true, describe: "MIME type of the uploaded file." },
|
|
10345
|
-
size: {
|
|
10352
|
+
size: {
|
|
10353
|
+
kind: "integer",
|
|
10354
|
+
required: true,
|
|
10355
|
+
maximum: 5368709120,
|
|
10356
|
+
describe: "Exact file size in bytes."
|
|
10357
|
+
},
|
|
10346
10358
|
folderPath: {
|
|
10347
10359
|
kind: "string",
|
|
10348
10360
|
describe: "Canonical destination folder path. Omit for the workspace root."
|
|
@@ -10462,6 +10474,7 @@ var V2_OPERATIONS = {
|
|
|
10462
10474
|
syncIntervalMinutes: {
|
|
10463
10475
|
kind: "integer",
|
|
10464
10476
|
default: 1440,
|
|
10477
|
+
maximum: 525600,
|
|
10465
10478
|
describe: "Scheduled synchronization interval in minutes; zero disables scheduling."
|
|
10466
10479
|
}
|
|
10467
10480
|
}
|
|
@@ -10489,7 +10502,12 @@ var V2_OPERATIONS = {
|
|
|
10489
10502
|
required: true,
|
|
10490
10503
|
describe: "Supported MIME type for the document."
|
|
10491
10504
|
},
|
|
10492
|
-
size: {
|
|
10505
|
+
size: {
|
|
10506
|
+
kind: "integer",
|
|
10507
|
+
required: true,
|
|
10508
|
+
maximum: 104857600,
|
|
10509
|
+
describe: "Exact file size in bytes."
|
|
10510
|
+
},
|
|
10493
10511
|
tag1: { kind: "string", describe: "Value for tag slot 1." },
|
|
10494
10512
|
tag2: { kind: "string", describe: "Value for tag slot 2." },
|
|
10495
10513
|
tag3: { kind: "string", describe: "Value for tag slot 3." },
|
|
@@ -10682,11 +10700,13 @@ var V2_OPERATIONS = {
|
|
|
10682
10700
|
timeout: {
|
|
10683
10701
|
kind: "integer",
|
|
10684
10702
|
default: 30000,
|
|
10703
|
+
maximum: 300000,
|
|
10685
10704
|
describe: "Per-request timeout in milliseconds. Defaults to 30000 on creation."
|
|
10686
10705
|
},
|
|
10687
10706
|
retries: {
|
|
10688
10707
|
kind: "integer",
|
|
10689
10708
|
default: 3,
|
|
10709
|
+
maximum: 10,
|
|
10690
10710
|
describe: "Number of retries per request. Defaults to 3 on creation."
|
|
10691
10711
|
},
|
|
10692
10712
|
enabled: {
|
|
@@ -10830,7 +10850,12 @@ var V2_OPERATIONS = {
|
|
|
10830
10850
|
body: {
|
|
10831
10851
|
name: { kind: "string", required: true, describe: "File name, including its extension." },
|
|
10832
10852
|
contentType: { kind: "string", required: true, describe: "MIME type of the uploaded file." },
|
|
10833
|
-
size: {
|
|
10853
|
+
size: {
|
|
10854
|
+
kind: "integer",
|
|
10855
|
+
required: true,
|
|
10856
|
+
maximum: 5368709120,
|
|
10857
|
+
describe: "Exact file size in bytes."
|
|
10858
|
+
},
|
|
10834
10859
|
folderPath: {
|
|
10835
10860
|
kind: "string",
|
|
10836
10861
|
describe: "Canonical destination folder path. Specify either folderId or folderPath, not both."
|
|
@@ -11619,7 +11644,7 @@ var V2_OPERATIONS = {
|
|
|
11619
11644
|
kind: "unknown",
|
|
11620
11645
|
describe: "One condition or a recursive `all`/`any` group, normalized to a grouped predicate. Limits: 100 members per group, 10 levels, and 500 nodes. The negating operators include nulls and absent cells, multi-select included; combine with `isNotNull` or `isNotEmpty` to exclude them. Pattern operators use `*` as the only wildcard; `%`, `_`, and backslash are literal. Select operators: single-select uses `eq`/`ne`/`in`/`nin`; multi-select uses `contains`/`ncontains`; option names resolve to IDs. Full operand rules are documented on `op`."
|
|
11621
11646
|
},
|
|
11622
|
-
limit: { kind: "integer", describe: "Maximum matching rows to delete." },
|
|
11647
|
+
limit: { kind: "integer", maximum: 1000, describe: "Maximum matching rows to delete." },
|
|
11623
11648
|
rowIds: { kind: "array", describe: "Explicit row identifiers to delete." }
|
|
11624
11649
|
}
|
|
11625
11650
|
},
|
|
@@ -11794,6 +11819,7 @@ var V2_OPERATIONS = {
|
|
|
11794
11819
|
limit: {
|
|
11795
11820
|
kind: "integer",
|
|
11796
11821
|
default: 50,
|
|
11822
|
+
maximum: 100,
|
|
11797
11823
|
describe: "Maximum access items to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
11798
11824
|
},
|
|
11799
11825
|
cursor: {
|
|
@@ -11850,6 +11876,7 @@ var V2_OPERATIONS = {
|
|
|
11850
11876
|
limit: {
|
|
11851
11877
|
kind: "integer",
|
|
11852
11878
|
default: 50,
|
|
11879
|
+
maximum: 100,
|
|
11853
11880
|
describe: "Maximum access items to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
11854
11881
|
},
|
|
11855
11882
|
cursor: {
|
|
@@ -11978,6 +12005,7 @@ var V2_OPERATIONS = {
|
|
|
11978
12005
|
},
|
|
11979
12006
|
timeoutSeconds: {
|
|
11980
12007
|
kind: "integer",
|
|
12008
|
+
maximum: 300,
|
|
11981
12009
|
describe: "Maximum wait time in seconds; defaults to 120 and cannot exceed 300. Timeout does not guarantee that a third-party side effect was cancelled."
|
|
11982
12010
|
}
|
|
11983
12011
|
}
|
|
@@ -12005,10 +12033,12 @@ var V2_OPERATIONS = {
|
|
|
12005
12033
|
},
|
|
12006
12034
|
executionTimeoutSeconds: {
|
|
12007
12035
|
kind: "integer",
|
|
12036
|
+
maximum: 604800,
|
|
12008
12037
|
describe: "Maximum duration of an asynchronous run, in seconds, capped by the plan's execution timeout. Requires `async: true` or `waitTimeoutSeconds`; otherwise returns `400`."
|
|
12009
12038
|
},
|
|
12010
12039
|
waitTimeoutSeconds: {
|
|
12011
12040
|
kind: "integer",
|
|
12041
|
+
maximum: 604800,
|
|
12012
12042
|
describe: "Wait at most this many seconds for a synchronous run; `0` waits until it settles. A run still going then continues in the background and the response carries its run receipt instead of its result: `202` on a JSON response, or a closing `detached` frame on an `application/x-ndjson` result stream, which keeps its `200`. The receipt is sent only once the run can be read on the runs resource, where it can also be cancelled. The run is admitted under asynchronous limits, and a dropped connection no longer cancels it. Requires a full-access API key or an OAuth access token with `api:write`. Cannot be combined with `async` or `stream`."
|
|
12013
12043
|
},
|
|
12014
12044
|
stream: {
|
|
@@ -12036,6 +12066,7 @@ var V2_OPERATIONS = {
|
|
|
12036
12066
|
},
|
|
12037
12067
|
base64MaxBytes: {
|
|
12038
12068
|
kind: "integer",
|
|
12069
|
+
maximum: 16777216,
|
|
12039
12070
|
describe: "Maximum total bytes of file content to inline as base64, lowering but never raising the server limit of 16 MiB. Rejected when `async` is true."
|
|
12040
12071
|
}
|
|
12041
12072
|
},
|
|
@@ -12402,6 +12433,7 @@ var V2_OPERATIONS = {
|
|
|
12402
12433
|
segmentCount: {
|
|
12403
12434
|
kind: "integer",
|
|
12404
12435
|
default: 72,
|
|
12436
|
+
maximum: 500,
|
|
12405
12437
|
describe: "Number of equal time buckets to divide the window into, from 1 to 500. It is the ceiling on how many buckets a series carries: with `includeEmpty=true` exactly this many are returned, otherwise only the buckets holding at least one run. Buckets are never narrower than one minute, so on a short window the series extends past the end of the window rather than being compressed, and the trailing buckets are empty."
|
|
12406
12438
|
},
|
|
12407
12439
|
includeEmpty: {
|
|
@@ -12552,6 +12584,7 @@ var V2_OPERATIONS = {
|
|
|
12552
12584
|
limit: {
|
|
12553
12585
|
kind: "integer",
|
|
12554
12586
|
default: 50,
|
|
12587
|
+
maximum: 100,
|
|
12555
12588
|
describe: "Maximum ranked groups to return. Remaining usage is summarized in other. Must be a whole number from 1 to 100. Defaults to 50."
|
|
12556
12589
|
}
|
|
12557
12590
|
}
|
|
@@ -13093,6 +13126,7 @@ var V2_OPERATIONS = {
|
|
|
13093
13126
|
},
|
|
13094
13127
|
base64MaxBytes: {
|
|
13095
13128
|
kind: "integer",
|
|
13129
|
+
maximum: 16777216,
|
|
13096
13130
|
describe: "Per-file inline ceiling, lowering but never raising the server limit of 16 MiB."
|
|
13097
13131
|
}
|
|
13098
13132
|
}
|
|
@@ -13165,6 +13199,7 @@ var V2_OPERATIONS = {
|
|
|
13165
13199
|
limit: {
|
|
13166
13200
|
kind: "integer",
|
|
13167
13201
|
default: 50,
|
|
13202
|
+
maximum: 100,
|
|
13168
13203
|
describe: "Maximum items to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13169
13204
|
},
|
|
13170
13205
|
cursor: {
|
|
@@ -13299,6 +13334,7 @@ var V2_OPERATIONS = {
|
|
|
13299
13334
|
limit: {
|
|
13300
13335
|
kind: "integer",
|
|
13301
13336
|
default: 50,
|
|
13337
|
+
maximum: 100,
|
|
13302
13338
|
describe: "Maximum audit entries to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13303
13339
|
},
|
|
13304
13340
|
cursor: {
|
|
@@ -13356,6 +13392,7 @@ var V2_OPERATIONS = {
|
|
|
13356
13392
|
limit: {
|
|
13357
13393
|
kind: "integer",
|
|
13358
13394
|
default: 50,
|
|
13395
|
+
maximum: 100,
|
|
13359
13396
|
describe: "Maximum usage events per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13360
13397
|
},
|
|
13361
13398
|
cursor: {
|
|
@@ -13414,6 +13451,7 @@ var V2_OPERATIONS = {
|
|
|
13414
13451
|
limit: {
|
|
13415
13452
|
kind: "integer",
|
|
13416
13453
|
default: 50,
|
|
13454
|
+
maximum: 100,
|
|
13417
13455
|
describe: "Maximum blocks to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13418
13456
|
},
|
|
13419
13457
|
cursor: {
|
|
@@ -13451,6 +13489,7 @@ var V2_OPERATIONS = {
|
|
|
13451
13489
|
limit: {
|
|
13452
13490
|
kind: "integer",
|
|
13453
13491
|
default: 50,
|
|
13492
|
+
maximum: 100,
|
|
13454
13493
|
describe: "Maximum chat deployments to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13455
13494
|
},
|
|
13456
13495
|
cursor: {
|
|
@@ -13484,6 +13523,7 @@ var V2_OPERATIONS = {
|
|
|
13484
13523
|
limit: {
|
|
13485
13524
|
kind: "integer",
|
|
13486
13525
|
default: 25,
|
|
13526
|
+
maximum: 100,
|
|
13487
13527
|
describe: "Maximum connector types to return per page. Must be a whole number from 1 to 100. Defaults to 25."
|
|
13488
13528
|
},
|
|
13489
13529
|
cursor: {
|
|
@@ -13509,6 +13549,7 @@ var V2_OPERATIONS = {
|
|
|
13509
13549
|
limit: {
|
|
13510
13550
|
kind: "integer",
|
|
13511
13551
|
default: 50,
|
|
13552
|
+
maximum: 100,
|
|
13512
13553
|
describe: "Maximum credential members to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13513
13554
|
},
|
|
13514
13555
|
cursor: {
|
|
@@ -13587,6 +13628,7 @@ var V2_OPERATIONS = {
|
|
|
13587
13628
|
limit: {
|
|
13588
13629
|
kind: "integer",
|
|
13589
13630
|
default: 50,
|
|
13631
|
+
maximum: 100,
|
|
13590
13632
|
describe: "Maximum credentials to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13591
13633
|
},
|
|
13592
13634
|
cursor: {
|
|
@@ -13626,6 +13668,7 @@ var V2_OPERATIONS = {
|
|
|
13626
13668
|
limit: {
|
|
13627
13669
|
kind: "integer",
|
|
13628
13670
|
default: 50,
|
|
13671
|
+
maximum: 100,
|
|
13629
13672
|
describe: "Maximum custom tools to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13630
13673
|
},
|
|
13631
13674
|
cursor: {
|
|
@@ -13692,6 +13735,7 @@ var V2_OPERATIONS = {
|
|
|
13692
13735
|
},
|
|
13693
13736
|
depth: {
|
|
13694
13737
|
kind: "integer",
|
|
13738
|
+
maximum: 64,
|
|
13695
13739
|
describe: "Deepest level below parentPath to include when recursive is true."
|
|
13696
13740
|
}
|
|
13697
13741
|
}
|
|
@@ -13787,6 +13831,7 @@ var V2_OPERATIONS = {
|
|
|
13787
13831
|
limit: {
|
|
13788
13832
|
kind: "integer",
|
|
13789
13833
|
default: 50,
|
|
13834
|
+
maximum: 100,
|
|
13790
13835
|
describe: "Maximum versions to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13791
13836
|
},
|
|
13792
13837
|
cursor: {
|
|
@@ -13836,6 +13881,7 @@ var V2_OPERATIONS = {
|
|
|
13836
13881
|
limit: {
|
|
13837
13882
|
kind: "integer",
|
|
13838
13883
|
default: 50,
|
|
13884
|
+
maximum: 100,
|
|
13839
13885
|
describe: "Maximum knowledge bases to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13840
13886
|
},
|
|
13841
13887
|
cursor: {
|
|
@@ -13886,6 +13932,7 @@ var V2_OPERATIONS = {
|
|
|
13886
13932
|
limit: {
|
|
13887
13933
|
kind: "integer",
|
|
13888
13934
|
default: 50,
|
|
13935
|
+
maximum: 100,
|
|
13889
13936
|
describe: "Maximum chunks to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13890
13937
|
},
|
|
13891
13938
|
cursor: {
|
|
@@ -13918,6 +13965,7 @@ var V2_OPERATIONS = {
|
|
|
13918
13965
|
limit: {
|
|
13919
13966
|
kind: "integer",
|
|
13920
13967
|
default: 50,
|
|
13968
|
+
maximum: 100,
|
|
13921
13969
|
describe: "Maximum connector documents to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13922
13970
|
},
|
|
13923
13971
|
cursor: {
|
|
@@ -13955,6 +14003,7 @@ var V2_OPERATIONS = {
|
|
|
13955
14003
|
limit: {
|
|
13956
14004
|
kind: "integer",
|
|
13957
14005
|
default: 50,
|
|
14006
|
+
maximum: 100,
|
|
13958
14007
|
describe: "Maximum connectors to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13959
14008
|
},
|
|
13960
14009
|
cursor: {
|
|
@@ -13979,6 +14028,7 @@ var V2_OPERATIONS = {
|
|
|
13979
14028
|
limit: {
|
|
13980
14029
|
kind: "integer",
|
|
13981
14030
|
default: 50,
|
|
14031
|
+
maximum: 100,
|
|
13982
14032
|
describe: "Maximum documents to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13983
14033
|
},
|
|
13984
14034
|
search: {
|
|
@@ -14121,18 +14171,22 @@ var V2_OPERATIONS = {
|
|
|
14121
14171
|
},
|
|
14122
14172
|
minDurationMs: {
|
|
14123
14173
|
kind: "integer",
|
|
14174
|
+
maximum: 2147483647,
|
|
14124
14175
|
describe: "Minimum total execution duration in milliseconds. Whole milliseconds from 0 to 2147483647; the stored duration is a 32-bit integer, so a fractional or out-of-range bound is rejected."
|
|
14125
14176
|
},
|
|
14126
14177
|
maxDurationMs: {
|
|
14127
14178
|
kind: "integer",
|
|
14179
|
+
maximum: 2147483647,
|
|
14128
14180
|
describe: "Maximum total execution duration in milliseconds. Whole milliseconds from 0 to 2147483647; the stored duration is a 32-bit integer, so a fractional or out-of-range bound is rejected."
|
|
14129
14181
|
},
|
|
14130
14182
|
minCost: {
|
|
14131
14183
|
kind: "number",
|
|
14184
|
+
maximum: 1e6,
|
|
14132
14185
|
describe: "Minimum execution cost in USD, from 0 to 1000000. A run is never charged a negative amount, so a negative bound is rejected rather than treated as a filter that matches every run."
|
|
14133
14186
|
},
|
|
14134
14187
|
maxCost: {
|
|
14135
14188
|
kind: "number",
|
|
14189
|
+
maximum: 1e6,
|
|
14136
14190
|
describe: "Maximum execution cost in USD, from 0 to 1000000. A run is never charged a negative amount, so a negative bound is rejected rather than treated as a filter that matches every run."
|
|
14137
14191
|
},
|
|
14138
14192
|
model: { kind: "string", describe: "AI model used during execution." },
|
|
@@ -14225,6 +14279,7 @@ var V2_OPERATIONS = {
|
|
|
14225
14279
|
limit: {
|
|
14226
14280
|
kind: "integer",
|
|
14227
14281
|
default: 50,
|
|
14282
|
+
maximum: 100,
|
|
14228
14283
|
describe: "Maximum MCP servers to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14229
14284
|
},
|
|
14230
14285
|
cursor: {
|
|
@@ -14282,6 +14337,7 @@ var V2_OPERATIONS = {
|
|
|
14282
14337
|
limit: {
|
|
14283
14338
|
kind: "integer",
|
|
14284
14339
|
default: 50,
|
|
14340
|
+
maximum: 100,
|
|
14285
14341
|
describe: "Maximum access requests to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14286
14342
|
},
|
|
14287
14343
|
cursor: {
|
|
@@ -14319,6 +14375,7 @@ var V2_OPERATIONS = {
|
|
|
14319
14375
|
limit: {
|
|
14320
14376
|
kind: "integer",
|
|
14321
14377
|
default: 50,
|
|
14378
|
+
maximum: 100,
|
|
14322
14379
|
describe: "Maximum access requests to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14323
14380
|
},
|
|
14324
14381
|
cursor: {
|
|
@@ -14356,6 +14413,7 @@ var V2_OPERATIONS = {
|
|
|
14356
14413
|
limit: {
|
|
14357
14414
|
kind: "integer",
|
|
14358
14415
|
default: 50,
|
|
14416
|
+
maximum: 100,
|
|
14359
14417
|
describe: "Maximum access requests to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14360
14418
|
},
|
|
14361
14419
|
cursor: {
|
|
@@ -14382,6 +14440,7 @@ var V2_OPERATIONS = {
|
|
|
14382
14440
|
limit: {
|
|
14383
14441
|
kind: "integer",
|
|
14384
14442
|
default: 50,
|
|
14443
|
+
maximum: 100,
|
|
14385
14444
|
describe: "Maximum domain claims to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14386
14445
|
},
|
|
14387
14446
|
cursor: {
|
|
@@ -14435,6 +14494,7 @@ var V2_OPERATIONS = {
|
|
|
14435
14494
|
limit: {
|
|
14436
14495
|
kind: "integer",
|
|
14437
14496
|
default: 50,
|
|
14497
|
+
maximum: 100,
|
|
14438
14498
|
describe: "Maximum invitations to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14439
14499
|
},
|
|
14440
14500
|
cursor: {
|
|
@@ -14474,6 +14534,7 @@ var V2_OPERATIONS = {
|
|
|
14474
14534
|
limit: {
|
|
14475
14535
|
kind: "integer",
|
|
14476
14536
|
default: 50,
|
|
14537
|
+
maximum: 100,
|
|
14477
14538
|
describe: "Maximum workspaces to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14478
14539
|
},
|
|
14479
14540
|
cursor: {
|
|
@@ -14510,6 +14571,7 @@ var V2_OPERATIONS = {
|
|
|
14510
14571
|
limit: {
|
|
14511
14572
|
kind: "integer",
|
|
14512
14573
|
default: 50,
|
|
14574
|
+
maximum: 100,
|
|
14513
14575
|
describe: "Maximum members to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14514
14576
|
},
|
|
14515
14577
|
cursor: {
|
|
@@ -14545,6 +14607,7 @@ var V2_OPERATIONS = {
|
|
|
14545
14607
|
limit: {
|
|
14546
14608
|
kind: "integer",
|
|
14547
14609
|
default: 50,
|
|
14610
|
+
maximum: 100,
|
|
14548
14611
|
describe: "Maximum organizations to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14549
14612
|
},
|
|
14550
14613
|
cursor: {
|
|
@@ -14600,6 +14663,7 @@ var V2_OPERATIONS = {
|
|
|
14600
14663
|
limit: {
|
|
14601
14664
|
kind: "integer",
|
|
14602
14665
|
default: 50,
|
|
14666
|
+
maximum: 100,
|
|
14603
14667
|
describe: "Maximum usage events per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14604
14668
|
},
|
|
14605
14669
|
cursor: {
|
|
@@ -14648,6 +14712,7 @@ var V2_OPERATIONS = {
|
|
|
14648
14712
|
limit: {
|
|
14649
14713
|
kind: "integer",
|
|
14650
14714
|
default: 50,
|
|
14715
|
+
maximum: 100,
|
|
14651
14716
|
describe: "Maximum workspaces to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14652
14717
|
},
|
|
14653
14718
|
cursor: {
|
|
@@ -14656,6 +14721,46 @@ var V2_OPERATIONS = {
|
|
|
14656
14721
|
}
|
|
14657
14722
|
}
|
|
14658
14723
|
},
|
|
14724
|
+
listPausedRuns: {
|
|
14725
|
+
method: "GET",
|
|
14726
|
+
path: "/api/v2/workflows/runs/paused",
|
|
14727
|
+
pathParams: [],
|
|
14728
|
+
responseMode: "json",
|
|
14729
|
+
summary: "List paused workflow runs",
|
|
14730
|
+
query: {
|
|
14731
|
+
workspaceId: {
|
|
14732
|
+
kind: "string",
|
|
14733
|
+
required: true,
|
|
14734
|
+
describe: "Workspace whose paused runs should be listed."
|
|
14735
|
+
},
|
|
14736
|
+
includeOutput: {
|
|
14737
|
+
kind: "boolean",
|
|
14738
|
+
describe: "Include each pause point's reviewer `display` content when true."
|
|
14739
|
+
},
|
|
14740
|
+
limit: {
|
|
14741
|
+
kind: "integer",
|
|
14742
|
+
default: 10,
|
|
14743
|
+
maximum: 25,
|
|
14744
|
+
describe: "Maximum runs to return per page. A page also ends early once it holds 100 pause points, so it can return fewer runs while `nextCursor` is set. Must be a whole number from 1 to 25. Defaults to 10."
|
|
14745
|
+
},
|
|
14746
|
+
cursor: {
|
|
14747
|
+
kind: "string",
|
|
14748
|
+
describe: "Opaque cursor from the previous page. Send it back with the same sort and filters; only `limit` may change. Change anything else and pagination must restart without a cursor."
|
|
14749
|
+
},
|
|
14750
|
+
sortBy: {
|
|
14751
|
+
kind: "enum",
|
|
14752
|
+
values: ["pausedAt"],
|
|
14753
|
+
default: "pausedAt",
|
|
14754
|
+
describe: "Field used to sort the result."
|
|
14755
|
+
},
|
|
14756
|
+
sortOrder: {
|
|
14757
|
+
kind: "enum",
|
|
14758
|
+
values: ["asc", "desc"],
|
|
14759
|
+
default: "desc",
|
|
14760
|
+
describe: "Sort direction."
|
|
14761
|
+
}
|
|
14762
|
+
}
|
|
14763
|
+
},
|
|
14659
14764
|
listPermissionGroupMembers: {
|
|
14660
14765
|
method: "GET",
|
|
14661
14766
|
path: "/api/v2/organizations/[organizationId]/permission-groups/[groupId]/members",
|
|
@@ -14683,6 +14788,7 @@ var V2_OPERATIONS = {
|
|
|
14683
14788
|
limit: {
|
|
14684
14789
|
kind: "integer",
|
|
14685
14790
|
default: 50,
|
|
14791
|
+
maximum: 100,
|
|
14686
14792
|
describe: "Maximum group members to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14687
14793
|
},
|
|
14688
14794
|
cursor: {
|
|
@@ -14719,6 +14825,7 @@ var V2_OPERATIONS = {
|
|
|
14719
14825
|
limit: {
|
|
14720
14826
|
kind: "integer",
|
|
14721
14827
|
default: 50,
|
|
14828
|
+
maximum: 100,
|
|
14722
14829
|
describe: "Maximum permission groups to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14723
14830
|
},
|
|
14724
14831
|
cursor: {
|
|
@@ -14800,6 +14907,7 @@ var V2_OPERATIONS = {
|
|
|
14800
14907
|
limit: {
|
|
14801
14908
|
kind: "integer",
|
|
14802
14909
|
default: 100,
|
|
14910
|
+
maximum: 1000,
|
|
14803
14911
|
describe: "Maximum files per page. Must be a whole number from 1 to 1000. Defaults to 100."
|
|
14804
14912
|
},
|
|
14805
14913
|
cursor: {
|
|
@@ -14835,6 +14943,7 @@ var V2_OPERATIONS = {
|
|
|
14835
14943
|
limit: {
|
|
14836
14944
|
kind: "integer",
|
|
14837
14945
|
default: 50,
|
|
14946
|
+
maximum: 100,
|
|
14838
14947
|
describe: "Maximum versions to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14839
14948
|
},
|
|
14840
14949
|
cursor: {
|
|
@@ -14870,6 +14979,7 @@ var V2_OPERATIONS = {
|
|
|
14870
14979
|
limit: {
|
|
14871
14980
|
kind: "integer",
|
|
14872
14981
|
default: 50,
|
|
14982
|
+
maximum: 100,
|
|
14873
14983
|
describe: "Maximum sandboxes to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14874
14984
|
},
|
|
14875
14985
|
cursor: {
|
|
@@ -14915,6 +15025,7 @@ var V2_OPERATIONS = {
|
|
|
14915
15025
|
limit: {
|
|
14916
15026
|
kind: "integer",
|
|
14917
15027
|
default: 50,
|
|
15028
|
+
maximum: 100,
|
|
14918
15029
|
describe: "Maximum secrets to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14919
15030
|
},
|
|
14920
15031
|
cursor: {
|
|
@@ -15081,6 +15192,7 @@ var V2_OPERATIONS = {
|
|
|
15081
15192
|
limit: {
|
|
15082
15193
|
kind: "integer",
|
|
15083
15194
|
default: 50,
|
|
15195
|
+
maximum: 100,
|
|
15084
15196
|
describe: "Maximum options per page, from 1 to 100. Defaults to 50."
|
|
15085
15197
|
}
|
|
15086
15198
|
}
|
|
@@ -15111,6 +15223,7 @@ var V2_OPERATIONS = {
|
|
|
15111
15223
|
limit: {
|
|
15112
15224
|
kind: "integer",
|
|
15113
15225
|
default: 50,
|
|
15226
|
+
maximum: 100,
|
|
15114
15227
|
describe: "Maximum skill editors to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
15115
15228
|
},
|
|
15116
15229
|
cursor: {
|
|
@@ -15146,6 +15259,7 @@ var V2_OPERATIONS = {
|
|
|
15146
15259
|
limit: {
|
|
15147
15260
|
kind: "integer",
|
|
15148
15261
|
default: 50,
|
|
15262
|
+
maximum: 100,
|
|
15149
15263
|
describe: "Maximum skills to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
15150
15264
|
},
|
|
15151
15265
|
cursor: {
|
|
@@ -15168,6 +15282,7 @@ var V2_OPERATIONS = {
|
|
|
15168
15282
|
limit: {
|
|
15169
15283
|
kind: "integer",
|
|
15170
15284
|
default: 50,
|
|
15285
|
+
maximum: 100,
|
|
15171
15286
|
describe: "Maximum identity providers to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
15172
15287
|
},
|
|
15173
15288
|
cursor: {
|
|
@@ -15245,6 +15360,7 @@ var V2_OPERATIONS = {
|
|
|
15245
15360
|
limit: {
|
|
15246
15361
|
kind: "integer",
|
|
15247
15362
|
default: 100,
|
|
15363
|
+
maximum: 1000,
|
|
15248
15364
|
describe: "Maximum rows to return per page. Must be a whole number from 1 to 1000. Defaults to 100."
|
|
15249
15365
|
},
|
|
15250
15366
|
cursor: {
|
|
@@ -15357,6 +15473,7 @@ var V2_OPERATIONS = {
|
|
|
15357
15473
|
limit: {
|
|
15358
15474
|
kind: "integer",
|
|
15359
15475
|
default: 50,
|
|
15476
|
+
maximum: 100,
|
|
15360
15477
|
describe: "Maximum tools to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
15361
15478
|
},
|
|
15362
15479
|
cursor: {
|
|
@@ -15438,6 +15555,7 @@ var V2_OPERATIONS = {
|
|
|
15438
15555
|
limit: {
|
|
15439
15556
|
kind: "integer",
|
|
15440
15557
|
default: 50,
|
|
15558
|
+
maximum: 100,
|
|
15441
15559
|
describe: "Maximum workflow-MCP servers to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
15442
15560
|
},
|
|
15443
15561
|
cursor: {
|
|
@@ -15480,6 +15598,7 @@ var V2_OPERATIONS = {
|
|
|
15480
15598
|
limit: {
|
|
15481
15599
|
kind: "integer",
|
|
15482
15600
|
default: 50,
|
|
15601
|
+
maximum: 100,
|
|
15483
15602
|
describe: "Maximum workflow runs to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
15484
15603
|
},
|
|
15485
15604
|
cursor: {
|
|
@@ -15523,6 +15642,7 @@ var V2_OPERATIONS = {
|
|
|
15523
15642
|
limit: {
|
|
15524
15643
|
kind: "integer",
|
|
15525
15644
|
default: 50,
|
|
15645
|
+
maximum: 100,
|
|
15526
15646
|
describe: "Maximum workflows to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
15527
15647
|
},
|
|
15528
15648
|
cursor: {
|
|
@@ -15566,6 +15686,7 @@ var V2_OPERATIONS = {
|
|
|
15566
15686
|
limit: {
|
|
15567
15687
|
kind: "integer",
|
|
15568
15688
|
default: 50,
|
|
15689
|
+
maximum: 100,
|
|
15569
15690
|
describe: "Maximum deployment versions to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
15570
15691
|
},
|
|
15571
15692
|
cursor: {
|
|
@@ -15586,6 +15707,7 @@ var V2_OPERATIONS = {
|
|
|
15586
15707
|
limit: {
|
|
15587
15708
|
kind: "integer",
|
|
15588
15709
|
default: 50,
|
|
15710
|
+
maximum: 100,
|
|
15589
15711
|
describe: "Maximum items to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
15590
15712
|
},
|
|
15591
15713
|
cursor: {
|
|
@@ -15618,6 +15740,7 @@ var V2_OPERATIONS = {
|
|
|
15618
15740
|
limit: {
|
|
15619
15741
|
kind: "integer",
|
|
15620
15742
|
default: 50,
|
|
15743
|
+
maximum: 100,
|
|
15621
15744
|
describe: "Maximum items to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
15622
15745
|
},
|
|
15623
15746
|
cursor: {
|
|
@@ -15663,6 +15786,7 @@ var V2_OPERATIONS = {
|
|
|
15663
15786
|
limit: {
|
|
15664
15787
|
kind: "integer",
|
|
15665
15788
|
default: 50,
|
|
15789
|
+
maximum: 100,
|
|
15666
15790
|
describe: "Maximum members to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
15667
15791
|
},
|
|
15668
15792
|
cursor: {
|
|
@@ -15682,6 +15806,7 @@ var V2_OPERATIONS = {
|
|
|
15682
15806
|
limit: {
|
|
15683
15807
|
kind: "integer",
|
|
15684
15808
|
default: 50,
|
|
15809
|
+
maximum: 100,
|
|
15685
15810
|
describe: "Maximum items to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
15686
15811
|
},
|
|
15687
15812
|
cursor: {
|
|
@@ -15716,6 +15841,7 @@ var V2_OPERATIONS = {
|
|
|
15716
15841
|
limit: {
|
|
15717
15842
|
kind: "integer",
|
|
15718
15843
|
default: 25,
|
|
15844
|
+
maximum: 100,
|
|
15719
15845
|
describe: "Maximum workspaces to return per page. Must be a whole number from 1 to 100. Defaults to 25."
|
|
15720
15846
|
},
|
|
15721
15847
|
cursor: {
|
|
@@ -15739,6 +15865,7 @@ var V2_OPERATIONS = {
|
|
|
15739
15865
|
limit: {
|
|
15740
15866
|
kind: "integer",
|
|
15741
15867
|
default: 50,
|
|
15868
|
+
maximum: 100,
|
|
15742
15869
|
describe: "Maximum schedules to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
15743
15870
|
},
|
|
15744
15871
|
cursor: {
|
|
@@ -15749,7 +15876,7 @@ var V2_OPERATIONS = {
|
|
|
15749
15876
|
kind: "enum",
|
|
15750
15877
|
values: ["createdAt"],
|
|
15751
15878
|
default: "createdAt",
|
|
15752
|
-
describe: "Field used to sort the result."
|
|
15879
|
+
describe: "Field used to sort the result. `createdAt` is when the schedule was created for the deployment version that runs it: each deploy creates new schedule rows, so a redeployed workflow's schedules move to the newest end."
|
|
15753
15880
|
},
|
|
15754
15881
|
sortOrder: {
|
|
15755
15882
|
kind: "enum",
|
|
@@ -16094,6 +16221,7 @@ var V2_OPERATIONS = {
|
|
|
16094
16221
|
sort: { kind: "array", describe: "Ordered table-row sort specification." },
|
|
16095
16222
|
limit: {
|
|
16096
16223
|
kind: "integer",
|
|
16224
|
+
maximum: 1000,
|
|
16097
16225
|
describe: "Maximum rows per page. `0` requests all matches, subject to a 5 MiB row-data ceiling; larger results return `400` with `TABLE_QUERY_RESULT_TOO_LARGE`. Use paged queries or an export for larger results."
|
|
16098
16226
|
},
|
|
16099
16227
|
cursor: { kind: "string", describe: "Opaque cursor returned by the previous query page." },
|
|
@@ -16132,14 +16260,17 @@ var V2_OPERATIONS = {
|
|
|
16132
16260
|
workspaceId: { kind: "string", required: true, describe: "Workspace that owns the file." },
|
|
16133
16261
|
maxBytes: {
|
|
16134
16262
|
kind: "integer",
|
|
16263
|
+
maximum: 26214400,
|
|
16135
16264
|
describe: "Optional ceiling on the source bytes fed to the parser, lowering but never raising the server limit."
|
|
16136
16265
|
},
|
|
16137
16266
|
offset: {
|
|
16138
16267
|
kind: "integer",
|
|
16268
|
+
maximum: 9007199254740991,
|
|
16139
16269
|
describe: "First line to return, 1-based; 0 also starts at the first line. Absent starts at the first line."
|
|
16140
16270
|
},
|
|
16141
16271
|
limit: {
|
|
16142
16272
|
kind: "integer",
|
|
16273
|
+
maximum: 9007199254740991,
|
|
16143
16274
|
describe: "How many lines to return from `offset`. Absent reads to the end."
|
|
16144
16275
|
}
|
|
16145
16276
|
}
|
|
@@ -16155,14 +16286,17 @@ var V2_OPERATIONS = {
|
|
|
16155
16286
|
workspaceId: { kind: "string", required: true, describe: "Workspace that owns the file." },
|
|
16156
16287
|
maxBytes: {
|
|
16157
16288
|
kind: "integer",
|
|
16289
|
+
maximum: 26214400,
|
|
16158
16290
|
describe: "Optional ceiling on the source bytes fed to the parser, lowering but never raising the server limit."
|
|
16159
16291
|
},
|
|
16160
16292
|
offset: {
|
|
16161
16293
|
kind: "integer",
|
|
16294
|
+
maximum: 9007199254740991,
|
|
16162
16295
|
describe: "First line to return, 1-based; 0 also starts at the first line. Absent starts at the first line."
|
|
16163
16296
|
},
|
|
16164
16297
|
limit: {
|
|
16165
16298
|
kind: "integer",
|
|
16299
|
+
maximum: 9007199254740991,
|
|
16166
16300
|
describe: "How many lines to return from `offset`. Absent reads to the end."
|
|
16167
16301
|
}
|
|
16168
16302
|
}
|
|
@@ -16368,6 +16502,7 @@ var V2_OPERATIONS = {
|
|
|
16368
16502
|
expectedRevision: {
|
|
16369
16503
|
kind: "integer",
|
|
16370
16504
|
required: true,
|
|
16505
|
+
maximum: 9007199254740991,
|
|
16371
16506
|
describe: "Permission revision read before exporting the grants."
|
|
16372
16507
|
},
|
|
16373
16508
|
permissions: {
|
|
@@ -16497,6 +16632,7 @@ var V2_OPERATIONS = {
|
|
|
16497
16632
|
},
|
|
16498
16633
|
newLimitCredits: {
|
|
16499
16634
|
kind: "integer",
|
|
16635
|
+
maximum: 9007199254740991,
|
|
16500
16636
|
describe: "Required only for a usage-limit request: a whole-number credit cap greater than the current cap. Omit for permission requests. Available when action is apply."
|
|
16501
16637
|
},
|
|
16502
16638
|
reason: {
|
|
@@ -16520,6 +16656,7 @@ var V2_OPERATIONS = {
|
|
|
16520
16656
|
},
|
|
16521
16657
|
newLimitCredits: {
|
|
16522
16658
|
kind: "integer",
|
|
16659
|
+
maximum: 9007199254740991,
|
|
16523
16660
|
describe: "Required only for a usage-limit request: a whole-number credit cap greater than the current cap. Omit for permission requests."
|
|
16524
16661
|
}
|
|
16525
16662
|
},
|
|
@@ -16681,6 +16818,7 @@ var V2_OPERATIONS = {
|
|
|
16681
16818
|
workspaceId: { kind: "string", required: true, describe: "Workspace that owns the file." },
|
|
16682
16819
|
expectedCurrentVersion: {
|
|
16683
16820
|
kind: "integer",
|
|
16821
|
+
maximum: 2147483647,
|
|
16684
16822
|
describe: "Revert only while this is still the current version; otherwise the request fails with `409`. Omit to revert whatever is current. Collaborative edits and repeated workflow writes that fold into the current version keep its number, so prefer `expectedRevision` to guard content."
|
|
16685
16823
|
},
|
|
16686
16824
|
expectedRevision: {
|
|
@@ -16704,6 +16842,7 @@ var V2_OPERATIONS = {
|
|
|
16704
16842
|
body: {
|
|
16705
16843
|
expectedCurrentVersion: {
|
|
16706
16844
|
kind: "integer",
|
|
16845
|
+
maximum: 2147483647,
|
|
16707
16846
|
describe: "Revert only while this is still the current version; otherwise the request fails with `409`. Omit to revert whatever is current. Collaborative edits and repeated workflow writes that fold into the current version keep its number, so prefer `expectedRevision` to guard content."
|
|
16708
16847
|
},
|
|
16709
16848
|
expectedRevision: {
|
|
@@ -16766,6 +16905,7 @@ var V2_OPERATIONS = {
|
|
|
16766
16905
|
body: {
|
|
16767
16906
|
version: {
|
|
16768
16907
|
kind: "integer",
|
|
16908
|
+
maximum: 2147483647,
|
|
16769
16909
|
describe: "Deployment version to reactivate. Omit to select the previous active version."
|
|
16770
16910
|
}
|
|
16771
16911
|
}
|
|
@@ -17072,7 +17212,12 @@ var V2_OPERATIONS = {
|
|
|
17072
17212
|
default: "regex",
|
|
17073
17213
|
describe: "How `query` is read."
|
|
17074
17214
|
},
|
|
17075
|
-
maxResults: {
|
|
17215
|
+
maxResults: {
|
|
17216
|
+
kind: "integer",
|
|
17217
|
+
default: 50,
|
|
17218
|
+
maximum: 200,
|
|
17219
|
+
describe: "Maximum matching lines to return."
|
|
17220
|
+
},
|
|
17076
17221
|
folderPaths: {
|
|
17077
17222
|
kind: "string",
|
|
17078
17223
|
describe: "Folders the search is confined to, comma-separated. Absent searches the whole workspace. The scope also narrows `indexStatus`, so `complete` describes the folders searched rather than the workspace."
|
|
@@ -17121,6 +17266,7 @@ var V2_OPERATIONS = {
|
|
|
17121
17266
|
topK: {
|
|
17122
17267
|
kind: "number",
|
|
17123
17268
|
default: 10,
|
|
17269
|
+
maximum: 100,
|
|
17124
17270
|
describe: "Maximum number of search results to return. Must be a whole number between 1 and 100."
|
|
17125
17271
|
},
|
|
17126
17272
|
tagFilters: {
|
|
@@ -17143,6 +17289,7 @@ var V2_OPERATIONS = {
|
|
|
17143
17289
|
},
|
|
17144
17290
|
rerankerInputCount: {
|
|
17145
17291
|
kind: "integer",
|
|
17292
|
+
maximum: 100,
|
|
17146
17293
|
describe: "How many candidate chunks to retrieve before reranking. Defaults to four times `topK`, capped at 100. A larger pool costs more retrieval work but gives the reranker more to choose from."
|
|
17147
17294
|
}
|
|
17148
17295
|
}
|
|
@@ -17167,7 +17314,12 @@ var V2_OPERATIONS = {
|
|
|
17167
17314
|
default: "regex",
|
|
17168
17315
|
describe: "How `query` is read."
|
|
17169
17316
|
},
|
|
17170
|
-
maxResults: {
|
|
17317
|
+
maxResults: {
|
|
17318
|
+
kind: "integer",
|
|
17319
|
+
default: 50,
|
|
17320
|
+
maximum: 200,
|
|
17321
|
+
describe: "Maximum matching lines to return."
|
|
17322
|
+
},
|
|
17171
17323
|
folderPaths: {
|
|
17172
17324
|
kind: "string",
|
|
17173
17325
|
describe: "Comma-separated folder paths within the Project. Omit to search the entire Project; index coverage applies to the selected folders."
|
|
@@ -17528,6 +17680,7 @@ var V2_OPERATIONS = {
|
|
|
17528
17680
|
},
|
|
17529
17681
|
syncIntervalMinutes: {
|
|
17530
17682
|
kind: "integer",
|
|
17683
|
+
maximum: 525600,
|
|
17531
17684
|
describe: "New scheduled synchronization interval in minutes."
|
|
17532
17685
|
},
|
|
17533
17686
|
status: {
|
|
@@ -17674,11 +17827,13 @@ var V2_OPERATIONS = {
|
|
|
17674
17827
|
timeout: {
|
|
17675
17828
|
kind: "integer",
|
|
17676
17829
|
default: 30000,
|
|
17830
|
+
maximum: 300000,
|
|
17677
17831
|
describe: "Per-request timeout in milliseconds. Defaults to 30000 on creation."
|
|
17678
17832
|
},
|
|
17679
17833
|
retries: {
|
|
17680
17834
|
kind: "integer",
|
|
17681
17835
|
default: 3,
|
|
17836
|
+
maximum: 10,
|
|
17682
17837
|
describe: "Number of retries per request. Defaults to 3 on creation."
|
|
17683
17838
|
},
|
|
17684
17839
|
enabled: {
|
|
@@ -17829,7 +17984,11 @@ var V2_OPERATIONS = {
|
|
|
17829
17984
|
kind: "string",
|
|
17830
17985
|
describe: "New parent folder identifier; null moves to the root, omission leaves the parent unchanged."
|
|
17831
17986
|
},
|
|
17832
|
-
sortOrder: {
|
|
17987
|
+
sortOrder: {
|
|
17988
|
+
kind: "integer",
|
|
17989
|
+
maximum: 9007199254740991,
|
|
17990
|
+
describe: "New manual position; omit to leave unchanged."
|
|
17991
|
+
}
|
|
17833
17992
|
}
|
|
17834
17993
|
},
|
|
17835
17994
|
updateProjectFileShare: {
|
|
@@ -17883,7 +18042,7 @@ var V2_OPERATIONS = {
|
|
|
17883
18042
|
required: true,
|
|
17884
18043
|
describe: "Row-data patch applied to every matching row."
|
|
17885
18044
|
},
|
|
17886
|
-
limit: { kind: "integer", describe: "Maximum matching rows to update." }
|
|
18045
|
+
limit: { kind: "integer", maximum: 1000, describe: "Maximum matching rows to update." }
|
|
17887
18046
|
}
|
|
17888
18047
|
},
|
|
17889
18048
|
updateSandbox: {
|
|
@@ -18624,6 +18783,8 @@ async function chooseLoginFlow(profile, options) {
|
|
|
18624
18783
|
if (status === "unreachable") {
|
|
18625
18784
|
throw new SimApiError(`Could not reach ${profile.endpoint}. Check the endpoint.`, 0);
|
|
18626
18785
|
}
|
|
18786
|
+
if (options.method === undefined && options.expiresIn !== undefined)
|
|
18787
|
+
return "handoff";
|
|
18627
18788
|
if (status === "unavailable") {
|
|
18628
18789
|
if (options.method === "oauth") {
|
|
18629
18790
|
throw new SimApiError(`${profile.endpoint} does not offer OAuth sign-in. Enable OAuth on the server or explicitly choose sim login --method api-key.`, 0);
|
|
@@ -18706,7 +18867,7 @@ Waiting for you to approve in the browser…`));
|
|
|
18706
18867
|
}
|
|
18707
18868
|
}
|
|
18708
18869
|
function loginCommand() {
|
|
18709
|
-
return new Command("login").description("Log in through the browser and store the login for the profile").addOption(new Option("--method <method>", "Credential to obtain: oauth requires OAuth support; api-key creates an API key through pairing (auto-selects when omitted)").choices(["oauth", "api-key"])).option("--no-browser", "Print the approval URL without opening it (either login method)").option("--read-only", "Ask only for permission to read, never to change anything").option("--expires-in <days>", `API
|
|
18870
|
+
return new Command("login").description("Log in through the browser and store the login for the profile").addOption(new Option("--method <method>", "Credential to obtain: oauth requires OAuth support; api-key creates an API key through pairing (auto-selects when omitted)").choices(["oauth", "api-key"])).option("--no-browser", "Print the approval URL without opening it (either login method)").option("--read-only", "Ask only for permission to read, never to change anything").option("--expires-in <days>", `Log in with an API key that expires after this many days (${MIN_KEY_EXPIRY_DAYS}-${MAX_KEY_EXPIRY_DAYS}); without it an API key never expires`).option("--callback-port <port>", "Pin the local port the browser returns to").option("-y, --yes", "Overwrite an existing API-key profile without prompting").action(async (options, command) => {
|
|
18710
18871
|
const profile = profileFrom(command, { allowUnknownProfile: true });
|
|
18711
18872
|
const authProfile = resolveAuthenticationProfileName(profile.name);
|
|
18712
18873
|
if (authProfile !== profile.name) {
|
|
@@ -18746,7 +18907,7 @@ function loginCommand() {
|
|
|
18746
18907
|
var DAY_MS = 24 * 60 * 60 * 1000;
|
|
18747
18908
|
var EXPIRY_TOLERANCE_MS = 60 * 60 * 1000;
|
|
18748
18909
|
function requireRequestedKey(key, keyRequest) {
|
|
18749
|
-
const refuse = (issued, flag) => new SimApiError(`The server issued ${issued}, not the key requested.
|
|
18910
|
+
const refuse = (issued, flag) => new SimApiError(`The server issued ${issued}, not the key requested, so the CLI did not store it. Revoke that key as described above, then update the Sim deployment or adjust ${flag}.`, 0);
|
|
18750
18911
|
const requestedAccess = keyRequest.readOnly ? "read" : "write";
|
|
18751
18912
|
const issuedAccess = key.access ?? "write";
|
|
18752
18913
|
if (issuedAccess !== requestedAccess) {
|
|
@@ -18813,7 +18974,8 @@ Waiting for approval…`));
|
|
|
18813
18974
|
});
|
|
18814
18975
|
} catch (error) {
|
|
18815
18976
|
const keyId = typeof key.id === "string" && key.id ? safeOneLine(key.id) : "unknown";
|
|
18816
|
-
|
|
18977
|
+
const listedAs = key.name ? `"${safeOneLine(key.name)}"` : `the newest key named "CLI (…Z)", created at about ${new Date().toISOString().slice(0, 19).replace("T", " ")}Z,`;
|
|
18978
|
+
printLine(styles3().yellow(`API key ${keyId} was created on your account but could not be stored safely. Revoke ${listedAs} in Settings → API keys.`));
|
|
18817
18979
|
throw error;
|
|
18818
18980
|
}
|
|
18819
18981
|
printLine(styles3().green(`
|
|
@@ -21093,6 +21255,16 @@ var CLI_CONTRACT = {
|
|
|
21093
21255
|
{ header: "run", path: "runId" }
|
|
21094
21256
|
]
|
|
21095
21257
|
},
|
|
21258
|
+
listPausedRuns: {
|
|
21259
|
+
command: "workflows runs paused",
|
|
21260
|
+
describe: "List runs waiting on human input across the workspace",
|
|
21261
|
+
columns: [
|
|
21262
|
+
{ header: "paused at", path: "pausedAt", format: "timestamp" },
|
|
21263
|
+
{ header: "workflow", path: "workflowName" },
|
|
21264
|
+
{ header: "waiting points", path: "points", format: "count" },
|
|
21265
|
+
{ header: "run", path: "runId" }
|
|
21266
|
+
]
|
|
21267
|
+
},
|
|
21096
21268
|
cancelWorkflowRun: {
|
|
21097
21269
|
command: "workflows runs cancel",
|
|
21098
21270
|
pathFlags: WORKFLOW_RUN_SCOPE,
|
|
@@ -22531,6 +22703,7 @@ async function executeOperation(operation, commandSpec, operationSpec, invocatio
|
|
|
22531
22703
|
throw new SimApiError("--cursor must be a non-empty string", 0);
|
|
22532
22704
|
}
|
|
22533
22705
|
const limit = pagedLimit === 0 ? Number.POSITIVE_INFINITY : pagedLimit;
|
|
22706
|
+
const maxPageSize = Math.min(DEFAULT_PAGE_SIZE, operationSpec[paging]?.limit?.maximum ?? Number.POSITIVE_INFINITY);
|
|
22534
22707
|
const rows = [];
|
|
22535
22708
|
const seenCursors = new Set(initialCursor ? [initialCursor] : []);
|
|
22536
22709
|
const progress = pageProgress();
|
|
@@ -22538,7 +22711,7 @@ async function executeOperation(operation, commandSpec, operationSpec, invocatio
|
|
|
22538
22711
|
let envelope;
|
|
22539
22712
|
try {
|
|
22540
22713
|
do {
|
|
22541
|
-
const pageSize = Math.min(
|
|
22714
|
+
const pageSize = Math.min(maxPageSize, limit - rows.length);
|
|
22542
22715
|
const pageLimit = "limit" in (operationSpec[paging] ?? {}) ? { limit: pageSize } : {};
|
|
22543
22716
|
const page = await client.request(operation, {
|
|
22544
22717
|
params: request.params,
|
|
@@ -22664,6 +22837,15 @@ function retypeMessage(message, spellings) {
|
|
|
22664
22837
|
}
|
|
22665
22838
|
return retyped;
|
|
22666
22839
|
}
|
|
22840
|
+
var LOCATION_PREFIX = /^(?:path|query|header|body)\.([^:\s]+): /;
|
|
22841
|
+
function retypeLocatedMessage(message, spellings) {
|
|
22842
|
+
const match = LOCATION_PREFIX.exec(message);
|
|
22843
|
+
if (!match)
|
|
22844
|
+
return retypeMessage(message, spellings);
|
|
22845
|
+
const [head, ...rest] = match[1].split(".");
|
|
22846
|
+
const location = [spellings.get(head) ?? head, ...rest].join(".");
|
|
22847
|
+
return `${location}: ${retypeMessage(message.slice(match[0].length), spellings)}`;
|
|
22848
|
+
}
|
|
22667
22849
|
function retypeDetails(details, spellings) {
|
|
22668
22850
|
if (Array.isArray(details))
|
|
22669
22851
|
return details.map((issue) => retypeDetails(issue, spellings));
|
|
@@ -22691,7 +22873,7 @@ function retypeApiError(error, operation, commandSpec, operationSpec) {
|
|
|
22691
22873
|
const spellings = typeableFields(operation, commandSpec, operationSpec);
|
|
22692
22874
|
if (spellings.size === 0)
|
|
22693
22875
|
return error;
|
|
22694
|
-
return new SimApiError(
|
|
22876
|
+
return new SimApiError(retypeLocatedMessage(error.message, spellings), error.status, error.code, error.details === undefined ? undefined : retypeDetails(error.details, spellings));
|
|
22695
22877
|
}
|
|
22696
22878
|
|
|
22697
22879
|
// src/runtime/build.ts
|