@compose-market/sdk 0.7.6 → 0.7.8

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.
Files changed (70) hide show
  1. package/.speakeasy/a2a.arazzo.yaml +2 -2
  2. package/.speakeasy/memory.arazzo.yaml +1 -1
  3. package/.speakeasy/tests.arazzo.yaml +1 -1
  4. package/CHANGELOG.md +2 -2
  5. package/README.md +2 -2
  6. package/dist/events.d.ts +2 -2
  7. package/dist/events.js +1 -1
  8. package/dist/http.d.ts +1 -0
  9. package/dist/http.d.ts.map +1 -1
  10. package/dist/http.js +3 -0
  11. package/dist/http.js.map +1 -1
  12. package/dist/index.d.ts +1 -1
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js.map +1 -1
  15. package/dist/resources/agent.js +1 -1
  16. package/dist/resources/agent.js.map +1 -1
  17. package/dist/resources/inference.d.ts +11 -0
  18. package/dist/resources/inference.d.ts.map +1 -1
  19. package/dist/resources/inference.js +49 -3
  20. package/dist/resources/inference.js.map +1 -1
  21. package/dist/resources/workflow.d.ts +1 -1
  22. package/dist/resources/workflow.js +2 -2
  23. package/dist/resources/workflow.js.map +1 -1
  24. package/dist/streaming/receipt.d.ts +2 -2
  25. package/dist/streaming/receipt.js +2 -2
  26. package/dist/types/index.d.ts +114 -1
  27. package/dist/types/index.d.ts.map +1 -1
  28. package/dist/version.d.ts +1 -1
  29. package/dist/version.js +1 -1
  30. package/generated/inference/esm/lib/config.d.ts +3 -3
  31. package/generated/inference/esm/lib/config.js +3 -3
  32. package/generated/inference/package.json +1 -1
  33. package/generated/inference/src/lib/config.ts +3 -3
  34. package/generated/manowar/esm/lib/config.d.ts +3 -3
  35. package/generated/manowar/esm/lib/config.js +3 -3
  36. package/generated/manowar/esm/models/operations/index.d.ts +0 -1
  37. package/generated/manowar/esm/models/operations/index.d.ts.map +1 -1
  38. package/generated/manowar/esm/models/operations/index.js +0 -1
  39. package/generated/manowar/esm/models/operations/index.js.map +1 -1
  40. package/generated/manowar/esm/sdk/connectors.d.ts +0 -1
  41. package/generated/manowar/esm/sdk/connectors.d.ts.map +1 -1
  42. package/generated/manowar/esm/sdk/connectors.js +0 -4
  43. package/generated/manowar/esm/sdk/connectors.js.map +1 -1
  44. package/generated/manowar/package.json +1 -1
  45. package/generated/manowar/src/lib/config.ts +3 -3
  46. package/generated/manowar/src/models/operations/index.ts +0 -1
  47. package/generated/manowar/src/sdk/connectors.ts +0 -11
  48. package/generated/memory/esm/lib/config.d.ts +3 -3
  49. package/generated/memory/esm/lib/config.js +3 -3
  50. package/generated/memory/package.json +1 -1
  51. package/generated/memory/src/lib/config.ts +3 -3
  52. package/generated/x402/esm/lib/config.d.ts +3 -3
  53. package/generated/x402/esm/lib/config.js +3 -3
  54. package/generated/x402/package.json +1 -1
  55. package/generated/x402/src/lib/config.ts +3 -3
  56. package/package.json +4 -4
  57. package/specs/inference.openapi.yaml +4 -3
  58. package/specs/manowar.openapi.yaml +1 -35
  59. package/specs/memory.openapi.yaml +1 -1
  60. package/specs/x402.openapi.yaml +1 -1
  61. package/generated/manowar/esm/funcs/connectors-connectors-runtime-execute.d.ts +0 -11
  62. package/generated/manowar/esm/funcs/connectors-connectors-runtime-execute.d.ts.map +0 -1
  63. package/generated/manowar/esm/funcs/connectors-connectors-runtime-execute.js +0 -85
  64. package/generated/manowar/esm/funcs/connectors-connectors-runtime-execute.js.map +0 -1
  65. package/generated/manowar/esm/models/operations/connectors-runtime-execute.d.ts +0 -57
  66. package/generated/manowar/esm/models/operations/connectors-runtime-execute.d.ts.map +0 -1
  67. package/generated/manowar/esm/models/operations/connectors-runtime-execute.js +0 -42
  68. package/generated/manowar/esm/models/operations/connectors-runtime-execute.js.map +0 -1
  69. package/generated/manowar/src/funcs/connectors-connectors-runtime-execute.ts +0 -170
  70. package/generated/manowar/src/models/operations/connectors-runtime-execute.ts +0 -111
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compose-market/sdk",
3
- "version": "0.7.6",
3
+ "version": "0.7.8",
4
4
  "description": "Official Compose.Market SDK: Compose Keys, x402 facilitator, multi-provider model catalog, native streaming inference with typed receipts, unified tool-call events, agent + workflow runtime streams, live session events, and wallet-scoped persistence.",
5
5
  "keywords": [
6
6
  "compose",
@@ -212,15 +212,15 @@
212
212
  "prepublishOnly": "npm run test:build"
213
213
  },
214
214
  "devDependencies": {
215
- "@types/node": "^25.9.2",
215
+ "@types/node": "^25.9.3",
216
216
  "dotenv": "^17.4.2",
217
217
  "tsx": "^4.22.4",
218
218
  "typescript": "^6.0.3"
219
219
  },
220
220
  "dependencies": {
221
221
  "@compose-market/core": "^0.1.5",
222
- "@x402/core": "^2.14.0",
223
- "@x402/evm": "^2.14.0",
222
+ "@x402/core": "^2.15.0",
223
+ "@x402/evm": "^2.15.0",
224
224
  "viem": "^2.52.2",
225
225
  "zod": "^4.4.3"
226
226
  },
@@ -2,7 +2,7 @@
2
2
  openapi: 3.1.0
3
3
  info:
4
4
  title: Compose Inference
5
- version: 0.7.6
5
+ version: 0.7.8
6
6
  summary: Model discovery, inference, and realtime inference stream contracts.
7
7
  description: |
8
8
  Canonical contract for Compose model discovery, serverless inference,
@@ -853,6 +853,7 @@ components:
853
853
  - audio
854
854
  - video
855
855
  - embedding
856
+ - realtime
856
857
  PricingUnit:
857
858
  type: object
858
859
  required:
@@ -1376,7 +1377,7 @@ components:
1376
1377
  receipt:
1377
1378
  "$ref": "#/components/schemas/ReceiptBody"
1378
1379
  ChatCompletionStream:
1379
- description: SSE frames carrying chat completion chunks plus `compose.receipt`
1380
+ description: SSE frames carrying chat completion chunks plus `receipt`
1380
1381
  and `compose.error`.
1381
1382
  type: string
1382
1383
  ResponsesCreateRequest:
@@ -1513,7 +1514,7 @@ components:
1513
1514
  ResponseEventStream:
1514
1515
  description: SSE frames for response creation, text deltas, reasoning deltas,
1515
1516
  tool calls, image partials, typed output items for text/image/audio/video/embedding,
1516
- video status, completion, `compose.receipt`, and `compose.error`.
1517
+ video status, completion, `receipt`, and `compose.error`.
1517
1518
  type: string
1518
1519
  EmbeddingsCreateRequest:
1519
1520
  type: object
@@ -2,7 +2,7 @@
2
2
  openapi: 3.1.0
3
3
  info:
4
4
  title: Compose Manowar
5
- version: 0.7.6
5
+ version: 0.7.8
6
6
  summary: Agent, workflow, workspace, connector, MCP, and mesh execution contracts.
7
7
  description: |
8
8
  Canonical contract for Compose manowar loops: agents, workflows, workspace
@@ -604,40 +604,6 @@ paths:
604
604
  responses:
605
605
  '200':
606
606
  "$ref": "#/components/responses/JsonObjectResponse"
607
- "/runtime/execute":
608
- post:
609
- tags:
610
- - connectors
611
- operationId: connectors_runtime_execute
612
- security:
613
- - RuntimeBearerAuth: []
614
- requestBody:
615
- required: true
616
- content:
617
- application/json:
618
- schema:
619
- type: object
620
- required:
621
- - source
622
- - toolName
623
- properties:
624
- source:
625
- type: string
626
- enum:
627
- - onchain
628
- - mcp
629
- pluginId:
630
- type: string
631
- serverId:
632
- type: string
633
- toolName:
634
- type: string
635
- args:
636
- type: object
637
- additionalProperties: true
638
- responses:
639
- '200':
640
- "$ref": "#/components/responses/JsonObjectResponse"
641
607
  "/mesh/actions/execute":
642
608
  post:
643
609
  tags:
@@ -2,7 +2,7 @@
2
2
  openapi: 3.1.0
3
3
  info:
4
4
  title: Compose Memory
5
- version: 0.7.6
5
+ version: 0.7.8
6
6
  summary: Agent-first memory loop and low-level memory primitives.
7
7
  description: |
8
8
  Standalone Compose Memory contract. This SDK surface is intentionally
@@ -2,7 +2,7 @@
2
2
  openapi: 3.1.0
3
3
  info:
4
4
  title: Compose x402
5
- version: 0.7.6
5
+ version: 0.7.8
6
6
  summary: x402 settlement, Compose Keys, sessions, payments, and facilitator contracts.
7
7
  description: |
8
8
  Canonical contract for Compose x402 settlement, reusable Compose Keys,
@@ -1,11 +0,0 @@
1
- import { ComposeMarketCore } from "../core.js";
2
- import { RequestOptions } from "../lib/sdks.js";
3
- import { ComposeMarketError } from "../models/errors/compose-market-error.js";
4
- import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
5
- import { ResponseValidationError } from "../models/errors/response-validation-error.js";
6
- import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
7
- import * as operations from "../models/operations/index.js";
8
- import { APIPromise } from "../types/async.js";
9
- import { Result } from "../types/fp.js";
10
- export declare function connectorsConnectorsRuntimeExecute(client: ComposeMarketCore, request: operations.ConnectorsRuntimeExecuteRequest, options?: RequestOptions): APIPromise<Result<operations.ConnectorsRuntimeExecuteResponse, ComposeMarketError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
11
- //# sourceMappingURL=connectors-connectors-runtime-execute.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"connectors-connectors-runtime-execute.d.ts","sourceRoot":"","sources":["../../src/funcs/connectors-connectors-runtime-execute.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAM/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,wBAAgB,kCAAkC,CAChD,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,UAAU,CAAC,+BAA+B,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,gCAAgC,EACzC,kBAAkB,GAClB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -1,85 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod/v4-mini";
5
- import { encodeJSON } from "../lib/encodings.js";
6
- import { matchStatusCode } from "../lib/http.js";
7
- import * as M from "../lib/matchers.js";
8
- import { compactMap } from "../lib/primitives.js";
9
- import { safeParse } from "../lib/schemas.js";
10
- import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
- import { pathToFunc } from "../lib/url.js";
12
- import * as operations from "../models/operations/index.js";
13
- import { APIPromise } from "../types/async.js";
14
- export function connectorsConnectorsRuntimeExecute(client, request, options) {
15
- return new APIPromise($do(client, request, options));
16
- }
17
- async function $do(client, request, options) {
18
- const parsed = safeParse(request, (value) => z.parse(operations.ConnectorsRuntimeExecuteRequest$outboundSchema, value), "Input validation failed");
19
- if (!parsed.ok) {
20
- return [parsed, { status: "invalid" }];
21
- }
22
- const payload = parsed.value;
23
- const body = encodeJSON("body", payload, { explode: true });
24
- const path = pathToFunc("/runtime/execute")();
25
- const headers = new Headers(compactMap({
26
- "Content-Type": "application/json",
27
- Accept: "application/json",
28
- }));
29
- const secConfig = await extractSecurity(client._options.runtimeBearerAuth);
30
- const securityInput = secConfig == null
31
- ? {}
32
- : { runtimeBearerAuth: secConfig };
33
- const requestSecurity = resolveGlobalSecurity(securityInput);
34
- const context = {
35
- options: client._options,
36
- baseURL: options?.serverURL ?? client._baseURL ?? "",
37
- operationID: "connectors_runtime_execute",
38
- oAuth2Scopes: null,
39
- resolvedSecurity: requestSecurity,
40
- securitySource: client._options.runtimeBearerAuth,
41
- retryConfig: options?.retries
42
- || client._options.retryConfig
43
- || { strategy: "none" },
44
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
45
- };
46
- const requestRes = client._createRequest(context, {
47
- security: requestSecurity,
48
- method: "POST",
49
- baseURL: options?.serverURL,
50
- path: path,
51
- headers: headers,
52
- body: body,
53
- userAgent: client._options.userAgent,
54
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
55
- }, options);
56
- if (!requestRes.ok) {
57
- return [requestRes, { status: "invalid" }];
58
- }
59
- const req = requestRes.value;
60
- const doResult = await client._do(req, {
61
- context,
62
- isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
63
- retryConfig: context.retryConfig,
64
- retryCodes: context.retryCodes,
65
- });
66
- if (!doResult.ok) {
67
- return [doResult, { status: "request-error", request: req }];
68
- }
69
- const response = doResult.value;
70
- const responseFields = {
71
- ContentType: response.headers.get("content-type")
72
- ?? "application/octet-stream",
73
- StatusCode: response.status,
74
- RawResponse: response,
75
- Headers: {},
76
- };
77
- const [result] = await M.match(M.json(200, operations.ConnectorsRuntimeExecuteResponse$inboundSchema, {
78
- key: "JsonObjectResponse",
79
- }), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
80
- if (!result.ok) {
81
- return [result, { status: "complete", request: req, response }];
82
- }
83
- return [result, { status: "complete", request: req, response }];
84
- }
85
- //# sourceMappingURL=connectors-connectors-runtime-execute.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"connectors-connectors-runtime-execute.js","sourceRoot":"","sources":["../../src/funcs/connectors-connectors-runtime-execute.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,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AO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
@@ -1,57 +0,0 @@
1
- import * as z from "zod/v4-mini";
2
- import { ClosedEnum } from "../../types/enums.js";
3
- import { Result as SafeParseResult } from "../../types/fp.js";
4
- import { SDKValidationError } from "../errors/sdk-validation-error.js";
5
- export declare const Source: {
6
- readonly Onchain: "onchain";
7
- readonly Mcp: "mcp";
8
- };
9
- export type Source = ClosedEnum<typeof Source>;
10
- export type ConnectorsRuntimeExecuteRequest = {
11
- source: Source;
12
- pluginId?: string | undefined;
13
- serverId?: string | undefined;
14
- toolName: string;
15
- args?: {
16
- [k: string]: any;
17
- } | undefined;
18
- };
19
- export type ConnectorsRuntimeExecuteResponse = {
20
- /**
21
- * HTTP response content type for this operation
22
- */
23
- contentType: string;
24
- /**
25
- * HTTP response status code for this operation
26
- */
27
- statusCode: number;
28
- /**
29
- * Raw HTTP response; suitable for custom response parsing
30
- */
31
- rawResponse: Response;
32
- /**
33
- * JSON object response.
34
- */
35
- jsonObjectResponse?: {
36
- [k: string]: any;
37
- } | undefined;
38
- };
39
- /** @internal */
40
- export declare const Source$outboundSchema: z.ZodMiniEnum<typeof Source>;
41
- /** @internal */
42
- export type ConnectorsRuntimeExecuteRequest$Outbound = {
43
- source: string;
44
- pluginId?: string | undefined;
45
- serverId?: string | undefined;
46
- toolName: string;
47
- args?: {
48
- [k: string]: any;
49
- } | undefined;
50
- };
51
- /** @internal */
52
- export declare const ConnectorsRuntimeExecuteRequest$outboundSchema: z.ZodMiniType<ConnectorsRuntimeExecuteRequest$Outbound, ConnectorsRuntimeExecuteRequest>;
53
- export declare function connectorsRuntimeExecuteRequestToJSON(connectorsRuntimeExecuteRequest: ConnectorsRuntimeExecuteRequest): string;
54
- /** @internal */
55
- export declare const ConnectorsRuntimeExecuteResponse$inboundSchema: z.ZodMiniType<ConnectorsRuntimeExecuteResponse, unknown>;
56
- export declare function connectorsRuntimeExecuteResponseFromJSON(jsonString: string): SafeParseResult<ConnectorsRuntimeExecuteResponse, SDKValidationError>;
57
- //# sourceMappingURL=connectors-runtime-execute.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"connectors-runtime-execute.d.ts","sourceRoot":"","sources":["../../../src/models/operations/connectors-runtime-execute.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,eAAO,MAAM,MAAM;;;CAGT,CAAC;AACX,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;AAE/C,MAAM,MAAM,+BAA+B,GAAG;IAC5C,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG;IAC7C;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,WAAW,EAAE,QAAQ,CAAC;IACtB;;OAEG;IACH,kBAAkB,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;CACvD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAE9D,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,wCAAwC,GAAG;IACrD,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,WAAW,CACxE,wCAAwC,EACxC,+BAA+B,CAO/B,CAAC;AAEH,wBAAgB,qCAAqC,CACnD,+BAA+B,EAAE,+BAA+B,GAC/D,MAAM,CAMR;AAED,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,WAAW,CACxE,gCAAgC,EAChC,OAAO,CAgBR,CAAC;AAEF,wBAAgB,wCAAwC,CACtD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gCAAgC,EAAE,kBAAkB,CAAC,CAMvE"}
@@ -1,42 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod/v4-mini";
5
- import { remap as remap$ } from "../../lib/primitives.js";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import * as types from "../../types/primitives.js";
8
- export const Source = {
9
- Onchain: "onchain",
10
- Mcp: "mcp",
11
- };
12
- /** @internal */
13
- export const Source$outboundSchema = z.enum(Source);
14
- /** @internal */
15
- export const ConnectorsRuntimeExecuteRequest$outboundSchema = z.object({
16
- source: Source$outboundSchema,
17
- pluginId: z.optional(z.string()),
18
- serverId: z.optional(z.string()),
19
- toolName: z.string(),
20
- args: z.optional(z.record(z.string(), z.any())),
21
- });
22
- export function connectorsRuntimeExecuteRequestToJSON(connectorsRuntimeExecuteRequest) {
23
- return JSON.stringify(ConnectorsRuntimeExecuteRequest$outboundSchema.parse(connectorsRuntimeExecuteRequest));
24
- }
25
- /** @internal */
26
- export const ConnectorsRuntimeExecuteResponse$inboundSchema = z.pipe(z.object({
27
- ContentType: types.string(),
28
- StatusCode: types.number(),
29
- RawResponse: z.custom(x => x instanceof Response),
30
- JsonObjectResponse: types.optional(z.record(z.string(), z.any())),
31
- }), z.transform((v) => {
32
- return remap$(v, {
33
- "ContentType": "contentType",
34
- "StatusCode": "statusCode",
35
- "RawResponse": "rawResponse",
36
- "JsonObjectResponse": "jsonObjectResponse",
37
- });
38
- }));
39
- export function connectorsRuntimeExecuteResponseFromJSON(jsonString) {
40
- return safeParse(jsonString, (x) => ConnectorsRuntimeExecuteResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConnectorsRuntimeExecuteResponse' from JSON`);
41
- }
42
- //# sourceMappingURL=connectors-runtime-execute.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"connectors-runtime-execute.js","sourceRoot":"","sources":["../../../src/models/operations/connectors-runtime-execute.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AAGnD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,OAAO,EAAE,SAAS;IAClB,GAAG,EAAE,KAAK;CACF,CAAC;AA8BX,gBAAgB;AAChB,MAAM,CAAC,MAAM,qBAAqB,GAAiC,CAAC,CAAC,IAAI,CACvE,MAAM,CACP,CAAC;AAWF,gBAAgB;AAChB,MAAM,CAAC,MAAM,8CAA8C,GAGvD,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,qBAAqB;IAC7B,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAA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,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1E,8DAA8D,CAC/D,CAAC;AACJ,CAAC"}
@@ -1,170 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v4-mini";
6
- import { ComposeMarketCore } from "../core.js";
7
- import { encodeJSON } from "../lib/encodings.js";
8
- import { matchStatusCode } from "../lib/http.js";
9
- import * as M from "../lib/matchers.js";
10
- import { compactMap } from "../lib/primitives.js";
11
- import { safeParse } from "../lib/schemas.js";
12
- import { RequestOptions } from "../lib/sdks.js";
13
- import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
14
- import { pathToFunc } from "../lib/url.js";
15
- import { ComposeMarketError } from "../models/errors/compose-market-error.js";
16
- import {
17
- ConnectionError,
18
- InvalidRequestError,
19
- RequestAbortedError,
20
- RequestTimeoutError,
21
- UnexpectedClientError,
22
- } from "../models/errors/http-client-errors.js";
23
- import { ResponseValidationError } from "../models/errors/response-validation-error.js";
24
- import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
25
- import * as operations from "../models/operations/index.js";
26
- import { APICall, APIPromise } from "../types/async.js";
27
- import { Result } from "../types/fp.js";
28
-
29
- export function connectorsConnectorsRuntimeExecute(
30
- client: ComposeMarketCore,
31
- request: operations.ConnectorsRuntimeExecuteRequest,
32
- options?: RequestOptions,
33
- ): APIPromise<
34
- Result<
35
- operations.ConnectorsRuntimeExecuteResponse,
36
- | ComposeMarketError
37
- | ResponseValidationError
38
- | ConnectionError
39
- | RequestAbortedError
40
- | RequestTimeoutError
41
- | InvalidRequestError
42
- | UnexpectedClientError
43
- | SDKValidationError
44
- >
45
- > {
46
- return new APIPromise($do(
47
- client,
48
- request,
49
- options,
50
- ));
51
- }
52
-
53
- async function $do(
54
- client: ComposeMarketCore,
55
- request: operations.ConnectorsRuntimeExecuteRequest,
56
- options?: RequestOptions,
57
- ): Promise<
58
- [
59
- Result<
60
- operations.ConnectorsRuntimeExecuteResponse,
61
- | ComposeMarketError
62
- | ResponseValidationError
63
- | ConnectionError
64
- | RequestAbortedError
65
- | RequestTimeoutError
66
- | InvalidRequestError
67
- | UnexpectedClientError
68
- | SDKValidationError
69
- >,
70
- APICall,
71
- ]
72
- > {
73
- const parsed = safeParse(
74
- request,
75
- (value) =>
76
- z.parse(operations.ConnectorsRuntimeExecuteRequest$outboundSchema, value),
77
- "Input validation failed",
78
- );
79
- if (!parsed.ok) {
80
- return [parsed, { status: "invalid" }];
81
- }
82
- const payload = parsed.value;
83
- const body = encodeJSON("body", payload, { explode: true });
84
-
85
- const path = pathToFunc("/runtime/execute")();
86
-
87
- const headers = new Headers(compactMap({
88
- "Content-Type": "application/json",
89
- Accept: "application/json",
90
- }));
91
-
92
- const secConfig = await extractSecurity(client._options.runtimeBearerAuth);
93
- const securityInput = secConfig == null
94
- ? {}
95
- : { runtimeBearerAuth: secConfig };
96
- const requestSecurity = resolveGlobalSecurity(securityInput);
97
-
98
- const context = {
99
- options: client._options,
100
- baseURL: options?.serverURL ?? client._baseURL ?? "",
101
- operationID: "connectors_runtime_execute",
102
- oAuth2Scopes: null,
103
-
104
- resolvedSecurity: requestSecurity,
105
-
106
- securitySource: client._options.runtimeBearerAuth,
107
- retryConfig: options?.retries
108
- || client._options.retryConfig
109
- || { strategy: "none" },
110
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
111
- };
112
-
113
- const requestRes = client._createRequest(context, {
114
- security: requestSecurity,
115
- method: "POST",
116
- baseURL: options?.serverURL,
117
- path: path,
118
- headers: headers,
119
- body: body,
120
- userAgent: client._options.userAgent,
121
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
122
- }, options);
123
- if (!requestRes.ok) {
124
- return [requestRes, { status: "invalid" }];
125
- }
126
- const req = requestRes.value;
127
-
128
- const doResult = await client._do(req, {
129
- context,
130
- isErrorStatusCode: (statusCode: number) =>
131
- matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
132
- retryConfig: context.retryConfig,
133
- retryCodes: context.retryCodes,
134
- });
135
- if (!doResult.ok) {
136
- return [doResult, { status: "request-error", request: req }];
137
- }
138
- const response = doResult.value;
139
-
140
- const responseFields = {
141
- ContentType: response.headers.get("content-type")
142
- ?? "application/octet-stream",
143
- StatusCode: response.status,
144
- RawResponse: response,
145
- Headers: {},
146
- };
147
-
148
- const [result] = await M.match<
149
- operations.ConnectorsRuntimeExecuteResponse,
150
- | ComposeMarketError
151
- | ResponseValidationError
152
- | ConnectionError
153
- | RequestAbortedError
154
- | RequestTimeoutError
155
- | InvalidRequestError
156
- | UnexpectedClientError
157
- | SDKValidationError
158
- >(
159
- M.json(200, operations.ConnectorsRuntimeExecuteResponse$inboundSchema, {
160
- key: "JsonObjectResponse",
161
- }),
162
- M.fail("4XX"),
163
- M.fail("5XX"),
164
- )(response, req, { extraFields: responseFields });
165
- if (!result.ok) {
166
- return [result, { status: "complete", request: req, response }];
167
- }
168
-
169
- return [result, { status: "complete", request: req, response }];
170
- }
@@ -1,111 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v4-mini";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
- import { Result as SafeParseResult } from "../../types/fp.js";
10
- import * as types from "../../types/primitives.js";
11
- import { SDKValidationError } from "../errors/sdk-validation-error.js";
12
-
13
- export const Source = {
14
- Onchain: "onchain",
15
- Mcp: "mcp",
16
- } as const;
17
- export type Source = ClosedEnum<typeof Source>;
18
-
19
- export type ConnectorsRuntimeExecuteRequest = {
20
- source: Source;
21
- pluginId?: string | undefined;
22
- serverId?: string | undefined;
23
- toolName: string;
24
- args?: { [k: string]: any } | undefined;
25
- };
26
-
27
- export type ConnectorsRuntimeExecuteResponse = {
28
- /**
29
- * HTTP response content type for this operation
30
- */
31
- contentType: string;
32
- /**
33
- * HTTP response status code for this operation
34
- */
35
- statusCode: number;
36
- /**
37
- * Raw HTTP response; suitable for custom response parsing
38
- */
39
- rawResponse: Response;
40
- /**
41
- * JSON object response.
42
- */
43
- jsonObjectResponse?: { [k: string]: any } | undefined;
44
- };
45
-
46
- /** @internal */
47
- export const Source$outboundSchema: z.ZodMiniEnum<typeof Source> = z.enum(
48
- Source,
49
- );
50
-
51
- /** @internal */
52
- export type ConnectorsRuntimeExecuteRequest$Outbound = {
53
- source: string;
54
- pluginId?: string | undefined;
55
- serverId?: string | undefined;
56
- toolName: string;
57
- args?: { [k: string]: any } | undefined;
58
- };
59
-
60
- /** @internal */
61
- export const ConnectorsRuntimeExecuteRequest$outboundSchema: z.ZodMiniType<
62
- ConnectorsRuntimeExecuteRequest$Outbound,
63
- ConnectorsRuntimeExecuteRequest
64
- > = z.object({
65
- source: Source$outboundSchema,
66
- pluginId: z.optional(z.string()),
67
- serverId: z.optional(z.string()),
68
- toolName: z.string(),
69
- args: z.optional(z.record(z.string(), z.any())),
70
- });
71
-
72
- export function connectorsRuntimeExecuteRequestToJSON(
73
- connectorsRuntimeExecuteRequest: ConnectorsRuntimeExecuteRequest,
74
- ): string {
75
- return JSON.stringify(
76
- ConnectorsRuntimeExecuteRequest$outboundSchema.parse(
77
- connectorsRuntimeExecuteRequest,
78
- ),
79
- );
80
- }
81
-
82
- /** @internal */
83
- export const ConnectorsRuntimeExecuteResponse$inboundSchema: z.ZodMiniType<
84
- ConnectorsRuntimeExecuteResponse,
85
- unknown
86
- > = z.pipe(
87
- z.object({
88
- ContentType: types.string(),
89
- StatusCode: types.number(),
90
- RawResponse: z.custom<Response>(x => x instanceof Response),
91
- JsonObjectResponse: types.optional(z.record(z.string(), z.any())),
92
- }),
93
- z.transform((v) => {
94
- return remap$(v, {
95
- "ContentType": "contentType",
96
- "StatusCode": "statusCode",
97
- "RawResponse": "rawResponse",
98
- "JsonObjectResponse": "jsonObjectResponse",
99
- });
100
- }),
101
- );
102
-
103
- export function connectorsRuntimeExecuteResponseFromJSON(
104
- jsonString: string,
105
- ): SafeParseResult<ConnectorsRuntimeExecuteResponse, SDKValidationError> {
106
- return safeParse(
107
- jsonString,
108
- (x) => ConnectorsRuntimeExecuteResponse$inboundSchema.parse(JSON.parse(x)),
109
- `Failed to parse 'ConnectorsRuntimeExecuteResponse' from JSON`,
110
- );
111
- }