@orq-ai/node 4.16.0-rc.4 → 4.16.0-rc.5
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 +64 -37
- package/funcs/wikisCreate.d.ts +11 -0
- package/funcs/wikisCreate.d.ts.map +1 -0
- package/funcs/wikisCreate.js +109 -0
- package/funcs/wikisCreate.js.map +1 -0
- package/funcs/wikisDelete.d.ts +12 -0
- package/funcs/wikisDelete.d.ts.map +1 -0
- package/funcs/wikisDelete.js +115 -0
- package/funcs/wikisDelete.js.map +1 -0
- package/funcs/wikisGet.d.ts +12 -0
- package/funcs/wikisGet.d.ts.map +1 -0
- package/funcs/wikisGet.js +115 -0
- package/funcs/wikisGet.js.map +1 -0
- package/funcs/wikisGetPage.d.ts +12 -0
- package/funcs/wikisGetPage.d.ts.map +1 -0
- package/funcs/wikisGetPage.js +120 -0
- package/funcs/wikisGetPage.js.map +1 -0
- package/funcs/wikisGetTree.d.ts +12 -0
- package/funcs/wikisGetTree.d.ts.map +1 -0
- package/funcs/wikisGetTree.js +115 -0
- package/funcs/wikisGetTree.js.map +1 -0
- package/funcs/wikisInspectRepository.d.ts +11 -0
- package/funcs/wikisInspectRepository.d.ts.map +1 -0
- package/funcs/wikisInspectRepository.js +109 -0
- package/funcs/wikisInspectRepository.js.map +1 -0
- package/funcs/wikisList.d.ts +12 -0
- package/funcs/wikisList.d.ts.map +1 -0
- package/funcs/wikisList.js +118 -0
- package/funcs/wikisList.js.map +1 -0
- package/funcs/wikisListRuns.d.ts +12 -0
- package/funcs/wikisListRuns.d.ts.map +1 -0
- package/funcs/wikisListRuns.js +119 -0
- package/funcs/wikisListRuns.js.map +1 -0
- package/funcs/wikisRefresh.d.ts +12 -0
- package/funcs/wikisRefresh.d.ts.map +1 -0
- package/funcs/wikisRefresh.js +118 -0
- package/funcs/wikisRefresh.js.map +1 -0
- package/funcs/wikisSearch.d.ts +12 -0
- package/funcs/wikisSearch.d.ts.map +1 -0
- package/funcs/wikisSearch.js +120 -0
- package/funcs/wikisSearch.js.map +1 -0
- package/funcs/wikisUpdate.d.ts +12 -0
- package/funcs/wikisUpdate.d.ts.map +1 -0
- package/funcs/wikisUpdate.js +116 -0
- package/funcs/wikisUpdate.js.map +1 -0
- package/funcs/wikisUpdatePage.d.ts +12 -0
- package/funcs/wikisUpdatePage.d.ts.map +1 -0
- package/funcs/wikisUpdatePage.js +118 -0
- package/funcs/wikisUpdatePage.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/models/components/createapikeyrequest.d.ts +2 -2
- package/models/components/createapikeyrequest.d.ts.map +1 -1
- package/models/components/createapikeyrequest.js +1 -1
- package/models/components/createapikeyrequest.js.map +1 -1
- package/models/components/createwikirequest.d.ts +26 -0
- package/models/components/createwikirequest.d.ts.map +1 -0
- package/models/components/createwikirequest.js +65 -0
- package/models/components/createwikirequest.js.map +1 -0
- package/models/components/createwikiresponse.d.ts +11 -0
- package/models/components/createwikiresponse.d.ts.map +1 -0
- package/models/components/createwikiresponse.js +51 -0
- package/models/components/createwikiresponse.js.map +1 -0
- package/models/components/deletewikiresponse.d.ts +8 -0
- package/models/components/deletewikiresponse.d.ts.map +1 -0
- package/models/components/deletewikiresponse.js +48 -0
- package/models/components/deletewikiresponse.js.map +1 -0
- package/models/components/getwikipageresponse.d.ts +11 -0
- package/models/components/getwikipageresponse.d.ts.map +1 -0
- package/models/components/getwikipageresponse.js +51 -0
- package/models/components/getwikipageresponse.js.map +1 -0
- package/models/components/getwikiresponse.d.ts +11 -0
- package/models/components/getwikiresponse.d.ts.map +1 -0
- package/models/components/getwikiresponse.js +51 -0
- package/models/components/getwikiresponse.js.map +1 -0
- package/models/components/getwikitreeresponse.d.ts +11 -0
- package/models/components/getwikitreeresponse.d.ts.map +1 -0
- package/models/components/getwikitreeresponse.js +51 -0
- package/models/components/getwikitreeresponse.js.map +1 -0
- package/models/components/index.d.ts +25 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +25 -0
- package/models/components/index.js.map +1 -1
- package/models/components/inspectrepositorywikirequest.d.ts +16 -0
- package/models/components/inspectrepositorywikirequest.d.ts.map +1 -0
- package/models/components/inspectrepositorywikirequest.js +57 -0
- package/models/components/inspectrepositorywikirequest.js.map +1 -0
- package/models/components/inspectrepositorywikiresponse.d.ts +11 -0
- package/models/components/inspectrepositorywikiresponse.d.ts.map +1 -0
- package/models/components/inspectrepositorywikiresponse.js +56 -0
- package/models/components/inspectrepositorywikiresponse.js.map +1 -0
- package/models/components/listwikirunsresponse.d.ts +11 -0
- package/models/components/listwikirunsresponse.d.ts.map +1 -0
- package/models/components/listwikirunsresponse.js +51 -0
- package/models/components/listwikirunsresponse.js.map +1 -0
- package/models/components/listwikisresponse.d.ts +12 -0
- package/models/components/listwikisresponse.d.ts.map +1 -0
- package/models/components/listwikisresponse.js +57 -0
- package/models/components/listwikisresponse.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/components/refreshwikirequest.d.ts +12 -0
- package/models/components/refreshwikirequest.d.ts.map +1 -0
- package/models/components/refreshwikirequest.js +49 -0
- package/models/components/refreshwikirequest.js.map +1 -0
- package/models/components/refreshwikiresponse.d.ts +11 -0
- package/models/components/refreshwikiresponse.d.ts.map +1 -0
- package/models/components/refreshwikiresponse.js +51 -0
- package/models/components/refreshwikiresponse.js.map +1 -0
- package/models/components/searchwikiresponse.d.ts +11 -0
- package/models/components/searchwikiresponse.d.ts.map +1 -0
- package/models/components/searchwikiresponse.js +51 -0
- package/models/components/searchwikiresponse.js.map +1 -0
- package/models/components/updatewikipagerequest.d.ts +16 -0
- package/models/components/updatewikipagerequest.d.ts.map +1 -0
- package/models/components/updatewikipagerequest.js +56 -0
- package/models/components/updatewikipagerequest.js.map +1 -0
- package/models/components/updatewikipageresponse.d.ts +11 -0
- package/models/components/updatewikipageresponse.d.ts.map +1 -0
- package/models/components/updatewikipageresponse.js +51 -0
- package/models/components/updatewikipageresponse.js.map +1 -0
- package/models/components/updatewikirequest.d.ts +17 -0
- package/models/components/updatewikirequest.d.ts.map +1 -0
- package/models/components/updatewikirequest.js +58 -0
- package/models/components/updatewikirequest.js.map +1 -0
- package/models/components/updatewikiresponse.d.ts +11 -0
- package/models/components/updatewikiresponse.d.ts.map +1 -0
- package/models/components/updatewikiresponse.js +51 -0
- package/models/components/updatewikiresponse.js.map +1 -0
- package/models/components/wiki.d.ts +29 -0
- package/models/components/wiki.d.ts.map +1 -0
- package/models/components/wiki.js +88 -0
- package/models/components/wiki.js.map +1 -0
- package/models/components/wikipage.d.ts +19 -0
- package/models/components/wikipage.d.ts.map +1 -0
- package/models/components/wikipage.js +68 -0
- package/models/components/wikipage.js.map +1 -0
- package/models/components/wikirepository.d.ts +25 -0
- package/models/components/wikirepository.d.ts.map +1 -0
- package/models/components/wikirepository.js +75 -0
- package/models/components/wikirepository.js.map +1 -0
- package/models/components/wikirun.d.ts +25 -0
- package/models/components/wikirun.d.ts.map +1 -0
- package/models/components/wikirun.js +79 -0
- package/models/components/wikirun.js.map +1 -0
- package/models/components/wikirunstats.d.ts +13 -0
- package/models/components/wikirunstats.d.ts.map +1 -0
- package/models/components/wikirunstats.js +60 -0
- package/models/components/wikirunstats.js.map +1 -0
- package/models/components/wikisearchhit.d.ts +14 -0
- package/models/components/wikisearchhit.d.ts.map +1 -0
- package/models/components/wikisearchhit.js +60 -0
- package/models/components/wikisearchhit.js.map +1 -0
- package/models/components/wikisettings.d.ts +25 -0
- package/models/components/wikisettings.d.ts.map +1 -0
- package/models/components/wikisettings.js +79 -0
- package/models/components/wikisettings.js.map +1 -0
- package/models/components/wikitreepage.d.ts +15 -0
- package/models/components/wikitreepage.d.ts.map +1 -0
- package/models/components/wikitreepage.js +61 -0
- package/models/components/wikitreepage.js.map +1 -0
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createtool.js +4 -4
- package/models/operations/deletewiki.d.ts +12 -0
- package/models/operations/deletewiki.d.ts.map +1 -0
- package/models/operations/deletewiki.js +54 -0
- package/models/operations/deletewiki.js.map +1 -0
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/getwiki.d.ts +12 -0
- package/models/operations/getwiki.d.ts.map +1 -0
- package/models/operations/getwiki.js +54 -0
- package/models/operations/getwiki.js.map +1 -0
- package/models/operations/getwikipage.d.ts +16 -0
- package/models/operations/getwikipage.d.ts.map +1 -0
- package/models/operations/getwikipage.js +57 -0
- package/models/operations/getwikipage.js.map +1 -0
- package/models/operations/getwikitree.d.ts +12 -0
- package/models/operations/getwikitree.d.ts.map +1 -0
- package/models/operations/getwikitree.js +54 -0
- package/models/operations/getwikitree.js.map +1 -0
- package/models/operations/index.d.ts +10 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +10 -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/listwikiruns.d.ts +14 -0
- package/models/operations/listwikiruns.d.ts.map +1 -0
- package/models/operations/listwikiruns.js +55 -0
- package/models/operations/listwikiruns.js.map +1 -0
- package/models/operations/listwikis.d.ts +22 -0
- package/models/operations/listwikis.d.ts.map +1 -0
- package/models/operations/listwikis.js +62 -0
- package/models/operations/listwikis.js.map +1 -0
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/refreshwiki.d.ts +15 -0
- package/models/operations/refreshwiki.d.ts.map +1 -0
- package/models/operations/refreshwiki.js +57 -0
- package/models/operations/refreshwiki.js.map +1 -0
- 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.js +1 -1
- package/models/operations/searchwiki.d.ts +16 -0
- package/models/operations/searchwiki.d.ts.map +1 -0
- package/models/operations/searchwiki.js +56 -0
- package/models/operations/searchwiki.js.map +1 -0
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/models/operations/updatewiki.d.ts +15 -0
- package/models/operations/updatewiki.d.ts.map +1 -0
- package/models/operations/updatewiki.js +57 -0
- package/models/operations/updatewiki.js.map +1 -0
- package/models/operations/updatewikipage.d.ts +15 -0
- package/models/operations/updatewikipage.d.ts.map +1 -0
- package/models/operations/updatewikipage.js +57 -0
- package/models/operations/updatewikipage.js.map +1 -0
- package/package.json +3 -3
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/wikis.d.ts +18 -0
- package/sdk/wikis.d.ts.map +1 -0
- package/sdk/wikis.js +60 -0
- package/sdk/wikis.js.map +1 -0
- package/src/funcs/wikisCreate.ts +156 -0
- package/src/funcs/wikisDelete.ts +162 -0
- package/src/funcs/wikisGet.ts +162 -0
- package/src/funcs/wikisGetPage.ts +168 -0
- package/src/funcs/wikisGetTree.ts +162 -0
- package/src/funcs/wikisInspectRepository.ts +157 -0
- package/src/funcs/wikisList.ts +167 -0
- package/src/funcs/wikisListRuns.ts +167 -0
- package/src/funcs/wikisRefresh.ts +165 -0
- package/src/funcs/wikisSearch.ts +168 -0
- package/src/funcs/wikisUpdate.ts +163 -0
- package/src/funcs/wikisUpdatePage.ts +165 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/createapikeyrequest.ts +3 -3
- package/src/models/components/createwikirequest.ts +67 -0
- package/src/models/components/createwikiresponse.ts +32 -0
- package/src/models/components/deletewikiresponse.ts +27 -0
- package/src/models/components/getwikipageresponse.ts +32 -0
- package/src/models/components/getwikiresponse.ts +32 -0
- package/src/models/components/getwikitreeresponse.ts +32 -0
- package/src/models/components/index.ts +25 -0
- package/src/models/components/inspectrepositorywikirequest.ts +45 -0
- package/src/models/components/inspectrepositorywikiresponse.ts +38 -0
- package/src/models/components/listwikirunsresponse.ts +32 -0
- package/src/models/components/listwikisresponse.ts +39 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/refreshwikirequest.ts +31 -0
- package/src/models/components/refreshwikiresponse.ts +32 -0
- package/src/models/components/searchwikiresponse.ts +32 -0
- package/src/models/components/updatewikipagerequest.ts +42 -0
- package/src/models/components/updatewikipageresponse.ts +32 -0
- package/src/models/components/updatewikirequest.ts +48 -0
- package/src/models/components/updatewikiresponse.ts +32 -0
- package/src/models/components/wiki.ts +91 -0
- package/src/models/components/wikipage.ts +58 -0
- package/src/models/components/wikirepository.ts +72 -0
- package/src/models/components/wikirun.ts +71 -0
- package/src/models/components/wikirunstats.ts +44 -0
- package/src/models/components/wikisearchhit.ts +45 -0
- package/src/models/components/wikisettings.ts +76 -0
- package/src/models/components/wikitreepage.ts +47 -0
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/deletewiki.ts +36 -0
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/getwiki.ts +32 -0
- package/src/models/operations/getwikipage.ts +43 -0
- package/src/models/operations/getwikitree.ts +36 -0
- package/src/models/operations/index.ts +10 -0
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listwikiruns.ts +39 -0
- package/src/models/operations/listwikis.ts +54 -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/refreshwiki.ts +41 -0
- 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 +1 -1
- package/src/models/operations/searchwiki.ts +42 -0
- 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/updatetool.ts +4 -4
- package/src/models/operations/updatewiki.ts +41 -0
- package/src/models/operations/updatewikipage.ts +41 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/wikis.ts +154 -0
package/README.md
CHANGED
|
@@ -664,6 +664,21 @@ run();
|
|
|
664
664
|
* [delete](docs/sdks/webhooks/README.md#delete) - Delete a webhook
|
|
665
665
|
* [update](docs/sdks/webhooks/README.md#update) - Update a webhook
|
|
666
666
|
|
|
667
|
+
### [Wikis](docs/sdks/wikis/README.md)
|
|
668
|
+
|
|
669
|
+
* [list](docs/sdks/wikis/README.md#list)
|
|
670
|
+
* [create](docs/sdks/wikis/README.md#create)
|
|
671
|
+
* [inspectRepository](docs/sdks/wikis/README.md#inspectrepository)
|
|
672
|
+
* [get](docs/sdks/wikis/README.md#get)
|
|
673
|
+
* [delete](docs/sdks/wikis/README.md#delete)
|
|
674
|
+
* [update](docs/sdks/wikis/README.md#update)
|
|
675
|
+
* [getPage](docs/sdks/wikis/README.md#getpage)
|
|
676
|
+
* [updatePage](docs/sdks/wikis/README.md#updatepage)
|
|
677
|
+
* [refresh](docs/sdks/wikis/README.md#refresh)
|
|
678
|
+
* [listRuns](docs/sdks/wikis/README.md#listruns)
|
|
679
|
+
* [search](docs/sdks/wikis/README.md#search)
|
|
680
|
+
* [getTree](docs/sdks/wikis/README.md#gettree)
|
|
681
|
+
|
|
667
682
|
### [Workspaces](docs/sdks/workspaces/README.md)
|
|
668
683
|
|
|
669
684
|
* [list](docs/sdks/workspaces/README.md#list) - List workspaces
|
|
@@ -986,6 +1001,18 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
986
1001
|
- [`webhooksGet`](docs/sdks/webhooks/README.md#get) - Retrieve a webhook
|
|
987
1002
|
- [`webhooksList`](docs/sdks/webhooks/README.md#list) - List webhooks
|
|
988
1003
|
- [`webhooksUpdate`](docs/sdks/webhooks/README.md#update) - Update a webhook
|
|
1004
|
+
- [`wikisCreate`](docs/sdks/wikis/README.md#create)
|
|
1005
|
+
- [`wikisDelete`](docs/sdks/wikis/README.md#delete)
|
|
1006
|
+
- [`wikisGet`](docs/sdks/wikis/README.md#get)
|
|
1007
|
+
- [`wikisGetPage`](docs/sdks/wikis/README.md#getpage)
|
|
1008
|
+
- [`wikisGetTree`](docs/sdks/wikis/README.md#gettree)
|
|
1009
|
+
- [`wikisInspectRepository`](docs/sdks/wikis/README.md#inspectrepository)
|
|
1010
|
+
- [`wikisList`](docs/sdks/wikis/README.md#list)
|
|
1011
|
+
- [`wikisListRuns`](docs/sdks/wikis/README.md#listruns)
|
|
1012
|
+
- [`wikisRefresh`](docs/sdks/wikis/README.md#refresh)
|
|
1013
|
+
- [`wikisSearch`](docs/sdks/wikis/README.md#search)
|
|
1014
|
+
- [`wikisUpdate`](docs/sdks/wikis/README.md#update)
|
|
1015
|
+
- [`wikisUpdatePage`](docs/sdks/wikis/README.md#updatepage)
|
|
989
1016
|
- [`workspaceSecurityAddIPRange`](docs/sdks/workspacesecurity/README.md#addiprange) - Add an IP range
|
|
990
1017
|
- [`workspaceSecurityCreateDomain`](docs/sdks/workspacesecurity/README.md#createdomain) - Add a domain
|
|
991
1018
|
- [`workspaceSecurityDeleteDomain`](docs/sdks/workspacesecurity/README.md#deletedomain) - Delete a domain
|
|
@@ -1387,43 +1414,43 @@ run();
|
|
|
1387
1414
|
|
|
1388
1415
|
|
|
1389
1416
|
**Inherit from [`OrqError`](./src/models/errors/orqerror.ts)**:
|
|
1390
|
-
* [`HonoApiError`](./src/models/errors/honoapierror.ts): Applicable to 13 of
|
|
1391
|
-
* [`PostV2FeedbackResponseBody`](./src/models/errors/postv2feedbackresponsebody.ts): Bad Request. Status code `400`. Applicable to 1 of
|
|
1392
|
-
* [`CreateAgentScheduleResponseBody`](./src/models/errors/createagentscheduleresponsebody.ts): Invalid schedule type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of
|
|
1393
|
-
* [`UpdateAgentScheduleResponseBody`](./src/models/errors/updateagentscheduleresponsebody.ts): Invalid type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of
|
|
1394
|
-
* [`TriggerAgentScheduleResponseBody`](./src/models/errors/triggeragentscheduleresponsebody.ts): Schedule is inactive. Status code `400`. Applicable to 1 of
|
|
1395
|
-
* [`CreateClassifyResponseBody`](./src/models/errors/createclassifyresponsebody.ts): Malformed JSON or missing model. Status code `400`. Applicable to 1 of
|
|
1396
|
-
* [`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
|
|
1397
|
-
* [`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
|
|
1398
|
-
* [`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
|
|
1399
|
-
* [`StreamRunAgentResponseBody`](./src/models/errors/streamrunagentresponsebody.ts): Model not found. Status code `404`. Applicable to 1 of
|
|
1400
|
-
* [`StreamAgentResponseBody`](./src/models/errors/streamagentresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of
|
|
1401
|
-
* [`UpdatePromptResponseBody`](./src/models/errors/updatepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of
|
|
1402
|
-
* [`DeletePromptResponseBody`](./src/models/errors/deletepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of
|
|
1403
|
-
* [`GetPromptVersionResponseBody`](./src/models/errors/getpromptversionresponsebody.ts): Not Found - The prompt or prompt version does not exist. Status code `404`. Applicable to 1 of
|
|
1404
|
-
* [`UpdateToolResponseBody`](./src/models/errors/updatetoolresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of
|
|
1405
|
-
* [`GetV2ToolsToolIdVersionsResponseBody`](./src/models/errors/getv2toolstoolidversionsresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of
|
|
1406
|
-
* [`GetV2ToolsToolIdVersionsVersionIdResponseBody`](./src/models/errors/getv2toolstoolidversionsversionidresponsebody.ts): Tool or version not found. Status code `404`. Applicable to 1 of
|
|
1407
|
-
* [`PostV2FeedbackRemoveResponseBody`](./src/models/errors/postv2feedbackremoveresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
1408
|
-
* [`PostV2FeedbackFeedbackResponseBody`](./src/models/errors/postv2feedbackfeedbackresponsebody.ts): Workspace, trace, or feedback property was not found. Status code `404`. Applicable to 1 of
|
|
1409
|
-
* [`GetEvalsResponseBody`](./src/models/errors/getevalsresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
1410
|
-
* [`CreateEvalResponseBody`](./src/models/errors/createevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
1411
|
-
* [`GetEvalResponseBody`](./src/models/errors/getevalresponsebody.ts): No evaluator with this id exists in the authenticated workspace, or the request carries no workspace. Status code `404`. Applicable to 1 of
|
|
1412
|
-
* [`DeleteEvalResponseBody`](./src/models/errors/deleteevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
1413
|
-
* [`UpdateEvalResponseBody`](./src/models/errors/updateevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
1414
|
-
* [`CreateAgentScheduleSchedulesResponseBody`](./src/models/errors/createagentscheduleschedulesresponsebody.ts): Agent (or agent version, when agent_tag is set) not found. Status code `404`. Applicable to 1 of
|
|
1415
|
-
* [`DeleteAgentScheduleResponseBody`](./src/models/errors/deleteagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of
|
|
1416
|
-
* [`RetrieveAgentScheduleResponseBody`](./src/models/errors/retrieveagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of
|
|
1417
|
-
* [`UpdateAgentScheduleSchedulesResponseBody`](./src/models/errors/updateagentscheduleschedulesresponsebody.ts): Schedule or agent version not found. Status code `404`. Applicable to 1 of
|
|
1418
|
-
* [`TriggerAgentScheduleSchedulesResponseBody`](./src/models/errors/triggeragentscheduleschedulesresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of
|
|
1419
|
-
* [`RetrieveResponseResponseBody`](./src/models/errors/retrieveresponseresponsebody.ts): Response not found. Status code `404`. Applicable to 1 of
|
|
1420
|
-
* [`DeleteEvalEvalsResponseBody`](./src/models/errors/deleteevalevalsresponsebody.ts): The evaluator is still referenced as an evaluator or guardrail by one or more deployments. Status code `409`. Applicable to 1 of
|
|
1421
|
-
* [`CreateModerationResponseBody`](./src/models/errors/createmoderationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of
|
|
1422
|
-
* [`CreateClassifyRouterClassifyResponseBody`](./src/models/errors/createclassifyrouterclassifyresponsebody.ts): The state or a question violates the classification contract. Status code `422`. Applicable to 1 of
|
|
1423
|
-
* [`CreateTranscriptionResponseBody`](./src/models/errors/createtranscriptionresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of
|
|
1424
|
-
* [`CreateTranslationResponseBody`](./src/models/errors/createtranslationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of
|
|
1425
|
-
* [`CreateClassifyRouterClassifyResponseResponseBody`](./src/models/errors/createclassifyrouterclassifyresponseresponsebody.ts): Rate limited by the provider. Status code `429`. Applicable to 1 of
|
|
1426
|
-
* [`KnowledgeApiError`](./src/models/errors/knowledgeapierror.ts): An error has occured. Status code `500`. Applicable to 1 of
|
|
1417
|
+
* [`HonoApiError`](./src/models/errors/honoapierror.ts): Applicable to 13 of 314 methods.*
|
|
1418
|
+
* [`PostV2FeedbackResponseBody`](./src/models/errors/postv2feedbackresponsebody.ts): Bad Request. Status code `400`. Applicable to 1 of 314 methods.*
|
|
1419
|
+
* [`CreateAgentScheduleResponseBody`](./src/models/errors/createagentscheduleresponsebody.ts): Invalid schedule type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of 314 methods.*
|
|
1420
|
+
* [`UpdateAgentScheduleResponseBody`](./src/models/errors/updateagentscheduleresponsebody.ts): Invalid type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of 314 methods.*
|
|
1421
|
+
* [`TriggerAgentScheduleResponseBody`](./src/models/errors/triggeragentscheduleresponsebody.ts): Schedule is inactive. Status code `400`. Applicable to 1 of 314 methods.*
|
|
1422
|
+
* [`CreateClassifyResponseBody`](./src/models/errors/createclassifyresponsebody.ts): Malformed JSON or missing model. Status code `400`. Applicable to 1 of 314 methods.*
|
|
1423
|
+
* [`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 314 methods.*
|
|
1424
|
+
* [`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 314 methods.*
|
|
1425
|
+
* [`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 314 methods.*
|
|
1426
|
+
* [`StreamRunAgentResponseBody`](./src/models/errors/streamrunagentresponsebody.ts): Model not found. Status code `404`. Applicable to 1 of 314 methods.*
|
|
1427
|
+
* [`StreamAgentResponseBody`](./src/models/errors/streamagentresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of 314 methods.*
|
|
1428
|
+
* [`UpdatePromptResponseBody`](./src/models/errors/updatepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 314 methods.*
|
|
1429
|
+
* [`DeletePromptResponseBody`](./src/models/errors/deletepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 314 methods.*
|
|
1430
|
+
* [`GetPromptVersionResponseBody`](./src/models/errors/getpromptversionresponsebody.ts): Not Found - The prompt or prompt version does not exist. Status code `404`. Applicable to 1 of 314 methods.*
|
|
1431
|
+
* [`UpdateToolResponseBody`](./src/models/errors/updatetoolresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 314 methods.*
|
|
1432
|
+
* [`GetV2ToolsToolIdVersionsResponseBody`](./src/models/errors/getv2toolstoolidversionsresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 314 methods.*
|
|
1433
|
+
* [`GetV2ToolsToolIdVersionsVersionIdResponseBody`](./src/models/errors/getv2toolstoolidversionsversionidresponsebody.ts): Tool or version not found. Status code `404`. Applicable to 1 of 314 methods.*
|
|
1434
|
+
* [`PostV2FeedbackRemoveResponseBody`](./src/models/errors/postv2feedbackremoveresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 314 methods.*
|
|
1435
|
+
* [`PostV2FeedbackFeedbackResponseBody`](./src/models/errors/postv2feedbackfeedbackresponsebody.ts): Workspace, trace, or feedback property was not found. Status code `404`. Applicable to 1 of 314 methods.*
|
|
1436
|
+
* [`GetEvalsResponseBody`](./src/models/errors/getevalsresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 314 methods.*
|
|
1437
|
+
* [`CreateEvalResponseBody`](./src/models/errors/createevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 314 methods.*
|
|
1438
|
+
* [`GetEvalResponseBody`](./src/models/errors/getevalresponsebody.ts): No evaluator with this id exists in the authenticated workspace, or the request carries no workspace. Status code `404`. Applicable to 1 of 314 methods.*
|
|
1439
|
+
* [`DeleteEvalResponseBody`](./src/models/errors/deleteevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 314 methods.*
|
|
1440
|
+
* [`UpdateEvalResponseBody`](./src/models/errors/updateevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 314 methods.*
|
|
1441
|
+
* [`CreateAgentScheduleSchedulesResponseBody`](./src/models/errors/createagentscheduleschedulesresponsebody.ts): Agent (or agent version, when agent_tag is set) not found. Status code `404`. Applicable to 1 of 314 methods.*
|
|
1442
|
+
* [`DeleteAgentScheduleResponseBody`](./src/models/errors/deleteagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 314 methods.*
|
|
1443
|
+
* [`RetrieveAgentScheduleResponseBody`](./src/models/errors/retrieveagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 314 methods.*
|
|
1444
|
+
* [`UpdateAgentScheduleSchedulesResponseBody`](./src/models/errors/updateagentscheduleschedulesresponsebody.ts): Schedule or agent version not found. Status code `404`. Applicable to 1 of 314 methods.*
|
|
1445
|
+
* [`TriggerAgentScheduleSchedulesResponseBody`](./src/models/errors/triggeragentscheduleschedulesresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 314 methods.*
|
|
1446
|
+
* [`RetrieveResponseResponseBody`](./src/models/errors/retrieveresponseresponsebody.ts): Response not found. Status code `404`. Applicable to 1 of 314 methods.*
|
|
1447
|
+
* [`DeleteEvalEvalsResponseBody`](./src/models/errors/deleteevalevalsresponsebody.ts): The evaluator is still referenced as an evaluator or guardrail by one or more deployments. Status code `409`. Applicable to 1 of 314 methods.*
|
|
1448
|
+
* [`CreateModerationResponseBody`](./src/models/errors/createmoderationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 314 methods.*
|
|
1449
|
+
* [`CreateClassifyRouterClassifyResponseBody`](./src/models/errors/createclassifyrouterclassifyresponsebody.ts): The state or a question violates the classification contract. Status code `422`. Applicable to 1 of 314 methods.*
|
|
1450
|
+
* [`CreateTranscriptionResponseBody`](./src/models/errors/createtranscriptionresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 314 methods.*
|
|
1451
|
+
* [`CreateTranslationResponseBody`](./src/models/errors/createtranslationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 314 methods.*
|
|
1452
|
+
* [`CreateClassifyRouterClassifyResponseResponseBody`](./src/models/errors/createclassifyrouterclassifyresponseresponsebody.ts): Rate limited by the provider. Status code `429`. Applicable to 1 of 314 methods.*
|
|
1453
|
+
* [`KnowledgeApiError`](./src/models/errors/knowledgeapierror.ts): An error has occured. Status code `500`. Applicable to 1 of 314 methods.*
|
|
1427
1454
|
* [`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.
|
|
1428
1455
|
|
|
1429
1456
|
</details>
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
export declare function wikisCreate(client: OrqCore, request: components.CreateWikiRequest, options?: RequestOptions): APIPromise<Result<components.CreateWikiResponse, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
11
|
+
//# sourceMappingURL=wikisCreate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wikisCreate.d.ts","sourceRoot":"","sources":["../src/funcs/wikisCreate.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,wBAAgB,WAAW,CACzB,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,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"}
|
|
@@ -0,0 +1,109 @@
|
|
|
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.wikisCreate = wikisCreate;
|
|
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
|
+
function wikisCreate(client, request, options) {
|
|
50
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
51
|
+
}
|
|
52
|
+
async function $do(client, request, options) {
|
|
53
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => components.CreateWikiRequest$outboundSchema.parse(value), "Input validation failed");
|
|
54
|
+
if (!parsed.ok) {
|
|
55
|
+
return [parsed, { status: "invalid" }];
|
|
56
|
+
}
|
|
57
|
+
const payload = parsed.value;
|
|
58
|
+
const body = (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
|
|
59
|
+
const path = (0, url_js_1.pathToFunc)("/v2/wikis")();
|
|
60
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
61
|
+
"Content-Type": "application/json",
|
|
62
|
+
Accept: "application/json",
|
|
63
|
+
}));
|
|
64
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
65
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
66
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
67
|
+
const context = {
|
|
68
|
+
options: client._options,
|
|
69
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
70
|
+
operationID: "CreateWiki",
|
|
71
|
+
oAuth2Scopes: null,
|
|
72
|
+
resolvedSecurity: requestSecurity,
|
|
73
|
+
securitySource: client._options.apiKey,
|
|
74
|
+
retryConfig: options?.retries
|
|
75
|
+
|| client._options.retryConfig
|
|
76
|
+
|| { strategy: "none" },
|
|
77
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
78
|
+
};
|
|
79
|
+
const requestRes = client._createRequest(context, {
|
|
80
|
+
security: requestSecurity,
|
|
81
|
+
method: "POST",
|
|
82
|
+
baseURL: options?.serverURL,
|
|
83
|
+
path: path,
|
|
84
|
+
headers: headers,
|
|
85
|
+
body: body,
|
|
86
|
+
userAgent: client._options.userAgent,
|
|
87
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
88
|
+
}, options);
|
|
89
|
+
if (!requestRes.ok) {
|
|
90
|
+
return [requestRes, { status: "invalid" }];
|
|
91
|
+
}
|
|
92
|
+
const req = requestRes.value;
|
|
93
|
+
const doResult = await client._do(req, {
|
|
94
|
+
context,
|
|
95
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
96
|
+
retryConfig: context.retryConfig,
|
|
97
|
+
retryCodes: context.retryCodes,
|
|
98
|
+
});
|
|
99
|
+
if (!doResult.ok) {
|
|
100
|
+
return [doResult, { status: "request-error", request: req }];
|
|
101
|
+
}
|
|
102
|
+
const response = doResult.value;
|
|
103
|
+
const [result] = await M.match(M.json(200, components.CreateWikiResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req);
|
|
104
|
+
if (!result.ok) {
|
|
105
|
+
return [result, { status: "complete", request: req, response }];
|
|
106
|
+
}
|
|
107
|
+
return [result, { status: "complete", request: req, response }];
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=wikisCreate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wikisCreate.js","sourceRoot":"","sources":["../src/funcs/wikisCreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBH,kCAsBC;AA5CD,sDAAiD;AACjD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAW5D,gDAAwD;AAGxD,SAAgB,WAAW,CACzB,MAAe,EACf,OAAqC,EACrC,OAAwB;IAcxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,U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AAO,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,gCAAgC,CAAC,EACxD,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,12 @@
|
|
|
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
|
+
export declare function wikisDelete(client: OrqCore, request: operations.DeleteWikiRequest, options?: RequestOptions): APIPromise<Result<components.DeleteWikiResponse, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
12
|
+
//# sourceMappingURL=wikisDelete.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wikisDelete.d.ts","sourceRoot":"","sources":["../src/funcs/wikisDelete.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,wBAAgB,WAAW,CACzB,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,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"}
|
|
@@ -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.wikisDelete = wikisDelete;
|
|
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
|
+
function wikisDelete(client, request, options) {
|
|
51
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
52
|
+
}
|
|
53
|
+
async function $do(client, request, options) {
|
|
54
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.DeleteWikiRequest$outboundSchema.parse(value), "Input validation failed");
|
|
55
|
+
if (!parsed.ok) {
|
|
56
|
+
return [parsed, { status: "invalid" }];
|
|
57
|
+
}
|
|
58
|
+
const payload = parsed.value;
|
|
59
|
+
const body = null;
|
|
60
|
+
const pathParams = {
|
|
61
|
+
wiki_id: (0, encodings_js_1.encodeSimple)("wiki_id", payload.wiki_id, {
|
|
62
|
+
explode: false,
|
|
63
|
+
charEncoding: "percent",
|
|
64
|
+
}),
|
|
65
|
+
};
|
|
66
|
+
const path = (0, url_js_1.pathToFunc)("/v2/wikis/{wiki_id}")(pathParams);
|
|
67
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
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: "DeleteWiki",
|
|
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: "DELETE",
|
|
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.DeleteWikiResponse$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=wikisDelete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wikisDelete.js","sourceRoot":"","sources":["../src/funcs/wikisDelete.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BH,kCAsBC;AA7CD,sDAA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AAM,CAAC,GAAG,CAAC,GAAG,EAAE;QACrC,OAAO;QACP,iBAAiB,EAAE,CAAC,UAAkB,EAAE,EAAE,CACxC,IAAA,yBAAe,EAAC,EAAE,MAAM,EAAE,UAAU,EAAc,EAAE,CAAC,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,gCAAgC,CAAC,EACxD,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,12 @@
|
|
|
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
|
+
export declare function wikisGet(client: OrqCore, request: operations.GetWikiRequest, options?: RequestOptions): APIPromise<Result<components.GetWikiResponse, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
12
|
+
//# sourceMappingURL=wikisGet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wikisGet.d.ts","sourceRoot":"","sources":["../src/funcs/wikisGet.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,wBAAgB,QAAQ,CACtB,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,cAAc,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,eAAe,EACxB,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.wikisGet = wikisGet;
|
|
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
|
+
function wikisGet(client, request, options) {
|
|
51
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
52
|
+
}
|
|
53
|
+
async function $do(client, request, options) {
|
|
54
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.GetWikiRequest$outboundSchema.parse(value), "Input validation failed");
|
|
55
|
+
if (!parsed.ok) {
|
|
56
|
+
return [parsed, { status: "invalid" }];
|
|
57
|
+
}
|
|
58
|
+
const payload = parsed.value;
|
|
59
|
+
const body = null;
|
|
60
|
+
const pathParams = {
|
|
61
|
+
wiki_id: (0, encodings_js_1.encodeSimple)("wiki_id", payload.wiki_id, {
|
|
62
|
+
explode: false,
|
|
63
|
+
charEncoding: "percent",
|
|
64
|
+
}),
|
|
65
|
+
};
|
|
66
|
+
const path = (0, url_js_1.pathToFunc)("/v2/wikis/{wiki_id}")(pathParams);
|
|
67
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
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: "GetWiki",
|
|
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: "GET",
|
|
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.GetWikiResponse$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=wikisGet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wikisGet.js","sourceRoot":"","sources":["../src/funcs/wikisGet.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BH,4BAsBC;AA7CD,sDAAmD;AACnD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAW5D,0EAA4D;AAC5D,gDAAwD;AAGxD,SAAgB,QAAQ,CACtB,MAAe,EACf,OAAkC,EAClC,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,OAAkC,EAClC,OAAwB;IAiBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,6BAA6B,CAAC,KAAK,CAAC,KAAK,CAAC,EAChE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACzC,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAI,CAAC;IAElB,MAAM,UAAU,GAAG;QACjB,OAAO,EAAE,IAAA,2BAAY,EAAC,SAAS,EAAE,OAAO,CAAC,OAAO,EAAE;YAChD,OAAO,EAAE,KAAK;YACd,YAAY,EA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E,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,12 @@
|
|
|
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
|
+
export declare function wikisGetPage(client: OrqCore, request: operations.GetWikiPageRequest, options?: RequestOptions): APIPromise<Result<components.GetWikiPageResponse, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
12
|
+
//# sourceMappingURL=wikisGetPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wikisGetPage.d.ts","sourceRoot":"","sources":["../src/funcs/wikisGetPage.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,wBAAgB,YAAY,CAC1B,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,mBAAmB,EAC5B,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|