@orq-ai/node 4.10.0-rc.30 → 4.10.0-rc.32
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 +53 -38
- package/funcs/apiKeysCreate.d.ts +17 -0
- package/funcs/apiKeysCreate.d.ts.map +1 -0
- package/funcs/apiKeysCreate.js +115 -0
- package/funcs/apiKeysCreate.js.map +1 -0
- package/funcs/apiKeysDelete.d.ts +18 -0
- package/funcs/apiKeysDelete.d.ts.map +1 -0
- package/funcs/apiKeysDelete.js +121 -0
- package/funcs/apiKeysDelete.js.map +1 -0
- package/funcs/apiKeysGet.d.ts +18 -0
- package/funcs/apiKeysGet.d.ts.map +1 -0
- package/funcs/apiKeysGet.js +121 -0
- package/funcs/apiKeysGet.js.map +1 -0
- package/funcs/apiKeysList.d.ts +18 -0
- package/funcs/apiKeysList.d.ts.map +1 -0
- package/funcs/apiKeysList.js +126 -0
- package/funcs/apiKeysList.js.map +1 -0
- package/funcs/apiKeysListCapabilities.d.ts +17 -0
- package/funcs/apiKeysListCapabilities.d.ts.map +1 -0
- package/funcs/apiKeysListCapabilities.js +105 -0
- package/funcs/apiKeysListCapabilities.js.map +1 -0
- package/funcs/apiKeysUpdate.d.ts +18 -0
- package/funcs/apiKeysUpdate.d.ts.map +1 -0
- package/funcs/apiKeysUpdate.js +124 -0
- package/funcs/apiKeysUpdate.js.map +1 -0
- package/funcs/filesList.js +1 -0
- package/funcs/filesList.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/allprojects.d.ts +13 -0
- package/models/components/allprojects.d.ts.map +1 -0
- package/models/components/allprojects.js +54 -0
- package/models/components/allprojects.js.map +1 -0
- package/models/components/apikey.d.ts +117 -0
- package/models/components/apikey.d.ts.map +1 -0
- package/models/components/apikey.js +87 -0
- package/models/components/apikey.js.map +1 -0
- package/models/components/apikeyowner.d.ts +31 -0
- package/models/components/apikeyowner.d.ts.map +1 -0
- package/models/components/apikeyowner.js +71 -0
- package/models/components/apikeyowner.js.map +1 -0
- package/models/components/apikeystatus.d.ts +14 -0
- package/models/components/apikeystatus.d.ts.map +1 -0
- package/models/components/apikeystatus.js +51 -0
- package/models/components/apikeystatus.js.map +1 -0
- package/models/components/createapikeyrequest.d.ts +53 -0
- package/models/components/createapikeyrequest.d.ts.map +1 -0
- package/models/components/createapikeyrequest.js +64 -0
- package/models/components/createapikeyrequest.js.map +1 -0
- package/models/components/createapikeyresponse.d.ts +22 -0
- package/models/components/createapikeyresponse.d.ts.map +1 -0
- package/models/components/createapikeyresponse.js +57 -0
- package/models/components/createapikeyresponse.js.map +1 -0
- package/models/components/createfilerequest.d.ts +8 -2
- package/models/components/createfilerequest.d.ts.map +1 -1
- package/models/components/createfilerequest.js +4 -1
- package/models/components/createfilerequest.js.map +1 -1
- package/models/components/deleteapikeyresponse.d.ts +8 -0
- package/models/components/deleteapikeyresponse.d.ts.map +1 -0
- package/models/components/deleteapikeyresponse.js +48 -0
- package/models/components/deleteapikeyresponse.js.map +1 -0
- package/models/components/domain.d.ts +53 -0
- package/models/components/domain.d.ts.map +1 -0
- package/models/components/domain.js +64 -0
- package/models/components/domain.js.map +1 -0
- package/models/components/domaingroup.d.ts +12 -0
- package/models/components/domaingroup.d.ts.map +1 -0
- package/models/components/domaingroup.js +50 -0
- package/models/components/domaingroup.js.map +1 -0
- package/models/components/file.d.ts +6 -1
- package/models/components/file.d.ts.map +1 -1
- package/models/components/file.js +4 -1
- package/models/components/file.js.map +1 -1
- package/models/components/filepurpose.d.ts +14 -0
- package/models/components/filepurpose.d.ts.map +1 -0
- package/models/components/filepurpose.js +52 -0
- package/models/components/filepurpose.js.map +1 -0
- package/models/components/getapikeyresponse.d.ts +14 -0
- package/models/components/getapikeyresponse.d.ts.map +1 -0
- package/models/components/getapikeyresponse.js +56 -0
- package/models/components/getapikeyresponse.js.map +1 -0
- package/models/components/index.d.ts +23 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +23 -0
- package/models/components/index.js.map +1 -1
- package/models/components/inputtokensdetails.d.ts +2 -0
- package/models/components/inputtokensdetails.d.ts.map +1 -1
- package/models/components/inputtokensdetails.js +4 -0
- package/models/components/inputtokensdetails.js.map +1 -1
- package/models/components/legacytokenfamily.d.ts +12 -0
- package/models/components/legacytokenfamily.d.ts.map +1 -0
- package/models/components/legacytokenfamily.js +49 -0
- package/models/components/legacytokenfamily.js.map +1 -0
- package/models/components/listapikeysresponse.d.ts +28 -0
- package/models/components/listapikeysresponse.d.ts.map +1 -0
- package/models/components/listapikeysresponse.js +58 -0
- package/models/components/listapikeysresponse.js.map +1 -0
- package/models/components/listcapabilitiesresponse.d.ts +18 -0
- package/models/components/listcapabilitiesresponse.d.ts.map +1 -0
- package/models/components/listcapabilitiesresponse.js +51 -0
- package/models/components/listcapabilitiesresponse.js.map +1 -0
- package/models/components/ownertype.d.ts +11 -0
- package/models/components/ownertype.d.ts.map +1 -0
- package/models/components/ownertype.js +49 -0
- package/models/components/ownertype.js.map +1 -0
- package/models/components/permissionmode.d.ts +14 -0
- package/models/components/permissionmode.d.ts.map +1 -0
- package/models/components/permissionmode.js +51 -0
- package/models/components/permissionmode.js.map +1 -0
- package/models/components/projectscope.d.ts +28 -0
- package/models/components/projectscope.d.ts.map +1 -0
- package/models/components/projectscope.js +62 -0
- package/models/components/projectscope.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/components/scopemode.d.ts +11 -0
- package/models/components/scopemode.d.ts.map +1 -0
- package/models/components/scopemode.js +49 -0
- package/models/components/scopemode.js.map +1 -0
- package/models/components/serviceaccountowner.d.ts +13 -0
- package/models/components/serviceaccountowner.d.ts.map +1 -0
- package/models/components/serviceaccountowner.js +54 -0
- package/models/components/serviceaccountowner.js.map +1 -0
- package/models/components/singleproject.d.ts +17 -0
- package/models/components/singleproject.d.ts.map +1 -0
- package/models/components/singleproject.js +67 -0
- package/models/components/singleproject.js.map +1 -0
- package/models/components/updateapikeyrequest.d.ts +61 -0
- package/models/components/updateapikeyrequest.d.ts.map +1 -0
- package/models/components/updateapikeyrequest.js +68 -0
- package/models/components/updateapikeyrequest.js.map +1 -0
- package/models/components/updateapikeyresponse.d.ts +14 -0
- package/models/components/updateapikeyresponse.d.ts.map +1 -0
- package/models/components/updateapikeyresponse.js +56 -0
- package/models/components/updateapikeyresponse.js.map +1 -0
- package/models/components/userowner.d.ts +17 -0
- package/models/components/userowner.d.ts.map +1 -0
- package/models/components/userowner.js +67 -0
- package/models/components/userowner.js.map +1 -0
- package/models/operations/apikeydelete.d.ts +15 -0
- package/models/operations/apikeydelete.d.ts.map +1 -0
- package/models/operations/apikeydelete.js +54 -0
- package/models/operations/apikeydelete.js.map +1 -0
- package/models/operations/apikeyget.d.ts +15 -0
- package/models/operations/apikeyget.d.ts.map +1 -0
- package/models/operations/apikeyget.js +54 -0
- package/models/operations/apikeyget.js.map +1 -0
- package/models/operations/apikeylist.d.ts +72 -0
- package/models/operations/apikeylist.d.ts.map +1 -0
- package/models/operations/apikeylist.js +66 -0
- package/models/operations/apikeylist.js.map +1 -0
- package/models/operations/apikeyupdate.d.ts +18 -0
- package/models/operations/apikeyupdate.d.ts.map +1 -0
- package/models/operations/apikeyupdate.js +57 -0
- package/models/operations/apikeyupdate.js.map +1 -0
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.d.ts +15 -15
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +55 -55
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/filelist.d.ts +2 -0
- package/models/operations/filelist.d.ts.map +1 -1
- package/models/operations/filelist.js +2 -0
- package/models/operations/filelist.js.map +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +40 -40
- package/models/operations/getevals.js.map +1 -1
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/index.d.ts +4 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +4 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.d.ts +3 -3
- package/models/operations/updateeval.d.ts.map +1 -1
- package/models/operations/updateeval.js +43 -43
- package/models/operations/updateeval.js.map +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +7 -7
- package/sdk/apikeys.d.ts +48 -0
- package/sdk/apikeys.d.ts.map +1 -0
- package/sdk/apikeys.js +72 -0
- package/sdk/apikeys.js.map +1 -0
- 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/src/funcs/apiKeysCreate.ts +162 -0
- package/src/funcs/apiKeysDelete.ts +168 -0
- package/src/funcs/apiKeysGet.ts +168 -0
- package/src/funcs/apiKeysList.ts +175 -0
- package/src/funcs/apiKeysListCapabilities.ts +144 -0
- package/src/funcs/apiKeysUpdate.ts +171 -0
- package/src/funcs/filesList.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/allprojects.ts +39 -0
- package/src/models/components/apikey.ts +178 -0
- package/src/models/components/apikeyowner.ts +82 -0
- package/src/models/components/apikeystatus.ts +21 -0
- package/src/models/components/createapikeyrequest.ts +91 -0
- package/src/models/components/createapikeyresponse.ts +49 -0
- package/src/models/components/createfilerequest.ts +11 -3
- package/src/models/components/deleteapikeyresponse.ts +27 -0
- package/src/models/components/domain.ts +82 -0
- package/src/models/components/domaingroup.ts +18 -0
- package/src/models/components/file.ts +9 -2
- package/src/models/components/filepurpose.ts +21 -0
- package/src/models/components/getapikeyresponse.ts +40 -0
- package/src/models/components/index.ts +23 -0
- package/src/models/components/inputtokensdetails.ts +6 -0
- package/src/models/components/legacytokenfamily.ts +19 -0
- package/src/models/components/listapikeysresponse.ts +56 -0
- package/src/models/components/listcapabilitiesresponse.ts +39 -0
- package/src/models/components/ownertype.ts +17 -0
- package/src/models/components/permissionmode.ts +23 -0
- package/src/models/components/projectscope.ts +70 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/scopemode.ts +17 -0
- package/src/models/components/serviceaccountowner.ts +43 -0
- package/src/models/components/singleproject.ts +56 -0
- package/src/models/components/updateapikeyrequest.ts +99 -0
- package/src/models/components/updateapikeyresponse.ts +40 -0
- package/src/models/components/userowner.ts +56 -0
- package/src/models/operations/apikeydelete.ts +39 -0
- package/src/models/operations/apikeyget.ts +39 -0
- package/src/models/operations/apikeylist.ts +107 -0
- package/src/models/operations/apikeyupdate.ts +44 -0
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +70 -70
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/filelist.ts +4 -0
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +40 -40
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/index.ts +4 -0
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +46 -46
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/apikeys.ts +116 -0
- package/src/sdk/sdk.ts +6 -0
package/README.md
CHANGED
|
@@ -160,6 +160,15 @@ run();
|
|
|
160
160
|
* [create](docs/sdks/annotations/README.md#create) - Annotate a span
|
|
161
161
|
* [delete](docs/sdks/annotations/README.md#delete) - Remove an annotation from a span
|
|
162
162
|
|
|
163
|
+
### [ApiKeys](docs/sdks/apikeys/README.md)
|
|
164
|
+
|
|
165
|
+
* [list](docs/sdks/apikeys/README.md#list) - List API keys
|
|
166
|
+
* [create](docs/sdks/apikeys/README.md#create) - Create a new API key
|
|
167
|
+
* [listCapabilities](docs/sdks/apikeys/README.md#listcapabilities) - List capability catalog
|
|
168
|
+
* [get](docs/sdks/apikeys/README.md#get) - Retrieve an API key
|
|
169
|
+
* [delete](docs/sdks/apikeys/README.md#delete) - Delete an API key
|
|
170
|
+
* [update](docs/sdks/apikeys/README.md#update) - Update an API key
|
|
171
|
+
|
|
163
172
|
### [Chunking](docs/sdks/chunking/README.md)
|
|
164
173
|
|
|
165
174
|
* [parse](docs/sdks/chunking/README.md#parse) - Parse text
|
|
@@ -427,6 +436,12 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
427
436
|
- [`agentsUpdate`](docs/sdks/agents/README.md#update) - Update agent
|
|
428
437
|
- [`annotationsCreate`](docs/sdks/annotations/README.md#create) - Annotate a span
|
|
429
438
|
- [`annotationsDelete`](docs/sdks/annotations/README.md#delete) - Remove an annotation from a span
|
|
439
|
+
- [`apiKeysCreate`](docs/sdks/apikeys/README.md#create) - Create a new API key
|
|
440
|
+
- [`apiKeysDelete`](docs/sdks/apikeys/README.md#delete) - Delete an API key
|
|
441
|
+
- [`apiKeysGet`](docs/sdks/apikeys/README.md#get) - Retrieve an API key
|
|
442
|
+
- [`apiKeysList`](docs/sdks/apikeys/README.md#list) - List API keys
|
|
443
|
+
- [`apiKeysListCapabilities`](docs/sdks/apikeys/README.md#listcapabilities) - List capability catalog
|
|
444
|
+
- [`apiKeysUpdate`](docs/sdks/apikeys/README.md#update) - Update an API key
|
|
430
445
|
- [`chunkingParse`](docs/sdks/chunking/README.md#parse) - Parse text
|
|
431
446
|
- [`datasetsClear`](docs/sdks/datasets/README.md#clear) - Delete all datapoints
|
|
432
447
|
- [`datasetsCreate`](docs/sdks/datasets/README.md#create) - Create a dataset
|
|
@@ -875,44 +890,44 @@ run();
|
|
|
875
890
|
|
|
876
891
|
|
|
877
892
|
**Inherit from [`OrqError`](./src/models/errors/orqerror.ts)**:
|
|
878
|
-
* [`HonoApiError`](./src/models/errors/honoapierror.ts): Applicable to 10 of
|
|
879
|
-
* [`InvokeEvalResponseBody`](./src/models/errors/invokeevalresponsebody.ts): Bad request. Status code `400`. Applicable to 1 of
|
|
880
|
-
* [`PostV2AgentsA2aResponseBody`](./src/models/errors/postv2agentsa2aresponsebody.ts): Invalid request or agent card fetch failed. Status code `400`. Applicable to 1 of
|
|
881
|
-
* [`PostV2AgentsKeyCardRefreshResponseBody`](./src/models/errors/postv2agentskeycardrefreshresponsebody.ts): Invalid request - Agent is not an A2A agent or card fetch failed. Status code `400`. Applicable to 1 of
|
|
882
|
-
* [`PostV2FeedbackResponseBody`](./src/models/errors/postv2feedbackresponsebody.ts): Bad Request. Status code `400`. Applicable to 1 of
|
|
883
|
-
* [`CreateAgentScheduleResponseBody`](./src/models/errors/createagentscheduleresponsebody.ts): Invalid schedule type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of
|
|
884
|
-
* [`UpdateAgentScheduleResponseBody`](./src/models/errors/updateagentscheduleresponsebody.ts): Invalid type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of
|
|
885
|
-
* [`TriggerAgentScheduleResponseBody`](./src/models/errors/triggeragentscheduleresponsebody.ts): Schedule is inactive. Status code `400`. Applicable to 1 of
|
|
886
|
-
* [`GetEvalsResponseBody`](./src/models/errors/getevalsresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
887
|
-
* [`CreateEvalResponseBody`](./src/models/errors/createevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
888
|
-
* [`UpdateEvalResponseBody`](./src/models/errors/updateevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
889
|
-
* [`DeleteEvalResponseBody`](./src/models/errors/deleteevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
890
|
-
* [`InvokeEvalEvalsResponseBody`](./src/models/errors/invokeevalevalsresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
891
|
-
* [`GetV2EvaluatorsIdVersionsResponseBody`](./src/models/errors/getv2evaluatorsidversionsresponsebody.ts): Evaluator not found. Status code `404`. Applicable to 1 of
|
|
892
|
-
* [`PostV2AgentsKeyCardRefreshAgentsResponseBody`](./src/models/errors/postv2agentskeycardrefreshagentsresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of
|
|
893
|
-
* [`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
|
|
894
|
-
* [`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
|
|
895
|
-
* [`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
|
|
896
|
-
* [`StreamRunAgentResponseBody`](./src/models/errors/streamrunagentresponsebody.ts): Model not found. Status code `404`. Applicable to 1 of
|
|
897
|
-
* [`StreamAgentResponseBody`](./src/models/errors/streamagentresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of
|
|
898
|
-
* [`UpdatePromptResponseBody`](./src/models/errors/updatepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of
|
|
899
|
-
* [`DeletePromptResponseBody`](./src/models/errors/deletepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of
|
|
900
|
-
* [`GetPromptVersionResponseBody`](./src/models/errors/getpromptversionresponsebody.ts): Not Found - The prompt or prompt version does not exist. Status code `404`. Applicable to 1 of
|
|
901
|
-
* [`UpdateToolResponseBody`](./src/models/errors/updatetoolresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of
|
|
902
|
-
* [`GetV2ToolsToolIdVersionsResponseBody`](./src/models/errors/getv2toolstoolidversionsresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of
|
|
903
|
-
* [`GetV2ToolsToolIdVersionsVersionIdResponseBody`](./src/models/errors/getv2toolstoolidversionsversionidresponsebody.ts): Tool or version not found. Status code `404`. Applicable to 1 of
|
|
904
|
-
* [`PostV2FeedbackRemoveResponseBody`](./src/models/errors/postv2feedbackremoveresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
905
|
-
* [`PostV2FeedbackFeedbackResponseBody`](./src/models/errors/postv2feedbackfeedbackresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
906
|
-
* [`CreateAgentScheduleSchedulesResponseBody`](./src/models/errors/createagentscheduleschedulesresponsebody.ts): Agent (or agent version, when agent_tag is set) not found. Status code `404`. Applicable to 1 of
|
|
907
|
-
* [`DeleteAgentScheduleResponseBody`](./src/models/errors/deleteagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of
|
|
908
|
-
* [`RetrieveAgentScheduleResponseBody`](./src/models/errors/retrieveagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of
|
|
909
|
-
* [`UpdateAgentScheduleSchedulesResponseBody`](./src/models/errors/updateagentscheduleschedulesresponsebody.ts): Schedule or agent version not found. Status code `404`. Applicable to 1 of
|
|
910
|
-
* [`TriggerAgentScheduleSchedulesResponseBody`](./src/models/errors/triggeragentscheduleschedulesresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of
|
|
911
|
-
* [`PostV2AgentsA2aAgentsResponseBody`](./src/models/errors/postv2agentsa2aagentsresponsebody.ts): Agent with this key already exists. Status code `409`. Applicable to 1 of
|
|
912
|
-
* [`CreateModerationResponseBody`](./src/models/errors/createmoderationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of
|
|
913
|
-
* [`CreateTranscriptionResponseBody`](./src/models/errors/createtranscriptionresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of
|
|
914
|
-
* [`CreateTranslationResponseBody`](./src/models/errors/createtranslationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of
|
|
915
|
-
* [`InvokeEvalEvalsResponseResponseBody`](./src/models/errors/invokeevalevalsresponseresponsebody.ts): Error running the evaluator. Status code `500`. Applicable to 1 of
|
|
893
|
+
* [`HonoApiError`](./src/models/errors/honoapierror.ts): Applicable to 10 of 159 methods.*
|
|
894
|
+
* [`InvokeEvalResponseBody`](./src/models/errors/invokeevalresponsebody.ts): Bad request. Status code `400`. Applicable to 1 of 159 methods.*
|
|
895
|
+
* [`PostV2AgentsA2aResponseBody`](./src/models/errors/postv2agentsa2aresponsebody.ts): Invalid request or agent card fetch failed. Status code `400`. Applicable to 1 of 159 methods.*
|
|
896
|
+
* [`PostV2AgentsKeyCardRefreshResponseBody`](./src/models/errors/postv2agentskeycardrefreshresponsebody.ts): Invalid request - Agent is not an A2A agent or card fetch failed. Status code `400`. Applicable to 1 of 159 methods.*
|
|
897
|
+
* [`PostV2FeedbackResponseBody`](./src/models/errors/postv2feedbackresponsebody.ts): Bad Request. Status code `400`. Applicable to 1 of 159 methods.*
|
|
898
|
+
* [`CreateAgentScheduleResponseBody`](./src/models/errors/createagentscheduleresponsebody.ts): Invalid schedule type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of 159 methods.*
|
|
899
|
+
* [`UpdateAgentScheduleResponseBody`](./src/models/errors/updateagentscheduleresponsebody.ts): Invalid type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of 159 methods.*
|
|
900
|
+
* [`TriggerAgentScheduleResponseBody`](./src/models/errors/triggeragentscheduleresponsebody.ts): Schedule is inactive. Status code `400`. Applicable to 1 of 159 methods.*
|
|
901
|
+
* [`GetEvalsResponseBody`](./src/models/errors/getevalsresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 159 methods.*
|
|
902
|
+
* [`CreateEvalResponseBody`](./src/models/errors/createevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 159 methods.*
|
|
903
|
+
* [`UpdateEvalResponseBody`](./src/models/errors/updateevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 159 methods.*
|
|
904
|
+
* [`DeleteEvalResponseBody`](./src/models/errors/deleteevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 159 methods.*
|
|
905
|
+
* [`InvokeEvalEvalsResponseBody`](./src/models/errors/invokeevalevalsresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 159 methods.*
|
|
906
|
+
* [`GetV2EvaluatorsIdVersionsResponseBody`](./src/models/errors/getv2evaluatorsidversionsresponsebody.ts): Evaluator not found. Status code `404`. Applicable to 1 of 159 methods.*
|
|
907
|
+
* [`PostV2AgentsKeyCardRefreshAgentsResponseBody`](./src/models/errors/postv2agentskeycardrefreshagentsresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of 159 methods.*
|
|
908
|
+
* [`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 159 methods.*
|
|
909
|
+
* [`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 159 methods.*
|
|
910
|
+
* [`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 159 methods.*
|
|
911
|
+
* [`StreamRunAgentResponseBody`](./src/models/errors/streamrunagentresponsebody.ts): Model not found. Status code `404`. Applicable to 1 of 159 methods.*
|
|
912
|
+
* [`StreamAgentResponseBody`](./src/models/errors/streamagentresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of 159 methods.*
|
|
913
|
+
* [`UpdatePromptResponseBody`](./src/models/errors/updatepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 159 methods.*
|
|
914
|
+
* [`DeletePromptResponseBody`](./src/models/errors/deletepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 159 methods.*
|
|
915
|
+
* [`GetPromptVersionResponseBody`](./src/models/errors/getpromptversionresponsebody.ts): Not Found - The prompt or prompt version does not exist. Status code `404`. Applicable to 1 of 159 methods.*
|
|
916
|
+
* [`UpdateToolResponseBody`](./src/models/errors/updatetoolresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 159 methods.*
|
|
917
|
+
* [`GetV2ToolsToolIdVersionsResponseBody`](./src/models/errors/getv2toolstoolidversionsresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 159 methods.*
|
|
918
|
+
* [`GetV2ToolsToolIdVersionsVersionIdResponseBody`](./src/models/errors/getv2toolstoolidversionsversionidresponsebody.ts): Tool or version not found. Status code `404`. Applicable to 1 of 159 methods.*
|
|
919
|
+
* [`PostV2FeedbackRemoveResponseBody`](./src/models/errors/postv2feedbackremoveresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 159 methods.*
|
|
920
|
+
* [`PostV2FeedbackFeedbackResponseBody`](./src/models/errors/postv2feedbackfeedbackresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 159 methods.*
|
|
921
|
+
* [`CreateAgentScheduleSchedulesResponseBody`](./src/models/errors/createagentscheduleschedulesresponsebody.ts): Agent (or agent version, when agent_tag is set) not found. Status code `404`. Applicable to 1 of 159 methods.*
|
|
922
|
+
* [`DeleteAgentScheduleResponseBody`](./src/models/errors/deleteagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 159 methods.*
|
|
923
|
+
* [`RetrieveAgentScheduleResponseBody`](./src/models/errors/retrieveagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 159 methods.*
|
|
924
|
+
* [`UpdateAgentScheduleSchedulesResponseBody`](./src/models/errors/updateagentscheduleschedulesresponsebody.ts): Schedule or agent version not found. Status code `404`. Applicable to 1 of 159 methods.*
|
|
925
|
+
* [`TriggerAgentScheduleSchedulesResponseBody`](./src/models/errors/triggeragentscheduleschedulesresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 159 methods.*
|
|
926
|
+
* [`PostV2AgentsA2aAgentsResponseBody`](./src/models/errors/postv2agentsa2aagentsresponsebody.ts): Agent with this key already exists. Status code `409`. Applicable to 1 of 159 methods.*
|
|
927
|
+
* [`CreateModerationResponseBody`](./src/models/errors/createmoderationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 159 methods.*
|
|
928
|
+
* [`CreateTranscriptionResponseBody`](./src/models/errors/createtranscriptionresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 159 methods.*
|
|
929
|
+
* [`CreateTranslationResponseBody`](./src/models/errors/createtranslationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 159 methods.*
|
|
930
|
+
* [`InvokeEvalEvalsResponseResponseBody`](./src/models/errors/invokeevalevalsresponseresponsebody.ts): Error running the evaluator. Status code `500`. Applicable to 1 of 159 methods.*
|
|
916
931
|
* [`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.
|
|
917
932
|
|
|
918
933
|
</details>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OrqCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import * as components from "../models/components/index.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
+
import { OrqError } from "../models/errors/orqerror.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
+
import { APIPromise } from "../types/async.js";
|
|
9
|
+
import { Result } from "../types/fp.js";
|
|
10
|
+
/**
|
|
11
|
+
* Create a new API key
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
* Mints a new opaque API key (`sk-orq-<key_id>-<secret>`) in the workspace. The raw secret is returned ONCE in the response and is never retrievable afterwards. The stored record retains only `token_prefix` and a SHA-256 `token_hash`.
|
|
15
|
+
*/
|
|
16
|
+
export declare function apiKeysCreate(client: OrqCore, request: components.CreateApiKeyRequest, options?: RequestOptions): APIPromise<Result<components.CreateApiKeyResponse, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
17
|
+
//# sourceMappingURL=apiKeysCreate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiKeysCreate.d.ts","sourceRoot":"","sources":["../src/funcs/apiKeysCreate.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,aAAa,CAC3B,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,oBAAoB,EAC7B,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,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.apiKeysCreate = apiKeysCreate;
|
|
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 a new API key
|
|
51
|
+
*
|
|
52
|
+
* @remarks
|
|
53
|
+
* Mints a new opaque API key (`sk-orq-<key_id>-<secret>`) in the workspace. The raw secret is returned ONCE in the response and is never retrievable afterwards. The stored record retains only `token_prefix` and a SHA-256 `token_hash`.
|
|
54
|
+
*/
|
|
55
|
+
function apiKeysCreate(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.CreateApiKeyRequest$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/api-keys")();
|
|
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: "ApiKeyCreate",
|
|
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.CreateApiKeyResponse$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=apiKeysCreate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiKeysCreate.js","sourceRoot":"","sources":["../src/funcs/apiKeysCreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BH,sCAsBC;AAlDD,sDAAiD;AACjD,4CAAiD;AACjD,sDA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Ae,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,kCAAkC,CAAC,EAC1D,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,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
|
+
* Delete an API key
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Permanently deletes an API key. Cache entries in `API_KEYS_KV` are invalidated immediately so an in-flight token cannot ride out the TTL. The response body is empty on success.
|
|
16
|
+
*/
|
|
17
|
+
export declare function apiKeysDelete(client: OrqCore, request: operations.ApiKeyDeleteRequest, options?: RequestOptions): APIPromise<Result<components.DeleteApiKeyResponse, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
|
+
//# sourceMappingURL=apiKeysDelete.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiKeysDelete.d.ts","sourceRoot":"","sources":["../src/funcs/apiKeysDelete.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,aAAa,CAC3B,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,oBAAoB,EAC7B,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -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.apiKeysDelete = apiKeysDelete;
|
|
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
|
+
* Delete an API key
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* Permanently deletes an API key. Cache entries in `API_KEYS_KV` are invalidated immediately so an in-flight token cannot ride out the TTL. The response body is empty on success.
|
|
55
|
+
*/
|
|
56
|
+
function apiKeysDelete(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.ApiKeyDeleteRequest$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
|
+
api_key_id: (0, encodings_js_1.encodeSimple)("api_key_id", payload.api_key_id, {
|
|
68
|
+
explode: false,
|
|
69
|
+
charEncoding: "percent",
|
|
70
|
+
}),
|
|
71
|
+
};
|
|
72
|
+
const path = (0, url_js_1.pathToFunc)("/v2/api-keys/{api_key_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: "ApiKeyDelete",
|
|
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: "DELETE",
|
|
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.DeleteApiKeyResponse$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=apiKeysDelete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiKeysDelete.js","sourceRoot":"","sources":["../src/funcs/apiKeysDelete.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCH,sCAsBC;AAnDD,sDAAmD;AACnD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAW5D,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,aAAa,CAC3B,MAAe,EACf,OAAuC,EACvC,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,OAAuC,EACvC,OAAwB;IAiBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,kCAAkC,CAAC,KAAK,CAAC,KAAK,CAAC,EACrE,yBAAyB,CAC1B,CAA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,GAAG,MAAM,CAAC,CAAC,KAAK,CAW5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,kCAAkC,CAAC,EAC1D,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,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
|
+
* Retrieve an API key
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Retrieves the metadata for an existing API key by its unique identifier. The raw secret is never returned — only `token_prefix`, `permission_mode`, `project_scope`, and lifecycle fields.
|
|
16
|
+
*/
|
|
17
|
+
export declare function apiKeysGet(client: OrqCore, request: operations.ApiKeyGetRequest, options?: RequestOptions): APIPromise<Result<components.GetApiKeyResponse, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
|
+
//# sourceMappingURL=apiKeysGet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiKeysGet.d.ts","sourceRoot":"","sources":["../src/funcs/apiKeysGet.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,UAAU,CACxB,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,gBAAgB,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,iBAAiB,EAC1B,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -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.apiKeysGet = apiKeysGet;
|
|
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
|
+
* Retrieve an API key
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* Retrieves the metadata for an existing API key by its unique identifier. The raw secret is never returned — only `token_prefix`, `permission_mode`, `project_scope`, and lifecycle fields.
|
|
55
|
+
*/
|
|
56
|
+
function apiKeysGet(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.ApiKeyGetRequest$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
|
+
api_key_id: (0, encodings_js_1.encodeSimple)("api_key_id", payload.api_key_id, {
|
|
68
|
+
explode: false,
|
|
69
|
+
charEncoding: "percent",
|
|
70
|
+
}),
|
|
71
|
+
};
|
|
72
|
+
const path = (0, url_js_1.pathToFunc)("/v2/api-keys/{api_key_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: "ApiKeyGet",
|
|
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.GetApiKeyResponse$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=apiKeysGet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiKeysGet.js","sourceRoot":"","sources":["../src/funcs/apiKeysGet.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCH,gCAsBC;AAnDD,sDAAmD;AACnD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAW5D,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,UAAU,CACxB,MAAe,EACf,OAAoC,EACpC,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,OAAoC,EACpC,OAAwB;IAiBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,+BAA+B,CAAC,KAAK,CAAC,KAAK,CAAC,EAClE,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,UAAU,EAAE,IAAA,2BAAY,EAAC,YAAY,EAAE,OAAO,CAAC,UAAU,EAAE;YACzD,OAAO,EAAE,KAAK;YACd,YAAY,EAAE,SAAS;SACxB,CAAC;KACH,CAAC;IACF,MAAM,IAAI,GAAG,IAAA,mBAAU,EAAC,2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AAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -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
|
+
* List API keys
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Returns API keys visible to the current workspace, ordered by creation time with the newest key first. The `api_key` and `token_hash` fields are never returned by this endpoint; only `token_prefix` is included.
|
|
16
|
+
*/
|
|
17
|
+
export declare function apiKeysList(client: OrqCore, request?: operations.ApiKeyListRequest | undefined, options?: RequestOptions): APIPromise<Result<components.ListApiKeysResponse, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
|
+
//# sourceMappingURL=apiKeysList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiKeysList.d.ts","sourceRoot":"","sources":["../src/funcs/apiKeysList.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,WAAW,CACzB,MAAM,EAAE,OAAO,EACf,OAAO,CAAC,EAAE,UAAU,CAAC,iBAAiB,GAAG,SAAS,EAClD,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"}
|