@compose-market/sdk 0.7.6 → 0.7.7
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/.speakeasy/a2a.arazzo.yaml +1 -1
- package/.speakeasy/memory.arazzo.yaml +1 -1
- package/.speakeasy/tests.arazzo.yaml +1 -1
- package/dist/http.d.ts +1 -0
- package/dist/http.d.ts.map +1 -1
- package/dist/http.js +3 -0
- package/dist/http.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/resources/inference.d.ts +11 -0
- package/dist/resources/inference.d.ts.map +1 -1
- package/dist/resources/inference.js +46 -0
- package/dist/resources/inference.js.map +1 -1
- package/dist/types/index.d.ts +114 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/generated/inference/esm/lib/config.d.ts +3 -3
- package/generated/inference/esm/lib/config.js +3 -3
- package/generated/inference/package.json +1 -1
- package/generated/inference/src/lib/config.ts +3 -3
- package/generated/manowar/esm/lib/config.d.ts +3 -3
- package/generated/manowar/esm/lib/config.js +3 -3
- package/generated/manowar/esm/models/operations/index.d.ts +0 -1
- package/generated/manowar/esm/models/operations/index.d.ts.map +1 -1
- package/generated/manowar/esm/models/operations/index.js +0 -1
- package/generated/manowar/esm/models/operations/index.js.map +1 -1
- package/generated/manowar/esm/sdk/connectors.d.ts +0 -1
- package/generated/manowar/esm/sdk/connectors.d.ts.map +1 -1
- package/generated/manowar/esm/sdk/connectors.js +0 -4
- package/generated/manowar/esm/sdk/connectors.js.map +1 -1
- package/generated/manowar/package.json +1 -1
- package/generated/manowar/src/lib/config.ts +3 -3
- package/generated/manowar/src/models/operations/index.ts +0 -1
- package/generated/manowar/src/sdk/connectors.ts +0 -11
- package/generated/memory/esm/lib/config.d.ts +3 -3
- package/generated/memory/esm/lib/config.js +3 -3
- package/generated/memory/package.json +1 -1
- package/generated/memory/src/lib/config.ts +3 -3
- package/generated/x402/esm/lib/config.d.ts +3 -3
- package/generated/x402/esm/lib/config.js +3 -3
- package/generated/x402/package.json +1 -1
- package/generated/x402/src/lib/config.ts +3 -3
- package/package.json +4 -4
- package/specs/inference.openapi.yaml +2 -1
- package/specs/manowar.openapi.yaml +1 -35
- package/specs/memory.openapi.yaml +1 -1
- package/specs/x402.openapi.yaml +1 -1
- package/generated/manowar/esm/funcs/connectors-connectors-runtime-execute.d.ts +0 -11
- package/generated/manowar/esm/funcs/connectors-connectors-runtime-execute.d.ts.map +0 -1
- package/generated/manowar/esm/funcs/connectors-connectors-runtime-execute.js +0 -85
- package/generated/manowar/esm/funcs/connectors-connectors-runtime-execute.js.map +0 -1
- package/generated/manowar/esm/models/operations/connectors-runtime-execute.d.ts +0 -57
- package/generated/manowar/esm/models/operations/connectors-runtime-execute.d.ts.map +0 -1
- package/generated/manowar/esm/models/operations/connectors-runtime-execute.js +0 -42
- package/generated/manowar/esm/models/operations/connectors-runtime-execute.js.map +0 -1
- package/generated/manowar/src/funcs/connectors-connectors-runtime-execute.ts +0 -170
- package/generated/manowar/src/models/operations/connectors-runtime-execute.ts +0 -111
|
@@ -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
|
-
}
|