@orq-ai/node 3.1.7 → 3.2.0-rc.3

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 (147) hide show
  1. package/README.md +0 -38
  2. package/docs/sdks/deployments/README.md +0 -81
  3. package/jsr.json +1 -2
  4. package/lib/config.d.ts +3 -3
  5. package/lib/config.js +3 -3
  6. package/lib/config.js.map +1 -1
  7. package/lib/matchers.d.ts.map +1 -1
  8. package/lib/matchers.js +1 -4
  9. package/lib/matchers.js.map +1 -1
  10. package/models/operations/createcontact.js +2 -2
  11. package/models/operations/fileget.js +2 -2
  12. package/models/operations/filelist.js +2 -2
  13. package/models/operations/fileupload.js +2 -2
  14. package/models/operations/index.d.ts +0 -1
  15. package/models/operations/index.d.ts.map +1 -1
  16. package/models/operations/index.js +0 -1
  17. package/models/operations/index.js.map +1 -1
  18. package/package.json +3 -2
  19. package/sdk/deployments.d.ts +0 -8
  20. package/sdk/deployments.d.ts.map +1 -1
  21. package/sdk/deployments.js +0 -10
  22. package/sdk/deployments.js.map +1 -1
  23. package/src/lib/config.ts +3 -3
  24. package/src/lib/matchers.ts +1 -4
  25. package/src/models/operations/createcontact.ts +2 -2
  26. package/src/models/operations/fileget.ts +2 -2
  27. package/src/models/operations/filelist.ts +2 -2
  28. package/src/models/operations/fileupload.ts +2 -2
  29. package/src/models/operations/index.ts +0 -1
  30. package/src/sdk/deployments.ts +0 -19
  31. package/funcs/deploymentsStream.d.ts +0 -16
  32. package/funcs/deploymentsStream.d.ts.map +0 -1
  33. package/funcs/deploymentsStream.js +0 -126
  34. package/funcs/deploymentsStream.js.map +0 -1
  35. package/lib/event-streams.d.ts +0 -17
  36. package/lib/event-streams.d.ts.map +0 -1
  37. package/lib/event-streams.js +0 -220
  38. package/lib/event-streams.js.map +0 -1
  39. package/models/operations/deploymentstream.d.ts +0 -1622
  40. package/models/operations/deploymentstream.d.ts.map +0 -1
  41. package/models/operations/deploymentstream.js +0 -1571
  42. package/models/operations/deploymentstream.js.map +0 -1
  43. package/packages/orq-rc/FUNCTIONS.md +0 -106
  44. package/packages/orq-rc/README.md +0 -506
  45. package/packages/orq-rc/RUNTIMES.md +0 -48
  46. package/packages/orq-rc/docs/sdks/contacts/README.md +0 -84
  47. package/packages/orq-rc/docs/sdks/deployments/README.md +0 -235
  48. package/packages/orq-rc/docs/sdks/feedback/README.md +0 -92
  49. package/packages/orq-rc/docs/sdks/files/README.md +0 -305
  50. package/packages/orq-rc/docs/sdks/metrics/README.md +0 -86
  51. package/packages/orq-rc/docs/sdks/orq/README.md +0 -10
  52. package/packages/orq-rc/docs/sdks/prompts/README.md +0 -608
  53. package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +0 -80
  54. package/packages/orq-rc/jsr.json +0 -27
  55. package/packages/orq-rc/package-lock.json +0 -1861
  56. package/packages/orq-rc/package.json +0 -31
  57. package/packages/orq-rc/src/core.ts +0 -13
  58. package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -127
  59. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -135
  60. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -143
  61. package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -142
  62. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -135
  63. package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -127
  64. package/packages/orq-rc/src/funcs/filesCreate.ts +0 -150
  65. package/packages/orq-rc/src/funcs/filesDelete.ts +0 -131
  66. package/packages/orq-rc/src/funcs/filesGet.ts +0 -133
  67. package/packages/orq-rc/src/funcs/filesList.ts +0 -134
  68. package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -127
  69. package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -131
  70. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -147
  71. package/packages/orq-rc/src/funcs/promptsList.ts +0 -134
  72. package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -140
  73. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -133
  74. package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -139
  75. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -128
  76. package/packages/orq-rc/src/hooks/global.ts +0 -44
  77. package/packages/orq-rc/src/hooks/hooks.ts +0 -132
  78. package/packages/orq-rc/src/hooks/index.ts +0 -6
  79. package/packages/orq-rc/src/hooks/registration.ts +0 -15
  80. package/packages/orq-rc/src/hooks/types.ts +0 -110
  81. package/packages/orq-rc/src/index.ts +0 -7
  82. package/packages/orq-rc/src/lib/base64.ts +0 -37
  83. package/packages/orq-rc/src/lib/config.ts +0 -70
  84. package/packages/orq-rc/src/lib/dlv.ts +0 -53
  85. package/packages/orq-rc/src/lib/encodings.ts +0 -483
  86. package/packages/orq-rc/src/lib/env.ts +0 -73
  87. package/packages/orq-rc/src/lib/files.ts +0 -40
  88. package/packages/orq-rc/src/lib/http.ts +0 -323
  89. package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
  90. package/packages/orq-rc/src/lib/logger.ts +0 -9
  91. package/packages/orq-rc/src/lib/matchers.ts +0 -322
  92. package/packages/orq-rc/src/lib/primitives.ts +0 -136
  93. package/packages/orq-rc/src/lib/retries.ts +0 -218
  94. package/packages/orq-rc/src/lib/schemas.ts +0 -91
  95. package/packages/orq-rc/src/lib/sdks.ts +0 -400
  96. package/packages/orq-rc/src/lib/security.ts +0 -253
  97. package/packages/orq-rc/src/lib/url.ts +0 -33
  98. package/packages/orq-rc/src/models/components/deployments.ts +0 -1666
  99. package/packages/orq-rc/src/models/components/index.ts +0 -6
  100. package/packages/orq-rc/src/models/components/security.ts +0 -71
  101. package/packages/orq-rc/src/models/errors/apierror.ts +0 -27
  102. package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -71
  103. package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -82
  104. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
  105. package/packages/orq-rc/src/models/errors/index.ts +0 -10
  106. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -97
  107. package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -71
  108. package/packages/orq-rc/src/models/operations/createcontact.ts +0 -256
  109. package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -286
  110. package/packages/orq-rc/src/models/operations/createprompt.ts +0 -3717
  111. package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -69
  112. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -1790
  113. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -3527
  114. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -1144
  115. package/packages/orq-rc/src/models/operations/deployments.ts +0 -2148
  116. package/packages/orq-rc/src/models/operations/filedelete.ts +0 -78
  117. package/packages/orq-rc/src/models/operations/fileget.ts +0 -222
  118. package/packages/orq-rc/src/models/operations/filelist.ts +0 -336
  119. package/packages/orq-rc/src/models/operations/fileupload.ts +0 -322
  120. package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -2116
  121. package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -1982
  122. package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -2012
  123. package/packages/orq-rc/src/models/operations/index.ts +0 -22
  124. package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -2146
  125. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -190
  126. package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -3900
  127. package/packages/orq-rc/src/sdk/contacts.ts +0 -27
  128. package/packages/orq-rc/src/sdk/deployments.ts +0 -70
  129. package/packages/orq-rc/src/sdk/feedback.ts +0 -27
  130. package/packages/orq-rc/src/sdk/files.ts +0 -78
  131. package/packages/orq-rc/src/sdk/index.ts +0 -5
  132. package/packages/orq-rc/src/sdk/metrics.ts +0 -27
  133. package/packages/orq-rc/src/sdk/prompts.ts +0 -126
  134. package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
  135. package/packages/orq-rc/src/sdk/sdk.ts +0 -43
  136. package/packages/orq-rc/src/types/blobs.ts +0 -31
  137. package/packages/orq-rc/src/types/constdatetime.ts +0 -15
  138. package/packages/orq-rc/src/types/enums.ts +0 -16
  139. package/packages/orq-rc/src/types/fp.ts +0 -50
  140. package/packages/orq-rc/src/types/index.ts +0 -11
  141. package/packages/orq-rc/src/types/operations.ts +0 -105
  142. package/packages/orq-rc/src/types/rfcdate.ts +0 -54
  143. package/packages/orq-rc/src/types/streams.ts +0 -21
  144. package/packages/orq-rc/tsconfig.json +0 -41
  145. package/src/funcs/deploymentsStream.ts +0 -151
  146. package/src/lib/event-streams.ts +0 -264
  147. package/src/models/operations/deploymentstream.ts +0 -3062
@@ -1,256 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
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
17
- */
18
- externalId: string;
19
- /**
20
- * Display name or nickname of the user
21
- */
22
- displayName?: string | null | undefined;
23
- /**
24
- * Email address of the user
25
- */
26
- email?: string | null | undefined;
27
- /**
28
- * URL linking to the user's avatar image
29
- */
30
- avatarUrl?: string | null | undefined;
31
- /**
32
- * Array of UUIDs representing tags associated with the user
33
- */
34
- tags?: Array<string> | undefined;
35
- /**
36
- * Additional custom metadata associated with the user as key-value pairs
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 user
47
- */
48
- id: string;
49
- /**
50
- * Unique string value to identify the contact user in the customer's system
51
- */
52
- externalId: string;
53
- /**
54
- * Display name or nickname of the user
55
- */
56
- displayName?: string | null | undefined;
57
- /**
58
- * Email address of the user
59
- */
60
- email?: string | null | undefined;
61
- /**
62
- * URL linking to the user's avatar image
63
- */
64
- avatarUrl?: string | null | undefined;
65
- /**
66
- * Array of UUIDs representing tags associated with the user
67
- */
68
- tags?: Array<string> | undefined;
69
- /**
70
- * Additional custom metadata associated with the user as key-value pairs
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 | undefined;
81
- };
82
-
83
- /** @internal */
84
- export const CreateContactRequestBody$inboundSchema: z.ZodType<
85
- CreateContactRequestBody,
86
- z.ZodTypeDef,
87
- unknown
88
- > = z.object({
89
- external_id: z.string(),
90
- display_name: z.nullable(z.string()).optional(),
91
- email: z.nullable(z.string()).optional(),
92
- avatar_url: z.nullable(z.string()).optional(),
93
- tags: z.array(z.string()).optional(),
94
- metadata: z.record(z.any()).optional(),
95
- }).transform((v) => {
96
- return remap$(v, {
97
- "external_id": "externalId",
98
- "display_name": "displayName",
99
- "avatar_url": "avatarUrl",
100
- });
101
- });
102
-
103
- /** @internal */
104
- export type CreateContactRequestBody$Outbound = {
105
- external_id: string;
106
- display_name?: string | null | undefined;
107
- email?: string | null | undefined;
108
- avatar_url?: string | null | undefined;
109
- tags?: Array<string> | undefined;
110
- metadata?: { [k: string]: any } | undefined;
111
- };
112
-
113
- /** @internal */
114
- export const CreateContactRequestBody$outboundSchema: z.ZodType<
115
- CreateContactRequestBody$Outbound,
116
- z.ZodTypeDef,
117
- CreateContactRequestBody
118
- > = z.object({
119
- externalId: z.string(),
120
- displayName: z.nullable(z.string()).optional(),
121
- email: z.nullable(z.string()).optional(),
122
- avatarUrl: z.nullable(z.string()).optional(),
123
- tags: z.array(z.string()).optional(),
124
- metadata: z.record(z.any()).optional(),
125
- }).transform((v) => {
126
- return remap$(v, {
127
- externalId: "external_id",
128
- displayName: "display_name",
129
- avatarUrl: "avatar_url",
130
- });
131
- });
132
-
133
- /**
134
- * @internal
135
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
136
- */
137
- export namespace CreateContactRequestBody$ {
138
- /** @deprecated use `CreateContactRequestBody$inboundSchema` instead. */
139
- export const inboundSchema = CreateContactRequestBody$inboundSchema;
140
- /** @deprecated use `CreateContactRequestBody$outboundSchema` instead. */
141
- export const outboundSchema = CreateContactRequestBody$outboundSchema;
142
- /** @deprecated use `CreateContactRequestBody$Outbound` instead. */
143
- export type Outbound = CreateContactRequestBody$Outbound;
144
- }
145
-
146
- export function createContactRequestBodyToJSON(
147
- createContactRequestBody: CreateContactRequestBody,
148
- ): string {
149
- return JSON.stringify(
150
- CreateContactRequestBody$outboundSchema.parse(createContactRequestBody),
151
- );
152
- }
153
-
154
- export function createContactRequestBodyFromJSON(
155
- jsonString: string,
156
- ): SafeParseResult<CreateContactRequestBody, SDKValidationError> {
157
- return safeParse(
158
- jsonString,
159
- (x) => CreateContactRequestBody$inboundSchema.parse(JSON.parse(x)),
160
- `Failed to parse 'CreateContactRequestBody' from JSON`,
161
- );
162
- }
163
-
164
- /** @internal */
165
- export const CreateContactResponseBody$inboundSchema: z.ZodType<
166
- CreateContactResponseBody,
167
- z.ZodTypeDef,
168
- unknown
169
- > = z.object({
170
- id: z.string(),
171
- external_id: z.string(),
172
- display_name: z.nullable(z.string()).optional(),
173
- email: z.nullable(z.string()).optional(),
174
- avatar_url: z.nullable(z.string()).optional(),
175
- tags: z.array(z.string()).optional(),
176
- metadata: z.record(z.any()).optional(),
177
- created: z.string().datetime({ offset: true }).transform(v => new Date(v))
178
- .optional(),
179
- updated: z.string().datetime({ offset: true }).default(
180
- "2025-02-14T07:58:15.254Z",
181
- ).transform(v => new Date(v)),
182
- }).transform((v) => {
183
- return remap$(v, {
184
- "external_id": "externalId",
185
- "display_name": "displayName",
186
- "avatar_url": "avatarUrl",
187
- });
188
- });
189
-
190
- /** @internal */
191
- export type CreateContactResponseBody$Outbound = {
192
- id: string;
193
- external_id: string;
194
- display_name?: string | null | undefined;
195
- email?: string | null | undefined;
196
- avatar_url?: string | null | undefined;
197
- tags?: Array<string> | undefined;
198
- metadata?: { [k: string]: any } | undefined;
199
- created?: string | undefined;
200
- updated: string;
201
- };
202
-
203
- /** @internal */
204
- export const CreateContactResponseBody$outboundSchema: z.ZodType<
205
- CreateContactResponseBody$Outbound,
206
- z.ZodTypeDef,
207
- CreateContactResponseBody
208
- > = z.object({
209
- id: z.string(),
210
- externalId: z.string(),
211
- displayName: z.nullable(z.string()).optional(),
212
- email: z.nullable(z.string()).optional(),
213
- avatarUrl: z.nullable(z.string()).optional(),
214
- tags: z.array(z.string()).optional(),
215
- metadata: z.record(z.any()).optional(),
216
- created: z.date().transform(v => v.toISOString()).optional(),
217
- updated: z.date().default(() => new Date("2025-02-14T07:58:15.254Z"))
218
- .transform(v => v.toISOString()),
219
- }).transform((v) => {
220
- return remap$(v, {
221
- externalId: "external_id",
222
- displayName: "display_name",
223
- avatarUrl: "avatar_url",
224
- });
225
- });
226
-
227
- /**
228
- * @internal
229
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
230
- */
231
- export namespace CreateContactResponseBody$ {
232
- /** @deprecated use `CreateContactResponseBody$inboundSchema` instead. */
233
- export const inboundSchema = CreateContactResponseBody$inboundSchema;
234
- /** @deprecated use `CreateContactResponseBody$outboundSchema` instead. */
235
- export const outboundSchema = CreateContactResponseBody$outboundSchema;
236
- /** @deprecated use `CreateContactResponseBody$Outbound` instead. */
237
- export type Outbound = CreateContactResponseBody$Outbound;
238
- }
239
-
240
- export function createContactResponseBodyToJSON(
241
- createContactResponseBody: CreateContactResponseBody,
242
- ): string {
243
- return JSON.stringify(
244
- CreateContactResponseBody$outboundSchema.parse(createContactResponseBody),
245
- );
246
- }
247
-
248
- export function createContactResponseBodyFromJSON(
249
- jsonString: string,
250
- ): SafeParseResult<CreateContactResponseBody, SDKValidationError> {
251
- return safeParse(
252
- jsonString,
253
- (x) => CreateContactResponseBody$inboundSchema.parse(JSON.parse(x)),
254
- `Failed to parse 'CreateContactResponseBody' from JSON`,
255
- );
256
- }
@@ -1,286 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
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
- * The feedback value. For single selection of multiple choice, the value should be an array of strings. For `correction`, the value should be a string.
13
- */
14
- export type Value = string | Array<string>;
15
-
16
- /**
17
- * Feedback submission payload
18
- */
19
- export type CreateFeedbackRequestBody = {
20
- /**
21
- * A string describing the specific property or aspect rated.
22
- */
23
- field: string;
24
- /**
25
- * The feedback value. For single selection of multiple choice, the value should be an array of strings. For `correction`, the value should be a string.
26
- */
27
- value: string | Array<string>;
28
- /**
29
- * The id returned by the [`get_config`]() or [`invoke`](https://docs.orq.ai/reference/post_deployments-invoke-1) endpoints
30
- */
31
- traceId: string;
32
- };
33
-
34
- /**
35
- * The feedback value. For single selection of multiple choice, the value should be an array of strings. For `correction`, the value should be a string.
36
- */
37
- export type CreateFeedbackValue = string | Array<string>;
38
-
39
- /**
40
- * Successful operation
41
- */
42
- export type CreateFeedbackResponseBody = {
43
- /**
44
- * A string describing the specific property or aspect rated.
45
- */
46
- property: string;
47
- /**
48
- * The feedback value. For single selection of multiple choice, the value should be an array of strings. For `correction`, the value should be a string.
49
- */
50
- value: string | Array<string>;
51
- /**
52
- * The id returned by the [`get_config`]() or [`invoke`](https://docs.orq.ai/reference/post_deployments-invoke-1) endpoints
53
- */
54
- traceId: string;
55
- id: string;
56
- };
57
-
58
- /** @internal */
59
- export const Value$inboundSchema: z.ZodType<Value, z.ZodTypeDef, unknown> = z
60
- .union([z.string(), z.array(z.string())]);
61
-
62
- /** @internal */
63
- export type Value$Outbound = string | Array<string>;
64
-
65
- /** @internal */
66
- export const Value$outboundSchema: z.ZodType<
67
- Value$Outbound,
68
- z.ZodTypeDef,
69
- Value
70
- > = z.union([z.string(), z.array(z.string())]);
71
-
72
- /**
73
- * @internal
74
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
75
- */
76
- export namespace Value$ {
77
- /** @deprecated use `Value$inboundSchema` instead. */
78
- export const inboundSchema = Value$inboundSchema;
79
- /** @deprecated use `Value$outboundSchema` instead. */
80
- export const outboundSchema = Value$outboundSchema;
81
- /** @deprecated use `Value$Outbound` instead. */
82
- export type Outbound = Value$Outbound;
83
- }
84
-
85
- export function valueToJSON(value: Value): string {
86
- return JSON.stringify(Value$outboundSchema.parse(value));
87
- }
88
-
89
- export function valueFromJSON(
90
- jsonString: string,
91
- ): SafeParseResult<Value, SDKValidationError> {
92
- return safeParse(
93
- jsonString,
94
- (x) => Value$inboundSchema.parse(JSON.parse(x)),
95
- `Failed to parse 'Value' from JSON`,
96
- );
97
- }
98
-
99
- /** @internal */
100
- export const CreateFeedbackRequestBody$inboundSchema: z.ZodType<
101
- CreateFeedbackRequestBody,
102
- z.ZodTypeDef,
103
- unknown
104
- > = z.object({
105
- property: z.string(),
106
- value: z.union([z.string(), z.array(z.string())]),
107
- trace_id: z.string(),
108
- }).transform((v) => {
109
- return remap$(v, {
110
- "property": "field",
111
- "trace_id": "traceId",
112
- });
113
- });
114
-
115
- /** @internal */
116
- export type CreateFeedbackRequestBody$Outbound = {
117
- property: string;
118
- value: string | Array<string>;
119
- trace_id: string;
120
- };
121
-
122
- /** @internal */
123
- export const CreateFeedbackRequestBody$outboundSchema: z.ZodType<
124
- CreateFeedbackRequestBody$Outbound,
125
- z.ZodTypeDef,
126
- CreateFeedbackRequestBody
127
- > = z.object({
128
- field: z.string(),
129
- value: z.union([z.string(), z.array(z.string())]),
130
- traceId: z.string(),
131
- }).transform((v) => {
132
- return remap$(v, {
133
- field: "property",
134
- traceId: "trace_id",
135
- });
136
- });
137
-
138
- /**
139
- * @internal
140
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
141
- */
142
- export namespace CreateFeedbackRequestBody$ {
143
- /** @deprecated use `CreateFeedbackRequestBody$inboundSchema` instead. */
144
- export const inboundSchema = CreateFeedbackRequestBody$inboundSchema;
145
- /** @deprecated use `CreateFeedbackRequestBody$outboundSchema` instead. */
146
- export const outboundSchema = CreateFeedbackRequestBody$outboundSchema;
147
- /** @deprecated use `CreateFeedbackRequestBody$Outbound` instead. */
148
- export type Outbound = CreateFeedbackRequestBody$Outbound;
149
- }
150
-
151
- export function createFeedbackRequestBodyToJSON(
152
- createFeedbackRequestBody: CreateFeedbackRequestBody,
153
- ): string {
154
- return JSON.stringify(
155
- CreateFeedbackRequestBody$outboundSchema.parse(createFeedbackRequestBody),
156
- );
157
- }
158
-
159
- export function createFeedbackRequestBodyFromJSON(
160
- jsonString: string,
161
- ): SafeParseResult<CreateFeedbackRequestBody, SDKValidationError> {
162
- return safeParse(
163
- jsonString,
164
- (x) => CreateFeedbackRequestBody$inboundSchema.parse(JSON.parse(x)),
165
- `Failed to parse 'CreateFeedbackRequestBody' from JSON`,
166
- );
167
- }
168
-
169
- /** @internal */
170
- export const CreateFeedbackValue$inboundSchema: z.ZodType<
171
- CreateFeedbackValue,
172
- z.ZodTypeDef,
173
- unknown
174
- > = z.union([z.string(), z.array(z.string())]);
175
-
176
- /** @internal */
177
- export type CreateFeedbackValue$Outbound = string | Array<string>;
178
-
179
- /** @internal */
180
- export const CreateFeedbackValue$outboundSchema: z.ZodType<
181
- CreateFeedbackValue$Outbound,
182
- z.ZodTypeDef,
183
- CreateFeedbackValue
184
- > = z.union([z.string(), z.array(z.string())]);
185
-
186
- /**
187
- * @internal
188
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
189
- */
190
- export namespace CreateFeedbackValue$ {
191
- /** @deprecated use `CreateFeedbackValue$inboundSchema` instead. */
192
- export const inboundSchema = CreateFeedbackValue$inboundSchema;
193
- /** @deprecated use `CreateFeedbackValue$outboundSchema` instead. */
194
- export const outboundSchema = CreateFeedbackValue$outboundSchema;
195
- /** @deprecated use `CreateFeedbackValue$Outbound` instead. */
196
- export type Outbound = CreateFeedbackValue$Outbound;
197
- }
198
-
199
- export function createFeedbackValueToJSON(
200
- createFeedbackValue: CreateFeedbackValue,
201
- ): string {
202
- return JSON.stringify(
203
- CreateFeedbackValue$outboundSchema.parse(createFeedbackValue),
204
- );
205
- }
206
-
207
- export function createFeedbackValueFromJSON(
208
- jsonString: string,
209
- ): SafeParseResult<CreateFeedbackValue, SDKValidationError> {
210
- return safeParse(
211
- jsonString,
212
- (x) => CreateFeedbackValue$inboundSchema.parse(JSON.parse(x)),
213
- `Failed to parse 'CreateFeedbackValue' from JSON`,
214
- );
215
- }
216
-
217
- /** @internal */
218
- export const CreateFeedbackResponseBody$inboundSchema: z.ZodType<
219
- CreateFeedbackResponseBody,
220
- z.ZodTypeDef,
221
- unknown
222
- > = z.object({
223
- property: z.string(),
224
- value: z.union([z.string(), z.array(z.string())]),
225
- trace_id: z.string(),
226
- id: z.string(),
227
- }).transform((v) => {
228
- return remap$(v, {
229
- "trace_id": "traceId",
230
- });
231
- });
232
-
233
- /** @internal */
234
- export type CreateFeedbackResponseBody$Outbound = {
235
- property: string;
236
- value: string | Array<string>;
237
- trace_id: string;
238
- id: string;
239
- };
240
-
241
- /** @internal */
242
- export const CreateFeedbackResponseBody$outboundSchema: z.ZodType<
243
- CreateFeedbackResponseBody$Outbound,
244
- z.ZodTypeDef,
245
- CreateFeedbackResponseBody
246
- > = z.object({
247
- property: z.string(),
248
- value: z.union([z.string(), z.array(z.string())]),
249
- traceId: z.string(),
250
- id: z.string(),
251
- }).transform((v) => {
252
- return remap$(v, {
253
- traceId: "trace_id",
254
- });
255
- });
256
-
257
- /**
258
- * @internal
259
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
260
- */
261
- export namespace CreateFeedbackResponseBody$ {
262
- /** @deprecated use `CreateFeedbackResponseBody$inboundSchema` instead. */
263
- export const inboundSchema = CreateFeedbackResponseBody$inboundSchema;
264
- /** @deprecated use `CreateFeedbackResponseBody$outboundSchema` instead. */
265
- export const outboundSchema = CreateFeedbackResponseBody$outboundSchema;
266
- /** @deprecated use `CreateFeedbackResponseBody$Outbound` instead. */
267
- export type Outbound = CreateFeedbackResponseBody$Outbound;
268
- }
269
-
270
- export function createFeedbackResponseBodyToJSON(
271
- createFeedbackResponseBody: CreateFeedbackResponseBody,
272
- ): string {
273
- return JSON.stringify(
274
- CreateFeedbackResponseBody$outboundSchema.parse(createFeedbackResponseBody),
275
- );
276
- }
277
-
278
- export function createFeedbackResponseBodyFromJSON(
279
- jsonString: string,
280
- ): SafeParseResult<CreateFeedbackResponseBody, SDKValidationError> {
281
- return safeParse(
282
- jsonString,
283
- (x) => CreateFeedbackResponseBody$inboundSchema.parse(JSON.parse(x)),
284
- `Failed to parse 'CreateFeedbackResponseBody' from JSON`,
285
- );
286
- }