@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
|
@@ -70,6 +70,17 @@ export const Weights = {
|
|
|
70
70
|
} as const;
|
|
71
71
|
export type Weights = ClosedEnum<typeof Weights>;
|
|
72
72
|
|
|
73
|
+
export type Voices = {
|
|
74
|
+
id: string;
|
|
75
|
+
name: string;
|
|
76
|
+
language: string;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export type Tts = {
|
|
80
|
+
defaultVoice: { [k: string]: string };
|
|
81
|
+
voices: Array<Voices>;
|
|
82
|
+
};
|
|
83
|
+
|
|
73
84
|
/**
|
|
74
85
|
* `active`, `deprecated` (still served, retirement announced or pending) or `retired` (the retirement date has passed). Informational in this version: the gateway does not yet refuse a retired model.
|
|
75
86
|
*/
|
|
@@ -200,6 +211,10 @@ export type GetModelResponseBody = {
|
|
|
200
211
|
* Languages the model is intended for, as ISO 639-1 codes, mirroring `modelCard.languages`. Null when unrecorded.
|
|
201
212
|
*/
|
|
202
213
|
languages: Array<string> | null;
|
|
214
|
+
/**
|
|
215
|
+
* Available public TTS voices and default voice IDs by language. Provider voice identifiers are not exposed.
|
|
216
|
+
*/
|
|
217
|
+
tts: Tts | null;
|
|
203
218
|
/**
|
|
204
219
|
* Known limitations in one short paragraph, mirroring `modelCard.limitations`. Null when unrecorded.
|
|
205
220
|
*/
|
|
@@ -407,6 +422,84 @@ export const Weights$inboundSchema: z.ZodNativeEnum<typeof Weights> = z
|
|
|
407
422
|
export const Weights$outboundSchema: z.ZodNativeEnum<typeof Weights> =
|
|
408
423
|
Weights$inboundSchema;
|
|
409
424
|
|
|
425
|
+
/** @internal */
|
|
426
|
+
export const Voices$inboundSchema: z.ZodType<Voices, z.ZodTypeDef, unknown> = z
|
|
427
|
+
.object({
|
|
428
|
+
id: z.string(),
|
|
429
|
+
name: z.string(),
|
|
430
|
+
language: z.string(),
|
|
431
|
+
});
|
|
432
|
+
/** @internal */
|
|
433
|
+
export type Voices$Outbound = {
|
|
434
|
+
id: string;
|
|
435
|
+
name: string;
|
|
436
|
+
language: string;
|
|
437
|
+
};
|
|
438
|
+
|
|
439
|
+
/** @internal */
|
|
440
|
+
export const Voices$outboundSchema: z.ZodType<
|
|
441
|
+
Voices$Outbound,
|
|
442
|
+
z.ZodTypeDef,
|
|
443
|
+
Voices
|
|
444
|
+
> = z.object({
|
|
445
|
+
id: z.string(),
|
|
446
|
+
name: z.string(),
|
|
447
|
+
language: z.string(),
|
|
448
|
+
});
|
|
449
|
+
|
|
450
|
+
export function voicesToJSON(voices: Voices): string {
|
|
451
|
+
return JSON.stringify(Voices$outboundSchema.parse(voices));
|
|
452
|
+
}
|
|
453
|
+
export function voicesFromJSON(
|
|
454
|
+
jsonString: string,
|
|
455
|
+
): SafeParseResult<Voices, SDKValidationError> {
|
|
456
|
+
return safeParse(
|
|
457
|
+
jsonString,
|
|
458
|
+
(x) => Voices$inboundSchema.parse(JSON.parse(x)),
|
|
459
|
+
`Failed to parse 'Voices' from JSON`,
|
|
460
|
+
);
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
/** @internal */
|
|
464
|
+
export const Tts$inboundSchema: z.ZodType<Tts, z.ZodTypeDef, unknown> = z
|
|
465
|
+
.object({
|
|
466
|
+
default_voice: z.record(z.string()),
|
|
467
|
+
voices: z.array(z.lazy(() => Voices$inboundSchema)),
|
|
468
|
+
}).transform((v) => {
|
|
469
|
+
return remap$(v, {
|
|
470
|
+
"default_voice": "defaultVoice",
|
|
471
|
+
});
|
|
472
|
+
});
|
|
473
|
+
/** @internal */
|
|
474
|
+
export type Tts$Outbound = {
|
|
475
|
+
default_voice: { [k: string]: string };
|
|
476
|
+
voices: Array<Voices$Outbound>;
|
|
477
|
+
};
|
|
478
|
+
|
|
479
|
+
/** @internal */
|
|
480
|
+
export const Tts$outboundSchema: z.ZodType<Tts$Outbound, z.ZodTypeDef, Tts> = z
|
|
481
|
+
.object({
|
|
482
|
+
defaultVoice: z.record(z.string()),
|
|
483
|
+
voices: z.array(z.lazy(() => Voices$outboundSchema)),
|
|
484
|
+
}).transform((v) => {
|
|
485
|
+
return remap$(v, {
|
|
486
|
+
defaultVoice: "default_voice",
|
|
487
|
+
});
|
|
488
|
+
});
|
|
489
|
+
|
|
490
|
+
export function ttsToJSON(tts: Tts): string {
|
|
491
|
+
return JSON.stringify(Tts$outboundSchema.parse(tts));
|
|
492
|
+
}
|
|
493
|
+
export function ttsFromJSON(
|
|
494
|
+
jsonString: string,
|
|
495
|
+
): SafeParseResult<Tts, SDKValidationError> {
|
|
496
|
+
return safeParse(
|
|
497
|
+
jsonString,
|
|
498
|
+
(x) => Tts$inboundSchema.parse(JSON.parse(x)),
|
|
499
|
+
`Failed to parse 'Tts' from JSON`,
|
|
500
|
+
);
|
|
501
|
+
}
|
|
502
|
+
|
|
410
503
|
/** @internal */
|
|
411
504
|
export const GetModelStatus$inboundSchema: z.ZodNativeEnum<
|
|
412
505
|
typeof GetModelStatus
|
|
@@ -565,6 +658,7 @@ export const GetModelResponseBody$inboundSchema: z.ZodType<
|
|
|
565
658
|
weights: z.nullable(Weights$inboundSchema),
|
|
566
659
|
license: z.nullable(z.string()),
|
|
567
660
|
languages: z.nullable(z.array(z.string())),
|
|
661
|
+
tts: z.nullable(z.lazy(() => Tts$inboundSchema)),
|
|
568
662
|
limitations: z.nullable(z.string()),
|
|
569
663
|
lifecycle: z.lazy(() => Lifecycle$inboundSchema),
|
|
570
664
|
capabilities: z.lazy(() => Capabilities$inboundSchema),
|
|
@@ -607,6 +701,7 @@ export type GetModelResponseBody$Outbound = {
|
|
|
607
701
|
weights: string | null;
|
|
608
702
|
license: string | null;
|
|
609
703
|
languages: Array<string> | null;
|
|
704
|
+
tts: Tts$Outbound | null;
|
|
610
705
|
limitations: string | null;
|
|
611
706
|
lifecycle: Lifecycle$Outbound;
|
|
612
707
|
capabilities: Capabilities$Outbound;
|
|
@@ -644,6 +739,7 @@ export const GetModelResponseBody$outboundSchema: z.ZodType<
|
|
|
644
739
|
weights: z.nullable(Weights$outboundSchema),
|
|
645
740
|
license: z.nullable(z.string()),
|
|
646
741
|
languages: z.nullable(z.array(z.string())),
|
|
742
|
+
tts: z.nullable(z.lazy(() => Tts$outboundSchema)),
|
|
647
743
|
limitations: z.nullable(z.string()),
|
|
648
744
|
lifecycle: z.lazy(() => Lifecycle$outboundSchema),
|
|
649
745
|
capabilities: z.lazy(() => Capabilities$outboundSchema),
|
|
@@ -16,6 +16,23 @@ export type GetSpeechToTextHistoryContentRequest = {
|
|
|
16
16
|
xOnBehalfOf?: string | undefined;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
+
export type GetSpeechToTextHistoryContentResponse =
|
|
20
|
+
| ReadableStream<Uint8Array>
|
|
21
|
+
| ReadableStream<Uint8Array>
|
|
22
|
+
| ReadableStream<Uint8Array>
|
|
23
|
+
| ReadableStream<Uint8Array>
|
|
24
|
+
| ReadableStream<Uint8Array>
|
|
25
|
+
| ReadableStream<Uint8Array>
|
|
26
|
+
| ReadableStream<Uint8Array>
|
|
27
|
+
| ReadableStream<Uint8Array>
|
|
28
|
+
| ReadableStream<Uint8Array>
|
|
29
|
+
| ReadableStream<Uint8Array>
|
|
30
|
+
| ReadableStream<Uint8Array>
|
|
31
|
+
| ReadableStream<Uint8Array>
|
|
32
|
+
| ReadableStream<Uint8Array>
|
|
33
|
+
| ReadableStream<Uint8Array>
|
|
34
|
+
| ReadableStream<Uint8Array>;
|
|
35
|
+
|
|
19
36
|
/** @internal */
|
|
20
37
|
export const GetSpeechToTextHistoryContentRequest$inboundSchema: z.ZodType<
|
|
21
38
|
GetSpeechToTextHistoryContentRequest,
|
|
@@ -70,3 +87,86 @@ export function getSpeechToTextHistoryContentRequestFromJSON(
|
|
|
70
87
|
`Failed to parse 'GetSpeechToTextHistoryContentRequest' from JSON`,
|
|
71
88
|
);
|
|
72
89
|
}
|
|
90
|
+
|
|
91
|
+
/** @internal */
|
|
92
|
+
export const GetSpeechToTextHistoryContentResponse$inboundSchema: z.ZodType<
|
|
93
|
+
GetSpeechToTextHistoryContentResponse,
|
|
94
|
+
z.ZodTypeDef,
|
|
95
|
+
unknown
|
|
96
|
+
> = z.union([
|
|
97
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
98
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
99
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
100
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
101
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
102
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
103
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
104
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
105
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
106
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
107
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
108
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
109
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
110
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
111
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
112
|
+
]);
|
|
113
|
+
/** @internal */
|
|
114
|
+
export type GetSpeechToTextHistoryContentResponse$Outbound =
|
|
115
|
+
| ReadableStream<Uint8Array>
|
|
116
|
+
| ReadableStream<Uint8Array>
|
|
117
|
+
| ReadableStream<Uint8Array>
|
|
118
|
+
| ReadableStream<Uint8Array>
|
|
119
|
+
| ReadableStream<Uint8Array>
|
|
120
|
+
| ReadableStream<Uint8Array>
|
|
121
|
+
| ReadableStream<Uint8Array>
|
|
122
|
+
| ReadableStream<Uint8Array>
|
|
123
|
+
| ReadableStream<Uint8Array>
|
|
124
|
+
| ReadableStream<Uint8Array>
|
|
125
|
+
| ReadableStream<Uint8Array>
|
|
126
|
+
| ReadableStream<Uint8Array>
|
|
127
|
+
| ReadableStream<Uint8Array>
|
|
128
|
+
| ReadableStream<Uint8Array>
|
|
129
|
+
| ReadableStream<Uint8Array>;
|
|
130
|
+
|
|
131
|
+
/** @internal */
|
|
132
|
+
export const GetSpeechToTextHistoryContentResponse$outboundSchema: z.ZodType<
|
|
133
|
+
GetSpeechToTextHistoryContentResponse$Outbound,
|
|
134
|
+
z.ZodTypeDef,
|
|
135
|
+
GetSpeechToTextHistoryContentResponse
|
|
136
|
+
> = z.union([
|
|
137
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
138
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
139
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
140
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
141
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
142
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
143
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
144
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
145
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
146
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
147
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
148
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
149
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
150
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
151
|
+
z.instanceof(ReadableStream<Uint8Array>),
|
|
152
|
+
]);
|
|
153
|
+
|
|
154
|
+
export function getSpeechToTextHistoryContentResponseToJSON(
|
|
155
|
+
getSpeechToTextHistoryContentResponse: GetSpeechToTextHistoryContentResponse,
|
|
156
|
+
): string {
|
|
157
|
+
return JSON.stringify(
|
|
158
|
+
GetSpeechToTextHistoryContentResponse$outboundSchema.parse(
|
|
159
|
+
getSpeechToTextHistoryContentResponse,
|
|
160
|
+
),
|
|
161
|
+
);
|
|
162
|
+
}
|
|
163
|
+
export function getSpeechToTextHistoryContentResponseFromJSON(
|
|
164
|
+
jsonString: string,
|
|
165
|
+
): SafeParseResult<GetSpeechToTextHistoryContentResponse, SDKValidationError> {
|
|
166
|
+
return safeParse(
|
|
167
|
+
jsonString,
|
|
168
|
+
(x) =>
|
|
169
|
+
GetSpeechToTextHistoryContentResponse$inboundSchema.parse(JSON.parse(x)),
|
|
170
|
+
`Failed to parse 'GetSpeechToTextHistoryContentResponse' from JSON`,
|
|
171
|
+
);
|
|
172
|
+
}
|
|
@@ -132,6 +132,7 @@ export * from "./deleterepo.js";
|
|
|
132
132
|
export * from "./deleterepotag.js";
|
|
133
133
|
export * from "./deleteresponse.js";
|
|
134
134
|
export * from "./deletesandboxenvironment.js";
|
|
135
|
+
export * from "./deletescopedapikey.js";
|
|
135
136
|
export * from "./deleteserviceaccount.js";
|
|
136
137
|
export * from "./deleteserviceaccountapikey.js";
|
|
137
138
|
export * from "./deleteskill.js";
|
|
@@ -69,6 +69,17 @@ export const ListModelsWeights = {
|
|
|
69
69
|
} as const;
|
|
70
70
|
export type ListModelsWeights = ClosedEnum<typeof ListModelsWeights>;
|
|
71
71
|
|
|
72
|
+
export type TtsVoices = {
|
|
73
|
+
id: string;
|
|
74
|
+
name: string;
|
|
75
|
+
language: string;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export type ListModelsTts = {
|
|
79
|
+
defaultVoice: { [k: string]: string };
|
|
80
|
+
voices: Array<TtsVoices>;
|
|
81
|
+
};
|
|
82
|
+
|
|
72
83
|
/**
|
|
73
84
|
* `active`, `deprecated` (still served, retirement announced or pending) or `retired` (the retirement date has passed). Informational in this version: the gateway does not yet refuse a retired model.
|
|
74
85
|
*/
|
|
@@ -196,6 +207,10 @@ export type ListModelsData = {
|
|
|
196
207
|
* Languages the model is intended for, as ISO 639-1 codes, mirroring `modelCard.languages`. Null when unrecorded.
|
|
197
208
|
*/
|
|
198
209
|
languages: Array<string> | null;
|
|
210
|
+
/**
|
|
211
|
+
* Available public TTS voices and default voice IDs by language. Provider voice identifiers are not exposed.
|
|
212
|
+
*/
|
|
213
|
+
tts: ListModelsTts | null;
|
|
199
214
|
/**
|
|
200
215
|
* Known limitations in one short paragraph, mirroring `modelCard.limitations`. Null when unrecorded.
|
|
201
216
|
*/
|
|
@@ -418,6 +433,93 @@ export const ListModelsWeights$outboundSchema: z.ZodNativeEnum<
|
|
|
418
433
|
typeof ListModelsWeights
|
|
419
434
|
> = ListModelsWeights$inboundSchema;
|
|
420
435
|
|
|
436
|
+
/** @internal */
|
|
437
|
+
export const TtsVoices$inboundSchema: z.ZodType<
|
|
438
|
+
TtsVoices,
|
|
439
|
+
z.ZodTypeDef,
|
|
440
|
+
unknown
|
|
441
|
+
> = z.object({
|
|
442
|
+
id: z.string(),
|
|
443
|
+
name: z.string(),
|
|
444
|
+
language: z.string(),
|
|
445
|
+
});
|
|
446
|
+
/** @internal */
|
|
447
|
+
export type TtsVoices$Outbound = {
|
|
448
|
+
id: string;
|
|
449
|
+
name: string;
|
|
450
|
+
language: string;
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
/** @internal */
|
|
454
|
+
export const TtsVoices$outboundSchema: z.ZodType<
|
|
455
|
+
TtsVoices$Outbound,
|
|
456
|
+
z.ZodTypeDef,
|
|
457
|
+
TtsVoices
|
|
458
|
+
> = z.object({
|
|
459
|
+
id: z.string(),
|
|
460
|
+
name: z.string(),
|
|
461
|
+
language: z.string(),
|
|
462
|
+
});
|
|
463
|
+
|
|
464
|
+
export function ttsVoicesToJSON(ttsVoices: TtsVoices): string {
|
|
465
|
+
return JSON.stringify(TtsVoices$outboundSchema.parse(ttsVoices));
|
|
466
|
+
}
|
|
467
|
+
export function ttsVoicesFromJSON(
|
|
468
|
+
jsonString: string,
|
|
469
|
+
): SafeParseResult<TtsVoices, SDKValidationError> {
|
|
470
|
+
return safeParse(
|
|
471
|
+
jsonString,
|
|
472
|
+
(x) => TtsVoices$inboundSchema.parse(JSON.parse(x)),
|
|
473
|
+
`Failed to parse 'TtsVoices' from JSON`,
|
|
474
|
+
);
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
/** @internal */
|
|
478
|
+
export const ListModelsTts$inboundSchema: z.ZodType<
|
|
479
|
+
ListModelsTts,
|
|
480
|
+
z.ZodTypeDef,
|
|
481
|
+
unknown
|
|
482
|
+
> = z.object({
|
|
483
|
+
default_voice: z.record(z.string()),
|
|
484
|
+
voices: z.array(z.lazy(() => TtsVoices$inboundSchema)),
|
|
485
|
+
}).transform((v) => {
|
|
486
|
+
return remap$(v, {
|
|
487
|
+
"default_voice": "defaultVoice",
|
|
488
|
+
});
|
|
489
|
+
});
|
|
490
|
+
/** @internal */
|
|
491
|
+
export type ListModelsTts$Outbound = {
|
|
492
|
+
default_voice: { [k: string]: string };
|
|
493
|
+
voices: Array<TtsVoices$Outbound>;
|
|
494
|
+
};
|
|
495
|
+
|
|
496
|
+
/** @internal */
|
|
497
|
+
export const ListModelsTts$outboundSchema: z.ZodType<
|
|
498
|
+
ListModelsTts$Outbound,
|
|
499
|
+
z.ZodTypeDef,
|
|
500
|
+
ListModelsTts
|
|
501
|
+
> = z.object({
|
|
502
|
+
defaultVoice: z.record(z.string()),
|
|
503
|
+
voices: z.array(z.lazy(() => TtsVoices$outboundSchema)),
|
|
504
|
+
}).transform((v) => {
|
|
505
|
+
return remap$(v, {
|
|
506
|
+
defaultVoice: "default_voice",
|
|
507
|
+
});
|
|
508
|
+
});
|
|
509
|
+
|
|
510
|
+
export function listModelsTtsToJSON(listModelsTts: ListModelsTts): string {
|
|
511
|
+
return JSON.stringify(ListModelsTts$outboundSchema.parse(listModelsTts));
|
|
512
|
+
}
|
|
513
|
+
export function listModelsTtsFromJSON(
|
|
514
|
+
jsonString: string,
|
|
515
|
+
): SafeParseResult<ListModelsTts, SDKValidationError> {
|
|
516
|
+
return safeParse(
|
|
517
|
+
jsonString,
|
|
518
|
+
(x) => ListModelsTts$inboundSchema.parse(JSON.parse(x)),
|
|
519
|
+
`Failed to parse 'ListModelsTts' from JSON`,
|
|
520
|
+
);
|
|
521
|
+
}
|
|
522
|
+
|
|
421
523
|
/** @internal */
|
|
422
524
|
export const ListModelsStatus$inboundSchema: z.ZodNativeEnum<
|
|
423
525
|
typeof ListModelsStatus
|
|
@@ -584,6 +686,7 @@ export const ListModelsData$inboundSchema: z.ZodType<
|
|
|
584
686
|
weights: z.nullable(ListModelsWeights$inboundSchema),
|
|
585
687
|
license: z.nullable(z.string()),
|
|
586
688
|
languages: z.nullable(z.array(z.string())),
|
|
689
|
+
tts: z.nullable(z.lazy(() => ListModelsTts$inboundSchema)),
|
|
587
690
|
limitations: z.nullable(z.string()),
|
|
588
691
|
lifecycle: z.lazy(() => ListModelsLifecycle$inboundSchema),
|
|
589
692
|
capabilities: z.lazy(() => ListModelsCapabilities$inboundSchema),
|
|
@@ -626,6 +729,7 @@ export type ListModelsData$Outbound = {
|
|
|
626
729
|
weights: string | null;
|
|
627
730
|
license: string | null;
|
|
628
731
|
languages: Array<string> | null;
|
|
732
|
+
tts: ListModelsTts$Outbound | null;
|
|
629
733
|
limitations: string | null;
|
|
630
734
|
lifecycle: ListModelsLifecycle$Outbound;
|
|
631
735
|
capabilities: ListModelsCapabilities$Outbound;
|
|
@@ -663,6 +767,7 @@ export const ListModelsData$outboundSchema: z.ZodType<
|
|
|
663
767
|
weights: z.nullable(ListModelsWeights$outboundSchema),
|
|
664
768
|
license: z.nullable(z.string()),
|
|
665
769
|
languages: z.nullable(z.array(z.string())),
|
|
770
|
+
tts: z.nullable(z.lazy(() => ListModelsTts$outboundSchema)),
|
|
666
771
|
limitations: z.nullable(z.string()),
|
|
667
772
|
lifecycle: z.lazy(() => ListModelsLifecycle$outboundSchema),
|
|
668
773
|
capabilities: z.lazy(() => ListModelsCapabilities$outboundSchema),
|
|
@@ -16,6 +16,7 @@ export type UpdateScopedApiKeyRequestBody = {
|
|
|
16
16
|
rateLimitEnabled?: boolean | undefined;
|
|
17
17
|
rateLimitTimeWindow?: number | undefined;
|
|
18
18
|
rateLimitMax?: number | undefined;
|
|
19
|
+
expiresAt?: Date | null | undefined;
|
|
19
20
|
};
|
|
20
21
|
|
|
21
22
|
export type UpdateScopedApiKeyRequest = {
|
|
@@ -39,19 +40,10 @@ export type UpdateScopedApiKeyUserType = ClosedEnum<
|
|
|
39
40
|
*/
|
|
40
41
|
export type UpdateScopedApiKeyResponseBody = {
|
|
41
42
|
id: string;
|
|
42
|
-
name?: string | null | undefined;
|
|
43
|
-
key?: string | undefined;
|
|
44
|
-
prefix?: string | null | undefined;
|
|
45
|
-
start?: string | null | undefined;
|
|
46
|
-
userId: string;
|
|
47
|
-
userType: UpdateScopedApiKeyUserType;
|
|
48
|
-
orgId: string | null;
|
|
49
|
-
teamId: string | null;
|
|
50
43
|
scopes: Array<string>;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
expiresAt?: string | null | undefined;
|
|
44
|
+
userType: UpdateScopedApiKeyUserType;
|
|
45
|
+
orgId: string;
|
|
46
|
+
expiresAt: string | null;
|
|
55
47
|
};
|
|
56
48
|
|
|
57
49
|
/** @internal */
|
|
@@ -66,6 +58,9 @@ export const UpdateScopedApiKeyRequestBody$inboundSchema: z.ZodType<
|
|
|
66
58
|
rateLimitEnabled: z.boolean().optional(),
|
|
67
59
|
rateLimitTimeWindow: z.number().optional(),
|
|
68
60
|
rateLimitMax: z.number().optional(),
|
|
61
|
+
expiresAt: z.nullable(
|
|
62
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
63
|
+
).optional(),
|
|
69
64
|
});
|
|
70
65
|
/** @internal */
|
|
71
66
|
export type UpdateScopedApiKeyRequestBody$Outbound = {
|
|
@@ -75,6 +70,7 @@ export type UpdateScopedApiKeyRequestBody$Outbound = {
|
|
|
75
70
|
rateLimitEnabled?: boolean | undefined;
|
|
76
71
|
rateLimitTimeWindow?: number | undefined;
|
|
77
72
|
rateLimitMax?: number | undefined;
|
|
73
|
+
expiresAt?: string | null | undefined;
|
|
78
74
|
};
|
|
79
75
|
|
|
80
76
|
/** @internal */
|
|
@@ -89,6 +85,7 @@ export const UpdateScopedApiKeyRequestBody$outboundSchema: z.ZodType<
|
|
|
89
85
|
rateLimitEnabled: z.boolean().optional(),
|
|
90
86
|
rateLimitTimeWindow: z.number().optional(),
|
|
91
87
|
rateLimitMax: z.number().optional(),
|
|
88
|
+
expiresAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
92
89
|
});
|
|
93
90
|
|
|
94
91
|
export function updateScopedApiKeyRequestBodyToJSON(
|
|
@@ -180,36 +177,18 @@ export const UpdateScopedApiKeyResponseBody$inboundSchema: z.ZodType<
|
|
|
180
177
|
unknown
|
|
181
178
|
> = z.object({
|
|
182
179
|
id: z.string(),
|
|
183
|
-
name: z.nullable(z.string()).optional(),
|
|
184
|
-
key: z.string().optional(),
|
|
185
|
-
prefix: z.nullable(z.string()).optional(),
|
|
186
|
-
start: z.nullable(z.string()).optional(),
|
|
187
|
-
userId: z.string(),
|
|
188
|
-
userType: UpdateScopedApiKeyUserType$inboundSchema,
|
|
189
|
-
orgId: z.nullable(z.string()),
|
|
190
|
-
teamId: z.nullable(z.string()),
|
|
191
180
|
scopes: z.array(z.string()),
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
expiresAt: z.nullable(z.string()).optional(),
|
|
181
|
+
userType: UpdateScopedApiKeyUserType$inboundSchema,
|
|
182
|
+
orgId: z.string(),
|
|
183
|
+
expiresAt: z.nullable(z.string()),
|
|
196
184
|
});
|
|
197
185
|
/** @internal */
|
|
198
186
|
export type UpdateScopedApiKeyResponseBody$Outbound = {
|
|
199
187
|
id: string;
|
|
200
|
-
name?: string | null | undefined;
|
|
201
|
-
key?: string | undefined;
|
|
202
|
-
prefix?: string | null | undefined;
|
|
203
|
-
start?: string | null | undefined;
|
|
204
|
-
userId: string;
|
|
205
|
-
userType: string;
|
|
206
|
-
orgId: string | null;
|
|
207
|
-
teamId: string | null;
|
|
208
188
|
scopes: Array<string>;
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
expiresAt?: string | null | undefined;
|
|
189
|
+
userType: string;
|
|
190
|
+
orgId: string;
|
|
191
|
+
expiresAt: string | null;
|
|
213
192
|
};
|
|
214
193
|
|
|
215
194
|
/** @internal */
|
|
@@ -219,19 +198,10 @@ export const UpdateScopedApiKeyResponseBody$outboundSchema: z.ZodType<
|
|
|
219
198
|
UpdateScopedApiKeyResponseBody
|
|
220
199
|
> = z.object({
|
|
221
200
|
id: z.string(),
|
|
222
|
-
name: z.nullable(z.string()).optional(),
|
|
223
|
-
key: z.string().optional(),
|
|
224
|
-
prefix: z.nullable(z.string()).optional(),
|
|
225
|
-
start: z.nullable(z.string()).optional(),
|
|
226
|
-
userId: z.string(),
|
|
227
|
-
userType: UpdateScopedApiKeyUserType$outboundSchema,
|
|
228
|
-
orgId: z.nullable(z.string()),
|
|
229
|
-
teamId: z.nullable(z.string()),
|
|
230
201
|
scopes: z.array(z.string()),
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
expiresAt: z.nullable(z.string()).optional(),
|
|
202
|
+
userType: UpdateScopedApiKeyUserType$outboundSchema,
|
|
203
|
+
orgId: z.string(),
|
|
204
|
+
expiresAt: z.nullable(z.string()),
|
|
235
205
|
});
|
|
236
206
|
|
|
237
207
|
export function updateScopedApiKeyResponseBodyToJSON(
|
|
@@ -14,6 +14,7 @@ export type UpdateServiceAccountApiKeyRequestBody = {
|
|
|
14
14
|
rateLimitEnabled?: boolean | undefined;
|
|
15
15
|
rateLimitTimeWindow?: number | undefined;
|
|
16
16
|
rateLimitMax?: number | undefined;
|
|
17
|
+
expiresAt?: Date | null | undefined;
|
|
17
18
|
};
|
|
18
19
|
|
|
19
20
|
export type UpdateServiceAccountApiKeyRequest = {
|
|
@@ -46,6 +47,9 @@ export const UpdateServiceAccountApiKeyRequestBody$inboundSchema: z.ZodType<
|
|
|
46
47
|
rateLimitEnabled: z.boolean().optional(),
|
|
47
48
|
rateLimitTimeWindow: z.number().optional(),
|
|
48
49
|
rateLimitMax: z.number().optional(),
|
|
50
|
+
expiresAt: z.nullable(
|
|
51
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
52
|
+
).optional(),
|
|
49
53
|
});
|
|
50
54
|
/** @internal */
|
|
51
55
|
export type UpdateServiceAccountApiKeyRequestBody$Outbound = {
|
|
@@ -54,6 +58,7 @@ export type UpdateServiceAccountApiKeyRequestBody$Outbound = {
|
|
|
54
58
|
rateLimitEnabled?: boolean | undefined;
|
|
55
59
|
rateLimitTimeWindow?: number | undefined;
|
|
56
60
|
rateLimitMax?: number | undefined;
|
|
61
|
+
expiresAt?: string | null | undefined;
|
|
57
62
|
};
|
|
58
63
|
|
|
59
64
|
/** @internal */
|
|
@@ -67,6 +72,7 @@ export const UpdateServiceAccountApiKeyRequestBody$outboundSchema: z.ZodType<
|
|
|
67
72
|
rateLimitEnabled: z.boolean().optional(),
|
|
68
73
|
rateLimitTimeWindow: z.number().optional(),
|
|
69
74
|
rateLimitMax: z.number().optional(),
|
|
75
|
+
expiresAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
70
76
|
});
|
|
71
77
|
|
|
72
78
|
export function updateServiceAccountApiKeyRequestBodyToJSON(
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
MutationKey,
|
|
7
|
+
useMutation,
|
|
8
|
+
UseMutationResult,
|
|
9
|
+
} from "@tanstack/react-query";
|
|
10
|
+
import { SDKCore } from "../core.js";
|
|
11
|
+
import { authApiKeysDelete } from "../funcs/authApiKeysDelete.js";
|
|
12
|
+
import { combineSignals } from "../lib/primitives.js";
|
|
13
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
22
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
23
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
27
|
+
import { useSDKContext } from "./_context.js";
|
|
28
|
+
import { MutationHookOptions } from "./_types.js";
|
|
29
|
+
|
|
30
|
+
export type AuthApiKeysDeleteMutationVariables = {
|
|
31
|
+
request: operations.DeleteScopedApiKeyRequest;
|
|
32
|
+
options?: RequestOptions;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export type AuthApiKeysDeleteMutationData =
|
|
36
|
+
operations.DeleteScopedApiKeyResponseBody;
|
|
37
|
+
|
|
38
|
+
export type AuthApiKeysDeleteMutationError =
|
|
39
|
+
| errors.DeleteScopedApiKeyResponseBody
|
|
40
|
+
| errors.DeleteScopedApiKeyAuthApiKeysResponseBody
|
|
41
|
+
| errors.DeleteScopedApiKeyAuthApiKeysResponseResponseBody
|
|
42
|
+
| errors.DeleteScopedApiKeyAuthApiKeysResponse404ResponseBody
|
|
43
|
+
| errors.DeleteScopedApiKeyAuthApiKeysResponse409ResponseBody
|
|
44
|
+
| errors.DeleteScopedApiKeyAuthApiKeysResponse410ResponseBody
|
|
45
|
+
| errors.DeleteScopedApiKeyAuthApiKeysResponse429ResponseBody
|
|
46
|
+
| SDKError
|
|
47
|
+
| ResponseValidationError
|
|
48
|
+
| ConnectionError
|
|
49
|
+
| RequestAbortedError
|
|
50
|
+
| RequestTimeoutError
|
|
51
|
+
| InvalidRequestError
|
|
52
|
+
| UnexpectedClientError
|
|
53
|
+
| SDKValidationError;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Delete a scoped API key
|
|
57
|
+
*
|
|
58
|
+
* @remarks
|
|
59
|
+
* Delete one of the caller's own keys. A key caller needs `write:apikeys` and may delete only keys in its own organization whose scopes it holds, including itself. Takes effect immediately.
|
|
60
|
+
*/
|
|
61
|
+
export function useAuthApiKeysDeleteMutation(
|
|
62
|
+
options?: MutationHookOptions<
|
|
63
|
+
AuthApiKeysDeleteMutationData,
|
|
64
|
+
AuthApiKeysDeleteMutationError,
|
|
65
|
+
AuthApiKeysDeleteMutationVariables
|
|
66
|
+
>,
|
|
67
|
+
): UseMutationResult<
|
|
68
|
+
AuthApiKeysDeleteMutationData,
|
|
69
|
+
AuthApiKeysDeleteMutationError,
|
|
70
|
+
AuthApiKeysDeleteMutationVariables
|
|
71
|
+
> {
|
|
72
|
+
const client = useSDKContext();
|
|
73
|
+
return useMutation({
|
|
74
|
+
...buildAuthApiKeysDeleteMutation(client, options),
|
|
75
|
+
...options,
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function mutationKeyAuthApiKeysDelete(): MutationKey {
|
|
80
|
+
return ["@meetkai/mka1", "apiKeys", "delete"];
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function buildAuthApiKeysDeleteMutation(
|
|
84
|
+
client$: SDKCore,
|
|
85
|
+
hookOptions?: RequestOptions,
|
|
86
|
+
): {
|
|
87
|
+
mutationKey: MutationKey;
|
|
88
|
+
mutationFn: (
|
|
89
|
+
variables: AuthApiKeysDeleteMutationVariables,
|
|
90
|
+
) => Promise<AuthApiKeysDeleteMutationData>;
|
|
91
|
+
} {
|
|
92
|
+
return {
|
|
93
|
+
mutationKey: mutationKeyAuthApiKeysDelete(),
|
|
94
|
+
mutationFn: function authApiKeysDeleteMutationFn({
|
|
95
|
+
request,
|
|
96
|
+
options,
|
|
97
|
+
}): Promise<AuthApiKeysDeleteMutationData> {
|
|
98
|
+
const mergedOptions = {
|
|
99
|
+
...hookOptions,
|
|
100
|
+
...options,
|
|
101
|
+
fetchOptions: {
|
|
102
|
+
...hookOptions?.fetchOptions,
|
|
103
|
+
...options?.fetchOptions,
|
|
104
|
+
signal: combineSignals(
|
|
105
|
+
hookOptions?.fetchOptions?.signal,
|
|
106
|
+
options?.fetchOptions?.signal,
|
|
107
|
+
),
|
|
108
|
+
},
|
|
109
|
+
};
|
|
110
|
+
return unwrapAsync(authApiKeysDelete(
|
|
111
|
+
client$,
|
|
112
|
+
request,
|
|
113
|
+
mergedOptions,
|
|
114
|
+
));
|
|
115
|
+
},
|
|
116
|
+
};
|
|
117
|
+
}
|
package/src/react-query/index.ts
CHANGED
|
@@ -53,6 +53,7 @@ export * from "./analyticsQuery.js";
|
|
|
53
53
|
export * from "./analyticsVisitorsSearch.js";
|
|
54
54
|
export * from "./authApiKeyGetJwtFromKey.js";
|
|
55
55
|
export * from "./authApiKeysCreate.js";
|
|
56
|
+
export * from "./authApiKeysDelete.js";
|
|
56
57
|
export * from "./authApiKeysExchangeToken.js";
|
|
57
58
|
export * from "./authApiKeysList.js";
|
|
58
59
|
export * from "./authApiKeysRegenerate.js";
|