@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.
Files changed (140) hide show
  1. package/bin/mcp-server.js +30 -10
  2. package/bin/mcp-server.js.map +20 -20
  3. package/dist/commonjs/funcs/budgetsApiKeyEvents.d.ts +1 -1
  4. package/dist/commonjs/funcs/budgetsApiKeyEvents.js +1 -1
  5. package/dist/commonjs/funcs/budgetsDeleteApiKey.d.ts +1 -1
  6. package/dist/commonjs/funcs/budgetsDeleteApiKey.js +1 -1
  7. package/dist/commonjs/funcs/budgetsGetApiKey.d.ts +1 -1
  8. package/dist/commonjs/funcs/budgetsGetApiKey.js +1 -1
  9. package/dist/commonjs/funcs/budgetsList.d.ts +1 -1
  10. package/dist/commonjs/funcs/budgetsList.js +1 -1
  11. package/dist/commonjs/funcs/budgetsSetApiKey.d.ts +1 -1
  12. package/dist/commonjs/funcs/budgetsSetApiKey.js +1 -1
  13. package/dist/commonjs/lib/config.d.ts +2 -2
  14. package/dist/commonjs/lib/config.js +2 -2
  15. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  16. package/dist/commonjs/mcp-server/server.js +1 -1
  17. package/dist/commonjs/mcp-server/tools/budgetsApiKeyEvents.js +1 -1
  18. package/dist/commonjs/mcp-server/tools/budgetsApiKeyEvents.js.map +1 -1
  19. package/dist/commonjs/mcp-server/tools/budgetsDeleteApiKey.js +1 -1
  20. package/dist/commonjs/mcp-server/tools/budgetsDeleteApiKey.js.map +1 -1
  21. package/dist/commonjs/mcp-server/tools/budgetsGetApiKey.js +1 -1
  22. package/dist/commonjs/mcp-server/tools/budgetsGetApiKey.js.map +1 -1
  23. package/dist/commonjs/mcp-server/tools/budgetsList.js +1 -1
  24. package/dist/commonjs/mcp-server/tools/budgetsList.js.map +1 -1
  25. package/dist/commonjs/mcp-server/tools/budgetsSetApiKey.js +1 -1
  26. package/dist/commonjs/mcp-server/tools/budgetsSetApiKey.js.map +1 -1
  27. package/dist/commonjs/models/operations/getapikeybudgets.d.ts +2 -0
  28. package/dist/commonjs/models/operations/getapikeybudgets.d.ts.map +1 -1
  29. package/dist/commonjs/models/operations/getapikeybudgets.js +4 -0
  30. package/dist/commonjs/models/operations/getapikeybudgets.js.map +1 -1
  31. package/dist/commonjs/models/operations/getorgbudgets.d.ts +2 -0
  32. package/dist/commonjs/models/operations/getorgbudgets.d.ts.map +1 -1
  33. package/dist/commonjs/models/operations/getorgbudgets.js +4 -0
  34. package/dist/commonjs/models/operations/getorgbudgets.js.map +1 -1
  35. package/dist/commonjs/models/operations/listbudgets.d.ts +2 -0
  36. package/dist/commonjs/models/operations/listbudgets.d.ts.map +1 -1
  37. package/dist/commonjs/models/operations/listbudgets.js +4 -0
  38. package/dist/commonjs/models/operations/listbudgets.js.map +1 -1
  39. package/dist/commonjs/models/operations/setapikeybudget.d.ts +2 -0
  40. package/dist/commonjs/models/operations/setapikeybudget.d.ts.map +1 -1
  41. package/dist/commonjs/models/operations/setapikeybudget.js +4 -0
  42. package/dist/commonjs/models/operations/setapikeybudget.js.map +1 -1
  43. package/dist/commonjs/models/operations/setorgbudget.d.ts +2 -0
  44. package/dist/commonjs/models/operations/setorgbudget.d.ts.map +1 -1
  45. package/dist/commonjs/models/operations/setorgbudget.js +4 -0
  46. package/dist/commonjs/models/operations/setorgbudget.js.map +1 -1
  47. package/dist/commonjs/react-query/budgetsApiKeyEvents.d.ts +2 -2
  48. package/dist/commonjs/react-query/budgetsApiKeyEvents.js +2 -2
  49. package/dist/commonjs/react-query/budgetsDeleteApiKey.d.ts +1 -1
  50. package/dist/commonjs/react-query/budgetsDeleteApiKey.js +1 -1
  51. package/dist/commonjs/react-query/budgetsGetApiKey.d.ts +2 -2
  52. package/dist/commonjs/react-query/budgetsGetApiKey.js +2 -2
  53. package/dist/commonjs/react-query/budgetsList.d.ts +2 -2
  54. package/dist/commonjs/react-query/budgetsList.js +2 -2
  55. package/dist/commonjs/react-query/budgetsSetApiKey.d.ts +1 -1
  56. package/dist/commonjs/react-query/budgetsSetApiKey.js +1 -1
  57. package/dist/commonjs/sdk/budgets.d.ts +5 -5
  58. package/dist/commonjs/sdk/budgets.js +5 -5
  59. package/dist/esm/funcs/budgetsApiKeyEvents.d.ts +1 -1
  60. package/dist/esm/funcs/budgetsApiKeyEvents.js +1 -1
  61. package/dist/esm/funcs/budgetsDeleteApiKey.d.ts +1 -1
  62. package/dist/esm/funcs/budgetsDeleteApiKey.js +1 -1
  63. package/dist/esm/funcs/budgetsGetApiKey.d.ts +1 -1
  64. package/dist/esm/funcs/budgetsGetApiKey.js +1 -1
  65. package/dist/esm/funcs/budgetsList.d.ts +1 -1
  66. package/dist/esm/funcs/budgetsList.js +1 -1
  67. package/dist/esm/funcs/budgetsSetApiKey.d.ts +1 -1
  68. package/dist/esm/funcs/budgetsSetApiKey.js +1 -1
  69. package/dist/esm/lib/config.d.ts +2 -2
  70. package/dist/esm/lib/config.js +2 -2
  71. package/dist/esm/mcp-server/mcp-server.js +1 -1
  72. package/dist/esm/mcp-server/server.js +1 -1
  73. package/dist/esm/mcp-server/tools/budgetsApiKeyEvents.js +1 -1
  74. package/dist/esm/mcp-server/tools/budgetsApiKeyEvents.js.map +1 -1
  75. package/dist/esm/mcp-server/tools/budgetsDeleteApiKey.js +1 -1
  76. package/dist/esm/mcp-server/tools/budgetsDeleteApiKey.js.map +1 -1
  77. package/dist/esm/mcp-server/tools/budgetsGetApiKey.js +1 -1
  78. package/dist/esm/mcp-server/tools/budgetsGetApiKey.js.map +1 -1
  79. package/dist/esm/mcp-server/tools/budgetsList.js +1 -1
  80. package/dist/esm/mcp-server/tools/budgetsList.js.map +1 -1
  81. package/dist/esm/mcp-server/tools/budgetsSetApiKey.js +1 -1
  82. package/dist/esm/mcp-server/tools/budgetsSetApiKey.js.map +1 -1
  83. package/dist/esm/models/operations/getapikeybudgets.d.ts +2 -0
  84. package/dist/esm/models/operations/getapikeybudgets.d.ts.map +1 -1
  85. package/dist/esm/models/operations/getapikeybudgets.js +4 -0
  86. package/dist/esm/models/operations/getapikeybudgets.js.map +1 -1
  87. package/dist/esm/models/operations/getorgbudgets.d.ts +2 -0
  88. package/dist/esm/models/operations/getorgbudgets.d.ts.map +1 -1
  89. package/dist/esm/models/operations/getorgbudgets.js +4 -0
  90. package/dist/esm/models/operations/getorgbudgets.js.map +1 -1
  91. package/dist/esm/models/operations/listbudgets.d.ts +2 -0
  92. package/dist/esm/models/operations/listbudgets.d.ts.map +1 -1
  93. package/dist/esm/models/operations/listbudgets.js +4 -0
  94. package/dist/esm/models/operations/listbudgets.js.map +1 -1
  95. package/dist/esm/models/operations/setapikeybudget.d.ts +2 -0
  96. package/dist/esm/models/operations/setapikeybudget.d.ts.map +1 -1
  97. package/dist/esm/models/operations/setapikeybudget.js +4 -0
  98. package/dist/esm/models/operations/setapikeybudget.js.map +1 -1
  99. package/dist/esm/models/operations/setorgbudget.d.ts +2 -0
  100. package/dist/esm/models/operations/setorgbudget.d.ts.map +1 -1
  101. package/dist/esm/models/operations/setorgbudget.js +4 -0
  102. package/dist/esm/models/operations/setorgbudget.js.map +1 -1
  103. package/dist/esm/react-query/budgetsApiKeyEvents.d.ts +2 -2
  104. package/dist/esm/react-query/budgetsApiKeyEvents.js +2 -2
  105. package/dist/esm/react-query/budgetsDeleteApiKey.d.ts +1 -1
  106. package/dist/esm/react-query/budgetsDeleteApiKey.js +1 -1
  107. package/dist/esm/react-query/budgetsGetApiKey.d.ts +2 -2
  108. package/dist/esm/react-query/budgetsGetApiKey.js +2 -2
  109. package/dist/esm/react-query/budgetsList.d.ts +2 -2
  110. package/dist/esm/react-query/budgetsList.js +2 -2
  111. package/dist/esm/react-query/budgetsSetApiKey.d.ts +1 -1
  112. package/dist/esm/react-query/budgetsSetApiKey.js +1 -1
  113. package/dist/esm/sdk/budgets.d.ts +5 -5
  114. package/dist/esm/sdk/budgets.js +5 -5
  115. package/jsr.json +1 -1
  116. package/package.json +1 -1
  117. package/src/funcs/budgetsApiKeyEvents.ts +1 -1
  118. package/src/funcs/budgetsDeleteApiKey.ts +1 -1
  119. package/src/funcs/budgetsGetApiKey.ts +1 -1
  120. package/src/funcs/budgetsList.ts +1 -1
  121. package/src/funcs/budgetsSetApiKey.ts +1 -1
  122. package/src/lib/config.ts +2 -2
  123. package/src/mcp-server/mcp-server.ts +1 -1
  124. package/src/mcp-server/server.ts +1 -1
  125. package/src/mcp-server/tools/budgetsApiKeyEvents.ts +1 -1
  126. package/src/mcp-server/tools/budgetsDeleteApiKey.ts +1 -1
  127. package/src/mcp-server/tools/budgetsGetApiKey.ts +1 -1
  128. package/src/mcp-server/tools/budgetsList.ts +1 -1
  129. package/src/mcp-server/tools/budgetsSetApiKey.ts +1 -1
  130. package/src/models/operations/getapikeybudgets.ts +6 -0
  131. package/src/models/operations/getorgbudgets.ts +6 -0
  132. package/src/models/operations/listbudgets.ts +6 -0
  133. package/src/models/operations/setapikeybudget.ts +6 -0
  134. package/src/models/operations/setorgbudget.ts +6 -0
  135. package/src/react-query/budgetsApiKeyEvents.ts +2 -2
  136. package/src/react-query/budgetsDeleteApiKey.ts +1 -1
  137. package/src/react-query/budgetsGetApiKey.ts +2 -2
  138. package/src/react-query/budgetsList.ts +2 -2
  139. package/src/react-query/budgetsSetApiKey.ts +1 -1
  140. 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<
@@ -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,