@orq-ai/node 4.9.16 → 4.9.18

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 (196) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +3 -3
  3. package/lib/config.js +3 -3
  4. package/models/components/reasoningpart.js +1 -1
  5. package/models/operations/createcontact.js +1 -1
  6. package/models/operations/createdataset.js +1 -1
  7. package/models/operations/createdatasetitem.js +4 -4
  8. package/models/operations/createdatasource.js +1 -1
  9. package/models/operations/createeval.js +16 -16
  10. package/models/operations/createidentity.js +1 -1
  11. package/models/operations/createtool.js +6 -6
  12. package/models/operations/getalltools.js +6 -6
  13. package/models/operations/getevals.js +16 -16
  14. package/models/operations/getv2humanevalsets.js +2 -2
  15. package/models/operations/getv2humanevalsetsid.js +2 -2
  16. package/models/operations/listdatasetdatapoints.js +4 -4
  17. package/models/operations/listdatasets.js +1 -1
  18. package/models/operations/listdatasources.js +1 -1
  19. package/models/operations/listidentities.js +1 -1
  20. package/models/operations/patchv2humanevalsetsid.js +2 -2
  21. package/models/operations/postv2feedbackevaluation.js +3 -3
  22. package/models/operations/postv2humanevalsets.js +2 -2
  23. package/models/operations/retrievedatapoint.js +4 -4
  24. package/models/operations/retrievedataset.js +1 -1
  25. package/models/operations/retrievedatasource.js +1 -1
  26. package/models/operations/retrieveidentity.js +1 -1
  27. package/models/operations/retrievetool.js +6 -6
  28. package/models/operations/runagent.js +1 -1
  29. package/models/operations/streamrunagent.js +1 -1
  30. package/models/operations/updatedatapoint.js +4 -4
  31. package/models/operations/updatedataset.js +1 -1
  32. package/models/operations/updatedatasource.js +1 -1
  33. package/models/operations/updateeval.js +16 -16
  34. package/models/operations/updateidentity.js +1 -1
  35. package/models/operations/updatetool.js +7 -7
  36. package/package.json +6 -6
  37. package/packages/orq-rc/src/funcs/identitiesCreate.ts +10 -15
  38. package/packages/orq-rc/src/funcs/identitiesDelete.ts +7 -16
  39. package/packages/orq-rc/src/funcs/identitiesList.ts +6 -5
  40. package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +6 -18
  41. package/packages/orq-rc/src/funcs/identitiesUpdate.ts +9 -15
  42. package/packages/orq-rc/src/funcs/{remoteconfigsRetrieve.ts → modelsList.ts} +14 -33
  43. package/packages/orq-rc/src/funcs/projectsCreate.ts +1 -1
  44. package/packages/orq-rc/src/funcs/projectsDelete.ts +3 -0
  45. package/packages/orq-rc/src/funcs/projectsList.ts +1 -1
  46. package/packages/orq-rc/src/funcs/{contactsCreate.ts → reportingQuery.ts} +13 -13
  47. package/packages/orq-rc/src/funcs/skillsCreate.ts +1 -1
  48. package/packages/orq-rc/src/funcs/skillsDelete.ts +3 -0
  49. package/packages/orq-rc/src/funcs/skillsGet.ts +1 -1
  50. package/packages/orq-rc/src/funcs/skillsList.ts +1 -1
  51. package/packages/orq-rc/src/funcs/skillsUpdate.ts +1 -1
  52. package/packages/orq-rc/src/lib/config.ts +3 -3
  53. package/packages/orq-rc/src/models/components/createidentityrequest.ts +76 -0
  54. package/packages/orq-rc/src/models/components/createidentityresponse.ts +32 -0
  55. package/packages/orq-rc/src/models/components/createprojectrequest.ts +6 -0
  56. package/packages/orq-rc/src/models/components/createprojectresponse.ts +3 -0
  57. package/packages/orq-rc/src/models/components/createskillrequest.ts +18 -0
  58. package/packages/orq-rc/src/models/components/createskillresponse.ts +3 -0
  59. package/packages/orq-rc/src/models/components/datapoint.ts +60 -0
  60. package/packages/orq-rc/src/models/components/deleteidentityresponse.ts +27 -0
  61. package/packages/orq-rc/src/models/components/file.ts +0 -3
  62. package/packages/orq-rc/src/models/components/filter.ts +137 -0
  63. package/packages/orq-rc/src/models/components/getprojectresponse.ts +3 -0
  64. package/packages/orq-rc/src/models/components/getskillresponse.ts +3 -0
  65. package/packages/orq-rc/src/models/components/identity.ts +83 -0
  66. package/packages/orq-rc/src/models/components/identitymetrics.ts +45 -0
  67. package/packages/orq-rc/src/models/components/index.ts +16 -0
  68. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +17 -10
  69. package/packages/orq-rc/src/models/components/listidentitiesresponse.ts +41 -0
  70. package/packages/orq-rc/src/models/components/listprojectsresponse.ts +12 -0
  71. package/packages/orq-rc/src/models/components/listskillsresponse.ts +12 -0
  72. package/packages/orq-rc/src/models/components/modelref.ts +6 -0
  73. package/packages/orq-rc/src/models/components/project.ts +42 -3
  74. package/packages/orq-rc/src/models/components/publicmodelentry.ts +70 -0
  75. package/packages/orq-rc/src/models/components/queryreportrequest.ts +237 -0
  76. package/packages/orq-rc/src/models/components/queryreportresponse.ts +99 -0
  77. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  78. package/packages/orq-rc/src/models/components/responsemeta.ts +103 -0
  79. package/packages/orq-rc/src/models/components/retrieveidentityresponse.ts +32 -0
  80. package/packages/orq-rc/src/models/components/skill.ts +37 -3
  81. package/packages/orq-rc/src/models/components/totals.ts +34 -0
  82. package/packages/orq-rc/src/models/components/updateidentityrequest.ts +75 -0
  83. package/packages/orq-rc/src/models/components/updateidentityresponse.ts +32 -0
  84. package/packages/orq-rc/src/models/components/updateprojectrequest.ts +12 -0
  85. package/packages/orq-rc/src/models/components/updateprojectresponse.ts +3 -0
  86. package/packages/orq-rc/src/models/components/updateskillrequest.ts +26 -0
  87. package/packages/orq-rc/src/models/components/updateskillresponse.ts +3 -0
  88. package/packages/orq-rc/src/models/errors/index.ts +0 -3
  89. package/packages/orq-rc/src/models/operations/createagentrequest.ts +3 -3
  90. package/packages/orq-rc/src/models/operations/createannotation.ts +7 -11
  91. package/packages/orq-rc/src/models/operations/createdataset.ts +4 -4
  92. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
  93. package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
  94. package/packages/orq-rc/src/models/operations/createeval.ts +45 -31
  95. package/packages/orq-rc/src/models/operations/createknowledge.ts +9 -9
  96. package/packages/orq-rc/src/models/operations/creatememorystore.ts +3 -3
  97. package/packages/orq-rc/src/models/operations/createprompt.ts +3 -3
  98. package/packages/orq-rc/src/models/operations/createtool.ts +36 -36
  99. package/packages/orq-rc/src/models/operations/deleteidentity.ts +0 -3
  100. package/packages/orq-rc/src/models/operations/getalltools.ts +21 -21
  101. package/packages/orq-rc/src/models/operations/getevals.ts +22 -16
  102. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +6 -6
  103. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  104. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  105. package/packages/orq-rc/src/models/operations/index.ts +1 -3
  106. package/packages/orq-rc/src/models/operations/invokeeval.ts +83 -80
  107. package/packages/orq-rc/src/models/operations/listagents.ts +3 -3
  108. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
  109. package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
  110. package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
  111. package/packages/orq-rc/src/models/operations/listidentities.ts +9 -230
  112. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +6 -6
  113. package/packages/orq-rc/src/models/operations/listmodels.ts +60 -0
  114. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  115. package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +14 -17
  116. package/packages/orq-rc/src/models/operations/postv2feedback.ts +34 -27
  117. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +3 -3
  118. package/packages/orq-rc/src/models/operations/postv2feedbackremove.ts +14 -17
  119. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  120. package/packages/orq-rc/src/models/operations/projectdelete.ts +3 -0
  121. package/packages/orq-rc/src/models/operations/projectget.ts +3 -0
  122. package/packages/orq-rc/src/models/operations/projectlist.ts +15 -0
  123. package/packages/orq-rc/src/models/operations/projectupdate.ts +3 -0
  124. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +3 -3
  125. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
  126. package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
  127. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
  128. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +3 -138
  129. package/packages/orq-rc/src/models/operations/retrievetool.ts +21 -21
  130. package/packages/orq-rc/src/models/operations/runagent.ts +4 -4
  131. package/packages/orq-rc/src/models/operations/skilldelete.ts +3 -0
  132. package/packages/orq-rc/src/models/operations/skilllist.ts +12 -0
  133. package/packages/orq-rc/src/models/operations/skillupdate.ts +3 -0
  134. package/packages/orq-rc/src/models/operations/streamrunagent.ts +4 -4
  135. package/packages/orq-rc/src/models/operations/updateagent.ts +6 -6
  136. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
  137. package/packages/orq-rc/src/models/operations/updatedataset.ts +4 -4
  138. package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
  139. package/packages/orq-rc/src/models/operations/updateeval.ts +30 -23
  140. package/packages/orq-rc/src/models/operations/updateidentity.ts +5 -154
  141. package/packages/orq-rc/src/models/operations/updateknowledge.ts +12 -12
  142. package/packages/orq-rc/src/models/operations/updateprompt.ts +3 -3
  143. package/packages/orq-rc/src/models/operations/updatetool.ts +37 -37
  144. package/packages/orq-rc/src/sdk/feedback.ts +8 -8
  145. package/packages/orq-rc/src/sdk/identities.ts +18 -17
  146. package/packages/orq-rc/src/sdk/models.ts +25 -0
  147. package/packages/orq-rc/src/sdk/projects.ts +5 -2
  148. package/packages/orq-rc/src/sdk/reporting.ts +27 -0
  149. package/packages/orq-rc/src/sdk/sdk.ts +22 -22
  150. package/packages/orq-rc/src/sdk/skills.ts +7 -4
  151. package/packages/orq-rc/src/types/async.ts +8 -7
  152. package/src/lib/config.ts +3 -3
  153. package/src/models/components/reasoningpart.ts +1 -1
  154. package/src/models/operations/createcontact.ts +1 -1
  155. package/src/models/operations/createdataset.ts +1 -1
  156. package/src/models/operations/createdatasetitem.ts +4 -4
  157. package/src/models/operations/createdatasource.ts +1 -1
  158. package/src/models/operations/createeval.ts +16 -16
  159. package/src/models/operations/createidentity.ts +1 -1
  160. package/src/models/operations/createtool.ts +6 -6
  161. package/src/models/operations/getalltools.ts +6 -6
  162. package/src/models/operations/getevals.ts +16 -16
  163. package/src/models/operations/getv2humanevalsets.ts +2 -2
  164. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  165. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  166. package/src/models/operations/listdatasets.ts +1 -1
  167. package/src/models/operations/listdatasources.ts +1 -1
  168. package/src/models/operations/listidentities.ts +1 -1
  169. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  170. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  171. package/src/models/operations/postv2humanevalsets.ts +2 -2
  172. package/src/models/operations/retrievedatapoint.ts +4 -4
  173. package/src/models/operations/retrievedataset.ts +1 -1
  174. package/src/models/operations/retrievedatasource.ts +1 -1
  175. package/src/models/operations/retrieveidentity.ts +1 -1
  176. package/src/models/operations/retrievetool.ts +6 -6
  177. package/src/models/operations/runagent.ts +1 -1
  178. package/src/models/operations/streamrunagent.ts +1 -1
  179. package/src/models/operations/updatedatapoint.ts +4 -4
  180. package/src/models/operations/updatedataset.ts +1 -1
  181. package/src/models/operations/updatedatasource.ts +1 -1
  182. package/src/models/operations/updateeval.ts +16 -16
  183. package/src/models/operations/updateidentity.ts +1 -1
  184. package/src/models/operations/updatetool.ts +7 -7
  185. package/src/types/async.ts +8 -7
  186. package/types/async.d.ts.map +1 -1
  187. package/types/async.js +8 -7
  188. package/types/async.js.map +1 -1
  189. package/packages/orq-rc/src/models/errors/deleteidentity.ts +0 -62
  190. package/packages/orq-rc/src/models/errors/retrieveidentity.ts +0 -118
  191. package/packages/orq-rc/src/models/errors/updateidentity.ts +0 -54
  192. package/packages/orq-rc/src/models/operations/createcontact.ts +0 -156
  193. package/packages/orq-rc/src/models/operations/createidentity.ts +0 -162
  194. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -108
  195. package/packages/orq-rc/src/sdk/contacts.ts +0 -27
  196. package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
@@ -1,156 +0,0 @@
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
- * Update user information payload
13
- */
14
- export type CreateContactRequestBody = {
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
- * Successful operation
43
- */
44
- export type CreateContactResponseBody = {
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
- * Display name or nickname of the contact user. This is typically shown in user interfaces.
55
- */
56
- displayName?: string | null | undefined;
57
- /**
58
- * Email address of the contact user
59
- */
60
- email?: string | null | undefined;
61
- /**
62
- * URL linking to the contact user's avatar image
63
- */
64
- avatarUrl?: string | null | undefined;
65
- /**
66
- * Array of tags associated with the contact. Useful for organizing and filtering contacts by categories, departments, or custom classifications.
67
- */
68
- tags?: Array<string> | undefined;
69
- /**
70
- * Additional custom metadata associated with the contact as key-value pairs. Use this to store any extra information specific to your application.
71
- */
72
- metadata?: { [k: string]: any } | undefined;
73
- /**
74
- * The date and time the resource was created
75
- */
76
- created?: Date | undefined;
77
- /**
78
- * The date and time the resource was last updated
79
- */
80
- updated: Date;
81
- };
82
-
83
- /** @internal */
84
- export type CreateContactRequestBody$Outbound = {
85
- external_id: string;
86
- display_name?: string | null | undefined;
87
- email?: string | null | undefined;
88
- avatar_url?: string | null | undefined;
89
- tags?: Array<string> | undefined;
90
- metadata?: { [k: string]: any } | undefined;
91
- };
92
-
93
- /** @internal */
94
- export const CreateContactRequestBody$outboundSchema: z.ZodType<
95
- CreateContactRequestBody$Outbound,
96
- z.ZodTypeDef,
97
- CreateContactRequestBody
98
- > = z.object({
99
- externalId: z.string(),
100
- displayName: z.nullable(z.string()).optional(),
101
- email: z.nullable(z.string()).optional(),
102
- avatarUrl: z.nullable(z.string()).optional(),
103
- tags: z.array(z.string()).optional(),
104
- metadata: z.record(z.any()).optional(),
105
- }).transform((v) => {
106
- return remap$(v, {
107
- externalId: "external_id",
108
- displayName: "display_name",
109
- avatarUrl: "avatar_url",
110
- });
111
- });
112
-
113
- export function createContactRequestBodyToJSON(
114
- createContactRequestBody: CreateContactRequestBody,
115
- ): string {
116
- return JSON.stringify(
117
- CreateContactRequestBody$outboundSchema.parse(createContactRequestBody),
118
- );
119
- }
120
-
121
- /** @internal */
122
- export const CreateContactResponseBody$inboundSchema: z.ZodType<
123
- CreateContactResponseBody,
124
- z.ZodTypeDef,
125
- unknown
126
- > = z.object({
127
- _id: z.string(),
128
- external_id: z.string(),
129
- display_name: z.nullable(z.string()).optional(),
130
- email: z.nullable(z.string()).optional(),
131
- avatar_url: z.nullable(z.string()).optional(),
132
- tags: z.array(z.string()).optional(),
133
- metadata: z.record(z.any()).optional(),
134
- created: z.string().datetime({ offset: true }).transform(v => new Date(v))
135
- .optional(),
136
- updated: z.string().datetime({ offset: true }).default(
137
- "2026-05-19T14:38:12.201Z",
138
- ).transform(v => new Date(v)),
139
- }).transform((v) => {
140
- return remap$(v, {
141
- "_id": "id",
142
- "external_id": "externalId",
143
- "display_name": "displayName",
144
- "avatar_url": "avatarUrl",
145
- });
146
- });
147
-
148
- export function createContactResponseBodyFromJSON(
149
- jsonString: string,
150
- ): SafeParseResult<CreateContactResponseBody, SDKValidationError> {
151
- return safeParse(
152
- jsonString,
153
- (x) => CreateContactResponseBody$inboundSchema.parse(JSON.parse(x)),
154
- `Failed to parse 'CreateContactResponseBody' from JSON`,
155
- );
156
- }
@@ -1,162 +0,0 @@
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;
85
- };
86
-
87
- /** @internal */
88
- export type CreateIdentityRequestBody$Outbound = {
89
- external_id: string;
90
- display_name?: string | null | undefined;
91
- email?: string | null | undefined;
92
- avatar_url?: string | null | undefined;
93
- tags?: Array<string> | undefined;
94
- metadata?: { [k: string]: any } | undefined;
95
- };
96
-
97
- /** @internal */
98
- export const CreateIdentityRequestBody$outboundSchema: z.ZodType<
99
- CreateIdentityRequestBody$Outbound,
100
- z.ZodTypeDef,
101
- CreateIdentityRequestBody
102
- > = z.object({
103
- externalId: z.string(),
104
- displayName: z.nullable(z.string()).optional(),
105
- email: z.nullable(z.string()).optional(),
106
- avatarUrl: z.nullable(z.string()).optional(),
107
- tags: z.array(z.string()).optional(),
108
- metadata: z.record(z.any()).optional(),
109
- }).transform((v) => {
110
- return remap$(v, {
111
- externalId: "external_id",
112
- displayName: "display_name",
113
- avatarUrl: "avatar_url",
114
- });
115
- });
116
-
117
- export function createIdentityRequestBodyToJSON(
118
- createIdentityRequestBody: CreateIdentityRequestBody,
119
- ): string {
120
- return JSON.stringify(
121
- CreateIdentityRequestBody$outboundSchema.parse(createIdentityRequestBody),
122
- );
123
- }
124
-
125
- /** @internal */
126
- export const CreateIdentityResponseBody$inboundSchema: z.ZodType<
127
- CreateIdentityResponseBody,
128
- z.ZodTypeDef,
129
- unknown
130
- > = z.object({
131
- _id: z.string(),
132
- external_id: z.string(),
133
- workspace_id: z.string(),
134
- display_name: z.nullable(z.string()).optional(),
135
- email: z.nullable(z.string()).optional(),
136
- avatar_url: z.nullable(z.string()).optional(),
137
- tags: z.array(z.string()).optional(),
138
- metadata: z.record(z.any()).optional(),
139
- created: z.string().datetime({ offset: true }).transform(v => new Date(v))
140
- .optional(),
141
- updated: z.string().datetime({ offset: true }).default(
142
- "2026-05-19T14:38:12.201Z",
143
- ).transform(v => new Date(v)),
144
- }).transform((v) => {
145
- return remap$(v, {
146
- "_id": "id",
147
- "external_id": "externalId",
148
- "workspace_id": "workspaceId",
149
- "display_name": "displayName",
150
- "avatar_url": "avatarUrl",
151
- });
152
- });
153
-
154
- export function createIdentityResponseBodyFromJSON(
155
- jsonString: string,
156
- ): SafeParseResult<CreateIdentityResponseBody, SDKValidationError> {
157
- return safeParse(
158
- jsonString,
159
- (x) => CreateIdentityResponseBody$inboundSchema.parse(JSON.parse(x)),
160
- `Failed to parse 'CreateIdentityResponseBody' from JSON`,
161
- );
162
- }
@@ -1,108 +0,0 @@
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 { ClosedEnum } from "../../types/enums.js";
8
- import { Result as SafeParseResult } from "../../types/fp.js";
9
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
-
11
- export type RemoteConfigsGetConfigRequestBody = {
12
- /**
13
- * Remote configuration key
14
- */
15
- key: string;
16
- /**
17
- * Key-value pairs matching your data model, applied to each prompt key.
18
- */
19
- context?: { [k: string]: any } | undefined;
20
- /**
21
- * Key-value pairs to attach to the log generated by this request.
22
- */
23
- metadata?: { [k: string]: any } | undefined;
24
- };
25
-
26
- /**
27
- * The return type of the rule
28
- */
29
- export const RemoteConfigsGetConfigType = {
30
- Boolean: "boolean",
31
- String: "string",
32
- Integer: "integer",
33
- Decimal: "decimal",
34
- List: "list",
35
- Json: "json",
36
- Deployment: "deployment",
37
- } as const;
38
- /**
39
- * The return type of the rule
40
- */
41
- export type RemoteConfigsGetConfigType = ClosedEnum<
42
- typeof RemoteConfigsGetConfigType
43
- >;
44
-
45
- /**
46
- * An individual remote config
47
- */
48
- export type RemoteConfigsGetConfigResponseBody = {
49
- /**
50
- * The return type of the rule
51
- */
52
- type: RemoteConfigsGetConfigType;
53
- value?: any | undefined;
54
- };
55
-
56
- /** @internal */
57
- export type RemoteConfigsGetConfigRequestBody$Outbound = {
58
- key: string;
59
- context?: { [k: string]: any } | undefined;
60
- metadata?: { [k: string]: any } | undefined;
61
- };
62
-
63
- /** @internal */
64
- export const RemoteConfigsGetConfigRequestBody$outboundSchema: z.ZodType<
65
- RemoteConfigsGetConfigRequestBody$Outbound,
66
- z.ZodTypeDef,
67
- RemoteConfigsGetConfigRequestBody
68
- > = z.object({
69
- key: z.string(),
70
- context: z.record(z.any()).optional(),
71
- metadata: z.record(z.any()).optional(),
72
- });
73
-
74
- export function remoteConfigsGetConfigRequestBodyToJSON(
75
- remoteConfigsGetConfigRequestBody: RemoteConfigsGetConfigRequestBody,
76
- ): string {
77
- return JSON.stringify(
78
- RemoteConfigsGetConfigRequestBody$outboundSchema.parse(
79
- remoteConfigsGetConfigRequestBody,
80
- ),
81
- );
82
- }
83
-
84
- /** @internal */
85
- export const RemoteConfigsGetConfigType$inboundSchema: z.ZodNativeEnum<
86
- typeof RemoteConfigsGetConfigType
87
- > = z.nativeEnum(RemoteConfigsGetConfigType);
88
-
89
- /** @internal */
90
- export const RemoteConfigsGetConfigResponseBody$inboundSchema: z.ZodType<
91
- RemoteConfigsGetConfigResponseBody,
92
- z.ZodTypeDef,
93
- unknown
94
- > = z.object({
95
- type: RemoteConfigsGetConfigType$inboundSchema,
96
- value: z.any().optional(),
97
- });
98
-
99
- export function remoteConfigsGetConfigResponseBodyFromJSON(
100
- jsonString: string,
101
- ): SafeParseResult<RemoteConfigsGetConfigResponseBody, SDKValidationError> {
102
- return safeParse(
103
- jsonString,
104
- (x) =>
105
- RemoteConfigsGetConfigResponseBody$inboundSchema.parse(JSON.parse(x)),
106
- `Failed to parse 'RemoteConfigsGetConfigResponseBody' from JSON`,
107
- );
108
- }
@@ -1,27 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { contactsCreate } from "../funcs/contactsCreate.js";
6
- import { ClientSDK, RequestOptions } from "../lib/sdks.js";
7
- import * as operations from "../models/operations/index.js";
8
- import { unwrapAsync } from "../types/fp.js";
9
-
10
- export class Contacts extends ClientSDK {
11
- /**
12
- * Update user information
13
- *
14
- * @remarks
15
- * Update or add user information to workspace
16
- */
17
- async create(
18
- request: operations.CreateContactRequestBody,
19
- options?: RequestOptions,
20
- ): Promise<operations.CreateContactResponseBody> {
21
- return unwrapAsync(contactsCreate(
22
- this,
23
- request,
24
- options,
25
- ));
26
- }
27
- }
@@ -1,24 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { remoteconfigsRetrieve } from "../funcs/remoteconfigsRetrieve.js";
6
- import { ClientSDK, RequestOptions } from "../lib/sdks.js";
7
- import * as operations from "../models/operations/index.js";
8
- import { unwrapAsync } from "../types/fp.js";
9
-
10
- export class Remoteconfigs extends ClientSDK {
11
- /**
12
- * Retrieve a remote config
13
- */
14
- async retrieve(
15
- request?: operations.RemoteConfigsGetConfigRequestBody | undefined,
16
- options?: RequestOptions,
17
- ): Promise<operations.RemoteConfigsGetConfigResponseBody> {
18
- return unwrapAsync(remoteconfigsRetrieve(
19
- this,
20
- request,
21
- options,
22
- ));
23
- }
24
- }