@orq-ai/node 4.1.12 → 4.1.14

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 (157) hide show
  1. package/bin/mcp-server.js +220 -220
  2. package/bin/mcp-server.js.map +39 -39
  3. package/examples/package-lock.json +2 -2
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +3 -3
  6. package/lib/config.js +3 -3
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/server.js +1 -1
  9. package/models/components/conversationresponse.js +2 -2
  10. package/models/components/partdoneevent.js +2 -2
  11. package/models/components/reasoningpart.js +2 -2
  12. package/models/operations/createcontact.js +2 -2
  13. package/models/operations/createconversation.js +2 -2
  14. package/models/operations/createdataset.js +2 -2
  15. package/models/operations/createdatasetitem.js +8 -8
  16. package/models/operations/createdatasource.js +2 -2
  17. package/models/operations/createeval.js +28 -28
  18. package/models/operations/createtool.js +12 -12
  19. package/models/operations/fileget.js +2 -2
  20. package/models/operations/filelist.js +2 -2
  21. package/models/operations/fileupload.js +2 -2
  22. package/models/operations/generateconversationname.js +2 -2
  23. package/models/operations/getalltools.js +12 -12
  24. package/models/operations/getevals.js +28 -28
  25. package/models/operations/listcontacts.js +2 -2
  26. package/models/operations/listdatasetdatapoints.js +8 -8
  27. package/models/operations/listdatasets.js +2 -2
  28. package/models/operations/listdatasources.js +2 -2
  29. package/models/operations/retrievecontact.js +2 -2
  30. package/models/operations/retrieveconversation.js +2 -2
  31. package/models/operations/retrievedatapoint.js +8 -8
  32. package/models/operations/retrievedataset.js +2 -2
  33. package/models/operations/retrievedatasource.js +2 -2
  34. package/models/operations/retrievetool.js +12 -12
  35. package/models/operations/runagent.js +2 -2
  36. package/models/operations/streamrunagent.js +2 -2
  37. package/models/operations/updatecontact.js +2 -2
  38. package/models/operations/updateconversation.js +2 -2
  39. package/models/operations/updatedatapoint.js +8 -8
  40. package/models/operations/updatedataset.js +2 -2
  41. package/models/operations/updatedatasource.js +2 -2
  42. package/models/operations/updateeval.js +28 -28
  43. package/models/operations/updatetool.js +14 -14
  44. package/package.json +2 -2
  45. package/packages/orq-rc/examples/feedbackCreate.example.ts +32 -0
  46. package/packages/orq-rc/examples/package-lock.json +2 -2
  47. package/packages/orq-rc/jsr.json +1 -1
  48. package/packages/orq-rc/package-lock.json +6 -6
  49. package/packages/orq-rc/package.json +2 -2
  50. package/packages/orq-rc/src/funcs/contactsCreate.ts +2 -0
  51. package/packages/orq-rc/src/funcs/contactsDelete.ts +2 -0
  52. package/packages/orq-rc/src/funcs/contactsList.ts +2 -0
  53. package/packages/orq-rc/src/funcs/contactsRetrieve.ts +2 -0
  54. package/packages/orq-rc/src/funcs/contactsUpdate.ts +2 -0
  55. package/packages/orq-rc/src/funcs/identitiesCreate.ts +165 -0
  56. package/packages/orq-rc/src/funcs/identitiesDelete.ts +176 -0
  57. package/packages/orq-rc/src/funcs/identitiesList.ts +170 -0
  58. package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +175 -0
  59. package/packages/orq-rc/src/funcs/identitiesUpdate.ts +176 -0
  60. package/packages/orq-rc/src/lib/config.ts +3 -3
  61. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  62. package/packages/orq-rc/src/mcp-server/server.ts +11 -1
  63. package/packages/orq-rc/src/mcp-server/tools/identitiesCreate.ts +37 -0
  64. package/packages/orq-rc/src/mcp-server/tools/identitiesDelete.ts +35 -0
  65. package/packages/orq-rc/src/mcp-server/tools/identitiesList.ts +37 -0
  66. package/packages/orq-rc/src/mcp-server/tools/identitiesRetrieve.ts +37 -0
  67. package/packages/orq-rc/src/mcp-server/tools/identitiesUpdate.ts +37 -0
  68. package/packages/orq-rc/src/models/components/conversationresponse.ts +2 -2
  69. package/packages/orq-rc/src/models/components/conversationwithmessagesresponse.ts +2 -2
  70. package/packages/orq-rc/src/models/components/partdoneevent.ts +2 -2
  71. package/packages/orq-rc/src/models/components/reasoningpart.ts +2 -2
  72. package/packages/orq-rc/src/models/errors/deleteidentity.ts +78 -0
  73. package/packages/orq-rc/src/models/errors/index.ts +3 -0
  74. package/packages/orq-rc/src/models/errors/retrieveidentity.ts +78 -0
  75. package/packages/orq-rc/src/models/errors/updateidentity.ts +70 -0
  76. package/packages/orq-rc/src/models/operations/createagentrequest.ts +132 -15
  77. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  78. package/packages/orq-rc/src/models/operations/createconversation.ts +2 -2
  79. package/packages/orq-rc/src/models/operations/createconversationresponse.ts +4 -4
  80. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  81. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -8
  82. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  83. package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
  84. package/packages/orq-rc/src/models/operations/createidentity.ts +237 -0
  85. package/packages/orq-rc/src/models/operations/createtool.ts +33 -29
  86. package/packages/orq-rc/src/models/operations/deleteidentity.ts +54 -0
  87. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  88. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  89. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  90. package/packages/orq-rc/src/models/operations/generateconversationname.ts +2 -2
  91. package/packages/orq-rc/src/models/operations/getalltools.ts +12 -12
  92. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  93. package/packages/orq-rc/src/models/operations/index.ts +5 -0
  94. package/packages/orq-rc/src/models/operations/listcontacts.ts +24 -20
  95. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -8
  96. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  97. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  98. package/packages/orq-rc/src/models/operations/listidentities.ts +432 -0
  99. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  100. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
  101. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  102. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  103. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +180 -0
  104. package/packages/orq-rc/src/models/operations/retrievetool.ts +12 -12
  105. package/packages/orq-rc/src/models/operations/runagent.ts +280 -36
  106. package/packages/orq-rc/src/models/operations/streamrunagent.ts +323 -46
  107. package/packages/orq-rc/src/models/operations/updateagent.ts +138 -15
  108. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  109. package/packages/orq-rc/src/models/operations/updateconversation.ts +2 -2
  110. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -8
  111. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  112. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  113. package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
  114. package/packages/orq-rc/src/models/operations/updateidentity.ts +281 -0
  115. package/packages/orq-rc/src/models/operations/updatetool.ts +14 -14
  116. package/packages/orq-rc/src/sdk/contacts.ts +10 -0
  117. package/packages/orq-rc/src/sdk/identities.ts +99 -0
  118. package/packages/orq-rc/src/sdk/sdk.ts +6 -0
  119. package/src/lib/config.ts +3 -3
  120. package/src/mcp-server/mcp-server.ts +1 -1
  121. package/src/mcp-server/server.ts +1 -1
  122. package/src/models/components/conversationresponse.ts +2 -2
  123. package/src/models/components/partdoneevent.ts +2 -2
  124. package/src/models/components/reasoningpart.ts +2 -2
  125. package/src/models/operations/createcontact.ts +2 -2
  126. package/src/models/operations/createconversation.ts +2 -2
  127. package/src/models/operations/createdataset.ts +2 -2
  128. package/src/models/operations/createdatasetitem.ts +8 -8
  129. package/src/models/operations/createdatasource.ts +2 -2
  130. package/src/models/operations/createeval.ts +28 -28
  131. package/src/models/operations/createtool.ts +12 -12
  132. package/src/models/operations/fileget.ts +2 -2
  133. package/src/models/operations/filelist.ts +2 -2
  134. package/src/models/operations/fileupload.ts +2 -2
  135. package/src/models/operations/generateconversationname.ts +2 -2
  136. package/src/models/operations/getalltools.ts +12 -12
  137. package/src/models/operations/getevals.ts +28 -28
  138. package/src/models/operations/listcontacts.ts +2 -2
  139. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  140. package/src/models/operations/listdatasets.ts +2 -2
  141. package/src/models/operations/listdatasources.ts +2 -2
  142. package/src/models/operations/retrievecontact.ts +2 -2
  143. package/src/models/operations/retrieveconversation.ts +2 -2
  144. package/src/models/operations/retrievedatapoint.ts +8 -8
  145. package/src/models/operations/retrievedataset.ts +2 -2
  146. package/src/models/operations/retrievedatasource.ts +2 -2
  147. package/src/models/operations/retrievetool.ts +12 -12
  148. package/src/models/operations/runagent.ts +2 -2
  149. package/src/models/operations/streamrunagent.ts +2 -2
  150. package/src/models/operations/updatecontact.ts +2 -2
  151. package/src/models/operations/updateconversation.ts +2 -2
  152. package/src/models/operations/updatedatapoint.ts +8 -8
  153. package/src/models/operations/updatedataset.ts +2 -2
  154. package/src/models/operations/updatedatasource.ts +2 -2
  155. package/src/models/operations/updateeval.ts +28 -28
  156. package/src/models/operations/updatetool.ts +14 -14
  157. package/packages/orq-rc/examples/contactsCreate.example.ts +0 -42
@@ -0,0 +1,237 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * Identity profile information
13
+ */
14
+ export type CreateIdentityRequestBody = {
15
+ /**
16
+ * Unique string value to identify the contact user in the customer's system. This should be the same ID you use in your system to reference this user.
17
+ */
18
+ externalId: string;
19
+ /**
20
+ * Display name or nickname of the contact user. This is typically shown in user interfaces.
21
+ */
22
+ displayName?: string | null | undefined;
23
+ /**
24
+ * Email address of the contact user
25
+ */
26
+ email?: string | null | undefined;
27
+ /**
28
+ * URL linking to the contact user's avatar image
29
+ */
30
+ avatarUrl?: string | null | undefined;
31
+ /**
32
+ * Array of tags associated with the contact. Useful for organizing and filtering contacts by categories, departments, or custom classifications.
33
+ */
34
+ tags?: Array<string> | undefined;
35
+ /**
36
+ * Additional custom metadata associated with the contact as key-value pairs. Use this to store any extra information specific to your application.
37
+ */
38
+ metadata?: { [k: string]: any } | undefined;
39
+ };
40
+
41
+ /**
42
+ * Created Identity
43
+ */
44
+ export type CreateIdentityResponseBody = {
45
+ /**
46
+ * Unique ULID (Universally Unique Lexicographically Sortable Identifier) for the contact
47
+ */
48
+ id: string;
49
+ /**
50
+ * Unique string value to identify the contact user in the customer's system. This should be the same ID you use in your system to reference this user.
51
+ */
52
+ externalId: string;
53
+ /**
54
+ * Unique identifier for the workspace to which the contact belongs
55
+ */
56
+ workspaceId: string;
57
+ /**
58
+ * Display name or nickname of the contact user. This is typically shown in user interfaces.
59
+ */
60
+ displayName?: string | null | undefined;
61
+ /**
62
+ * Email address of the contact user
63
+ */
64
+ email?: string | null | undefined;
65
+ /**
66
+ * URL linking to the contact user's avatar image
67
+ */
68
+ avatarUrl?: string | null | undefined;
69
+ /**
70
+ * Array of tags associated with the contact. Useful for organizing and filtering contacts by categories, departments, or custom classifications.
71
+ */
72
+ tags?: Array<string> | undefined;
73
+ /**
74
+ * Additional custom metadata associated with the contact as key-value pairs. Use this to store any extra information specific to your application.
75
+ */
76
+ metadata?: { [k: string]: any } | undefined;
77
+ /**
78
+ * The date and time the resource was created
79
+ */
80
+ created?: Date | undefined;
81
+ /**
82
+ * The date and time the resource was last updated
83
+ */
84
+ updated?: Date | undefined;
85
+ };
86
+
87
+ /** @internal */
88
+ export const CreateIdentityRequestBody$inboundSchema: z.ZodType<
89
+ CreateIdentityRequestBody,
90
+ z.ZodTypeDef,
91
+ unknown
92
+ > = z.object({
93
+ external_id: z.string(),
94
+ display_name: z.nullable(z.string()).optional(),
95
+ email: z.nullable(z.string()).optional(),
96
+ avatar_url: z.nullable(z.string()).optional(),
97
+ tags: z.array(z.string()).optional(),
98
+ metadata: z.record(z.any()).optional(),
99
+ }).transform((v) => {
100
+ return remap$(v, {
101
+ "external_id": "externalId",
102
+ "display_name": "displayName",
103
+ "avatar_url": "avatarUrl",
104
+ });
105
+ });
106
+ /** @internal */
107
+ export type CreateIdentityRequestBody$Outbound = {
108
+ external_id: string;
109
+ display_name?: string | null | undefined;
110
+ email?: string | null | undefined;
111
+ avatar_url?: string | null | undefined;
112
+ tags?: Array<string> | undefined;
113
+ metadata?: { [k: string]: any } | undefined;
114
+ };
115
+
116
+ /** @internal */
117
+ export const CreateIdentityRequestBody$outboundSchema: z.ZodType<
118
+ CreateIdentityRequestBody$Outbound,
119
+ z.ZodTypeDef,
120
+ CreateIdentityRequestBody
121
+ > = z.object({
122
+ externalId: z.string(),
123
+ displayName: z.nullable(z.string()).optional(),
124
+ email: z.nullable(z.string()).optional(),
125
+ avatarUrl: z.nullable(z.string()).optional(),
126
+ tags: z.array(z.string()).optional(),
127
+ metadata: z.record(z.any()).optional(),
128
+ }).transform((v) => {
129
+ return remap$(v, {
130
+ externalId: "external_id",
131
+ displayName: "display_name",
132
+ avatarUrl: "avatar_url",
133
+ });
134
+ });
135
+
136
+ export function createIdentityRequestBodyToJSON(
137
+ createIdentityRequestBody: CreateIdentityRequestBody,
138
+ ): string {
139
+ return JSON.stringify(
140
+ CreateIdentityRequestBody$outboundSchema.parse(createIdentityRequestBody),
141
+ );
142
+ }
143
+ export function createIdentityRequestBodyFromJSON(
144
+ jsonString: string,
145
+ ): SafeParseResult<CreateIdentityRequestBody, SDKValidationError> {
146
+ return safeParse(
147
+ jsonString,
148
+ (x) => CreateIdentityRequestBody$inboundSchema.parse(JSON.parse(x)),
149
+ `Failed to parse 'CreateIdentityRequestBody' from JSON`,
150
+ );
151
+ }
152
+
153
+ /** @internal */
154
+ export const CreateIdentityResponseBody$inboundSchema: z.ZodType<
155
+ CreateIdentityResponseBody,
156
+ z.ZodTypeDef,
157
+ unknown
158
+ > = z.object({
159
+ _id: z.string(),
160
+ external_id: z.string(),
161
+ workspace_id: z.string(),
162
+ display_name: z.nullable(z.string()).optional(),
163
+ email: z.nullable(z.string()).optional(),
164
+ avatar_url: z.nullable(z.string()).optional(),
165
+ tags: z.array(z.string()).optional(),
166
+ metadata: z.record(z.any()).optional(),
167
+ created: z.string().datetime({ offset: true }).transform(v => new Date(v))
168
+ .optional(),
169
+ updated: z.string().datetime({ offset: true }).default(
170
+ "2026-01-19T13:14:11.941Z",
171
+ ).transform(v => new Date(v)),
172
+ }).transform((v) => {
173
+ return remap$(v, {
174
+ "_id": "id",
175
+ "external_id": "externalId",
176
+ "workspace_id": "workspaceId",
177
+ "display_name": "displayName",
178
+ "avatar_url": "avatarUrl",
179
+ });
180
+ });
181
+ /** @internal */
182
+ export type CreateIdentityResponseBody$Outbound = {
183
+ _id: string;
184
+ external_id: string;
185
+ workspace_id: string;
186
+ display_name?: string | null | undefined;
187
+ email?: string | null | undefined;
188
+ avatar_url?: string | null | undefined;
189
+ tags?: Array<string> | undefined;
190
+ metadata?: { [k: string]: any } | undefined;
191
+ created?: string | undefined;
192
+ updated: string;
193
+ };
194
+
195
+ /** @internal */
196
+ export const CreateIdentityResponseBody$outboundSchema: z.ZodType<
197
+ CreateIdentityResponseBody$Outbound,
198
+ z.ZodTypeDef,
199
+ CreateIdentityResponseBody
200
+ > = z.object({
201
+ id: z.string(),
202
+ externalId: z.string(),
203
+ workspaceId: z.string(),
204
+ displayName: z.nullable(z.string()).optional(),
205
+ email: z.nullable(z.string()).optional(),
206
+ avatarUrl: z.nullable(z.string()).optional(),
207
+ tags: z.array(z.string()).optional(),
208
+ metadata: z.record(z.any()).optional(),
209
+ created: z.date().transform(v => v.toISOString()).optional(),
210
+ updated: z.date().default(() => new Date("2026-01-19T13:14:11.941Z"))
211
+ .transform(v => v.toISOString()),
212
+ }).transform((v) => {
213
+ return remap$(v, {
214
+ id: "_id",
215
+ externalId: "external_id",
216
+ workspaceId: "workspace_id",
217
+ displayName: "display_name",
218
+ avatarUrl: "avatar_url",
219
+ });
220
+ });
221
+
222
+ export function createIdentityResponseBodyToJSON(
223
+ createIdentityResponseBody: CreateIdentityResponseBody,
224
+ ): string {
225
+ return JSON.stringify(
226
+ CreateIdentityResponseBody$outboundSchema.parse(createIdentityResponseBody),
227
+ );
228
+ }
229
+ export function createIdentityResponseBodyFromJSON(
230
+ jsonString: string,
231
+ ): SafeParseResult<CreateIdentityResponseBody, SDKValidationError> {
232
+ return safeParse(
233
+ jsonString,
234
+ (x) => CreateIdentityResponseBody$inboundSchema.parse(JSON.parse(x)),
235
+ `Failed to parse 'CreateIdentityResponseBody' from JSON`,
236
+ );
237
+ }
@@ -395,7 +395,7 @@ export type RequestBodyJsonSchema = {
395
395
  /**
396
396
  * A tool that enforces structured output format using JSON Schema for consistent response formatting.
397
397
  */
398
- export type JSONSchemaTool = {
398
+ export type RequestBodyJSONSchemaTool = {
399
399
  /**
400
400
  * Entity storage path in the format: `project/folder/subfolder/...`
401
401
  *
@@ -532,7 +532,7 @@ export type RequestBodyFunctionTool = {
532
532
  */
533
533
  export type CreateToolRequestBody =
534
534
  | RequestBodyFunctionTool
535
- | JSONSchemaTool
535
+ | RequestBodyJSONSchemaTool
536
536
  | RequestBodyHTTPTool
537
537
  | RequestBodyMCPTool
538
538
  | RequestBodyCodeExecutionTool;
@@ -2008,8 +2008,8 @@ export function requestBodyJsonSchemaFromJSON(
2008
2008
  }
2009
2009
 
2010
2010
  /** @internal */
2011
- export const JSONSchemaTool$inboundSchema: z.ZodType<
2012
- JSONSchemaTool,
2011
+ export const RequestBodyJSONSchemaTool$inboundSchema: z.ZodType<
2012
+ RequestBodyJSONSchemaTool,
2013
2013
  z.ZodTypeDef,
2014
2014
  unknown
2015
2015
  > = z.object({
@@ -2027,7 +2027,7 @@ export const JSONSchemaTool$inboundSchema: z.ZodType<
2027
2027
  });
2028
2028
  });
2029
2029
  /** @internal */
2030
- export type JSONSchemaTool$Outbound = {
2030
+ export type RequestBodyJSONSchemaTool$Outbound = {
2031
2031
  path: string;
2032
2032
  key: string;
2033
2033
  display_name?: string | undefined;
@@ -2038,10 +2038,10 @@ export type JSONSchemaTool$Outbound = {
2038
2038
  };
2039
2039
 
2040
2040
  /** @internal */
2041
- export const JSONSchemaTool$outboundSchema: z.ZodType<
2042
- JSONSchemaTool$Outbound,
2041
+ export const RequestBodyJSONSchemaTool$outboundSchema: z.ZodType<
2042
+ RequestBodyJSONSchemaTool$Outbound,
2043
2043
  z.ZodTypeDef,
2044
- JSONSchemaTool
2044
+ RequestBodyJSONSchemaTool
2045
2045
  > = z.object({
2046
2046
  path: z.string(),
2047
2047
  key: z.string(),
@@ -2057,16 +2057,20 @@ export const JSONSchemaTool$outboundSchema: z.ZodType<
2057
2057
  });
2058
2058
  });
2059
2059
 
2060
- export function jsonSchemaToolToJSON(jsonSchemaTool: JSONSchemaTool): string {
2061
- return JSON.stringify(JSONSchemaTool$outboundSchema.parse(jsonSchemaTool));
2060
+ export function requestBodyJSONSchemaToolToJSON(
2061
+ requestBodyJSONSchemaTool: RequestBodyJSONSchemaTool,
2062
+ ): string {
2063
+ return JSON.stringify(
2064
+ RequestBodyJSONSchemaTool$outboundSchema.parse(requestBodyJSONSchemaTool),
2065
+ );
2062
2066
  }
2063
- export function jsonSchemaToolFromJSON(
2067
+ export function requestBodyJSONSchemaToolFromJSON(
2064
2068
  jsonString: string,
2065
- ): SafeParseResult<JSONSchemaTool, SDKValidationError> {
2069
+ ): SafeParseResult<RequestBodyJSONSchemaTool, SDKValidationError> {
2066
2070
  return safeParse(
2067
2071
  jsonString,
2068
- (x) => JSONSchemaTool$inboundSchema.parse(JSON.parse(x)),
2069
- `Failed to parse 'JSONSchemaTool' from JSON`,
2072
+ (x) => RequestBodyJSONSchemaTool$inboundSchema.parse(JSON.parse(x)),
2073
+ `Failed to parse 'RequestBodyJSONSchemaTool' from JSON`,
2070
2074
  );
2071
2075
  }
2072
2076
 
@@ -2271,7 +2275,7 @@ export const CreateToolRequestBody$inboundSchema: z.ZodType<
2271
2275
  unknown
2272
2276
  > = z.union([
2273
2277
  z.lazy(() => RequestBodyFunctionTool$inboundSchema),
2274
- z.lazy(() => JSONSchemaTool$inboundSchema),
2278
+ z.lazy(() => RequestBodyJSONSchemaTool$inboundSchema),
2275
2279
  z.lazy(() => RequestBodyHTTPTool$inboundSchema),
2276
2280
  z.lazy(() => RequestBodyMCPTool$inboundSchema),
2277
2281
  z.lazy(() => RequestBodyCodeExecutionTool$inboundSchema),
@@ -2279,7 +2283,7 @@ export const CreateToolRequestBody$inboundSchema: z.ZodType<
2279
2283
  /** @internal */
2280
2284
  export type CreateToolRequestBody$Outbound =
2281
2285
  | RequestBodyFunctionTool$Outbound
2282
- | JSONSchemaTool$Outbound
2286
+ | RequestBodyJSONSchemaTool$Outbound
2283
2287
  | RequestBodyHTTPTool$Outbound
2284
2288
  | RequestBodyMCPTool$Outbound
2285
2289
  | RequestBodyCodeExecutionTool$Outbound;
@@ -2291,7 +2295,7 @@ export const CreateToolRequestBody$outboundSchema: z.ZodType<
2291
2295
  CreateToolRequestBody
2292
2296
  > = z.union([
2293
2297
  z.lazy(() => RequestBodyFunctionTool$outboundSchema),
2294
- z.lazy(() => JSONSchemaTool$outboundSchema),
2298
+ z.lazy(() => RequestBodyJSONSchemaTool$outboundSchema),
2295
2299
  z.lazy(() => RequestBodyHTTPTool$outboundSchema),
2296
2300
  z.lazy(() => RequestBodyMCPTool$outboundSchema),
2297
2301
  z.lazy(() => RequestBodyCodeExecutionTool$outboundSchema),
@@ -2458,7 +2462,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
2458
2462
  z.ZodTypeDef,
2459
2463
  unknown
2460
2464
  > = z.object({
2461
- _id: z.string().default("tool_01KEVXWAV61PG8H55G9CYEMKX6"),
2465
+ _id: z.string().default("tool_01KFB68TSJGW4E2KE9K5GHJFHA"),
2462
2466
  path: z.string(),
2463
2467
  key: z.string(),
2464
2468
  display_name: z.string().optional(),
@@ -2512,7 +2516,7 @@ export const ResponseBodyCodeExecutionTool$outboundSchema: z.ZodType<
2512
2516
  z.ZodTypeDef,
2513
2517
  ResponseBodyCodeExecutionTool
2514
2518
  > = z.object({
2515
- id: z.string().default("tool_01KEVXWAV61PG8H55G9CYEMKX6"),
2519
+ id: z.string().default("tool_01KFB68TSJGW4E2KE9K5GHJFHA"),
2516
2520
  path: z.string(),
2517
2521
  key: z.string(),
2518
2522
  displayName: z.string().optional(),
@@ -2678,7 +2682,7 @@ export const ResponseBodyTools$inboundSchema: z.ZodType<
2678
2682
  z.ZodTypeDef,
2679
2683
  unknown
2680
2684
  > = z.object({
2681
- id: z.string().default("01KEVXWAV3NHEZVSERMEDDK85M"),
2685
+ id: z.string().default("01KFB68TSDV9B9CN1N044571NZ"),
2682
2686
  name: z.string(),
2683
2687
  description: z.string().optional(),
2684
2688
  schema: z.lazy(() => CreateToolResponseBodySchema$inboundSchema),
@@ -2697,7 +2701,7 @@ export const ResponseBodyTools$outboundSchema: z.ZodType<
2697
2701
  z.ZodTypeDef,
2698
2702
  ResponseBodyTools
2699
2703
  > = z.object({
2700
- id: z.string().default("01KEVXWAV3NHEZVSERMEDDK85M"),
2704
+ id: z.string().default("01KFB68TSDV9B9CN1N044571NZ"),
2701
2705
  name: z.string(),
2702
2706
  description: z.string().optional(),
2703
2707
  schema: z.lazy(() => CreateToolResponseBodySchema$outboundSchema),
@@ -2792,7 +2796,7 @@ export const ResponseBodyMCPTool$inboundSchema: z.ZodType<
2792
2796
  z.ZodTypeDef,
2793
2797
  unknown
2794
2798
  > = z.object({
2795
- _id: z.string().default("tool_01KEVXWAV1M65C6JKPKAATF4J4"),
2799
+ _id: z.string().default("tool_01KFB68TSABPJJYB1QH1Q40JP3"),
2796
2800
  path: z.string(),
2797
2801
  key: z.string(),
2798
2802
  display_name: z.string().optional(),
@@ -2845,7 +2849,7 @@ export const ResponseBodyMCPTool$outboundSchema: z.ZodType<
2845
2849
  z.ZodTypeDef,
2846
2850
  ResponseBodyMCPTool
2847
2851
  > = z.object({
2848
- id: z.string().default("tool_01KEVXWAV1M65C6JKPKAATF4J4"),
2852
+ id: z.string().default("tool_01KFB68TSABPJJYB1QH1Q40JP3"),
2849
2853
  path: z.string(),
2850
2854
  key: z.string(),
2851
2855
  displayName: z.string().optional(),
@@ -3196,7 +3200,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
3196
3200
  z.ZodTypeDef,
3197
3201
  unknown
3198
3202
  > = z.object({
3199
- _id: z.string().default("tool_01KEVXWATXEVWFKZ12YD3E85F3"),
3203
+ _id: z.string().default("tool_01KFB68TRZ4WT71TGF6CNWQBHA"),
3200
3204
  path: z.string(),
3201
3205
  key: z.string(),
3202
3206
  display_name: z.string().optional(),
@@ -3247,7 +3251,7 @@ export const ResponseBodyHTTPTool$outboundSchema: z.ZodType<
3247
3251
  z.ZodTypeDef,
3248
3252
  ResponseBodyHTTPTool
3249
3253
  > = z.object({
3250
- id: z.string().default("tool_01KEVXWATXEVWFKZ12YD3E85F3"),
3254
+ id: z.string().default("tool_01KFB68TRZ4WT71TGF6CNWQBHA"),
3251
3255
  path: z.string(),
3252
3256
  key: z.string(),
3253
3257
  displayName: z.string().optional(),
@@ -3412,7 +3416,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
3412
3416
  z.ZodTypeDef,
3413
3417
  unknown
3414
3418
  > = z.object({
3415
- _id: z.string().default("tool_01KEVXWATV6YZ6MVSWGYNHKW9T"),
3419
+ _id: z.string().default("tool_01KFB68TRNHGVC1WQ287VCE44S"),
3416
3420
  path: z.string(),
3417
3421
  key: z.string(),
3418
3422
  display_name: z.string().optional(),
@@ -3464,7 +3468,7 @@ export const ResponseBodyJSONSchemaTool$outboundSchema: z.ZodType<
3464
3468
  z.ZodTypeDef,
3465
3469
  ResponseBodyJSONSchemaTool
3466
3470
  > = z.object({
3467
- id: z.string().default("tool_01KEVXWATV6YZ6MVSWGYNHKW9T"),
3471
+ id: z.string().default("tool_01KFB68TRNHGVC1WQ287VCE44S"),
3468
3472
  path: z.string(),
3469
3473
  key: z.string(),
3470
3474
  displayName: z.string().optional(),
@@ -3645,7 +3649,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
3645
3649
  z.ZodTypeDef,
3646
3650
  unknown
3647
3651
  > = z.object({
3648
- _id: z.string().default("tool_01KEVXWATS8PXP072H4J6CTA7R"),
3652
+ _id: z.string().default("tool_01KFB68TRE6JSDWYCWNGR4CDF0"),
3649
3653
  path: z.string(),
3650
3654
  key: z.string(),
3651
3655
  display_name: z.string().optional(),
@@ -3696,7 +3700,7 @@ export const ResponseBodyFunctionTool$outboundSchema: z.ZodType<
3696
3700
  z.ZodTypeDef,
3697
3701
  ResponseBodyFunctionTool
3698
3702
  > = z.object({
3699
- id: z.string().default("tool_01KEVXWATS8PXP072H4J6CTA7R"),
3703
+ id: z.string().default("tool_01KFB68TRE6JSDWYCWNGR4CDF0"),
3700
3704
  path: z.string(),
3701
3705
  key: z.string(),
3702
3706
  displayName: z.string().optional(),
@@ -0,0 +1,54 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ export type DeleteIdentityRequest = {
11
+ /**
12
+ * Identity ID or External ID
13
+ */
14
+ id: string;
15
+ };
16
+
17
+ /** @internal */
18
+ export const DeleteIdentityRequest$inboundSchema: z.ZodType<
19
+ DeleteIdentityRequest,
20
+ z.ZodTypeDef,
21
+ unknown
22
+ > = z.object({
23
+ id: z.string(),
24
+ });
25
+ /** @internal */
26
+ export type DeleteIdentityRequest$Outbound = {
27
+ id: string;
28
+ };
29
+
30
+ /** @internal */
31
+ export const DeleteIdentityRequest$outboundSchema: z.ZodType<
32
+ DeleteIdentityRequest$Outbound,
33
+ z.ZodTypeDef,
34
+ DeleteIdentityRequest
35
+ > = z.object({
36
+ id: z.string(),
37
+ });
38
+
39
+ export function deleteIdentityRequestToJSON(
40
+ deleteIdentityRequest: DeleteIdentityRequest,
41
+ ): string {
42
+ return JSON.stringify(
43
+ DeleteIdentityRequest$outboundSchema.parse(deleteIdentityRequest),
44
+ );
45
+ }
46
+ export function deleteIdentityRequestFromJSON(
47
+ jsonString: string,
48
+ ): SafeParseResult<DeleteIdentityRequest, SDKValidationError> {
49
+ return safeParse(
50
+ jsonString,
51
+ (x) => DeleteIdentityRequest$inboundSchema.parse(JSON.parse(x)),
52
+ `Failed to parse 'DeleteIdentityRequest' from JSON`,
53
+ );
54
+ }
@@ -119,7 +119,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
119
119
  file_name: z.string(),
120
120
  workspace_id: z.string(),
121
121
  created: z.string().datetime({ offset: true }).default(
122
- "2026-01-13T14:58:57.532Z",
122
+ "2026-01-19T13:14:15.174Z",
123
123
  ).transform(v => new Date(v)),
124
124
  }).transform((v) => {
125
125
  return remap$(v, {
@@ -152,7 +152,7 @@ export const FileGetResponseBody$outboundSchema: z.ZodType<
152
152
  bytes: z.number(),
153
153
  fileName: z.string(),
154
154
  workspaceId: z.string(),
155
- created: z.date().default(() => new Date("2026-01-13T14:58:57.532Z"))
155
+ created: z.date().default(() => new Date("2026-01-19T13:14:15.174Z"))
156
156
  .transform(v => v.toISOString()),
157
157
  }).transform((v) => {
158
158
  return remap$(v, {
@@ -157,7 +157,7 @@ export const FileListData$inboundSchema: z.ZodType<
157
157
  file_name: z.string(),
158
158
  workspace_id: z.string(),
159
159
  created: z.string().datetime({ offset: true }).default(
160
- "2026-01-13T14:58:57.532Z",
160
+ "2026-01-19T13:14:15.174Z",
161
161
  ).transform(v => new Date(v)),
162
162
  }).transform((v) => {
163
163
  return remap$(v, {
@@ -190,7 +190,7 @@ export const FileListData$outboundSchema: z.ZodType<
190
190
  bytes: z.number(),
191
191
  fileName: z.string(),
192
192
  workspaceId: z.string(),
193
- created: z.date().default(() => new Date("2026-01-13T14:58:57.532Z"))
193
+ created: z.date().default(() => new Date("2026-01-19T13:14:15.174Z"))
194
194
  .transform(v => v.toISOString()),
195
195
  }).transform((v) => {
196
196
  return remap$(v, {
@@ -196,7 +196,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
196
196
  file_name: z.string(),
197
197
  workspace_id: z.string(),
198
198
  created: z.string().datetime({ offset: true }).default(
199
- "2026-01-13T14:58:57.532Z",
199
+ "2026-01-19T13:14:15.174Z",
200
200
  ).transform(v => new Date(v)),
201
201
  }).transform((v) => {
202
202
  return remap$(v, {
@@ -229,7 +229,7 @@ export const FileUploadResponseBody$outboundSchema: z.ZodType<
229
229
  bytes: z.number(),
230
230
  fileName: z.string(),
231
231
  workspaceId: z.string(),
232
- created: z.date().default(() => new Date("2026-01-13T14:58:57.532Z"))
232
+ created: z.date().default(() => new Date("2026-01-19T13:14:15.174Z"))
233
233
  .transform(v => v.toISOString()),
234
234
  }).transform((v) => {
235
235
  return remap$(v, {
@@ -251,7 +251,7 @@ export const GenerateConversationNameResponseBody$inboundSchema: z.ZodType<
251
251
  z.ZodTypeDef,
252
252
  unknown
253
253
  > = z.object({
254
- _id: z.string().default("conv_01kevxwajbf0cyqfjjvkg3ec8k"),
254
+ _id: z.string().default("conv_01kfb68tc3m6ev51g6xh572zgq"),
255
255
  kind: GenerateConversationNameKind$inboundSchema,
256
256
  displayName: z.string(),
257
257
  createdAt: z.number(),
@@ -283,7 +283,7 @@ export const GenerateConversationNameResponseBody$outboundSchema: z.ZodType<
283
283
  z.ZodTypeDef,
284
284
  GenerateConversationNameResponseBody
285
285
  > = z.object({
286
- id: z.string().default("conv_01kevxwajbf0cyqfjjvkg3ec8k"),
286
+ id: z.string().default("conv_01kfb68tc3m6ev51g6xh572zgq"),
287
287
  kind: GenerateConversationNameKind$outboundSchema,
288
288
  displayName: z.string(),
289
289
  createdAt: z.number(),
@@ -863,7 +863,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
863
863
  z.ZodTypeDef,
864
864
  unknown
865
865
  > = z.object({
866
- _id: z.string().default("tool_01KEVXWAT9781HZGDG09Q3XEDG"),
866
+ _id: z.string().default("tool_01KFB68TNX13D8J38ZZXPJV26X"),
867
867
  path: z.string(),
868
868
  key: z.string(),
869
869
  display_name: z.string().optional(),
@@ -915,7 +915,7 @@ export const DataCodeExecutionTool$outboundSchema: z.ZodType<
915
915
  z.ZodTypeDef,
916
916
  DataCodeExecutionTool
917
917
  > = z.object({
918
- id: z.string().default("tool_01KEVXWAT9781HZGDG09Q3XEDG"),
918
+ id: z.string().default("tool_01KFB68TNX13D8J38ZZXPJV26X"),
919
919
  path: z.string(),
920
920
  key: z.string(),
921
921
  displayName: z.string().optional(),
@@ -1074,7 +1074,7 @@ export const DataTools$inboundSchema: z.ZodType<
1074
1074
  z.ZodTypeDef,
1075
1075
  unknown
1076
1076
  > = z.object({
1077
- id: z.string().default("01KEVXWAT8KS1KKYEF3YTTTE63"),
1077
+ id: z.string().default("01KFB68TNT12DTK8ARF8WNDVBQ"),
1078
1078
  name: z.string(),
1079
1079
  description: z.string().optional(),
1080
1080
  schema: z.lazy(() => GetAllToolsDataSchema$inboundSchema),
@@ -1093,7 +1093,7 @@ export const DataTools$outboundSchema: z.ZodType<
1093
1093
  z.ZodTypeDef,
1094
1094
  DataTools
1095
1095
  > = z.object({
1096
- id: z.string().default("01KEVXWAT8KS1KKYEF3YTTTE63"),
1096
+ id: z.string().default("01KFB68TNT12DTK8ARF8WNDVBQ"),
1097
1097
  name: z.string(),
1098
1098
  description: z.string().optional(),
1099
1099
  schema: z.lazy(() => GetAllToolsDataSchema$outboundSchema),
@@ -1178,7 +1178,7 @@ export const DataMCPTool$inboundSchema: z.ZodType<
1178
1178
  z.ZodTypeDef,
1179
1179
  unknown
1180
1180
  > = z.object({
1181
- _id: z.string().default("tool_01KEVXWAT6SH13A81Y7SA5YFSZ"),
1181
+ _id: z.string().default("tool_01KFB68TNNJZ5B6G3QGZYB1BYD"),
1182
1182
  path: z.string(),
1183
1183
  key: z.string(),
1184
1184
  display_name: z.string().optional(),
@@ -1229,7 +1229,7 @@ export const DataMCPTool$outboundSchema: z.ZodType<
1229
1229
  z.ZodTypeDef,
1230
1230
  DataMCPTool
1231
1231
  > = z.object({
1232
- id: z.string().default("tool_01KEVXWAT6SH13A81Y7SA5YFSZ"),
1232
+ id: z.string().default("tool_01KFB68TNNJZ5B6G3QGZYB1BYD"),
1233
1233
  path: z.string(),
1234
1234
  key: z.string(),
1235
1235
  displayName: z.string().optional(),
@@ -1563,7 +1563,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
1563
1563
  z.ZodTypeDef,
1564
1564
  unknown
1565
1565
  > = z.object({
1566
- _id: z.string().default("tool_01KEVXWAT3AV7RQ4CPQJ6PZHQ8"),
1566
+ _id: z.string().default("tool_01KFB68TNDS353DM56DNS7JMD1"),
1567
1567
  path: z.string(),
1568
1568
  key: z.string(),
1569
1569
  display_name: z.string().optional(),
@@ -1614,7 +1614,7 @@ export const DataHTTPTool$outboundSchema: z.ZodType<
1614
1614
  z.ZodTypeDef,
1615
1615
  DataHTTPTool
1616
1616
  > = z.object({
1617
- id: z.string().default("tool_01KEVXWAT3AV7RQ4CPQJ6PZHQ8"),
1617
+ id: z.string().default("tool_01KFB68TNDS353DM56DNS7JMD1"),
1618
1618
  path: z.string(),
1619
1619
  key: z.string(),
1620
1620
  displayName: z.string().optional(),
@@ -1767,7 +1767,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
1767
1767
  z.ZodTypeDef,
1768
1768
  unknown
1769
1769
  > = z.object({
1770
- _id: z.string().default("tool_01KEVXWAT0ZX5CMCYM49EV9RZX"),
1770
+ _id: z.string().default("tool_01KFB68TN6GXF00HYD9KS59JH4"),
1771
1771
  path: z.string(),
1772
1772
  key: z.string(),
1773
1773
  display_name: z.string().optional(),
@@ -1819,7 +1819,7 @@ export const DataJSONSchemaTool$outboundSchema: z.ZodType<
1819
1819
  z.ZodTypeDef,
1820
1820
  DataJSONSchemaTool
1821
1821
  > = z.object({
1822
- id: z.string().default("tool_01KEVXWAT0ZX5CMCYM49EV9RZX"),
1822
+ id: z.string().default("tool_01KFB68TN6GXF00HYD9KS59JH4"),
1823
1823
  path: z.string(),
1824
1824
  key: z.string(),
1825
1825
  displayName: z.string().optional(),
@@ -1995,7 +1995,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
1995
1995
  z.ZodTypeDef,
1996
1996
  unknown
1997
1997
  > = z.object({
1998
- _id: z.string().default("tool_01KEVXWASYWFBF3FNN0AXBJ5TC"),
1998
+ _id: z.string().default("tool_01KFB68TN04TSJGA1Z6MME9HWG"),
1999
1999
  path: z.string(),
2000
2000
  key: z.string(),
2001
2001
  display_name: z.string().optional(),
@@ -2046,7 +2046,7 @@ export const DataFunctionTool$outboundSchema: z.ZodType<
2046
2046
  z.ZodTypeDef,
2047
2047
  DataFunctionTool
2048
2048
  > = z.object({
2049
- id: z.string().default("tool_01KEVXWASYWFBF3FNN0AXBJ5TC"),
2049
+ id: z.string().default("tool_01KFB68TN04TSJGA1Z6MME9HWG"),
2050
2050
  path: z.string(),
2051
2051
  key: z.string(),
2052
2052
  displayName: z.string().optional(),