@meetkai/mka1 0.55.1 → 0.55.2

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.
Files changed (155) hide show
  1. package/README.md +360 -360
  2. package/bin/mcp-server.js +1522 -1275
  3. package/bin/mcp-server.js.map +17 -14
  4. package/dist/commonjs/funcs/llmModelsGetQuota.d.ts +19 -0
  5. package/dist/commonjs/funcs/llmModelsGetQuota.d.ts.map +1 -0
  6. package/dist/commonjs/funcs/llmModelsGetQuota.js +138 -0
  7. package/dist/commonjs/funcs/llmModelsGetQuota.js.map +1 -0
  8. package/dist/commonjs/lib/config.d.ts +2 -2
  9. package/dist/commonjs/lib/config.js +2 -2
  10. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  11. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  12. package/dist/commonjs/mcp-server/server.js +3 -1
  13. package/dist/commonjs/mcp-server/server.js.map +1 -1
  14. package/dist/commonjs/mcp-server/tools/llmModelsGetQuota.d.ts +8 -0
  15. package/dist/commonjs/mcp-server/tools/llmModelsGetQuota.d.ts.map +1 -0
  16. package/dist/commonjs/mcp-server/tools/llmModelsGetQuota.js +64 -0
  17. package/dist/commonjs/mcp-server/tools/llmModelsGetQuota.js.map +1 -0
  18. package/dist/commonjs/models/components/responsescreaterequest.d.ts +5 -0
  19. package/dist/commonjs/models/components/responsescreaterequest.d.ts.map +1 -1
  20. package/dist/commonjs/models/components/responsescreaterequest.js +4 -0
  21. package/dist/commonjs/models/components/responsescreaterequest.js.map +1 -1
  22. package/dist/commonjs/models/operations/acceptclusterinvite.d.ts +6 -0
  23. package/dist/commonjs/models/operations/acceptclusterinvite.d.ts.map +1 -1
  24. package/dist/commonjs/models/operations/acceptclusterinvite.js +6 -0
  25. package/dist/commonjs/models/operations/acceptclusterinvite.js.map +1 -1
  26. package/dist/commonjs/models/operations/createscopedapikey.d.ts +6 -0
  27. package/dist/commonjs/models/operations/createscopedapikey.d.ts.map +1 -1
  28. package/dist/commonjs/models/operations/createscopedapikey.js +6 -0
  29. package/dist/commonjs/models/operations/createscopedapikey.js.map +1 -1
  30. package/dist/commonjs/models/operations/getmodelquota.d.ts +83 -0
  31. package/dist/commonjs/models/operations/getmodelquota.d.ts.map +1 -0
  32. package/dist/commonjs/models/operations/getmodelquota.js +153 -0
  33. package/dist/commonjs/models/operations/getmodelquota.js.map +1 -0
  34. package/dist/commonjs/models/operations/index.d.ts +1 -0
  35. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  36. package/dist/commonjs/models/operations/index.js +1 -0
  37. package/dist/commonjs/models/operations/index.js.map +1 -1
  38. package/dist/commonjs/models/operations/listscopedapikeys.d.ts +6 -0
  39. package/dist/commonjs/models/operations/listscopedapikeys.d.ts.map +1 -1
  40. package/dist/commonjs/models/operations/listscopedapikeys.js +6 -0
  41. package/dist/commonjs/models/operations/listscopedapikeys.js.map +1 -1
  42. package/dist/commonjs/models/operations/listserviceaccountapikeys.d.ts +6 -0
  43. package/dist/commonjs/models/operations/listserviceaccountapikeys.d.ts.map +1 -1
  44. package/dist/commonjs/models/operations/listserviceaccountapikeys.js +6 -0
  45. package/dist/commonjs/models/operations/listserviceaccountapikeys.js.map +1 -1
  46. package/dist/commonjs/models/operations/reissueownerkey.d.ts +6 -0
  47. package/dist/commonjs/models/operations/reissueownerkey.d.ts.map +1 -1
  48. package/dist/commonjs/models/operations/reissueownerkey.js +6 -0
  49. package/dist/commonjs/models/operations/reissueownerkey.js.map +1 -1
  50. package/dist/commonjs/models/operations/updatescopedapikey.d.ts +6 -0
  51. package/dist/commonjs/models/operations/updatescopedapikey.d.ts.map +1 -1
  52. package/dist/commonjs/models/operations/updatescopedapikey.js +6 -0
  53. package/dist/commonjs/models/operations/updatescopedapikey.js.map +1 -1
  54. package/dist/commonjs/react-query/index.d.ts +1 -0
  55. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  56. package/dist/commonjs/react-query/index.js +1 -0
  57. package/dist/commonjs/react-query/index.js.map +1 -1
  58. package/dist/commonjs/react-query/llmModelsGetQuota.core.d.ts +16 -0
  59. package/dist/commonjs/react-query/llmModelsGetQuota.core.d.ts.map +1 -0
  60. package/dist/commonjs/react-query/llmModelsGetQuota.core.js +38 -0
  61. package/dist/commonjs/react-query/llmModelsGetQuota.core.js.map +1 -0
  62. package/dist/commonjs/react-query/llmModelsGetQuota.d.ts +42 -0
  63. package/dist/commonjs/react-query/llmModelsGetQuota.d.ts.map +1 -0
  64. package/dist/commonjs/react-query/llmModelsGetQuota.js +60 -0
  65. package/dist/commonjs/react-query/llmModelsGetQuota.js.map +1 -0
  66. package/dist/commonjs/sdk/models.d.ts +7 -0
  67. package/dist/commonjs/sdk/models.d.ts.map +1 -1
  68. package/dist/commonjs/sdk/models.js +10 -0
  69. package/dist/commonjs/sdk/models.js.map +1 -1
  70. package/dist/esm/funcs/llmModelsGetQuota.d.ts +19 -0
  71. package/dist/esm/funcs/llmModelsGetQuota.d.ts.map +1 -0
  72. package/dist/esm/funcs/llmModelsGetQuota.js +102 -0
  73. package/dist/esm/funcs/llmModelsGetQuota.js.map +1 -0
  74. package/dist/esm/lib/config.d.ts +2 -2
  75. package/dist/esm/lib/config.js +2 -2
  76. package/dist/esm/mcp-server/mcp-server.js +1 -1
  77. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  78. package/dist/esm/mcp-server/server.js +3 -1
  79. package/dist/esm/mcp-server/server.js.map +1 -1
  80. package/dist/esm/mcp-server/tools/llmModelsGetQuota.d.ts +8 -0
  81. package/dist/esm/mcp-server/tools/llmModelsGetQuota.d.ts.map +1 -0
  82. package/dist/esm/mcp-server/tools/llmModelsGetQuota.js +28 -0
  83. package/dist/esm/mcp-server/tools/llmModelsGetQuota.js.map +1 -0
  84. package/dist/esm/models/components/responsescreaterequest.d.ts +5 -0
  85. package/dist/esm/models/components/responsescreaterequest.d.ts.map +1 -1
  86. package/dist/esm/models/components/responsescreaterequest.js +4 -0
  87. package/dist/esm/models/components/responsescreaterequest.js.map +1 -1
  88. package/dist/esm/models/operations/acceptclusterinvite.d.ts +6 -0
  89. package/dist/esm/models/operations/acceptclusterinvite.d.ts.map +1 -1
  90. package/dist/esm/models/operations/acceptclusterinvite.js +6 -0
  91. package/dist/esm/models/operations/acceptclusterinvite.js.map +1 -1
  92. package/dist/esm/models/operations/createscopedapikey.d.ts +6 -0
  93. package/dist/esm/models/operations/createscopedapikey.d.ts.map +1 -1
  94. package/dist/esm/models/operations/createscopedapikey.js +6 -0
  95. package/dist/esm/models/operations/createscopedapikey.js.map +1 -1
  96. package/dist/esm/models/operations/getmodelquota.d.ts +83 -0
  97. package/dist/esm/models/operations/getmodelquota.d.ts.map +1 -0
  98. package/dist/esm/models/operations/getmodelquota.js +111 -0
  99. package/dist/esm/models/operations/getmodelquota.js.map +1 -0
  100. package/dist/esm/models/operations/index.d.ts +1 -0
  101. package/dist/esm/models/operations/index.d.ts.map +1 -1
  102. package/dist/esm/models/operations/index.js +1 -0
  103. package/dist/esm/models/operations/index.js.map +1 -1
  104. package/dist/esm/models/operations/listscopedapikeys.d.ts +6 -0
  105. package/dist/esm/models/operations/listscopedapikeys.d.ts.map +1 -1
  106. package/dist/esm/models/operations/listscopedapikeys.js +6 -0
  107. package/dist/esm/models/operations/listscopedapikeys.js.map +1 -1
  108. package/dist/esm/models/operations/listserviceaccountapikeys.d.ts +6 -0
  109. package/dist/esm/models/operations/listserviceaccountapikeys.d.ts.map +1 -1
  110. package/dist/esm/models/operations/listserviceaccountapikeys.js +6 -0
  111. package/dist/esm/models/operations/listserviceaccountapikeys.js.map +1 -1
  112. package/dist/esm/models/operations/reissueownerkey.d.ts +6 -0
  113. package/dist/esm/models/operations/reissueownerkey.d.ts.map +1 -1
  114. package/dist/esm/models/operations/reissueownerkey.js +6 -0
  115. package/dist/esm/models/operations/reissueownerkey.js.map +1 -1
  116. package/dist/esm/models/operations/updatescopedapikey.d.ts +6 -0
  117. package/dist/esm/models/operations/updatescopedapikey.d.ts.map +1 -1
  118. package/dist/esm/models/operations/updatescopedapikey.js +6 -0
  119. package/dist/esm/models/operations/updatescopedapikey.js.map +1 -1
  120. package/dist/esm/react-query/index.d.ts +1 -0
  121. package/dist/esm/react-query/index.d.ts.map +1 -1
  122. package/dist/esm/react-query/index.js +1 -0
  123. package/dist/esm/react-query/index.js.map +1 -1
  124. package/dist/esm/react-query/llmModelsGetQuota.core.d.ts +16 -0
  125. package/dist/esm/react-query/llmModelsGetQuota.core.d.ts.map +1 -0
  126. package/dist/esm/react-query/llmModelsGetQuota.core.js +33 -0
  127. package/dist/esm/react-query/llmModelsGetQuota.core.js.map +1 -0
  128. package/dist/esm/react-query/llmModelsGetQuota.d.ts +42 -0
  129. package/dist/esm/react-query/llmModelsGetQuota.d.ts.map +1 -0
  130. package/dist/esm/react-query/llmModelsGetQuota.js +50 -0
  131. package/dist/esm/react-query/llmModelsGetQuota.js.map +1 -0
  132. package/dist/esm/sdk/models.d.ts +7 -0
  133. package/dist/esm/sdk/models.d.ts.map +1 -1
  134. package/dist/esm/sdk/models.js +10 -0
  135. package/dist/esm/sdk/models.js.map +1 -1
  136. package/jsr.json +1 -1
  137. package/package.json +1 -1
  138. package/src/funcs/llmModelsGetQuota.ts +190 -0
  139. package/src/lib/config.ts +2 -2
  140. package/src/mcp-server/mcp-server.ts +1 -1
  141. package/src/mcp-server/server.ts +3 -1
  142. package/src/mcp-server/tools/llmModelsGetQuota.ts +37 -0
  143. package/src/models/components/responsescreaterequest.ts +9 -0
  144. package/src/models/operations/acceptclusterinvite.ts +12 -0
  145. package/src/models/operations/createscopedapikey.ts +12 -0
  146. package/src/models/operations/getmodelquota.ts +229 -0
  147. package/src/models/operations/index.ts +1 -0
  148. package/src/models/operations/listscopedapikeys.ts +12 -0
  149. package/src/models/operations/listserviceaccountapikeys.ts +12 -0
  150. package/src/models/operations/reissueownerkey.ts +12 -0
  151. package/src/models/operations/updatescopedapikey.ts +12 -0
  152. package/src/react-query/index.ts +1 -0
  153. package/src/react-query/llmModelsGetQuota.core.ts +81 -0
  154. package/src/react-query/llmModelsGetQuota.ts +149 -0
  155. package/src/sdk/models.ts +18 -0
@@ -0,0 +1,42 @@
1
+ import { InvalidateQueryFilters, QueryClient, UseQueryResult, UseSuspenseQueryResult } from "@tanstack/react-query";
2
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
3
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
4
+ import { SDKError } from "../models/errors/sdkerror.js";
5
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
6
+ import * as operations from "../models/operations/index.js";
7
+ import { QueryHookOptions, SuspenseQueryHookOptions, TupleToPrefixes } from "./_types.js";
8
+ import { buildLlmModelsGetQuotaQuery, LlmModelsGetQuotaQueryData, prefetchLlmModelsGetQuota, queryKeyLlmModelsGetQuota } from "./llmModelsGetQuota.core.js";
9
+ export { buildLlmModelsGetQuotaQuery, type LlmModelsGetQuotaQueryData, prefetchLlmModelsGetQuota, queryKeyLlmModelsGetQuota, };
10
+ export type LlmModelsGetQuotaQueryError = SDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError;
11
+ /**
12
+ * Read a model's token quota
13
+ *
14
+ * @remarks
15
+ * Read current tokens-per-minute limits without consuming tokens or starting a window. Use a concrete active model, not auto. Omit selectors for the authenticated caller's context, including its delegated external user. Human sessions may select an authorized api_key_id, plus service_account_id for a service-account key; selected keys use their ordinary, non-delegated context. Scopes with missing subject identities are omitted to avoid exposing shared fallback usage; their enforcement is unchanged. An empty limits array means no reportable token rules for this context. Untouched windows have reset_at: null; unavailable counters return 503.
16
+ */
17
+ export declare function useLlmModelsGetQuota(request: operations.GetModelQuotaRequest, options?: QueryHookOptions<LlmModelsGetQuotaQueryData, LlmModelsGetQuotaQueryError>): UseQueryResult<LlmModelsGetQuotaQueryData, LlmModelsGetQuotaQueryError>;
18
+ /**
19
+ * Read a model's token quota
20
+ *
21
+ * @remarks
22
+ * Read current tokens-per-minute limits without consuming tokens or starting a window. Use a concrete active model, not auto. Omit selectors for the authenticated caller's context, including its delegated external user. Human sessions may select an authorized api_key_id, plus service_account_id for a service-account key; selected keys use their ordinary, non-delegated context. Scopes with missing subject identities are omitted to avoid exposing shared fallback usage; their enforcement is unchanged. An empty limits array means no reportable token rules for this context. Untouched windows have reset_at: null; unavailable counters return 503.
23
+ */
24
+ export declare function useLlmModelsGetQuotaSuspense(request: operations.GetModelQuotaRequest, options?: SuspenseQueryHookOptions<LlmModelsGetQuotaQueryData, LlmModelsGetQuotaQueryError>): UseSuspenseQueryResult<LlmModelsGetQuotaQueryData, LlmModelsGetQuotaQueryError>;
25
+ export declare function setLlmModelsGetQuotaData(client: QueryClient, queryKeyBase: [
26
+ modelId: string,
27
+ parameters: {
28
+ apiKeyId?: string | undefined;
29
+ serviceAccountId?: string | undefined;
30
+ xOnBehalfOf?: string | undefined;
31
+ }
32
+ ], data: LlmModelsGetQuotaQueryData): LlmModelsGetQuotaQueryData | undefined;
33
+ export declare function invalidateLlmModelsGetQuota(client: QueryClient, queryKeyBase: TupleToPrefixes<[
34
+ modelId: string,
35
+ parameters: {
36
+ apiKeyId?: string | undefined;
37
+ serviceAccountId?: string | undefined;
38
+ xOnBehalfOf?: string | undefined;
39
+ }
40
+ ]>, filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">): Promise<void>;
41
+ export declare function invalidateAllLlmModelsGetQuota(client: QueryClient, filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">): Promise<void>;
42
+ //# sourceMappingURL=llmModelsGetQuota.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"llmModelsGetQuota.d.ts","sourceRoot":"","sources":["../../../src/react-query/llmModelsGetQuota.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,sBAAsB,EACtB,WAAW,EAEX,cAAc,EAEd,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;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,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC9B,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QACtC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;KAClC;CACF,EACD,IAAI,EAAE,0BAA0B,GAC/B,0BAA0B,GAAG,SAAS,CAIxC;AAED,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,WAAW,EACnB,YAAY,EAAE,eAAe,CAC3B;IACE,OAAO,EAAE,MAAM;IACf,UAAU,EAAE;QACV,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC9B,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QACtC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;KAClC;CACF,CACF,EACD,OAAO,CAAC,EAAE,IAAI,CAAC,sBAAsB,EAAE,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC,GACzE,OAAO,CAAC,IAAI,CAAC,CAKf;AAED,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,WAAW,EACnB,OAAO,CAAC,EAAE,IAAI,CAAC,sBAAsB,EAAE,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC,GACzE,OAAO,CAAC,IAAI,CAAC,CAKf"}
@@ -0,0 +1,50 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import { useQuery, useSuspenseQuery, } from "@tanstack/react-query";
5
+ import { useSDKContext } from "./_context.js";
6
+ import { buildLlmModelsGetQuotaQuery, prefetchLlmModelsGetQuota, queryKeyLlmModelsGetQuota, } from "./llmModelsGetQuota.core.js";
7
+ export { buildLlmModelsGetQuotaQuery, prefetchLlmModelsGetQuota, queryKeyLlmModelsGetQuota, };
8
+ /**
9
+ * Read a model's token quota
10
+ *
11
+ * @remarks
12
+ * Read current tokens-per-minute limits without consuming tokens or starting a window. Use a concrete active model, not auto. Omit selectors for the authenticated caller's context, including its delegated external user. Human sessions may select an authorized api_key_id, plus service_account_id for a service-account key; selected keys use their ordinary, non-delegated context. Scopes with missing subject identities are omitted to avoid exposing shared fallback usage; their enforcement is unchanged. An empty limits array means no reportable token rules for this context. Untouched windows have reset_at: null; unavailable counters return 503.
13
+ */
14
+ export function useLlmModelsGetQuota(request, options) {
15
+ const client = useSDKContext();
16
+ return useQuery({
17
+ ...buildLlmModelsGetQuotaQuery(client, request, options),
18
+ ...options,
19
+ });
20
+ }
21
+ /**
22
+ * Read a model's token quota
23
+ *
24
+ * @remarks
25
+ * Read current tokens-per-minute limits without consuming tokens or starting a window. Use a concrete active model, not auto. Omit selectors for the authenticated caller's context, including its delegated external user. Human sessions may select an authorized api_key_id, plus service_account_id for a service-account key; selected keys use their ordinary, non-delegated context. Scopes with missing subject identities are omitted to avoid exposing shared fallback usage; their enforcement is unchanged. An empty limits array means no reportable token rules for this context. Untouched windows have reset_at: null; unavailable counters return 503.
26
+ */
27
+ export function useLlmModelsGetQuotaSuspense(request, options) {
28
+ const client = useSDKContext();
29
+ return useSuspenseQuery({
30
+ ...buildLlmModelsGetQuotaQuery(client, request, options),
31
+ ...options,
32
+ });
33
+ }
34
+ export function setLlmModelsGetQuotaData(client, queryKeyBase, data) {
35
+ const key = queryKeyLlmModelsGetQuota(...queryKeyBase);
36
+ return client.setQueryData(key, data);
37
+ }
38
+ export function invalidateLlmModelsGetQuota(client, queryKeyBase, filters) {
39
+ return client.invalidateQueries({
40
+ ...filters,
41
+ queryKey: ["@meetkai/mka1", "models", "getQuota", ...queryKeyBase],
42
+ });
43
+ }
44
+ export function invalidateAllLlmModelsGetQuota(client, filters) {
45
+ return client.invalidateQueries({
46
+ ...filters,
47
+ queryKey: ["@meetkai/mka1", "models", "getQuota"],
48
+ });
49
+ }
50
+ //# sourceMappingURL=llmModelsGetQuota.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"llmModelsGetQuota.js","sourceRoot":"","sources":["../../../src/react-query/llmModelsGetQuota.ts"],"names":[],"mapp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,MAAmB,EACnB,OAA0E;IAE1E,OAAO,MAAM,CAAC,iBAAiB,CAAC;QAC9B,GAAG,OAAO;QACV,QAAQ,EAAE,CAAC,eAAe,EAAE,QAAQ,EAAE,UAAU,CAAC;KAClD,CAAC,CAAC;AACL,CAAC"}
@@ -16,6 +16,13 @@ export declare class Models extends ClientSDK {
16
16
  * Retrieves a model instance, providing basic information about the model such as the owner and supported capabilities.
17
17
  */
18
18
  get(request: operations.GetModelRequest, options?: RequestOptions): Promise<operations.GetModelResponseBody>;
19
+ /**
20
+ * Read a model's token quota
21
+ *
22
+ * @remarks
23
+ * Read current tokens-per-minute limits without consuming tokens or starting a window. Use a concrete active model, not auto. Omit selectors for the authenticated caller's context, including its delegated external user. Human sessions may select an authorized api_key_id, plus service_account_id for a service-account key; selected keys use their ordinary, non-delegated context. Scopes with missing subject identities are omitted to avoid exposing shared fallback usage; their enforcement is unchanged. An empty limits array means no reportable token rules for this context. Untouched windows have reset_at: null; unavailable counters return 503.
24
+ */
25
+ getQuota(request: operations.GetModelQuotaRequest, options?: RequestOptions): Promise<operations.GetModelQuotaResponseBody>;
19
26
  /**
20
27
  * List the organization's model catalog
21
28
  *
@@ -1 +1 @@
1
- {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/sdk/models.ts"],"names":[],"mappings":"AA8BA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,MAAO,SAAQ,SAAS;IACnC;;;;;OAKG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAQ7C;;;;;OAKG;IACG,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,eAAe,EACnC,OAAO,CAAC,EAAE,c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leteCatalogEntry } from "../funcs/llmModelsDeleteCatalogEntr
12
12
  import { llmModelsDeleteOrgAutoModel } from "../funcs/llmModelsDeleteOrgAutoModel.js";
13
13
  import { llmModelsGet } from "../funcs/llmModelsGet.js";
14
14
  import { llmModelsGetClusterCurrency } from "../funcs/llmModelsGetClusterCurrency.js";
15
+ import { llmModelsGetQuota } from "../funcs/llmModelsGetQuota.js";
15
16
  import { llmModelsList } from "../funcs/llmModelsList.js";
16
17
  import { llmModelsListCatalog } from "../funcs/llmModelsListCatalog.js";
17
18
  import { llmModelsListCatalogModelAccess } from "../funcs/llmModelsListCatalogModelAccess.js";
@@ -48,6 +49,15 @@ export class Models extends ClientSDK {
48
49
  async get(request, options) {
49
50
  return unwrapAsync(llmModelsGet(this, request, options));
50
51
  }
52
+ /**
53
+ * Read a model's token quota
54
+ *
55
+ * @remarks
56
+ * Read current tokens-per-minute limits without consuming tokens or starting a window. Use a concrete active model, not auto. Omit selectors for the authenticated caller's context, including its delegated external user. Human sessions may select an authorized api_key_id, plus service_account_id for a service-account key; selected keys use their ordinary, non-delegated context. Scopes with missing subject identities are omitted to avoid exposing shared fallback usage; their enforcement is unchanged. An empty limits array means no reportable token rules for this context. Untouched windows have reset_at: null; unavailable counters return 503.
57
+ */
58
+ async getQuota(request, options) {
59
+ return unwrapAsync(llmModelsGetQuota(this, request, options));
60
+ }
51
61
  /**
52
62
  * List the organization's model catalog
53
63
  *
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/sdk/models.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AAC5F,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AACxF,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCA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,OAAO,WAAW,CAAC,sBAAsB,CACvC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,mBAAmB,CACvB,OAA8C,EAC9C,OAAwB;QAExB,OAAO,WAAW,CAAC,4BAA4B,CAC7C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@meetkai/mka1",
5
- "version": "0.55.1",
5
+ "version": "0.55.2",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetkai/mka1",
3
- "version": "0.55.1",
3
+ "version": "0.55.2",
4
4
  "author": "MeetKai",
5
5
  "homepage": "https://docs.mka1.com",
6
6
  "publishConfig": {
@@ -0,0 +1,190 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { SDKCore } from "../core.js";
6
+ import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { RequestOptions } from "../lib/sdks.js";
12
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../models/errors/httpclienterrors.js";
21
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
22
+ import { SDKError } from "../models/errors/sdkerror.js";
23
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
24
+ import * as operations from "../models/operations/index.js";
25
+ import { APICall, APIPromise } from "../types/async.js";
26
+ import { Result } from "../types/fp.js";
27
+
28
+ /**
29
+ * Read a model's token quota
30
+ *
31
+ * @remarks
32
+ * Read current tokens-per-minute limits without consuming tokens or starting a window. Use a concrete active model, not auto. Omit selectors for the authenticated caller's context, including its delegated external user. Human sessions may select an authorized api_key_id, plus service_account_id for a service-account key; selected keys use their ordinary, non-delegated context. Scopes with missing subject identities are omitted to avoid exposing shared fallback usage; their enforcement is unchanged. An empty limits array means no reportable token rules for this context. Untouched windows have reset_at: null; unavailable counters return 503.
33
+ *
34
+ * If set, this operation will use {@link Security.bearerAuth} from the global security.
35
+ */
36
+ export function llmModelsGetQuota(
37
+ client: SDKCore,
38
+ request: operations.GetModelQuotaRequest,
39
+ options?: RequestOptions,
40
+ ): APIPromise<
41
+ Result<
42
+ operations.GetModelQuotaResponseBody,
43
+ | SDKError
44
+ | ResponseValidationError
45
+ | ConnectionError
46
+ | RequestAbortedError
47
+ | RequestTimeoutError
48
+ | InvalidRequestError
49
+ | UnexpectedClientError
50
+ | SDKValidationError
51
+ >
52
+ > {
53
+ return new APIPromise($do(
54
+ client,
55
+ request,
56
+ options,
57
+ ));
58
+ }
59
+
60
+ async function $do(
61
+ client: SDKCore,
62
+ request: operations.GetModelQuotaRequest,
63
+ options?: RequestOptions,
64
+ ): Promise<
65
+ [
66
+ Result<
67
+ operations.GetModelQuotaResponseBody,
68
+ | SDKError
69
+ | ResponseValidationError
70
+ | ConnectionError
71
+ | RequestAbortedError
72
+ | RequestTimeoutError
73
+ | InvalidRequestError
74
+ | UnexpectedClientError
75
+ | SDKValidationError
76
+ >,
77
+ APICall,
78
+ ]
79
+ > {
80
+ const parsed = safeParse(
81
+ request,
82
+ (value) => operations.GetModelQuotaRequest$outboundSchema.parse(value),
83
+ "Input validation failed",
84
+ );
85
+ if (!parsed.ok) {
86
+ return [parsed, { status: "invalid" }];
87
+ }
88
+ const payload = parsed.value;
89
+ const body = null;
90
+
91
+ const pathParams = {
92
+ model_id: encodeSimple("model_id", payload.model_id, {
93
+ explode: false,
94
+ charEncoding: "percent",
95
+ }),
96
+ };
97
+ const path = pathToFunc("/api/v1/llm/models/{model_id}/quota")(pathParams);
98
+
99
+ const query = encodeFormQuery({
100
+ "api_key_id": payload.api_key_id,
101
+ "service_account_id": payload.service_account_id,
102
+ });
103
+
104
+ const headers = new Headers(compactMap({
105
+ Accept: "application/json",
106
+ "X-On-Behalf-Of": encodeSimple(
107
+ "X-On-Behalf-Of",
108
+ payload["X-On-Behalf-Of"],
109
+ { explode: false, charEncoding: "none" },
110
+ ),
111
+ }));
112
+
113
+ const secConfig = await extractSecurity(client._options.bearerAuth);
114
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
115
+ const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
116
+
117
+ const context = {
118
+ options: client._options,
119
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
120
+ operationID: "getModelQuota",
121
+ oAuth2Scopes: null,
122
+
123
+ resolvedSecurity: requestSecurity,
124
+
125
+ securitySource: client._options.bearerAuth,
126
+ retryConfig: options?.retries
127
+ || client._options.retryConfig
128
+ || {
129
+ strategy: "backoff",
130
+ backoff: {
131
+ initialInterval: 500,
132
+ maxInterval: 5000,
133
+ exponent: 1.5,
134
+ maxElapsedTime: 15000,
135
+ },
136
+ retryConnectionErrors: true,
137
+ }
138
+ || { strategy: "none" },
139
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
140
+ };
141
+
142
+ const requestRes = client._createRequest(context, {
143
+ security: requestSecurity,
144
+ method: "GET",
145
+ baseURL: options?.serverURL,
146
+ path: path,
147
+ headers: headers,
148
+ query: query,
149
+ body: body,
150
+ userAgent: client._options.userAgent,
151
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
152
+ }, options);
153
+ if (!requestRes.ok) {
154
+ return [requestRes, { status: "invalid" }];
155
+ }
156
+ const req = requestRes.value;
157
+
158
+ const doResult = await client._do(req, {
159
+ context,
160
+ isErrorStatusCode: (statusCode: number) =>
161
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
162
+ retryConfig: context.retryConfig,
163
+ retryCodes: context.retryCodes,
164
+ });
165
+ if (!doResult.ok) {
166
+ return [doResult, { status: "request-error", request: req }];
167
+ }
168
+ const response = doResult.value;
169
+
170
+ const [result] = await M.match<
171
+ operations.GetModelQuotaResponseBody,
172
+ | SDKError
173
+ | ResponseValidationError
174
+ | ConnectionError
175
+ | RequestAbortedError
176
+ | RequestTimeoutError
177
+ | InvalidRequestError
178
+ | UnexpectedClientError
179
+ | SDKValidationError
180
+ >(
181
+ M.json(200, operations.GetModelQuotaResponseBody$inboundSchema),
182
+ M.fail("4XX"),
183
+ M.fail("5XX"),
184
+ )(response, req);
185
+ if (!result.ok) {
186
+ return [result, { status: "complete", request: req, response }];
187
+ }
188
+
189
+ return [result, { status: "complete", request: req, response }];
190
+ }
package/src/lib/config.ts CHANGED
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
65
65
  export const SDK_METADATA = {
66
66
  language: "typescript",
67
67
  openapiDocVersion: "1.1.0",
68
- sdkVersion: "0.55.1",
68
+ sdkVersion: "0.55.2",
69
69
  genVersion: "2.950.2",
70
- userAgent: "speakeasy-sdk/typescript 0.55.1 2.950.2 1.1.0 @meetkai/mka1",
70
+ userAgent: "speakeasy-sdk/typescript 0.55.2 2.950.2 1.1.0 @meetkai/mka1",
71
71
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.55.1",
22
+ currentVersion: "0.55.2",
23
23
  },
24
24
  });
25
25
 
@@ -333,6 +333,7 @@ import { tool$llmModelsDeleteCatalogEntry } from "./tools/llmModelsDeleteCatalog
333
333
  import { tool$llmModelsDeleteOrgAutoModel } from "./tools/llmModelsDeleteOrgAutoModel.js";
334
334
  import { tool$llmModelsGet } from "./tools/llmModelsGet.js";
335
335
  import { tool$llmModelsGetClusterCurrency } from "./tools/llmModelsGetClusterCurrency.js";
336
+ import { tool$llmModelsGetQuota } from "./tools/llmModelsGetQuota.js";
336
337
  import { tool$llmModelsList } from "./tools/llmModelsList.js";
337
338
  import { tool$llmModelsListCatalog } from "./tools/llmModelsListCatalog.js";
338
339
  import { tool$llmModelsListCatalogModelAccess } from "./tools/llmModelsListCatalogModelAccess.js";
@@ -500,7 +501,7 @@ export function createMCPServer(deps: {
500
501
  }) {
501
502
  const server = new McpServer({
502
503
  name: "SDK",
503
- version: "0.55.1",
504
+ version: "0.55.2",
504
505
  });
505
506
 
506
507
  const client = new SDKCore({
@@ -798,6 +799,7 @@ export function createMCPServer(deps: {
798
799
  tool(tool$llmMemoryStoresDeleteEntry);
799
800
  tool(tool$llmModelsList);
800
801
  tool(tool$llmModelsGet);
802
+ tool(tool$llmModelsGetQuota);
801
803
  tool(tool$llmModelsListCatalog);
802
804
  tool(tool$llmModelsAddCatalogEntry);
803
805
  tool(tool$llmModelsUpdateCatalogEntry);
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { llmModelsGetQuota } from "../../funcs/llmModelsGetQuota.js";
6
+ import * as operations from "../../models/operations/index.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: operations.GetModelQuotaRequest$inboundSchema,
11
+ };
12
+
13
+ export const tool$llmModelsGetQuota: ToolDefinition<typeof args> = {
14
+ name: "llm-models-get-quota",
15
+ description: `Read a model's token quota
16
+
17
+ Read current tokens-per-minute limits without consuming tokens or starting a window. Use a concrete active model, not auto. Omit selectors for the authenticated caller's context, including its delegated external user. Human sessions may select an authorized api_key_id, plus service_account_id for a service-account key; selected keys use their ordinary, non-delegated context. Scopes with missing subject identities are omitted to avoid exposing shared fallback usage; their enforcement is unchanged. An empty limits array means no reportable token rules for this context. Untouched windows have reset_at: null; unavailable counters return 503.`,
18
+ args,
19
+ tool: async (client, args, ctx) => {
20
+ const [result, apiCall] = await llmModelsGetQuota(
21
+ client,
22
+ args.request,
23
+ { fetchOptions: { signal: ctx.mcpReq.signal } },
24
+ ).$inspect();
25
+
26
+ if (!result.ok) {
27
+ return {
28
+ content: [{ type: "text", text: result.error.message }],
29
+ isError: true,
30
+ };
31
+ }
32
+
33
+ const value = result.value;
34
+
35
+ return formatResult(value, apiCall);
36
+ },
37
+ };
@@ -265,6 +265,10 @@ export type ResponsesCreateRequest = {
265
265
  * The ID of the model to use for generating the response.
266
266
  */
267
267
  model: string;
268
+ /**
269
+ * Ordered list of model IDs to fall back to when a model call fails (provider error or unhealthy provider), tried in order after `model`. Each entry must be a model available to your organization, including your own registered models, and may not be `auto`. When set, this chain replaces any fallback rules configured on the models themselves; an empty list disables fallback for the request. With `model: "auto"`, the chain is tried after the routed model fails. Once the run has switched to a fallback it stays on it for the remaining steps; a step that has already streamed output does not fall back. The served model is reported in `resolved_model`. Maximum length is configured by the gateway (default 5).
270
+ */
271
+ fallbackModels?: Array<string> | undefined;
268
272
  /**
269
273
  * The user input to send to the agent. Can be a simple text string for basic queries, or an array of item objects containing text, images, files, or audio for multimodal interactions. This is the main content the agent will respond to.
270
274
  */
@@ -799,6 +803,7 @@ export const ResponsesCreateRequest$inboundSchema: z.ZodType<
799
803
  unknown
800
804
  > = z.object({
801
805
  model: z.string(),
806
+ fallback_models: z.array(z.string()).optional(),
802
807
  input: z.union([z.string(), z.array(Item$inboundSchema)]).optional(),
803
808
  instructions: z.string().optional(),
804
809
  conversation: z.nullable(z.union([Conversation$inboundSchema, z.string()]))
@@ -865,6 +870,7 @@ export const ResponsesCreateRequest$inboundSchema: z.ZodType<
865
870
  user: z.string().optional(),
866
871
  }).transform((v) => {
867
872
  return remap$(v, {
873
+ "fallback_models": "fallbackModels",
868
874
  "previous_response_id": "previousResponseId",
869
875
  "stream_options": "streamOptions",
870
876
  "stream_events": "streamEvents",
@@ -895,6 +901,7 @@ export const ResponsesCreateRequest$inboundSchema: z.ZodType<
895
901
  /** @internal */
896
902
  export type ResponsesCreateRequest$Outbound = {
897
903
  model: string;
904
+ fallback_models?: Array<string> | undefined;
898
905
  input?: string | Array<Item$Outbound> | undefined;
899
906
  instructions?: string | undefined;
900
907
  conversation?: Conversation$Outbound | string | null | undefined;
@@ -967,6 +974,7 @@ export const ResponsesCreateRequest$outboundSchema: z.ZodType<
967
974
  ResponsesCreateRequest
968
975
  > = z.object({
969
976
  model: z.string(),
977
+ fallbackModels: z.array(z.string()).optional(),
970
978
  input: z.union([z.string(), z.array(Item$outboundSchema)]).optional(),
971
979
  instructions: z.string().optional(),
972
980
  conversation: z.nullable(z.union([Conversation$outboundSchema, z.string()]))
@@ -1033,6 +1041,7 @@ export const ResponsesCreateRequest$outboundSchema: z.ZodType<
1033
1041
  user: z.string().optional(),
1034
1042
  }).transform((v) => {
1035
1043
  return remap$(v, {
1044
+ fallbackModels: "fallback_models",
1036
1045
  previousResponseId: "previous_response_id",
1037
1046
  streamOptions: "stream_options",
1038
1047
  streamEvents: "stream_events",
@@ -60,6 +60,9 @@ export type AcceptClusterInviteApiKey = {
60
60
  orgId: string | null;
61
61
  teamId: string | null;
62
62
  scopes: Array<string>;
63
+ rateLimitEnabled?: boolean | null | undefined;
64
+ rateLimitTimeWindow?: number | null | undefined;
65
+ rateLimitMax?: number | null | undefined;
63
66
  expiresAt?: string | null | undefined;
64
67
  };
65
68
 
@@ -310,6 +313,9 @@ export const AcceptClusterInviteApiKey$inboundSchema: z.ZodType<
310
313
  orgId: z.nullable(z.string()),
311
314
  teamId: z.nullable(z.string()),
312
315
  scopes: z.array(z.string()),
316
+ rateLimitEnabled: z.nullable(z.boolean()).optional(),
317
+ rateLimitTimeWindow: z.nullable(z.number()).optional(),
318
+ rateLimitMax: z.nullable(z.number()).optional(),
313
319
  expiresAt: z.nullable(z.string()).optional(),
314
320
  });
315
321
  /** @internal */
@@ -324,6 +330,9 @@ export type AcceptClusterInviteApiKey$Outbound = {
324
330
  orgId: string | null;
325
331
  teamId: string | null;
326
332
  scopes: Array<string>;
333
+ rateLimitEnabled?: boolean | null | undefined;
334
+ rateLimitTimeWindow?: number | null | undefined;
335
+ rateLimitMax?: number | null | undefined;
327
336
  expiresAt?: string | null | undefined;
328
337
  };
329
338
 
@@ -343,6 +352,9 @@ export const AcceptClusterInviteApiKey$outboundSchema: z.ZodType<
343
352
  orgId: z.nullable(z.string()),
344
353
  teamId: z.nullable(z.string()),
345
354
  scopes: z.array(z.string()),
355
+ rateLimitEnabled: z.nullable(z.boolean()).optional(),
356
+ rateLimitTimeWindow: z.nullable(z.number()).optional(),
357
+ rateLimitMax: z.nullable(z.number()).optional(),
346
358
  expiresAt: z.nullable(z.string()).optional(),
347
359
  });
348
360
 
@@ -53,6 +53,9 @@ export type CreateScopedApiKeyResponseBody = {
53
53
  orgId: string | null;
54
54
  teamId: string | null;
55
55
  scopes: Array<string>;
56
+ rateLimitEnabled?: boolean | null | undefined;
57
+ rateLimitTimeWindow?: number | null | undefined;
58
+ rateLimitMax?: number | null | undefined;
56
59
  expiresAt?: string | null | undefined;
57
60
  };
58
61
 
@@ -233,6 +236,9 @@ export const CreateScopedApiKeyResponseBody$inboundSchema: z.ZodType<
233
236
  orgId: z.nullable(z.string()),
234
237
  teamId: z.nullable(z.string()),
235
238
  scopes: z.array(z.string()),
239
+ rateLimitEnabled: z.nullable(z.boolean()).optional(),
240
+ rateLimitTimeWindow: z.nullable(z.number()).optional(),
241
+ rateLimitMax: z.nullable(z.number()).optional(),
236
242
  expiresAt: z.nullable(z.string()).optional(),
237
243
  });
238
244
  /** @internal */
@@ -247,6 +253,9 @@ export type CreateScopedApiKeyResponseBody$Outbound = {
247
253
  orgId: string | null;
248
254
  teamId: string | null;
249
255
  scopes: Array<string>;
256
+ rateLimitEnabled?: boolean | null | undefined;
257
+ rateLimitTimeWindow?: number | null | undefined;
258
+ rateLimitMax?: number | null | undefined;
250
259
  expiresAt?: string | null | undefined;
251
260
  };
252
261
 
@@ -266,6 +275,9 @@ export const CreateScopedApiKeyResponseBody$outboundSchema: z.ZodType<
266
275
  orgId: z.nullable(z.string()),
267
276
  teamId: z.nullable(z.string()),
268
277
  scopes: z.array(z.string()),
278
+ rateLimitEnabled: z.nullable(z.boolean()).optional(),
279
+ rateLimitTimeWindow: z.nullable(z.number()).optional(),
280
+ rateLimitMax: z.nullable(z.number()).optional(),
269
281
  expiresAt: z.nullable(z.string()).optional(),
270
282
  });
271
283