@orq-ai/node 4.1.0-rc.37 → 4.1.0-rc.38

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 (117) hide show
  1. package/bin/mcp-server.js +242 -267
  2. package/bin/mcp-server.js.map +48 -48
  3. package/examples/package-lock.json +1 -1
  4. package/funcs/budgetsCreate.d.ts +1 -1
  5. package/funcs/budgetsCreate.js +1 -1
  6. package/funcs/budgetsList.d.ts +1 -1
  7. package/funcs/budgetsList.js +1 -1
  8. package/jsr.json +1 -1
  9. package/lib/config.d.ts +2 -2
  10. package/lib/config.js +2 -2
  11. package/mcp-server/mcp-server.js +1 -1
  12. package/mcp-server/server.js +1 -1
  13. package/mcp-server/tools/budgetsCreate.js +1 -1
  14. package/mcp-server/tools/budgetsCreate.js.map +1 -1
  15. package/mcp-server/tools/budgetsList.js +1 -1
  16. package/mcp-server/tools/budgetsList.js.map +1 -1
  17. package/models/components/conversationresponse.js +2 -2
  18. package/models/components/partdoneevent.js +2 -2
  19. package/models/components/reasoningpart.js +2 -2
  20. package/models/operations/createbudget.d.ts +8 -55
  21. package/models/operations/createbudget.d.ts.map +1 -1
  22. package/models/operations/createbudget.js +8 -44
  23. package/models/operations/createbudget.js.map +1 -1
  24. package/models/operations/createcontact.js +2 -2
  25. package/models/operations/createconversation.js +2 -2
  26. package/models/operations/createdataset.js +2 -2
  27. package/models/operations/createdatasetitem.js +8 -8
  28. package/models/operations/createdatasource.js +2 -2
  29. package/models/operations/createeval.js +28 -28
  30. package/models/operations/createtool.js +12 -12
  31. package/models/operations/fileget.js +2 -2
  32. package/models/operations/filelist.js +2 -2
  33. package/models/operations/fileupload.js +2 -2
  34. package/models/operations/generateconversationname.js +2 -2
  35. package/models/operations/getalltools.js +12 -12
  36. package/models/operations/getbudget.d.ts +0 -1
  37. package/models/operations/getbudget.d.ts.map +1 -1
  38. package/models/operations/getbudget.js +2 -3
  39. package/models/operations/getbudget.js.map +1 -1
  40. package/models/operations/getevals.js +28 -28
  41. package/models/operations/listbudgets.d.ts +4 -6
  42. package/models/operations/listbudgets.d.ts.map +1 -1
  43. package/models/operations/listbudgets.js +4 -6
  44. package/models/operations/listbudgets.js.map +1 -1
  45. package/models/operations/listcontacts.js +2 -2
  46. package/models/operations/listdatasetdatapoints.js +8 -8
  47. package/models/operations/listdatasets.js +2 -2
  48. package/models/operations/listdatasources.js +2 -2
  49. package/models/operations/retrievecontact.js +2 -2
  50. package/models/operations/retrieveconversation.js +2 -2
  51. package/models/operations/retrievedatapoint.js +8 -8
  52. package/models/operations/retrievedataset.js +2 -2
  53. package/models/operations/retrievedatasource.js +2 -2
  54. package/models/operations/retrievetool.js +12 -12
  55. package/models/operations/runagent.js +2 -2
  56. package/models/operations/streamrunagent.js +2 -2
  57. package/models/operations/updatebudget.d.ts +0 -1
  58. package/models/operations/updatebudget.d.ts.map +1 -1
  59. package/models/operations/updatebudget.js +2 -3
  60. package/models/operations/updatebudget.js.map +1 -1
  61. package/models/operations/updatecontact.js +2 -2
  62. package/models/operations/updateconversation.js +2 -2
  63. package/models/operations/updatedatapoint.js +8 -8
  64. package/models/operations/updatedataset.js +2 -2
  65. package/models/operations/updatedatasource.js +2 -2
  66. package/models/operations/updateeval.js +28 -28
  67. package/models/operations/updatetool.js +14 -14
  68. package/package.json +1 -1
  69. package/sdk/budgets.d.ts +2 -2
  70. package/sdk/budgets.js +2 -2
  71. package/src/funcs/budgetsCreate.ts +1 -1
  72. package/src/funcs/budgetsList.ts +1 -1
  73. package/src/lib/config.ts +2 -2
  74. package/src/mcp-server/mcp-server.ts +1 -1
  75. package/src/mcp-server/server.ts +1 -1
  76. package/src/mcp-server/tools/budgetsCreate.ts +1 -1
  77. package/src/mcp-server/tools/budgetsList.ts +1 -1
  78. package/src/models/components/conversationresponse.ts +2 -2
  79. package/src/models/components/partdoneevent.ts +2 -2
  80. package/src/models/components/reasoningpart.ts +2 -2
  81. package/src/models/operations/createbudget.ts +17 -111
  82. package/src/models/operations/createcontact.ts +2 -2
  83. package/src/models/operations/createconversation.ts +2 -2
  84. package/src/models/operations/createdataset.ts +2 -2
  85. package/src/models/operations/createdatasetitem.ts +8 -8
  86. package/src/models/operations/createdatasource.ts +2 -2
  87. package/src/models/operations/createeval.ts +28 -28
  88. package/src/models/operations/createtool.ts +12 -12
  89. package/src/models/operations/fileget.ts +2 -2
  90. package/src/models/operations/filelist.ts +2 -2
  91. package/src/models/operations/fileupload.ts +2 -2
  92. package/src/models/operations/generateconversationname.ts +2 -2
  93. package/src/models/operations/getalltools.ts +12 -12
  94. package/src/models/operations/getbudget.ts +2 -3
  95. package/src/models/operations/getevals.ts +28 -28
  96. package/src/models/operations/listbudgets.ts +6 -8
  97. package/src/models/operations/listcontacts.ts +2 -2
  98. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  99. package/src/models/operations/listdatasets.ts +2 -2
  100. package/src/models/operations/listdatasources.ts +2 -2
  101. package/src/models/operations/retrievecontact.ts +2 -2
  102. package/src/models/operations/retrieveconversation.ts +2 -2
  103. package/src/models/operations/retrievedatapoint.ts +8 -8
  104. package/src/models/operations/retrievedataset.ts +2 -2
  105. package/src/models/operations/retrievedatasource.ts +2 -2
  106. package/src/models/operations/retrievetool.ts +12 -12
  107. package/src/models/operations/runagent.ts +2 -2
  108. package/src/models/operations/streamrunagent.ts +2 -2
  109. package/src/models/operations/updatebudget.ts +2 -3
  110. package/src/models/operations/updatecontact.ts +2 -2
  111. package/src/models/operations/updateconversation.ts +2 -2
  112. package/src/models/operations/updatedatapoint.ts +8 -8
  113. package/src/models/operations/updatedataset.ts +2 -2
  114. package/src/models/operations/updatedatasource.ts +2 -2
  115. package/src/models/operations/updateeval.ts +28 -28
  116. package/src/models/operations/updatetool.ts +14 -14
  117. package/src/sdk/budgets.ts +2 -2
@@ -451,14 +451,14 @@ function updateToolRequestBodyToolsSchemaFromJSON(jsonString) {
451
451
  }
452
452
  /** @internal */
453
453
  exports.RequestBodyTools$inboundSchema = z.object({
454
- id: z.string().default("01KC5WJPKJAT2SPMWVNX8ZYRRY"),
454
+ id: z.string().default("01KC6JYPA971CZWAC4Z4DN9AAH"),
455
455
  name: z.string(),
456
456
  description: z.string().optional(),
457
457
  schema: z.lazy(() => exports.UpdateToolRequestBodyToolsSchema$inboundSchema),
458
458
  });
459
459
  /** @internal */
460
460
  exports.RequestBodyTools$outboundSchema = z.object({
461
- id: z.string().default("01KC5WJPKJAT2SPMWVNX8ZYRRY"),
461
+ id: z.string().default("01KC6JYPA971CZWAC4Z4DN9AAH"),
462
462
  name: z.string(),
463
463
  description: z.string().optional(),
464
464
  schema: z.lazy(() => exports.UpdateToolRequestBodyToolsSchema$outboundSchema),
@@ -988,7 +988,7 @@ function updateToolResponseBodyCodeToolFromJSON(jsonString) {
988
988
  }
989
989
  /** @internal */
990
990
  exports.UpdateToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
991
- _id: z.string().default("tool_01KC5WJPKBHZQE76DJCGN6RKKA"),
991
+ _id: z.string().default("tool_01KC6JYPA3SHPMHVHQ5VN00SV4"),
992
992
  path: z.string(),
993
993
  key: z.string(),
994
994
  display_name: z.string().optional(),
@@ -1018,7 +1018,7 @@ exports.UpdateToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
1018
1018
  });
1019
1019
  /** @internal */
1020
1020
  exports.UpdateToolResponseBodyCodeExecutionTool$outboundSchema = z.object({
1021
- id: z.string().default("tool_01KC5WJPKBHZQE76DJCGN6RKKA"),
1021
+ id: z.string().default("tool_01KC6JYPA3SHPMHVHQ5VN00SV4"),
1022
1022
  path: z.string(),
1023
1023
  key: z.string(),
1024
1024
  displayName: z.string().optional(),
@@ -1097,14 +1097,14 @@ function updateToolResponseBodyToolsSchemaFromJSON(jsonString) {
1097
1097
  }
1098
1098
  /** @internal */
1099
1099
  exports.UpdateToolResponseBodyTools$inboundSchema = z.object({
1100
- id: z.string().default("01KC5WJPK94AA0DD67ZWDX7FG8"),
1100
+ id: z.string().default("01KC6JYPA2VT1CMTEPY631WBSG"),
1101
1101
  name: z.string(),
1102
1102
  description: z.string().optional(),
1103
1103
  schema: z.lazy(() => exports.UpdateToolResponseBodyToolsSchema$inboundSchema),
1104
1104
  });
1105
1105
  /** @internal */
1106
1106
  exports.UpdateToolResponseBodyTools$outboundSchema = z.object({
1107
- id: z.string().default("01KC5WJPK94AA0DD67ZWDX7FG8"),
1107
+ id: z.string().default("01KC6JYPA2VT1CMTEPY631WBSG"),
1108
1108
  name: z.string(),
1109
1109
  description: z.string().optional(),
1110
1110
  schema: z.lazy(() => exports.UpdateToolResponseBodyToolsSchema$outboundSchema),
@@ -1153,7 +1153,7 @@ function updateToolResponseBodyMcpFromJSON(jsonString) {
1153
1153
  }
1154
1154
  /** @internal */
1155
1155
  exports.UpdateToolResponseBodyMCPTool$inboundSchema = z.object({
1156
- _id: z.string().default("tool_01KC5WJPK72NWQA7N6P80E35AM"),
1156
+ _id: z.string().default("tool_01KC6JYPA0RNVN6QGVD66NN5VP"),
1157
1157
  path: z.string(),
1158
1158
  key: z.string(),
1159
1159
  display_name: z.string().optional(),
@@ -1181,7 +1181,7 @@ exports.UpdateToolResponseBodyMCPTool$inboundSchema = z.object({
1181
1181
  });
1182
1182
  /** @internal */
1183
1183
  exports.UpdateToolResponseBodyMCPTool$outboundSchema = z.object({
1184
- id: z.string().default("tool_01KC5WJPK72NWQA7N6P80E35AM"),
1184
+ id: z.string().default("tool_01KC6JYPA0RNVN6QGVD66NN5VP"),
1185
1185
  path: z.string(),
1186
1186
  key: z.string(),
1187
1187
  displayName: z.string().optional(),
@@ -1330,7 +1330,7 @@ function updateToolResponseBodyHttpFromJSON(jsonString) {
1330
1330
  }
1331
1331
  /** @internal */
1332
1332
  exports.UpdateToolResponseBodyHTTPTool$inboundSchema = z.object({
1333
- _id: z.string().default("tool_01KC5WJPK4K9TECDF51CVQG7GF"),
1333
+ _id: z.string().default("tool_01KC6JYP9X72CXN993SV44MQHN"),
1334
1334
  path: z.string(),
1335
1335
  key: z.string(),
1336
1336
  display_name: z.string().optional(),
@@ -1358,7 +1358,7 @@ exports.UpdateToolResponseBodyHTTPTool$inboundSchema = z.object({
1358
1358
  });
1359
1359
  /** @internal */
1360
1360
  exports.UpdateToolResponseBodyHTTPTool$outboundSchema = z.object({
1361
- id: z.string().default("tool_01KC5WJPK4K9TECDF51CVQG7GF"),
1361
+ id: z.string().default("tool_01KC6JYP9X72CXN993SV44MQHN"),
1362
1362
  path: z.string(),
1363
1363
  key: z.string(),
1364
1364
  displayName: z.string().optional(),
@@ -1442,7 +1442,7 @@ function updateToolResponseBodyJsonSchemaFromJSON(jsonString) {
1442
1442
  }
1443
1443
  /** @internal */
1444
1444
  exports.UpdateToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
1445
- _id: z.string().default("tool_01KC5WJPK2PS2GYE4YS4C3HZNN"),
1445
+ _id: z.string().default("tool_01KC6JYP9VAATB3F1ZHB9NKZK6"),
1446
1446
  path: z.string(),
1447
1447
  key: z.string(),
1448
1448
  display_name: z.string().optional(),
@@ -1471,7 +1471,7 @@ exports.UpdateToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
1471
1471
  });
1472
1472
  /** @internal */
1473
1473
  exports.UpdateToolResponseBodyJSONSchemaTool$outboundSchema = z.object({
1474
- id: z.string().default("tool_01KC5WJPK2PS2GYE4YS4C3HZNN"),
1474
+ id: z.string().default("tool_01KC6JYP9VAATB3F1ZHB9NKZK6"),
1475
1475
  path: z.string(),
1476
1476
  key: z.string(),
1477
1477
  displayName: z.string().optional(),
@@ -1562,7 +1562,7 @@ function updateToolResponseBodyFunctionFromJSON(jsonString) {
1562
1562
  }
1563
1563
  /** @internal */
1564
1564
  exports.UpdateToolResponseBodyFunctionTool$inboundSchema = z.object({
1565
- _id: z.string().default("tool_01KC5WJPJZ44ECYACAVPAYGW8A"),
1565
+ _id: z.string().default("tool_01KC6JYP9SQ0M0A97RFY0777CQ"),
1566
1566
  path: z.string(),
1567
1567
  key: z.string(),
1568
1568
  display_name: z.string().optional(),
@@ -1590,7 +1590,7 @@ exports.UpdateToolResponseBodyFunctionTool$inboundSchema = z.object({
1590
1590
  });
1591
1591
  /** @internal */
1592
1592
  exports.UpdateToolResponseBodyFunctionTool$outboundSchema = z.object({
1593
- id: z.string().default("tool_01KC5WJPJZ44ECYACAVPAYGW8A"),
1593
+ id: z.string().default("tool_01KC6JYP9SQ0M0A97RFY0777CQ"),
1594
1594
  path: z.string(),
1595
1595
  key: z.string(),
1596
1596
  displayName: z.string().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orq-ai/node",
3
- "version": "4.1.0-rc.37",
3
+ "version": "4.1.0-rc.38",
4
4
  "author": "Orq",
5
5
  "bin": {
6
6
  "mcp": "bin/mcp-server.js"
package/sdk/budgets.d.ts CHANGED
@@ -5,14 +5,14 @@ export declare class Budgets extends ClientSDK {
5
5
  * List budget configurations
6
6
  *
7
7
  * @remarks
8
- * Retrieves a paginated list of budget configurations in your workspace. Supports filtering by type (api_key, contact or workspace). For workspace budgets, only one budget can exist per workspace.
8
+ * Retrieves a paginated list of budget configurations in your workspace. Supports filtering by type (contact).
9
9
  */
10
10
  list(request?: operations.ListBudgetsRequest | undefined, options?: RequestOptions): Promise<operations.ListBudgetsResponseBody>;
11
11
  /**
12
12
  * Create budget configuration
13
13
  *
14
14
  * @remarks
15
- * Create a new budget configuration for an API key, contact, or workspace. For API keys, provide the API key value (e.g., sk_live_xxx) in entity_id field. For contacts, provide the external ID in entity_id field. For workspaces, only the type field is required (entity_id is not needed). Only one budget can exist per workspace.
15
+ * Create a new budget configuration for an API key or contact. For API keys, provide the API key value (e.g., sk_live_xxx) in entity_id field. For contacts, provide the external ID in entity_id field.
16
16
  */
17
17
  create(request: operations.CreateBudgetRequestBody, options?: RequestOptions): Promise<operations.CreateBudgetResponseBody>;
18
18
  /**
package/sdk/budgets.js CHANGED
@@ -16,7 +16,7 @@ class Budgets extends sdks_js_1.ClientSDK {
16
16
  * List budget configurations
17
17
  *
18
18
  * @remarks
19
- * Retrieves a paginated list of budget configurations in your workspace. Supports filtering by type (api_key, contact or workspace). For workspace budgets, only one budget can exist per workspace.
19
+ * Retrieves a paginated list of budget configurations in your workspace. Supports filtering by type (contact).
20
20
  */
21
21
  async list(request, options) {
22
22
  return (0, fp_js_1.unwrapAsync)((0, budgetsList_js_1.budgetsList)(this, request, options));
@@ -25,7 +25,7 @@ class Budgets extends sdks_js_1.ClientSDK {
25
25
  * Create budget configuration
26
26
  *
27
27
  * @remarks
28
- * Create a new budget configuration for an API key, contact, or workspace. For API keys, provide the API key value (e.g., sk_live_xxx) in entity_id field. For contacts, provide the external ID in entity_id field. For workspaces, only the type field is required (entity_id is not needed). Only one budget can exist per workspace.
28
+ * Create a new budget configuration for an API key or contact. For API keys, provide the API key value (e.g., sk_live_xxx) in entity_id field. For contacts, provide the external ID in entity_id field.
29
29
  */
30
30
  async create(request, options) {
31
31
  return (0, fp_js_1.unwrapAsync)((0, budgetsCreate_js_1.budgetsCreate)(this, request, options));
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
28
28
  * Create budget configuration
29
29
  *
30
30
  * @remarks
31
- * Create a new budget configuration for an API key, contact, or workspace. For API keys, provide the API key value (e.g., sk_live_xxx) in entity_id field. For contacts, provide the external ID in entity_id field. For workspaces, only the type field is required (entity_id is not needed). Only one budget can exist per workspace.
31
+ * Create a new budget configuration for an API key or contact. For API keys, provide the API key value (e.g., sk_live_xxx) in entity_id field. For contacts, provide the external ID in entity_id field.
32
32
  */
33
33
  export function budgetsCreate(
34
34
  client: OrqCore,
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
28
28
  * List budget configurations
29
29
  *
30
30
  * @remarks
31
- * Retrieves a paginated list of budget configurations in your workspace. Supports filtering by type (api_key, contact or workspace). For workspace budgets, only one budget can exist per workspace.
31
+ * Retrieves a paginated list of budget configurations in your workspace. Supports filtering by type (contact).
32
32
  */
33
33
  export function budgetsList(
34
34
  client: OrqCore,
package/src/lib/config.ts CHANGED
@@ -68,7 +68,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
68
68
  export const SDK_METADATA = {
69
69
  language: "typescript",
70
70
  openapiDocVersion: "2.0",
71
- sdkVersion: "4.1.0-rc.37",
71
+ sdkVersion: "4.1.0-rc.38",
72
72
  genVersion: "2.779.2",
73
- userAgent: "speakeasy-sdk/typescript 4.1.0-rc.37 2.779.2 2.0 @orq-ai/node",
73
+ userAgent: "speakeasy-sdk/typescript 4.1.0-rc.38 2.779.2 2.0 @orq-ai/node",
74
74
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "4.1.0-rc.37",
22
+ currentVersion: "4.1.0-rc.38",
23
23
  },
24
24
  });
25
25
 
@@ -127,7 +127,7 @@ export function createMCPServer(deps: {
127
127
  }) {
128
128
  const server = new McpServer({
129
129
  name: "Orq",
130
- version: "4.1.0-rc.37",
130
+ version: "4.1.0-rc.38",
131
131
  });
132
132
 
133
133
  const client = new OrqCore({
@@ -14,7 +14,7 @@ export const tool$budgetsCreate: ToolDefinition<typeof args> = {
14
14
  name: "budgets-create",
15
15
  description: `Create budget configuration
16
16
 
17
- Create a new budget configuration for an API key, contact, or workspace. For API keys, provide the API key value (e.g., sk_live_xxx) in entity_id field. For contacts, provide the external ID in entity_id field. For workspaces, only the type field is required (entity_id is not needed). Only one budget can exist per workspace.`,
17
+ Create a new budget configuration for an API key or contact. For API keys, provide the API key value (e.g., sk_live_xxx) in entity_id field. For contacts, provide the external ID in entity_id field.`,
18
18
  args,
19
19
  tool: async (client, args, ctx) => {
20
20
  const [result, apiCall] = await budgetsCreate(
@@ -14,7 +14,7 @@ export const tool$budgetsList: ToolDefinition<typeof args> = {
14
14
  name: "budgets-list",
15
15
  description: `List budget configurations
16
16
 
17
- Retrieves a paginated list of budget configurations in your workspace. Supports filtering by type (api_key, contact or workspace). For workspace budgets, only one budget can exist per workspace.`,
17
+ Retrieves a paginated list of budget configurations in your workspace. Supports filtering by type (contact).`,
18
18
  args,
19
19
  tool: async (client, args, ctx) => {
20
20
  const [result, apiCall] = await budgetsList(
@@ -138,7 +138,7 @@ export const ConversationResponse$inboundSchema: z.ZodType<
138
138
  z.ZodTypeDef,
139
139
  unknown
140
140
  > = z.object({
141
- _id: z.string().default("conv_01kc5wjpa8s3619pt00x575mrz"),
141
+ _id: z.string().default("conv_01kc6jyp2725phas59s4hr495e"),
142
142
  entity_id: z.string(),
143
143
  kind: ConversationResponseKind$inboundSchema,
144
144
  display_name: z.string(),
@@ -177,7 +177,7 @@ export const ConversationResponse$outboundSchema: z.ZodType<
177
177
  z.ZodTypeDef,
178
178
  ConversationResponse
179
179
  > = z.object({
180
- id: z.string().default("conv_01kc5wjpa8s3619pt00x575mrz"),
180
+ id: z.string().default("conv_01kc6jyp2725phas59s4hr495e"),
181
181
  entityId: z.string(),
182
182
  kind: ConversationResponseKind$outboundSchema,
183
183
  displayName: z.string(),
@@ -79,7 +79,7 @@ export const PartReasoningPart$inboundSchema: z.ZodType<
79
79
  z.ZodTypeDef,
80
80
  unknown
81
81
  > = z.object({
82
- _id: z.string().default("reasoning_01kc5wjnzevxfamg8gm7q565fw"),
82
+ _id: z.string().default("reasoning_01kc6jyntg5evzzqxjf9m1vh4t"),
83
83
  metadata: z.record(z.any()).optional(),
84
84
  kind: PartKind$inboundSchema,
85
85
  reasoning: z.string(),
@@ -104,7 +104,7 @@ export const PartReasoningPart$outboundSchema: z.ZodType<
104
104
  z.ZodTypeDef,
105
105
  PartReasoningPart
106
106
  > = z.object({
107
- id: z.string().default("reasoning_01kc5wjnzevxfamg8gm7q565fw"),
107
+ id: z.string().default("reasoning_01kc6jyntg5evzzqxjf9m1vh4t"),
108
108
  metadata: z.record(z.any()).optional(),
109
109
  kind: PartKind$outboundSchema,
110
110
  reasoning: z.string(),
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
40
40
  z.ZodTypeDef,
41
41
  unknown
42
42
  > = z.object({
43
- _id: z.string().default("reasoning_01kc5wjnz6sb3n8nw5vcyj6j25"),
43
+ _id: z.string().default("reasoning_01kc6jynt9ts4szb85drearx3j"),
44
44
  metadata: z.record(z.any()).optional(),
45
45
  kind: z.literal("reasoning"),
46
46
  reasoning: z.string(),
@@ -65,7 +65,7 @@ export const ReasoningPart$outboundSchema: z.ZodType<
65
65
  z.ZodTypeDef,
66
66
  ReasoningPart
67
67
  > = z.object({
68
- id: z.string().default("reasoning_01kc5wjnz6sb3n8nw5vcyj6j25"),
68
+ id: z.string().default("reasoning_01kc6jynt9ts4szb85drearx3j"),
69
69
  metadata: z.record(z.any()).optional(),
70
70
  kind: z.literal("reasoning"),
71
71
  reasoning: z.string(),
@@ -10,40 +10,6 @@ import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import { RFCDate } from "../../types/rfcdate.js";
11
11
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
12
 
13
- /**
14
- * Budget period type
15
- */
16
- export const CreateBudgetRequestBodyPeriod = {
17
- Daily: "daily",
18
- Weekly: "weekly",
19
- Monthly: "monthly",
20
- Yearly: "yearly",
21
- } as const;
22
- /**
23
- * Budget period type
24
- */
25
- export type CreateBudgetRequestBodyPeriod = ClosedEnum<
26
- typeof CreateBudgetRequestBodyPeriod
27
- >;
28
-
29
- /**
30
- * Budget configuration for the entire workspace
31
- */
32
- export type WorkspaceBudget = {
33
- /**
34
- * Workspace budget type
35
- */
36
- type: "workspace";
37
- /**
38
- * Budget period type
39
- */
40
- period: CreateBudgetRequestBodyPeriod;
41
- /**
42
- * Budget amount in USD for the specified period
43
- */
44
- amount: number;
45
- };
46
-
47
13
  /**
48
14
  * Budget period type
49
15
  */
@@ -83,7 +49,7 @@ export type ContactBudget = {
83
49
  /**
84
50
  * Budget period type
85
51
  */
86
- export const CreateBudgetRequestBodyBudgetsPeriod = {
52
+ export const CreateBudgetRequestBodyPeriod = {
87
53
  Daily: "daily",
88
54
  Weekly: "weekly",
89
55
  Monthly: "monthly",
@@ -92,8 +58,8 @@ export const CreateBudgetRequestBodyBudgetsPeriod = {
92
58
  /**
93
59
  * Budget period type
94
60
  */
95
- export type CreateBudgetRequestBodyBudgetsPeriod = ClosedEnum<
96
- typeof CreateBudgetRequestBodyBudgetsPeriod
61
+ export type CreateBudgetRequestBodyPeriod = ClosedEnum<
62
+ typeof CreateBudgetRequestBodyPeriod
97
63
  >;
98
64
 
99
65
  /**
@@ -111,7 +77,7 @@ export type APIKeyBudget = {
111
77
  /**
112
78
  * Budget period type
113
79
  */
114
- period: CreateBudgetRequestBodyBudgetsPeriod;
80
+ period: CreateBudgetRequestBodyPeriod;
115
81
  /**
116
82
  * Budget amount in USD for the specified period
117
83
  */
@@ -119,12 +85,9 @@ export type APIKeyBudget = {
119
85
  };
120
86
 
121
87
  /**
122
- * Create budget configuration for API key, contact, or workspace
88
+ * Create budget configuration for API key or contact
123
89
  */
124
- export type CreateBudgetRequestBody =
125
- | APIKeyBudget
126
- | ContactBudget
127
- | WorkspaceBudget;
90
+ export type CreateBudgetRequestBody = APIKeyBudget | ContactBudget;
128
91
 
129
92
  /**
130
93
  * Budget entity type
@@ -132,7 +95,6 @@ export type CreateBudgetRequestBody =
132
95
  export const CreateBudgetType = {
133
96
  ApiKey: "api_key",
134
97
  Contact: "contact",
135
- Workspace: "workspace",
136
98
  } as const;
137
99
  /**
138
100
  * Budget entity type
@@ -229,58 +191,6 @@ export type CreateBudgetResponseBody = {
229
191
  updated?: Date | undefined;
230
192
  };
231
193
 
232
- /** @internal */
233
- export const CreateBudgetRequestBodyPeriod$inboundSchema: z.ZodNativeEnum<
234
- typeof CreateBudgetRequestBodyPeriod
235
- > = z.nativeEnum(CreateBudgetRequestBodyPeriod);
236
- /** @internal */
237
- export const CreateBudgetRequestBodyPeriod$outboundSchema: z.ZodNativeEnum<
238
- typeof CreateBudgetRequestBodyPeriod
239
- > = CreateBudgetRequestBodyPeriod$inboundSchema;
240
-
241
- /** @internal */
242
- export const WorkspaceBudget$inboundSchema: z.ZodType<
243
- WorkspaceBudget,
244
- z.ZodTypeDef,
245
- unknown
246
- > = z.object({
247
- type: z.literal("workspace"),
248
- period: CreateBudgetRequestBodyPeriod$inboundSchema,
249
- amount: z.number(),
250
- });
251
- /** @internal */
252
- export type WorkspaceBudget$Outbound = {
253
- type: "workspace";
254
- period: string;
255
- amount: number;
256
- };
257
-
258
- /** @internal */
259
- export const WorkspaceBudget$outboundSchema: z.ZodType<
260
- WorkspaceBudget$Outbound,
261
- z.ZodTypeDef,
262
- WorkspaceBudget
263
- > = z.object({
264
- type: z.literal("workspace"),
265
- period: CreateBudgetRequestBodyPeriod$outboundSchema,
266
- amount: z.number(),
267
- });
268
-
269
- export function workspaceBudgetToJSON(
270
- workspaceBudget: WorkspaceBudget,
271
- ): string {
272
- return JSON.stringify(WorkspaceBudget$outboundSchema.parse(workspaceBudget));
273
- }
274
- export function workspaceBudgetFromJSON(
275
- jsonString: string,
276
- ): SafeParseResult<WorkspaceBudget, SDKValidationError> {
277
- return safeParse(
278
- jsonString,
279
- (x) => WorkspaceBudget$inboundSchema.parse(JSON.parse(x)),
280
- `Failed to parse 'WorkspaceBudget' from JSON`,
281
- );
282
- }
283
-
284
194
  /** @internal */
285
195
  export const RequestBodyPeriod$inboundSchema: z.ZodNativeEnum<
286
196
  typeof RequestBodyPeriod
@@ -343,14 +253,13 @@ export function contactBudgetFromJSON(
343
253
  }
344
254
 
345
255
  /** @internal */
346
- export const CreateBudgetRequestBodyBudgetsPeriod$inboundSchema:
347
- z.ZodNativeEnum<typeof CreateBudgetRequestBodyBudgetsPeriod> = z.nativeEnum(
348
- CreateBudgetRequestBodyBudgetsPeriod,
349
- );
256
+ export const CreateBudgetRequestBodyPeriod$inboundSchema: z.ZodNativeEnum<
257
+ typeof CreateBudgetRequestBodyPeriod
258
+ > = z.nativeEnum(CreateBudgetRequestBodyPeriod);
350
259
  /** @internal */
351
- export const CreateBudgetRequestBodyBudgetsPeriod$outboundSchema:
352
- z.ZodNativeEnum<typeof CreateBudgetRequestBodyBudgetsPeriod> =
353
- CreateBudgetRequestBodyBudgetsPeriod$inboundSchema;
260
+ export const CreateBudgetRequestBodyPeriod$outboundSchema: z.ZodNativeEnum<
261
+ typeof CreateBudgetRequestBodyPeriod
262
+ > = CreateBudgetRequestBodyPeriod$inboundSchema;
354
263
 
355
264
  /** @internal */
356
265
  export const APIKeyBudget$inboundSchema: z.ZodType<
@@ -360,7 +269,7 @@ export const APIKeyBudget$inboundSchema: z.ZodType<
360
269
  > = z.object({
361
270
  type: z.literal("api_key"),
362
271
  entity_id: z.string(),
363
- period: CreateBudgetRequestBodyBudgetsPeriod$inboundSchema,
272
+ period: CreateBudgetRequestBodyPeriod$inboundSchema,
364
273
  amount: z.number(),
365
274
  }).transform((v) => {
366
275
  return remap$(v, {
@@ -383,7 +292,7 @@ export const APIKeyBudget$outboundSchema: z.ZodType<
383
292
  > = z.object({
384
293
  type: z.literal("api_key"),
385
294
  entityId: z.string(),
386
- period: CreateBudgetRequestBodyBudgetsPeriod$outboundSchema,
295
+ period: CreateBudgetRequestBodyPeriod$outboundSchema,
387
296
  amount: z.number(),
388
297
  }).transform((v) => {
389
298
  return remap$(v, {
@@ -412,13 +321,11 @@ export const CreateBudgetRequestBody$inboundSchema: z.ZodType<
412
321
  > = z.union([
413
322
  z.lazy(() => APIKeyBudget$inboundSchema),
414
323
  z.lazy(() => ContactBudget$inboundSchema),
415
- z.lazy(() => WorkspaceBudget$inboundSchema),
416
324
  ]);
417
325
  /** @internal */
418
326
  export type CreateBudgetRequestBody$Outbound =
419
327
  | APIKeyBudget$Outbound
420
- | ContactBudget$Outbound
421
- | WorkspaceBudget$Outbound;
328
+ | ContactBudget$Outbound;
422
329
 
423
330
  /** @internal */
424
331
  export const CreateBudgetRequestBody$outboundSchema: z.ZodType<
@@ -428,7 +335,6 @@ export const CreateBudgetRequestBody$outboundSchema: z.ZodType<
428
335
  > = z.union([
429
336
  z.lazy(() => APIKeyBudget$outboundSchema),
430
337
  z.lazy(() => ContactBudget$outboundSchema),
431
- z.lazy(() => WorkspaceBudget$outboundSchema),
432
338
  ]);
433
339
 
434
340
  export function createBudgetRequestBodyToJSON(
@@ -583,7 +489,7 @@ export const CreateBudgetResponseBody$inboundSchema: z.ZodType<
583
489
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
584
490
  .optional(),
585
491
  updated: z.string().datetime({ offset: true }).default(
586
- "2025-12-11T05:01:28.677Z",
492
+ "2025-12-11T11:32:34.996Z",
587
493
  ).transform(v => new Date(v)),
588
494
  }).transform((v) => {
589
495
  return remap$(v, {
@@ -623,7 +529,7 @@ export const CreateBudgetResponseBody$outboundSchema: z.ZodType<
623
529
  isActive: z.boolean(),
624
530
  consumption: z.lazy(() => Consumption$outboundSchema).optional(),
625
531
  created: z.date().transform(v => v.toISOString()).optional(),
626
- updated: z.date().default(() => new Date("2025-12-11T05:01:28.677Z"))
532
+ updated: z.date().default(() => new Date("2025-12-11T11:32:34.996Z"))
627
533
  .transform(v => v.toISOString()),
628
534
  }).transform((v) => {
629
535
  return remap$(v, {
@@ -167,7 +167,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
167
167
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
168
168
  .optional(),
169
169
  updated: z.string().datetime({ offset: true }).default(
170
- "2025-12-11T05:01:28.270Z",
170
+ "2025-12-11T11:32:34.632Z",
171
171
  ).transform(v => new Date(v)),
172
172
  }).transform((v) => {
173
173
  return remap$(v, {
@@ -207,7 +207,7 @@ export const CreateContactResponseBody$outboundSchema: z.ZodType<
207
207
  tags: z.array(z.string()).optional(),
208
208
  metadata: z.record(z.any()).optional(),
209
209
  created: z.date().transform(v => v.toISOString()).optional(),
210
- updated: z.date().default(() => new Date("2025-12-11T05:01:28.270Z"))
210
+ updated: z.date().default(() => new Date("2025-12-11T11:32:34.632Z"))
211
211
  .transform(v => v.toISOString()),
212
212
  }).transform((v) => {
213
213
  return remap$(v, {
@@ -272,7 +272,7 @@ export const CreateConversationResponseBody$inboundSchema: z.ZodType<
272
272
  z.ZodTypeDef,
273
273
  unknown
274
274
  > = z.object({
275
- _id: z.string().default("conv_01kc5wjpaaj5js0ymrnarcst3f"),
275
+ _id: z.string().default("conv_01kc6jyp29e89b72wvsxjkcm9e"),
276
276
  entity_id: z.string(),
277
277
  kind: CreateConversationKind$inboundSchema,
278
278
  display_name: z.string(),
@@ -312,7 +312,7 @@ export const CreateConversationResponseBody$outboundSchema: z.ZodType<
312
312
  z.ZodTypeDef,
313
313
  CreateConversationResponseBody
314
314
  > = z.object({
315
- id: z.string().default("conv_01kc5wjpaaj5js0ymrnarcst3f"),
315
+ id: z.string().default("conv_01kc6jyp29e89b72wvsxjkcm9e"),
316
316
  entityId: z.string(),
317
317
  kind: CreateConversationKind$outboundSchema,
318
318
  displayName: z.string(),
@@ -187,7 +187,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
187
187
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
188
188
  .optional(),
189
189
  updated: z.string().datetime({ offset: true }).default(
190
- "2025-12-11T05:01:28.270Z",
190
+ "2025-12-11T11:32:34.632Z",
191
191
  ).transform(v => new Date(v)),
192
192
  }).transform((v) => {
193
193
  return remap$(v, {
@@ -226,7 +226,7 @@ export const CreateDatasetResponseBody$outboundSchema: z.ZodType<
226
226
  createdById: z.string().optional(),
227
227
  updatedById: z.string().optional(),
228
228
  created: z.date().transform(v => v.toISOString()).optional(),
229
- updated: z.date().default(() => new Date("2025-12-11T05:01:28.270Z"))
229
+ updated: z.date().default(() => new Date("2025-12-11T11:32:34.632Z"))
230
230
  .transform(v => v.toISOString()),
231
231
  }).transform((v) => {
232
232
  return remap$(v, {
@@ -3612,7 +3612,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
3612
3612
  source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
3613
3613
  reviewed_by_id: z.string(),
3614
3614
  reviewed_at: z.string().datetime({ offset: true }).default(
3615
- "2025-12-11T05:01:44.186Z",
3615
+ "2025-12-11T11:32:45.718Z",
3616
3616
  ).transform(v => new Date(v)),
3617
3617
  type: z.literal("string_array"),
3618
3618
  values: z.array(z.string()),
@@ -3647,7 +3647,7 @@ export const Evaluations3$outboundSchema: z.ZodType<
3647
3647
  humanReviewId: z.string(),
3648
3648
  source: CreateDatasetItemEvaluationsSource$outboundSchema.default("orq"),
3649
3649
  reviewedById: z.string(),
3650
- reviewedAt: z.date().default(() => new Date("2025-12-11T05:01:44.186Z"))
3650
+ reviewedAt: z.date().default(() => new Date("2025-12-11T11:32:45.718Z"))
3651
3651
  .transform(v => v.toISOString()),
3652
3652
  type: z.literal("string_array"),
3653
3653
  values: z.array(z.string()),
@@ -3703,7 +3703,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
3703
3703
  source: EvaluationsSource$inboundSchema.default("orq"),
3704
3704
  reviewed_by_id: z.string(),
3705
3705
  reviewed_at: z.string().datetime({ offset: true }).default(
3706
- "2025-12-11T05:01:44.185Z",
3706
+ "2025-12-11T11:32:45.717Z",
3707
3707
  ).transform(v => new Date(v)),
3708
3708
  type: z.literal("number"),
3709
3709
  value: z.number(),
@@ -3738,7 +3738,7 @@ export const Evaluations2$outboundSchema: z.ZodType<
3738
3738
  humanReviewId: z.string(),
3739
3739
  source: EvaluationsSource$outboundSchema.default("orq"),
3740
3740
  reviewedById: z.string(),
3741
- reviewedAt: z.date().default(() => new Date("2025-12-11T05:01:44.185Z"))
3741
+ reviewedAt: z.date().default(() => new Date("2025-12-11T11:32:45.717Z"))
3742
3742
  .transform(v => v.toISOString()),
3743
3743
  type: z.literal("number"),
3744
3744
  value: z.number(),
@@ -3792,7 +3792,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
3792
3792
  source: Source$inboundSchema.default("orq"),
3793
3793
  reviewed_by_id: z.string(),
3794
3794
  reviewed_at: z.string().datetime({ offset: true }).default(
3795
- "2025-12-11T05:01:44.184Z",
3795
+ "2025-12-11T11:32:45.716Z",
3796
3796
  ).transform(v => new Date(v)),
3797
3797
  type: z.literal("string"),
3798
3798
  value: z.string(),
@@ -3827,7 +3827,7 @@ export const Evaluations1$outboundSchema: z.ZodType<
3827
3827
  humanReviewId: z.string(),
3828
3828
  source: Source$outboundSchema.default("orq"),
3829
3829
  reviewedById: z.string(),
3830
- reviewedAt: z.date().default(() => new Date("2025-12-11T05:01:44.184Z"))
3830
+ reviewedAt: z.date().default(() => new Date("2025-12-11T11:32:45.716Z"))
3831
3831
  .transform(v => v.toISOString()),
3832
3832
  type: z.literal("string"),
3833
3833
  value: z.string(),
@@ -3932,7 +3932,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
3932
3932
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
3933
3933
  .optional(),
3934
3934
  updated: z.string().datetime({ offset: true }).default(
3935
- "2025-12-11T05:01:28.270Z",
3935
+ "2025-12-11T11:32:34.632Z",
3936
3936
  ).transform(v => new Date(v)),
3937
3937
  }).transform((v) => {
3938
3938
  return remap$(v, {
@@ -4010,7 +4010,7 @@ export const CreateDatasetItemResponseBody$outboundSchema: z.ZodType<
4010
4010
  createdById: z.string().optional(),
4011
4011
  updatedById: z.string().optional(),
4012
4012
  created: z.date().transform(v => v.toISOString()).optional(),
4013
- updated: z.date().default(() => new Date("2025-12-11T05:01:28.270Z"))
4013
+ updated: z.date().default(() => new Date("2025-12-11T11:32:34.632Z"))
4014
4014
  .transform(v => v.toISOString()),
4015
4015
  }).transform((v) => {
4016
4016
  return remap$(v, {