@orq-ai/node 4.1.0-rc.3 → 4.1.0-rc.4

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 (182) hide show
  1. package/bin/mcp-server.js +37458 -38314
  2. package/bin/mcp-server.js.map +59 -54
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +2 -2
  6. package/lib/config.js +2 -2
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/server.js +1 -1
  9. package/models/components/datapart.d.ts +41 -0
  10. package/models/components/datapart.d.ts.map +1 -0
  11. package/models/components/datapart.js +69 -0
  12. package/models/components/datapart.js.map +1 -0
  13. package/models/components/filepart.d.ts +104 -0
  14. package/models/components/filepart.d.ts.map +1 -0
  15. package/models/components/filepart.js +134 -0
  16. package/models/components/filepart.js.map +1 -0
  17. package/models/components/index.d.ts +5 -0
  18. package/models/components/index.d.ts.map +1 -1
  19. package/models/components/index.js +5 -0
  20. package/models/components/index.js.map +1 -1
  21. package/models/components/invokedeploymentrequest.d.ts +8 -8
  22. package/models/components/invokedeploymentrequest.d.ts.map +1 -1
  23. package/models/components/invokedeploymentrequest.js +11 -12
  24. package/models/components/invokedeploymentrequest.js.map +1 -1
  25. package/models/components/textpart.d.ts +31 -0
  26. package/models/components/textpart.d.ts.map +1 -0
  27. package/models/components/textpart.js +67 -0
  28. package/models/components/textpart.js.map +1 -0
  29. package/models/components/toolcallpart.d.ts +45 -0
  30. package/models/components/toolcallpart.d.ts.map +1 -0
  31. package/models/components/toolcallpart.js +84 -0
  32. package/models/components/toolcallpart.js.map +1 -0
  33. package/models/components/toolresultpart.d.ts +39 -0
  34. package/models/components/toolresultpart.d.ts.map +1 -0
  35. package/models/components/toolresultpart.js +80 -0
  36. package/models/components/toolresultpart.js.map +1 -0
  37. package/models/operations/createagentresponserequest.d.ts +66 -42
  38. package/models/operations/createagentresponserequest.d.ts.map +1 -1
  39. package/models/operations/createagentresponserequest.js +90 -44
  40. package/models/operations/createagentresponserequest.js.map +1 -1
  41. package/models/operations/createbudget.js +2 -2
  42. package/models/operations/createcontact.js +2 -2
  43. package/models/operations/createdataset.js +2 -2
  44. package/models/operations/createdatasetitem.js +8 -8
  45. package/models/operations/createdatasource.js +2 -2
  46. package/models/operations/createeval.js +28 -28
  47. package/models/operations/createprompt.d.ts +9 -11
  48. package/models/operations/createprompt.d.ts.map +1 -1
  49. package/models/operations/createprompt.js +9 -11
  50. package/models/operations/createprompt.js.map +1 -1
  51. package/models/operations/createtool.js +12 -12
  52. package/models/operations/deploymentinvoke.d.ts +9 -11
  53. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  54. package/models/operations/deploymentinvoke.js +9 -11
  55. package/models/operations/deploymentinvoke.js.map +1 -1
  56. package/models/operations/deployments.d.ts +9 -11
  57. package/models/operations/deployments.d.ts.map +1 -1
  58. package/models/operations/deployments.js +9 -11
  59. package/models/operations/deployments.js.map +1 -1
  60. package/models/operations/deploymentstream.d.ts +9 -11
  61. package/models/operations/deploymentstream.d.ts.map +1 -1
  62. package/models/operations/deploymentstream.js +9 -11
  63. package/models/operations/deploymentstream.js.map +1 -1
  64. package/models/operations/fileget.js +2 -2
  65. package/models/operations/filelist.js +2 -2
  66. package/models/operations/fileupload.js +2 -2
  67. package/models/operations/getallprompts.d.ts +9 -11
  68. package/models/operations/getallprompts.d.ts.map +1 -1
  69. package/models/operations/getallprompts.js +9 -11
  70. package/models/operations/getallprompts.js.map +1 -1
  71. package/models/operations/getalltools.js +12 -12
  72. package/models/operations/getbudget.js +2 -2
  73. package/models/operations/getevals.js +28 -28
  74. package/models/operations/getoneprompt.d.ts +9 -11
  75. package/models/operations/getoneprompt.d.ts.map +1 -1
  76. package/models/operations/getoneprompt.js +9 -11
  77. package/models/operations/getoneprompt.js.map +1 -1
  78. package/models/operations/getpromptversion.d.ts +9 -11
  79. package/models/operations/getpromptversion.d.ts.map +1 -1
  80. package/models/operations/getpromptversion.js +9 -11
  81. package/models/operations/getpromptversion.js.map +1 -1
  82. package/models/operations/invokeagent.d.ts +63 -283
  83. package/models/operations/invokeagent.d.ts.map +1 -1
  84. package/models/operations/invokeagent.js +73 -293
  85. package/models/operations/invokeagent.js.map +1 -1
  86. package/models/operations/listbudgets.js +2 -2
  87. package/models/operations/listcontacts.js +2 -2
  88. package/models/operations/listdatasetdatapoints.js +8 -8
  89. package/models/operations/listdatasets.js +2 -2
  90. package/models/operations/listdatasources.js +2 -2
  91. package/models/operations/listpromptversions.d.ts +9 -11
  92. package/models/operations/listpromptversions.d.ts.map +1 -1
  93. package/models/operations/listpromptversions.js +9 -11
  94. package/models/operations/listpromptversions.js.map +1 -1
  95. package/models/operations/retrievecontact.js +2 -2
  96. package/models/operations/retrievedatapoint.js +8 -8
  97. package/models/operations/retrievedataset.js +2 -2
  98. package/models/operations/retrievedatasource.js +2 -2
  99. package/models/operations/retrievetool.js +12 -12
  100. package/models/operations/runagent.d.ts +59 -279
  101. package/models/operations/runagent.d.ts.map +1 -1
  102. package/models/operations/runagent.js +72 -292
  103. package/models/operations/runagent.js.map +1 -1
  104. package/models/operations/streamagent.d.ts +212 -1003
  105. package/models/operations/streamagent.d.ts.map +1 -1
  106. package/models/operations/streamagent.js +227 -1017
  107. package/models/operations/streamagent.js.map +1 -1
  108. package/models/operations/streamrunagent.d.ts +215 -1006
  109. package/models/operations/streamrunagent.d.ts.map +1 -1
  110. package/models/operations/streamrunagent.js +236 -1026
  111. package/models/operations/streamrunagent.js.map +1 -1
  112. package/models/operations/updatebudget.js +2 -2
  113. package/models/operations/updatecontact.js +2 -2
  114. package/models/operations/updatedatapoint.js +8 -8
  115. package/models/operations/updatedataset.js +2 -2
  116. package/models/operations/updatedatasource.js +2 -2
  117. package/models/operations/updateeval.js +28 -28
  118. package/models/operations/updatememorystore.d.ts +9 -20
  119. package/models/operations/updatememorystore.d.ts.map +1 -1
  120. package/models/operations/updatememorystore.js +9 -14
  121. package/models/operations/updatememorystore.js.map +1 -1
  122. package/models/operations/updateprompt.d.ts +18 -22
  123. package/models/operations/updateprompt.d.ts.map +1 -1
  124. package/models/operations/updateprompt.js +18 -22
  125. package/models/operations/updateprompt.js.map +1 -1
  126. package/models/operations/updatetool.js +14 -14
  127. package/package.json +1 -1
  128. package/src/lib/config.ts +2 -2
  129. package/src/mcp-server/mcp-server.ts +1 -1
  130. package/src/mcp-server/server.ts +1 -1
  131. package/src/models/components/datapart.ts +71 -0
  132. package/src/models/components/filepart.ts +231 -0
  133. package/src/models/components/index.ts +5 -0
  134. package/src/models/components/invokedeploymentrequest.ts +34 -25
  135. package/src/models/components/textpart.ts +68 -0
  136. package/src/models/components/toolcallpart.ts +92 -0
  137. package/src/models/components/toolresultpart.ts +86 -0
  138. package/src/models/operations/createagentresponserequest.ts +188 -95
  139. package/src/models/operations/createbudget.ts +2 -2
  140. package/src/models/operations/createcontact.ts +2 -2
  141. package/src/models/operations/createdataset.ts +2 -2
  142. package/src/models/operations/createdatasetitem.ts +8 -8
  143. package/src/models/operations/createdatasource.ts +2 -2
  144. package/src/models/operations/createeval.ts +28 -28
  145. package/src/models/operations/createprompt.ts +9 -11
  146. package/src/models/operations/createtool.ts +12 -12
  147. package/src/models/operations/deploymentinvoke.ts +9 -11
  148. package/src/models/operations/deployments.ts +9 -11
  149. package/src/models/operations/deploymentstream.ts +9 -11
  150. package/src/models/operations/fileget.ts +2 -2
  151. package/src/models/operations/filelist.ts +2 -2
  152. package/src/models/operations/fileupload.ts +2 -2
  153. package/src/models/operations/getallprompts.ts +9 -11
  154. package/src/models/operations/getalltools.ts +12 -12
  155. package/src/models/operations/getbudget.ts +2 -2
  156. package/src/models/operations/getevals.ts +28 -28
  157. package/src/models/operations/getoneprompt.ts +9 -11
  158. package/src/models/operations/getpromptversion.ts +9 -11
  159. package/src/models/operations/invokeagent.ts +158 -682
  160. package/src/models/operations/listbudgets.ts +2 -2
  161. package/src/models/operations/listcontacts.ts +2 -2
  162. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  163. package/src/models/operations/listdatasets.ts +2 -2
  164. package/src/models/operations/listdatasources.ts +2 -2
  165. package/src/models/operations/listpromptversions.ts +9 -11
  166. package/src/models/operations/retrievecontact.ts +2 -2
  167. package/src/models/operations/retrievedatapoint.ts +8 -8
  168. package/src/models/operations/retrievedataset.ts +2 -2
  169. package/src/models/operations/retrievedatasource.ts +2 -2
  170. package/src/models/operations/retrievetool.ts +12 -12
  171. package/src/models/operations/runagent.ts +143 -697
  172. package/src/models/operations/streamagent.ts +2222 -4559
  173. package/src/models/operations/streamrunagent.ts +2189 -4615
  174. package/src/models/operations/updatebudget.ts +2 -2
  175. package/src/models/operations/updatecontact.ts +2 -2
  176. package/src/models/operations/updatedatapoint.ts +8 -8
  177. package/src/models/operations/updatedataset.ts +2 -2
  178. package/src/models/operations/updatedatasource.ts +2 -2
  179. package/src/models/operations/updateeval.ts +28 -28
  180. package/src/models/operations/updatememorystore.ts +9 -20
  181. package/src/models/operations/updateprompt.ts +18 -22
  182. package/src/models/operations/updatetool.ts +14 -14
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "..": {
20
20
  "name": "@orq-ai/node",
21
- "version": "4.1.0-rc.3",
21
+ "version": "4.1.0-rc.4",
22
22
  "dependencies": {
23
23
  "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0",
24
24
  "zod": "^3.25.0 || ^4.0.0"
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@orq-ai/node",
5
- "version": "4.1.0-rc.3",
5
+ "version": "4.1.0-rc.4",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/lib/config.d.ts CHANGED
@@ -39,8 +39,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
39
39
  export declare const SDK_METADATA: {
40
40
  readonly language: "typescript";
41
41
  readonly openapiDocVersion: "2.0";
42
- readonly sdkVersion: "4.1.0-rc.3";
42
+ readonly sdkVersion: "4.1.0-rc.4";
43
43
  readonly genVersion: "2.760.2";
44
- readonly userAgent: "speakeasy-sdk/typescript 4.1.0-rc.3 2.760.2 2.0 @orq-ai/node";
44
+ readonly userAgent: "speakeasy-sdk/typescript 4.1.0-rc.4 2.760.2 2.0 @orq-ai/node";
45
45
  };
46
46
  //# sourceMappingURL=config.d.ts.map
package/lib/config.js CHANGED
@@ -28,8 +28,8 @@ function serverURLFromOptions(options) {
28
28
  exports.SDK_METADATA = {
29
29
  language: "typescript",
30
30
  openapiDocVersion: "2.0",
31
- sdkVersion: "4.1.0-rc.3",
31
+ sdkVersion: "4.1.0-rc.4",
32
32
  genVersion: "2.760.2",
33
- userAgent: "speakeasy-sdk/typescript 4.1.0-rc.3 2.760.2 2.0 @orq-ai/node",
33
+ userAgent: "speakeasy-sdk/typescript 4.1.0-rc.4 2.760.2 2.0 @orq-ai/node",
34
34
  };
35
35
  //# sourceMappingURL=config.js.map
@@ -22,7 +22,7 @@ const routes = (0, core_1.buildRouteMap)({
22
22
  exports.app = (0, core_1.buildApplication)(routes, {
23
23
  name: "mcp",
24
24
  versionInfo: {
25
- currentVersion: "4.1.0-rc.3",
25
+ currentVersion: "4.1.0-rc.4",
26
26
  },
27
27
  });
28
28
  (0, core_1.run)(exports.app, node_process_1.default.argv.slice(2), (0, cli_js_1.buildContext)(node_process_1.default));
@@ -106,7 +106,7 @@ const toolsUpdate_js_1 = require("./tools/toolsUpdate.js");
106
106
  function createMCPServer(deps) {
107
107
  const server = new mcp_js_1.McpServer({
108
108
  name: "Orq",
109
- version: "4.1.0-rc.3",
109
+ version: "4.1.0-rc.4",
110
110
  });
111
111
  const client = new core_js_1.OrqCore({
112
112
  apiKey: deps.apiKey,
@@ -0,0 +1,41 @@
1
+ import * as z from "zod/v3";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ export declare const DataPartKind: {
6
+ readonly Data: "data";
7
+ };
8
+ export type DataPartKind = ClosedEnum<typeof DataPartKind>;
9
+ /**
10
+ * A structured data part containing JSON-serializable key-value pairs. Used for passing structured information between agents and tools.
11
+ */
12
+ export type DataPart = {
13
+ kind: DataPartKind;
14
+ data: {
15
+ [k: string]: any;
16
+ };
17
+ metadata?: {
18
+ [k: string]: any;
19
+ } | undefined;
20
+ };
21
+ /** @internal */
22
+ export declare const DataPartKind$inboundSchema: z.ZodNativeEnum<typeof DataPartKind>;
23
+ /** @internal */
24
+ export declare const DataPartKind$outboundSchema: z.ZodNativeEnum<typeof DataPartKind>;
25
+ /** @internal */
26
+ export declare const DataPart$inboundSchema: z.ZodType<DataPart, z.ZodTypeDef, unknown>;
27
+ /** @internal */
28
+ export type DataPart$Outbound = {
29
+ kind: string;
30
+ data: {
31
+ [k: string]: any;
32
+ };
33
+ metadata?: {
34
+ [k: string]: any;
35
+ } | undefined;
36
+ };
37
+ /** @internal */
38
+ export declare const DataPart$outboundSchema: z.ZodType<DataPart$Outbound, z.ZodTypeDef, DataPart>;
39
+ export declare function dataPartToJSON(dataPart: DataPart): string;
40
+ export declare function dataPartFromJSON(jsonString: string): SafeParseResult<DataPart, SDKValidationError>;
41
+ //# sourceMappingURL=datapart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"datapart.d.ts","sourceRoot":"","sources":["../../src/models/components/datapart.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,YAAY;;CAEf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3D;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,YAAY,CAChD,CAAC;AAC7B,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,YAAY,CACjD,CAAC;AAE7B,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,OAAO,CAC5C,QAAQ,EACR,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,OAAO,CAC7C,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,QAAQ,CAKR,CAAC;AAEH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAEzD;AACD,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAM/C"}
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.DataPart$outboundSchema = exports.DataPart$inboundSchema = exports.DataPartKind$outboundSchema = exports.DataPartKind$inboundSchema = exports.DataPartKind = void 0;
40
+ exports.dataPartToJSON = dataPartToJSON;
41
+ exports.dataPartFromJSON = dataPartFromJSON;
42
+ const z = __importStar(require("zod/v3"));
43
+ const schemas_js_1 = require("../../lib/schemas.js");
44
+ exports.DataPartKind = {
45
+ Data: "data",
46
+ };
47
+ /** @internal */
48
+ exports.DataPartKind$inboundSchema = z.nativeEnum(exports.DataPartKind);
49
+ /** @internal */
50
+ exports.DataPartKind$outboundSchema = exports.DataPartKind$inboundSchema;
51
+ /** @internal */
52
+ exports.DataPart$inboundSchema = z.object({
53
+ kind: exports.DataPartKind$inboundSchema,
54
+ data: z.record(z.any()),
55
+ metadata: z.record(z.any()).optional(),
56
+ });
57
+ /** @internal */
58
+ exports.DataPart$outboundSchema = z.object({
59
+ kind: exports.DataPartKind$outboundSchema,
60
+ data: z.record(z.any()),
61
+ metadata: z.record(z.any()).optional(),
62
+ });
63
+ function dataPartToJSON(dataPart) {
64
+ return JSON.stringify(exports.DataPart$outboundSchema.parse(dataPart));
65
+ }
66
+ function dataPartFromJSON(jsonString) {
67
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataPart' from JSON`);
68
+ }
69
+ //# sourceMappingURL=datapart.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"datapart.js","sourceRoot":"","sources":["../../src/models/components/datapart.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyDH,wCAEC;AACD,4CAQC;AAlED,0CAA4B;AAC5B,qDAAiD;AAKpC,QAAA,YAAY,GAAG;IAC1B,IAAI,EAAE,MAAM;CACJ,CAAC;AAYX,gBAAgB;AACH,QAAA,0BAA0B,GACrC,CAAC,CAAC,UAAU,CAAC,oBAAY,CAAC,CAAC;AAC7B,gBAAgB;AACH,QAAA,2BAA2B,GACtC,kCAA0B,CAAC;AAE7B,gBAAgB;AACH,QAAA,sBAAsB,GAI/B,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,kCAA0B;IAChC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;IACvB,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,uBAAuB,GAIhC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,mCAA2B;IACjC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;IACvB,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC;AAEH,SAAgB,cAAc,CAAC,QAAkB;IAC/C,OAAO,IAAI,CAAC,SAAS,CAAC,+BAAuB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;AACjE,CAAC;AACD,SAAgB,gBAAgB,CAC9B,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8BAAsB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClD,sCAAsC,CACvC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,104 @@
1
+ import * as z from "zod/v3";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ export declare const FilePartKind: {
6
+ readonly File: "file";
7
+ };
8
+ export type FilePartKind = ClosedEnum<typeof FilePartKind>;
9
+ /**
10
+ * File in URI format. Check in the model's documentation for the supported mime types for the URI format
11
+ */
12
+ export type FileInURIFormat = {
13
+ /**
14
+ * URL for the File content
15
+ */
16
+ uri: string;
17
+ /**
18
+ * Optional mimeType for the file
19
+ */
20
+ mimeType?: string | undefined;
21
+ /**
22
+ * Optional name for the file
23
+ */
24
+ name?: string | undefined;
25
+ };
26
+ /**
27
+ * Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
28
+ */
29
+ export type BinaryFormat = {
30
+ /**
31
+ * base64 encoded content of the file
32
+ */
33
+ bytes: string;
34
+ /**
35
+ * Optional mimeType for the file
36
+ */
37
+ mimeType?: string | undefined;
38
+ /**
39
+ * Optional name for the file
40
+ */
41
+ name?: string | undefined;
42
+ };
43
+ export type FileT = BinaryFormat | FileInURIFormat;
44
+ /**
45
+ * A file content part that can contain either base64-encoded bytes or a URI reference. Used for images, documents, and other binary content in agent communications.
46
+ */
47
+ export type FilePart = {
48
+ kind: FilePartKind;
49
+ file: BinaryFormat | FileInURIFormat;
50
+ metadata?: {
51
+ [k: string]: any;
52
+ } | undefined;
53
+ };
54
+ /** @internal */
55
+ export declare const FilePartKind$inboundSchema: z.ZodNativeEnum<typeof FilePartKind>;
56
+ /** @internal */
57
+ export declare const FilePartKind$outboundSchema: z.ZodNativeEnum<typeof FilePartKind>;
58
+ /** @internal */
59
+ export declare const FileInURIFormat$inboundSchema: z.ZodType<FileInURIFormat, z.ZodTypeDef, unknown>;
60
+ /** @internal */
61
+ export type FileInURIFormat$Outbound = {
62
+ uri: string;
63
+ mimeType?: string | undefined;
64
+ name?: string | undefined;
65
+ };
66
+ /** @internal */
67
+ export declare const FileInURIFormat$outboundSchema: z.ZodType<FileInURIFormat$Outbound, z.ZodTypeDef, FileInURIFormat>;
68
+ export declare function fileInURIFormatToJSON(fileInURIFormat: FileInURIFormat): string;
69
+ export declare function fileInURIFormatFromJSON(jsonString: string): SafeParseResult<FileInURIFormat, SDKValidationError>;
70
+ /** @internal */
71
+ export declare const BinaryFormat$inboundSchema: z.ZodType<BinaryFormat, z.ZodTypeDef, unknown>;
72
+ /** @internal */
73
+ export type BinaryFormat$Outbound = {
74
+ bytes: string;
75
+ mimeType?: string | undefined;
76
+ name?: string | undefined;
77
+ };
78
+ /** @internal */
79
+ export declare const BinaryFormat$outboundSchema: z.ZodType<BinaryFormat$Outbound, z.ZodTypeDef, BinaryFormat>;
80
+ export declare function binaryFormatToJSON(binaryFormat: BinaryFormat): string;
81
+ export declare function binaryFormatFromJSON(jsonString: string): SafeParseResult<BinaryFormat, SDKValidationError>;
82
+ /** @internal */
83
+ export declare const FileT$inboundSchema: z.ZodType<FileT, z.ZodTypeDef, unknown>;
84
+ /** @internal */
85
+ export type FileT$Outbound = BinaryFormat$Outbound | FileInURIFormat$Outbound;
86
+ /** @internal */
87
+ export declare const FileT$outboundSchema: z.ZodType<FileT$Outbound, z.ZodTypeDef, FileT>;
88
+ export declare function fileToJSON(fileT: FileT): string;
89
+ export declare function fileFromJSON(jsonString: string): SafeParseResult<FileT, SDKValidationError>;
90
+ /** @internal */
91
+ export declare const FilePart$inboundSchema: z.ZodType<FilePart, z.ZodTypeDef, unknown>;
92
+ /** @internal */
93
+ export type FilePart$Outbound = {
94
+ kind: string;
95
+ file: BinaryFormat$Outbound | FileInURIFormat$Outbound;
96
+ metadata?: {
97
+ [k: string]: any;
98
+ } | undefined;
99
+ };
100
+ /** @internal */
101
+ export declare const FilePart$outboundSchema: z.ZodType<FilePart$Outbound, z.ZodTypeDef, FilePart>;
102
+ export declare function filePartToJSON(filePart: FilePart): string;
103
+ export declare function filePartFromJSON(jsonString: string): SafeParseResult<FilePart, SDKValidationError>;
104
+ //# sourceMappingURL=filepart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filepart.d.ts","sourceRoot":"","sources":["../../src/models/components/filepart.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,YAAY;;CAEf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3D;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AAEF;;GAEG;AAC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,EACZ,OAAO,CAQP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,qBAAqB,GAAG,wBAAwB,CAAC;IACvD,QAAQ,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,OAAO,CAC7C,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,QAAQ,CAQR,CAAC;AAEH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAEzD;AACD,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAM/C"}
@@ -0,0 +1,134 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.FilePart$outboundSchema = exports.FilePart$inboundSchema = exports.FileT$outboundSchema = exports.FileT$inboundSchema = exports.BinaryFormat$outboundSchema = exports.BinaryFormat$inboundSchema = exports.FileInURIFormat$outboundSchema = exports.FileInURIFormat$inboundSchema = exports.FilePartKind$outboundSchema = exports.FilePartKind$inboundSchema = exports.FilePartKind = void 0;
40
+ exports.fileInURIFormatToJSON = fileInURIFormatToJSON;
41
+ exports.fileInURIFormatFromJSON = fileInURIFormatFromJSON;
42
+ exports.binaryFormatToJSON = binaryFormatToJSON;
43
+ exports.binaryFormatFromJSON = binaryFormatFromJSON;
44
+ exports.fileToJSON = fileToJSON;
45
+ exports.fileFromJSON = fileFromJSON;
46
+ exports.filePartToJSON = filePartToJSON;
47
+ exports.filePartFromJSON = filePartFromJSON;
48
+ const z = __importStar(require("zod/v3"));
49
+ const schemas_js_1 = require("../../lib/schemas.js");
50
+ exports.FilePartKind = {
51
+ File: "file",
52
+ };
53
+ /** @internal */
54
+ exports.FilePartKind$inboundSchema = z.nativeEnum(exports.FilePartKind);
55
+ /** @internal */
56
+ exports.FilePartKind$outboundSchema = exports.FilePartKind$inboundSchema;
57
+ /** @internal */
58
+ exports.FileInURIFormat$inboundSchema = z.object({
59
+ uri: z.string(),
60
+ mimeType: z.string().optional(),
61
+ name: z.string().optional(),
62
+ });
63
+ /** @internal */
64
+ exports.FileInURIFormat$outboundSchema = z.object({
65
+ uri: z.string(),
66
+ mimeType: z.string().optional(),
67
+ name: z.string().optional(),
68
+ });
69
+ function fileInURIFormatToJSON(fileInURIFormat) {
70
+ return JSON.stringify(exports.FileInURIFormat$outboundSchema.parse(fileInURIFormat));
71
+ }
72
+ function fileInURIFormatFromJSON(jsonString) {
73
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FileInURIFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FileInURIFormat' from JSON`);
74
+ }
75
+ /** @internal */
76
+ exports.BinaryFormat$inboundSchema = z.object({
77
+ bytes: z.string(),
78
+ mimeType: z.string().optional(),
79
+ name: z.string().optional(),
80
+ });
81
+ /** @internal */
82
+ exports.BinaryFormat$outboundSchema = z.object({
83
+ bytes: z.string(),
84
+ mimeType: z.string().optional(),
85
+ name: z.string().optional(),
86
+ });
87
+ function binaryFormatToJSON(binaryFormat) {
88
+ return JSON.stringify(exports.BinaryFormat$outboundSchema.parse(binaryFormat));
89
+ }
90
+ function binaryFormatFromJSON(jsonString) {
91
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.BinaryFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BinaryFormat' from JSON`);
92
+ }
93
+ /** @internal */
94
+ exports.FileT$inboundSchema = z
95
+ .union([
96
+ z.lazy(() => exports.BinaryFormat$inboundSchema),
97
+ z.lazy(() => exports.FileInURIFormat$inboundSchema),
98
+ ]);
99
+ /** @internal */
100
+ exports.FileT$outboundSchema = z.union([
101
+ z.lazy(() => exports.BinaryFormat$outboundSchema),
102
+ z.lazy(() => exports.FileInURIFormat$outboundSchema),
103
+ ]);
104
+ function fileToJSON(fileT) {
105
+ return JSON.stringify(exports.FileT$outboundSchema.parse(fileT));
106
+ }
107
+ function fileFromJSON(jsonString) {
108
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FileT$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FileT' from JSON`);
109
+ }
110
+ /** @internal */
111
+ exports.FilePart$inboundSchema = z.object({
112
+ kind: exports.FilePartKind$inboundSchema,
113
+ file: z.union([
114
+ z.lazy(() => exports.BinaryFormat$inboundSchema),
115
+ z.lazy(() => exports.FileInURIFormat$inboundSchema),
116
+ ]),
117
+ metadata: z.record(z.any()).optional(),
118
+ });
119
+ /** @internal */
120
+ exports.FilePart$outboundSchema = z.object({
121
+ kind: exports.FilePartKind$outboundSchema,
122
+ file: z.union([
123
+ z.lazy(() => exports.BinaryFormat$outboundSchema),
124
+ z.lazy(() => exports.FileInURIFormat$outboundSchema),
125
+ ]),
126
+ metadata: z.record(z.any()).optional(),
127
+ });
128
+ function filePartToJSON(filePart) {
129
+ return JSON.stringify(exports.FilePart$outboundSchema.parse(filePart));
130
+ }
131
+ function filePartFromJSON(jsonString) {
132
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FilePart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FilePart' from JSON`);
133
+ }
134
+ //# sourceMappingURL=filepart.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filepart.js","sourceRoot":"","sources":["../../src/models/components/filepart.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+FH,sDAIC;AACD,0DAQC;AA8BD,gDAEC;AACD,oDAQC;AAqBD,gCAEC;AACD,oCAQC;AAoCD,wCAEC;AACD,4CAQC;AAlOD,0CAA4B;AAC5B,qDAAiD;AAKpC,QAAA,YAAY,GAAG;IAC1B,IAAI,EAAE,MAAM;CACJ,CAAC;AAkDX,gBAAgB;AACH,QAAA,0BAA0B,GACrC,CAAC,CAAC,UAAU,CAAC,oBAAY,CAAC,CAAC;AAC7B,gBAAgB;AACH,QAAA,2BAA2B,GACtC,kCAA0B,CAAC;AAE7B,gBAAgB;AACH,QAAA,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,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,EAAE,CAAC,qCAA6B,CAAC;KAC5C,CAAC;IACF,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,uBAAuB,GAIhC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,mCAA2B;IACjC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC;QACZ,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;QACzC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,sCAA8B,CAAC;KAC7C,CAAC;IACF,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC;AAEH,SAAgB,cAAc,CAAC,QAAkB;IAC/C,OAAO,IAAI,CAAC,SAAS,CAAC,+BAAuB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;AACjE,CAAC;AACD,SAAgB,gBAAgB,CAC9B,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8BAAsB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClD,sCAAsC,CACvC,CAAC;AACJ,CAAC"}
@@ -1,3 +1,8 @@
1
+ export * from "./datapart.js";
2
+ export * from "./filepart.js";
1
3
  export * from "./invokedeploymentrequest.js";
2
4
  export * from "./security.js";
5
+ export * from "./textpart.js";
6
+ export * from "./toolcallpart.js";
7
+ export * from "./toolresultpart.js";
3
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
@@ -17,6 +17,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
17
17
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
18
18
  };
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
+ __exportStar(require("./datapart.js"), exports);
21
+ __exportStar(require("./filepart.js"), exports);
20
22
  __exportStar(require("./invokedeploymentrequest.js"), exports);
21
23
  __exportStar(require("./security.js"), exports);
24
+ __exportStar(require("./textpart.js"), exports);
25
+ __exportStar(require("./toolcallpart.js"), exports);
26
+ __exportStar(require("./toolresultpart.js"), exports);
22
27
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,+DAA6C;AAC7C,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,gDAA8B;AAC9B,gDAA8B;AAC9B,+DAA6C;AAC7C,gDAA8B;AAC9B,gDAA8B;AAC9B,oDAAkC;AAClC,sDAAoC"}
@@ -220,7 +220,7 @@ export type InvokeDeploymentRequest2PrefixMessagesType = ClosedEnum<typeof Invok
220
220
  /**
221
221
  * File data for the content part. Must contain either file_data or uri, but not both.
222
222
  */
223
- export type FileT = {
223
+ export type InvokeDeploymentRequest2File = {
224
224
  /**
225
225
  * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
226
226
  */
@@ -246,7 +246,7 @@ export type Four = {
246
246
  /**
247
247
  * File data for the content part. Must contain either file_data or uri, but not both.
248
248
  */
249
- file: FileT;
249
+ file: InvokeDeploymentRequest2File;
250
250
  };
251
251
  export declare const InvokeDeploymentRequest2Type: {
252
252
  readonly InputAudio: "input_audio";
@@ -1275,24 +1275,24 @@ export declare const InvokeDeploymentRequest2PrefixMessagesType$inboundSchema: z
1275
1275
  /** @internal */
1276
1276
  export declare const InvokeDeploymentRequest2PrefixMessagesType$outboundSchema: z.ZodNativeEnum<typeof InvokeDeploymentRequest2PrefixMessagesType>;
1277
1277
  /** @internal */
1278
- export declare const FileT$inboundSchema: z.ZodType<FileT, z.ZodTypeDef, unknown>;
1278
+ export declare const InvokeDeploymentRequest2File$inboundSchema: z.ZodType<InvokeDeploymentRequest2File, z.ZodTypeDef, unknown>;
1279
1279
  /** @internal */
1280
- export type FileT$Outbound = {
1280
+ export type InvokeDeploymentRequest2File$Outbound = {
1281
1281
  file_data?: string | undefined;
1282
1282
  uri?: string | undefined;
1283
1283
  mimeType?: string | undefined;
1284
1284
  filename?: string | undefined;
1285
1285
  };
1286
1286
  /** @internal */
1287
- export declare const FileT$outboundSchema: z.ZodType<FileT$Outbound, z.ZodTypeDef, FileT>;
1288
- export declare function fileToJSON(fileT: FileT): string;
1289
- export declare function fileFromJSON(jsonString: string): SafeParseResult<FileT, SDKValidationError>;
1287
+ export declare const InvokeDeploymentRequest2File$outboundSchema: z.ZodType<InvokeDeploymentRequest2File$Outbound, z.ZodTypeDef, InvokeDeploymentRequest2File>;
1288
+ export declare function invokeDeploymentRequest2FileToJSON(invokeDeploymentRequest2File: InvokeDeploymentRequest2File): string;
1289
+ export declare function invokeDeploymentRequest2FileFromJSON(jsonString: string): SafeParseResult<InvokeDeploymentRequest2File, SDKValidationError>;
1290
1290
  /** @internal */
1291
1291
  export declare const Four$inboundSchema: z.ZodType<Four, z.ZodTypeDef, unknown>;
1292
1292
  /** @internal */
1293
1293
  export type Four$Outbound = {
1294
1294
  type: string;
1295
- file: FileT$Outbound;
1295
+ file: InvokeDeploymentRequest2File$Outbound;
1296
1296
  };
1297
1297
  /** @internal */
1298
1298
  export declare const Four$outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four>;