@orq-ai/node 4.14.11 → 4.14.13

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 (126) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +2 -2
  3. package/lib/config.js +2 -2
  4. package/models/components/evaluatorresponsefunction.js +2 -2
  5. package/models/components/evaluatorresponsehttp.js +2 -2
  6. package/models/components/evaluatorresponsejsonschema.js +2 -2
  7. package/models/components/evaluatorresponsellm.js +2 -2
  8. package/models/components/evaluatorresponsepython.js +2 -2
  9. package/models/components/evaluatorresponseragas.js +2 -2
  10. package/models/components/evaluatorresponsetypescript.js +2 -2
  11. package/models/components/reasoningpart.js +1 -1
  12. package/models/operations/createannotationqueue.js +1 -1
  13. package/models/operations/createdataset.js +1 -1
  14. package/models/operations/createdatasetitem.js +5 -5
  15. package/models/operations/createtool.js +4 -4
  16. package/models/operations/getalltools.js +4 -4
  17. package/models/operations/geteval.js +16 -16
  18. package/models/operations/getv2humanevalsets.js +2 -2
  19. package/models/operations/getv2humanevalsetsid.js +2 -2
  20. package/models/operations/listannotationqueues.js +1 -1
  21. package/models/operations/listdatasetdatapoints.js +5 -5
  22. package/models/operations/listdatasets.js +1 -1
  23. package/models/operations/patchv2humanevalsetsid.js +2 -2
  24. package/models/operations/postv2feedbackevaluation.js +4 -4
  25. package/models/operations/postv2humanevalsets.js +2 -2
  26. package/models/operations/retrieveannotationqueue.js +1 -1
  27. package/models/operations/retrievedatapoint.js +5 -5
  28. package/models/operations/retrievedataset.js +1 -1
  29. package/models/operations/retrievetool.js +4 -4
  30. package/models/operations/runagent.js +1 -1
  31. package/models/operations/streamrunagent.js +1 -1
  32. package/models/operations/updateannotationqueue.js +1 -1
  33. package/models/operations/updatedatapoint.js +5 -5
  34. package/models/operations/updatedataset.js +1 -1
  35. package/models/operations/updatetool.js +4 -4
  36. package/package.json +3 -3
  37. package/packages/orq-rc/src/funcs/piiCapabilities.ts +144 -0
  38. package/packages/orq-rc/src/lib/config.ts +2 -2
  39. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +11 -1
  40. package/packages/orq-rc/src/models/components/capabilitiesresponse.ts +96 -0
  41. package/packages/orq-rc/src/models/components/createmcpgatewayrequest.ts +11 -0
  42. package/packages/orq-rc/src/models/components/detectrequest.ts +48 -0
  43. package/packages/orq-rc/src/models/components/entitylist.ts +37 -0
  44. package/packages/orq-rc/src/models/components/guardrailruleplugin.ts +27 -0
  45. package/packages/orq-rc/src/models/components/index.ts +4 -3
  46. package/packages/orq-rc/src/models/components/mcpgateway.ts +9 -0
  47. package/packages/orq-rc/src/models/components/mcpgatewayplugin.ts +83 -0
  48. package/packages/orq-rc/src/models/components/monitorfilter.ts +8 -0
  49. package/packages/orq-rc/src/models/components/piiredactionplugin.ts +143 -0
  50. package/packages/orq-rc/src/models/components/publicplugin.ts +17 -21
  51. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  52. package/packages/orq-rc/src/models/components/redactrequest.ts +52 -0
  53. package/packages/orq-rc/src/models/components/responsehealingplugin.ts +4 -27
  54. package/packages/orq-rc/src/models/components/routingruleplugin.ts +27 -0
  55. package/packages/orq-rc/src/models/components/tracescrubbingplugin.ts +4 -24
  56. package/packages/orq-rc/src/models/components/updatemcpgatewayrequest.ts +11 -0
  57. package/packages/orq-rc/src/models/operations/createagentrequest.ts +85 -87
  58. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +18 -26
  59. package/packages/orq-rc/src/models/operations/createcompletion.ts +3 -51
  60. package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
  61. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +5 -5
  62. package/packages/orq-rc/src/models/operations/createimage.ts +3 -51
  63. package/packages/orq-rc/src/models/operations/createprompt.ts +31 -43
  64. package/packages/orq-rc/src/models/operations/creatererank.ts +3 -51
  65. package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
  66. package/packages/orq-rc/src/models/operations/getallprompts.ts +13 -17
  67. package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
  68. package/packages/orq-rc/src/models/operations/getoneprompt.ts +13 -17
  69. package/packages/orq-rc/src/models/operations/getpromptversion.ts +13 -17
  70. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  71. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  72. package/packages/orq-rc/src/models/operations/listagents.ts +37 -35
  73. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +5 -5
  74. package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
  75. package/packages/orq-rc/src/models/operations/listpromptversions.ts +13 -17
  76. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  77. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
  78. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  79. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +37 -35
  80. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +5 -5
  81. package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
  82. package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
  83. package/packages/orq-rc/src/models/operations/runagent.ts +49 -53
  84. package/packages/orq-rc/src/models/operations/streamrunagent.ts +49 -53
  85. package/packages/orq-rc/src/models/operations/updateagent.ts +85 -87
  86. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +5 -5
  87. package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
  88. package/packages/orq-rc/src/models/operations/updateprompt.ts +31 -43
  89. package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
  90. package/packages/orq-rc/src/sdk/pii.ts +16 -0
  91. package/src/lib/config.ts +2 -2
  92. package/src/models/components/evaluatorresponsefunction.ts +2 -2
  93. package/src/models/components/evaluatorresponsehttp.ts +2 -2
  94. package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
  95. package/src/models/components/evaluatorresponsellm.ts +2 -2
  96. package/src/models/components/evaluatorresponsepython.ts +2 -2
  97. package/src/models/components/evaluatorresponseragas.ts +2 -2
  98. package/src/models/components/evaluatorresponsetypescript.ts +2 -2
  99. package/src/models/components/reasoningpart.ts +1 -1
  100. package/src/models/operations/createannotationqueue.ts +1 -1
  101. package/src/models/operations/createdataset.ts +1 -1
  102. package/src/models/operations/createdatasetitem.ts +5 -5
  103. package/src/models/operations/createtool.ts +4 -4
  104. package/src/models/operations/getalltools.ts +4 -4
  105. package/src/models/operations/geteval.ts +16 -16
  106. package/src/models/operations/getv2humanevalsets.ts +2 -2
  107. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  108. package/src/models/operations/listannotationqueues.ts +1 -1
  109. package/src/models/operations/listdatasetdatapoints.ts +5 -5
  110. package/src/models/operations/listdatasets.ts +1 -1
  111. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  112. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  113. package/src/models/operations/postv2humanevalsets.ts +2 -2
  114. package/src/models/operations/retrieveannotationqueue.ts +1 -1
  115. package/src/models/operations/retrievedatapoint.ts +5 -5
  116. package/src/models/operations/retrievedataset.ts +1 -1
  117. package/src/models/operations/retrievetool.ts +4 -4
  118. package/src/models/operations/runagent.ts +1 -1
  119. package/src/models/operations/streamrunagent.ts +1 -1
  120. package/src/models/operations/updateannotationqueue.ts +1 -1
  121. package/src/models/operations/updatedatapoint.ts +5 -5
  122. package/src/models/operations/updatedataset.ts +1 -1
  123. package/src/models/operations/updatetool.ts +4 -4
  124. package/packages/orq-rc/src/models/components/piiredactionpluginauto.ts +0 -185
  125. package/packages/orq-rc/src/models/components/piiredactionpluginen.ts +0 -222
  126. package/packages/orq-rc/src/models/components/piiredactionpluginnl.ts +0 -218
@@ -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
- }