@orq-ai/node 3.6.5 → 3.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/FUNCTIONS.md +5 -22
  2. package/README.md +45 -47
  3. package/bin/mcp-server.js +43 -43
  4. package/bin/mcp-server.js.map +23 -23
  5. package/docs/sdks/contacts/README.md +5 -9
  6. package/docs/sdks/datasets/README.md +65 -111
  7. package/docs/sdks/deployments/README.md +34 -44
  8. package/docs/sdks/feedback/README.md +5 -9
  9. package/docs/sdks/files/README.md +20 -34
  10. package/docs/sdks/knowledge/README.md +80 -138
  11. package/docs/sdks/metrics/README.md +5 -9
  12. package/docs/sdks/models/README.md +5 -9
  13. package/docs/sdks/prompts/README.md +35 -61
  14. package/docs/sdks/remoteconfigs/README.md +5 -9
  15. package/jsr.json +1 -1
  16. package/lib/config.d.ts +3 -3
  17. package/lib/config.js +3 -3
  18. package/mcp-server/mcp-server.js +1 -1
  19. package/mcp-server/server.js +1 -1
  20. package/models/errors/apierror.d.ts +14 -2
  21. package/models/errors/apierror.d.ts.map +1 -1
  22. package/models/errors/apierror.js +1 -1
  23. package/models/errors/apierror.js.map +1 -1
  24. package/models/operations/bulkcreatedatapoints.js +2 -2
  25. package/models/operations/createcontact.js +2 -2
  26. package/models/operations/createdataset.js +2 -2
  27. package/models/operations/createdatasetitem.js +2 -2
  28. package/models/operations/createdatasource.js +2 -2
  29. package/models/operations/fileget.js +2 -2
  30. package/models/operations/filelist.js +2 -2
  31. package/models/operations/fileupload.js +2 -2
  32. package/models/operations/listdatasetdatapoints.js +2 -2
  33. package/models/operations/listdatasets.js +2 -2
  34. package/models/operations/listdatasources.js +2 -2
  35. package/models/operations/retrievedatapoint.js +2 -2
  36. package/models/operations/retrievedataset.js +2 -2
  37. package/models/operations/retrievedatasource.js +2 -2
  38. package/models/operations/updatedatapoint.js +2 -2
  39. package/models/operations/updatedataset.js +2 -2
  40. package/models/operations/updatedatasource.js +2 -2
  41. package/package.json +1 -1
  42. package/packages/orq-rc/FUNCTIONS.md +5 -22
  43. package/packages/orq-rc/README.md +129 -47
  44. package/packages/orq-rc/docs/sdks/contacts/README.md +344 -11
  45. package/packages/orq-rc/docs/sdks/datasets/README.md +60 -102
  46. package/packages/orq-rc/docs/sdks/deployments/README.md +34 -44
  47. package/packages/orq-rc/docs/sdks/evals/README.md +175 -315
  48. package/packages/orq-rc/docs/sdks/feedback/README.md +5 -9
  49. package/packages/orq-rc/docs/sdks/files/README.md +20 -34
  50. package/packages/orq-rc/docs/sdks/knowledge/README.md +80 -138
  51. package/packages/orq-rc/docs/sdks/metrics/README.md +5 -9
  52. package/packages/orq-rc/docs/sdks/models/README.md +5 -9
  53. package/packages/orq-rc/docs/sdks/prompts/README.md +35 -61
  54. package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +5 -9
  55. package/packages/orq-rc/jsr.json +1 -1
  56. package/packages/orq-rc/package-lock.json +2 -2
  57. package/packages/orq-rc/package.json +1 -1
  58. package/packages/orq-rc/src/funcs/contactsCreate.ts +12 -7
  59. package/packages/orq-rc/src/funcs/contactsDelete.ts +172 -0
  60. package/packages/orq-rc/src/funcs/contactsList.ts +165 -0
  61. package/packages/orq-rc/src/funcs/contactsRetrieve.ts +171 -0
  62. package/packages/orq-rc/src/funcs/contactsUpdate.ts +172 -0
  63. package/packages/orq-rc/src/lib/config.ts +3 -3
  64. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  65. package/packages/orq-rc/src/mcp-server/server.ts +9 -1
  66. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +3 -3
  67. package/packages/orq-rc/src/mcp-server/tools/contactsDelete.ts +35 -0
  68. package/packages/orq-rc/src/mcp-server/tools/contactsList.ts +37 -0
  69. package/packages/orq-rc/src/mcp-server/tools/contactsRetrieve.ts +37 -0
  70. package/packages/orq-rc/src/mcp-server/tools/contactsUpdate.ts +37 -0
  71. package/packages/orq-rc/src/models/errors/apierror.ts +18 -3
  72. package/packages/orq-rc/src/models/errors/deletecontact.ts +81 -0
  73. package/packages/orq-rc/src/models/errors/index.ts +3 -0
  74. package/packages/orq-rc/src/models/errors/retrievecontact.ts +81 -0
  75. package/packages/orq-rc/src/models/errors/updatecontact.ts +74 -0
  76. package/packages/orq-rc/src/models/operations/createcontact.ts +30 -19
  77. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  78. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
  79. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  80. package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
  81. package/packages/orq-rc/src/models/operations/deletecontact.ts +69 -0
  82. package/packages/orq-rc/src/models/operations/deployments.ts +69 -59
  83. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  84. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  85. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  86. package/packages/orq-rc/src/models/operations/index.ts +4 -0
  87. package/packages/orq-rc/src/models/operations/listcontacts.ts +490 -0
  88. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
  89. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  90. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  91. package/packages/orq-rc/src/models/operations/retrievecontact.ts +210 -0
  92. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
  93. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  94. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  95. package/packages/orq-rc/src/models/operations/updatecontact.ts +325 -0
  96. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
  97. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  98. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  99. package/packages/orq-rc/src/sdk/contacts.ts +75 -3
  100. package/src/lib/config.ts +3 -3
  101. package/src/mcp-server/mcp-server.ts +1 -1
  102. package/src/mcp-server/server.ts +1 -1
  103. package/src/models/errors/apierror.ts +18 -3
  104. package/src/models/operations/bulkcreatedatapoints.ts +2 -2
  105. package/src/models/operations/createcontact.ts +2 -2
  106. package/src/models/operations/createdataset.ts +2 -2
  107. package/src/models/operations/createdatasetitem.ts +2 -2
  108. package/src/models/operations/createdatasource.ts +2 -2
  109. package/src/models/operations/fileget.ts +2 -2
  110. package/src/models/operations/filelist.ts +2 -2
  111. package/src/models/operations/fileupload.ts +2 -2
  112. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  113. package/src/models/operations/listdatasets.ts +2 -2
  114. package/src/models/operations/listdatasources.ts +2 -2
  115. package/src/models/operations/retrievedatapoint.ts +2 -2
  116. package/src/models/operations/retrievedataset.ts +2 -2
  117. package/src/models/operations/retrievedatasource.ts +2 -2
  118. package/src/models/operations/updatedatapoint.ts +2 -2
  119. package/src/models/operations/updatedataset.ts +2 -2
  120. package/src/models/operations/updatedatasource.ts +2 -2
@@ -4,6 +4,7 @@
4
4
 
5
5
  export * from "./apierror.js";
6
6
  export * from "./createeval.js";
7
+ export * from "./deletecontact.js";
7
8
  export * from "./evalsageappropriate.js";
8
9
  export * from "./evalsbleuscore.js";
9
10
  export * from "./evalsbotdetection.js";
@@ -40,6 +41,8 @@ export * from "./evalsvalidjson.js";
40
41
  export * from "./getpromptversion.js";
41
42
  export * from "./honoapierror.js";
42
43
  export * from "./httpclienterrors.js";
44
+ export * from "./retrievecontact.js";
43
45
  export * from "./runbertscore.js";
44
46
  export * from "./sdkvalidationerror.js";
47
+ export * from "./updatecontact.js";
45
48
  export * from "./updateprompt.js";
@@ -0,0 +1,81 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ /**
8
+ * Contact not found
9
+ */
10
+ export type RetrieveContactResponseBodyData = {
11
+ /**
12
+ * Error message
13
+ */
14
+ error: string;
15
+ };
16
+
17
+ /**
18
+ * Contact not found
19
+ */
20
+ export class RetrieveContactResponseBody extends Error {
21
+ /**
22
+ * Error message
23
+ */
24
+ error: string;
25
+
26
+ /** The original data that was passed to this error instance. */
27
+ data$: RetrieveContactResponseBodyData;
28
+
29
+ constructor(err: RetrieveContactResponseBodyData) {
30
+ const message = "message" in err && typeof err.message === "string"
31
+ ? err.message
32
+ : `API error occurred: ${JSON.stringify(err)}`;
33
+ super(message);
34
+ this.data$ = err;
35
+
36
+ this.error = err.error;
37
+
38
+ this.name = "RetrieveContactResponseBody";
39
+ }
40
+ }
41
+
42
+ /** @internal */
43
+ export const RetrieveContactResponseBody$inboundSchema: z.ZodType<
44
+ RetrieveContactResponseBody,
45
+ z.ZodTypeDef,
46
+ unknown
47
+ > = z.object({
48
+ error: z.string(),
49
+ })
50
+ .transform((v) => {
51
+ return new RetrieveContactResponseBody(v);
52
+ });
53
+
54
+ /** @internal */
55
+ export type RetrieveContactResponseBody$Outbound = {
56
+ error: string;
57
+ };
58
+
59
+ /** @internal */
60
+ export const RetrieveContactResponseBody$outboundSchema: z.ZodType<
61
+ RetrieveContactResponseBody$Outbound,
62
+ z.ZodTypeDef,
63
+ RetrieveContactResponseBody
64
+ > = z.instanceof(RetrieveContactResponseBody)
65
+ .transform(v => v.data$)
66
+ .pipe(z.object({
67
+ error: z.string(),
68
+ }));
69
+
70
+ /**
71
+ * @internal
72
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
73
+ */
74
+ export namespace RetrieveContactResponseBody$ {
75
+ /** @deprecated use `RetrieveContactResponseBody$inboundSchema` instead. */
76
+ export const inboundSchema = RetrieveContactResponseBody$inboundSchema;
77
+ /** @deprecated use `RetrieveContactResponseBody$outboundSchema` instead. */
78
+ export const outboundSchema = RetrieveContactResponseBody$outboundSchema;
79
+ /** @deprecated use `RetrieveContactResponseBody$Outbound` instead. */
80
+ export type Outbound = RetrieveContactResponseBody$Outbound;
81
+ }
@@ -0,0 +1,74 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ /**
8
+ * Contact not found
9
+ */
10
+ export type UpdateContactResponseBodyData = {
11
+ /**
12
+ * Error message
13
+ */
14
+ message: string;
15
+ };
16
+
17
+ /**
18
+ * Contact not found
19
+ */
20
+ export class UpdateContactResponseBody extends Error {
21
+ /** The original data that was passed to this error instance. */
22
+ data$: UpdateContactResponseBodyData;
23
+
24
+ constructor(err: UpdateContactResponseBodyData) {
25
+ const message = "message" in err && typeof err.message === "string"
26
+ ? err.message
27
+ : `API error occurred: ${JSON.stringify(err)}`;
28
+ super(message);
29
+ this.data$ = err;
30
+
31
+ this.name = "UpdateContactResponseBody";
32
+ }
33
+ }
34
+
35
+ /** @internal */
36
+ export const UpdateContactResponseBody$inboundSchema: z.ZodType<
37
+ UpdateContactResponseBody,
38
+ z.ZodTypeDef,
39
+ unknown
40
+ > = z.object({
41
+ message: z.string(),
42
+ })
43
+ .transform((v) => {
44
+ return new UpdateContactResponseBody(v);
45
+ });
46
+
47
+ /** @internal */
48
+ export type UpdateContactResponseBody$Outbound = {
49
+ message: string;
50
+ };
51
+
52
+ /** @internal */
53
+ export const UpdateContactResponseBody$outboundSchema: z.ZodType<
54
+ UpdateContactResponseBody$Outbound,
55
+ z.ZodTypeDef,
56
+ UpdateContactResponseBody
57
+ > = z.instanceof(UpdateContactResponseBody)
58
+ .transform(v => v.data$)
59
+ .pipe(z.object({
60
+ message: z.string(),
61
+ }));
62
+
63
+ /**
64
+ * @internal
65
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
66
+ */
67
+ export namespace UpdateContactResponseBody$ {
68
+ /** @deprecated use `UpdateContactResponseBody$inboundSchema` instead. */
69
+ export const inboundSchema = UpdateContactResponseBody$inboundSchema;
70
+ /** @deprecated use `UpdateContactResponseBody$outboundSchema` instead. */
71
+ export const outboundSchema = UpdateContactResponseBody$outboundSchema;
72
+ /** @deprecated use `UpdateContactResponseBody$Outbound` instead. */
73
+ export type Outbound = UpdateContactResponseBody$Outbound;
74
+ }
@@ -9,65 +9,69 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  /**
12
- * Update user information payload
12
+ * Contact profile information
13
13
  */
14
14
  export type CreateContactRequestBody = {
15
15
  /**
16
- * Unique string value to identify the contact user in the customer's system
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
17
  */
18
18
  externalId: string;
19
19
  /**
20
- * Display name or nickname of the user
20
+ * Display name or nickname of the contact user. This is typically shown in user interfaces.
21
21
  */
22
22
  displayName?: string | null | undefined;
23
23
  /**
24
- * Email address of the user
24
+ * Email address of the contact user
25
25
  */
26
26
  email?: string | null | undefined;
27
27
  /**
28
- * URL linking to the user's avatar image
28
+ * URL linking to the contact user's avatar image
29
29
  */
30
30
  avatarUrl?: string | null | undefined;
31
31
  /**
32
- * Array of UUIDs representing tags associated with the user
32
+ * Array of tags associated with the contact. Useful for organizing and filtering contacts by categories, departments, or custom classifications.
33
33
  */
34
34
  tags?: Array<string> | undefined;
35
35
  /**
36
- * Additional custom metadata associated with the user as key-value pairs
36
+ * Additional custom metadata associated with the contact as key-value pairs. Use this to store any extra information specific to your application.
37
37
  */
38
38
  metadata?: { [k: string]: any } | undefined;
39
39
  };
40
40
 
41
41
  /**
42
- * Successful operation
42
+ * Created Contact
43
43
  */
44
44
  export type CreateContactResponseBody = {
45
45
  /**
46
- * Unique ULID (Universally Unique Lexicographically Sortable Identifier) for the user
46
+ * Unique ULID (Universally Unique Lexicographically Sortable Identifier) for the contact
47
47
  */
48
48
  id: string;
49
49
  /**
50
- * Unique string value to identify the contact user in the customer's system
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
51
  */
52
52
  externalId: string;
53
53
  /**
54
- * Display name or nickname of the user
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.
55
59
  */
56
60
  displayName?: string | null | undefined;
57
61
  /**
58
- * Email address of the user
62
+ * Email address of the contact user
59
63
  */
60
64
  email?: string | null | undefined;
61
65
  /**
62
- * URL linking to the user's avatar image
66
+ * URL linking to the contact user's avatar image
63
67
  */
64
68
  avatarUrl?: string | null | undefined;
65
69
  /**
66
- * Array of UUIDs representing tags associated with the user
70
+ * Array of tags associated with the contact. Useful for organizing and filtering contacts by categories, departments, or custom classifications.
67
71
  */
68
72
  tags?: Array<string> | undefined;
69
73
  /**
70
- * Additional custom metadata associated with the user as key-value pairs
74
+ * Additional custom metadata associated with the contact as key-value pairs. Use this to store any extra information specific to your application.
71
75
  */
72
76
  metadata?: { [k: string]: any } | undefined;
73
77
  /**
@@ -167,8 +171,9 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
167
171
  z.ZodTypeDef,
168
172
  unknown
169
173
  > = z.object({
170
- id: z.string(),
174
+ _id: z.string(),
171
175
  external_id: z.string(),
176
+ workspace_id: z.string(),
172
177
  display_name: z.nullable(z.string()).optional(),
173
178
  email: z.nullable(z.string()).optional(),
174
179
  avatar_url: z.nullable(z.string()).optional(),
@@ -177,11 +182,13 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
177
182
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
178
183
  .optional(),
179
184
  updated: z.string().datetime({ offset: true }).default(
180
- "2025-06-03T12:31:41.205Z",
185
+ "2025-06-04T07:24:10.431Z",
181
186
  ).transform(v => new Date(v)),
182
187
  }).transform((v) => {
183
188
  return remap$(v, {
189
+ "_id": "id",
184
190
  "external_id": "externalId",
191
+ "workspace_id": "workspaceId",
185
192
  "display_name": "displayName",
186
193
  "avatar_url": "avatarUrl",
187
194
  });
@@ -189,8 +196,9 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
189
196
 
190
197
  /** @internal */
191
198
  export type CreateContactResponseBody$Outbound = {
192
- id: string;
199
+ _id: string;
193
200
  external_id: string;
201
+ workspace_id: string;
194
202
  display_name?: string | null | undefined;
195
203
  email?: string | null | undefined;
196
204
  avatar_url?: string | null | undefined;
@@ -208,17 +216,20 @@ export const CreateContactResponseBody$outboundSchema: z.ZodType<
208
216
  > = z.object({
209
217
  id: z.string(),
210
218
  externalId: z.string(),
219
+ workspaceId: z.string(),
211
220
  displayName: z.nullable(z.string()).optional(),
212
221
  email: z.nullable(z.string()).optional(),
213
222
  avatarUrl: z.nullable(z.string()).optional(),
214
223
  tags: z.array(z.string()).optional(),
215
224
  metadata: z.record(z.any()).optional(),
216
225
  created: z.date().transform(v => v.toISOString()).optional(),
217
- updated: z.date().default(() => new Date("2025-06-03T12:31:41.205Z"))
226
+ updated: z.date().default(() => new Date("2025-06-04T07:24:10.431Z"))
218
227
  .transform(v => v.toISOString()),
219
228
  }).transform((v) => {
220
229
  return remap$(v, {
230
+ id: "_id",
221
231
  externalId: "external_id",
232
+ workspaceId: "workspace_id",
222
233
  displayName: "display_name",
223
234
  avatarUrl: "avatar_url",
224
235
  });
@@ -211,7 +211,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
211
211
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
212
212
  .optional(),
213
213
  updated: z.string().datetime({ offset: true }).default(
214
- "2025-06-03T12:31:41.205Z",
214
+ "2025-06-04T07:24:10.431Z",
215
215
  ).transform(v => new Date(v)),
216
216
  }).transform((v) => {
217
217
  return remap$(v, {
@@ -251,7 +251,7 @@ export const CreateDatasetResponseBody$outboundSchema: z.ZodType<
251
251
  updatedById: z.string().optional(),
252
252
  metadata: z.lazy(() => CreateDatasetMetadata$outboundSchema),
253
253
  created: z.date().transform(v => v.toISOString()).optional(),
254
- updated: z.date().default(() => new Date("2025-06-03T12:31:41.205Z"))
254
+ updated: z.date().default(() => new Date("2025-06-04T07:24:10.431Z"))
255
255
  .transform(v => v.toISOString()),
256
256
  }).transform((v) => {
257
257
  return remap$(v, {
@@ -5111,7 +5111,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
5111
5111
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
5112
5112
  .optional(),
5113
5113
  updated: z.string().datetime({ offset: true }).default(
5114
- "2025-06-03T12:31:41.205Z",
5114
+ "2025-06-04T07:24:10.431Z",
5115
5115
  ).transform(v => new Date(v)),
5116
5116
  }).transform((v) => {
5117
5117
  return remap$(v, {
@@ -5175,7 +5175,7 @@ export const CreateDatasetItemResponseBody$outboundSchema: z.ZodType<
5175
5175
  createdById: z.string().optional(),
5176
5176
  updatedById: z.string().optional(),
5177
5177
  created: z.date().transform(v => v.toISOString()).optional(),
5178
- updated: z.date().default(() => new Date("2025-06-03T12:31:41.205Z"))
5178
+ updated: z.date().default(() => new Date("2025-06-04T07:24:10.431Z"))
5179
5179
  .transform(v => v.toISOString()),
5180
5180
  }).transform((v) => {
5181
5181
  return remap$(v, {
@@ -751,7 +751,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
751
751
  z.ZodTypeDef,
752
752
  unknown
753
753
  > = z.object({
754
- _id: z.string().default("01JWTWDH176FKJKAPWKTFHJ74N"),
754
+ _id: z.string().default("01JWWX75X1DQ5C4K058TB9AHJP"),
755
755
  display_name: z.string(),
756
756
  description: z.string().optional(),
757
757
  status: CreateDatasourceStatus$inboundSchema,
@@ -795,7 +795,7 @@ export const CreateDatasourceResponseBody$outboundSchema: z.ZodType<
795
795
  z.ZodTypeDef,
796
796
  CreateDatasourceResponseBody
797
797
  > = z.object({
798
- id: z.string().default("01JWTWDH176FKJKAPWKTFHJ74N"),
798
+ id: z.string().default("01JWWX75X1DQ5C4K058TB9AHJP"),
799
799
  displayName: z.string(),
800
800
  description: z.string().optional(),
801
801
  status: CreateDatasourceStatus$outboundSchema,
@@ -2399,8 +2399,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
2399
2399
  > = z.object({
2400
2400
  _id: z.string(),
2401
2401
  description: z.string(),
2402
- created: z.string().default("2025-06-03T12:31:43.231Z"),
2403
- updated: z.string().default("2025-06-03T12:31:43.231Z"),
2402
+ created: z.string().default("2025-06-04T07:24:12.605Z"),
2403
+ updated: z.string().default("2025-06-04T07:24:12.605Z"),
2404
2404
  guardrail_config: z.union([
2405
2405
  z.lazy(() =>
2406
2406
  CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema
@@ -2442,8 +2442,8 @@ export const ResponseBodyPython$outboundSchema: z.ZodType<
2442
2442
  > = z.object({
2443
2443
  id: z.string(),
2444
2444
  description: z.string(),
2445
- created: z.string().default("2025-06-03T12:31:43.231Z"),
2446
- updated: z.string().default("2025-06-03T12:31:43.231Z"),
2445
+ created: z.string().default("2025-06-04T07:24:12.605Z"),
2446
+ updated: z.string().default("2025-06-04T07:24:12.605Z"),
2447
2447
  guardrailConfig: z.union([
2448
2448
  z.lazy(() =>
2449
2449
  CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$outboundSchema
@@ -2856,8 +2856,8 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
2856
2856
  > = z.object({
2857
2857
  _id: z.string(),
2858
2858
  description: z.string(),
2859
- created: z.string().default("2025-06-03T12:31:43.231Z"),
2860
- updated: z.string().default("2025-06-03T12:31:43.231Z"),
2859
+ created: z.string().default("2025-06-04T07:24:12.605Z"),
2860
+ updated: z.string().default("2025-06-04T07:24:12.605Z"),
2861
2861
  guardrail_config: z.union([
2862
2862
  z.lazy(() =>
2863
2863
  CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
@@ -2905,8 +2905,8 @@ export const ResponseBodyHTTP$outboundSchema: z.ZodType<
2905
2905
  > = z.object({
2906
2906
  id: z.string(),
2907
2907
  description: z.string(),
2908
- created: z.string().default("2025-06-03T12:31:43.231Z"),
2909
- updated: z.string().default("2025-06-03T12:31:43.231Z"),
2908
+ created: z.string().default("2025-06-04T07:24:12.605Z"),
2909
+ updated: z.string().default("2025-06-04T07:24:12.605Z"),
2910
2910
  guardrailConfig: z.union([
2911
2911
  z.lazy(() =>
2912
2912
  CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$outboundSchema
@@ -3283,8 +3283,8 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
3283
3283
  > = z.object({
3284
3284
  _id: z.string(),
3285
3285
  description: z.string(),
3286
- created: z.string().default("2025-06-03T12:31:43.231Z"),
3287
- updated: z.string().default("2025-06-03T12:31:43.231Z"),
3286
+ created: z.string().default("2025-06-04T07:24:12.605Z"),
3287
+ updated: z.string().default("2025-06-04T07:24:12.605Z"),
3288
3288
  guardrail_config: z.union([
3289
3289
  z.lazy(() =>
3290
3290
  CreateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema
@@ -3324,8 +3324,8 @@ export const ResponseBodyJSON$outboundSchema: z.ZodType<
3324
3324
  > = z.object({
3325
3325
  id: z.string(),
3326
3326
  description: z.string(),
3327
- created: z.string().default("2025-06-03T12:31:43.231Z"),
3328
- updated: z.string().default("2025-06-03T12:31:43.231Z"),
3327
+ created: z.string().default("2025-06-04T07:24:12.605Z"),
3328
+ updated: z.string().default("2025-06-04T07:24:12.605Z"),
3329
3329
  guardrailConfig: z.union([
3330
3330
  z.lazy(() =>
3331
3331
  CreateEvalGuardrailConfigEvalsResponse200Boolean$outboundSchema
@@ -3680,8 +3680,8 @@ export const ResponseBodyLLM$inboundSchema: z.ZodType<
3680
3680
  > = z.object({
3681
3681
  _id: z.string(),
3682
3682
  description: z.string(),
3683
- created: z.string().default("2025-06-03T12:31:43.231Z"),
3684
- updated: z.string().default("2025-06-03T12:31:43.231Z"),
3683
+ created: z.string().default("2025-06-04T07:24:12.605Z"),
3684
+ updated: z.string().default("2025-06-04T07:24:12.605Z"),
3685
3685
  guardrail_config: z.union([
3686
3686
  z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
3687
3687
  z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
@@ -3721,8 +3721,8 @@ export const ResponseBodyLLM$outboundSchema: z.ZodType<
3721
3721
  > = z.object({
3722
3722
  id: z.string(),
3723
3723
  description: z.string(),
3724
- created: z.string().default("2025-06-03T12:31:43.231Z"),
3725
- updated: z.string().default("2025-06-03T12:31:43.231Z"),
3724
+ created: z.string().default("2025-06-04T07:24:12.605Z"),
3725
+ updated: z.string().default("2025-06-04T07:24:12.605Z"),
3726
3726
  guardrailConfig: z.union([
3727
3727
  z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema),
3728
3728
  z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
@@ -0,0 +1,69 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
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 DeleteContactRequest = {
11
+ /**
12
+ * Contact ID or External ID
13
+ */
14
+ id: string;
15
+ };
16
+
17
+ /** @internal */
18
+ export const DeleteContactRequest$inboundSchema: z.ZodType<
19
+ DeleteContactRequest,
20
+ z.ZodTypeDef,
21
+ unknown
22
+ > = z.object({
23
+ id: z.string(),
24
+ });
25
+
26
+ /** @internal */
27
+ export type DeleteContactRequest$Outbound = {
28
+ id: string;
29
+ };
30
+
31
+ /** @internal */
32
+ export const DeleteContactRequest$outboundSchema: z.ZodType<
33
+ DeleteContactRequest$Outbound,
34
+ z.ZodTypeDef,
35
+ DeleteContactRequest
36
+ > = z.object({
37
+ id: z.string(),
38
+ });
39
+
40
+ /**
41
+ * @internal
42
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
43
+ */
44
+ export namespace DeleteContactRequest$ {
45
+ /** @deprecated use `DeleteContactRequest$inboundSchema` instead. */
46
+ export const inboundSchema = DeleteContactRequest$inboundSchema;
47
+ /** @deprecated use `DeleteContactRequest$outboundSchema` instead. */
48
+ export const outboundSchema = DeleteContactRequest$outboundSchema;
49
+ /** @deprecated use `DeleteContactRequest$Outbound` instead. */
50
+ export type Outbound = DeleteContactRequest$Outbound;
51
+ }
52
+
53
+ export function deleteContactRequestToJSON(
54
+ deleteContactRequest: DeleteContactRequest,
55
+ ): string {
56
+ return JSON.stringify(
57
+ DeleteContactRequest$outboundSchema.parse(deleteContactRequest),
58
+ );
59
+ }
60
+
61
+ export function deleteContactRequestFromJSON(
62
+ jsonString: string,
63
+ ): SafeParseResult<DeleteContactRequest, SDKValidationError> {
64
+ return safeParse(
65
+ jsonString,
66
+ (x) => DeleteContactRequest$inboundSchema.parse(JSON.parse(x)),
67
+ `Failed to parse 'DeleteContactRequest' from JSON`,
68
+ );
69
+ }