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/runtime.js
CHANGED
|
@@ -9194,6 +9194,7 @@ async function pollForKey(endpoint, auth, signal) {
|
|
|
9194
9194
|
return {
|
|
9195
9195
|
id: body.key.id,
|
|
9196
9196
|
apiKey: body.key.apiKey,
|
|
9197
|
+
name: typeof body.key.name === "string" ? body.key.name : null,
|
|
9197
9198
|
scope: body.scope ?? "copilot",
|
|
9198
9199
|
workspaceId: body.workspaceId ?? null,
|
|
9199
9200
|
workspaceBound: body.workspaceBound === true,
|
|
@@ -10125,10 +10126,16 @@ var V2_OPERATIONS = {
|
|
|
10125
10126
|
responseMode: "json",
|
|
10126
10127
|
summary: "Compare workflow versions",
|
|
10127
10128
|
query: {
|
|
10128
|
-
base: {
|
|
10129
|
+
base: {
|
|
10130
|
+
kind: "integer",
|
|
10131
|
+
required: true,
|
|
10132
|
+
maximum: 2147483647,
|
|
10133
|
+
describe: "Deployment version to compare from."
|
|
10134
|
+
},
|
|
10129
10135
|
target: {
|
|
10130
10136
|
kind: "integer",
|
|
10131
10137
|
required: true,
|
|
10138
|
+
maximum: 2147483647,
|
|
10132
10139
|
describe: "Deployment version to compare to, in the same workflow."
|
|
10133
10140
|
}
|
|
10134
10141
|
}
|
|
@@ -10391,7 +10398,12 @@ var V2_OPERATIONS = {
|
|
|
10391
10398
|
},
|
|
10392
10399
|
name: { kind: "string", required: true, describe: "File name, including its extension." },
|
|
10393
10400
|
contentType: { kind: "string", required: true, describe: "MIME type of the uploaded file." },
|
|
10394
|
-
size: {
|
|
10401
|
+
size: {
|
|
10402
|
+
kind: "integer",
|
|
10403
|
+
required: true,
|
|
10404
|
+
maximum: 5368709120,
|
|
10405
|
+
describe: "Exact file size in bytes."
|
|
10406
|
+
},
|
|
10395
10407
|
folderPath: {
|
|
10396
10408
|
kind: "string",
|
|
10397
10409
|
describe: "Canonical destination folder path. Omit for the workspace root."
|
|
@@ -10511,6 +10523,7 @@ var V2_OPERATIONS = {
|
|
|
10511
10523
|
syncIntervalMinutes: {
|
|
10512
10524
|
kind: "integer",
|
|
10513
10525
|
default: 1440,
|
|
10526
|
+
maximum: 525600,
|
|
10514
10527
|
describe: "Scheduled synchronization interval in minutes; zero disables scheduling."
|
|
10515
10528
|
}
|
|
10516
10529
|
}
|
|
@@ -10538,7 +10551,12 @@ var V2_OPERATIONS = {
|
|
|
10538
10551
|
required: true,
|
|
10539
10552
|
describe: "Supported MIME type for the document."
|
|
10540
10553
|
},
|
|
10541
|
-
size: {
|
|
10554
|
+
size: {
|
|
10555
|
+
kind: "integer",
|
|
10556
|
+
required: true,
|
|
10557
|
+
maximum: 104857600,
|
|
10558
|
+
describe: "Exact file size in bytes."
|
|
10559
|
+
},
|
|
10542
10560
|
tag1: { kind: "string", describe: "Value for tag slot 1." },
|
|
10543
10561
|
tag2: { kind: "string", describe: "Value for tag slot 2." },
|
|
10544
10562
|
tag3: { kind: "string", describe: "Value for tag slot 3." },
|
|
@@ -10731,11 +10749,13 @@ var V2_OPERATIONS = {
|
|
|
10731
10749
|
timeout: {
|
|
10732
10750
|
kind: "integer",
|
|
10733
10751
|
default: 30000,
|
|
10752
|
+
maximum: 300000,
|
|
10734
10753
|
describe: "Per-request timeout in milliseconds. Defaults to 30000 on creation."
|
|
10735
10754
|
},
|
|
10736
10755
|
retries: {
|
|
10737
10756
|
kind: "integer",
|
|
10738
10757
|
default: 3,
|
|
10758
|
+
maximum: 10,
|
|
10739
10759
|
describe: "Number of retries per request. Defaults to 3 on creation."
|
|
10740
10760
|
},
|
|
10741
10761
|
enabled: {
|
|
@@ -10879,7 +10899,12 @@ var V2_OPERATIONS = {
|
|
|
10879
10899
|
body: {
|
|
10880
10900
|
name: { kind: "string", required: true, describe: "File name, including its extension." },
|
|
10881
10901
|
contentType: { kind: "string", required: true, describe: "MIME type of the uploaded file." },
|
|
10882
|
-
size: {
|
|
10902
|
+
size: {
|
|
10903
|
+
kind: "integer",
|
|
10904
|
+
required: true,
|
|
10905
|
+
maximum: 5368709120,
|
|
10906
|
+
describe: "Exact file size in bytes."
|
|
10907
|
+
},
|
|
10883
10908
|
folderPath: {
|
|
10884
10909
|
kind: "string",
|
|
10885
10910
|
describe: "Canonical destination folder path. Specify either folderId or folderPath, not both."
|
|
@@ -11668,7 +11693,7 @@ var V2_OPERATIONS = {
|
|
|
11668
11693
|
kind: "unknown",
|
|
11669
11694
|
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`."
|
|
11670
11695
|
},
|
|
11671
|
-
limit: { kind: "integer", describe: "Maximum matching rows to delete." },
|
|
11696
|
+
limit: { kind: "integer", maximum: 1000, describe: "Maximum matching rows to delete." },
|
|
11672
11697
|
rowIds: { kind: "array", describe: "Explicit row identifiers to delete." }
|
|
11673
11698
|
}
|
|
11674
11699
|
},
|
|
@@ -11843,6 +11868,7 @@ var V2_OPERATIONS = {
|
|
|
11843
11868
|
limit: {
|
|
11844
11869
|
kind: "integer",
|
|
11845
11870
|
default: 50,
|
|
11871
|
+
maximum: 100,
|
|
11846
11872
|
describe: "Maximum access items to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
11847
11873
|
},
|
|
11848
11874
|
cursor: {
|
|
@@ -11899,6 +11925,7 @@ var V2_OPERATIONS = {
|
|
|
11899
11925
|
limit: {
|
|
11900
11926
|
kind: "integer",
|
|
11901
11927
|
default: 50,
|
|
11928
|
+
maximum: 100,
|
|
11902
11929
|
describe: "Maximum access items to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
11903
11930
|
},
|
|
11904
11931
|
cursor: {
|
|
@@ -12027,6 +12054,7 @@ var V2_OPERATIONS = {
|
|
|
12027
12054
|
},
|
|
12028
12055
|
timeoutSeconds: {
|
|
12029
12056
|
kind: "integer",
|
|
12057
|
+
maximum: 300,
|
|
12030
12058
|
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."
|
|
12031
12059
|
}
|
|
12032
12060
|
}
|
|
@@ -12054,10 +12082,12 @@ var V2_OPERATIONS = {
|
|
|
12054
12082
|
},
|
|
12055
12083
|
executionTimeoutSeconds: {
|
|
12056
12084
|
kind: "integer",
|
|
12085
|
+
maximum: 604800,
|
|
12057
12086
|
describe: "Maximum duration of an asynchronous run, in seconds, capped by the plan's execution timeout. Requires `async: true` or `waitTimeoutSeconds`; otherwise returns `400`."
|
|
12058
12087
|
},
|
|
12059
12088
|
waitTimeoutSeconds: {
|
|
12060
12089
|
kind: "integer",
|
|
12090
|
+
maximum: 604800,
|
|
12061
12091
|
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`."
|
|
12062
12092
|
},
|
|
12063
12093
|
stream: {
|
|
@@ -12085,6 +12115,7 @@ var V2_OPERATIONS = {
|
|
|
12085
12115
|
},
|
|
12086
12116
|
base64MaxBytes: {
|
|
12087
12117
|
kind: "integer",
|
|
12118
|
+
maximum: 16777216,
|
|
12088
12119
|
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."
|
|
12089
12120
|
}
|
|
12090
12121
|
},
|
|
@@ -12451,6 +12482,7 @@ var V2_OPERATIONS = {
|
|
|
12451
12482
|
segmentCount: {
|
|
12452
12483
|
kind: "integer",
|
|
12453
12484
|
default: 72,
|
|
12485
|
+
maximum: 500,
|
|
12454
12486
|
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."
|
|
12455
12487
|
},
|
|
12456
12488
|
includeEmpty: {
|
|
@@ -12601,6 +12633,7 @@ var V2_OPERATIONS = {
|
|
|
12601
12633
|
limit: {
|
|
12602
12634
|
kind: "integer",
|
|
12603
12635
|
default: 50,
|
|
12636
|
+
maximum: 100,
|
|
12604
12637
|
describe: "Maximum ranked groups to return. Remaining usage is summarized in other. Must be a whole number from 1 to 100. Defaults to 50."
|
|
12605
12638
|
}
|
|
12606
12639
|
}
|
|
@@ -13142,6 +13175,7 @@ var V2_OPERATIONS = {
|
|
|
13142
13175
|
},
|
|
13143
13176
|
base64MaxBytes: {
|
|
13144
13177
|
kind: "integer",
|
|
13178
|
+
maximum: 16777216,
|
|
13145
13179
|
describe: "Per-file inline ceiling, lowering but never raising the server limit of 16 MiB."
|
|
13146
13180
|
}
|
|
13147
13181
|
}
|
|
@@ -13214,6 +13248,7 @@ var V2_OPERATIONS = {
|
|
|
13214
13248
|
limit: {
|
|
13215
13249
|
kind: "integer",
|
|
13216
13250
|
default: 50,
|
|
13251
|
+
maximum: 100,
|
|
13217
13252
|
describe: "Maximum items to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13218
13253
|
},
|
|
13219
13254
|
cursor: {
|
|
@@ -13348,6 +13383,7 @@ var V2_OPERATIONS = {
|
|
|
13348
13383
|
limit: {
|
|
13349
13384
|
kind: "integer",
|
|
13350
13385
|
default: 50,
|
|
13386
|
+
maximum: 100,
|
|
13351
13387
|
describe: "Maximum audit entries to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13352
13388
|
},
|
|
13353
13389
|
cursor: {
|
|
@@ -13405,6 +13441,7 @@ var V2_OPERATIONS = {
|
|
|
13405
13441
|
limit: {
|
|
13406
13442
|
kind: "integer",
|
|
13407
13443
|
default: 50,
|
|
13444
|
+
maximum: 100,
|
|
13408
13445
|
describe: "Maximum usage events per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13409
13446
|
},
|
|
13410
13447
|
cursor: {
|
|
@@ -13463,6 +13500,7 @@ var V2_OPERATIONS = {
|
|
|
13463
13500
|
limit: {
|
|
13464
13501
|
kind: "integer",
|
|
13465
13502
|
default: 50,
|
|
13503
|
+
maximum: 100,
|
|
13466
13504
|
describe: "Maximum blocks to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13467
13505
|
},
|
|
13468
13506
|
cursor: {
|
|
@@ -13500,6 +13538,7 @@ var V2_OPERATIONS = {
|
|
|
13500
13538
|
limit: {
|
|
13501
13539
|
kind: "integer",
|
|
13502
13540
|
default: 50,
|
|
13541
|
+
maximum: 100,
|
|
13503
13542
|
describe: "Maximum chat deployments to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13504
13543
|
},
|
|
13505
13544
|
cursor: {
|
|
@@ -13533,6 +13572,7 @@ var V2_OPERATIONS = {
|
|
|
13533
13572
|
limit: {
|
|
13534
13573
|
kind: "integer",
|
|
13535
13574
|
default: 25,
|
|
13575
|
+
maximum: 100,
|
|
13536
13576
|
describe: "Maximum connector types to return per page. Must be a whole number from 1 to 100. Defaults to 25."
|
|
13537
13577
|
},
|
|
13538
13578
|
cursor: {
|
|
@@ -13558,6 +13598,7 @@ var V2_OPERATIONS = {
|
|
|
13558
13598
|
limit: {
|
|
13559
13599
|
kind: "integer",
|
|
13560
13600
|
default: 50,
|
|
13601
|
+
maximum: 100,
|
|
13561
13602
|
describe: "Maximum credential members to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13562
13603
|
},
|
|
13563
13604
|
cursor: {
|
|
@@ -13636,6 +13677,7 @@ var V2_OPERATIONS = {
|
|
|
13636
13677
|
limit: {
|
|
13637
13678
|
kind: "integer",
|
|
13638
13679
|
default: 50,
|
|
13680
|
+
maximum: 100,
|
|
13639
13681
|
describe: "Maximum credentials to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13640
13682
|
},
|
|
13641
13683
|
cursor: {
|
|
@@ -13675,6 +13717,7 @@ var V2_OPERATIONS = {
|
|
|
13675
13717
|
limit: {
|
|
13676
13718
|
kind: "integer",
|
|
13677
13719
|
default: 50,
|
|
13720
|
+
maximum: 100,
|
|
13678
13721
|
describe: "Maximum custom tools to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13679
13722
|
},
|
|
13680
13723
|
cursor: {
|
|
@@ -13741,6 +13784,7 @@ var V2_OPERATIONS = {
|
|
|
13741
13784
|
},
|
|
13742
13785
|
depth: {
|
|
13743
13786
|
kind: "integer",
|
|
13787
|
+
maximum: 64,
|
|
13744
13788
|
describe: "Deepest level below parentPath to include when recursive is true."
|
|
13745
13789
|
}
|
|
13746
13790
|
}
|
|
@@ -13836,6 +13880,7 @@ var V2_OPERATIONS = {
|
|
|
13836
13880
|
limit: {
|
|
13837
13881
|
kind: "integer",
|
|
13838
13882
|
default: 50,
|
|
13883
|
+
maximum: 100,
|
|
13839
13884
|
describe: "Maximum versions to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13840
13885
|
},
|
|
13841
13886
|
cursor: {
|
|
@@ -13885,6 +13930,7 @@ var V2_OPERATIONS = {
|
|
|
13885
13930
|
limit: {
|
|
13886
13931
|
kind: "integer",
|
|
13887
13932
|
default: 50,
|
|
13933
|
+
maximum: 100,
|
|
13888
13934
|
describe: "Maximum knowledge bases to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13889
13935
|
},
|
|
13890
13936
|
cursor: {
|
|
@@ -13935,6 +13981,7 @@ var V2_OPERATIONS = {
|
|
|
13935
13981
|
limit: {
|
|
13936
13982
|
kind: "integer",
|
|
13937
13983
|
default: 50,
|
|
13984
|
+
maximum: 100,
|
|
13938
13985
|
describe: "Maximum chunks to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13939
13986
|
},
|
|
13940
13987
|
cursor: {
|
|
@@ -13967,6 +14014,7 @@ var V2_OPERATIONS = {
|
|
|
13967
14014
|
limit: {
|
|
13968
14015
|
kind: "integer",
|
|
13969
14016
|
default: 50,
|
|
14017
|
+
maximum: 100,
|
|
13970
14018
|
describe: "Maximum connector documents to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
13971
14019
|
},
|
|
13972
14020
|
cursor: {
|
|
@@ -14004,6 +14052,7 @@ var V2_OPERATIONS = {
|
|
|
14004
14052
|
limit: {
|
|
14005
14053
|
kind: "integer",
|
|
14006
14054
|
default: 50,
|
|
14055
|
+
maximum: 100,
|
|
14007
14056
|
describe: "Maximum connectors to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14008
14057
|
},
|
|
14009
14058
|
cursor: {
|
|
@@ -14028,6 +14077,7 @@ var V2_OPERATIONS = {
|
|
|
14028
14077
|
limit: {
|
|
14029
14078
|
kind: "integer",
|
|
14030
14079
|
default: 50,
|
|
14080
|
+
maximum: 100,
|
|
14031
14081
|
describe: "Maximum documents to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14032
14082
|
},
|
|
14033
14083
|
search: {
|
|
@@ -14170,18 +14220,22 @@ var V2_OPERATIONS = {
|
|
|
14170
14220
|
},
|
|
14171
14221
|
minDurationMs: {
|
|
14172
14222
|
kind: "integer",
|
|
14223
|
+
maximum: 2147483647,
|
|
14173
14224
|
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."
|
|
14174
14225
|
},
|
|
14175
14226
|
maxDurationMs: {
|
|
14176
14227
|
kind: "integer",
|
|
14228
|
+
maximum: 2147483647,
|
|
14177
14229
|
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."
|
|
14178
14230
|
},
|
|
14179
14231
|
minCost: {
|
|
14180
14232
|
kind: "number",
|
|
14233
|
+
maximum: 1e6,
|
|
14181
14234
|
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."
|
|
14182
14235
|
},
|
|
14183
14236
|
maxCost: {
|
|
14184
14237
|
kind: "number",
|
|
14238
|
+
maximum: 1e6,
|
|
14185
14239
|
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."
|
|
14186
14240
|
},
|
|
14187
14241
|
model: { kind: "string", describe: "AI model used during execution." },
|
|
@@ -14274,6 +14328,7 @@ var V2_OPERATIONS = {
|
|
|
14274
14328
|
limit: {
|
|
14275
14329
|
kind: "integer",
|
|
14276
14330
|
default: 50,
|
|
14331
|
+
maximum: 100,
|
|
14277
14332
|
describe: "Maximum MCP servers to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14278
14333
|
},
|
|
14279
14334
|
cursor: {
|
|
@@ -14331,6 +14386,7 @@ var V2_OPERATIONS = {
|
|
|
14331
14386
|
limit: {
|
|
14332
14387
|
kind: "integer",
|
|
14333
14388
|
default: 50,
|
|
14389
|
+
maximum: 100,
|
|
14334
14390
|
describe: "Maximum access requests to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14335
14391
|
},
|
|
14336
14392
|
cursor: {
|
|
@@ -14368,6 +14424,7 @@ var V2_OPERATIONS = {
|
|
|
14368
14424
|
limit: {
|
|
14369
14425
|
kind: "integer",
|
|
14370
14426
|
default: 50,
|
|
14427
|
+
maximum: 100,
|
|
14371
14428
|
describe: "Maximum access requests to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14372
14429
|
},
|
|
14373
14430
|
cursor: {
|
|
@@ -14405,6 +14462,7 @@ var V2_OPERATIONS = {
|
|
|
14405
14462
|
limit: {
|
|
14406
14463
|
kind: "integer",
|
|
14407
14464
|
default: 50,
|
|
14465
|
+
maximum: 100,
|
|
14408
14466
|
describe: "Maximum access requests to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14409
14467
|
},
|
|
14410
14468
|
cursor: {
|
|
@@ -14431,6 +14489,7 @@ var V2_OPERATIONS = {
|
|
|
14431
14489
|
limit: {
|
|
14432
14490
|
kind: "integer",
|
|
14433
14491
|
default: 50,
|
|
14492
|
+
maximum: 100,
|
|
14434
14493
|
describe: "Maximum domain claims to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14435
14494
|
},
|
|
14436
14495
|
cursor: {
|
|
@@ -14484,6 +14543,7 @@ var V2_OPERATIONS = {
|
|
|
14484
14543
|
limit: {
|
|
14485
14544
|
kind: "integer",
|
|
14486
14545
|
default: 50,
|
|
14546
|
+
maximum: 100,
|
|
14487
14547
|
describe: "Maximum invitations to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14488
14548
|
},
|
|
14489
14549
|
cursor: {
|
|
@@ -14523,6 +14583,7 @@ var V2_OPERATIONS = {
|
|
|
14523
14583
|
limit: {
|
|
14524
14584
|
kind: "integer",
|
|
14525
14585
|
default: 50,
|
|
14586
|
+
maximum: 100,
|
|
14526
14587
|
describe: "Maximum workspaces to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14527
14588
|
},
|
|
14528
14589
|
cursor: {
|
|
@@ -14559,6 +14620,7 @@ var V2_OPERATIONS = {
|
|
|
14559
14620
|
limit: {
|
|
14560
14621
|
kind: "integer",
|
|
14561
14622
|
default: 50,
|
|
14623
|
+
maximum: 100,
|
|
14562
14624
|
describe: "Maximum members to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14563
14625
|
},
|
|
14564
14626
|
cursor: {
|
|
@@ -14594,6 +14656,7 @@ var V2_OPERATIONS = {
|
|
|
14594
14656
|
limit: {
|
|
14595
14657
|
kind: "integer",
|
|
14596
14658
|
default: 50,
|
|
14659
|
+
maximum: 100,
|
|
14597
14660
|
describe: "Maximum organizations to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14598
14661
|
},
|
|
14599
14662
|
cursor: {
|
|
@@ -14649,6 +14712,7 @@ var V2_OPERATIONS = {
|
|
|
14649
14712
|
limit: {
|
|
14650
14713
|
kind: "integer",
|
|
14651
14714
|
default: 50,
|
|
14715
|
+
maximum: 100,
|
|
14652
14716
|
describe: "Maximum usage events per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14653
14717
|
},
|
|
14654
14718
|
cursor: {
|
|
@@ -14697,6 +14761,7 @@ var V2_OPERATIONS = {
|
|
|
14697
14761
|
limit: {
|
|
14698
14762
|
kind: "integer",
|
|
14699
14763
|
default: 50,
|
|
14764
|
+
maximum: 100,
|
|
14700
14765
|
describe: "Maximum workspaces to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14701
14766
|
},
|
|
14702
14767
|
cursor: {
|
|
@@ -14705,6 +14770,46 @@ var V2_OPERATIONS = {
|
|
|
14705
14770
|
}
|
|
14706
14771
|
}
|
|
14707
14772
|
},
|
|
14773
|
+
listPausedRuns: {
|
|
14774
|
+
method: "GET",
|
|
14775
|
+
path: "/api/v2/workflows/runs/paused",
|
|
14776
|
+
pathParams: [],
|
|
14777
|
+
responseMode: "json",
|
|
14778
|
+
summary: "List paused workflow runs",
|
|
14779
|
+
query: {
|
|
14780
|
+
workspaceId: {
|
|
14781
|
+
kind: "string",
|
|
14782
|
+
required: true,
|
|
14783
|
+
describe: "Workspace whose paused runs should be listed."
|
|
14784
|
+
},
|
|
14785
|
+
includeOutput: {
|
|
14786
|
+
kind: "boolean",
|
|
14787
|
+
describe: "Include each pause point's reviewer `display` content when true."
|
|
14788
|
+
},
|
|
14789
|
+
limit: {
|
|
14790
|
+
kind: "integer",
|
|
14791
|
+
default: 10,
|
|
14792
|
+
maximum: 25,
|
|
14793
|
+
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."
|
|
14794
|
+
},
|
|
14795
|
+
cursor: {
|
|
14796
|
+
kind: "string",
|
|
14797
|
+
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."
|
|
14798
|
+
},
|
|
14799
|
+
sortBy: {
|
|
14800
|
+
kind: "enum",
|
|
14801
|
+
values: ["pausedAt"],
|
|
14802
|
+
default: "pausedAt",
|
|
14803
|
+
describe: "Field used to sort the result."
|
|
14804
|
+
},
|
|
14805
|
+
sortOrder: {
|
|
14806
|
+
kind: "enum",
|
|
14807
|
+
values: ["asc", "desc"],
|
|
14808
|
+
default: "desc",
|
|
14809
|
+
describe: "Sort direction."
|
|
14810
|
+
}
|
|
14811
|
+
}
|
|
14812
|
+
},
|
|
14708
14813
|
listPermissionGroupMembers: {
|
|
14709
14814
|
method: "GET",
|
|
14710
14815
|
path: "/api/v2/organizations/[organizationId]/permission-groups/[groupId]/members",
|
|
@@ -14732,6 +14837,7 @@ var V2_OPERATIONS = {
|
|
|
14732
14837
|
limit: {
|
|
14733
14838
|
kind: "integer",
|
|
14734
14839
|
default: 50,
|
|
14840
|
+
maximum: 100,
|
|
14735
14841
|
describe: "Maximum group members to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14736
14842
|
},
|
|
14737
14843
|
cursor: {
|
|
@@ -14768,6 +14874,7 @@ var V2_OPERATIONS = {
|
|
|
14768
14874
|
limit: {
|
|
14769
14875
|
kind: "integer",
|
|
14770
14876
|
default: 50,
|
|
14877
|
+
maximum: 100,
|
|
14771
14878
|
describe: "Maximum permission groups to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14772
14879
|
},
|
|
14773
14880
|
cursor: {
|
|
@@ -14849,6 +14956,7 @@ var V2_OPERATIONS = {
|
|
|
14849
14956
|
limit: {
|
|
14850
14957
|
kind: "integer",
|
|
14851
14958
|
default: 100,
|
|
14959
|
+
maximum: 1000,
|
|
14852
14960
|
describe: "Maximum files per page. Must be a whole number from 1 to 1000. Defaults to 100."
|
|
14853
14961
|
},
|
|
14854
14962
|
cursor: {
|
|
@@ -14884,6 +14992,7 @@ var V2_OPERATIONS = {
|
|
|
14884
14992
|
limit: {
|
|
14885
14993
|
kind: "integer",
|
|
14886
14994
|
default: 50,
|
|
14995
|
+
maximum: 100,
|
|
14887
14996
|
describe: "Maximum versions to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14888
14997
|
},
|
|
14889
14998
|
cursor: {
|
|
@@ -14919,6 +15028,7 @@ var V2_OPERATIONS = {
|
|
|
14919
15028
|
limit: {
|
|
14920
15029
|
kind: "integer",
|
|
14921
15030
|
default: 50,
|
|
15031
|
+
maximum: 100,
|
|
14922
15032
|
describe: "Maximum sandboxes to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14923
15033
|
},
|
|
14924
15034
|
cursor: {
|
|
@@ -14964,6 +15074,7 @@ var V2_OPERATIONS = {
|
|
|
14964
15074
|
limit: {
|
|
14965
15075
|
kind: "integer",
|
|
14966
15076
|
default: 50,
|
|
15077
|
+
maximum: 100,
|
|
14967
15078
|
describe: "Maximum secrets to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
14968
15079
|
},
|
|
14969
15080
|
cursor: {
|
|
@@ -15130,6 +15241,7 @@ var V2_OPERATIONS = {
|
|
|
15130
15241
|
limit: {
|
|
15131
15242
|
kind: "integer",
|
|
15132
15243
|
default: 50,
|
|
15244
|
+
maximum: 100,
|
|
15133
15245
|
describe: "Maximum options per page, from 1 to 100. Defaults to 50."
|
|
15134
15246
|
}
|
|
15135
15247
|
}
|
|
@@ -15160,6 +15272,7 @@ var V2_OPERATIONS = {
|
|
|
15160
15272
|
limit: {
|
|
15161
15273
|
kind: "integer",
|
|
15162
15274
|
default: 50,
|
|
15275
|
+
maximum: 100,
|
|
15163
15276
|
describe: "Maximum skill editors to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
15164
15277
|
},
|
|
15165
15278
|
cursor: {
|
|
@@ -15195,6 +15308,7 @@ var V2_OPERATIONS = {
|
|
|
15195
15308
|
limit: {
|
|
15196
15309
|
kind: "integer",
|
|
15197
15310
|
default: 50,
|
|
15311
|
+
maximum: 100,
|
|
15198
15312
|
describe: "Maximum skills to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
15199
15313
|
},
|
|
15200
15314
|
cursor: {
|
|
@@ -15217,6 +15331,7 @@ var V2_OPERATIONS = {
|
|
|
15217
15331
|
limit: {
|
|
15218
15332
|
kind: "integer",
|
|
15219
15333
|
default: 50,
|
|
15334
|
+
maximum: 100,
|
|
15220
15335
|
describe: "Maximum identity providers to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
15221
15336
|
},
|
|
15222
15337
|
cursor: {
|
|
@@ -15294,6 +15409,7 @@ var V2_OPERATIONS = {
|
|
|
15294
15409
|
limit: {
|
|
15295
15410
|
kind: "integer",
|
|
15296
15411
|
default: 100,
|
|
15412
|
+
maximum: 1000,
|
|
15297
15413
|
describe: "Maximum rows to return per page. Must be a whole number from 1 to 1000. Defaults to 100."
|
|
15298
15414
|
},
|
|
15299
15415
|
cursor: {
|
|
@@ -15406,6 +15522,7 @@ var V2_OPERATIONS = {
|
|
|
15406
15522
|
limit: {
|
|
15407
15523
|
kind: "integer",
|
|
15408
15524
|
default: 50,
|
|
15525
|
+
maximum: 100,
|
|
15409
15526
|
describe: "Maximum tools to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
15410
15527
|
},
|
|
15411
15528
|
cursor: {
|
|
@@ -15487,6 +15604,7 @@ var V2_OPERATIONS = {
|
|
|
15487
15604
|
limit: {
|
|
15488
15605
|
kind: "integer",
|
|
15489
15606
|
default: 50,
|
|
15607
|
+
maximum: 100,
|
|
15490
15608
|
describe: "Maximum workflow-MCP servers to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
15491
15609
|
},
|
|
15492
15610
|
cursor: {
|
|
@@ -15529,6 +15647,7 @@ var V2_OPERATIONS = {
|
|
|
15529
15647
|
limit: {
|
|
15530
15648
|
kind: "integer",
|
|
15531
15649
|
default: 50,
|
|
15650
|
+
maximum: 100,
|
|
15532
15651
|
describe: "Maximum workflow runs to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
15533
15652
|
},
|
|
15534
15653
|
cursor: {
|
|
@@ -15572,6 +15691,7 @@ var V2_OPERATIONS = {
|
|
|
15572
15691
|
limit: {
|
|
15573
15692
|
kind: "integer",
|
|
15574
15693
|
default: 50,
|
|
15694
|
+
maximum: 100,
|
|
15575
15695
|
describe: "Maximum workflows to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
15576
15696
|
},
|
|
15577
15697
|
cursor: {
|
|
@@ -15615,6 +15735,7 @@ var V2_OPERATIONS = {
|
|
|
15615
15735
|
limit: {
|
|
15616
15736
|
kind: "integer",
|
|
15617
15737
|
default: 50,
|
|
15738
|
+
maximum: 100,
|
|
15618
15739
|
describe: "Maximum deployment versions to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
15619
15740
|
},
|
|
15620
15741
|
cursor: {
|
|
@@ -15635,6 +15756,7 @@ var V2_OPERATIONS = {
|
|
|
15635
15756
|
limit: {
|
|
15636
15757
|
kind: "integer",
|
|
15637
15758
|
default: 50,
|
|
15759
|
+
maximum: 100,
|
|
15638
15760
|
describe: "Maximum items to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
15639
15761
|
},
|
|
15640
15762
|
cursor: {
|
|
@@ -15667,6 +15789,7 @@ var V2_OPERATIONS = {
|
|
|
15667
15789
|
limit: {
|
|
15668
15790
|
kind: "integer",
|
|
15669
15791
|
default: 50,
|
|
15792
|
+
maximum: 100,
|
|
15670
15793
|
describe: "Maximum items to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
15671
15794
|
},
|
|
15672
15795
|
cursor: {
|
|
@@ -15712,6 +15835,7 @@ var V2_OPERATIONS = {
|
|
|
15712
15835
|
limit: {
|
|
15713
15836
|
kind: "integer",
|
|
15714
15837
|
default: 50,
|
|
15838
|
+
maximum: 100,
|
|
15715
15839
|
describe: "Maximum members to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
15716
15840
|
},
|
|
15717
15841
|
cursor: {
|
|
@@ -15731,6 +15855,7 @@ var V2_OPERATIONS = {
|
|
|
15731
15855
|
limit: {
|
|
15732
15856
|
kind: "integer",
|
|
15733
15857
|
default: 50,
|
|
15858
|
+
maximum: 100,
|
|
15734
15859
|
describe: "Maximum items to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
15735
15860
|
},
|
|
15736
15861
|
cursor: {
|
|
@@ -15765,6 +15890,7 @@ var V2_OPERATIONS = {
|
|
|
15765
15890
|
limit: {
|
|
15766
15891
|
kind: "integer",
|
|
15767
15892
|
default: 25,
|
|
15893
|
+
maximum: 100,
|
|
15768
15894
|
describe: "Maximum workspaces to return per page. Must be a whole number from 1 to 100. Defaults to 25."
|
|
15769
15895
|
},
|
|
15770
15896
|
cursor: {
|
|
@@ -15788,6 +15914,7 @@ var V2_OPERATIONS = {
|
|
|
15788
15914
|
limit: {
|
|
15789
15915
|
kind: "integer",
|
|
15790
15916
|
default: 50,
|
|
15917
|
+
maximum: 100,
|
|
15791
15918
|
describe: "Maximum schedules to return per page. Must be a whole number from 1 to 100. Defaults to 50."
|
|
15792
15919
|
},
|
|
15793
15920
|
cursor: {
|
|
@@ -15798,7 +15925,7 @@ var V2_OPERATIONS = {
|
|
|
15798
15925
|
kind: "enum",
|
|
15799
15926
|
values: ["createdAt"],
|
|
15800
15927
|
default: "createdAt",
|
|
15801
|
-
describe: "Field used to sort the result."
|
|
15928
|
+
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."
|
|
15802
15929
|
},
|
|
15803
15930
|
sortOrder: {
|
|
15804
15931
|
kind: "enum",
|
|
@@ -16143,6 +16270,7 @@ var V2_OPERATIONS = {
|
|
|
16143
16270
|
sort: { kind: "array", describe: "Ordered table-row sort specification." },
|
|
16144
16271
|
limit: {
|
|
16145
16272
|
kind: "integer",
|
|
16273
|
+
maximum: 1000,
|
|
16146
16274
|
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."
|
|
16147
16275
|
},
|
|
16148
16276
|
cursor: { kind: "string", describe: "Opaque cursor returned by the previous query page." },
|
|
@@ -16181,14 +16309,17 @@ var V2_OPERATIONS = {
|
|
|
16181
16309
|
workspaceId: { kind: "string", required: true, describe: "Workspace that owns the file." },
|
|
16182
16310
|
maxBytes: {
|
|
16183
16311
|
kind: "integer",
|
|
16312
|
+
maximum: 26214400,
|
|
16184
16313
|
describe: "Optional ceiling on the source bytes fed to the parser, lowering but never raising the server limit."
|
|
16185
16314
|
},
|
|
16186
16315
|
offset: {
|
|
16187
16316
|
kind: "integer",
|
|
16317
|
+
maximum: 9007199254740991,
|
|
16188
16318
|
describe: "First line to return, 1-based; 0 also starts at the first line. Absent starts at the first line."
|
|
16189
16319
|
},
|
|
16190
16320
|
limit: {
|
|
16191
16321
|
kind: "integer",
|
|
16322
|
+
maximum: 9007199254740991,
|
|
16192
16323
|
describe: "How many lines to return from `offset`. Absent reads to the end."
|
|
16193
16324
|
}
|
|
16194
16325
|
}
|
|
@@ -16204,14 +16335,17 @@ var V2_OPERATIONS = {
|
|
|
16204
16335
|
workspaceId: { kind: "string", required: true, describe: "Workspace that owns the file." },
|
|
16205
16336
|
maxBytes: {
|
|
16206
16337
|
kind: "integer",
|
|
16338
|
+
maximum: 26214400,
|
|
16207
16339
|
describe: "Optional ceiling on the source bytes fed to the parser, lowering but never raising the server limit."
|
|
16208
16340
|
},
|
|
16209
16341
|
offset: {
|
|
16210
16342
|
kind: "integer",
|
|
16343
|
+
maximum: 9007199254740991,
|
|
16211
16344
|
describe: "First line to return, 1-based; 0 also starts at the first line. Absent starts at the first line."
|
|
16212
16345
|
},
|
|
16213
16346
|
limit: {
|
|
16214
16347
|
kind: "integer",
|
|
16348
|
+
maximum: 9007199254740991,
|
|
16215
16349
|
describe: "How many lines to return from `offset`. Absent reads to the end."
|
|
16216
16350
|
}
|
|
16217
16351
|
}
|
|
@@ -16417,6 +16551,7 @@ var V2_OPERATIONS = {
|
|
|
16417
16551
|
expectedRevision: {
|
|
16418
16552
|
kind: "integer",
|
|
16419
16553
|
required: true,
|
|
16554
|
+
maximum: 9007199254740991,
|
|
16420
16555
|
describe: "Permission revision read before exporting the grants."
|
|
16421
16556
|
},
|
|
16422
16557
|
permissions: {
|
|
@@ -16546,6 +16681,7 @@ var V2_OPERATIONS = {
|
|
|
16546
16681
|
},
|
|
16547
16682
|
newLimitCredits: {
|
|
16548
16683
|
kind: "integer",
|
|
16684
|
+
maximum: 9007199254740991,
|
|
16549
16685
|
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."
|
|
16550
16686
|
},
|
|
16551
16687
|
reason: {
|
|
@@ -16569,6 +16705,7 @@ var V2_OPERATIONS = {
|
|
|
16569
16705
|
},
|
|
16570
16706
|
newLimitCredits: {
|
|
16571
16707
|
kind: "integer",
|
|
16708
|
+
maximum: 9007199254740991,
|
|
16572
16709
|
describe: "Required only for a usage-limit request: a whole-number credit cap greater than the current cap. Omit for permission requests."
|
|
16573
16710
|
}
|
|
16574
16711
|
},
|
|
@@ -16730,6 +16867,7 @@ var V2_OPERATIONS = {
|
|
|
16730
16867
|
workspaceId: { kind: "string", required: true, describe: "Workspace that owns the file." },
|
|
16731
16868
|
expectedCurrentVersion: {
|
|
16732
16869
|
kind: "integer",
|
|
16870
|
+
maximum: 2147483647,
|
|
16733
16871
|
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."
|
|
16734
16872
|
},
|
|
16735
16873
|
expectedRevision: {
|
|
@@ -16753,6 +16891,7 @@ var V2_OPERATIONS = {
|
|
|
16753
16891
|
body: {
|
|
16754
16892
|
expectedCurrentVersion: {
|
|
16755
16893
|
kind: "integer",
|
|
16894
|
+
maximum: 2147483647,
|
|
16756
16895
|
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."
|
|
16757
16896
|
},
|
|
16758
16897
|
expectedRevision: {
|
|
@@ -16815,6 +16954,7 @@ var V2_OPERATIONS = {
|
|
|
16815
16954
|
body: {
|
|
16816
16955
|
version: {
|
|
16817
16956
|
kind: "integer",
|
|
16957
|
+
maximum: 2147483647,
|
|
16818
16958
|
describe: "Deployment version to reactivate. Omit to select the previous active version."
|
|
16819
16959
|
}
|
|
16820
16960
|
}
|
|
@@ -17121,7 +17261,12 @@ var V2_OPERATIONS = {
|
|
|
17121
17261
|
default: "regex",
|
|
17122
17262
|
describe: "How `query` is read."
|
|
17123
17263
|
},
|
|
17124
|
-
maxResults: {
|
|
17264
|
+
maxResults: {
|
|
17265
|
+
kind: "integer",
|
|
17266
|
+
default: 50,
|
|
17267
|
+
maximum: 200,
|
|
17268
|
+
describe: "Maximum matching lines to return."
|
|
17269
|
+
},
|
|
17125
17270
|
folderPaths: {
|
|
17126
17271
|
kind: "string",
|
|
17127
17272
|
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."
|
|
@@ -17170,6 +17315,7 @@ var V2_OPERATIONS = {
|
|
|
17170
17315
|
topK: {
|
|
17171
17316
|
kind: "number",
|
|
17172
17317
|
default: 10,
|
|
17318
|
+
maximum: 100,
|
|
17173
17319
|
describe: "Maximum number of search results to return. Must be a whole number between 1 and 100."
|
|
17174
17320
|
},
|
|
17175
17321
|
tagFilters: {
|
|
@@ -17192,6 +17338,7 @@ var V2_OPERATIONS = {
|
|
|
17192
17338
|
},
|
|
17193
17339
|
rerankerInputCount: {
|
|
17194
17340
|
kind: "integer",
|
|
17341
|
+
maximum: 100,
|
|
17195
17342
|
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."
|
|
17196
17343
|
}
|
|
17197
17344
|
}
|
|
@@ -17216,7 +17363,12 @@ var V2_OPERATIONS = {
|
|
|
17216
17363
|
default: "regex",
|
|
17217
17364
|
describe: "How `query` is read."
|
|
17218
17365
|
},
|
|
17219
|
-
maxResults: {
|
|
17366
|
+
maxResults: {
|
|
17367
|
+
kind: "integer",
|
|
17368
|
+
default: 50,
|
|
17369
|
+
maximum: 200,
|
|
17370
|
+
describe: "Maximum matching lines to return."
|
|
17371
|
+
},
|
|
17220
17372
|
folderPaths: {
|
|
17221
17373
|
kind: "string",
|
|
17222
17374
|
describe: "Comma-separated folder paths within the Project. Omit to search the entire Project; index coverage applies to the selected folders."
|
|
@@ -17577,6 +17729,7 @@ var V2_OPERATIONS = {
|
|
|
17577
17729
|
},
|
|
17578
17730
|
syncIntervalMinutes: {
|
|
17579
17731
|
kind: "integer",
|
|
17732
|
+
maximum: 525600,
|
|
17580
17733
|
describe: "New scheduled synchronization interval in minutes."
|
|
17581
17734
|
},
|
|
17582
17735
|
status: {
|
|
@@ -17723,11 +17876,13 @@ var V2_OPERATIONS = {
|
|
|
17723
17876
|
timeout: {
|
|
17724
17877
|
kind: "integer",
|
|
17725
17878
|
default: 30000,
|
|
17879
|
+
maximum: 300000,
|
|
17726
17880
|
describe: "Per-request timeout in milliseconds. Defaults to 30000 on creation."
|
|
17727
17881
|
},
|
|
17728
17882
|
retries: {
|
|
17729
17883
|
kind: "integer",
|
|
17730
17884
|
default: 3,
|
|
17885
|
+
maximum: 10,
|
|
17731
17886
|
describe: "Number of retries per request. Defaults to 3 on creation."
|
|
17732
17887
|
},
|
|
17733
17888
|
enabled: {
|
|
@@ -17878,7 +18033,11 @@ var V2_OPERATIONS = {
|
|
|
17878
18033
|
kind: "string",
|
|
17879
18034
|
describe: "New parent folder identifier; null moves to the root, omission leaves the parent unchanged."
|
|
17880
18035
|
},
|
|
17881
|
-
sortOrder: {
|
|
18036
|
+
sortOrder: {
|
|
18037
|
+
kind: "integer",
|
|
18038
|
+
maximum: 9007199254740991,
|
|
18039
|
+
describe: "New manual position; omit to leave unchanged."
|
|
18040
|
+
}
|
|
17882
18041
|
}
|
|
17883
18042
|
},
|
|
17884
18043
|
updateProjectFileShare: {
|
|
@@ -17932,7 +18091,7 @@ var V2_OPERATIONS = {
|
|
|
17932
18091
|
required: true,
|
|
17933
18092
|
describe: "Row-data patch applied to every matching row."
|
|
17934
18093
|
},
|
|
17935
|
-
limit: { kind: "integer", describe: "Maximum matching rows to update." }
|
|
18094
|
+
limit: { kind: "integer", maximum: 1000, describe: "Maximum matching rows to update." }
|
|
17936
18095
|
}
|
|
17937
18096
|
},
|
|
17938
18097
|
updateSandbox: {
|
|
@@ -18673,6 +18832,8 @@ async function chooseLoginFlow(profile, options) {
|
|
|
18673
18832
|
if (status === "unreachable") {
|
|
18674
18833
|
throw new SimApiError(`Could not reach ${profile.endpoint}. Check the endpoint.`, 0);
|
|
18675
18834
|
}
|
|
18835
|
+
if (options.method === undefined && options.expiresIn !== undefined)
|
|
18836
|
+
return "handoff";
|
|
18676
18837
|
if (status === "unavailable") {
|
|
18677
18838
|
if (options.method === "oauth") {
|
|
18678
18839
|
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);
|
|
@@ -18755,7 +18916,7 @@ Waiting for you to approve in the browser…`));
|
|
|
18755
18916
|
}
|
|
18756
18917
|
}
|
|
18757
18918
|
function loginCommand() {
|
|
18758
|
-
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
|
|
18919
|
+
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) => {
|
|
18759
18920
|
const profile = profileFrom(command, { allowUnknownProfile: true });
|
|
18760
18921
|
const authProfile = resolveAuthenticationProfileName(profile.name);
|
|
18761
18922
|
if (authProfile !== profile.name) {
|
|
@@ -18795,7 +18956,7 @@ function loginCommand() {
|
|
|
18795
18956
|
var DAY_MS = 24 * 60 * 60 * 1000;
|
|
18796
18957
|
var EXPIRY_TOLERANCE_MS = 60 * 60 * 1000;
|
|
18797
18958
|
function requireRequestedKey(key, keyRequest) {
|
|
18798
|
-
const refuse = (issued, flag) => new SimApiError(`The server issued ${issued}, not the key requested.
|
|
18959
|
+
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);
|
|
18799
18960
|
const requestedAccess = keyRequest.readOnly ? "read" : "write";
|
|
18800
18961
|
const issuedAccess = key.access ?? "write";
|
|
18801
18962
|
if (issuedAccess !== requestedAccess) {
|
|
@@ -18862,7 +19023,8 @@ Waiting for approval…`));
|
|
|
18862
19023
|
});
|
|
18863
19024
|
} catch (error) {
|
|
18864
19025
|
const keyId = typeof key.id === "string" && key.id ? safeOneLine(key.id) : "unknown";
|
|
18865
|
-
|
|
19026
|
+
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,`;
|
|
19027
|
+
printLine(styles3().yellow(`API key ${keyId} was created on your account but could not be stored safely. Revoke ${listedAs} in Settings → API keys.`));
|
|
18866
19028
|
throw error;
|
|
18867
19029
|
}
|
|
18868
19030
|
printLine(styles3().green(`
|
|
@@ -21142,6 +21304,16 @@ var CLI_CONTRACT = {
|
|
|
21142
21304
|
{ header: "run", path: "runId" }
|
|
21143
21305
|
]
|
|
21144
21306
|
},
|
|
21307
|
+
listPausedRuns: {
|
|
21308
|
+
command: "workflows runs paused",
|
|
21309
|
+
describe: "List runs waiting on human input across the workspace",
|
|
21310
|
+
columns: [
|
|
21311
|
+
{ header: "paused at", path: "pausedAt", format: "timestamp" },
|
|
21312
|
+
{ header: "workflow", path: "workflowName" },
|
|
21313
|
+
{ header: "waiting points", path: "points", format: "count" },
|
|
21314
|
+
{ header: "run", path: "runId" }
|
|
21315
|
+
]
|
|
21316
|
+
},
|
|
21145
21317
|
cancelWorkflowRun: {
|
|
21146
21318
|
command: "workflows runs cancel",
|
|
21147
21319
|
pathFlags: WORKFLOW_RUN_SCOPE,
|
|
@@ -22580,6 +22752,7 @@ async function executeOperation(operation, commandSpec, operationSpec, invocatio
|
|
|
22580
22752
|
throw new SimApiError("--cursor must be a non-empty string", 0);
|
|
22581
22753
|
}
|
|
22582
22754
|
const limit = pagedLimit === 0 ? Number.POSITIVE_INFINITY : pagedLimit;
|
|
22755
|
+
const maxPageSize = Math.min(DEFAULT_PAGE_SIZE, operationSpec[paging]?.limit?.maximum ?? Number.POSITIVE_INFINITY);
|
|
22583
22756
|
const rows = [];
|
|
22584
22757
|
const seenCursors = new Set(initialCursor ? [initialCursor] : []);
|
|
22585
22758
|
const progress = pageProgress();
|
|
@@ -22587,7 +22760,7 @@ async function executeOperation(operation, commandSpec, operationSpec, invocatio
|
|
|
22587
22760
|
let envelope;
|
|
22588
22761
|
try {
|
|
22589
22762
|
do {
|
|
22590
|
-
const pageSize = Math.min(
|
|
22763
|
+
const pageSize = Math.min(maxPageSize, limit - rows.length);
|
|
22591
22764
|
const pageLimit = "limit" in (operationSpec[paging] ?? {}) ? { limit: pageSize } : {};
|
|
22592
22765
|
const page = await client.request(operation, {
|
|
22593
22766
|
params: request.params,
|
|
@@ -22713,6 +22886,15 @@ function retypeMessage(message, spellings) {
|
|
|
22713
22886
|
}
|
|
22714
22887
|
return retyped;
|
|
22715
22888
|
}
|
|
22889
|
+
var LOCATION_PREFIX = /^(?:path|query|header|body)\.([^:\s]+): /;
|
|
22890
|
+
function retypeLocatedMessage(message, spellings) {
|
|
22891
|
+
const match = LOCATION_PREFIX.exec(message);
|
|
22892
|
+
if (!match)
|
|
22893
|
+
return retypeMessage(message, spellings);
|
|
22894
|
+
const [head, ...rest] = match[1].split(".");
|
|
22895
|
+
const location = [spellings.get(head) ?? head, ...rest].join(".");
|
|
22896
|
+
return `${location}: ${retypeMessage(message.slice(match[0].length), spellings)}`;
|
|
22897
|
+
}
|
|
22716
22898
|
function retypeDetails(details, spellings) {
|
|
22717
22899
|
if (Array.isArray(details))
|
|
22718
22900
|
return details.map((issue) => retypeDetails(issue, spellings));
|
|
@@ -22740,7 +22922,7 @@ function retypeApiError(error, operation, commandSpec, operationSpec) {
|
|
|
22740
22922
|
const spellings = typeableFields(operation, commandSpec, operationSpec);
|
|
22741
22923
|
if (spellings.size === 0)
|
|
22742
22924
|
return error;
|
|
22743
|
-
return new SimApiError(
|
|
22925
|
+
return new SimApiError(retypeLocatedMessage(error.message, spellings), error.status, error.code, error.details === undefined ? undefined : retypeDetails(error.details, spellings));
|
|
22744
22926
|
}
|
|
22745
22927
|
|
|
22746
22928
|
// src/runtime/build.ts
|