@meetkai/mka1 0.55.18 → 0.55.21
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 +411 -404
- package/bin/mcp-server.js +3500 -3080
- package/bin/mcp-server.js.map +26 -22
- package/dist/commonjs/funcs/authApiKeysDelete.d.ts +20 -0
- package/dist/commonjs/funcs/authApiKeysDelete.d.ts.map +1 -0
- package/dist/commonjs/funcs/authApiKeysDelete.js +132 -0
- package/dist/commonjs/funcs/authApiKeysDelete.js.map +1 -0
- package/dist/commonjs/funcs/llmSpeechGetTranscriptionHistoryContent.d.ts +20 -1
- package/dist/commonjs/funcs/llmSpeechGetTranscriptionHistoryContent.d.ts.map +1 -1
- package/dist/commonjs/funcs/llmSpeechGetTranscriptionHistoryContent.js +22 -3
- package/dist/commonjs/funcs/llmSpeechGetTranscriptionHistoryContent.js.map +1 -1
- package/dist/commonjs/funcs/llmSpeechSpeak.d.ts +1 -0
- package/dist/commonjs/funcs/llmSpeechSpeak.d.ts.map +1 -1
- package/dist/commonjs/funcs/llmSpeechSpeak.js +1 -0
- package/dist/commonjs/funcs/llmSpeechSpeak.js.map +1 -1
- package/dist/commonjs/funcs/llmSpeechSpeakStreaming.d.ts +1 -0
- package/dist/commonjs/funcs/llmSpeechSpeakStreaming.d.ts.map +1 -1
- package/dist/commonjs/funcs/llmSpeechSpeakStreaming.js +1 -0
- package/dist/commonjs/funcs/llmSpeechSpeakStreaming.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +3 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/authApiKeysDelete.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/authApiKeysDelete.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/authApiKeysDelete.js +64 -0
- package/dist/commonjs/mcp-server/tools/authApiKeysDelete.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/llmSpeechSpeak.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/llmSpeechSpeak.js +1 -0
- package/dist/commonjs/mcp-server/tools/llmSpeechSpeak.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/llmSpeechSpeakStreaming.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/llmSpeechSpeakStreaming.js +1 -0
- package/dist/commonjs/mcp-server/tools/llmSpeechSpeakStreaming.js.map +1 -1
- package/dist/commonjs/models/components/addcatalogmodelrequest.d.ts +1 -0
- package/dist/commonjs/models/components/addcatalogmodelrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/addcatalogmodelrequest.js +1 -0
- package/dist/commonjs/models/components/addcatalogmodelrequest.js.map +1 -1
- package/dist/commonjs/models/components/texttospeechrequest.d.ts +5 -0
- package/dist/commonjs/models/components/texttospeechrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/texttospeechrequest.js +2 -0
- package/dist/commonjs/models/components/texttospeechrequest.js.map +1 -1
- package/dist/commonjs/models/components/texttospeechstreamingrequest.d.ts +5 -0
- package/dist/commonjs/models/components/texttospeechstreamingrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/texttospeechstreamingrequest.js +2 -0
- package/dist/commonjs/models/components/texttospeechstreamingrequest.js.map +1 -1
- package/dist/commonjs/models/components/updatecatalogmodelrequest.d.ts +1 -0
- package/dist/commonjs/models/components/updatecatalogmodelrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/updatecatalogmodelrequest.js +1 -0
- package/dist/commonjs/models/components/updatecatalogmodelrequest.js.map +1 -1
- package/dist/commonjs/models/errors/deletescopedapikey.d.ts +188 -0
- package/dist/commonjs/models/errors/deletescopedapikey.d.ts.map +1 -0
- package/dist/commonjs/models/errors/deletescopedapikey.js +270 -0
- package/dist/commonjs/models/errors/deletescopedapikey.js.map +1 -0
- package/dist/commonjs/models/errors/index.d.ts +1 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +1 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/operations/deletescopedapikey.d.ts +53 -0
- package/dist/commonjs/models/operations/deletescopedapikey.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deletescopedapikey.js +107 -0
- package/dist/commonjs/models/operations/deletescopedapikey.js.map +1 -0
- package/dist/commonjs/models/operations/getmodel.d.ts +41 -0
- package/dist/commonjs/models/operations/getmodel.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getmodel.js +52 -1
- package/dist/commonjs/models/operations/getmodel.js.map +1 -1
- package/dist/commonjs/models/operations/getspeechtotexthistorycontent.d.ts +9 -0
- package/dist/commonjs/models/operations/getspeechtotexthistorycontent.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getspeechtotexthistorycontent.js +45 -1
- package/dist/commonjs/models/operations/getspeechtotexthistorycontent.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listmodels.d.ts +41 -0
- package/dist/commonjs/models/operations/listmodels.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listmodels.js +49 -1
- package/dist/commonjs/models/operations/listmodels.js.map +1 -1
- package/dist/commonjs/models/operations/updatescopedapikey.d.ts +8 -24
- package/dist/commonjs/models/operations/updatescopedapikey.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatescopedapikey.js +8 -24
- package/dist/commonjs/models/operations/updatescopedapikey.js.map +1 -1
- package/dist/commonjs/models/operations/updateserviceaccountapikey.d.ts +2 -0
- package/dist/commonjs/models/operations/updateserviceaccountapikey.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updateserviceaccountapikey.js +2 -0
- package/dist/commonjs/models/operations/updateserviceaccountapikey.js.map +1 -1
- package/dist/commonjs/react-query/authApiKeysDelete.d.ts +29 -0
- package/dist/commonjs/react-query/authApiKeysDelete.d.ts.map +1 -0
- package/dist/commonjs/react-query/authApiKeysDelete.js +47 -0
- package/dist/commonjs/react-query/authApiKeysDelete.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +1 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +1 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/llmSpeechGetTranscriptionHistoryContent.core.d.ts +8 -3
- package/dist/commonjs/react-query/llmSpeechGetTranscriptionHistoryContent.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/llmSpeechGetTranscriptionHistoryContent.core.js.map +1 -1
- package/dist/commonjs/react-query/llmSpeechGetTranscriptionHistoryContent.d.ts +1 -0
- package/dist/commonjs/react-query/llmSpeechGetTranscriptionHistoryContent.d.ts.map +1 -1
- package/dist/commonjs/react-query/llmSpeechGetTranscriptionHistoryContent.js +3 -1
- package/dist/commonjs/react-query/llmSpeechGetTranscriptionHistoryContent.js.map +1 -1
- package/dist/commonjs/react-query/llmSpeechSpeak.d.ts +1 -0
- package/dist/commonjs/react-query/llmSpeechSpeak.d.ts.map +1 -1
- package/dist/commonjs/react-query/llmSpeechSpeak.js +1 -0
- package/dist/commonjs/react-query/llmSpeechSpeak.js.map +1 -1
- package/dist/commonjs/react-query/llmSpeechSpeakStreaming.d.ts +1 -0
- package/dist/commonjs/react-query/llmSpeechSpeakStreaming.d.ts.map +1 -1
- package/dist/commonjs/react-query/llmSpeechSpeakStreaming.js +1 -0
- package/dist/commonjs/react-query/llmSpeechSpeakStreaming.js.map +1 -1
- package/dist/commonjs/sdk/apikeys.d.ts +7 -0
- package/dist/commonjs/sdk/apikeys.d.ts.map +1 -1
- package/dist/commonjs/sdk/apikeys.js +10 -0
- package/dist/commonjs/sdk/apikeys.js.map +1 -1
- package/dist/commonjs/sdk/speech.d.ts +7 -1
- package/dist/commonjs/sdk/speech.d.ts.map +1 -1
- package/dist/commonjs/sdk/speech.js +5 -1
- package/dist/commonjs/sdk/speech.js.map +1 -1
- package/dist/esm/funcs/authApiKeysDelete.d.ts +20 -0
- package/dist/esm/funcs/authApiKeysDelete.d.ts.map +1 -0
- package/dist/esm/funcs/authApiKeysDelete.js +96 -0
- package/dist/esm/funcs/authApiKeysDelete.js.map +1 -0
- package/dist/esm/funcs/llmSpeechGetTranscriptionHistoryContent.d.ts +20 -1
- package/dist/esm/funcs/llmSpeechGetTranscriptionHistoryContent.d.ts.map +1 -1
- package/dist/esm/funcs/llmSpeechGetTranscriptionHistoryContent.js +21 -3
- package/dist/esm/funcs/llmSpeechGetTranscriptionHistoryContent.js.map +1 -1
- package/dist/esm/funcs/llmSpeechSpeak.d.ts +1 -0
- package/dist/esm/funcs/llmSpeechSpeak.d.ts.map +1 -1
- package/dist/esm/funcs/llmSpeechSpeak.js +1 -0
- package/dist/esm/funcs/llmSpeechSpeak.js.map +1 -1
- package/dist/esm/funcs/llmSpeechSpeakStreaming.d.ts +1 -0
- package/dist/esm/funcs/llmSpeechSpeakStreaming.d.ts.map +1 -1
- package/dist/esm/funcs/llmSpeechSpeakStreaming.js +1 -0
- package/dist/esm/funcs/llmSpeechSpeakStreaming.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +3 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/authApiKeysDelete.d.ts +8 -0
- package/dist/esm/mcp-server/tools/authApiKeysDelete.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/authApiKeysDelete.js +28 -0
- package/dist/esm/mcp-server/tools/authApiKeysDelete.js.map +1 -0
- package/dist/esm/mcp-server/tools/llmSpeechSpeak.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/llmSpeechSpeak.js +1 -0
- package/dist/esm/mcp-server/tools/llmSpeechSpeak.js.map +1 -1
- package/dist/esm/mcp-server/tools/llmSpeechSpeakStreaming.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/llmSpeechSpeakStreaming.js +1 -0
- package/dist/esm/mcp-server/tools/llmSpeechSpeakStreaming.js.map +1 -1
- package/dist/esm/models/components/addcatalogmodelrequest.d.ts +1 -0
- package/dist/esm/models/components/addcatalogmodelrequest.d.ts.map +1 -1
- package/dist/esm/models/components/addcatalogmodelrequest.js +1 -0
- package/dist/esm/models/components/addcatalogmodelrequest.js.map +1 -1
- package/dist/esm/models/components/texttospeechrequest.d.ts +5 -0
- package/dist/esm/models/components/texttospeechrequest.d.ts.map +1 -1
- package/dist/esm/models/components/texttospeechrequest.js +2 -0
- package/dist/esm/models/components/texttospeechrequest.js.map +1 -1
- package/dist/esm/models/components/texttospeechstreamingrequest.d.ts +5 -0
- package/dist/esm/models/components/texttospeechstreamingrequest.d.ts.map +1 -1
- package/dist/esm/models/components/texttospeechstreamingrequest.js +2 -0
- package/dist/esm/models/components/texttospeechstreamingrequest.js.map +1 -1
- package/dist/esm/models/components/updatecatalogmodelrequest.d.ts +1 -0
- package/dist/esm/models/components/updatecatalogmodelrequest.d.ts.map +1 -1
- package/dist/esm/models/components/updatecatalogmodelrequest.js +1 -0
- package/dist/esm/models/components/updatecatalogmodelrequest.js.map +1 -1
- package/dist/esm/models/errors/deletescopedapikey.d.ts +188 -0
- package/dist/esm/models/errors/deletescopedapikey.d.ts.map +1 -0
- package/dist/esm/models/errors/deletescopedapikey.js +227 -0
- package/dist/esm/models/errors/deletescopedapikey.js.map +1 -0
- package/dist/esm/models/errors/index.d.ts +1 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +1 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/operations/deletescopedapikey.d.ts +53 -0
- package/dist/esm/models/operations/deletescopedapikey.d.ts.map +1 -0
- package/dist/esm/models/operations/deletescopedapikey.js +65 -0
- package/dist/esm/models/operations/deletescopedapikey.js.map +1 -0
- package/dist/esm/models/operations/getmodel.d.ts +41 -0
- package/dist/esm/models/operations/getmodel.d.ts.map +1 -1
- package/dist/esm/models/operations/getmodel.js +47 -0
- package/dist/esm/models/operations/getmodel.js.map +1 -1
- package/dist/esm/models/operations/getspeechtotexthistorycontent.d.ts +9 -0
- package/dist/esm/models/operations/getspeechtotexthistorycontent.d.ts.map +1 -1
- package/dist/esm/models/operations/getspeechtotexthistorycontent.js +42 -0
- package/dist/esm/models/operations/getspeechtotexthistorycontent.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listmodels.d.ts +41 -0
- package/dist/esm/models/operations/listmodels.d.ts.map +1 -1
- package/dist/esm/models/operations/listmodels.js +44 -0
- package/dist/esm/models/operations/listmodels.js.map +1 -1
- package/dist/esm/models/operations/updatescopedapikey.d.ts +8 -24
- package/dist/esm/models/operations/updatescopedapikey.d.ts.map +1 -1
- package/dist/esm/models/operations/updatescopedapikey.js +8 -24
- package/dist/esm/models/operations/updatescopedapikey.js.map +1 -1
- package/dist/esm/models/operations/updateserviceaccountapikey.d.ts +2 -0
- package/dist/esm/models/operations/updateserviceaccountapikey.d.ts.map +1 -1
- package/dist/esm/models/operations/updateserviceaccountapikey.js +2 -0
- package/dist/esm/models/operations/updateserviceaccountapikey.js.map +1 -1
- package/dist/esm/react-query/authApiKeysDelete.d.ts +29 -0
- package/dist/esm/react-query/authApiKeysDelete.d.ts.map +1 -0
- package/dist/esm/react-query/authApiKeysDelete.js +42 -0
- package/dist/esm/react-query/authApiKeysDelete.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +1 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +1 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/llmSpeechGetTranscriptionHistoryContent.core.d.ts +8 -3
- package/dist/esm/react-query/llmSpeechGetTranscriptionHistoryContent.core.d.ts.map +1 -1
- package/dist/esm/react-query/llmSpeechGetTranscriptionHistoryContent.core.js +1 -1
- package/dist/esm/react-query/llmSpeechGetTranscriptionHistoryContent.core.js.map +1 -1
- package/dist/esm/react-query/llmSpeechGetTranscriptionHistoryContent.d.ts +1 -0
- package/dist/esm/react-query/llmSpeechGetTranscriptionHistoryContent.d.ts.map +1 -1
- package/dist/esm/react-query/llmSpeechGetTranscriptionHistoryContent.js +1 -0
- package/dist/esm/react-query/llmSpeechGetTranscriptionHistoryContent.js.map +1 -1
- package/dist/esm/react-query/llmSpeechSpeak.d.ts +1 -0
- package/dist/esm/react-query/llmSpeechSpeak.d.ts.map +1 -1
- package/dist/esm/react-query/llmSpeechSpeak.js +1 -0
- package/dist/esm/react-query/llmSpeechSpeak.js.map +1 -1
- package/dist/esm/react-query/llmSpeechSpeakStreaming.d.ts +1 -0
- package/dist/esm/react-query/llmSpeechSpeakStreaming.d.ts.map +1 -1
- package/dist/esm/react-query/llmSpeechSpeakStreaming.js +1 -0
- package/dist/esm/react-query/llmSpeechSpeakStreaming.js.map +1 -1
- package/dist/esm/sdk/apikeys.d.ts +7 -0
- package/dist/esm/sdk/apikeys.d.ts.map +1 -1
- package/dist/esm/sdk/apikeys.js +10 -0
- package/dist/esm/sdk/apikeys.js.map +1 -1
- package/dist/esm/sdk/speech.d.ts +7 -1
- package/dist/esm/sdk/speech.d.ts.map +1 -1
- package/dist/esm/sdk/speech.js +4 -1
- package/dist/esm/sdk/speech.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/authApiKeysDelete.ts +230 -0
- package/src/funcs/llmSpeechGetTranscriptionHistoryContent.ts +103 -8
- package/src/funcs/llmSpeechSpeak.ts +1 -0
- package/src/funcs/llmSpeechSpeakStreaming.ts +1 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/authApiKeysDelete.ts +37 -0
- package/src/mcp-server/tools/llmSpeechSpeak.ts +1 -0
- package/src/mcp-server/tools/llmSpeechSpeakStreaming.ts +1 -0
- package/src/models/components/addcatalogmodelrequest.ts +1 -0
- package/src/models/components/texttospeechrequest.ts +7 -0
- package/src/models/components/texttospeechstreamingrequest.ts +7 -0
- package/src/models/components/updatecatalogmodelrequest.ts +1 -0
- package/src/models/errors/deletescopedapikey.ts +461 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/deletescopedapikey.ts +168 -0
- package/src/models/operations/getmodel.ts +96 -0
- package/src/models/operations/getspeechtotexthistorycontent.ts +100 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listmodels.ts +105 -0
- package/src/models/operations/updatescopedapikey.ts +18 -48
- package/src/models/operations/updateserviceaccountapikey.ts +6 -0
- package/src/react-query/authApiKeysDelete.ts +117 -0
- package/src/react-query/index.ts +1 -0
- package/src/react-query/llmSpeechGetTranscriptionHistoryContent.core.ts +12 -6
- package/src/react-query/llmSpeechGetTranscriptionHistoryContent.ts +2 -0
- package/src/react-query/llmSpeechSpeak.ts +1 -0
- package/src/react-query/llmSpeechSpeakStreaming.ts +1 -0
- package/src/sdk/apikeys.ts +18 -0
- package/src/sdk/speech.ts +12 -3
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { SDKError } from "./sdkerror.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Rate limited
|
|
10
|
+
*/
|
|
11
|
+
export type DeleteScopedApiKeyAuthApiKeysResponse429ResponseBodyData = {
|
|
12
|
+
message: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Rate limited
|
|
17
|
+
*/
|
|
18
|
+
export class DeleteScopedApiKeyAuthApiKeysResponse429ResponseBody
|
|
19
|
+
extends SDKError
|
|
20
|
+
{
|
|
21
|
+
/** The original data that was passed to this error instance. */
|
|
22
|
+
data$: DeleteScopedApiKeyAuthApiKeysResponse429ResponseBodyData;
|
|
23
|
+
|
|
24
|
+
constructor(
|
|
25
|
+
err: DeleteScopedApiKeyAuthApiKeysResponse429ResponseBodyData,
|
|
26
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
27
|
+
) {
|
|
28
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
29
|
+
super(message, httpMeta);
|
|
30
|
+
this.data$ = err;
|
|
31
|
+
|
|
32
|
+
this.name = "DeleteScopedApiKeyAuthApiKeysResponse429ResponseBody";
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Gone
|
|
38
|
+
*/
|
|
39
|
+
export type DeleteScopedApiKeyAuthApiKeysResponse410ResponseBodyData = {
|
|
40
|
+
message: string;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Gone
|
|
45
|
+
*/
|
|
46
|
+
export class DeleteScopedApiKeyAuthApiKeysResponse410ResponseBody
|
|
47
|
+
extends SDKError
|
|
48
|
+
{
|
|
49
|
+
/** The original data that was passed to this error instance. */
|
|
50
|
+
data$: DeleteScopedApiKeyAuthApiKeysResponse410ResponseBodyData;
|
|
51
|
+
|
|
52
|
+
constructor(
|
|
53
|
+
err: DeleteScopedApiKeyAuthApiKeysResponse410ResponseBodyData,
|
|
54
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
55
|
+
) {
|
|
56
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
57
|
+
super(message, httpMeta);
|
|
58
|
+
this.data$ = err;
|
|
59
|
+
|
|
60
|
+
this.name = "DeleteScopedApiKeyAuthApiKeysResponse410ResponseBody";
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Conflict
|
|
66
|
+
*/
|
|
67
|
+
export type DeleteScopedApiKeyAuthApiKeysResponse409ResponseBodyData = {
|
|
68
|
+
message: string;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Conflict
|
|
73
|
+
*/
|
|
74
|
+
export class DeleteScopedApiKeyAuthApiKeysResponse409ResponseBody
|
|
75
|
+
extends SDKError
|
|
76
|
+
{
|
|
77
|
+
/** The original data that was passed to this error instance. */
|
|
78
|
+
data$: DeleteScopedApiKeyAuthApiKeysResponse409ResponseBodyData;
|
|
79
|
+
|
|
80
|
+
constructor(
|
|
81
|
+
err: DeleteScopedApiKeyAuthApiKeysResponse409ResponseBodyData,
|
|
82
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
83
|
+
) {
|
|
84
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
85
|
+
super(message, httpMeta);
|
|
86
|
+
this.data$ = err;
|
|
87
|
+
|
|
88
|
+
this.name = "DeleteScopedApiKeyAuthApiKeysResponse409ResponseBody";
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Not found
|
|
94
|
+
*/
|
|
95
|
+
export type DeleteScopedApiKeyAuthApiKeysResponse404ResponseBodyData = {
|
|
96
|
+
message: string;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Not found
|
|
101
|
+
*/
|
|
102
|
+
export class DeleteScopedApiKeyAuthApiKeysResponse404ResponseBody
|
|
103
|
+
extends SDKError
|
|
104
|
+
{
|
|
105
|
+
/** The original data that was passed to this error instance. */
|
|
106
|
+
data$: DeleteScopedApiKeyAuthApiKeysResponse404ResponseBodyData;
|
|
107
|
+
|
|
108
|
+
constructor(
|
|
109
|
+
err: DeleteScopedApiKeyAuthApiKeysResponse404ResponseBodyData,
|
|
110
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
111
|
+
) {
|
|
112
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
113
|
+
super(message, httpMeta);
|
|
114
|
+
this.data$ = err;
|
|
115
|
+
|
|
116
|
+
this.name = "DeleteScopedApiKeyAuthApiKeysResponse404ResponseBody";
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Forbidden. An `mk-` key presented from a source address outside the organization's inbound IP rules gets `{"message":"inbound_ip_denied","code":"inbound_ip_denied"}`.
|
|
122
|
+
*/
|
|
123
|
+
export type DeleteScopedApiKeyAuthApiKeysResponseResponseBodyData = {
|
|
124
|
+
message: string;
|
|
125
|
+
code?: string | undefined;
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Forbidden. An `mk-` key presented from a source address outside the organization's inbound IP rules gets `{"message":"inbound_ip_denied","code":"inbound_ip_denied"}`.
|
|
130
|
+
*/
|
|
131
|
+
export class DeleteScopedApiKeyAuthApiKeysResponseResponseBody
|
|
132
|
+
extends SDKError
|
|
133
|
+
{
|
|
134
|
+
code?: string | undefined;
|
|
135
|
+
|
|
136
|
+
/** The original data that was passed to this error instance. */
|
|
137
|
+
data$: DeleteScopedApiKeyAuthApiKeysResponseResponseBodyData;
|
|
138
|
+
|
|
139
|
+
constructor(
|
|
140
|
+
err: DeleteScopedApiKeyAuthApiKeysResponseResponseBodyData,
|
|
141
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
142
|
+
) {
|
|
143
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
144
|
+
super(message, httpMeta);
|
|
145
|
+
this.data$ = err;
|
|
146
|
+
if (err.code != null) this.code = err.code;
|
|
147
|
+
|
|
148
|
+
this.name = "DeleteScopedApiKeyAuthApiKeysResponseResponseBody";
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Unauthorized
|
|
154
|
+
*/
|
|
155
|
+
export type DeleteScopedApiKeyAuthApiKeysResponseBodyData = {
|
|
156
|
+
message: string;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Unauthorized
|
|
161
|
+
*/
|
|
162
|
+
export class DeleteScopedApiKeyAuthApiKeysResponseBody extends SDKError {
|
|
163
|
+
/** The original data that was passed to this error instance. */
|
|
164
|
+
data$: DeleteScopedApiKeyAuthApiKeysResponseBodyData;
|
|
165
|
+
|
|
166
|
+
constructor(
|
|
167
|
+
err: DeleteScopedApiKeyAuthApiKeysResponseBodyData,
|
|
168
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
169
|
+
) {
|
|
170
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
171
|
+
super(message, httpMeta);
|
|
172
|
+
this.data$ = err;
|
|
173
|
+
|
|
174
|
+
this.name = "DeleteScopedApiKeyAuthApiKeysResponseBody";
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Bad request
|
|
180
|
+
*/
|
|
181
|
+
export type DeleteScopedApiKeyResponseBodyData = {
|
|
182
|
+
message: string;
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Bad request
|
|
187
|
+
*/
|
|
188
|
+
export class DeleteScopedApiKeyResponseBody extends SDKError {
|
|
189
|
+
/** The original data that was passed to this error instance. */
|
|
190
|
+
data$: DeleteScopedApiKeyResponseBodyData;
|
|
191
|
+
|
|
192
|
+
constructor(
|
|
193
|
+
err: DeleteScopedApiKeyResponseBodyData,
|
|
194
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
195
|
+
) {
|
|
196
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
197
|
+
super(message, httpMeta);
|
|
198
|
+
this.data$ = err;
|
|
199
|
+
|
|
200
|
+
this.name = "DeleteScopedApiKeyResponseBody";
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/** @internal */
|
|
205
|
+
export const DeleteScopedApiKeyAuthApiKeysResponse429ResponseBody$inboundSchema:
|
|
206
|
+
z.ZodType<
|
|
207
|
+
DeleteScopedApiKeyAuthApiKeysResponse429ResponseBody,
|
|
208
|
+
z.ZodTypeDef,
|
|
209
|
+
unknown
|
|
210
|
+
> = z.object({
|
|
211
|
+
message: z.string(),
|
|
212
|
+
request$: z.instanceof(Request),
|
|
213
|
+
response$: z.instanceof(Response),
|
|
214
|
+
body$: z.string(),
|
|
215
|
+
})
|
|
216
|
+
.transform((v) => {
|
|
217
|
+
return new DeleteScopedApiKeyAuthApiKeysResponse429ResponseBody(v, {
|
|
218
|
+
request: v.request$,
|
|
219
|
+
response: v.response$,
|
|
220
|
+
body: v.body$,
|
|
221
|
+
});
|
|
222
|
+
});
|
|
223
|
+
|
|
224
|
+
/** @internal */
|
|
225
|
+
export type DeleteScopedApiKeyAuthApiKeysResponse429ResponseBody$Outbound = {
|
|
226
|
+
message: string;
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
/** @internal */
|
|
230
|
+
export const DeleteScopedApiKeyAuthApiKeysResponse429ResponseBody$outboundSchema:
|
|
231
|
+
z.ZodType<
|
|
232
|
+
DeleteScopedApiKeyAuthApiKeysResponse429ResponseBody$Outbound,
|
|
233
|
+
z.ZodTypeDef,
|
|
234
|
+
DeleteScopedApiKeyAuthApiKeysResponse429ResponseBody
|
|
235
|
+
> = z.instanceof(DeleteScopedApiKeyAuthApiKeysResponse429ResponseBody)
|
|
236
|
+
.transform(v => v.data$)
|
|
237
|
+
.pipe(z.object({
|
|
238
|
+
message: z.string(),
|
|
239
|
+
}));
|
|
240
|
+
|
|
241
|
+
/** @internal */
|
|
242
|
+
export const DeleteScopedApiKeyAuthApiKeysResponse410ResponseBody$inboundSchema:
|
|
243
|
+
z.ZodType<
|
|
244
|
+
DeleteScopedApiKeyAuthApiKeysResponse410ResponseBody,
|
|
245
|
+
z.ZodTypeDef,
|
|
246
|
+
unknown
|
|
247
|
+
> = z.object({
|
|
248
|
+
message: z.string(),
|
|
249
|
+
request$: z.instanceof(Request),
|
|
250
|
+
response$: z.instanceof(Response),
|
|
251
|
+
body$: z.string(),
|
|
252
|
+
})
|
|
253
|
+
.transform((v) => {
|
|
254
|
+
return new DeleteScopedApiKeyAuthApiKeysResponse410ResponseBody(v, {
|
|
255
|
+
request: v.request$,
|
|
256
|
+
response: v.response$,
|
|
257
|
+
body: v.body$,
|
|
258
|
+
});
|
|
259
|
+
});
|
|
260
|
+
|
|
261
|
+
/** @internal */
|
|
262
|
+
export type DeleteScopedApiKeyAuthApiKeysResponse410ResponseBody$Outbound = {
|
|
263
|
+
message: string;
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
/** @internal */
|
|
267
|
+
export const DeleteScopedApiKeyAuthApiKeysResponse410ResponseBody$outboundSchema:
|
|
268
|
+
z.ZodType<
|
|
269
|
+
DeleteScopedApiKeyAuthApiKeysResponse410ResponseBody$Outbound,
|
|
270
|
+
z.ZodTypeDef,
|
|
271
|
+
DeleteScopedApiKeyAuthApiKeysResponse410ResponseBody
|
|
272
|
+
> = z.instanceof(DeleteScopedApiKeyAuthApiKeysResponse410ResponseBody)
|
|
273
|
+
.transform(v => v.data$)
|
|
274
|
+
.pipe(z.object({
|
|
275
|
+
message: z.string(),
|
|
276
|
+
}));
|
|
277
|
+
|
|
278
|
+
/** @internal */
|
|
279
|
+
export const DeleteScopedApiKeyAuthApiKeysResponse409ResponseBody$inboundSchema:
|
|
280
|
+
z.ZodType<
|
|
281
|
+
DeleteScopedApiKeyAuthApiKeysResponse409ResponseBody,
|
|
282
|
+
z.ZodTypeDef,
|
|
283
|
+
unknown
|
|
284
|
+
> = z.object({
|
|
285
|
+
message: z.string(),
|
|
286
|
+
request$: z.instanceof(Request),
|
|
287
|
+
response$: z.instanceof(Response),
|
|
288
|
+
body$: z.string(),
|
|
289
|
+
})
|
|
290
|
+
.transform((v) => {
|
|
291
|
+
return new DeleteScopedApiKeyAuthApiKeysResponse409ResponseBody(v, {
|
|
292
|
+
request: v.request$,
|
|
293
|
+
response: v.response$,
|
|
294
|
+
body: v.body$,
|
|
295
|
+
});
|
|
296
|
+
});
|
|
297
|
+
|
|
298
|
+
/** @internal */
|
|
299
|
+
export type DeleteScopedApiKeyAuthApiKeysResponse409ResponseBody$Outbound = {
|
|
300
|
+
message: string;
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
/** @internal */
|
|
304
|
+
export const DeleteScopedApiKeyAuthApiKeysResponse409ResponseBody$outboundSchema:
|
|
305
|
+
z.ZodType<
|
|
306
|
+
DeleteScopedApiKeyAuthApiKeysResponse409ResponseBody$Outbound,
|
|
307
|
+
z.ZodTypeDef,
|
|
308
|
+
DeleteScopedApiKeyAuthApiKeysResponse409ResponseBody
|
|
309
|
+
> = z.instanceof(DeleteScopedApiKeyAuthApiKeysResponse409ResponseBody)
|
|
310
|
+
.transform(v => v.data$)
|
|
311
|
+
.pipe(z.object({
|
|
312
|
+
message: z.string(),
|
|
313
|
+
}));
|
|
314
|
+
|
|
315
|
+
/** @internal */
|
|
316
|
+
export const DeleteScopedApiKeyAuthApiKeysResponse404ResponseBody$inboundSchema:
|
|
317
|
+
z.ZodType<
|
|
318
|
+
DeleteScopedApiKeyAuthApiKeysResponse404ResponseBody,
|
|
319
|
+
z.ZodTypeDef,
|
|
320
|
+
unknown
|
|
321
|
+
> = z.object({
|
|
322
|
+
message: z.string(),
|
|
323
|
+
request$: z.instanceof(Request),
|
|
324
|
+
response$: z.instanceof(Response),
|
|
325
|
+
body$: z.string(),
|
|
326
|
+
})
|
|
327
|
+
.transform((v) => {
|
|
328
|
+
return new DeleteScopedApiKeyAuthApiKeysResponse404ResponseBody(v, {
|
|
329
|
+
request: v.request$,
|
|
330
|
+
response: v.response$,
|
|
331
|
+
body: v.body$,
|
|
332
|
+
});
|
|
333
|
+
});
|
|
334
|
+
|
|
335
|
+
/** @internal */
|
|
336
|
+
export type DeleteScopedApiKeyAuthApiKeysResponse404ResponseBody$Outbound = {
|
|
337
|
+
message: string;
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
/** @internal */
|
|
341
|
+
export const DeleteScopedApiKeyAuthApiKeysResponse404ResponseBody$outboundSchema:
|
|
342
|
+
z.ZodType<
|
|
343
|
+
DeleteScopedApiKeyAuthApiKeysResponse404ResponseBody$Outbound,
|
|
344
|
+
z.ZodTypeDef,
|
|
345
|
+
DeleteScopedApiKeyAuthApiKeysResponse404ResponseBody
|
|
346
|
+
> = z.instanceof(DeleteScopedApiKeyAuthApiKeysResponse404ResponseBody)
|
|
347
|
+
.transform(v => v.data$)
|
|
348
|
+
.pipe(z.object({
|
|
349
|
+
message: z.string(),
|
|
350
|
+
}));
|
|
351
|
+
|
|
352
|
+
/** @internal */
|
|
353
|
+
export const DeleteScopedApiKeyAuthApiKeysResponseResponseBody$inboundSchema:
|
|
354
|
+
z.ZodType<
|
|
355
|
+
DeleteScopedApiKeyAuthApiKeysResponseResponseBody,
|
|
356
|
+
z.ZodTypeDef,
|
|
357
|
+
unknown
|
|
358
|
+
> = z.object({
|
|
359
|
+
message: z.string(),
|
|
360
|
+
code: z.string().optional(),
|
|
361
|
+
request$: z.instanceof(Request),
|
|
362
|
+
response$: z.instanceof(Response),
|
|
363
|
+
body$: z.string(),
|
|
364
|
+
})
|
|
365
|
+
.transform((v) => {
|
|
366
|
+
return new DeleteScopedApiKeyAuthApiKeysResponseResponseBody(v, {
|
|
367
|
+
request: v.request$,
|
|
368
|
+
response: v.response$,
|
|
369
|
+
body: v.body$,
|
|
370
|
+
});
|
|
371
|
+
});
|
|
372
|
+
|
|
373
|
+
/** @internal */
|
|
374
|
+
export type DeleteScopedApiKeyAuthApiKeysResponseResponseBody$Outbound = {
|
|
375
|
+
message: string;
|
|
376
|
+
code?: string | undefined;
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
/** @internal */
|
|
380
|
+
export const DeleteScopedApiKeyAuthApiKeysResponseResponseBody$outboundSchema:
|
|
381
|
+
z.ZodType<
|
|
382
|
+
DeleteScopedApiKeyAuthApiKeysResponseResponseBody$Outbound,
|
|
383
|
+
z.ZodTypeDef,
|
|
384
|
+
DeleteScopedApiKeyAuthApiKeysResponseResponseBody
|
|
385
|
+
> = z.instanceof(DeleteScopedApiKeyAuthApiKeysResponseResponseBody)
|
|
386
|
+
.transform(v => v.data$)
|
|
387
|
+
.pipe(z.object({
|
|
388
|
+
message: z.string(),
|
|
389
|
+
code: z.string().optional(),
|
|
390
|
+
}));
|
|
391
|
+
|
|
392
|
+
/** @internal */
|
|
393
|
+
export const DeleteScopedApiKeyAuthApiKeysResponseBody$inboundSchema: z.ZodType<
|
|
394
|
+
DeleteScopedApiKeyAuthApiKeysResponseBody,
|
|
395
|
+
z.ZodTypeDef,
|
|
396
|
+
unknown
|
|
397
|
+
> = z.object({
|
|
398
|
+
message: z.string(),
|
|
399
|
+
request$: z.instanceof(Request),
|
|
400
|
+
response$: z.instanceof(Response),
|
|
401
|
+
body$: z.string(),
|
|
402
|
+
})
|
|
403
|
+
.transform((v) => {
|
|
404
|
+
return new DeleteScopedApiKeyAuthApiKeysResponseBody(v, {
|
|
405
|
+
request: v.request$,
|
|
406
|
+
response: v.response$,
|
|
407
|
+
body: v.body$,
|
|
408
|
+
});
|
|
409
|
+
});
|
|
410
|
+
|
|
411
|
+
/** @internal */
|
|
412
|
+
export type DeleteScopedApiKeyAuthApiKeysResponseBody$Outbound = {
|
|
413
|
+
message: string;
|
|
414
|
+
};
|
|
415
|
+
|
|
416
|
+
/** @internal */
|
|
417
|
+
export const DeleteScopedApiKeyAuthApiKeysResponseBody$outboundSchema:
|
|
418
|
+
z.ZodType<
|
|
419
|
+
DeleteScopedApiKeyAuthApiKeysResponseBody$Outbound,
|
|
420
|
+
z.ZodTypeDef,
|
|
421
|
+
DeleteScopedApiKeyAuthApiKeysResponseBody
|
|
422
|
+
> = z.instanceof(DeleteScopedApiKeyAuthApiKeysResponseBody)
|
|
423
|
+
.transform(v => v.data$)
|
|
424
|
+
.pipe(z.object({
|
|
425
|
+
message: z.string(),
|
|
426
|
+
}));
|
|
427
|
+
|
|
428
|
+
/** @internal */
|
|
429
|
+
export const DeleteScopedApiKeyResponseBody$inboundSchema: z.ZodType<
|
|
430
|
+
DeleteScopedApiKeyResponseBody,
|
|
431
|
+
z.ZodTypeDef,
|
|
432
|
+
unknown
|
|
433
|
+
> = z.object({
|
|
434
|
+
message: z.string(),
|
|
435
|
+
request$: z.instanceof(Request),
|
|
436
|
+
response$: z.instanceof(Response),
|
|
437
|
+
body$: z.string(),
|
|
438
|
+
})
|
|
439
|
+
.transform((v) => {
|
|
440
|
+
return new DeleteScopedApiKeyResponseBody(v, {
|
|
441
|
+
request: v.request$,
|
|
442
|
+
response: v.response$,
|
|
443
|
+
body: v.body$,
|
|
444
|
+
});
|
|
445
|
+
});
|
|
446
|
+
|
|
447
|
+
/** @internal */
|
|
448
|
+
export type DeleteScopedApiKeyResponseBody$Outbound = {
|
|
449
|
+
message: string;
|
|
450
|
+
};
|
|
451
|
+
|
|
452
|
+
/** @internal */
|
|
453
|
+
export const DeleteScopedApiKeyResponseBody$outboundSchema: z.ZodType<
|
|
454
|
+
DeleteScopedApiKeyResponseBody$Outbound,
|
|
455
|
+
z.ZodTypeDef,
|
|
456
|
+
DeleteScopedApiKeyResponseBody
|
|
457
|
+
> = z.instanceof(DeleteScopedApiKeyResponseBody)
|
|
458
|
+
.transform(v => v.data$)
|
|
459
|
+
.pipe(z.object({
|
|
460
|
+
message: z.string(),
|
|
461
|
+
}));
|
|
@@ -12,6 +12,7 @@ export * from "./createscopedapikey.js";
|
|
|
12
12
|
export * from "./createserviceaccount.js";
|
|
13
13
|
export * from "./createteam.js";
|
|
14
14
|
export * from "./deleteclusterorg.js";
|
|
15
|
+
export * from "./deletescopedapikey.js";
|
|
15
16
|
export * from "./deleteserviceaccount.js";
|
|
16
17
|
export * from "./deleteserviceaccountapikey.js";
|
|
17
18
|
export * from "./deleteteam.js";
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type DeleteScopedApiKeyRequestBody = {
|
|
12
|
+
keyId: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type DeleteScopedApiKeyRequest = {
|
|
16
|
+
/**
|
|
17
|
+
* Optional external end-user identifier forwarded by the API gateway.
|
|
18
|
+
*/
|
|
19
|
+
xOnBehalfOf?: string | undefined;
|
|
20
|
+
requestBody?: DeleteScopedApiKeyRequestBody | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Deleted
|
|
25
|
+
*/
|
|
26
|
+
export type DeleteScopedApiKeyResponseBody = {
|
|
27
|
+
id: string;
|
|
28
|
+
deleted: true;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const DeleteScopedApiKeyRequestBody$inboundSchema: z.ZodType<
|
|
33
|
+
DeleteScopedApiKeyRequestBody,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
unknown
|
|
36
|
+
> = z.object({
|
|
37
|
+
keyId: z.string(),
|
|
38
|
+
});
|
|
39
|
+
/** @internal */
|
|
40
|
+
export type DeleteScopedApiKeyRequestBody$Outbound = {
|
|
41
|
+
keyId: string;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const DeleteScopedApiKeyRequestBody$outboundSchema: z.ZodType<
|
|
46
|
+
DeleteScopedApiKeyRequestBody$Outbound,
|
|
47
|
+
z.ZodTypeDef,
|
|
48
|
+
DeleteScopedApiKeyRequestBody
|
|
49
|
+
> = z.object({
|
|
50
|
+
keyId: z.string(),
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export function deleteScopedApiKeyRequestBodyToJSON(
|
|
54
|
+
deleteScopedApiKeyRequestBody: DeleteScopedApiKeyRequestBody,
|
|
55
|
+
): string {
|
|
56
|
+
return JSON.stringify(
|
|
57
|
+
DeleteScopedApiKeyRequestBody$outboundSchema.parse(
|
|
58
|
+
deleteScopedApiKeyRequestBody,
|
|
59
|
+
),
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
export function deleteScopedApiKeyRequestBodyFromJSON(
|
|
63
|
+
jsonString: string,
|
|
64
|
+
): SafeParseResult<DeleteScopedApiKeyRequestBody, SDKValidationError> {
|
|
65
|
+
return safeParse(
|
|
66
|
+
jsonString,
|
|
67
|
+
(x) => DeleteScopedApiKeyRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
68
|
+
`Failed to parse 'DeleteScopedApiKeyRequestBody' from JSON`,
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/** @internal */
|
|
73
|
+
export const DeleteScopedApiKeyRequest$inboundSchema: z.ZodType<
|
|
74
|
+
DeleteScopedApiKeyRequest,
|
|
75
|
+
z.ZodTypeDef,
|
|
76
|
+
unknown
|
|
77
|
+
> = z.object({
|
|
78
|
+
"X-On-Behalf-Of": z.string().optional(),
|
|
79
|
+
RequestBody: z.lazy(() => DeleteScopedApiKeyRequestBody$inboundSchema)
|
|
80
|
+
.optional(),
|
|
81
|
+
}).transform((v) => {
|
|
82
|
+
return remap$(v, {
|
|
83
|
+
"X-On-Behalf-Of": "xOnBehalfOf",
|
|
84
|
+
"RequestBody": "requestBody",
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
/** @internal */
|
|
88
|
+
export type DeleteScopedApiKeyRequest$Outbound = {
|
|
89
|
+
"X-On-Behalf-Of"?: string | undefined;
|
|
90
|
+
RequestBody?: DeleteScopedApiKeyRequestBody$Outbound | undefined;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
/** @internal */
|
|
94
|
+
export const DeleteScopedApiKeyRequest$outboundSchema: z.ZodType<
|
|
95
|
+
DeleteScopedApiKeyRequest$Outbound,
|
|
96
|
+
z.ZodTypeDef,
|
|
97
|
+
DeleteScopedApiKeyRequest
|
|
98
|
+
> = z.object({
|
|
99
|
+
xOnBehalfOf: z.string().optional(),
|
|
100
|
+
requestBody: z.lazy(() => DeleteScopedApiKeyRequestBody$outboundSchema)
|
|
101
|
+
.optional(),
|
|
102
|
+
}).transform((v) => {
|
|
103
|
+
return remap$(v, {
|
|
104
|
+
xOnBehalfOf: "X-On-Behalf-Of",
|
|
105
|
+
requestBody: "RequestBody",
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
export function deleteScopedApiKeyRequestToJSON(
|
|
110
|
+
deleteScopedApiKeyRequest: DeleteScopedApiKeyRequest,
|
|
111
|
+
): string {
|
|
112
|
+
return JSON.stringify(
|
|
113
|
+
DeleteScopedApiKeyRequest$outboundSchema.parse(deleteScopedApiKeyRequest),
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
export function deleteScopedApiKeyRequestFromJSON(
|
|
117
|
+
jsonString: string,
|
|
118
|
+
): SafeParseResult<DeleteScopedApiKeyRequest, SDKValidationError> {
|
|
119
|
+
return safeParse(
|
|
120
|
+
jsonString,
|
|
121
|
+
(x) => DeleteScopedApiKeyRequest$inboundSchema.parse(JSON.parse(x)),
|
|
122
|
+
`Failed to parse 'DeleteScopedApiKeyRequest' from JSON`,
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/** @internal */
|
|
127
|
+
export const DeleteScopedApiKeyResponseBody$inboundSchema: z.ZodType<
|
|
128
|
+
DeleteScopedApiKeyResponseBody,
|
|
129
|
+
z.ZodTypeDef,
|
|
130
|
+
unknown
|
|
131
|
+
> = z.object({
|
|
132
|
+
id: z.string(),
|
|
133
|
+
deleted: z.literal(true),
|
|
134
|
+
});
|
|
135
|
+
/** @internal */
|
|
136
|
+
export type DeleteScopedApiKeyResponseBody$Outbound = {
|
|
137
|
+
id: string;
|
|
138
|
+
deleted: true;
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
/** @internal */
|
|
142
|
+
export const DeleteScopedApiKeyResponseBody$outboundSchema: z.ZodType<
|
|
143
|
+
DeleteScopedApiKeyResponseBody$Outbound,
|
|
144
|
+
z.ZodTypeDef,
|
|
145
|
+
DeleteScopedApiKeyResponseBody
|
|
146
|
+
> = z.object({
|
|
147
|
+
id: z.string(),
|
|
148
|
+
deleted: z.literal(true),
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
export function deleteScopedApiKeyResponseBodyToJSON(
|
|
152
|
+
deleteScopedApiKeyResponseBody: DeleteScopedApiKeyResponseBody,
|
|
153
|
+
): string {
|
|
154
|
+
return JSON.stringify(
|
|
155
|
+
DeleteScopedApiKeyResponseBody$outboundSchema.parse(
|
|
156
|
+
deleteScopedApiKeyResponseBody,
|
|
157
|
+
),
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
export function deleteScopedApiKeyResponseBodyFromJSON(
|
|
161
|
+
jsonString: string,
|
|
162
|
+
): SafeParseResult<DeleteScopedApiKeyResponseBody, SDKValidationError> {
|
|
163
|
+
return safeParse(
|
|
164
|
+
jsonString,
|
|
165
|
+
(x) => DeleteScopedApiKeyResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
166
|
+
`Failed to parse 'DeleteScopedApiKeyResponseBody' from JSON`,
|
|
167
|
+
);
|
|
168
|
+
}
|