@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.
- package/README.md +30 -28
- package/funcs/piiCapabilities.d.ts +17 -0
- package/funcs/piiCapabilities.d.ts.map +1 -0
- package/funcs/piiCapabilities.js +105 -0
- package/funcs/piiCapabilities.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/agentstartedstreamingevent.d.ts +13 -1
- package/models/components/agentstartedstreamingevent.d.ts.map +1 -1
- package/models/components/agentstartedstreamingevent.js +2 -0
- package/models/components/agentstartedstreamingevent.js.map +1 -1
- package/models/components/capabilitiesresponse.d.ts +62 -0
- package/models/components/capabilitiesresponse.d.ts.map +1 -0
- package/models/components/capabilitiesresponse.js +68 -0
- package/models/components/capabilitiesresponse.js.map +1 -0
- package/models/components/detectrequest.d.ts +48 -0
- package/models/components/detectrequest.d.ts.map +1 -1
- package/models/components/detectrequest.js +4 -0
- package/models/components/detectrequest.js.map +1 -1
- package/models/components/entitylist.d.ts +16 -0
- package/models/components/entitylist.d.ts.map +1 -0
- package/models/components/entitylist.js +50 -0
- package/models/components/entitylist.js.map +1 -0
- package/models/components/guardrailruleplugin.d.ts +25 -0
- package/models/components/guardrailruleplugin.d.ts.map +1 -1
- package/models/components/guardrailruleplugin.js +6 -0
- package/models/components/guardrailruleplugin.js.map +1 -1
- package/models/components/index.d.ts +3 -3
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +3 -3
- package/models/components/index.js.map +1 -1
- package/models/components/piiredactionplugin.d.ts +84 -0
- package/models/components/piiredactionplugin.d.ts.map +1 -0
- package/models/components/piiredactionplugin.js +103 -0
- package/models/components/piiredactionplugin.js.map +1 -0
- package/models/components/publicplugin.d.ts +17 -16
- package/models/components/publicplugin.d.ts.map +1 -1
- package/models/components/publicplugin.js +5 -11
- package/models/components/publicplugin.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/redactrequest.d.ts +48 -0
- package/models/components/redactrequest.d.ts.map +1 -1
- package/models/components/redactrequest.js +8 -0
- package/models/components/redactrequest.js.map +1 -1
- package/models/components/responsehealingplugin.d.ts +2 -17
- package/models/components/responsehealingplugin.d.ts.map +1 -1
- package/models/components/responsehealingplugin.js +3 -13
- package/models/components/responsehealingplugin.js.map +1 -1
- package/models/components/routingruleplugin.d.ts +25 -0
- package/models/components/routingruleplugin.d.ts.map +1 -1
- package/models/components/routingruleplugin.js +6 -0
- package/models/components/routingruleplugin.js.map +1 -1
- package/models/components/tracescrubbingplugin.d.ts +2 -16
- package/models/components/tracescrubbingplugin.d.ts.map +1 -1
- package/models/components/tracescrubbingplugin.js +3 -13
- package/models/components/tracescrubbingplugin.js.map +1 -1
- package/models/operations/createagentrequest.d.ts +67 -13
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +20 -32
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts +12 -4
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +4 -8
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createcompletion.d.ts +2 -8
- package/models/operations/createcompletion.d.ts.map +1 -1
- package/models/operations/createcompletion.js +3 -17
- package/models/operations/createcompletion.js.map +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createimage.d.ts +2 -8
- package/models/operations/createimage.d.ts.map +1 -1
- package/models/operations/createimage.js +2 -16
- package/models/operations/createimage.js.map +1 -1
- package/models/operations/createprompt.d.ts +18 -6
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +8 -16
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/creatererank.d.ts +2 -8
- package/models/operations/creatererank.d.ts.map +1 -1
- package/models/operations/creatererank.js +2 -16
- package/models/operations/creatererank.js.map +1 -1
- package/models/operations/createtool.js +4 -4
- package/models/operations/getallprompts.d.ts +6 -2
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +4 -8
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getoneprompt.d.ts +6 -2
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +4 -8
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +6 -2
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +4 -8
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listagents.d.ts +25 -5
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +10 -16
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listpromptversions.d.ts +6 -2
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +4 -8
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrieveagentrequest.d.ts +25 -5
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +10 -16
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.d.ts +42 -8
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +11 -17
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +42 -8
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +11 -17
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +67 -13
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +20 -32
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updateprompt.d.ts +18 -6
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +8 -16
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +1 -1
- package/sdk/pii.d.ts +7 -0
- package/sdk/pii.d.ts.map +1 -1
- package/sdk/pii.js +10 -0
- package/sdk/pii.js.map +1 -1
- package/src/funcs/piiCapabilities.ts +144 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/agentstartedstreamingevent.ts +11 -1
- package/src/models/components/capabilitiesresponse.ts +96 -0
- package/src/models/components/detectrequest.ts +48 -0
- package/src/models/components/entitylist.ts +37 -0
- package/src/models/components/guardrailruleplugin.ts +27 -0
- package/src/models/components/index.ts +3 -3
- package/src/models/components/piiredactionplugin.ts +143 -0
- package/src/models/components/publicplugin.ts +17 -21
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/redactrequest.ts +52 -0
- package/src/models/components/responsehealingplugin.ts +4 -27
- package/src/models/components/routingruleplugin.ts +27 -0
- package/src/models/components/tracescrubbingplugin.ts +4 -24
- package/src/models/operations/createagentrequest.ts +85 -87
- package/src/models/operations/createchatcompletion.ts +18 -26
- package/src/models/operations/createcompletion.ts +3 -51
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createimage.ts +3 -51
- package/src/models/operations/createprompt.ts +31 -43
- package/src/models/operations/creatererank.ts +3 -51
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getallprompts.ts +13 -17
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getoneprompt.ts +13 -17
- package/src/models/operations/getpromptversion.ts +13 -17
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listagents.ts +37 -35
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listpromptversions.ts +13 -17
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrieveagentrequest.ts +37 -35
- package/src/models/operations/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +49 -53
- package/src/models/operations/streamrunagent.ts +49 -53
- package/src/models/operations/updateagent.ts +85 -87
- package/src/models/operations/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updateprompt.ts +31 -43
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/pii.ts +16 -0
- package/models/components/piiredactionpluginauto.d.ts +0 -126
- package/models/components/piiredactionpluginauto.d.ts.map +0 -1
- package/models/components/piiredactionpluginauto.js +0 -156
- package/models/components/piiredactionpluginauto.js.map +0 -1
- package/models/components/piiredactionpluginen.d.ts +0 -145
- package/models/components/piiredactionpluginen.d.ts.map +0 -1
- package/models/components/piiredactionpluginen.js +0 -167
- package/models/components/piiredactionpluginen.js.map +0 -1
- package/models/components/piiredactionpluginnl.d.ts +0 -137
- package/models/components/piiredactionpluginnl.d.ts.map +0 -1
- package/models/components/piiredactionpluginnl.js +0 -158
- package/models/components/piiredactionpluginnl.js.map +0 -1
- package/src/models/components/piiredactionpluginauto.ts +0 -185
- package/src/models/components/piiredactionpluginen.ts +0 -222
- package/src/models/components/piiredactionpluginnl.ts +0 -218
package/README.md
CHANGED
|
@@ -410,6 +410,7 @@ run();
|
|
|
410
410
|
|
|
411
411
|
### [Pii](docs/sdks/pii/README.md)
|
|
412
412
|
|
|
413
|
+
* [capabilities](docs/sdks/pii/README.md#capabilities) - Get PII capabilities
|
|
413
414
|
* [detect](docs/sdks/pii/README.md#detect) - Detect PII
|
|
414
415
|
* [redact](docs/sdks/pii/README.md#redact) - Redact PII
|
|
415
416
|
* [restore](docs/sdks/pii/README.md#restore) - Restore redacted text
|
|
@@ -790,6 +791,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
790
791
|
- [`notifiersGet`](docs/sdks/notifiers/README.md#get) - Retrieve a notifier
|
|
791
792
|
- [`notifiersList`](docs/sdks/notifiers/README.md#list) - List notifiers
|
|
792
793
|
- [`notifiersUpdate`](docs/sdks/notifiers/README.md#update) - Update a notifier
|
|
794
|
+
- [`piiCapabilities`](docs/sdks/pii/README.md#capabilities) - Get PII capabilities
|
|
793
795
|
- [`piiDetect`](docs/sdks/pii/README.md#detect) - Detect PII
|
|
794
796
|
- [`piiRedact`](docs/sdks/pii/README.md#redact) - Redact PII
|
|
795
797
|
- [`piiRestore`](docs/sdks/pii/README.md#restore) - Restore redacted text
|
|
@@ -1202,34 +1204,34 @@ run();
|
|
|
1202
1204
|
|
|
1203
1205
|
|
|
1204
1206
|
**Inherit from [`OrqError`](./src/models/errors/orqerror.ts)**:
|
|
1205
|
-
* [`HonoApiError`](./src/models/errors/honoapierror.ts): Applicable to 12 of
|
|
1206
|
-
* [`PostV2FeedbackResponseBody`](./src/models/errors/postv2feedbackresponsebody.ts): Bad Request. Status code `400`. Applicable to 1 of
|
|
1207
|
-
* [`CreateAgentScheduleResponseBody`](./src/models/errors/createagentscheduleresponsebody.ts): Invalid schedule type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of
|
|
1208
|
-
* [`UpdateAgentScheduleResponseBody`](./src/models/errors/updateagentscheduleresponsebody.ts): Invalid type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of
|
|
1209
|
-
* [`TriggerAgentScheduleResponseBody`](./src/models/errors/triggeragentscheduleresponsebody.ts): Schedule is inactive. Status code `400`. Applicable to 1 of
|
|
1210
|
-
* [`DeleteAgentResponseBody`](./src/models/errors/deleteagentresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or has already been deleted. Status code `404`. Applicable to 1 of
|
|
1211
|
-
* [`RetrieveAgentRequestResponseBody`](./src/models/errors/retrieveagentrequestresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to access it. Status code `404`. Applicable to 1 of
|
|
1212
|
-
* [`UpdateAgentResponseBody`](./src/models/errors/updateagentresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to modify it. Status code `404`. Applicable to 1 of
|
|
1213
|
-
* [`StreamRunAgentResponseBody`](./src/models/errors/streamrunagentresponsebody.ts): Model not found. Status code `404`. Applicable to 1 of
|
|
1214
|
-
* [`StreamAgentResponseBody`](./src/models/errors/streamagentresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of
|
|
1215
|
-
* [`UpdatePromptResponseBody`](./src/models/errors/updatepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of
|
|
1216
|
-
* [`DeletePromptResponseBody`](./src/models/errors/deletepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of
|
|
1217
|
-
* [`GetPromptVersionResponseBody`](./src/models/errors/getpromptversionresponsebody.ts): Not Found - The prompt or prompt version does not exist. Status code `404`. Applicable to 1 of
|
|
1218
|
-
* [`UpdateToolResponseBody`](./src/models/errors/updatetoolresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of
|
|
1219
|
-
* [`GetV2ToolsToolIdVersionsResponseBody`](./src/models/errors/getv2toolstoolidversionsresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of
|
|
1220
|
-
* [`GetV2ToolsToolIdVersionsVersionIdResponseBody`](./src/models/errors/getv2toolstoolidversionsversionidresponsebody.ts): Tool or version not found. Status code `404`. Applicable to 1 of
|
|
1221
|
-
* [`PostV2FeedbackRemoveResponseBody`](./src/models/errors/postv2feedbackremoveresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
1222
|
-
* [`PostV2FeedbackFeedbackResponseBody`](./src/models/errors/postv2feedbackfeedbackresponsebody.ts): Workspace, trace, or feedback property was not found. Status code `404`. Applicable to 1 of
|
|
1223
|
-
* [`CreateAgentScheduleSchedulesResponseBody`](./src/models/errors/createagentscheduleschedulesresponsebody.ts): Agent (or agent version, when agent_tag is set) not found. Status code `404`. Applicable to 1 of
|
|
1224
|
-
* [`DeleteAgentScheduleResponseBody`](./src/models/errors/deleteagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of
|
|
1225
|
-
* [`RetrieveAgentScheduleResponseBody`](./src/models/errors/retrieveagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of
|
|
1226
|
-
* [`UpdateAgentScheduleSchedulesResponseBody`](./src/models/errors/updateagentscheduleschedulesresponsebody.ts): Schedule or agent version not found. Status code `404`. Applicable to 1 of
|
|
1227
|
-
* [`TriggerAgentScheduleSchedulesResponseBody`](./src/models/errors/triggeragentscheduleschedulesresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of
|
|
1228
|
-
* [`RetrieveResponseResponseBody`](./src/models/errors/retrieveresponseresponsebody.ts): Response not found. Status code `404`. Applicable to 1 of
|
|
1229
|
-
* [`CreateModerationResponseBody`](./src/models/errors/createmoderationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of
|
|
1230
|
-
* [`CreateTranscriptionResponseBody`](./src/models/errors/createtranscriptionresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of
|
|
1231
|
-
* [`CreateTranslationResponseBody`](./src/models/errors/createtranslationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of
|
|
1232
|
-
* [`KnowledgeApiError`](./src/models/errors/knowledgeapierror.ts): An error has occured. Status code `500`. Applicable to 1 of
|
|
1207
|
+
* [`HonoApiError`](./src/models/errors/honoapierror.ts): Applicable to 12 of 287 methods.*
|
|
1208
|
+
* [`PostV2FeedbackResponseBody`](./src/models/errors/postv2feedbackresponsebody.ts): Bad Request. Status code `400`. Applicable to 1 of 287 methods.*
|
|
1209
|
+
* [`CreateAgentScheduleResponseBody`](./src/models/errors/createagentscheduleresponsebody.ts): Invalid schedule type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of 287 methods.*
|
|
1210
|
+
* [`UpdateAgentScheduleResponseBody`](./src/models/errors/updateagentscheduleresponsebody.ts): Invalid type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of 287 methods.*
|
|
1211
|
+
* [`TriggerAgentScheduleResponseBody`](./src/models/errors/triggeragentscheduleresponsebody.ts): Schedule is inactive. Status code `400`. Applicable to 1 of 287 methods.*
|
|
1212
|
+
* [`DeleteAgentResponseBody`](./src/models/errors/deleteagentresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or has already been deleted. Status code `404`. Applicable to 1 of 287 methods.*
|
|
1213
|
+
* [`RetrieveAgentRequestResponseBody`](./src/models/errors/retrieveagentrequestresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to access it. Status code `404`. Applicable to 1 of 287 methods.*
|
|
1214
|
+
* [`UpdateAgentResponseBody`](./src/models/errors/updateagentresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to modify it. Status code `404`. Applicable to 1 of 287 methods.*
|
|
1215
|
+
* [`StreamRunAgentResponseBody`](./src/models/errors/streamrunagentresponsebody.ts): Model not found. Status code `404`. Applicable to 1 of 287 methods.*
|
|
1216
|
+
* [`StreamAgentResponseBody`](./src/models/errors/streamagentresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of 287 methods.*
|
|
1217
|
+
* [`UpdatePromptResponseBody`](./src/models/errors/updatepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 287 methods.*
|
|
1218
|
+
* [`DeletePromptResponseBody`](./src/models/errors/deletepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 287 methods.*
|
|
1219
|
+
* [`GetPromptVersionResponseBody`](./src/models/errors/getpromptversionresponsebody.ts): Not Found - The prompt or prompt version does not exist. Status code `404`. Applicable to 1 of 287 methods.*
|
|
1220
|
+
* [`UpdateToolResponseBody`](./src/models/errors/updatetoolresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 287 methods.*
|
|
1221
|
+
* [`GetV2ToolsToolIdVersionsResponseBody`](./src/models/errors/getv2toolstoolidversionsresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 287 methods.*
|
|
1222
|
+
* [`GetV2ToolsToolIdVersionsVersionIdResponseBody`](./src/models/errors/getv2toolstoolidversionsversionidresponsebody.ts): Tool or version not found. Status code `404`. Applicable to 1 of 287 methods.*
|
|
1223
|
+
* [`PostV2FeedbackRemoveResponseBody`](./src/models/errors/postv2feedbackremoveresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 287 methods.*
|
|
1224
|
+
* [`PostV2FeedbackFeedbackResponseBody`](./src/models/errors/postv2feedbackfeedbackresponsebody.ts): Workspace, trace, or feedback property was not found. Status code `404`. Applicable to 1 of 287 methods.*
|
|
1225
|
+
* [`CreateAgentScheduleSchedulesResponseBody`](./src/models/errors/createagentscheduleschedulesresponsebody.ts): Agent (or agent version, when agent_tag is set) not found. Status code `404`. Applicable to 1 of 287 methods.*
|
|
1226
|
+
* [`DeleteAgentScheduleResponseBody`](./src/models/errors/deleteagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 287 methods.*
|
|
1227
|
+
* [`RetrieveAgentScheduleResponseBody`](./src/models/errors/retrieveagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 287 methods.*
|
|
1228
|
+
* [`UpdateAgentScheduleSchedulesResponseBody`](./src/models/errors/updateagentscheduleschedulesresponsebody.ts): Schedule or agent version not found. Status code `404`. Applicable to 1 of 287 methods.*
|
|
1229
|
+
* [`TriggerAgentScheduleSchedulesResponseBody`](./src/models/errors/triggeragentscheduleschedulesresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 287 methods.*
|
|
1230
|
+
* [`RetrieveResponseResponseBody`](./src/models/errors/retrieveresponseresponsebody.ts): Response not found. Status code `404`. Applicable to 1 of 287 methods.*
|
|
1231
|
+
* [`CreateModerationResponseBody`](./src/models/errors/createmoderationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 287 methods.*
|
|
1232
|
+
* [`CreateTranscriptionResponseBody`](./src/models/errors/createtranscriptionresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 287 methods.*
|
|
1233
|
+
* [`CreateTranslationResponseBody`](./src/models/errors/createtranslationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 287 methods.*
|
|
1234
|
+
* [`KnowledgeApiError`](./src/models/errors/knowledgeapierror.ts): An error has occured. Status code `500`. Applicable to 1 of 287 methods.*
|
|
1233
1235
|
* [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
|
|
1234
1236
|
|
|
1235
1237
|
</details>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OrqCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import * as components from "../models/components/index.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
+
import { OrqError } from "../models/errors/orqerror.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
+
import { APIPromise } from "../types/async.js";
|
|
9
|
+
import { Result } from "../types/fp.js";
|
|
10
|
+
/**
|
|
11
|
+
* Get PII capabilities
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
* Reports the entity catalog, supported regions, and default thresholds the PII detection service currently exposes, including per-entity default thresholds.
|
|
15
|
+
*/
|
|
16
|
+
export declare function piiCapabilities(client: OrqCore, options?: RequestOptions): APIPromise<Result<components.CapabilitiesResponse, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
17
|
+
//# sourceMappingURL=piiCapabilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"piiCapabilities.d.ts","sourceRoot":"","sources":["../src/funcs/piiCapabilities.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAIrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,OAAO,EACf,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,oBAAoB,EAC7B,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAKA"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.piiCapabilities = piiCapabilities;
|
|
40
|
+
const http_js_1 = require("../lib/http.js");
|
|
41
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
42
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
43
|
+
const security_js_1 = require("../lib/security.js");
|
|
44
|
+
const url_js_1 = require("../lib/url.js");
|
|
45
|
+
const components = __importStar(require("../models/components/index.js"));
|
|
46
|
+
const async_js_1 = require("../types/async.js");
|
|
47
|
+
/**
|
|
48
|
+
* Get PII capabilities
|
|
49
|
+
*
|
|
50
|
+
* @remarks
|
|
51
|
+
* Reports the entity catalog, supported regions, and default thresholds the PII detection service currently exposes, including per-entity default thresholds.
|
|
52
|
+
*/
|
|
53
|
+
function piiCapabilities(client, options) {
|
|
54
|
+
return new async_js_1.APIPromise($do(client, options));
|
|
55
|
+
}
|
|
56
|
+
async function $do(client, options) {
|
|
57
|
+
const path = (0, url_js_1.pathToFunc)("/v2/pii/capabilities")();
|
|
58
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
59
|
+
Accept: "application/json",
|
|
60
|
+
}));
|
|
61
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
62
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
63
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
64
|
+
const context = {
|
|
65
|
+
options: client._options,
|
|
66
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
67
|
+
operationID: "PIICapabilities",
|
|
68
|
+
oAuth2Scopes: null,
|
|
69
|
+
resolvedSecurity: requestSecurity,
|
|
70
|
+
securitySource: client._options.apiKey,
|
|
71
|
+
retryConfig: options?.retries
|
|
72
|
+
|| client._options.retryConfig
|
|
73
|
+
|| { strategy: "none" },
|
|
74
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
75
|
+
};
|
|
76
|
+
const requestRes = client._createRequest(context, {
|
|
77
|
+
security: requestSecurity,
|
|
78
|
+
method: "GET",
|
|
79
|
+
baseURL: options?.serverURL,
|
|
80
|
+
path: path,
|
|
81
|
+
headers: headers,
|
|
82
|
+
userAgent: client._options.userAgent,
|
|
83
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
84
|
+
}, options);
|
|
85
|
+
if (!requestRes.ok) {
|
|
86
|
+
return [requestRes, { status: "invalid" }];
|
|
87
|
+
}
|
|
88
|
+
const req = requestRes.value;
|
|
89
|
+
const doResult = await client._do(req, {
|
|
90
|
+
context,
|
|
91
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
92
|
+
retryConfig: context.retryConfig,
|
|
93
|
+
retryCodes: context.retryCodes,
|
|
94
|
+
});
|
|
95
|
+
if (!doResult.ok) {
|
|
96
|
+
return [doResult, { status: "request-error", request: req }];
|
|
97
|
+
}
|
|
98
|
+
const response = doResult.value;
|
|
99
|
+
const [result] = await M.match(M.json(200, components.CapabilitiesResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req);
|
|
100
|
+
if (!result.ok) {
|
|
101
|
+
return [result, { status: "complete", request: req, response }];
|
|
102
|
+
}
|
|
103
|
+
return [result, { status: "complete", request: req, response }];
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=piiCapabilities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"piiCapabilities.js","sourceRoot":"","sources":["../src/funcs/piiCapabilities.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BH,0CAoBC;AA9CD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAElD,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAW5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,eAAe,CAC7B,MAAe,EACf,OAAwB;IAcxB,OAAO,IAAI,qBAAU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AAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "2.0";
|
|
34
|
-
readonly sdkVersion: "4.15.0-rc.
|
|
34
|
+
readonly sdkVersion: "4.15.0-rc.22";
|
|
35
35
|
readonly genVersion: "2.935.1";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 4.15.0-rc.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 4.15.0-rc.22 2.935.1 2.0 @orq-ai/node";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -28,8 +28,8 @@ function serverURLFromOptions(options) {
|
|
|
28
28
|
exports.SDK_METADATA = {
|
|
29
29
|
language: "typescript",
|
|
30
30
|
openapiDocVersion: "2.0",
|
|
31
|
-
sdkVersion: "4.15.0-rc.
|
|
31
|
+
sdkVersion: "4.15.0-rc.22",
|
|
32
32
|
genVersion: "2.935.1",
|
|
33
|
-
userAgent: "speakeasy-sdk/typescript 4.15.0-rc.
|
|
33
|
+
userAgent: "speakeasy-sdk/typescript 4.15.0-rc.22 2.935.1 2.0 @orq-ai/node",
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=config.js.map
|
|
@@ -115,6 +115,12 @@ export type Evaluators = {
|
|
|
115
115
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
116
116
|
*/
|
|
117
117
|
executeOn: AgentStartedStreamingEventDataExecuteOn;
|
|
118
|
+
/**
|
|
119
|
+
* Evaluator-specific configuration, passed through to the evaluator at run time. For orq_pii_detection this carries regions, entities, entity_thresholds, language and threshold, and is validated against PIIDetectionGuardrailOptions: regions and entities are two mutually exclusive coverage modes, and every entity_thresholds key must also appear in entities. on_failure is rejected: an evaluator acting as a guardrail always fails closed.
|
|
120
|
+
*/
|
|
121
|
+
options?: {
|
|
122
|
+
[k: string]: any;
|
|
123
|
+
} | undefined;
|
|
118
124
|
};
|
|
119
125
|
/**
|
|
120
126
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
@@ -140,6 +146,12 @@ export type Guardrails = {
|
|
|
140
146
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
141
147
|
*/
|
|
142
148
|
executeOn: AgentStartedStreamingEventExecuteOn;
|
|
149
|
+
/**
|
|
150
|
+
* Evaluator-specific configuration, passed through to the evaluator at run time. For orq_pii_detection this carries regions, entities, entity_thresholds, language and threshold, and is validated against PIIDetectionGuardrailOptions: regions and entities are two mutually exclusive coverage modes, and every entity_thresholds key must also appear in entities. on_failure is rejected: an evaluator acting as a guardrail always fails closed.
|
|
151
|
+
*/
|
|
152
|
+
options?: {
|
|
153
|
+
[k: string]: any;
|
|
154
|
+
} | undefined;
|
|
143
155
|
};
|
|
144
156
|
export type Settings = {
|
|
145
157
|
/**
|
|
@@ -168,7 +180,7 @@ export type Settings = {
|
|
|
168
180
|
*/
|
|
169
181
|
evaluators?: Array<Evaluators> | undefined;
|
|
170
182
|
/**
|
|
171
|
-
* Configuration for a guardrail applied to the agent
|
|
183
|
+
* Configuration for a guardrail applied to the agent. sample_rate has no effect here: a guardrail is a gate rather than a measurement, so it runs on every request.
|
|
172
184
|
*/
|
|
173
185
|
guardrails?: Array<Guardrails> | undefined;
|
|
174
186
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentstartedstreamingevent.d.ts","sourceRoot":"","sources":["../../src/models/components/agentstartedstre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AU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE3E,MAAM,MAAM,oCAAoC,GAAG;IACjD;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG;IAClB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,aAAa,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;IACjD,gBAAgB,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,UAAU,CAAC,EAAE,KAAK,CAAC,oCAAoC,CAAC,GAAG,SAAS,CAAC;IACrE;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uCAAuC;;;CAG1C,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,uCAAuC,GAAG,UAAU,CAC9D,OAAO,uCAAuC,CAC/C,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,EAAE,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"agentstartedstreamingevent.d.ts","sourceRoot":"","sources":["../../src/models/components/agentstartedstreamingevent.ts"],"names":[],"mappings":"AAIA,OAA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;AAChB,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,OAAO,CAC5C,QAAQ,EACR,CAAC,CAAC,UAAU,EACZ,OAAO,CAoBP,CAAC;AAEH,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAM/C;AAED,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,WAAW,CAChD,CAAC;AAE3B,gBAAgB;AAChB,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,OAAO,CAClE,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,OAAO,CA6BP,CAAC;AAEH,wBAAgB,sCAAsC,CACpD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,8BAA8B,EAAE,kBAAkB,CAAC,CAMrE;AAED,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
|
|
@@ -165,6 +165,7 @@ exports.Evaluators$inboundSchema = z.object({
|
|
|
165
165
|
id: z.string(),
|
|
166
166
|
sample_rate: z.number().default(50),
|
|
167
167
|
execute_on: exports.AgentStartedStreamingEventDataExecuteOn$inboundSchema,
|
|
168
|
+
options: z.record(z.any()).optional(),
|
|
168
169
|
}).transform((v) => {
|
|
169
170
|
return (0, primitives_js_1.remap)(v, {
|
|
170
171
|
"sample_rate": "sampleRate",
|
|
@@ -181,6 +182,7 @@ exports.Guardrails$inboundSchema = z.object({
|
|
|
181
182
|
id: z.string(),
|
|
182
183
|
sample_rate: z.number().default(50),
|
|
183
184
|
execute_on: exports.AgentStartedStreamingEventExecuteOn$inboundSchema,
|
|
185
|
+
options: z.record(z.any()).optional(),
|
|
184
186
|
}).transform((v) => {
|
|
185
187
|
return (0, primitives_js_1.remap)(v, {
|
|
186
188
|
"sample_rate": "sampleRate",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentstartedstreamingevent.js","sourceRoot":"","sources":["../../src/models/components/agentstartedstreamingevent.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"agentstartedstreamingevent.js","sourceRoot":"","sources":["../../src/models/components/agentstartedstreamingevent.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4QH,0FAQC;AAuBD,oDAQC;AAkBD,oGASC;AA0BD,sCAQC;AAwBD,gDAQC;AAwBD,gDAQC;AA4BD,4CAQC;AAyCD,wFAQC;AAaD,gFAQC;AAxhBD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAIjD,+CAAiE;AACjE,iDAAoE;AACpE,+CAAiE;AACjE,+CAAiE;AACjE,uDAA6E;AAC7E,2DAG6B;AAE7B;;GAEG;AACU,QAAA,8BAA8B,GAAG;IAC5C,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;CACR,CAAC;AA4BX;;GAEG;AACU,QAAA,oBAAoB,GAAG;IAClC,GAAG,EAAE,KAAK;IACV,WAAW,EAAE,cAAc;IAC3B,IAAI,EAAE,MAAM;CACJ,CAAC;AAoDX;;GAEG;AACU,QAAA,uCAAuC,GAAG;IACrD,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;CACR,CAAC;AA2BX;;GAEG;AACU,QAAA,mCAAmC,GAAG;IACjD,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;CACR,CAAC;AA2DE,QAAA,WAAW,GAAG;IACzB,QAAQ,EAAE,UAAU;IACpB,QAAQ,E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CAAC,CAAC,CAAC,EACxE,4DAA4D,CAC7D,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC;IACvC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,oDAA4C,CAAC;CACjE,CAAC,CAAC;AAEH,SAAgB,kCAAkC,CAChD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gDAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { EntityList } from "./entitylist.js";
|
|
5
|
+
export type CapabilitiesResponse = {
|
|
6
|
+
/**
|
|
7
|
+
* Supported detector languages, e.g. "en", "nl". There is no "auto" value.
|
|
8
|
+
*/
|
|
9
|
+
languages?: Array<string> | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Universal entity types available regardless of region, e.g. PASSPORT,
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
* LICENSE_PLATE, UUID, JWT, BIC.
|
|
15
|
+
*/
|
|
16
|
+
baseEntities?: Array<string> | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Every entity type the service can detect across all regions and the
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
* base catalog.
|
|
22
|
+
*/
|
|
23
|
+
allEntities?: Array<string> | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Region codes the service recognizes, e.g. "nl", "gb", "all".
|
|
26
|
+
*/
|
|
27
|
+
regions?: Array<string> | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Maps each region code to the entity types it gates. Use this to find the
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* type to name in `entities` when you need a per-entity threshold on a type
|
|
33
|
+
* a region gates.
|
|
34
|
+
*/
|
|
35
|
+
regionEntities?: {
|
|
36
|
+
[k: string]: EntityList;
|
|
37
|
+
} | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Sparse per-entity default thresholds; entities absent here fall back to
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
* default_threshold.
|
|
43
|
+
*/
|
|
44
|
+
entityThresholds?: {
|
|
45
|
+
[k: string]: number;
|
|
46
|
+
} | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Confidence cutoff applied when neither `threshold` nor an entity-specific
|
|
49
|
+
*
|
|
50
|
+
* @remarks
|
|
51
|
+
* override is supplied.
|
|
52
|
+
*/
|
|
53
|
+
defaultThreshold?: number | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Maximum number of characters accepted per request.
|
|
56
|
+
*/
|
|
57
|
+
maxTextChars?: number | undefined;
|
|
58
|
+
};
|
|
59
|
+
/** @internal */
|
|
60
|
+
export declare const CapabilitiesResponse$inboundSchema: z.ZodType<CapabilitiesResponse, z.ZodTypeDef, unknown>;
|
|
61
|
+
export declare function capabilitiesResponseFromJSON(jsonString: string): SafeParseResult<CapabilitiesResponse, SDKValidationError>;
|
|
62
|
+
//# sourceMappingURL=capabilitiesresponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilitiesresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/capabilitiesresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,UAAU,EAA4B,MAAM,iBAAiB,CAAC;AAEvE,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACtC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACzC;;;;;OAKG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACpC;;;;;;OAMG;IACH,cAAc,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,GAAG,SAAS,CAAC;IACzD;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;IACvD;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,OAAO,CAmBP,CAAC;AAEH,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.CapabilitiesResponse$inboundSchema = void 0;
|
|
40
|
+
exports.capabilitiesResponseFromJSON = capabilitiesResponseFromJSON;
|
|
41
|
+
const z = __importStar(require("zod/v3"));
|
|
42
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
const entitylist_js_1 = require("./entitylist.js");
|
|
45
|
+
/** @internal */
|
|
46
|
+
exports.CapabilitiesResponse$inboundSchema = z.object({
|
|
47
|
+
languages: z.array(z.string()).optional(),
|
|
48
|
+
base_entities: z.array(z.string()).optional(),
|
|
49
|
+
all_entities: z.array(z.string()).optional(),
|
|
50
|
+
regions: z.array(z.string()).optional(),
|
|
51
|
+
region_entities: z.record(entitylist_js_1.EntityList$inboundSchema).optional(),
|
|
52
|
+
entity_thresholds: z.record(z.number()).optional(),
|
|
53
|
+
default_threshold: z.number().optional(),
|
|
54
|
+
max_text_chars: z.number().int().optional(),
|
|
55
|
+
}).transform((v) => {
|
|
56
|
+
return (0, primitives_js_1.remap)(v, {
|
|
57
|
+
"base_entities": "baseEntities",
|
|
58
|
+
"all_entities": "allEntities",
|
|
59
|
+
"region_entities": "regionEntities",
|
|
60
|
+
"entity_thresholds": "entityThresholds",
|
|
61
|
+
"default_threshold": "defaultThreshold",
|
|
62
|
+
"max_text_chars": "maxTextChars",
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
function capabilitiesResponseFromJSON(jsonString) {
|
|
66
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CapabilitiesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CapabilitiesResponse' from JSON`);
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=capabilitiesresponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilitiesresponse.js","sourceRoot":"","sources":["../../src/models/components/capabilitiesresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqFH,oEAQC;AA3FD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAGjD,mDAAuE;AAqDvE,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EA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19
19
|
* When true, the response includes a per-type entity breakdown.
|
|
20
20
|
*/
|
|
21
21
|
includeEntities?: boolean | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Region codes selecting whole regions of coverage, e.g. "nl", "gb". Every
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* entity type those regions cover is included, alongside the base catalog.
|
|
27
|
+
* ["all"] is exclusive. Leaving this and `entities` both empty also runs every
|
|
28
|
+
* region, so selecting nothing is the widest request rather than the narrowest.
|
|
29
|
+
* Empty alongside a non-empty `entities` stays strict. See the capabilities
|
|
30
|
+
* endpoint for the region list.
|
|
31
|
+
*
|
|
32
|
+
* Combines with `entities`: the detector unions the two selections, so a
|
|
33
|
+
* request carrying both covers the regions plus the named types. Note that
|
|
34
|
+
* `entities` only narrows coverage when it travels alone.
|
|
35
|
+
*/
|
|
36
|
+
regions?: Array<string> | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* The entity types to cover. A named type fires even when it belongs to a
|
|
39
|
+
*
|
|
40
|
+
* @remarks
|
|
41
|
+
* region, so a region's types can be selected individually without naming
|
|
42
|
+
* the region. Alone this is a strict allowlist; alongside `regions` it adds
|
|
43
|
+
* to the region coverage instead of narrowing it.
|
|
44
|
+
*/
|
|
45
|
+
entities?: Array<string> | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Per-entity confidence cutoff overrides. An override REPLACES the global
|
|
48
|
+
*
|
|
49
|
+
* @remarks
|
|
50
|
+
* `threshold` for that type and may sit above or below it: the gateway
|
|
51
|
+
* lowers the first-pass floor it sends the detector to the smallest value
|
|
52
|
+
* in the map, and every selected type carries its own cutoff, so a
|
|
53
|
+
* sub-global override detects MORE of that type without widening the rest.
|
|
54
|
+
*
|
|
55
|
+
* This only tunes confidence; it never changes which types are covered.
|
|
56
|
+
* Coverage is decided by `entities` alone, so every key here must also
|
|
57
|
+
* appear in `entities` — a key that does not is rejected, as is any key at
|
|
58
|
+
* all when `entities` is empty.
|
|
59
|
+
*
|
|
60
|
+
* Declarative [0,1] bound mirrors existing constraint on `threshold`.
|
|
61
|
+
*/
|
|
62
|
+
entityThresholds?: {
|
|
63
|
+
[k: string]: number;
|
|
64
|
+
} | undefined;
|
|
22
65
|
};
|
|
23
66
|
/** @internal */
|
|
24
67
|
export type DetectRequest$Outbound = {
|
|
@@ -26,6 +69,11 @@ export type DetectRequest$Outbound = {
|
|
|
26
69
|
language?: string | undefined;
|
|
27
70
|
threshold?: number | undefined;
|
|
28
71
|
include_entities?: boolean | undefined;
|
|
72
|
+
regions?: Array<string> | undefined;
|
|
73
|
+
entities?: Array<string> | undefined;
|
|
74
|
+
entity_thresholds?: {
|
|
75
|
+
[k: string]: number;
|
|
76
|
+
} | undefined;
|
|
29
77
|
};
|
|
30
78
|
/** @internal */
|
|
31
79
|
export declare const DetectRequest$outboundSchema: z.ZodType<DetectRequest$Outbound, z.ZodTypeDef, DetectRequest>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detectrequest.d.ts","sourceRoot":"","sources":["../../src/models/components/detectrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"detectrequest.d.ts","sourceRoot":"","sources":["../../src/models/components/detectrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,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Schema = z.object({
|
|
|
46
46
|
language: z.string().optional(),
|
|
47
47
|
threshold: z.number().optional(),
|
|
48
48
|
includeEntities: z.boolean().optional(),
|
|
49
|
+
regions: z.array(z.string()).optional(),
|
|
50
|
+
entities: z.array(z.string()).optional(),
|
|
51
|
+
entityThresholds: z.record(z.number()).optional(),
|
|
49
52
|
}).transform((v) => {
|
|
50
53
|
return (0, primitives_js_1.remap)(v, {
|
|
51
54
|
includeEntities: "include_entities",
|
|
55
|
+
entityThresholds: "entity_thresholds",
|
|
52
56
|
});
|
|
53
57
|
});
|
|
54
58
|
function detectRequestToJSON(detectRequest) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detectrequest.js","sourceRoot":"","sources":["../../src/models/components/detectrequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"detectrequest.js","sourceRoot":"","sources":["../../src/models/components/detectrequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmGH,kDAEC;AAnGD,0CAA4B;AAC5B,2DAA0D;AA4E1D,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,eAAe,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACvC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,gBAAgB,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,eAAe,EAAE,kBAAkB;QACnC,gBAAgB,EAAE,mBAAmB;KACtC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,mBAAmB,CAAC,aAA4B;IAC9D,OAAO,IAAI,CAAC,SAAS,CAAC,oCAA4B,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;AAC3E,CAAC"}
|