@calimero-network/mero-js 35.4.0 → 35.5.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.
@@ -3571,6 +3571,28 @@ export interface paths {
3571
3571
  patch?: never;
3572
3572
  trace?: never;
3573
3573
  };
3574
+ "/packages/{package}/{version}/capabilities": {
3575
+ parameters: {
3576
+ query?: never;
3577
+ header?: never;
3578
+ path?: never;
3579
+ cookie?: never;
3580
+ };
3581
+ /**
3582
+ * A release's capabilities
3583
+ * @description What the release is and may do, read from its signed manifest and the ABI its service component embeds, before any app of it exists: `bundle` is the service WASM's hash, `outbound` the sorted prefixes it may call out to and `abi` the embedded `calimero:abi` verbatim (`null` when it embeds none). `service` names the service whose card to read (default: the release's only one). A session bound to the package reads every release of it. `404` for a release the caller may not see, `400 NO_SUCH_SERVICE` for an unknown service or no `service` on a release with several, `400 BAD_REQUEST` for an over-long `service`.
3584
+ *
3585
+ * **Who:** signed in (a session or an API key).
3586
+ */
3587
+ get: operations["package_capabilities"];
3588
+ put?: never;
3589
+ post?: never;
3590
+ delete?: never;
3591
+ options?: never;
3592
+ head?: never;
3593
+ patch?: never;
3594
+ trace?: never;
3595
+ };
3574
3596
  "/packages/{package}/{version}/pipelines": {
3575
3597
  parameters: {
3576
3598
  query?: never;
@@ -17486,6 +17508,80 @@ export interface operations {
17486
17508
  };
17487
17509
  };
17488
17510
  };
17511
+ package_capabilities: {
17512
+ parameters: {
17513
+ query?: {
17514
+ service?: string;
17515
+ };
17516
+ header?: never;
17517
+ path: {
17518
+ package: string;
17519
+ version: string;
17520
+ };
17521
+ cookie?: never;
17522
+ };
17523
+ requestBody?: never;
17524
+ responses: {
17525
+ /** @description OK */
17526
+ 200: {
17527
+ headers: {
17528
+ [name: string]: unknown;
17529
+ };
17530
+ content: {
17531
+ "application/json": {
17532
+ package: string;
17533
+ version: string;
17534
+ service: string | null;
17535
+ bundle: string;
17536
+ mpk: string;
17537
+ manifestHash: string;
17538
+ signer: string;
17539
+ name: string | null;
17540
+ author: string | null;
17541
+ outbound: string[];
17542
+ /** @description Free-form JSON: its shape is not this API's (see the description around it for whose it is). */
17543
+ abi: unknown;
17544
+ };
17545
+ };
17546
+ };
17547
+ /** @description `BAD_REQUEST`: the request is malformed; `NO_SUCH_SERVICE` */
17548
+ 400: {
17549
+ headers: {
17550
+ [name: string]: unknown;
17551
+ };
17552
+ content: {
17553
+ "application/json": components["schemas"]["Error"];
17554
+ };
17555
+ };
17556
+ /** @description `UNAUTHENTICATED`: no, unknown, expired or revoked credential */
17557
+ 401: {
17558
+ headers: {
17559
+ [name: string]: unknown;
17560
+ };
17561
+ content: {
17562
+ "application/json": components["schemas"]["Error"];
17563
+ };
17564
+ };
17565
+ /** @description `NOT_FOUND`: no such object, or one the caller may not see */
17566
+ 404: {
17567
+ headers: {
17568
+ [name: string]: unknown;
17569
+ };
17570
+ content: {
17571
+ "application/json": components["schemas"]["Error"];
17572
+ };
17573
+ };
17574
+ /** @description `WRONG_NODE`: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no `details`; nothing was spent) */
17575
+ 421: {
17576
+ headers: {
17577
+ [name: string]: unknown;
17578
+ };
17579
+ content: {
17580
+ "application/json": components["schemas"]["Error"];
17581
+ };
17582
+ };
17583
+ };
17584
+ };
17489
17585
  package_pipelines: {
17490
17586
  parameters: {
17491
17587
  query?: never;
@@ -1325,6 +1325,13 @@ export declare function createRoutes(api: RouteClient): {
1325
1325
  * A `421 WRONG_NODE` moves the client to the next node of the cluster.
1326
1326
  */
1327
1327
  bundlePut: (args: RawBody, options?: MethodOptions) => Promise<operations["bundle_put"]["responses"][200]["content"]["application/json"]>;
1328
+ /**
1329
+ * A release's capabilities.
1330
+ *
1331
+ * `GET /packages/{package}/{version}/capabilities` (`package_capabilities`). **Who:** signed in (a session or an API key).
1332
+ * A `421 WRONG_NODE` moves the client to the next node of the cluster.
1333
+ */
1334
+ capabilities: (args: operations["package_capabilities"]["parameters"]["path"] & NonNullable<operations["package_capabilities"]["parameters"]["query"]>, options?: MethodOptions) => Promise<operations["package_capabilities"]["responses"][200]["content"]["application/json"]>;
1328
1335
  /**
1329
1336
  * One package.
1330
1337
  *
@@ -1331,6 +1331,13 @@ export function createRoutes(api) {
1331
1331
  * A `421 WRONG_NODE` moves the client to the next node of the cluster.
1332
1332
  */
1333
1333
  bundlePut: (args, options) => route(api, { "method": "POST", "path": "/bundles", "pathParams": [], "query": [], "body": "raw", "optionalBody": false, "media": "application/wasm", "reply": "json" }, args, options),
1334
+ /**
1335
+ * A release's capabilities.
1336
+ *
1337
+ * `GET /packages/{package}/{version}/capabilities` (`package_capabilities`). **Who:** signed in (a session or an API key).
1338
+ * A `421 WRONG_NODE` moves the client to the next node of the cluster.
1339
+ */
1340
+ capabilities: (args, options) => route(api, { "method": "GET", "path": "/packages/{package}/{version}/capabilities", "pathParams": ["package", "version"], "query": ["service"], "body": "none", "optionalBody": false, "reply": "json" }, args, options),
1334
1341
  /**
1335
1342
  * One package.
1336
1343
  *