@meetkai/mka1 0.48.39 → 0.48.40
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/bin/mcp-server.js +30 -10
- package/bin/mcp-server.js.map +20 -20
- package/dist/commonjs/funcs/budgetsApiKeyEvents.d.ts +1 -1
- package/dist/commonjs/funcs/budgetsApiKeyEvents.js +1 -1
- package/dist/commonjs/funcs/budgetsDeleteApiKey.d.ts +1 -1
- package/dist/commonjs/funcs/budgetsDeleteApiKey.js +1 -1
- package/dist/commonjs/funcs/budgetsGetApiKey.d.ts +1 -1
- package/dist/commonjs/funcs/budgetsGetApiKey.js +1 -1
- package/dist/commonjs/funcs/budgetsList.d.ts +1 -1
- package/dist/commonjs/funcs/budgetsList.js +1 -1
- package/dist/commonjs/funcs/budgetsSetApiKey.d.ts +1 -1
- package/dist/commonjs/funcs/budgetsSetApiKey.js +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.js +1 -1
- package/dist/commonjs/mcp-server/tools/budgetsApiKeyEvents.js +1 -1
- package/dist/commonjs/mcp-server/tools/budgetsApiKeyEvents.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/budgetsDeleteApiKey.js +1 -1
- package/dist/commonjs/mcp-server/tools/budgetsDeleteApiKey.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/budgetsGetApiKey.js +1 -1
- package/dist/commonjs/mcp-server/tools/budgetsGetApiKey.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/budgetsList.js +1 -1
- package/dist/commonjs/mcp-server/tools/budgetsList.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/budgetsSetApiKey.js +1 -1
- package/dist/commonjs/mcp-server/tools/budgetsSetApiKey.js.map +1 -1
- package/dist/commonjs/models/operations/getapikeybudgets.d.ts +2 -0
- package/dist/commonjs/models/operations/getapikeybudgets.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getapikeybudgets.js +4 -0
- package/dist/commonjs/models/operations/getapikeybudgets.js.map +1 -1
- package/dist/commonjs/models/operations/getorgbudgets.d.ts +2 -0
- package/dist/commonjs/models/operations/getorgbudgets.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getorgbudgets.js +4 -0
- package/dist/commonjs/models/operations/getorgbudgets.js.map +1 -1
- package/dist/commonjs/models/operations/listbudgets.d.ts +2 -0
- package/dist/commonjs/models/operations/listbudgets.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listbudgets.js +4 -0
- package/dist/commonjs/models/operations/listbudgets.js.map +1 -1
- package/dist/commonjs/models/operations/setapikeybudget.d.ts +2 -0
- package/dist/commonjs/models/operations/setapikeybudget.d.ts.map +1 -1
- package/dist/commonjs/models/operations/setapikeybudget.js +4 -0
- package/dist/commonjs/models/operations/setapikeybudget.js.map +1 -1
- package/dist/commonjs/models/operations/setorgbudget.d.ts +2 -0
- package/dist/commonjs/models/operations/setorgbudget.d.ts.map +1 -1
- package/dist/commonjs/models/operations/setorgbudget.js +4 -0
- package/dist/commonjs/models/operations/setorgbudget.js.map +1 -1
- package/dist/commonjs/react-query/budgetsApiKeyEvents.d.ts +2 -2
- package/dist/commonjs/react-query/budgetsApiKeyEvents.js +2 -2
- package/dist/commonjs/react-query/budgetsDeleteApiKey.d.ts +1 -1
- package/dist/commonjs/react-query/budgetsDeleteApiKey.js +1 -1
- package/dist/commonjs/react-query/budgetsGetApiKey.d.ts +2 -2
- package/dist/commonjs/react-query/budgetsGetApiKey.js +2 -2
- package/dist/commonjs/react-query/budgetsList.d.ts +2 -2
- package/dist/commonjs/react-query/budgetsList.js +2 -2
- package/dist/commonjs/react-query/budgetsSetApiKey.d.ts +1 -1
- package/dist/commonjs/react-query/budgetsSetApiKey.js +1 -1
- package/dist/commonjs/sdk/budgets.d.ts +5 -5
- package/dist/commonjs/sdk/budgets.js +5 -5
- package/dist/esm/funcs/budgetsApiKeyEvents.d.ts +1 -1
- package/dist/esm/funcs/budgetsApiKeyEvents.js +1 -1
- package/dist/esm/funcs/budgetsDeleteApiKey.d.ts +1 -1
- package/dist/esm/funcs/budgetsDeleteApiKey.js +1 -1
- package/dist/esm/funcs/budgetsGetApiKey.d.ts +1 -1
- package/dist/esm/funcs/budgetsGetApiKey.js +1 -1
- package/dist/esm/funcs/budgetsList.d.ts +1 -1
- package/dist/esm/funcs/budgetsList.js +1 -1
- package/dist/esm/funcs/budgetsSetApiKey.d.ts +1 -1
- package/dist/esm/funcs/budgetsSetApiKey.js +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.js +1 -1
- package/dist/esm/mcp-server/tools/budgetsApiKeyEvents.js +1 -1
- package/dist/esm/mcp-server/tools/budgetsApiKeyEvents.js.map +1 -1
- package/dist/esm/mcp-server/tools/budgetsDeleteApiKey.js +1 -1
- package/dist/esm/mcp-server/tools/budgetsDeleteApiKey.js.map +1 -1
- package/dist/esm/mcp-server/tools/budgetsGetApiKey.js +1 -1
- package/dist/esm/mcp-server/tools/budgetsGetApiKey.js.map +1 -1
- package/dist/esm/mcp-server/tools/budgetsList.js +1 -1
- package/dist/esm/mcp-server/tools/budgetsList.js.map +1 -1
- package/dist/esm/mcp-server/tools/budgetsSetApiKey.js +1 -1
- package/dist/esm/mcp-server/tools/budgetsSetApiKey.js.map +1 -1
- package/dist/esm/models/operations/getapikeybudgets.d.ts +2 -0
- package/dist/esm/models/operations/getapikeybudgets.d.ts.map +1 -1
- package/dist/esm/models/operations/getapikeybudgets.js +4 -0
- package/dist/esm/models/operations/getapikeybudgets.js.map +1 -1
- package/dist/esm/models/operations/getorgbudgets.d.ts +2 -0
- package/dist/esm/models/operations/getorgbudgets.d.ts.map +1 -1
- package/dist/esm/models/operations/getorgbudgets.js +4 -0
- package/dist/esm/models/operations/getorgbudgets.js.map +1 -1
- package/dist/esm/models/operations/listbudgets.d.ts +2 -0
- package/dist/esm/models/operations/listbudgets.d.ts.map +1 -1
- package/dist/esm/models/operations/listbudgets.js +4 -0
- package/dist/esm/models/operations/listbudgets.js.map +1 -1
- package/dist/esm/models/operations/setapikeybudget.d.ts +2 -0
- package/dist/esm/models/operations/setapikeybudget.d.ts.map +1 -1
- package/dist/esm/models/operations/setapikeybudget.js +4 -0
- package/dist/esm/models/operations/setapikeybudget.js.map +1 -1
- package/dist/esm/models/operations/setorgbudget.d.ts +2 -0
- package/dist/esm/models/operations/setorgbudget.d.ts.map +1 -1
- package/dist/esm/models/operations/setorgbudget.js +4 -0
- package/dist/esm/models/operations/setorgbudget.js.map +1 -1
- package/dist/esm/react-query/budgetsApiKeyEvents.d.ts +2 -2
- package/dist/esm/react-query/budgetsApiKeyEvents.js +2 -2
- package/dist/esm/react-query/budgetsDeleteApiKey.d.ts +1 -1
- package/dist/esm/react-query/budgetsDeleteApiKey.js +1 -1
- package/dist/esm/react-query/budgetsGetApiKey.d.ts +2 -2
- package/dist/esm/react-query/budgetsGetApiKey.js +2 -2
- package/dist/esm/react-query/budgetsList.d.ts +2 -2
- package/dist/esm/react-query/budgetsList.js +2 -2
- package/dist/esm/react-query/budgetsSetApiKey.d.ts +1 -1
- package/dist/esm/react-query/budgetsSetApiKey.js +1 -1
- package/dist/esm/sdk/budgets.d.ts +5 -5
- package/dist/esm/sdk/budgets.js +5 -5
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/budgetsApiKeyEvents.ts +1 -1
- package/src/funcs/budgetsDeleteApiKey.ts +1 -1
- package/src/funcs/budgetsGetApiKey.ts +1 -1
- package/src/funcs/budgetsList.ts +1 -1
- package/src/funcs/budgetsSetApiKey.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/budgetsApiKeyEvents.ts +1 -1
- package/src/mcp-server/tools/budgetsDeleteApiKey.ts +1 -1
- package/src/mcp-server/tools/budgetsGetApiKey.ts +1 -1
- package/src/mcp-server/tools/budgetsList.ts +1 -1
- package/src/mcp-server/tools/budgetsSetApiKey.ts +1 -1
- package/src/models/operations/getapikeybudgets.ts +6 -0
- package/src/models/operations/getorgbudgets.ts +6 -0
- package/src/models/operations/listbudgets.ts +6 -0
- package/src/models/operations/setapikeybudget.ts +6 -0
- package/src/models/operations/setorgbudget.ts +6 -0
- package/src/react-query/budgetsApiKeyEvents.ts +2 -2
- package/src/react-query/budgetsDeleteApiKey.ts +1 -1
- package/src/react-query/budgetsGetApiKey.ts +2 -2
- package/src/react-query/budgetsList.ts +2 -2
- package/src/react-query/budgetsSetApiKey.ts +1 -1
- package/src/sdk/budgets.ts +5 -5
|
@@ -116,6 +116,7 @@ export type SetOrgBudgetResponseBody = {
|
|
|
116
116
|
id: string;
|
|
117
117
|
scope: Scope;
|
|
118
118
|
scopeId: string;
|
|
119
|
+
scopeOrgId: string | null;
|
|
119
120
|
owner: SetOrgBudgetOwner;
|
|
120
121
|
period: SetOrgBudgetPeriod;
|
|
121
122
|
limit: number;
|
|
@@ -445,6 +446,7 @@ export const SetOrgBudgetResponseBody$inboundSchema: z.ZodType<
|
|
|
445
446
|
id: z.string(),
|
|
446
447
|
scope: Scope$inboundSchema,
|
|
447
448
|
scope_id: z.string(),
|
|
449
|
+
scope_org_id: z.nullable(z.string()),
|
|
448
450
|
owner: SetOrgBudgetOwner$inboundSchema,
|
|
449
451
|
period: SetOrgBudgetPeriod$inboundSchema,
|
|
450
452
|
limit: z.number(),
|
|
@@ -454,6 +456,7 @@ export const SetOrgBudgetResponseBody$inboundSchema: z.ZodType<
|
|
|
454
456
|
}).transform((v) => {
|
|
455
457
|
return remap$(v, {
|
|
456
458
|
"scope_id": "scopeId",
|
|
459
|
+
"scope_org_id": "scopeOrgId",
|
|
457
460
|
"alert_webhook_url": "alertWebhookUrl",
|
|
458
461
|
});
|
|
459
462
|
});
|
|
@@ -462,6 +465,7 @@ export type SetOrgBudgetResponseBody$Outbound = {
|
|
|
462
465
|
id: string;
|
|
463
466
|
scope: string;
|
|
464
467
|
scope_id: string;
|
|
468
|
+
scope_org_id: string | null;
|
|
465
469
|
owner: string;
|
|
466
470
|
period: string;
|
|
467
471
|
limit: number;
|
|
@@ -479,6 +483,7 @@ export const SetOrgBudgetResponseBody$outboundSchema: z.ZodType<
|
|
|
479
483
|
id: z.string(),
|
|
480
484
|
scope: Scope$outboundSchema,
|
|
481
485
|
scopeId: z.string(),
|
|
486
|
+
scopeOrgId: z.nullable(z.string()),
|
|
482
487
|
owner: SetOrgBudgetOwner$outboundSchema,
|
|
483
488
|
period: SetOrgBudgetPeriod$outboundSchema,
|
|
484
489
|
limit: z.number(),
|
|
@@ -488,6 +493,7 @@ export const SetOrgBudgetResponseBody$outboundSchema: z.ZodType<
|
|
|
488
493
|
}).transform((v) => {
|
|
489
494
|
return remap$(v, {
|
|
490
495
|
scopeId: "scope_id",
|
|
496
|
+
scopeOrgId: "scope_org_id",
|
|
491
497
|
alertWebhookUrl: "alert_webhook_url",
|
|
492
498
|
});
|
|
493
499
|
});
|
|
@@ -54,7 +54,7 @@ export type BudgetsApiKeyEventsQueryError =
|
|
|
54
54
|
* List apikey budget events
|
|
55
55
|
*
|
|
56
56
|
* @remarks
|
|
57
|
-
* Returns recent threshold-alert and block events for the scope's budgets.
|
|
57
|
+
* Returns recent threshold-alert and block events for the scope's budgets. Callable by cluster admins, or org admins for API keys in their own organization.
|
|
58
58
|
*/
|
|
59
59
|
export function useBudgetsApiKeyEvents(
|
|
60
60
|
request: operations.ListApiKeyBudgetEventsRequest,
|
|
@@ -78,7 +78,7 @@ export function useBudgetsApiKeyEvents(
|
|
|
78
78
|
* List apikey budget events
|
|
79
79
|
*
|
|
80
80
|
* @remarks
|
|
81
|
-
* Returns recent threshold-alert and block events for the scope's budgets.
|
|
81
|
+
* Returns recent threshold-alert and block events for the scope's budgets. Callable by cluster admins, or org admins for API keys in their own organization.
|
|
82
82
|
*/
|
|
83
83
|
export function useBudgetsApiKeyEventsSuspense(
|
|
84
84
|
request: operations.ListApiKeyBudgetEventsRequest,
|
|
@@ -48,7 +48,7 @@ export type BudgetsDeleteApiKeyMutationError =
|
|
|
48
48
|
* Delete a apikey budget
|
|
49
49
|
*
|
|
50
50
|
* @remarks
|
|
51
|
-
* Removes the apikey's budget for the given owner; enforcement and alerts stop.
|
|
51
|
+
* Removes the apikey's budget for the given owner; enforcement and alerts stop. Callable by cluster admins, or org admins for API keys in their own organization.
|
|
52
52
|
*/
|
|
53
53
|
export function useBudgetsDeleteApiKeyMutation(
|
|
54
54
|
options?: MutationHookOptions<
|
|
@@ -54,7 +54,7 @@ export type BudgetsGetApiKeyQueryError =
|
|
|
54
54
|
* List apikey budgets
|
|
55
55
|
*
|
|
56
56
|
* @remarks
|
|
57
|
-
* Returns the apikey's budgets (self-budget and/or ceiling) with each one's live spend gauge.
|
|
57
|
+
* Returns the apikey's budgets (self-budget and/or ceiling) with each one's live spend gauge. Callable by cluster admins, or org admins for API keys in their own organization.
|
|
58
58
|
*/
|
|
59
59
|
export function useBudgetsGetApiKey(
|
|
60
60
|
request: operations.GetApiKeyBudgetsRequest,
|
|
@@ -78,7 +78,7 @@ export function useBudgetsGetApiKey(
|
|
|
78
78
|
* List apikey budgets
|
|
79
79
|
*
|
|
80
80
|
* @remarks
|
|
81
|
-
* Returns the apikey's budgets (self-budget and/or ceiling) with each one's live spend gauge.
|
|
81
|
+
* Returns the apikey's budgets (self-budget and/or ceiling) with each one's live spend gauge. Callable by cluster admins, or org admins for API keys in their own organization.
|
|
82
82
|
*/
|
|
83
83
|
export function useBudgetsGetApiKeySuspense(
|
|
84
84
|
request: operations.GetApiKeyBudgetsRequest,
|
|
@@ -49,7 +49,7 @@ export type BudgetsListQueryError =
|
|
|
49
49
|
* List budgets
|
|
50
50
|
*
|
|
51
51
|
* @remarks
|
|
52
|
-
* Cluster admins see all budgets; org admins see their org's budgets.
|
|
52
|
+
* Cluster admins see all budgets; org admins see their org's budgets plus budgets on API keys in their org.
|
|
53
53
|
*/
|
|
54
54
|
export function useBudgetsList(
|
|
55
55
|
options?: QueryHookOptions<BudgetsListQueryData, BudgetsListQueryError>,
|
|
@@ -68,7 +68,7 @@ export function useBudgetsList(
|
|
|
68
68
|
* List budgets
|
|
69
69
|
*
|
|
70
70
|
* @remarks
|
|
71
|
-
* Cluster admins see all budgets; org admins see their org's budgets.
|
|
71
|
+
* Cluster admins see all budgets; org admins see their org's budgets plus budgets on API keys in their org.
|
|
72
72
|
*/
|
|
73
73
|
export function useBudgetsListSuspense(
|
|
74
74
|
options?: SuspenseQueryHookOptions<
|
|
@@ -48,7 +48,7 @@ export type BudgetsSetApiKeyMutationError =
|
|
|
48
48
|
* Set a apikey budget
|
|
49
49
|
*
|
|
50
50
|
* @remarks
|
|
51
|
-
* Creates or updates a budget for the apikey. One budget per (scope, owner); editing re-evaluates against live spend.
|
|
51
|
+
* Creates or updates a budget for the apikey. One budget per (scope, owner); editing re-evaluates against live spend. Callable by cluster admins, or org admins for API keys in their own organization.
|
|
52
52
|
*/
|
|
53
53
|
export function useBudgetsSetApiKeyMutation(
|
|
54
54
|
options?: MutationHookOptions<
|
package/src/sdk/budgets.ts
CHANGED
|
@@ -22,7 +22,7 @@ export class Budgets extends ClientSDK {
|
|
|
22
22
|
* List budgets
|
|
23
23
|
*
|
|
24
24
|
* @remarks
|
|
25
|
-
* Cluster admins see all budgets; org admins see their org's budgets.
|
|
25
|
+
* Cluster admins see all budgets; org admins see their org's budgets plus budgets on API keys in their org.
|
|
26
26
|
*/
|
|
27
27
|
async list(
|
|
28
28
|
options?: RequestOptions,
|
|
@@ -105,7 +105,7 @@ export class Budgets extends ClientSDK {
|
|
|
105
105
|
* List apikey budgets
|
|
106
106
|
*
|
|
107
107
|
* @remarks
|
|
108
|
-
* Returns the apikey's budgets (self-budget and/or ceiling) with each one's live spend gauge.
|
|
108
|
+
* Returns the apikey's budgets (self-budget and/or ceiling) with each one's live spend gauge. Callable by cluster admins, or org admins for API keys in their own organization.
|
|
109
109
|
*/
|
|
110
110
|
async getApiKey(
|
|
111
111
|
request: operations.GetApiKeyBudgetsRequest,
|
|
@@ -122,7 +122,7 @@ export class Budgets extends ClientSDK {
|
|
|
122
122
|
* Set a apikey budget
|
|
123
123
|
*
|
|
124
124
|
* @remarks
|
|
125
|
-
* Creates or updates a budget for the apikey. One budget per (scope, owner); editing re-evaluates against live spend.
|
|
125
|
+
* Creates or updates a budget for the apikey. One budget per (scope, owner); editing re-evaluates against live spend. Callable by cluster admins, or org admins for API keys in their own organization.
|
|
126
126
|
*/
|
|
127
127
|
async setApiKey(
|
|
128
128
|
request: operations.SetApiKeyBudgetRequest,
|
|
@@ -139,7 +139,7 @@ export class Budgets extends ClientSDK {
|
|
|
139
139
|
* Delete a apikey budget
|
|
140
140
|
*
|
|
141
141
|
* @remarks
|
|
142
|
-
* Removes the apikey's budget for the given owner; enforcement and alerts stop.
|
|
142
|
+
* Removes the apikey's budget for the given owner; enforcement and alerts stop. Callable by cluster admins, or org admins for API keys in their own organization.
|
|
143
143
|
*/
|
|
144
144
|
async deleteApiKey(
|
|
145
145
|
request: operations.DeleteApiKeyBudgetRequest,
|
|
@@ -156,7 +156,7 @@ export class Budgets extends ClientSDK {
|
|
|
156
156
|
* List apikey budget events
|
|
157
157
|
*
|
|
158
158
|
* @remarks
|
|
159
|
-
* Returns recent threshold-alert and block events for the scope's budgets.
|
|
159
|
+
* Returns recent threshold-alert and block events for the scope's budgets. Callable by cluster admins, or org admins for API keys in their own organization.
|
|
160
160
|
*/
|
|
161
161
|
async apiKeyEvents(
|
|
162
162
|
request: operations.ListApiKeyBudgetEventsRequest,
|