@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
package/dist/index.cjs
CHANGED
|
@@ -3008,6 +3008,20 @@ function createRoutes(api) {
|
|
|
3008
3008
|
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
3009
3009
|
*/
|
|
3010
3010
|
delete: (args, options) => route(api, { "method": "DELETE", "path": "/apps/{app}", "pathParams": ["app"], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
|
|
3011
|
+
/**
|
|
3012
|
+
* Export a sealed file's key.
|
|
3013
|
+
*
|
|
3014
|
+
* `POST /apps/{app}/files/{id}/export` (`exports_export`). **Who:** signed in (a session or an API key).
|
|
3015
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
3016
|
+
*/
|
|
3017
|
+
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),
|
|
3018
|
+
/**
|
|
3019
|
+
* One segment of a sealed file.
|
|
3020
|
+
*
|
|
3021
|
+
* `GET /apps/{app}/files/{id}/segments/{k}` (`exports_segment`). **Who:** signed in (a session or an API key).
|
|
3022
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
3023
|
+
*/
|
|
3024
|
+
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),
|
|
3011
3025
|
/**
|
|
3012
3026
|
* One sealed file.
|
|
3013
3027
|
*
|
|
@@ -3074,6 +3088,62 @@ function createRoutes(api) {
|
|
|
3074
3088
|
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
3075
3089
|
*/
|
|
3076
3090
|
openapi: (args, options) => route(api, { "method": "GET", "path": "/apps/{app}/openapi.json", "pathParams": ["app"], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
|
|
3091
|
+
/**
|
|
3092
|
+
* A pipeline run's receipt.
|
|
3093
|
+
*
|
|
3094
|
+
* `GET /apps/{app}/pipeline-runs/{run}/receipt` (`pipeline_receipt_receipt`). **Who:** signed in (a session or an API key).
|
|
3095
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
3096
|
+
*/
|
|
3097
|
+
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),
|
|
3098
|
+
/**
|
|
3099
|
+
* Cancel a pipeline run.
|
|
3100
|
+
*
|
|
3101
|
+
* `POST /apps/{app}/pipeline-runs/{run}/cancel` (`pipelines_cancel`). **Who:** signed in (a session or an API key).
|
|
3102
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
3103
|
+
*/
|
|
3104
|
+
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),
|
|
3105
|
+
/**
|
|
3106
|
+
* Estimate a pipeline run.
|
|
3107
|
+
*
|
|
3108
|
+
* `POST /apps/{app}/pipelines/{name}/estimate` (`pipelines_estimate_run`). **Who:** signed in (a session or an API key).
|
|
3109
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
3110
|
+
*/
|
|
3111
|
+
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),
|
|
3112
|
+
/**
|
|
3113
|
+
* One pipeline run.
|
|
3114
|
+
*
|
|
3115
|
+
* `GET /apps/{app}/pipeline-runs/{run}` (`pipelines_get`). **Who:** whoever the app's access admits (a public app: anyone).
|
|
3116
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
3117
|
+
*/
|
|
3118
|
+
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),
|
|
3119
|
+
/**
|
|
3120
|
+
* An app's pipeline runs.
|
|
3121
|
+
*
|
|
3122
|
+
* `GET /apps/{app}/pipeline-runs` (`pipelines_list`). **Who:** whoever the app's access admits (a public app: anyone).
|
|
3123
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
3124
|
+
*/
|
|
3125
|
+
pipelinesList: (args, options) => route(api, { "method": "GET", "path": "/apps/{app}/pipeline-runs", "pathParams": ["app"], "query": ["limit"], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
|
|
3126
|
+
/**
|
|
3127
|
+
* Retry a pipeline run.
|
|
3128
|
+
*
|
|
3129
|
+
* `POST /apps/{app}/pipeline-runs/{run}/retry` (`pipelines_retry`). **Who:** signed in (a session or an API key).
|
|
3130
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
3131
|
+
*/
|
|
3132
|
+
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),
|
|
3133
|
+
/**
|
|
3134
|
+
* Start a pipeline run.
|
|
3135
|
+
*
|
|
3136
|
+
* `POST /apps/{app}/pipelines/{name}/runs` (`pipelines_start`). **Who:** signed in (a session or an API key).
|
|
3137
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
3138
|
+
*/
|
|
3139
|
+
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),
|
|
3140
|
+
/**
|
|
3141
|
+
* Validate a pipeline.
|
|
3142
|
+
*
|
|
3143
|
+
* `POST /pipelines/validate` (`pipelines_validate`). **Who:** signed in (a session or an API key).
|
|
3144
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
3145
|
+
*/
|
|
3146
|
+
pipelinesValidate: (args, options) => route(api, { "method": "POST", "path": "/pipelines/validate", "pathParams": [], "query": [], "body": "fields", "optionalBody": false, "reply": "json" }, args, options),
|
|
3077
3147
|
/**
|
|
3078
3148
|
* Who is present.
|
|
3079
3149
|
*
|
|
@@ -3191,6 +3261,13 @@ function createRoutes(api) {
|
|
|
3191
3261
|
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
3192
3262
|
*/
|
|
3193
3263
|
accountApps: (args = {}, options) => route(api, { "method": "GET", "path": "/auth/apps", "pathParams": [], "query": ["after", "limit"], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
|
|
3264
|
+
/**
|
|
3265
|
+
* The account's backup key.
|
|
3266
|
+
*
|
|
3267
|
+
* `GET /auth/backup-key` (`account_backup_key`). **Who:** an account holder (a passkey session not bound to an app's frontend).
|
|
3268
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
3269
|
+
*/
|
|
3270
|
+
accountBackupKey: (args = {}, options) => route(api, { "method": "GET", "path": "/auth/backup-key", "pathParams": [], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
|
|
3194
3271
|
/**
|
|
3195
3272
|
* Approve outbound prefixes for the account's apps.
|
|
3196
3273
|
*
|
|
@@ -3243,6 +3320,14 @@ function createRoutes(api) {
|
|
|
3243
3320
|
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
3244
3321
|
*/
|
|
3245
3322
|
accountReleaseApproval: (args, options) => route(api, { "method": "POST", "path": "/auth/releases", "pathParams": [], "query": [], "body": "fields", "optionalBody": false, "reply": "json", "stepUp": true, "userVerification": "required" }, args, options),
|
|
3323
|
+
/**
|
|
3324
|
+
* Set the account's backup key.
|
|
3325
|
+
*
|
|
3326
|
+
* `POST /auth/backup-key` (`account_set_backup_key`). **Who:** an account holder (a passkey session not bound to an app's frontend).
|
|
3327
|
+
* Answers `412 CONFIRM_REQUIRED` first: give `confirm` (here or on the client); the passkey must verify the user `required`.
|
|
3328
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
3329
|
+
*/
|
|
3330
|
+
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),
|
|
3246
3331
|
/**
|
|
3247
3332
|
* What the account's passkeys did.
|
|
3248
3333
|
*
|
|
@@ -3568,6 +3653,12 @@ function createRoutes(api) {
|
|
|
3568
3653
|
* `POST /ops/backup` (`ops_backup`). **Who:** the ops token.
|
|
3569
3654
|
*/
|
|
3570
3655
|
backup: (args = {}, options) => route(api, { "method": "POST", "path": "/ops/backup", "pathParams": [], "query": ["all"], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
|
|
3656
|
+
/**
|
|
3657
|
+
* The operator's backup key.
|
|
3658
|
+
*
|
|
3659
|
+
* `GET /ops/backup-key` (`ops_backup_key`). **Who:** the ops token.
|
|
3660
|
+
*/
|
|
3661
|
+
backupKey: (args = {}, options) => route(api, { "method": "GET", "path": "/ops/backup-key", "pathParams": [], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
|
|
3571
3662
|
/**
|
|
3572
3663
|
* The cluster's identity.
|
|
3573
3664
|
*
|
|
@@ -3684,6 +3775,19 @@ function createRoutes(api) {
|
|
|
3684
3775
|
* Answers `428 OPERATOR_SIGNATURE_REQUIRED` first: give `operatorProof` (here or on the client).
|
|
3685
3776
|
*/
|
|
3686
3777
|
poolsSet: (args, options) => route(api, { "method": "POST", "path": "/ops/pools", "pathParams": [], "query": [], "body": "fields", "optionalBody": false, "reply": "json", "operator": true }, args, options),
|
|
3778
|
+
/**
|
|
3779
|
+
* The price table.
|
|
3780
|
+
*
|
|
3781
|
+
* `GET /ops/prices` (`ops_prices_get`). **Who:** the ops token.
|
|
3782
|
+
*/
|
|
3783
|
+
pricesGet: (args = {}, options) => route(api, { "method": "GET", "path": "/ops/prices", "pathParams": [], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
|
|
3784
|
+
/**
|
|
3785
|
+
* Set the price table.
|
|
3786
|
+
*
|
|
3787
|
+
* `POST /ops/prices` (`ops_prices_set`). **Who:** the ops token.
|
|
3788
|
+
* Answers `428 OPERATOR_SIGNATURE_REQUIRED` first: give `operatorProof` (here or on the client).
|
|
3789
|
+
*/
|
|
3790
|
+
pricesSet: (args, options) => route(api, { "method": "POST", "path": "/ops/prices", "pathParams": [], "query": [], "body": "fields", "optionalBody": false, "reply": "json", "operator": true }, args, options),
|
|
3687
3791
|
/**
|
|
3688
3792
|
* The quotas.
|
|
3689
3793
|
*
|
|
@@ -3703,6 +3807,18 @@ function createRoutes(api) {
|
|
|
3703
3807
|
* `GET /ops/nodes/{id}/receipt-key` (`ops_receipt_key`). **Who:** the ops token.
|
|
3704
3808
|
*/
|
|
3705
3809
|
receiptKey: (args, options) => route(api, { "method": "GET", "path": "/ops/nodes/{id}/receipt-key", "pathParams": ["id"], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
|
|
3810
|
+
/**
|
|
3811
|
+
* Found the cluster again from its recovery disk.
|
|
3812
|
+
*
|
|
3813
|
+
* `POST /ops/recover` (`ops_recover`). **Who:** the ops token.
|
|
3814
|
+
*/
|
|
3815
|
+
recover: (args, options) => route(api, { "method": "POST", "path": "/ops/recover", "pathParams": [], "query": [], "body": "fields", "optionalBody": false, "reply": "json" }, args, options),
|
|
3816
|
+
/**
|
|
3817
|
+
* The recovery files a node reads.
|
|
3818
|
+
*
|
|
3819
|
+
* `GET /ops/recovery-files` (`ops_recovery_files`). **Who:** the ops token.
|
|
3820
|
+
*/
|
|
3821
|
+
recoveryFiles: (args = {}, options) => route(api, { "method": "GET", "path": "/ops/recovery-files", "pathParams": [], "query": ["holder"], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
|
|
3706
3822
|
/**
|
|
3707
3823
|
* Register a node.
|
|
3708
3824
|
*
|
|
@@ -3751,6 +3867,13 @@ function createRoutes(api) {
|
|
|
3751
3867
|
* `GET /ops/served-origins` (`ops_served`). **Who:** the ops token.
|
|
3752
3868
|
*/
|
|
3753
3869
|
served: (args = {}, options) => route(api, { "method": "GET", "path": "/ops/served-origins", "pathParams": [], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
|
|
3870
|
+
/**
|
|
3871
|
+
* Set the operator's backup key.
|
|
3872
|
+
*
|
|
3873
|
+
* `POST /ops/backup-key` (`ops_set_backup_key`). **Who:** the ops token.
|
|
3874
|
+
* Answers `428 OPERATOR_SIGNATURE_REQUIRED` first: give `operatorProof` (here or on the client).
|
|
3875
|
+
*/
|
|
3876
|
+
setBackupKey: (args, options) => route(api, { "method": "POST", "path": "/ops/backup-key", "pathParams": [], "query": [], "body": "fields", "optionalBody": false, "reply": "json", "operator": true }, args, options),
|
|
3754
3877
|
/**
|
|
3755
3878
|
* Move an app's replicas.
|
|
3756
3879
|
*
|
|
@@ -3837,6 +3960,13 @@ function createRoutes(api) {
|
|
|
3837
3960
|
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
3838
3961
|
*/
|
|
3839
3962
|
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),
|
|
3963
|
+
/**
|
|
3964
|
+
* The organization's backup key.
|
|
3965
|
+
*
|
|
3966
|
+
* `GET /orgs/{org}/backup-key` (`org_backup_key`). **Who:** an account holder (a passkey session not bound to an app's frontend).
|
|
3967
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
3968
|
+
*/
|
|
3969
|
+
backupKey: (args, options) => route(api, { "method": "GET", "path": "/orgs/{org}/backup-key", "pathParams": ["org"], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
|
|
3840
3970
|
/**
|
|
3841
3971
|
* Set capabilities.
|
|
3842
3972
|
*
|
|
@@ -4013,6 +4143,14 @@ function createRoutes(api) {
|
|
|
4013
4143
|
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
4014
4144
|
*/
|
|
4015
4145
|
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),
|
|
4146
|
+
/**
|
|
4147
|
+
* Set the organization's backup key.
|
|
4148
|
+
*
|
|
4149
|
+
* `POST /orgs/{org}/backup-key` (`org_set_backup_key`). **Who:** an account holder (a passkey session not bound to an app's frontend).
|
|
4150
|
+
* Answers `412 CONFIRM_REQUIRED` first: give `confirm` (here or on the client); the passkey must verify the user `required`.
|
|
4151
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
4152
|
+
*/
|
|
4153
|
+
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),
|
|
4016
4154
|
/**
|
|
4017
4155
|
* Set a member's role.
|
|
4018
4156
|
*
|
|
@@ -4150,6 +4288,13 @@ function createRoutes(api) {
|
|
|
4150
4288
|
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
4151
4289
|
*/
|
|
4152
4290
|
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),
|
|
4291
|
+
/**
|
|
4292
|
+
* A release's pipelines.
|
|
4293
|
+
*
|
|
4294
|
+
* `GET /packages/{package}/{version}/pipelines` (`package_pipelines`). **Who:** signed in (a session or an API key).
|
|
4295
|
+
* A `421 WRONG_NODE` moves the client to the next node of the cluster.
|
|
4296
|
+
*/
|
|
4297
|
+
pipelines: (args, options) => route(api, { "method": "GET", "path": "/packages/{package}/{version}/pipelines", "pathParams": ["package", "version"], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
|
|
4153
4298
|
/**
|
|
4154
4299
|
* Uninstall a package.
|
|
4155
4300
|
*
|
|
@@ -4197,7 +4342,14 @@ function createRoutes(api) {
|
|
|
4197
4342
|
*
|
|
4198
4343
|
* `GET /releases` (`releases_public`). **Who:** anyone.
|
|
4199
4344
|
*/
|
|
4200
|
-
releasesPublic: (args = {}, options) => route(api, { "method": "GET", "path": "/releases", "pathParams": [], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options)
|
|
4345
|
+
releasesPublic: (args = {}, options) => route(api, { "method": "GET", "path": "/releases", "pathParams": [], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
|
|
4346
|
+
/**
|
|
4347
|
+
* Bring an organization's or account's apps back from its recovery files.
|
|
4348
|
+
*
|
|
4349
|
+
* `POST /recover/holder` (`restore_recover_holder`). **Who:** anyone.
|
|
4350
|
+
* Answers `428 OPERATOR_SIGNATURE_REQUIRED` first: give `operatorProof` (here or on the client).
|
|
4351
|
+
*/
|
|
4352
|
+
restoreRecoverHolder: (args, options) => route(api, { "method": "POST", "path": "/recover/holder", "pathParams": [], "query": [], "body": "fields", "optionalBody": false, "reply": "json", "operator": true }, args, options)
|
|
4201
4353
|
}
|
|
4202
4354
|
};
|
|
4203
4355
|
}
|