@meetkai/mka1 0.48.30 → 0.48.31
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 +238 -229
- package/bin/mcp-server.js +2191 -1879
- package/bin/mcp-server.js.map +13 -9
- package/dist/commonjs/funcs/authApiKeyGetJwtFromKey.d.ts +2 -0
- package/dist/commonjs/funcs/authApiKeyGetJwtFromKey.d.ts.map +1 -1
- package/dist/commonjs/funcs/authApiKeyGetJwtFromKey.js +2 -0
- package/dist/commonjs/funcs/authApiKeyGetJwtFromKey.js.map +1 -1
- package/dist/commonjs/funcs/authApiKeysExchangeToken.d.ts +18 -0
- package/dist/commonjs/funcs/authApiKeysExchangeToken.d.ts.map +1 -0
- package/dist/commonjs/funcs/authApiKeysExchangeToken.js +133 -0
- package/dist/commonjs/funcs/authApiKeysExchangeToken.js.map +1 -0
- 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/authApiKeysExchangeToken.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/authApiKeysExchangeToken.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/authApiKeysExchangeToken.js +64 -0
- package/dist/commonjs/mcp-server/tools/authApiKeysExchangeToken.js.map +1 -0
- package/dist/commonjs/models/errors/exchangeapikeytoken.d.ts +159 -0
- package/dist/commonjs/models/errors/exchangeapikeytoken.d.ts.map +1 -0
- package/dist/commonjs/models/errors/exchangeapikeytoken.js +234 -0
- package/dist/commonjs/models/errors/exchangeapikeytoken.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/exchangeapikeytoken.d.ts +72 -0
- package/dist/commonjs/models/operations/exchangeapikeytoken.d.ts.map +1 -0
- package/dist/commonjs/models/operations/exchangeapikeytoken.js +111 -0
- package/dist/commonjs/models/operations/exchangeapikeytoken.js.map +1 -0
- 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/react-query/authApiKeyGetJwtFromKey.d.ts +2 -0
- package/dist/commonjs/react-query/authApiKeyGetJwtFromKey.d.ts.map +1 -1
- package/dist/commonjs/react-query/authApiKeyGetJwtFromKey.js +2 -0
- package/dist/commonjs/react-query/authApiKeyGetJwtFromKey.js.map +1 -1
- package/dist/commonjs/react-query/authApiKeysExchangeToken.d.ts +29 -0
- package/dist/commonjs/react-query/authApiKeysExchangeToken.d.ts.map +1 -0
- package/dist/commonjs/react-query/authApiKeysExchangeToken.js +47 -0
- package/dist/commonjs/react-query/authApiKeysExchangeToken.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/sdk/apikey.d.ts +2 -0
- package/dist/commonjs/sdk/apikey.d.ts.map +1 -1
- package/dist/commonjs/sdk/apikey.js +2 -0
- package/dist/commonjs/sdk/apikey.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/esm/funcs/authApiKeyGetJwtFromKey.d.ts +2 -0
- package/dist/esm/funcs/authApiKeyGetJwtFromKey.d.ts.map +1 -1
- package/dist/esm/funcs/authApiKeyGetJwtFromKey.js +2 -0
- package/dist/esm/funcs/authApiKeyGetJwtFromKey.js.map +1 -1
- package/dist/esm/funcs/authApiKeysExchangeToken.d.ts +18 -0
- package/dist/esm/funcs/authApiKeysExchangeToken.d.ts.map +1 -0
- package/dist/esm/funcs/authApiKeysExchangeToken.js +97 -0
- package/dist/esm/funcs/authApiKeysExchangeToken.js.map +1 -0
- 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/authApiKeysExchangeToken.d.ts +8 -0
- package/dist/esm/mcp-server/tools/authApiKeysExchangeToken.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/authApiKeysExchangeToken.js +28 -0
- package/dist/esm/mcp-server/tools/authApiKeysExchangeToken.js.map +1 -0
- package/dist/esm/models/errors/exchangeapikeytoken.d.ts +159 -0
- package/dist/esm/models/errors/exchangeapikeytoken.d.ts.map +1 -0
- package/dist/esm/models/errors/exchangeapikeytoken.js +192 -0
- package/dist/esm/models/errors/exchangeapikeytoken.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/exchangeapikeytoken.d.ts +72 -0
- package/dist/esm/models/operations/exchangeapikeytoken.d.ts.map +1 -0
- package/dist/esm/models/operations/exchangeapikeytoken.js +69 -0
- package/dist/esm/models/operations/exchangeapikeytoken.js.map +1 -0
- 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/react-query/authApiKeyGetJwtFromKey.d.ts +2 -0
- package/dist/esm/react-query/authApiKeyGetJwtFromKey.d.ts.map +1 -1
- package/dist/esm/react-query/authApiKeyGetJwtFromKey.js +2 -0
- package/dist/esm/react-query/authApiKeyGetJwtFromKey.js.map +1 -1
- package/dist/esm/react-query/authApiKeysExchangeToken.d.ts +29 -0
- package/dist/esm/react-query/authApiKeysExchangeToken.d.ts.map +1 -0
- package/dist/esm/react-query/authApiKeysExchangeToken.js +42 -0
- package/dist/esm/react-query/authApiKeysExchangeToken.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/sdk/apikey.d.ts +2 -0
- package/dist/esm/sdk/apikey.d.ts.map +1 -1
- package/dist/esm/sdk/apikey.js +2 -0
- package/dist/esm/sdk/apikey.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/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/authApiKeyGetJwtFromKey.ts +2 -0
- package/src/funcs/authApiKeysExchangeToken.ts +225 -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/authApiKeysExchangeToken.ts +37 -0
- package/src/models/errors/exchangeapikeytoken.ts +387 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/exchangeapikeytoken.ts +191 -0
- package/src/models/operations/index.ts +1 -0
- package/src/react-query/authApiKeyGetJwtFromKey.ts +2 -0
- package/src/react-query/authApiKeysExchangeToken.ts +116 -0
- package/src/react-query/index.ts +1 -0
- package/src/sdk/apikey.ts +2 -0
- package/src/sdk/apikeys.ts +18 -0
|
@@ -0,0 +1,116 @@
|
|
|
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 { authApiKeysExchangeToken } from "../funcs/authApiKeysExchangeToken.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 AuthApiKeysExchangeTokenMutationVariables = {
|
|
31
|
+
request: operations.ExchangeApiKeyTokenRequest;
|
|
32
|
+
options?: RequestOptions;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export type AuthApiKeysExchangeTokenMutationData =
|
|
36
|
+
operations.ExchangeApiKeyTokenResponseBody;
|
|
37
|
+
|
|
38
|
+
export type AuthApiKeysExchangeTokenMutationError =
|
|
39
|
+
| errors.ExchangeApiKeyTokenResponseBody
|
|
40
|
+
| errors.ExchangeApiKeyTokenAuthApiKeysResponseBody
|
|
41
|
+
| errors.ExchangeApiKeyTokenAuthApiKeysResponseResponseBody
|
|
42
|
+
| errors.ExchangeApiKeyTokenAuthApiKeysResponse404ResponseBody
|
|
43
|
+
| errors.ExchangeApiKeyTokenAuthApiKeysResponse409ResponseBody
|
|
44
|
+
| errors.ExchangeApiKeyTokenAuthApiKeysResponse429ResponseBody
|
|
45
|
+
| SDKError
|
|
46
|
+
| ResponseValidationError
|
|
47
|
+
| ConnectionError
|
|
48
|
+
| RequestAbortedError
|
|
49
|
+
| RequestTimeoutError
|
|
50
|
+
| InvalidRequestError
|
|
51
|
+
| UnexpectedClientError
|
|
52
|
+
| SDKValidationError;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Exchange API key for a JWT token
|
|
56
|
+
*
|
|
57
|
+
* @remarks
|
|
58
|
+
* Exchange an API key for a short-lived JWT token.
|
|
59
|
+
*/
|
|
60
|
+
export function useAuthApiKeysExchangeTokenMutation(
|
|
61
|
+
options?: MutationHookOptions<
|
|
62
|
+
AuthApiKeysExchangeTokenMutationData,
|
|
63
|
+
AuthApiKeysExchangeTokenMutationError,
|
|
64
|
+
AuthApiKeysExchangeTokenMutationVariables
|
|
65
|
+
>,
|
|
66
|
+
): UseMutationResult<
|
|
67
|
+
AuthApiKeysExchangeTokenMutationData,
|
|
68
|
+
AuthApiKeysExchangeTokenMutationError,
|
|
69
|
+
AuthApiKeysExchangeTokenMutationVariables
|
|
70
|
+
> {
|
|
71
|
+
const client = useSDKContext();
|
|
72
|
+
return useMutation({
|
|
73
|
+
...buildAuthApiKeysExchangeTokenMutation(client, options),
|
|
74
|
+
...options,
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function mutationKeyAuthApiKeysExchangeToken(): MutationKey {
|
|
79
|
+
return ["@meetkai/mka1", "apiKeys", "exchangeToken"];
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function buildAuthApiKeysExchangeTokenMutation(
|
|
83
|
+
client$: SDKCore,
|
|
84
|
+
hookOptions?: RequestOptions,
|
|
85
|
+
): {
|
|
86
|
+
mutationKey: MutationKey;
|
|
87
|
+
mutationFn: (
|
|
88
|
+
variables: AuthApiKeysExchangeTokenMutationVariables,
|
|
89
|
+
) => Promise<AuthApiKeysExchangeTokenMutationData>;
|
|
90
|
+
} {
|
|
91
|
+
return {
|
|
92
|
+
mutationKey: mutationKeyAuthApiKeysExchangeToken(),
|
|
93
|
+
mutationFn: function authApiKeysExchangeTokenMutationFn({
|
|
94
|
+
request,
|
|
95
|
+
options,
|
|
96
|
+
}): Promise<AuthApiKeysExchangeTokenMutationData> {
|
|
97
|
+
const mergedOptions = {
|
|
98
|
+
...hookOptions,
|
|
99
|
+
...options,
|
|
100
|
+
fetchOptions: {
|
|
101
|
+
...hookOptions?.fetchOptions,
|
|
102
|
+
...options?.fetchOptions,
|
|
103
|
+
signal: combineSignals(
|
|
104
|
+
hookOptions?.fetchOptions?.signal,
|
|
105
|
+
options?.fetchOptions?.signal,
|
|
106
|
+
),
|
|
107
|
+
},
|
|
108
|
+
};
|
|
109
|
+
return unwrapAsync(authApiKeysExchangeToken(
|
|
110
|
+
client$,
|
|
111
|
+
request,
|
|
112
|
+
mergedOptions,
|
|
113
|
+
));
|
|
114
|
+
},
|
|
115
|
+
};
|
|
116
|
+
}
|
package/src/react-query/index.ts
CHANGED
|
@@ -27,6 +27,7 @@ export * from "./agentVersionsListAgentVersions.js";
|
|
|
27
27
|
export * from "./agentVersionsRollbackAgentVersion.js";
|
|
28
28
|
export * from "./authApiKeyGetJwtFromKey.js";
|
|
29
29
|
export * from "./authApiKeysCreate.js";
|
|
30
|
+
export * from "./authApiKeysExchangeToken.js";
|
|
30
31
|
export * from "./authApiKeysList.js";
|
|
31
32
|
export * from "./authApiKeysRegenerate.js";
|
|
32
33
|
export * from "./authApiKeysUpdate.js";
|
package/src/sdk/apikey.ts
CHANGED
|
@@ -13,6 +13,8 @@ export class ApiKey extends ClientSDK {
|
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
15
|
* Exchange an API key for a JWT token
|
|
16
|
+
*
|
|
17
|
+
* @deprecated method: Use auth.apiKeys.exchangeToken() instead. This method will be removed in a future release.. Use exchangeToken instead.
|
|
16
18
|
*/
|
|
17
19
|
async getJwtFromKey(
|
|
18
20
|
request: operations.GetJwtFromKeyRequest,
|
package/src/sdk/apikeys.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { authApiKeysCreate } from "../funcs/authApiKeysCreate.js";
|
|
6
|
+
import { authApiKeysExchangeToken } from "../funcs/authApiKeysExchangeToken.js";
|
|
6
7
|
import { authApiKeysList } from "../funcs/authApiKeysList.js";
|
|
7
8
|
import { authApiKeysRegenerate } from "../funcs/authApiKeysRegenerate.js";
|
|
8
9
|
import { authApiKeysUpdate } from "../funcs/authApiKeysUpdate.js";
|
|
@@ -78,4 +79,21 @@ export class ApiKeys extends ClientSDK {
|
|
|
78
79
|
options,
|
|
79
80
|
));
|
|
80
81
|
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Exchange API key for a JWT token
|
|
85
|
+
*
|
|
86
|
+
* @remarks
|
|
87
|
+
* Exchange an API key for a short-lived JWT token.
|
|
88
|
+
*/
|
|
89
|
+
async exchangeToken(
|
|
90
|
+
request: operations.ExchangeApiKeyTokenRequest,
|
|
91
|
+
options?: RequestOptions,
|
|
92
|
+
): Promise<operations.ExchangeApiKeyTokenResponseBody> {
|
|
93
|
+
return unwrapAsync(authApiKeysExchangeToken(
|
|
94
|
+
this,
|
|
95
|
+
request,
|
|
96
|
+
options,
|
|
97
|
+
));
|
|
98
|
+
}
|
|
81
99
|
}
|