@orq-ai/node 4.15.0-rc.21 → 4.15.0-rc.22

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 (207) hide show
  1. package/README.md +30 -28
  2. package/funcs/piiCapabilities.d.ts +17 -0
  3. package/funcs/piiCapabilities.d.ts.map +1 -0
  4. package/funcs/piiCapabilities.js +105 -0
  5. package/funcs/piiCapabilities.js.map +1 -0
  6. package/jsr.json +1 -1
  7. package/lib/config.d.ts +2 -2
  8. package/lib/config.js +2 -2
  9. package/models/components/agentstartedstreamingevent.d.ts +13 -1
  10. package/models/components/agentstartedstreamingevent.d.ts.map +1 -1
  11. package/models/components/agentstartedstreamingevent.js +2 -0
  12. package/models/components/agentstartedstreamingevent.js.map +1 -1
  13. package/models/components/capabilitiesresponse.d.ts +62 -0
  14. package/models/components/capabilitiesresponse.d.ts.map +1 -0
  15. package/models/components/capabilitiesresponse.js +68 -0
  16. package/models/components/capabilitiesresponse.js.map +1 -0
  17. package/models/components/detectrequest.d.ts +48 -0
  18. package/models/components/detectrequest.d.ts.map +1 -1
  19. package/models/components/detectrequest.js +4 -0
  20. package/models/components/detectrequest.js.map +1 -1
  21. package/models/components/entitylist.d.ts +16 -0
  22. package/models/components/entitylist.d.ts.map +1 -0
  23. package/models/components/entitylist.js +50 -0
  24. package/models/components/entitylist.js.map +1 -0
  25. package/models/components/guardrailruleplugin.d.ts +25 -0
  26. package/models/components/guardrailruleplugin.d.ts.map +1 -1
  27. package/models/components/guardrailruleplugin.js +6 -0
  28. package/models/components/guardrailruleplugin.js.map +1 -1
  29. package/models/components/index.d.ts +3 -3
  30. package/models/components/index.d.ts.map +1 -1
  31. package/models/components/index.js +3 -3
  32. package/models/components/index.js.map +1 -1
  33. package/models/components/piiredactionplugin.d.ts +84 -0
  34. package/models/components/piiredactionplugin.d.ts.map +1 -0
  35. package/models/components/piiredactionplugin.js +103 -0
  36. package/models/components/piiredactionplugin.js.map +1 -0
  37. package/models/components/publicplugin.d.ts +17 -16
  38. package/models/components/publicplugin.d.ts.map +1 -1
  39. package/models/components/publicplugin.js +5 -11
  40. package/models/components/publicplugin.js.map +1 -1
  41. package/models/components/reasoningpart.js +1 -1
  42. package/models/components/redactrequest.d.ts +48 -0
  43. package/models/components/redactrequest.d.ts.map +1 -1
  44. package/models/components/redactrequest.js +8 -0
  45. package/models/components/redactrequest.js.map +1 -1
  46. package/models/components/responsehealingplugin.d.ts +2 -17
  47. package/models/components/responsehealingplugin.d.ts.map +1 -1
  48. package/models/components/responsehealingplugin.js +3 -13
  49. package/models/components/responsehealingplugin.js.map +1 -1
  50. package/models/components/routingruleplugin.d.ts +25 -0
  51. package/models/components/routingruleplugin.d.ts.map +1 -1
  52. package/models/components/routingruleplugin.js +6 -0
  53. package/models/components/routingruleplugin.js.map +1 -1
  54. package/models/components/tracescrubbingplugin.d.ts +2 -16
  55. package/models/components/tracescrubbingplugin.d.ts.map +1 -1
  56. package/models/components/tracescrubbingplugin.js +3 -13
  57. package/models/components/tracescrubbingplugin.js.map +1 -1
  58. package/models/operations/createagentrequest.d.ts +67 -13
  59. package/models/operations/createagentrequest.d.ts.map +1 -1
  60. package/models/operations/createagentrequest.js +20 -32
  61. package/models/operations/createagentrequest.js.map +1 -1
  62. package/models/operations/createchatcompletion.d.ts +12 -4
  63. package/models/operations/createchatcompletion.d.ts.map +1 -1
  64. package/models/operations/createchatcompletion.js +4 -8
  65. package/models/operations/createchatcompletion.js.map +1 -1
  66. package/models/operations/createcompletion.d.ts +2 -8
  67. package/models/operations/createcompletion.d.ts.map +1 -1
  68. package/models/operations/createcompletion.js +3 -17
  69. package/models/operations/createcompletion.js.map +1 -1
  70. package/models/operations/createdataset.js +1 -1
  71. package/models/operations/createdatasetitem.js +5 -5
  72. package/models/operations/createimage.d.ts +2 -8
  73. package/models/operations/createimage.d.ts.map +1 -1
  74. package/models/operations/createimage.js +2 -16
  75. package/models/operations/createimage.js.map +1 -1
  76. package/models/operations/createprompt.d.ts +18 -6
  77. package/models/operations/createprompt.d.ts.map +1 -1
  78. package/models/operations/createprompt.js +8 -16
  79. package/models/operations/createprompt.js.map +1 -1
  80. package/models/operations/creatererank.d.ts +2 -8
  81. package/models/operations/creatererank.d.ts.map +1 -1
  82. package/models/operations/creatererank.js +2 -16
  83. package/models/operations/creatererank.js.map +1 -1
  84. package/models/operations/createtool.js +4 -4
  85. package/models/operations/getallprompts.d.ts +6 -2
  86. package/models/operations/getallprompts.d.ts.map +1 -1
  87. package/models/operations/getallprompts.js +4 -8
  88. package/models/operations/getallprompts.js.map +1 -1
  89. package/models/operations/getalltools.js +4 -4
  90. package/models/operations/getoneprompt.d.ts +6 -2
  91. package/models/operations/getoneprompt.d.ts.map +1 -1
  92. package/models/operations/getoneprompt.js +4 -8
  93. package/models/operations/getoneprompt.js.map +1 -1
  94. package/models/operations/getpromptversion.d.ts +6 -2
  95. package/models/operations/getpromptversion.d.ts.map +1 -1
  96. package/models/operations/getpromptversion.js +4 -8
  97. package/models/operations/getpromptversion.js.map +1 -1
  98. package/models/operations/getv2humanevalsets.js +2 -2
  99. package/models/operations/getv2humanevalsetsid.js +2 -2
  100. package/models/operations/listagents.d.ts +25 -5
  101. package/models/operations/listagents.d.ts.map +1 -1
  102. package/models/operations/listagents.js +10 -16
  103. package/models/operations/listagents.js.map +1 -1
  104. package/models/operations/listdatasetdatapoints.js +5 -5
  105. package/models/operations/listdatasets.js +1 -1
  106. package/models/operations/listpromptversions.d.ts +6 -2
  107. package/models/operations/listpromptversions.d.ts.map +1 -1
  108. package/models/operations/listpromptversions.js +4 -8
  109. package/models/operations/listpromptversions.js.map +1 -1
  110. package/models/operations/patchv2humanevalsetsid.js +2 -2
  111. package/models/operations/postv2feedbackevaluation.js +4 -4
  112. package/models/operations/postv2humanevalsets.js +2 -2
  113. package/models/operations/retrieveagentrequest.d.ts +25 -5
  114. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  115. package/models/operations/retrieveagentrequest.js +10 -16
  116. package/models/operations/retrieveagentrequest.js.map +1 -1
  117. package/models/operations/retrievedatapoint.js +5 -5
  118. package/models/operations/retrievedataset.js +1 -1
  119. package/models/operations/retrievetool.js +4 -4
  120. package/models/operations/runagent.d.ts +42 -8
  121. package/models/operations/runagent.d.ts.map +1 -1
  122. package/models/operations/runagent.js +11 -17
  123. package/models/operations/runagent.js.map +1 -1
  124. package/models/operations/streamrunagent.d.ts +42 -8
  125. package/models/operations/streamrunagent.d.ts.map +1 -1
  126. package/models/operations/streamrunagent.js +11 -17
  127. package/models/operations/streamrunagent.js.map +1 -1
  128. package/models/operations/updateagent.d.ts +67 -13
  129. package/models/operations/updateagent.d.ts.map +1 -1
  130. package/models/operations/updateagent.js +20 -32
  131. package/models/operations/updateagent.js.map +1 -1
  132. package/models/operations/updatedatapoint.js +5 -5
  133. package/models/operations/updatedataset.js +1 -1
  134. package/models/operations/updateprompt.d.ts +18 -6
  135. package/models/operations/updateprompt.d.ts.map +1 -1
  136. package/models/operations/updateprompt.js +8 -16
  137. package/models/operations/updateprompt.js.map +1 -1
  138. package/models/operations/updatetool.js +4 -4
  139. package/package.json +1 -1
  140. package/sdk/pii.d.ts +7 -0
  141. package/sdk/pii.d.ts.map +1 -1
  142. package/sdk/pii.js +10 -0
  143. package/sdk/pii.js.map +1 -1
  144. package/src/funcs/piiCapabilities.ts +144 -0
  145. package/src/lib/config.ts +2 -2
  146. package/src/models/components/agentstartedstreamingevent.ts +11 -1
  147. package/src/models/components/capabilitiesresponse.ts +96 -0
  148. package/src/models/components/detectrequest.ts +48 -0
  149. package/src/models/components/entitylist.ts +37 -0
  150. package/src/models/components/guardrailruleplugin.ts +27 -0
  151. package/src/models/components/index.ts +3 -3
  152. package/src/models/components/piiredactionplugin.ts +143 -0
  153. package/src/models/components/publicplugin.ts +17 -21
  154. package/src/models/components/reasoningpart.ts +1 -1
  155. package/src/models/components/redactrequest.ts +52 -0
  156. package/src/models/components/responsehealingplugin.ts +4 -27
  157. package/src/models/components/routingruleplugin.ts +27 -0
  158. package/src/models/components/tracescrubbingplugin.ts +4 -24
  159. package/src/models/operations/createagentrequest.ts +85 -87
  160. package/src/models/operations/createchatcompletion.ts +18 -26
  161. package/src/models/operations/createcompletion.ts +3 -51
  162. package/src/models/operations/createdataset.ts +1 -1
  163. package/src/models/operations/createdatasetitem.ts +5 -5
  164. package/src/models/operations/createimage.ts +3 -51
  165. package/src/models/operations/createprompt.ts +31 -43
  166. package/src/models/operations/creatererank.ts +3 -51
  167. package/src/models/operations/createtool.ts +4 -4
  168. package/src/models/operations/getallprompts.ts +13 -17
  169. package/src/models/operations/getalltools.ts +4 -4
  170. package/src/models/operations/getoneprompt.ts +13 -17
  171. package/src/models/operations/getpromptversion.ts +13 -17
  172. package/src/models/operations/getv2humanevalsets.ts +2 -2
  173. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  174. package/src/models/operations/listagents.ts +37 -35
  175. package/src/models/operations/listdatasetdatapoints.ts +5 -5
  176. package/src/models/operations/listdatasets.ts +1 -1
  177. package/src/models/operations/listpromptversions.ts +13 -17
  178. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  179. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  180. package/src/models/operations/postv2humanevalsets.ts +2 -2
  181. package/src/models/operations/retrieveagentrequest.ts +37 -35
  182. package/src/models/operations/retrievedatapoint.ts +5 -5
  183. package/src/models/operations/retrievedataset.ts +1 -1
  184. package/src/models/operations/retrievetool.ts +4 -4
  185. package/src/models/operations/runagent.ts +49 -53
  186. package/src/models/operations/streamrunagent.ts +49 -53
  187. package/src/models/operations/updateagent.ts +85 -87
  188. package/src/models/operations/updatedatapoint.ts +5 -5
  189. package/src/models/operations/updatedataset.ts +1 -1
  190. package/src/models/operations/updateprompt.ts +31 -43
  191. package/src/models/operations/updatetool.ts +4 -4
  192. package/src/sdk/pii.ts +16 -0
  193. package/models/components/piiredactionpluginauto.d.ts +0 -126
  194. package/models/components/piiredactionpluginauto.d.ts.map +0 -1
  195. package/models/components/piiredactionpluginauto.js +0 -156
  196. package/models/components/piiredactionpluginauto.js.map +0 -1
  197. package/models/components/piiredactionpluginen.d.ts +0 -145
  198. package/models/components/piiredactionpluginen.d.ts.map +0 -1
  199. package/models/components/piiredactionpluginen.js +0 -167
  200. package/models/components/piiredactionpluginen.js.map +0 -1
  201. package/models/components/piiredactionpluginnl.d.ts +0 -137
  202. package/models/components/piiredactionpluginnl.d.ts.map +0 -1
  203. package/models/components/piiredactionpluginnl.js +0 -158
  204. package/models/components/piiredactionpluginnl.js.map +0 -1
  205. package/src/models/components/piiredactionpluginauto.ts +0 -185
  206. package/src/models/components/piiredactionpluginen.ts +0 -222
  207. package/src/models/components/piiredactionpluginnl.ts +0 -218
@@ -1,222 +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 { ClosedEnum } from "../../types/enums.js";
9
- import { Result as SafeParseResult } from "../../types/fp.js";
10
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
-
12
- /**
13
- * Plugin discriminator. Must be `pii_redaction`.
14
- */
15
- export const PIIRedactionPluginEnId = {
16
- PiiRedaction: "pii_redaction",
17
- } as const;
18
- /**
19
- * Plugin discriminator. Must be `pii_redaction`.
20
- */
21
- export type PIIRedactionPluginEnId = ClosedEnum<typeof PIIRedactionPluginEnId>;
22
-
23
- /**
24
- * Behavior when redaction is unavailable. `block` (default) fails the request; `passthrough` sends the original text.
25
- */
26
- export const PIIRedactionPluginEnOnFailure = {
27
- Block: "block",
28
- Passthrough: "passthrough",
29
- } as const;
30
- /**
31
- * Behavior when redaction is unavailable. `block` (default) fails the request; `passthrough` sends the original text.
32
- */
33
- export type PIIRedactionPluginEnOnFailure = ClosedEnum<
34
- typeof PIIRedactionPluginEnOnFailure
35
- >;
36
-
37
- /**
38
- * Detector language.
39
- */
40
- export const Language = {
41
- En: "en",
42
- } as const;
43
- /**
44
- * Detector language.
45
- */
46
- export type Language = ClosedEnum<typeof Language>;
47
-
48
- export const PIIRedactionPluginEnEntities = {
49
- Age: "AGE",
50
- ApiKey: "API_KEY",
51
- BankRouting: "BANK_ROUTING",
52
- Bic: "BIC",
53
- BiometricId: "BIOMETRIC_ID",
54
- BloodType: "BLOOD_TYPE",
55
- Bsn: "BSN",
56
- CreditCard: "CREDIT_CARD",
57
- Crypto: "CRYPTO",
58
- DateTime: "DATE_TIME",
59
- DeviceId: "DEVICE_ID",
60
- EducationLevel: "EDUCATION_LEVEL",
61
- EmailAddress: "EMAIL_ADDRESS",
62
- EmploymentStatus: "EMPLOYMENT_STATUS",
63
- Gender: "GENDER",
64
- HealthPlanId: "HEALTH_PLAN_ID",
65
- HttpCookie: "HTTP_COOKIE",
66
- IbanCode: "IBAN_CODE",
67
- Id: "ID",
68
- IdCard: "ID_CARD",
69
- Imei: "IMEI",
70
- IpAddress: "IP_ADDRESS",
71
- Jobtitle: "JOBTITLE",
72
- Jwt: "JWT",
73
- KvkNumber: "KVK_NUMBER",
74
- Language: "LANGUAGE",
75
- LicenseNumber: "LICENSE_NUMBER",
76
- LicensePlate: "LICENSE_PLATE",
77
- Location: "LOCATION",
78
- MacAddress: "MAC_ADDRESS",
79
- MedicalLicense: "MEDICAL_LICENSE",
80
- MedicalRecord: "MEDICAL_RECORD",
81
- Nrp: "NRP",
82
- Organization: "ORGANIZATION",
83
- Passport: "PASSPORT",
84
- Password: "PASSWORD",
85
- Person: "PERSON",
86
- PhoneNumber: "PHONE_NUMBER",
87
- Pin: "PIN",
88
- PoliticalView: "POLITICAL_VIEW",
89
- RaceEthnicity: "RACE_ETHNICITY",
90
- ReligiousBelief: "RELIGIOUS_BELIEF",
91
- Sexuality: "SEXUALITY",
92
- TaxId: "TAX_ID",
93
- Title: "TITLE",
94
- UkNhs: "UK_NHS",
95
- Url: "URL",
96
- UsBankNumber: "US_BANK_NUMBER",
97
- UsDriverLicense: "US_DRIVER_LICENSE",
98
- UsItin: "US_ITIN",
99
- UsPassport: "US_PASSPORT",
100
- UsSsn: "US_SSN",
101
- Uuid: "UUID",
102
- VehicleId: "VEHICLE_ID",
103
- } as const;
104
- export type PIIRedactionPluginEnEntities = ClosedEnum<
105
- typeof PIIRedactionPluginEnEntities
106
- >;
107
-
108
- export type PIIRedactionPluginEn = {
109
- /**
110
- * Plugin discriminator. Must be `pii_redaction`.
111
- */
112
- id: PIIRedactionPluginEnId;
113
- /**
114
- * Behavior when redaction is unavailable. `block` (default) fails the request; `passthrough` sends the original text.
115
- */
116
- onFailure?: PIIRedactionPluginEnOnFailure | undefined;
117
- /**
118
- * Detector confidence cutoff in [0,1].
119
- */
120
- threshold?: number | undefined;
121
- /**
122
- * Detector language.
123
- */
124
- language: Language;
125
- /**
126
- * English entity types to redact. Omit to redact every type detected for the language.
127
- */
128
- entities?: Array<PIIRedactionPluginEnEntities> | undefined;
129
- };
130
-
131
- /** @internal */
132
- export const PIIRedactionPluginEnId$inboundSchema: z.ZodNativeEnum<
133
- typeof PIIRedactionPluginEnId
134
- > = z.nativeEnum(PIIRedactionPluginEnId);
135
- /** @internal */
136
- export const PIIRedactionPluginEnId$outboundSchema: z.ZodNativeEnum<
137
- typeof PIIRedactionPluginEnId
138
- > = PIIRedactionPluginEnId$inboundSchema;
139
-
140
- /** @internal */
141
- export const PIIRedactionPluginEnOnFailure$inboundSchema: z.ZodNativeEnum<
142
- typeof PIIRedactionPluginEnOnFailure
143
- > = z.nativeEnum(PIIRedactionPluginEnOnFailure);
144
- /** @internal */
145
- export const PIIRedactionPluginEnOnFailure$outboundSchema: z.ZodNativeEnum<
146
- typeof PIIRedactionPluginEnOnFailure
147
- > = PIIRedactionPluginEnOnFailure$inboundSchema;
148
-
149
- /** @internal */
150
- export const Language$inboundSchema: z.ZodNativeEnum<typeof Language> = z
151
- .nativeEnum(Language);
152
- /** @internal */
153
- export const Language$outboundSchema: z.ZodNativeEnum<typeof Language> =
154
- Language$inboundSchema;
155
-
156
- /** @internal */
157
- export const PIIRedactionPluginEnEntities$inboundSchema: z.ZodNativeEnum<
158
- typeof PIIRedactionPluginEnEntities
159
- > = z.nativeEnum(PIIRedactionPluginEnEntities);
160
- /** @internal */
161
- export const PIIRedactionPluginEnEntities$outboundSchema: z.ZodNativeEnum<
162
- typeof PIIRedactionPluginEnEntities
163
- > = PIIRedactionPluginEnEntities$inboundSchema;
164
-
165
- /** @internal */
166
- export const PIIRedactionPluginEn$inboundSchema: z.ZodType<
167
- PIIRedactionPluginEn,
168
- z.ZodTypeDef,
169
- unknown
170
- > = z.object({
171
- id: PIIRedactionPluginEnId$inboundSchema,
172
- on_failure: PIIRedactionPluginEnOnFailure$inboundSchema.optional(),
173
- threshold: z.number().optional(),
174
- language: Language$inboundSchema,
175
- entities: z.array(PIIRedactionPluginEnEntities$inboundSchema).optional(),
176
- }).transform((v) => {
177
- return remap$(v, {
178
- "on_failure": "onFailure",
179
- });
180
- });
181
- /** @internal */
182
- export type PIIRedactionPluginEn$Outbound = {
183
- id: string;
184
- on_failure?: string | undefined;
185
- threshold?: number | undefined;
186
- language: string;
187
- entities?: Array<string> | undefined;
188
- };
189
-
190
- /** @internal */
191
- export const PIIRedactionPluginEn$outboundSchema: z.ZodType<
192
- PIIRedactionPluginEn$Outbound,
193
- z.ZodTypeDef,
194
- PIIRedactionPluginEn
195
- > = z.object({
196
- id: PIIRedactionPluginEnId$outboundSchema,
197
- onFailure: PIIRedactionPluginEnOnFailure$outboundSchema.optional(),
198
- threshold: z.number().optional(),
199
- language: Language$outboundSchema,
200
- entities: z.array(PIIRedactionPluginEnEntities$outboundSchema).optional(),
201
- }).transform((v) => {
202
- return remap$(v, {
203
- onFailure: "on_failure",
204
- });
205
- });
206
-
207
- export function piiRedactionPluginEnToJSON(
208
- piiRedactionPluginEn: PIIRedactionPluginEn,
209
- ): string {
210
- return JSON.stringify(
211
- PIIRedactionPluginEn$outboundSchema.parse(piiRedactionPluginEn),
212
- );
213
- }
214
- export function piiRedactionPluginEnFromJSON(
215
- jsonString: string,
216
- ): SafeParseResult<PIIRedactionPluginEn, SDKValidationError> {
217
- return safeParse(
218
- jsonString,
219
- (x) => PIIRedactionPluginEn$inboundSchema.parse(JSON.parse(x)),
220
- `Failed to parse 'PIIRedactionPluginEn' from JSON`,
221
- );
222
- }
@@ -1,218 +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 { ClosedEnum } from "../../types/enums.js";
9
- import { Result as SafeParseResult } from "../../types/fp.js";
10
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
-
12
- /**
13
- * Plugin discriminator. Must be `pii_redaction`.
14
- */
15
- export const PIIRedactionPluginNlId = {
16
- PiiRedaction: "pii_redaction",
17
- } as const;
18
- /**
19
- * Plugin discriminator. Must be `pii_redaction`.
20
- */
21
- export type PIIRedactionPluginNlId = ClosedEnum<typeof PIIRedactionPluginNlId>;
22
-
23
- /**
24
- * Behavior when redaction is unavailable. `block` (default) fails the request; `passthrough` sends the original text.
25
- */
26
- export const PIIRedactionPluginNlOnFailure = {
27
- Block: "block",
28
- Passthrough: "passthrough",
29
- } as const;
30
- /**
31
- * Behavior when redaction is unavailable. `block` (default) fails the request; `passthrough` sends the original text.
32
- */
33
- export type PIIRedactionPluginNlOnFailure = ClosedEnum<
34
- typeof PIIRedactionPluginNlOnFailure
35
- >;
36
-
37
- /**
38
- * Detector language.
39
- */
40
- export const PIIRedactionPluginNlLanguage = {
41
- Nl: "nl",
42
- } as const;
43
- /**
44
- * Detector language.
45
- */
46
- export type PIIRedactionPluginNlLanguage = ClosedEnum<
47
- typeof PIIRedactionPluginNlLanguage
48
- >;
49
-
50
- export const PIIRedactionPluginNlEntities = {
51
- Age: "AGE",
52
- ApiKey: "API_KEY",
53
- BankRouting: "BANK_ROUTING",
54
- Bic: "BIC",
55
- BiometricId: "BIOMETRIC_ID",
56
- BloodType: "BLOOD_TYPE",
57
- Bsn: "BSN",
58
- CreditCard: "CREDIT_CARD",
59
- Crypto: "CRYPTO",
60
- DateTime: "DATE_TIME",
61
- DeviceId: "DEVICE_ID",
62
- EducationLevel: "EDUCATION_LEVEL",
63
- EmailAddress: "EMAIL_ADDRESS",
64
- EmploymentStatus: "EMPLOYMENT_STATUS",
65
- Gender: "GENDER",
66
- HealthPlanId: "HEALTH_PLAN_ID",
67
- HttpCookie: "HTTP_COOKIE",
68
- IbanCode: "IBAN_CODE",
69
- Id: "ID",
70
- IdCard: "ID_CARD",
71
- Imei: "IMEI",
72
- IpAddress: "IP_ADDRESS",
73
- KvkNumber: "KVK_NUMBER",
74
- Language: "LANGUAGE",
75
- LicenseNumber: "LICENSE_NUMBER",
76
- LicensePlate: "LICENSE_PLATE",
77
- Location: "LOCATION",
78
- MacAddress: "MAC_ADDRESS",
79
- MedicalRecord: "MEDICAL_RECORD",
80
- Nrp: "NRP",
81
- Organization: "ORGANIZATION",
82
- Passport: "PASSPORT",
83
- Password: "PASSWORD",
84
- Person: "PERSON",
85
- PhoneNumber: "PHONE_NUMBER",
86
- Pin: "PIN",
87
- PoliticalView: "POLITICAL_VIEW",
88
- RaceEthnicity: "RACE_ETHNICITY",
89
- ReligiousBelief: "RELIGIOUS_BELIEF",
90
- Sexuality: "SEXUALITY",
91
- TaxId: "TAX_ID",
92
- Title: "TITLE",
93
- Url: "URL",
94
- UsDriverLicense: "US_DRIVER_LICENSE",
95
- UsSsn: "US_SSN",
96
- VehicleId: "VEHICLE_ID",
97
- } as const;
98
- export type PIIRedactionPluginNlEntities = ClosedEnum<
99
- typeof PIIRedactionPluginNlEntities
100
- >;
101
-
102
- export type PIIRedactionPluginNl = {
103
- /**
104
- * Plugin discriminator. Must be `pii_redaction`.
105
- */
106
- id: PIIRedactionPluginNlId;
107
- /**
108
- * Behavior when redaction is unavailable. `block` (default) fails the request; `passthrough` sends the original text.
109
- */
110
- onFailure?: PIIRedactionPluginNlOnFailure | undefined;
111
- /**
112
- * Detector confidence cutoff in [0,1].
113
- */
114
- threshold?: number | undefined;
115
- /**
116
- * Detector language.
117
- */
118
- language: PIIRedactionPluginNlLanguage;
119
- /**
120
- * Dutch entity types to redact. Omit to redact every type detected for the language.
121
- */
122
- entities?: Array<PIIRedactionPluginNlEntities> | undefined;
123
- };
124
-
125
- /** @internal */
126
- export const PIIRedactionPluginNlId$inboundSchema: z.ZodNativeEnum<
127
- typeof PIIRedactionPluginNlId
128
- > = z.nativeEnum(PIIRedactionPluginNlId);
129
- /** @internal */
130
- export const PIIRedactionPluginNlId$outboundSchema: z.ZodNativeEnum<
131
- typeof PIIRedactionPluginNlId
132
- > = PIIRedactionPluginNlId$inboundSchema;
133
-
134
- /** @internal */
135
- export const PIIRedactionPluginNlOnFailure$inboundSchema: z.ZodNativeEnum<
136
- typeof PIIRedactionPluginNlOnFailure
137
- > = z.nativeEnum(PIIRedactionPluginNlOnFailure);
138
- /** @internal */
139
- export const PIIRedactionPluginNlOnFailure$outboundSchema: z.ZodNativeEnum<
140
- typeof PIIRedactionPluginNlOnFailure
141
- > = PIIRedactionPluginNlOnFailure$inboundSchema;
142
-
143
- /** @internal */
144
- export const PIIRedactionPluginNlLanguage$inboundSchema: z.ZodNativeEnum<
145
- typeof PIIRedactionPluginNlLanguage
146
- > = z.nativeEnum(PIIRedactionPluginNlLanguage);
147
- /** @internal */
148
- export const PIIRedactionPluginNlLanguage$outboundSchema: z.ZodNativeEnum<
149
- typeof PIIRedactionPluginNlLanguage
150
- > = PIIRedactionPluginNlLanguage$inboundSchema;
151
-
152
- /** @internal */
153
- export const PIIRedactionPluginNlEntities$inboundSchema: z.ZodNativeEnum<
154
- typeof PIIRedactionPluginNlEntities
155
- > = z.nativeEnum(PIIRedactionPluginNlEntities);
156
- /** @internal */
157
- export const PIIRedactionPluginNlEntities$outboundSchema: z.ZodNativeEnum<
158
- typeof PIIRedactionPluginNlEntities
159
- > = PIIRedactionPluginNlEntities$inboundSchema;
160
-
161
- /** @internal */
162
- export const PIIRedactionPluginNl$inboundSchema: z.ZodType<
163
- PIIRedactionPluginNl,
164
- z.ZodTypeDef,
165
- unknown
166
- > = z.object({
167
- id: PIIRedactionPluginNlId$inboundSchema,
168
- on_failure: PIIRedactionPluginNlOnFailure$inboundSchema.optional(),
169
- threshold: z.number().optional(),
170
- language: PIIRedactionPluginNlLanguage$inboundSchema,
171
- entities: z.array(PIIRedactionPluginNlEntities$inboundSchema).optional(),
172
- }).transform((v) => {
173
- return remap$(v, {
174
- "on_failure": "onFailure",
175
- });
176
- });
177
- /** @internal */
178
- export type PIIRedactionPluginNl$Outbound = {
179
- id: string;
180
- on_failure?: string | undefined;
181
- threshold?: number | undefined;
182
- language: string;
183
- entities?: Array<string> | undefined;
184
- };
185
-
186
- /** @internal */
187
- export const PIIRedactionPluginNl$outboundSchema: z.ZodType<
188
- PIIRedactionPluginNl$Outbound,
189
- z.ZodTypeDef,
190
- PIIRedactionPluginNl
191
- > = z.object({
192
- id: PIIRedactionPluginNlId$outboundSchema,
193
- onFailure: PIIRedactionPluginNlOnFailure$outboundSchema.optional(),
194
- threshold: z.number().optional(),
195
- language: PIIRedactionPluginNlLanguage$outboundSchema,
196
- entities: z.array(PIIRedactionPluginNlEntities$outboundSchema).optional(),
197
- }).transform((v) => {
198
- return remap$(v, {
199
- onFailure: "on_failure",
200
- });
201
- });
202
-
203
- export function piiRedactionPluginNlToJSON(
204
- piiRedactionPluginNl: PIIRedactionPluginNl,
205
- ): string {
206
- return JSON.stringify(
207
- PIIRedactionPluginNl$outboundSchema.parse(piiRedactionPluginNl),
208
- );
209
- }
210
- export function piiRedactionPluginNlFromJSON(
211
- jsonString: string,
212
- ): SafeParseResult<PIIRedactionPluginNl, SDKValidationError> {
213
- return safeParse(
214
- jsonString,
215
- (x) => PIIRedactionPluginNl$inboundSchema.parse(JSON.parse(x)),
216
- `Failed to parse 'PIIRedactionPluginNl' from JSON`,
217
- );
218
- }