@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/index.mjs CHANGED
@@ -2842,6 +2842,20 @@ function createRoutes(api) {
2842
2842
  * A `421 WRONG_NODE` moves the client to the next node of the cluster.
2843
2843
  */
2844
2844
  delete: (args, options) => route(api, { "method": "DELETE", "path": "/apps/{app}", "pathParams": ["app"], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
2845
+ /**
2846
+ * Export a sealed file's key.
2847
+ *
2848
+ * `POST /apps/{app}/files/{id}/export` (`exports_export`). **Who:** signed in (a session or an API key).
2849
+ * A `421 WRONG_NODE` moves the client to the next node of the cluster.
2850
+ */
2851
+ 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),
2852
+ /**
2853
+ * One segment of a sealed file.
2854
+ *
2855
+ * `GET /apps/{app}/files/{id}/segments/{k}` (`exports_segment`). **Who:** signed in (a session or an API key).
2856
+ * A `421 WRONG_NODE` moves the client to the next node of the cluster.
2857
+ */
2858
+ 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),
2845
2859
  /**
2846
2860
  * One sealed file.
2847
2861
  *
@@ -2908,6 +2922,62 @@ function createRoutes(api) {
2908
2922
  * A `421 WRONG_NODE` moves the client to the next node of the cluster.
2909
2923
  */
2910
2924
  openapi: (args, options) => route(api, { "method": "GET", "path": "/apps/{app}/openapi.json", "pathParams": ["app"], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
2925
+ /**
2926
+ * A pipeline run's receipt.
2927
+ *
2928
+ * `GET /apps/{app}/pipeline-runs/{run}/receipt` (`pipeline_receipt_receipt`). **Who:** signed in (a session or an API key).
2929
+ * A `421 WRONG_NODE` moves the client to the next node of the cluster.
2930
+ */
2931
+ 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),
2932
+ /**
2933
+ * Cancel a pipeline run.
2934
+ *
2935
+ * `POST /apps/{app}/pipeline-runs/{run}/cancel` (`pipelines_cancel`). **Who:** signed in (a session or an API key).
2936
+ * A `421 WRONG_NODE` moves the client to the next node of the cluster.
2937
+ */
2938
+ 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),
2939
+ /**
2940
+ * Estimate a pipeline run.
2941
+ *
2942
+ * `POST /apps/{app}/pipelines/{name}/estimate` (`pipelines_estimate_run`). **Who:** signed in (a session or an API key).
2943
+ * A `421 WRONG_NODE` moves the client to the next node of the cluster.
2944
+ */
2945
+ 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),
2946
+ /**
2947
+ * One pipeline run.
2948
+ *
2949
+ * `GET /apps/{app}/pipeline-runs/{run}` (`pipelines_get`). **Who:** whoever the app's access admits (a public app: anyone).
2950
+ * A `421 WRONG_NODE` moves the client to the next node of the cluster.
2951
+ */
2952
+ 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),
2953
+ /**
2954
+ * An app's pipeline runs.
2955
+ *
2956
+ * `GET /apps/{app}/pipeline-runs` (`pipelines_list`). **Who:** whoever the app's access admits (a public app: anyone).
2957
+ * A `421 WRONG_NODE` moves the client to the next node of the cluster.
2958
+ */
2959
+ pipelinesList: (args, options) => route(api, { "method": "GET", "path": "/apps/{app}/pipeline-runs", "pathParams": ["app"], "query": ["limit"], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
2960
+ /**
2961
+ * Retry a pipeline run.
2962
+ *
2963
+ * `POST /apps/{app}/pipeline-runs/{run}/retry` (`pipelines_retry`). **Who:** signed in (a session or an API key).
2964
+ * A `421 WRONG_NODE` moves the client to the next node of the cluster.
2965
+ */
2966
+ 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),
2967
+ /**
2968
+ * Start a pipeline run.
2969
+ *
2970
+ * `POST /apps/{app}/pipelines/{name}/runs` (`pipelines_start`). **Who:** signed in (a session or an API key).
2971
+ * A `421 WRONG_NODE` moves the client to the next node of the cluster.
2972
+ */
2973
+ 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),
2974
+ /**
2975
+ * Validate a pipeline.
2976
+ *
2977
+ * `POST /pipelines/validate` (`pipelines_validate`). **Who:** signed in (a session or an API key).
2978
+ * A `421 WRONG_NODE` moves the client to the next node of the cluster.
2979
+ */
2980
+ pipelinesValidate: (args, options) => route(api, { "method": "POST", "path": "/pipelines/validate", "pathParams": [], "query": [], "body": "fields", "optionalBody": false, "reply": "json" }, args, options),
2911
2981
  /**
2912
2982
  * Who is present.
2913
2983
  *
@@ -3025,6 +3095,13 @@ function createRoutes(api) {
3025
3095
  * A `421 WRONG_NODE` moves the client to the next node of the cluster.
3026
3096
  */
3027
3097
  accountApps: (args = {}, options) => route(api, { "method": "GET", "path": "/auth/apps", "pathParams": [], "query": ["after", "limit"], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
3098
+ /**
3099
+ * The account's backup key.
3100
+ *
3101
+ * `GET /auth/backup-key` (`account_backup_key`). **Who:** an account holder (a passkey session not bound to an app's frontend).
3102
+ * A `421 WRONG_NODE` moves the client to the next node of the cluster.
3103
+ */
3104
+ accountBackupKey: (args = {}, options) => route(api, { "method": "GET", "path": "/auth/backup-key", "pathParams": [], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
3028
3105
  /**
3029
3106
  * Approve outbound prefixes for the account's apps.
3030
3107
  *
@@ -3077,6 +3154,14 @@ function createRoutes(api) {
3077
3154
  * A `421 WRONG_NODE` moves the client to the next node of the cluster.
3078
3155
  */
3079
3156
  accountReleaseApproval: (args, options) => route(api, { "method": "POST", "path": "/auth/releases", "pathParams": [], "query": [], "body": "fields", "optionalBody": false, "reply": "json", "stepUp": true, "userVerification": "required" }, args, options),
3157
+ /**
3158
+ * Set the account's backup key.
3159
+ *
3160
+ * `POST /auth/backup-key` (`account_set_backup_key`). **Who:** an account holder (a passkey session not bound to an app's frontend).
3161
+ * Answers `412 CONFIRM_REQUIRED` first: give `confirm` (here or on the client); the passkey must verify the user `required`.
3162
+ * A `421 WRONG_NODE` moves the client to the next node of the cluster.
3163
+ */
3164
+ 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),
3080
3165
  /**
3081
3166
  * What the account's passkeys did.
3082
3167
  *
@@ -3402,6 +3487,12 @@ function createRoutes(api) {
3402
3487
  * `POST /ops/backup` (`ops_backup`). **Who:** the ops token.
3403
3488
  */
3404
3489
  backup: (args = {}, options) => route(api, { "method": "POST", "path": "/ops/backup", "pathParams": [], "query": ["all"], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
3490
+ /**
3491
+ * The operator's backup key.
3492
+ *
3493
+ * `GET /ops/backup-key` (`ops_backup_key`). **Who:** the ops token.
3494
+ */
3495
+ backupKey: (args = {}, options) => route(api, { "method": "GET", "path": "/ops/backup-key", "pathParams": [], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
3405
3496
  /**
3406
3497
  * The cluster's identity.
3407
3498
  *
@@ -3518,6 +3609,19 @@ function createRoutes(api) {
3518
3609
  * Answers `428 OPERATOR_SIGNATURE_REQUIRED` first: give `operatorProof` (here or on the client).
3519
3610
  */
3520
3611
  poolsSet: (args, options) => route(api, { "method": "POST", "path": "/ops/pools", "pathParams": [], "query": [], "body": "fields", "optionalBody": false, "reply": "json", "operator": true }, args, options),
3612
+ /**
3613
+ * The price table.
3614
+ *
3615
+ * `GET /ops/prices` (`ops_prices_get`). **Who:** the ops token.
3616
+ */
3617
+ pricesGet: (args = {}, options) => route(api, { "method": "GET", "path": "/ops/prices", "pathParams": [], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
3618
+ /**
3619
+ * Set the price table.
3620
+ *
3621
+ * `POST /ops/prices` (`ops_prices_set`). **Who:** the ops token.
3622
+ * Answers `428 OPERATOR_SIGNATURE_REQUIRED` first: give `operatorProof` (here or on the client).
3623
+ */
3624
+ pricesSet: (args, options) => route(api, { "method": "POST", "path": "/ops/prices", "pathParams": [], "query": [], "body": "fields", "optionalBody": false, "reply": "json", "operator": true }, args, options),
3521
3625
  /**
3522
3626
  * The quotas.
3523
3627
  *
@@ -3537,6 +3641,18 @@ function createRoutes(api) {
3537
3641
  * `GET /ops/nodes/{id}/receipt-key` (`ops_receipt_key`). **Who:** the ops token.
3538
3642
  */
3539
3643
  receiptKey: (args, options) => route(api, { "method": "GET", "path": "/ops/nodes/{id}/receipt-key", "pathParams": ["id"], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
3644
+ /**
3645
+ * Found the cluster again from its recovery disk.
3646
+ *
3647
+ * `POST /ops/recover` (`ops_recover`). **Who:** the ops token.
3648
+ */
3649
+ recover: (args, options) => route(api, { "method": "POST", "path": "/ops/recover", "pathParams": [], "query": [], "body": "fields", "optionalBody": false, "reply": "json" }, args, options),
3650
+ /**
3651
+ * The recovery files a node reads.
3652
+ *
3653
+ * `GET /ops/recovery-files` (`ops_recovery_files`). **Who:** the ops token.
3654
+ */
3655
+ recoveryFiles: (args = {}, options) => route(api, { "method": "GET", "path": "/ops/recovery-files", "pathParams": [], "query": ["holder"], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
3540
3656
  /**
3541
3657
  * Register a node.
3542
3658
  *
@@ -3585,6 +3701,13 @@ function createRoutes(api) {
3585
3701
  * `GET /ops/served-origins` (`ops_served`). **Who:** the ops token.
3586
3702
  */
3587
3703
  served: (args = {}, options) => route(api, { "method": "GET", "path": "/ops/served-origins", "pathParams": [], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
3704
+ /**
3705
+ * Set the operator's backup key.
3706
+ *
3707
+ * `POST /ops/backup-key` (`ops_set_backup_key`). **Who:** the ops token.
3708
+ * Answers `428 OPERATOR_SIGNATURE_REQUIRED` first: give `operatorProof` (here or on the client).
3709
+ */
3710
+ setBackupKey: (args, options) => route(api, { "method": "POST", "path": "/ops/backup-key", "pathParams": [], "query": [], "body": "fields", "optionalBody": false, "reply": "json", "operator": true }, args, options),
3588
3711
  /**
3589
3712
  * Move an app's replicas.
3590
3713
  *
@@ -3671,6 +3794,13 @@ function createRoutes(api) {
3671
3794
  * A `421 WRONG_NODE` moves the client to the next node of the cluster.
3672
3795
  */
3673
3796
  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),
3797
+ /**
3798
+ * The organization's backup key.
3799
+ *
3800
+ * `GET /orgs/{org}/backup-key` (`org_backup_key`). **Who:** an account holder (a passkey session not bound to an app's frontend).
3801
+ * A `421 WRONG_NODE` moves the client to the next node of the cluster.
3802
+ */
3803
+ backupKey: (args, options) => route(api, { "method": "GET", "path": "/orgs/{org}/backup-key", "pathParams": ["org"], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
3674
3804
  /**
3675
3805
  * Set capabilities.
3676
3806
  *
@@ -3847,6 +3977,14 @@ function createRoutes(api) {
3847
3977
  * A `421 WRONG_NODE` moves the client to the next node of the cluster.
3848
3978
  */
3849
3979
  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),
3980
+ /**
3981
+ * Set the organization's backup key.
3982
+ *
3983
+ * `POST /orgs/{org}/backup-key` (`org_set_backup_key`). **Who:** an account holder (a passkey session not bound to an app's frontend).
3984
+ * Answers `412 CONFIRM_REQUIRED` first: give `confirm` (here or on the client); the passkey must verify the user `required`.
3985
+ * A `421 WRONG_NODE` moves the client to the next node of the cluster.
3986
+ */
3987
+ 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),
3850
3988
  /**
3851
3989
  * Set a member's role.
3852
3990
  *
@@ -3984,6 +4122,13 @@ function createRoutes(api) {
3984
4122
  * A `421 WRONG_NODE` moves the client to the next node of the cluster.
3985
4123
  */
3986
4124
  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),
4125
+ /**
4126
+ * A release's pipelines.
4127
+ *
4128
+ * `GET /packages/{package}/{version}/pipelines` (`package_pipelines`). **Who:** signed in (a session or an API key).
4129
+ * A `421 WRONG_NODE` moves the client to the next node of the cluster.
4130
+ */
4131
+ pipelines: (args, options) => route(api, { "method": "GET", "path": "/packages/{package}/{version}/pipelines", "pathParams": ["package", "version"], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
3987
4132
  /**
3988
4133
  * Uninstall a package.
3989
4134
  *
@@ -4031,7 +4176,14 @@ function createRoutes(api) {
4031
4176
  *
4032
4177
  * `GET /releases` (`releases_public`). **Who:** anyone.
4033
4178
  */
4034
- releasesPublic: (args = {}, options) => route(api, { "method": "GET", "path": "/releases", "pathParams": [], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options)
4179
+ releasesPublic: (args = {}, options) => route(api, { "method": "GET", "path": "/releases", "pathParams": [], "query": [], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
4180
+ /**
4181
+ * Bring an organization's or account's apps back from its recovery files.
4182
+ *
4183
+ * `POST /recover/holder` (`restore_recover_holder`). **Who:** anyone.
4184
+ * Answers `428 OPERATOR_SIGNATURE_REQUIRED` first: give `operatorProof` (here or on the client).
4185
+ */
4186
+ restoreRecoverHolder: (args, options) => route(api, { "method": "POST", "path": "/recover/holder", "pathParams": [], "query": [], "body": "fields", "optionalBody": false, "reply": "json", "operator": true }, args, options)
4035
4187
  }
4036
4188
  };
4037
4189
  }