@orq-ai/node 4.15.0-rc.22 → 4.15.0-rc.24
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 +52 -28
- package/funcs/hubGet.d.ts +18 -0
- package/funcs/hubGet.d.ts.map +1 -0
- package/funcs/hubGet.js +121 -0
- package/funcs/hubGet.js.map +1 -0
- package/funcs/hubSearch.d.ts +18 -0
- package/funcs/hubSearch.d.ts.map +1 -0
- package/funcs/hubSearch.js +120 -0
- package/funcs/hubSearch.js.map +1 -0
- package/funcs/sessionsCreate.d.ts +17 -0
- package/funcs/sessionsCreate.d.ts.map +1 -0
- package/funcs/sessionsCreate.js +115 -0
- package/funcs/sessionsCreate.js.map +1 -0
- package/funcs/sessionsDelete.d.ts +17 -0
- package/funcs/sessionsDelete.d.ts.map +1 -0
- package/funcs/sessionsDelete.js +121 -0
- package/funcs/sessionsDelete.js.map +1 -0
- package/funcs/sessionsGet.d.ts +18 -0
- package/funcs/sessionsGet.d.ts.map +1 -0
- package/funcs/sessionsGet.js +121 -0
- package/funcs/sessionsGet.js.map +1 -0
- package/funcs/sessionsGetCount.d.ts +17 -0
- package/funcs/sessionsGetCount.d.ts.map +1 -0
- package/funcs/sessionsGetCount.js +115 -0
- package/funcs/sessionsGetCount.js.map +1 -0
- package/funcs/sessionsList.d.ts +17 -0
- package/funcs/sessionsList.d.ts.map +1 -0
- package/funcs/sessionsList.js +115 -0
- package/funcs/sessionsList.js.map +1 -0
- package/funcs/sessionsListTags.d.ts +16 -0
- package/funcs/sessionsListTags.d.ts.map +1 -0
- package/funcs/sessionsListTags.js +105 -0
- package/funcs/sessionsListTags.js.map +1 -0
- package/funcs/sessionsUpdate.d.ts +18 -0
- package/funcs/sessionsUpdate.d.ts.map +1 -0
- package/funcs/sessionsUpdate.js +124 -0
- package/funcs/sessionsUpdate.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/agentresponserequest.d.ts +6 -6
- package/models/components/agentresponserequest.d.ts.map +1 -1
- package/models/components/agentresponserequest.js +6 -6
- package/models/components/agentresponserequest.js.map +1 -1
- package/models/components/createthreadrequest.d.ts +41 -0
- package/models/components/createthreadrequest.d.ts.map +1 -0
- package/models/components/createthreadrequest.js +75 -0
- package/models/components/createthreadrequest.js.map +1 -0
- package/models/components/gethubitemresponse.d.ts +11 -0
- package/models/components/gethubitemresponse.d.ts.map +1 -0
- package/models/components/gethubitemresponse.js +56 -0
- package/models/components/gethubitemresponse.js.map +1 -0
- package/models/components/getthreadcountrequest.d.ts +17 -0
- package/models/components/getthreadcountrequest.d.ts.map +1 -0
- package/models/components/getthreadcountrequest.js +52 -0
- package/models/components/getthreadcountrequest.js.map +1 -0
- package/models/components/getthreadcountresponse.d.ts +10 -0
- package/models/components/getthreadcountresponse.d.ts.map +1 -0
- package/models/components/getthreadcountresponse.js +50 -0
- package/models/components/getthreadcountresponse.js.map +1 -0
- package/models/components/hubitem.d.ts +71 -0
- package/models/components/hubitem.d.ts.map +1 -0
- package/models/components/hubitem.js +83 -0
- package/models/components/hubitem.js.map +1 -0
- package/models/components/hubitemsummary.d.ts +29 -0
- package/models/components/hubitemsummary.d.ts.map +1 -0
- package/models/components/hubitemsummary.js +60 -0
- package/models/components/hubitemsummary.js.map +1 -0
- package/models/components/hubsearchhit.d.ts +11 -0
- package/models/components/hubsearchhit.d.ts.map +1 -0
- package/models/components/hubsearchhit.js +51 -0
- package/models/components/hubsearchhit.js.map +1 -0
- package/models/components/index.d.ts +18 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +18 -0
- package/models/components/index.js.map +1 -1
- package/models/components/listthreadsrequest.d.ts +17 -0
- package/models/components/listthreadsrequest.d.ts.map +1 -0
- package/models/components/listthreadsrequest.js +52 -0
- package/models/components/listthreadsrequest.js.map +1 -0
- package/models/components/listthreadsresponse.d.ts +13 -0
- package/models/components/listthreadsresponse.d.ts.map +1 -0
- package/models/components/listthreadsresponse.js +58 -0
- package/models/components/listthreadsresponse.js.map +1 -0
- package/models/components/openaipromptcacheoptions.d.ts +37 -0
- package/models/components/openaipromptcacheoptions.d.ts.map +1 -0
- package/models/components/openaipromptcacheoptions.js +75 -0
- package/models/components/openaipromptcacheoptions.js.map +1 -0
- package/models/components/publicresponseresource.d.ts +2 -0
- package/models/components/publicresponseresource.d.ts.map +1 -1
- package/models/components/publicresponseresource.js +3 -0
- package/models/components/publicresponseresource.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/searchhubitemsresponse.d.ts +11 -0
- package/models/components/searchhubitemsresponse.d.ts.map +1 -0
- package/models/components/searchhubitemsresponse.js +51 -0
- package/models/components/searchhubitemsresponse.js.map +1 -0
- package/models/components/sessioninterval.d.ts +19 -0
- package/models/components/sessioninterval.d.ts.map +1 -0
- package/models/components/sessioninterval.js +56 -0
- package/models/components/sessioninterval.js.map +1 -0
- package/models/components/textcontentpartschema.d.ts +5 -5
- package/models/components/textcontentpartschema.d.ts.map +1 -1
- package/models/components/textcontentpartschema.js +6 -6
- package/models/components/textcontentpartschema.js.map +1 -1
- package/models/components/thread.d.ts +54 -0
- package/models/components/thread.d.ts.map +1 -0
- package/models/components/thread.js +79 -0
- package/models/components/thread.js.map +1 -0
- package/models/components/threadbilling.d.ts +21 -0
- package/models/components/threadbilling.d.ts.map +1 -0
- package/models/components/threadbilling.js +75 -0
- package/models/components/threadbilling.js.map +1 -0
- package/models/components/threadfilters.d.ts +34 -0
- package/models/components/threadfilters.d.ts.map +1 -0
- package/models/components/threadfilters.js +65 -0
- package/models/components/threadfilters.js.map +1 -0
- package/models/components/threadkind.d.ts +13 -0
- package/models/components/threadkind.d.ts.map +1 -0
- package/models/components/threadkind.js +51 -0
- package/models/components/threadkind.js.map +1 -0
- package/models/components/threadusage.d.ts +21 -0
- package/models/components/threadusage.d.ts.map +1 -0
- package/models/components/threadusage.js +75 -0
- package/models/components/threadusage.js.map +1 -0
- package/models/components/updatethreadrequest.d.ts +51 -0
- package/models/components/updatethreadrequest.d.ts.map +1 -0
- package/models/components/updatethreadrequest.js +79 -0
- package/models/components/updatethreadrequest.js.map +1 -0
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createrouterresponse.d.ts +80 -8
- package/models/operations/createrouterresponse.d.ts.map +1 -1
- package/models/operations/createrouterresponse.js +48 -5
- package/models/operations/createrouterresponse.js.map +1 -1
- package/models/operations/createtool.js +4 -4
- package/models/operations/deletesession.d.ts +12 -0
- package/models/operations/deletesession.d.ts.map +1 -0
- package/models/operations/deletesession.js +54 -0
- package/models/operations/deletesession.js.map +1 -0
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getsession.d.ts +12 -0
- package/models/operations/getsession.d.ts.map +1 -0
- package/models/operations/getsession.js +54 -0
- package/models/operations/getsession.js.map +1 -0
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/hubget.d.ts +12 -0
- package/models/operations/hubget.d.ts.map +1 -0
- package/models/operations/hubget.js +49 -0
- package/models/operations/hubget.js.map +1 -0
- package/models/operations/hubsearch.d.ts +14 -0
- package/models/operations/hubsearch.d.ts.map +1 -0
- package/models/operations/hubsearch.js +50 -0
- package/models/operations/hubsearch.js.map +1 -0
- package/models/operations/index.d.ts +5 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +5 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/modelcreateopenailike.d.ts +4 -0
- package/models/operations/modelcreateopenailike.d.ts.map +1 -1
- package/models/operations/modelcreateopenailike.js +4 -0
- package/models/operations/modelcreateopenailike.js.map +1 -1
- package/models/operations/modelupdateopenailike.d.ts +4 -0
- package/models/operations/modelupdateopenailike.d.ts.map +1 -1
- package/models/operations/modelupdateopenailike.js +4 -0
- package/models/operations/modelupdateopenailike.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/postv2routerocr.d.ts +24 -0
- package/models/operations/postv2routerocr.d.ts.map +1 -1
- package/models/operations/postv2routerocr.js +12 -0
- package/models/operations/postv2routerocr.js.map +1 -1
- package/models/operations/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrieveresponse.d.ts +1 -0
- package/models/operations/retrieveresponse.d.ts.map +1 -1
- package/models/operations/retrieveresponse.js +2 -0
- package/models/operations/retrieveresponse.js.map +1 -1
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatesession.d.ts +15 -0
- package/models/operations/updatesession.d.ts.map +1 -0
- package/models/operations/updatesession.js +57 -0
- package/models/operations/updatesession.js.map +1 -0
- package/models/operations/updatetool.js +4 -4
- package/package.json +1 -1
- package/sdk/hub.d.ts +20 -0
- package/sdk/hub.d.ts.map +1 -0
- package/sdk/hub.js +32 -0
- package/sdk/hub.js.map +1 -0
- package/sdk/sdk.d.ts +6 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +8 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/sessions.d.ts +55 -0
- package/sdk/sessions.d.ts.map +1 -0
- package/sdk/sessions.js +82 -0
- package/sdk/sessions.js.map +1 -0
- package/src/funcs/hubGet.ts +168 -0
- package/src/funcs/hubSearch.ts +169 -0
- package/src/funcs/sessionsCreate.ts +162 -0
- package/src/funcs/sessionsDelete.ts +168 -0
- package/src/funcs/sessionsGet.ts +168 -0
- package/src/funcs/sessionsGetCount.ts +162 -0
- package/src/funcs/sessionsList.ts +162 -0
- package/src/funcs/sessionsListTags.ts +144 -0
- package/src/funcs/sessionsUpdate.ts +171 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/agentresponserequest.ts +14 -10
- package/src/models/components/createthreadrequest.ts +91 -0
- package/src/models/components/gethubitemresponse.ts +37 -0
- package/src/models/components/getthreadcountrequest.ts +42 -0
- package/src/models/components/getthreadcountresponse.ts +31 -0
- package/src/models/components/hubitem.ts +136 -0
- package/src/models/components/hubitemsummary.ts +60 -0
- package/src/models/components/hubsearchhit.ts +35 -0
- package/src/models/components/index.ts +18 -0
- package/src/models/components/listthreadsrequest.ts +42 -0
- package/src/models/components/listthreadsresponse.ts +41 -0
- package/src/models/components/openaipromptcacheoptions.ts +84 -0
- package/src/models/components/publicresponseresource.ts +7 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/searchhubitemsresponse.ts +32 -0
- package/src/models/components/sessioninterval.ts +26 -0
- package/src/models/components/textcontentpartschema.ts +13 -8
- package/src/models/components/thread.ts +101 -0
- package/src/models/components/threadbilling.ts +68 -0
- package/src/models/components/threadfilters.ts +66 -0
- package/src/models/components/threadkind.ts +20 -0
- package/src/models/components/threadusage.ts +68 -0
- package/src/models/components/updatethreadrequest.ts +105 -0
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createrouterresponse.ts +128 -9
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/deletesession.ts +36 -0
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getsession.ts +36 -0
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/hubget.ts +27 -0
- package/src/models/operations/hubsearch.ts +34 -0
- package/src/models/operations/index.ts +5 -0
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/modelcreateopenailike.ts +8 -0
- package/src/models/operations/modelupdateopenailike.ts +8 -0
- 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/postv2routerocr.ts +36 -0
- package/src/models/operations/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrieveresponse.ts +5 -0
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatesession.ts +41 -0
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/hub.ts +46 -0
- package/src/sdk/sdk.ts +12 -0
- package/src/sdk/sessions.ts +134 -0
package/README.md
CHANGED
|
@@ -274,6 +274,11 @@ run();
|
|
|
274
274
|
* [delete](docs/sdks/guardrailrules/README.md#delete) - Delete a guardrail rule
|
|
275
275
|
* [update](docs/sdks/guardrailrules/README.md#update) - Update a guardrail rule
|
|
276
276
|
|
|
277
|
+
### [Hub](docs/sdks/hub/README.md)
|
|
278
|
+
|
|
279
|
+
* [search](docs/sdks/hub/README.md#search) - Search hub items
|
|
280
|
+
* [get](docs/sdks/hub/README.md#get) - Get a hub item
|
|
281
|
+
|
|
277
282
|
### [HumanReviewSets](docs/sdks/humanreviewsets/README.md)
|
|
278
283
|
|
|
279
284
|
* [list](docs/sdks/humanreviewsets/README.md#list) - Get all human review sets
|
|
@@ -516,6 +521,16 @@ run();
|
|
|
516
521
|
* [update](docs/sdks/schedules/README.md#update) - Update schedule
|
|
517
522
|
* [trigger](docs/sdks/schedules/README.md#trigger) - Trigger schedule execution
|
|
518
523
|
|
|
524
|
+
### [Sessions](docs/sdks/sessions/README.md)
|
|
525
|
+
|
|
526
|
+
* [create](docs/sdks/sessions/README.md#create) - Create trace thread
|
|
527
|
+
* [getCount](docs/sdks/sessions/README.md#getcount) - Get thread count
|
|
528
|
+
* [list](docs/sdks/sessions/README.md#list) - List trace threads
|
|
529
|
+
* [listTags](docs/sdks/sessions/README.md#listtags) - List thread tags
|
|
530
|
+
* [get](docs/sdks/sessions/README.md#get) - Get trace thread
|
|
531
|
+
* [delete](docs/sdks/sessions/README.md#delete) - Delete trace thread
|
|
532
|
+
* [update](docs/sdks/sessions/README.md#update) - Update trace thread
|
|
533
|
+
|
|
519
534
|
### [Skills](docs/sdks/skills/README.md)
|
|
520
535
|
|
|
521
536
|
* [list](docs/sdks/skills/README.md#list) - List all skills
|
|
@@ -690,6 +705,8 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
690
705
|
- [`guardrailRulesListUsedGuardrails`](docs/sdks/guardrailrules/README.md#listusedguardrails) - List guardrails used by guardrail rules
|
|
691
706
|
- [`guardrailRulesRetrieve`](docs/sdks/guardrailrules/README.md#retrieve) - Retrieve a guardrail rule
|
|
692
707
|
- [`guardrailRulesUpdate`](docs/sdks/guardrailrules/README.md#update) - Update a guardrail rule
|
|
708
|
+
- [`hubGet`](docs/sdks/hub/README.md#get) - Get a hub item
|
|
709
|
+
- [`hubSearch`](docs/sdks/hub/README.md#search) - Search hub items
|
|
693
710
|
- [`humanReviewSetsCreate`](docs/sdks/humanreviewsets/README.md#create) - Create a human review set
|
|
694
711
|
- [`humanReviewSetsDelete`](docs/sdks/humanreviewsets/README.md#delete) - Delete a human review set
|
|
695
712
|
- [`humanReviewSetsGet`](docs/sdks/humanreviewsets/README.md#get) - Get a human review set by ID
|
|
@@ -839,6 +856,13 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
839
856
|
- [`schedulesRetrieve`](docs/sdks/schedules/README.md#retrieve) - Retrieve schedule
|
|
840
857
|
- [`schedulesTrigger`](docs/sdks/schedules/README.md#trigger) - Trigger schedule execution
|
|
841
858
|
- [`schedulesUpdate`](docs/sdks/schedules/README.md#update) - Update schedule
|
|
859
|
+
- [`sessionsCreate`](docs/sdks/sessions/README.md#create) - Create trace thread
|
|
860
|
+
- [`sessionsDelete`](docs/sdks/sessions/README.md#delete) - Delete trace thread
|
|
861
|
+
- [`sessionsGet`](docs/sdks/sessions/README.md#get) - Get trace thread
|
|
862
|
+
- [`sessionsGetCount`](docs/sdks/sessions/README.md#getcount) - Get thread count
|
|
863
|
+
- [`sessionsList`](docs/sdks/sessions/README.md#list) - List trace threads
|
|
864
|
+
- [`sessionsListTags`](docs/sdks/sessions/README.md#listtags) - List thread tags
|
|
865
|
+
- [`sessionsUpdate`](docs/sdks/sessions/README.md#update) - Update trace thread
|
|
842
866
|
- [`skillsCreate`](docs/sdks/skills/README.md#create) - Create a new skill
|
|
843
867
|
- [`skillsDelete`](docs/sdks/skills/README.md#delete) - Delete a skill
|
|
844
868
|
- [`skillsGet`](docs/sdks/skills/README.md#get) - Retrieve a skill
|
|
@@ -1204,34 +1228,34 @@ run();
|
|
|
1204
1228
|
|
|
1205
1229
|
|
|
1206
1230
|
**Inherit from [`OrqError`](./src/models/errors/orqerror.ts)**:
|
|
1207
|
-
* [`HonoApiError`](./src/models/errors/honoapierror.ts): Applicable to 12 of
|
|
1208
|
-
* [`PostV2FeedbackResponseBody`](./src/models/errors/postv2feedbackresponsebody.ts): Bad Request. Status code `400`. Applicable to 1 of
|
|
1209
|
-
* [`CreateAgentScheduleResponseBody`](./src/models/errors/createagentscheduleresponsebody.ts): Invalid schedule type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of
|
|
1210
|
-
* [`UpdateAgentScheduleResponseBody`](./src/models/errors/updateagentscheduleresponsebody.ts): Invalid type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of
|
|
1211
|
-
* [`TriggerAgentScheduleResponseBody`](./src/models/errors/triggeragentscheduleresponsebody.ts): Schedule is inactive. Status code `400`. Applicable to 1 of
|
|
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
|
|
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
|
|
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
|
|
1215
|
-
* [`StreamRunAgentResponseBody`](./src/models/errors/streamrunagentresponsebody.ts): Model not found. Status code `404`. Applicable to 1 of
|
|
1216
|
-
* [`StreamAgentResponseBody`](./src/models/errors/streamagentresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of
|
|
1217
|
-
* [`UpdatePromptResponseBody`](./src/models/errors/updatepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of
|
|
1218
|
-
* [`DeletePromptResponseBody`](./src/models/errors/deletepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of
|
|
1219
|
-
* [`GetPromptVersionResponseBody`](./src/models/errors/getpromptversionresponsebody.ts): Not Found - The prompt or prompt version does not exist. Status code `404`. Applicable to 1 of
|
|
1220
|
-
* [`UpdateToolResponseBody`](./src/models/errors/updatetoolresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of
|
|
1221
|
-
* [`GetV2ToolsToolIdVersionsResponseBody`](./src/models/errors/getv2toolstoolidversionsresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of
|
|
1222
|
-
* [`GetV2ToolsToolIdVersionsVersionIdResponseBody`](./src/models/errors/getv2toolstoolidversionsversionidresponsebody.ts): Tool or version not found. Status code `404`. Applicable to 1 of
|
|
1223
|
-
* [`PostV2FeedbackRemoveResponseBody`](./src/models/errors/postv2feedbackremoveresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
1224
|
-
* [`PostV2FeedbackFeedbackResponseBody`](./src/models/errors/postv2feedbackfeedbackresponsebody.ts): Workspace, trace, or feedback property was not found. Status code `404`. Applicable to 1 of
|
|
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
|
|
1226
|
-
* [`DeleteAgentScheduleResponseBody`](./src/models/errors/deleteagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of
|
|
1227
|
-
* [`RetrieveAgentScheduleResponseBody`](./src/models/errors/retrieveagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of
|
|
1228
|
-
* [`UpdateAgentScheduleSchedulesResponseBody`](./src/models/errors/updateagentscheduleschedulesresponsebody.ts): Schedule or agent version not found. Status code `404`. Applicable to 1 of
|
|
1229
|
-
* [`TriggerAgentScheduleSchedulesResponseBody`](./src/models/errors/triggeragentscheduleschedulesresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of
|
|
1230
|
-
* [`RetrieveResponseResponseBody`](./src/models/errors/retrieveresponseresponsebody.ts): Response not found. Status code `404`. Applicable to 1 of
|
|
1231
|
-
* [`CreateModerationResponseBody`](./src/models/errors/createmoderationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of
|
|
1232
|
-
* [`CreateTranscriptionResponseBody`](./src/models/errors/createtranscriptionresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of
|
|
1233
|
-
* [`CreateTranslationResponseBody`](./src/models/errors/createtranslationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of
|
|
1234
|
-
* [`KnowledgeApiError`](./src/models/errors/knowledgeapierror.ts): An error has occured. Status code `500`. Applicable to 1 of
|
|
1231
|
+
* [`HonoApiError`](./src/models/errors/honoapierror.ts): Applicable to 12 of 296 methods.*
|
|
1232
|
+
* [`PostV2FeedbackResponseBody`](./src/models/errors/postv2feedbackresponsebody.ts): Bad Request. Status code `400`. Applicable to 1 of 296 methods.*
|
|
1233
|
+
* [`CreateAgentScheduleResponseBody`](./src/models/errors/createagentscheduleresponsebody.ts): Invalid schedule type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of 296 methods.*
|
|
1234
|
+
* [`UpdateAgentScheduleResponseBody`](./src/models/errors/updateagentscheduleresponsebody.ts): Invalid type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of 296 methods.*
|
|
1235
|
+
* [`TriggerAgentScheduleResponseBody`](./src/models/errors/triggeragentscheduleresponsebody.ts): Schedule is inactive. Status code `400`. Applicable to 1 of 296 methods.*
|
|
1236
|
+
* [`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 296 methods.*
|
|
1237
|
+
* [`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 296 methods.*
|
|
1238
|
+
* [`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 296 methods.*
|
|
1239
|
+
* [`StreamRunAgentResponseBody`](./src/models/errors/streamrunagentresponsebody.ts): Model not found. Status code `404`. Applicable to 1 of 296 methods.*
|
|
1240
|
+
* [`StreamAgentResponseBody`](./src/models/errors/streamagentresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of 296 methods.*
|
|
1241
|
+
* [`UpdatePromptResponseBody`](./src/models/errors/updatepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 296 methods.*
|
|
1242
|
+
* [`DeletePromptResponseBody`](./src/models/errors/deletepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 296 methods.*
|
|
1243
|
+
* [`GetPromptVersionResponseBody`](./src/models/errors/getpromptversionresponsebody.ts): Not Found - The prompt or prompt version does not exist. Status code `404`. Applicable to 1 of 296 methods.*
|
|
1244
|
+
* [`UpdateToolResponseBody`](./src/models/errors/updatetoolresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 296 methods.*
|
|
1245
|
+
* [`GetV2ToolsToolIdVersionsResponseBody`](./src/models/errors/getv2toolstoolidversionsresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 296 methods.*
|
|
1246
|
+
* [`GetV2ToolsToolIdVersionsVersionIdResponseBody`](./src/models/errors/getv2toolstoolidversionsversionidresponsebody.ts): Tool or version not found. Status code `404`. Applicable to 1 of 296 methods.*
|
|
1247
|
+
* [`PostV2FeedbackRemoveResponseBody`](./src/models/errors/postv2feedbackremoveresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 296 methods.*
|
|
1248
|
+
* [`PostV2FeedbackFeedbackResponseBody`](./src/models/errors/postv2feedbackfeedbackresponsebody.ts): Workspace, trace, or feedback property was not found. Status code `404`. Applicable to 1 of 296 methods.*
|
|
1249
|
+
* [`CreateAgentScheduleSchedulesResponseBody`](./src/models/errors/createagentscheduleschedulesresponsebody.ts): Agent (or agent version, when agent_tag is set) not found. Status code `404`. Applicable to 1 of 296 methods.*
|
|
1250
|
+
* [`DeleteAgentScheduleResponseBody`](./src/models/errors/deleteagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 296 methods.*
|
|
1251
|
+
* [`RetrieveAgentScheduleResponseBody`](./src/models/errors/retrieveagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 296 methods.*
|
|
1252
|
+
* [`UpdateAgentScheduleSchedulesResponseBody`](./src/models/errors/updateagentscheduleschedulesresponsebody.ts): Schedule or agent version not found. Status code `404`. Applicable to 1 of 296 methods.*
|
|
1253
|
+
* [`TriggerAgentScheduleSchedulesResponseBody`](./src/models/errors/triggeragentscheduleschedulesresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 296 methods.*
|
|
1254
|
+
* [`RetrieveResponseResponseBody`](./src/models/errors/retrieveresponseresponsebody.ts): Response not found. Status code `404`. Applicable to 1 of 296 methods.*
|
|
1255
|
+
* [`CreateModerationResponseBody`](./src/models/errors/createmoderationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 296 methods.*
|
|
1256
|
+
* [`CreateTranscriptionResponseBody`](./src/models/errors/createtranscriptionresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 296 methods.*
|
|
1257
|
+
* [`CreateTranslationResponseBody`](./src/models/errors/createtranslationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 296 methods.*
|
|
1258
|
+
* [`KnowledgeApiError`](./src/models/errors/knowledgeapierror.ts): An error has occured. Status code `500`. Applicable to 1 of 296 methods.*
|
|
1235
1259
|
* [`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.
|
|
1236
1260
|
|
|
1237
1261
|
</details>
|
|
@@ -0,0 +1,18 @@
|
|
|
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 * as operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* Get a hub item
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Retrieves a hub item available to the current workspace.
|
|
16
|
+
*/
|
|
17
|
+
export declare function hubGet(client: OrqCore, request: operations.HubGetRequest, options?: RequestOptions): APIPromise<Result<components.GetHubItemResponse, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
|
+
//# sourceMappingURL=hubGet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hubGet.d.ts","sourceRoot":"","sources":["../src/funcs/hubGet.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,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,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,MAAM,CACpB,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,aAAa,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,kBAAkB,EAC3B,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
package/funcs/hubGet.js
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
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.hubGet = hubGet;
|
|
40
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
41
|
+
const http_js_1 = require("../lib/http.js");
|
|
42
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
43
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
45
|
+
const security_js_1 = require("../lib/security.js");
|
|
46
|
+
const url_js_1 = require("../lib/url.js");
|
|
47
|
+
const components = __importStar(require("../models/components/index.js"));
|
|
48
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
49
|
+
const async_js_1 = require("../types/async.js");
|
|
50
|
+
/**
|
|
51
|
+
* Get a hub item
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* Retrieves a hub item available to the current workspace.
|
|
55
|
+
*/
|
|
56
|
+
function hubGet(client, request, options) {
|
|
57
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
58
|
+
}
|
|
59
|
+
async function $do(client, request, options) {
|
|
60
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.HubGetRequest$outboundSchema.parse(value), "Input validation failed");
|
|
61
|
+
if (!parsed.ok) {
|
|
62
|
+
return [parsed, { status: "invalid" }];
|
|
63
|
+
}
|
|
64
|
+
const payload = parsed.value;
|
|
65
|
+
const body = null;
|
|
66
|
+
const pathParams = {
|
|
67
|
+
id: (0, encodings_js_1.encodeSimple)("id", payload.id, {
|
|
68
|
+
explode: false,
|
|
69
|
+
charEncoding: "percent",
|
|
70
|
+
}),
|
|
71
|
+
};
|
|
72
|
+
const path = (0, url_js_1.pathToFunc)("/v2/hub/{id}")(pathParams);
|
|
73
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
74
|
+
Accept: "application/json",
|
|
75
|
+
}));
|
|
76
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
77
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
78
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
79
|
+
const context = {
|
|
80
|
+
options: client._options,
|
|
81
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
82
|
+
operationID: "HubGet",
|
|
83
|
+
oAuth2Scopes: null,
|
|
84
|
+
resolvedSecurity: requestSecurity,
|
|
85
|
+
securitySource: client._options.apiKey,
|
|
86
|
+
retryConfig: options?.retries
|
|
87
|
+
|| client._options.retryConfig
|
|
88
|
+
|| { strategy: "none" },
|
|
89
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
90
|
+
};
|
|
91
|
+
const requestRes = client._createRequest(context, {
|
|
92
|
+
security: requestSecurity,
|
|
93
|
+
method: "GET",
|
|
94
|
+
baseURL: options?.serverURL,
|
|
95
|
+
path: path,
|
|
96
|
+
headers: headers,
|
|
97
|
+
body: body,
|
|
98
|
+
userAgent: client._options.userAgent,
|
|
99
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
100
|
+
}, options);
|
|
101
|
+
if (!requestRes.ok) {
|
|
102
|
+
return [requestRes, { status: "invalid" }];
|
|
103
|
+
}
|
|
104
|
+
const req = requestRes.value;
|
|
105
|
+
const doResult = await client._do(req, {
|
|
106
|
+
context,
|
|
107
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
108
|
+
retryConfig: context.retryConfig,
|
|
109
|
+
retryCodes: context.retryCodes,
|
|
110
|
+
});
|
|
111
|
+
if (!doResult.ok) {
|
|
112
|
+
return [doResult, { status: "request-error", request: req }];
|
|
113
|
+
}
|
|
114
|
+
const response = doResult.value;
|
|
115
|
+
const [result] = await M.match(M.json(200, components.GetHubItemResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req);
|
|
116
|
+
if (!result.ok) {
|
|
117
|
+
return [result, { status: "complete", request: req, response }];
|
|
118
|
+
}
|
|
119
|
+
return [result, { status: "complete", request: req, response }];
|
|
120
|
+
}
|
|
121
|
+
//# sourceMappingURL=hubGet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"h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ore } 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 * as operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* Search hub items
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Returns hub items available to the current workspace, sorted by display name.
|
|
16
|
+
*/
|
|
17
|
+
export declare function hubSearch(client: OrqCore, request?: operations.HubSearchRequest | undefined, options?: RequestOptions): APIPromise<Result<components.SearchHubItemsResponse, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
|
+
//# sourceMappingURL=hubSearch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hubSearch.d.ts","sourceRoot":"","sources":["../src/funcs/hubSearch.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,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,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,SAAS,CACvB,MAAM,EAAE,OAAO,EACf,OAAO,CAAC,EAAE,UAAU,CAAC,gBAAgB,GAAG,SAAS,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,sBAAsB,EAC/B,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,120 @@
|
|
|
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.hubSearch = hubSearch;
|
|
40
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
41
|
+
const http_js_1 = require("../lib/http.js");
|
|
42
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
43
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
45
|
+
const security_js_1 = require("../lib/security.js");
|
|
46
|
+
const url_js_1 = require("../lib/url.js");
|
|
47
|
+
const components = __importStar(require("../models/components/index.js"));
|
|
48
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
49
|
+
const async_js_1 = require("../types/async.js");
|
|
50
|
+
/**
|
|
51
|
+
* Search hub items
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* Returns hub items available to the current workspace, sorted by display name.
|
|
55
|
+
*/
|
|
56
|
+
function hubSearch(client, request, options) {
|
|
57
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
58
|
+
}
|
|
59
|
+
async function $do(client, request, options) {
|
|
60
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.HubSearchRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
61
|
+
if (!parsed.ok) {
|
|
62
|
+
return [parsed, { status: "invalid" }];
|
|
63
|
+
}
|
|
64
|
+
const payload = parsed.value;
|
|
65
|
+
const body = null;
|
|
66
|
+
const path = (0, url_js_1.pathToFunc)("/v2/hub/search")();
|
|
67
|
+
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
68
|
+
"q": payload?.q,
|
|
69
|
+
"types": payload?.types,
|
|
70
|
+
});
|
|
71
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
72
|
+
Accept: "application/json",
|
|
73
|
+
}));
|
|
74
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
75
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
76
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
77
|
+
const context = {
|
|
78
|
+
options: client._options,
|
|
79
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
80
|
+
operationID: "HubSearch",
|
|
81
|
+
oAuth2Scopes: null,
|
|
82
|
+
resolvedSecurity: requestSecurity,
|
|
83
|
+
securitySource: client._options.apiKey,
|
|
84
|
+
retryConfig: options?.retries
|
|
85
|
+
|| client._options.retryConfig
|
|
86
|
+
|| { strategy: "none" },
|
|
87
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
88
|
+
};
|
|
89
|
+
const requestRes = client._createRequest(context, {
|
|
90
|
+
security: requestSecurity,
|
|
91
|
+
method: "GET",
|
|
92
|
+
baseURL: options?.serverURL,
|
|
93
|
+
path: path,
|
|
94
|
+
headers: headers,
|
|
95
|
+
query: query,
|
|
96
|
+
body: body,
|
|
97
|
+
userAgent: client._options.userAgent,
|
|
98
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
99
|
+
}, options);
|
|
100
|
+
if (!requestRes.ok) {
|
|
101
|
+
return [requestRes, { status: "invalid" }];
|
|
102
|
+
}
|
|
103
|
+
const req = requestRes.value;
|
|
104
|
+
const doResult = await client._do(req, {
|
|
105
|
+
context,
|
|
106
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
107
|
+
retryConfig: context.retryConfig,
|
|
108
|
+
retryCodes: context.retryCodes,
|
|
109
|
+
});
|
|
110
|
+
if (!doResult.ok) {
|
|
111
|
+
return [doResult, { status: "request-error", request: req }];
|
|
112
|
+
}
|
|
113
|
+
const response = doResult.value;
|
|
114
|
+
const [result] = await M.match(M.json(200, components.SearchHubItemsResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req);
|
|
115
|
+
if (!result.ok) {
|
|
116
|
+
return [result, { status: "complete", request: req, response }];
|
|
117
|
+
}
|
|
118
|
+
return [result, { status: "complete", request: req, response }];
|
|
119
|
+
}
|
|
120
|
+
//# sourceMappingURL=hubSearch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hubSearch.js","sourceRoot":"","sources":["../src/funcs/hubSearch.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCH,8BAsBC;AAnDD,sDAAsD;AACtD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAW5D,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,SAAS,CACvB,MAAe,EACf,OAAiD,EACjD,OAAwB;IAcxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAe,EACf,OAAiD,EACjD,OAAwB;IAiBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,UAAU,CA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,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAW5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,oCAAoC,CAAC,EAC5D,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,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"}
|
|
@@ -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
|
+
* Create trace thread
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
* Create a thread for traces.
|
|
15
|
+
*/
|
|
16
|
+
export declare function sessionsCreate(client: OrqCore, request: components.CreateThreadRequest, options?: RequestOptions): APIPromise<Result<components.Thread, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
17
|
+
//# sourceMappingURL=sessionsCreate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessionsCreate.d.ts","sourceRoot":"","sources":["../src/funcs/sessionsCreate.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,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,cAAc,CAC5B,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,MAAM,EACf,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,115 @@
|
|
|
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.sessionsCreate = sessionsCreate;
|
|
40
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
41
|
+
const http_js_1 = require("../lib/http.js");
|
|
42
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
43
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
45
|
+
const security_js_1 = require("../lib/security.js");
|
|
46
|
+
const url_js_1 = require("../lib/url.js");
|
|
47
|
+
const components = __importStar(require("../models/components/index.js"));
|
|
48
|
+
const async_js_1 = require("../types/async.js");
|
|
49
|
+
/**
|
|
50
|
+
* Create trace thread
|
|
51
|
+
*
|
|
52
|
+
* @remarks
|
|
53
|
+
* Create a thread for traces.
|
|
54
|
+
*/
|
|
55
|
+
function sessionsCreate(client, request, options) {
|
|
56
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
57
|
+
}
|
|
58
|
+
async function $do(client, request, options) {
|
|
59
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => components.CreateThreadRequest$outboundSchema.parse(value), "Input validation failed");
|
|
60
|
+
if (!parsed.ok) {
|
|
61
|
+
return [parsed, { status: "invalid" }];
|
|
62
|
+
}
|
|
63
|
+
const payload = parsed.value;
|
|
64
|
+
const body = (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
|
|
65
|
+
const path = (0, url_js_1.pathToFunc)("/v2/sessions")();
|
|
66
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
67
|
+
"Content-Type": "application/json",
|
|
68
|
+
Accept: "application/json",
|
|
69
|
+
}));
|
|
70
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
71
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
72
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
73
|
+
const context = {
|
|
74
|
+
options: client._options,
|
|
75
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
76
|
+
operationID: "CreateSession",
|
|
77
|
+
oAuth2Scopes: null,
|
|
78
|
+
resolvedSecurity: requestSecurity,
|
|
79
|
+
securitySource: client._options.apiKey,
|
|
80
|
+
retryConfig: options?.retries
|
|
81
|
+
|| client._options.retryConfig
|
|
82
|
+
|| { strategy: "none" },
|
|
83
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
84
|
+
};
|
|
85
|
+
const requestRes = client._createRequest(context, {
|
|
86
|
+
security: requestSecurity,
|
|
87
|
+
method: "POST",
|
|
88
|
+
baseURL: options?.serverURL,
|
|
89
|
+
path: path,
|
|
90
|
+
headers: headers,
|
|
91
|
+
body: body,
|
|
92
|
+
userAgent: client._options.userAgent,
|
|
93
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
94
|
+
}, options);
|
|
95
|
+
if (!requestRes.ok) {
|
|
96
|
+
return [requestRes, { status: "invalid" }];
|
|
97
|
+
}
|
|
98
|
+
const req = requestRes.value;
|
|
99
|
+
const doResult = await client._do(req, {
|
|
100
|
+
context,
|
|
101
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
102
|
+
retryConfig: context.retryConfig,
|
|
103
|
+
retryCodes: context.retryCodes,
|
|
104
|
+
});
|
|
105
|
+
if (!doResult.ok) {
|
|
106
|
+
return [doResult, { status: "request-error", request: req }];
|
|
107
|
+
}
|
|
108
|
+
const response = doResult.value;
|
|
109
|
+
const [result] = await M.match(M.json(200, components.Thread$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req);
|
|
110
|
+
if (!result.ok) {
|
|
111
|
+
return [result, { status: "complete", request: req, response }];
|
|
112
|
+
}
|
|
113
|
+
return [result, { status: "complete", request: req, response }];
|
|
114
|
+
}
|
|
115
|
+
//# sourceMappingURL=sessionsCreate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessionsCreate.js","sourceRoot":"","sources":["../src/funcs/sessionsCreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BH,wCAsBC;AAlDD,sDAAiD;AACjD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4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AAC,KAAK,EAAE,KAAK,CAAC,CAAC;QACrE,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,UAAU,EAAE,OAAO,CAAC,UAAU;KAC/B,CAAC,CAAC;IACH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,OAAO,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IAC/D,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAW5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,oBAAoB,CAAC,EAC5C,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,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"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OrqCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
|
+
import { OrqError } from "../models/errors/orqerror.js";
|
|
5
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
6
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
7
|
+
import * as operations from "../models/operations/index.js";
|
|
8
|
+
import { APIPromise } from "../types/async.js";
|
|
9
|
+
import { Result } from "../types/fp.js";
|
|
10
|
+
/**
|
|
11
|
+
* Delete trace thread
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
* Delete a trace thread.
|
|
15
|
+
*/
|
|
16
|
+
export declare function sessionsDelete(client: OrqCore, request: operations.DeleteSessionRequest, options?: RequestOptions): APIPromise<Result<void, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
17
|
+
//# sourceMappingURL=sessionsDelete.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessionsDelete.d.ts","sourceRoot":"","sources":["../src/funcs/sessionsDelete.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,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,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,IAAI,EACF,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|