@calimero-network/mero-js 33.3.2 → 34.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/api.d.ts +2540 -271
- package/dist/generated/methods.d.ts +152 -0
- package/dist/generated/methods.js +153 -1
- package/dist/index.browser.mjs +3 -3
- package/dist/index.browser.mjs.map +2 -2
- package/dist/index.cjs +153 -1
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +153 -1
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
|
@@ -90,6 +90,20 @@ export declare function createRoutes(api: RouteClient): {
|
|
|
90
90
|
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
91
91
|
*/
|
|
92
92
|
delete: (args: operations["app_delete"]["parameters"]["path"], options?: MethodOptions) => Promise<operations["app_delete"]["responses"][200]["content"]["application/json"]>;
|
|
93
|
+
/**
|
|
94
|
+
* Export a sealed file's key.
|
|
95
|
+
*
|
|
96
|
+
* `POST /apps/{app}/files/{id}/export` (`exports_export`). **Who:** signed in (a session or an API key).
|
|
97
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
98
|
+
*/
|
|
99
|
+
exportsExport: (args: operations["exports_export"]["parameters"]["path"] & operations["exports_export"]["requestBody"]["content"]["application/json"], options?: MethodOptions) => Promise<operations["exports_export"]["responses"][200]["content"]["application/json"]>;
|
|
100
|
+
/**
|
|
101
|
+
* One segment of a sealed file.
|
|
102
|
+
*
|
|
103
|
+
* `GET /apps/{app}/files/{id}/segments/{k}` (`exports_segment`). **Who:** signed in (a session or an API key).
|
|
104
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
105
|
+
*/
|
|
106
|
+
exportsSegment: (args: operations["exports_segment"]["parameters"]["path"], options?: MethodOptions) => Promise<Blob>;
|
|
93
107
|
/**
|
|
94
108
|
* One sealed file.
|
|
95
109
|
*
|
|
@@ -156,6 +170,62 @@ export declare function createRoutes(api: RouteClient): {
|
|
|
156
170
|
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
157
171
|
*/
|
|
158
172
|
openapi: (args: operations["app_openapi"]["parameters"]["path"], options?: MethodOptions) => Promise<operations["app_openapi"]["responses"][200]["content"]["application/json"]>;
|
|
173
|
+
/**
|
|
174
|
+
* A pipeline run's receipt.
|
|
175
|
+
*
|
|
176
|
+
* `GET /apps/{app}/pipeline-runs/{run}/receipt` (`pipeline_receipt_receipt`). **Who:** signed in (a session or an API key).
|
|
177
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
178
|
+
*/
|
|
179
|
+
pipelineReceiptReceipt: (args: operations["pipeline_receipt_receipt"]["parameters"]["path"], options?: MethodOptions) => Promise<operations["pipeline_receipt_receipt"]["responses"][200]["content"]["application/json"]>;
|
|
180
|
+
/**
|
|
181
|
+
* Cancel a pipeline run.
|
|
182
|
+
*
|
|
183
|
+
* `POST /apps/{app}/pipeline-runs/{run}/cancel` (`pipelines_cancel`). **Who:** signed in (a session or an API key).
|
|
184
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
185
|
+
*/
|
|
186
|
+
pipelinesCancel: (args: operations["pipelines_cancel"]["parameters"]["path"], options?: MethodOptions) => Promise<operations["pipelines_cancel"]["responses"][200]["content"]["application/json"]>;
|
|
187
|
+
/**
|
|
188
|
+
* Estimate a pipeline run.
|
|
189
|
+
*
|
|
190
|
+
* `POST /apps/{app}/pipelines/{name}/estimate` (`pipelines_estimate_run`). **Who:** signed in (a session or an API key).
|
|
191
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
192
|
+
*/
|
|
193
|
+
pipelinesEstimateRun: (args: operations["pipelines_estimate_run"]["parameters"]["path"] & operations["pipelines_estimate_run"]["requestBody"]["content"]["application/json"], options?: MethodOptions) => Promise<operations["pipelines_estimate_run"]["responses"][200]["content"]["application/json"]>;
|
|
194
|
+
/**
|
|
195
|
+
* One pipeline run.
|
|
196
|
+
*
|
|
197
|
+
* `GET /apps/{app}/pipeline-runs/{run}` (`pipelines_get`). **Who:** whoever the app's access admits (a public app: anyone).
|
|
198
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
199
|
+
*/
|
|
200
|
+
pipelinesGet: (args: operations["pipelines_get"]["parameters"]["path"], options?: MethodOptions) => Promise<operations["pipelines_get"]["responses"][200]["content"]["application/json"]>;
|
|
201
|
+
/**
|
|
202
|
+
* An app's pipeline runs.
|
|
203
|
+
*
|
|
204
|
+
* `GET /apps/{app}/pipeline-runs` (`pipelines_list`). **Who:** whoever the app's access admits (a public app: anyone).
|
|
205
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
206
|
+
*/
|
|
207
|
+
pipelinesList: (args: operations["pipelines_list"]["parameters"]["path"] & NonNullable<operations["pipelines_list"]["parameters"]["query"]>, options?: MethodOptions) => Promise<operations["pipelines_list"]["responses"][200]["content"]["application/json"]>;
|
|
208
|
+
/**
|
|
209
|
+
* Retry a pipeline run.
|
|
210
|
+
*
|
|
211
|
+
* `POST /apps/{app}/pipeline-runs/{run}/retry` (`pipelines_retry`). **Who:** signed in (a session or an API key).
|
|
212
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
213
|
+
*/
|
|
214
|
+
pipelinesRetry: (args: operations["pipelines_retry"]["parameters"]["path"] & operations["pipelines_retry"]["requestBody"]["content"]["application/json"], options?: MethodOptions) => Promise<operations["pipelines_retry"]["responses"][200]["content"]["application/json"]>;
|
|
215
|
+
/**
|
|
216
|
+
* Start a pipeline run.
|
|
217
|
+
*
|
|
218
|
+
* `POST /apps/{app}/pipelines/{name}/runs` (`pipelines_start`). **Who:** signed in (a session or an API key).
|
|
219
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
220
|
+
*/
|
|
221
|
+
pipelinesStart: (args: operations["pipelines_start"]["parameters"]["path"] & operations["pipelines_start"]["requestBody"]["content"]["application/json"], options?: MethodOptions) => Promise<operations["pipelines_start"]["responses"][200]["content"]["application/json"]>;
|
|
222
|
+
/**
|
|
223
|
+
* Validate a pipeline.
|
|
224
|
+
*
|
|
225
|
+
* `POST /pipelines/validate` (`pipelines_validate`). **Who:** signed in (a session or an API key).
|
|
226
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
227
|
+
*/
|
|
228
|
+
pipelinesValidate: (args: operations["pipelines_validate"]["requestBody"]["content"]["application/json"], options?: MethodOptions) => Promise<operations["pipelines_validate"]["responses"][200]["content"]["application/json"]>;
|
|
159
229
|
/**
|
|
160
230
|
* Who is present.
|
|
161
231
|
*
|
|
@@ -273,6 +343,13 @@ export declare function createRoutes(api: RouteClient): {
|
|
|
273
343
|
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
274
344
|
*/
|
|
275
345
|
accountApps: (args?: NonNullable<operations["account_apps"]["parameters"]["query"]>, options?: MethodOptions) => Promise<operations["account_apps"]["responses"][200]["content"]["application/json"]>;
|
|
346
|
+
/**
|
|
347
|
+
* The account's backup key.
|
|
348
|
+
*
|
|
349
|
+
* `GET /auth/backup-key` (`account_backup_key`). **Who:** an account holder (a passkey session not bound to an app's frontend).
|
|
350
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
351
|
+
*/
|
|
352
|
+
accountBackupKey: (args?: Record<string, never>, options?: MethodOptions) => Promise<operations["account_backup_key"]["responses"][200]["content"]["application/json"]>;
|
|
276
353
|
/**
|
|
277
354
|
* Approve outbound prefixes for the account's apps.
|
|
278
355
|
*
|
|
@@ -325,6 +402,14 @@ export declare function createRoutes(api: RouteClient): {
|
|
|
325
402
|
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
326
403
|
*/
|
|
327
404
|
accountReleaseApproval: (args: operations["account_release_approval"]["requestBody"]["content"]["application/json"], options?: MethodOptions) => Promise<operations["account_release_approval"]["responses"][200]["content"]["application/json"]>;
|
|
405
|
+
/**
|
|
406
|
+
* Set the account's backup key.
|
|
407
|
+
*
|
|
408
|
+
* `POST /auth/backup-key` (`account_set_backup_key`). **Who:** an account holder (a passkey session not bound to an app's frontend).
|
|
409
|
+
* Answers `412 CONFIRM_REQUIRED` first: give `confirm` (here or on the client); the passkey must verify the user `required`.
|
|
410
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
411
|
+
*/
|
|
412
|
+
accountSetBackupKey: (args: operations["account_set_backup_key"]["requestBody"]["content"]["application/json"], options?: MethodOptions) => Promise<operations["account_set_backup_key"]["responses"][200]["content"]["application/json"]>;
|
|
328
413
|
/**
|
|
329
414
|
* What the account's passkeys did.
|
|
330
415
|
*
|
|
@@ -652,6 +737,12 @@ export declare function createRoutes(api: RouteClient): {
|
|
|
652
737
|
* `POST /ops/backup` (`ops_backup`). **Who:** the ops token.
|
|
653
738
|
*/
|
|
654
739
|
backup: (args?: NonNullable<operations["ops_backup"]["parameters"]["query"]>, options?: MethodOptions) => Promise<operations["ops_backup"]["responses"][200]["content"]["application/json"]>;
|
|
740
|
+
/**
|
|
741
|
+
* The operator's backup key.
|
|
742
|
+
*
|
|
743
|
+
* `GET /ops/backup-key` (`ops_backup_key`). **Who:** the ops token.
|
|
744
|
+
*/
|
|
745
|
+
backupKey: (args?: Record<string, never>, options?: MethodOptions) => Promise<operations["ops_backup_key"]["responses"][200]["content"]["application/json"]>;
|
|
655
746
|
/**
|
|
656
747
|
* The cluster's identity.
|
|
657
748
|
*
|
|
@@ -768,6 +859,19 @@ export declare function createRoutes(api: RouteClient): {
|
|
|
768
859
|
* Answers `428 OPERATOR_SIGNATURE_REQUIRED` first: give `operatorProof` (here or on the client).
|
|
769
860
|
*/
|
|
770
861
|
poolsSet: (args: operations["ops_pools_set"]["requestBody"]["content"]["application/json"], options?: MethodOptions) => Promise<operations["ops_pools_set"]["responses"][200]["content"]["application/json"]>;
|
|
862
|
+
/**
|
|
863
|
+
* The price table.
|
|
864
|
+
*
|
|
865
|
+
* `GET /ops/prices` (`ops_prices_get`). **Who:** the ops token.
|
|
866
|
+
*/
|
|
867
|
+
pricesGet: (args?: Record<string, never>, options?: MethodOptions) => Promise<operations["ops_prices_get"]["responses"][200]["content"]["application/json"]>;
|
|
868
|
+
/**
|
|
869
|
+
* Set the price table.
|
|
870
|
+
*
|
|
871
|
+
* `POST /ops/prices` (`ops_prices_set`). **Who:** the ops token.
|
|
872
|
+
* Answers `428 OPERATOR_SIGNATURE_REQUIRED` first: give `operatorProof` (here or on the client).
|
|
873
|
+
*/
|
|
874
|
+
pricesSet: (args: operations["ops_prices_set"]["requestBody"]["content"]["application/json"], options?: MethodOptions) => Promise<operations["ops_prices_set"]["responses"][200]["content"]["application/json"]>;
|
|
771
875
|
/**
|
|
772
876
|
* The quotas.
|
|
773
877
|
*
|
|
@@ -787,6 +891,18 @@ export declare function createRoutes(api: RouteClient): {
|
|
|
787
891
|
* `GET /ops/nodes/{id}/receipt-key` (`ops_receipt_key`). **Who:** the ops token.
|
|
788
892
|
*/
|
|
789
893
|
receiptKey: (args: operations["ops_receipt_key"]["parameters"]["path"], options?: MethodOptions) => Promise<operations["ops_receipt_key"]["responses"][200]["content"]["application/json"]>;
|
|
894
|
+
/**
|
|
895
|
+
* Found the cluster again from its recovery disk.
|
|
896
|
+
*
|
|
897
|
+
* `POST /ops/recover` (`ops_recover`). **Who:** the ops token.
|
|
898
|
+
*/
|
|
899
|
+
recover: (args: operations["ops_recover"]["requestBody"]["content"]["application/json"], options?: MethodOptions) => Promise<operations["ops_recover"]["responses"][200]["content"]["application/json"]>;
|
|
900
|
+
/**
|
|
901
|
+
* The recovery files a node reads.
|
|
902
|
+
*
|
|
903
|
+
* `GET /ops/recovery-files` (`ops_recovery_files`). **Who:** the ops token.
|
|
904
|
+
*/
|
|
905
|
+
recoveryFiles: (args?: NonNullable<operations["ops_recovery_files"]["parameters"]["query"]>, options?: MethodOptions) => Promise<operations["ops_recovery_files"]["responses"][200]["content"]["application/json"]>;
|
|
790
906
|
/**
|
|
791
907
|
* Register a node.
|
|
792
908
|
*
|
|
@@ -835,6 +951,13 @@ export declare function createRoutes(api: RouteClient): {
|
|
|
835
951
|
* `GET /ops/served-origins` (`ops_served`). **Who:** the ops token.
|
|
836
952
|
*/
|
|
837
953
|
served: (args?: Record<string, never>, options?: MethodOptions) => Promise<operations["ops_served"]["responses"][200]["content"]["application/json"]>;
|
|
954
|
+
/**
|
|
955
|
+
* Set the operator's backup key.
|
|
956
|
+
*
|
|
957
|
+
* `POST /ops/backup-key` (`ops_set_backup_key`). **Who:** the ops token.
|
|
958
|
+
* Answers `428 OPERATOR_SIGNATURE_REQUIRED` first: give `operatorProof` (here or on the client).
|
|
959
|
+
*/
|
|
960
|
+
setBackupKey: (args: operations["ops_set_backup_key"]["requestBody"]["content"]["application/json"], options?: MethodOptions) => Promise<operations["ops_set_backup_key"]["responses"][200]["content"]["application/json"]>;
|
|
838
961
|
/**
|
|
839
962
|
* Move an app's replicas.
|
|
840
963
|
*
|
|
@@ -921,6 +1044,13 @@ export declare function createRoutes(api: RouteClient): {
|
|
|
921
1044
|
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
922
1045
|
*/
|
|
923
1046
|
appTeamsScope: (args: operations["app_teams_scope"]["parameters"]["path"] & operations["app_teams_scope"]["requestBody"]["content"]["application/json"], options?: MethodOptions) => Promise<operations["app_teams_scope"]["responses"][200]["content"]["application/json"]>;
|
|
1047
|
+
/**
|
|
1048
|
+
* The organization's backup key.
|
|
1049
|
+
*
|
|
1050
|
+
* `GET /orgs/{org}/backup-key` (`org_backup_key`). **Who:** an account holder (a passkey session not bound to an app's frontend).
|
|
1051
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
1052
|
+
*/
|
|
1053
|
+
backupKey: (args: operations["org_backup_key"]["parameters"]["path"], options?: MethodOptions) => Promise<operations["org_backup_key"]["responses"][200]["content"]["application/json"]>;
|
|
924
1054
|
/**
|
|
925
1055
|
* Set capabilities.
|
|
926
1056
|
*
|
|
@@ -1097,6 +1227,14 @@ export declare function createRoutes(api: RouteClient): {
|
|
|
1097
1227
|
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
1098
1228
|
*/
|
|
1099
1229
|
rename: (args: operations["org_rename"]["parameters"]["path"] & operations["org_rename"]["requestBody"]["content"]["application/json"], options?: MethodOptions) => Promise<operations["org_rename"]["responses"][200]["content"]["application/json"]>;
|
|
1230
|
+
/**
|
|
1231
|
+
* Set the organization's backup key.
|
|
1232
|
+
*
|
|
1233
|
+
* `POST /orgs/{org}/backup-key` (`org_set_backup_key`). **Who:** an account holder (a passkey session not bound to an app's frontend).
|
|
1234
|
+
* Answers `412 CONFIRM_REQUIRED` first: give `confirm` (here or on the client); the passkey must verify the user `required`.
|
|
1235
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
1236
|
+
*/
|
|
1237
|
+
setBackupKey: (args: operations["org_set_backup_key"]["parameters"]["path"] & operations["org_set_backup_key"]["requestBody"]["content"]["application/json"], options?: MethodOptions) => Promise<operations["org_set_backup_key"]["responses"][200]["content"]["application/json"]>;
|
|
1100
1238
|
/**
|
|
1101
1239
|
* Set a member's role.
|
|
1102
1240
|
*
|
|
@@ -1234,6 +1372,13 @@ export declare function createRoutes(api: RouteClient): {
|
|
|
1234
1372
|
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
1235
1373
|
*/
|
|
1236
1374
|
originsRemove: (args: operations["origins_remove"]["parameters"]["path"] & operations["origins_remove"]["requestBody"]["content"]["application/json"], options?: MethodOptions) => Promise<operations["origins_remove"]["responses"][200]["content"]["application/json"]>;
|
|
1375
|
+
/**
|
|
1376
|
+
* A release's pipelines.
|
|
1377
|
+
*
|
|
1378
|
+
* `GET /packages/{package}/{version}/pipelines` (`package_pipelines`). **Who:** signed in (a session or an API key).
|
|
1379
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
1380
|
+
*/
|
|
1381
|
+
pipelines: (args: operations["package_pipelines"]["parameters"]["path"], options?: MethodOptions) => Promise<operations["package_pipelines"]["responses"][200]["content"]["application/json"]>;
|
|
1237
1382
|
/**
|
|
1238
1383
|
* Uninstall a package.
|
|
1239
1384
|
*
|
|
@@ -1282,6 +1427,13 @@ export declare function createRoutes(api: RouteClient): {
|
|
|
1282
1427
|
* `GET /releases` (`releases_public`). **Who:** anyone.
|
|
1283
1428
|
*/
|
|
1284
1429
|
releasesPublic: (args?: Record<string, never>, options?: MethodOptions) => Promise<operations["releases_public"]["responses"][200]["content"]["application/json"]>;
|
|
1430
|
+
/**
|
|
1431
|
+
* Bring an organization's or account's apps back from its recovery files.
|
|
1432
|
+
*
|
|
1433
|
+
* `POST /recover/holder` (`restore_recover_holder`). **Who:** anyone.
|
|
1434
|
+
* Answers `428 OPERATOR_SIGNATURE_REQUIRED` first: give `operatorProof` (here or on the client).
|
|
1435
|
+
*/
|
|
1436
|
+
restoreRecoverHolder: (args: operations["restore_recover_holder"]["requestBody"]["content"]["application/json"], options?: MethodOptions) => Promise<operations["restore_recover_holder"]["responses"][200]["content"]["application/json"]>;
|
|
1285
1437
|
};
|
|
1286
1438
|
};
|
|
1287
1439
|
/**
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// collide) and answers the route's success payload; a refusal is thrown as the
|
|
7
7
|
// typed `CalimeroError`. Event streams are not here: read them with
|
|
8
8
|
// `transport.events`.
|
|
9
|
-
// Streams left out: GET /apps/{app}/events, GET /apps/{app}/presence/stream.
|
|
9
|
+
// Streams left out: GET /apps/{app}/events, GET /apps/{app}/pipeline-runs/{run}/events, GET /apps/{app}/presence/stream.
|
|
10
10
|
import { route } from '../routes/method.js';
|
|
11
11
|
/** The generated methods, by group, sending through `api`. */
|
|
12
12
|
export function createRoutes(api) {
|
|
@@ -98,6 +98,20 @@ export function createRoutes(api) {
|
|
|
98
98
|
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
99
99
|
*/
|
|
100
100
|
delete: (args, options) => route(api, { "method": "DELETE", "path": "/apps/{app}", "pathParams": ["app"], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
|
|
101
|
+
/**
|
|
102
|
+
* Export a sealed file's key.
|
|
103
|
+
*
|
|
104
|
+
* `POST /apps/{app}/files/{id}/export` (`exports_export`). **Who:** signed in (a session or an API key).
|
|
105
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
106
|
+
*/
|
|
107
|
+
exportsExport: (args, options) => route(api, { "method": "POST", "path": "/apps/{app}/files/{id}/export", "pathParams": ["app", "id"], "query": [], "body": "fields", "optionalBody": false, "reply": "json" }, args, options),
|
|
108
|
+
/**
|
|
109
|
+
* One segment of a sealed file.
|
|
110
|
+
*
|
|
111
|
+
* `GET /apps/{app}/files/{id}/segments/{k}` (`exports_segment`). **Who:** signed in (a session or an API key).
|
|
112
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
113
|
+
*/
|
|
114
|
+
exportsSegment: (args, options) => route(api, { "method": "GET", "path": "/apps/{app}/files/{id}/segments/{k}", "pathParams": ["app", "id", "k"], "query": [], "body": "none", "optionalBody": false, "reply": "bytes" }, args, options),
|
|
101
115
|
/**
|
|
102
116
|
* One sealed file.
|
|
103
117
|
*
|
|
@@ -164,6 +178,62 @@ export function createRoutes(api) {
|
|
|
164
178
|
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
165
179
|
*/
|
|
166
180
|
openapi: (args, options) => route(api, { "method": "GET", "path": "/apps/{app}/openapi.json", "pathParams": ["app"], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
|
|
181
|
+
/**
|
|
182
|
+
* A pipeline run's receipt.
|
|
183
|
+
*
|
|
184
|
+
* `GET /apps/{app}/pipeline-runs/{run}/receipt` (`pipeline_receipt_receipt`). **Who:** signed in (a session or an API key).
|
|
185
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
186
|
+
*/
|
|
187
|
+
pipelineReceiptReceipt: (args, options) => route(api, { "method": "GET", "path": "/apps/{app}/pipeline-runs/{run}/receipt", "pathParams": ["app", "run"], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
|
|
188
|
+
/**
|
|
189
|
+
* Cancel a pipeline run.
|
|
190
|
+
*
|
|
191
|
+
* `POST /apps/{app}/pipeline-runs/{run}/cancel` (`pipelines_cancel`). **Who:** signed in (a session or an API key).
|
|
192
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
193
|
+
*/
|
|
194
|
+
pipelinesCancel: (args, options) => route(api, { "method": "POST", "path": "/apps/{app}/pipeline-runs/{run}/cancel", "pathParams": ["app", "run"], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
|
|
195
|
+
/**
|
|
196
|
+
* Estimate a pipeline run.
|
|
197
|
+
*
|
|
198
|
+
* `POST /apps/{app}/pipelines/{name}/estimate` (`pipelines_estimate_run`). **Who:** signed in (a session or an API key).
|
|
199
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
200
|
+
*/
|
|
201
|
+
pipelinesEstimateRun: (args, options) => route(api, { "method": "POST", "path": "/apps/{app}/pipelines/{name}/estimate", "pathParams": ["app", "name"], "query": [], "body": "fields", "optionalBody": false, "reply": "json" }, args, options),
|
|
202
|
+
/**
|
|
203
|
+
* One pipeline run.
|
|
204
|
+
*
|
|
205
|
+
* `GET /apps/{app}/pipeline-runs/{run}` (`pipelines_get`). **Who:** whoever the app's access admits (a public app: anyone).
|
|
206
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
207
|
+
*/
|
|
208
|
+
pipelinesGet: (args, options) => route(api, { "method": "GET", "path": "/apps/{app}/pipeline-runs/{run}", "pathParams": ["app", "run"], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
|
|
209
|
+
/**
|
|
210
|
+
* An app's pipeline runs.
|
|
211
|
+
*
|
|
212
|
+
* `GET /apps/{app}/pipeline-runs` (`pipelines_list`). **Who:** whoever the app's access admits (a public app: anyone).
|
|
213
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
214
|
+
*/
|
|
215
|
+
pipelinesList: (args, options) => route(api, { "method": "GET", "path": "/apps/{app}/pipeline-runs", "pathParams": ["app"], "query": ["limit"], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
|
|
216
|
+
/**
|
|
217
|
+
* Retry a pipeline run.
|
|
218
|
+
*
|
|
219
|
+
* `POST /apps/{app}/pipeline-runs/{run}/retry` (`pipelines_retry`). **Who:** signed in (a session or an API key).
|
|
220
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
221
|
+
*/
|
|
222
|
+
pipelinesRetry: (args, options) => route(api, { "method": "POST", "path": "/apps/{app}/pipeline-runs/{run}/retry", "pathParams": ["app", "run"], "query": [], "body": "fields", "optionalBody": false, "reply": "json" }, args, options),
|
|
223
|
+
/**
|
|
224
|
+
* Start a pipeline run.
|
|
225
|
+
*
|
|
226
|
+
* `POST /apps/{app}/pipelines/{name}/runs` (`pipelines_start`). **Who:** signed in (a session or an API key).
|
|
227
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
228
|
+
*/
|
|
229
|
+
pipelinesStart: (args, options) => route(api, { "method": "POST", "path": "/apps/{app}/pipelines/{name}/runs", "pathParams": ["app", "name"], "query": [], "body": "fields", "optionalBody": false, "reply": "json" }, args, options),
|
|
230
|
+
/**
|
|
231
|
+
* Validate a pipeline.
|
|
232
|
+
*
|
|
233
|
+
* `POST /pipelines/validate` (`pipelines_validate`). **Who:** signed in (a session or an API key).
|
|
234
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
235
|
+
*/
|
|
236
|
+
pipelinesValidate: (args, options) => route(api, { "method": "POST", "path": "/pipelines/validate", "pathParams": [], "query": [], "body": "fields", "optionalBody": false, "reply": "json" }, args, options),
|
|
167
237
|
/**
|
|
168
238
|
* Who is present.
|
|
169
239
|
*
|
|
@@ -281,6 +351,13 @@ export function createRoutes(api) {
|
|
|
281
351
|
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
282
352
|
*/
|
|
283
353
|
accountApps: (args = {}, options) => route(api, { "method": "GET", "path": "/auth/apps", "pathParams": [], "query": ["after", "limit"], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
|
|
354
|
+
/**
|
|
355
|
+
* The account's backup key.
|
|
356
|
+
*
|
|
357
|
+
* `GET /auth/backup-key` (`account_backup_key`). **Who:** an account holder (a passkey session not bound to an app's frontend).
|
|
358
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
359
|
+
*/
|
|
360
|
+
accountBackupKey: (args = {}, options) => route(api, { "method": "GET", "path": "/auth/backup-key", "pathParams": [], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
|
|
284
361
|
/**
|
|
285
362
|
* Approve outbound prefixes for the account's apps.
|
|
286
363
|
*
|
|
@@ -333,6 +410,14 @@ export function createRoutes(api) {
|
|
|
333
410
|
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
334
411
|
*/
|
|
335
412
|
accountReleaseApproval: (args, options) => route(api, { "method": "POST", "path": "/auth/releases", "pathParams": [], "query": [], "body": "fields", "optionalBody": false, "reply": "json", "stepUp": true, "userVerification": "required" }, args, options),
|
|
413
|
+
/**
|
|
414
|
+
* Set the account's backup key.
|
|
415
|
+
*
|
|
416
|
+
* `POST /auth/backup-key` (`account_set_backup_key`). **Who:** an account holder (a passkey session not bound to an app's frontend).
|
|
417
|
+
* Answers `412 CONFIRM_REQUIRED` first: give `confirm` (here or on the client); the passkey must verify the user `required`.
|
|
418
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
419
|
+
*/
|
|
420
|
+
accountSetBackupKey: (args, options) => route(api, { "method": "POST", "path": "/auth/backup-key", "pathParams": [], "query": [], "body": "fields", "optionalBody": false, "reply": "json", "stepUp": true, "userVerification": "required" }, args, options),
|
|
336
421
|
/**
|
|
337
422
|
* What the account's passkeys did.
|
|
338
423
|
*
|
|
@@ -658,6 +743,12 @@ export function createRoutes(api) {
|
|
|
658
743
|
* `POST /ops/backup` (`ops_backup`). **Who:** the ops token.
|
|
659
744
|
*/
|
|
660
745
|
backup: (args = {}, options) => route(api, { "method": "POST", "path": "/ops/backup", "pathParams": [], "query": ["all"], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
|
|
746
|
+
/**
|
|
747
|
+
* The operator's backup key.
|
|
748
|
+
*
|
|
749
|
+
* `GET /ops/backup-key` (`ops_backup_key`). **Who:** the ops token.
|
|
750
|
+
*/
|
|
751
|
+
backupKey: (args = {}, options) => route(api, { "method": "GET", "path": "/ops/backup-key", "pathParams": [], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
|
|
661
752
|
/**
|
|
662
753
|
* The cluster's identity.
|
|
663
754
|
*
|
|
@@ -774,6 +865,19 @@ export function createRoutes(api) {
|
|
|
774
865
|
* Answers `428 OPERATOR_SIGNATURE_REQUIRED` first: give `operatorProof` (here or on the client).
|
|
775
866
|
*/
|
|
776
867
|
poolsSet: (args, options) => route(api, { "method": "POST", "path": "/ops/pools", "pathParams": [], "query": [], "body": "fields", "optionalBody": false, "reply": "json", "operator": true }, args, options),
|
|
868
|
+
/**
|
|
869
|
+
* The price table.
|
|
870
|
+
*
|
|
871
|
+
* `GET /ops/prices` (`ops_prices_get`). **Who:** the ops token.
|
|
872
|
+
*/
|
|
873
|
+
pricesGet: (args = {}, options) => route(api, { "method": "GET", "path": "/ops/prices", "pathParams": [], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
|
|
874
|
+
/**
|
|
875
|
+
* Set the price table.
|
|
876
|
+
*
|
|
877
|
+
* `POST /ops/prices` (`ops_prices_set`). **Who:** the ops token.
|
|
878
|
+
* Answers `428 OPERATOR_SIGNATURE_REQUIRED` first: give `operatorProof` (here or on the client).
|
|
879
|
+
*/
|
|
880
|
+
pricesSet: (args, options) => route(api, { "method": "POST", "path": "/ops/prices", "pathParams": [], "query": [], "body": "fields", "optionalBody": false, "reply": "json", "operator": true }, args, options),
|
|
777
881
|
/**
|
|
778
882
|
* The quotas.
|
|
779
883
|
*
|
|
@@ -793,6 +897,18 @@ export function createRoutes(api) {
|
|
|
793
897
|
* `GET /ops/nodes/{id}/receipt-key` (`ops_receipt_key`). **Who:** the ops token.
|
|
794
898
|
*/
|
|
795
899
|
receiptKey: (args, options) => route(api, { "method": "GET", "path": "/ops/nodes/{id}/receipt-key", "pathParams": ["id"], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
|
|
900
|
+
/**
|
|
901
|
+
* Found the cluster again from its recovery disk.
|
|
902
|
+
*
|
|
903
|
+
* `POST /ops/recover` (`ops_recover`). **Who:** the ops token.
|
|
904
|
+
*/
|
|
905
|
+
recover: (args, options) => route(api, { "method": "POST", "path": "/ops/recover", "pathParams": [], "query": [], "body": "fields", "optionalBody": false, "reply": "json" }, args, options),
|
|
906
|
+
/**
|
|
907
|
+
* The recovery files a node reads.
|
|
908
|
+
*
|
|
909
|
+
* `GET /ops/recovery-files` (`ops_recovery_files`). **Who:** the ops token.
|
|
910
|
+
*/
|
|
911
|
+
recoveryFiles: (args = {}, options) => route(api, { "method": "GET", "path": "/ops/recovery-files", "pathParams": [], "query": ["holder"], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
|
|
796
912
|
/**
|
|
797
913
|
* Register a node.
|
|
798
914
|
*
|
|
@@ -841,6 +957,13 @@ export function createRoutes(api) {
|
|
|
841
957
|
* `GET /ops/served-origins` (`ops_served`). **Who:** the ops token.
|
|
842
958
|
*/
|
|
843
959
|
served: (args = {}, options) => route(api, { "method": "GET", "path": "/ops/served-origins", "pathParams": [], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
|
|
960
|
+
/**
|
|
961
|
+
* Set the operator's backup key.
|
|
962
|
+
*
|
|
963
|
+
* `POST /ops/backup-key` (`ops_set_backup_key`). **Who:** the ops token.
|
|
964
|
+
* Answers `428 OPERATOR_SIGNATURE_REQUIRED` first: give `operatorProof` (here or on the client).
|
|
965
|
+
*/
|
|
966
|
+
setBackupKey: (args, options) => route(api, { "method": "POST", "path": "/ops/backup-key", "pathParams": [], "query": [], "body": "fields", "optionalBody": false, "reply": "json", "operator": true }, args, options),
|
|
844
967
|
/**
|
|
845
968
|
* Move an app's replicas.
|
|
846
969
|
*
|
|
@@ -927,6 +1050,13 @@ export function createRoutes(api) {
|
|
|
927
1050
|
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
928
1051
|
*/
|
|
929
1052
|
appTeamsScope: (args, options) => route(api, { "method": "POST", "path": "/orgs/{org}/app-teams", "pathParams": ["org"], "query": [], "body": "fields", "optionalBody": false, "reply": "json", "stepUp": true, "userVerification": "required" }, args, options),
|
|
1053
|
+
/**
|
|
1054
|
+
* The organization's backup key.
|
|
1055
|
+
*
|
|
1056
|
+
* `GET /orgs/{org}/backup-key` (`org_backup_key`). **Who:** an account holder (a passkey session not bound to an app's frontend).
|
|
1057
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
1058
|
+
*/
|
|
1059
|
+
backupKey: (args, options) => route(api, { "method": "GET", "path": "/orgs/{org}/backup-key", "pathParams": ["org"], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
|
|
930
1060
|
/**
|
|
931
1061
|
* Set capabilities.
|
|
932
1062
|
*
|
|
@@ -1103,6 +1233,14 @@ export function createRoutes(api) {
|
|
|
1103
1233
|
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
1104
1234
|
*/
|
|
1105
1235
|
rename: (args, options) => route(api, { "method": "POST", "path": "/orgs/{org}/name", "pathParams": ["org"], "query": [], "body": "fields", "optionalBody": false, "reply": "json", "stepUp": true, "userVerification": "required" }, args, options),
|
|
1236
|
+
/**
|
|
1237
|
+
* Set the organization's backup key.
|
|
1238
|
+
*
|
|
1239
|
+
* `POST /orgs/{org}/backup-key` (`org_set_backup_key`). **Who:** an account holder (a passkey session not bound to an app's frontend).
|
|
1240
|
+
* Answers `412 CONFIRM_REQUIRED` first: give `confirm` (here or on the client); the passkey must verify the user `required`.
|
|
1241
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
1242
|
+
*/
|
|
1243
|
+
setBackupKey: (args, options) => route(api, { "method": "POST", "path": "/orgs/{org}/backup-key", "pathParams": ["org"], "query": [], "body": "fields", "optionalBody": false, "reply": "json", "stepUp": true, "userVerification": "required" }, args, options),
|
|
1106
1244
|
/**
|
|
1107
1245
|
* Set a member's role.
|
|
1108
1246
|
*
|
|
@@ -1240,6 +1378,13 @@ export function createRoutes(api) {
|
|
|
1240
1378
|
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
1241
1379
|
*/
|
|
1242
1380
|
originsRemove: (args, options) => route(api, { "method": "DELETE", "path": "/package-origins/{package}", "pathParams": ["package"], "query": [], "body": "fields", "optionalBody": false, "reply": "json", "stepUp": true, "userVerification": "required" }, args, options),
|
|
1381
|
+
/**
|
|
1382
|
+
* A release's pipelines.
|
|
1383
|
+
*
|
|
1384
|
+
* `GET /packages/{package}/{version}/pipelines` (`package_pipelines`). **Who:** signed in (a session or an API key).
|
|
1385
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
1386
|
+
*/
|
|
1387
|
+
pipelines: (args, options) => route(api, { "method": "GET", "path": "/packages/{package}/{version}/pipelines", "pathParams": ["package", "version"], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
|
|
1243
1388
|
/**
|
|
1244
1389
|
* Uninstall a package.
|
|
1245
1390
|
*
|
|
@@ -1288,6 +1433,13 @@ export function createRoutes(api) {
|
|
|
1288
1433
|
* `GET /releases` (`releases_public`). **Who:** anyone.
|
|
1289
1434
|
*/
|
|
1290
1435
|
releasesPublic: (args = {}, options) => route(api, { "method": "GET", "path": "/releases", "pathParams": [], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
|
|
1436
|
+
/**
|
|
1437
|
+
* Bring an organization's or account's apps back from its recovery files.
|
|
1438
|
+
*
|
|
1439
|
+
* `POST /recover/holder` (`restore_recover_holder`). **Who:** anyone.
|
|
1440
|
+
* Answers `428 OPERATOR_SIGNATURE_REQUIRED` first: give `operatorProof` (here or on the client).
|
|
1441
|
+
*/
|
|
1442
|
+
restoreRecoverHolder: (args, options) => route(api, { "method": "POST", "path": "/recover/holder", "pathParams": [], "query": [], "body": "fields", "optionalBody": false, "reply": "json", "operator": true }, args, options),
|
|
1291
1443
|
},
|
|
1292
1444
|
};
|
|
1293
1445
|
}
|