@meetkai/mka1 0.49.8 → 0.49.9
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 +17 -41
- package/bin/mcp-server.js +67 -52
- package/bin/mcp-server.js.map +23 -23
- 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/budgetsDeleteOrg.d.ts +2 -2
- package/dist/commonjs/funcs/budgetsDeleteOrg.js +4 -9
- package/dist/commonjs/funcs/budgetsDeleteOrg.js.map +1 -1
- package/dist/commonjs/funcs/budgetsGetOrg.d.ts +1 -1
- package/dist/commonjs/funcs/budgetsGetOrg.js +6 -8
- package/dist/commonjs/funcs/budgetsGetOrg.js.map +1 -1
- package/dist/commonjs/funcs/budgetsOrgEvents.d.ts +1 -1
- package/dist/commonjs/funcs/budgetsOrgEvents.js +6 -8
- package/dist/commonjs/funcs/budgetsOrgEvents.js.map +1 -1
- package/dist/commonjs/funcs/budgetsSetApiKey.d.ts +1 -1
- package/dist/commonjs/funcs/budgetsSetApiKey.js +1 -1
- package/dist/commonjs/funcs/budgetsSetOrg.d.ts +2 -2
- package/dist/commonjs/funcs/budgetsSetOrg.js +7 -9
- package/dist/commonjs/funcs/budgetsSetOrg.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.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/budgetsDeleteOrg.js +2 -2
- package/dist/commonjs/mcp-server/tools/budgetsDeleteOrg.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/budgetsGetOrg.js +1 -1
- package/dist/commonjs/mcp-server/tools/budgetsGetOrg.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/budgetsOrgEvents.js +1 -1
- package/dist/commonjs/mcp-server/tools/budgetsOrgEvents.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/budgetsSetApiKey.js +1 -1
- package/dist/commonjs/mcp-server/tools/budgetsSetOrg.js +2 -2
- package/dist/commonjs/mcp-server/tools/budgetsSetOrg.js.map +1 -1
- package/dist/commonjs/models/operations/deleteorgbudget.d.ts +2 -2
- package/dist/commonjs/models/operations/deleteorgbudget.d.ts.map +1 -1
- package/dist/commonjs/models/operations/deleteorgbudget.js +10 -2
- package/dist/commonjs/models/operations/deleteorgbudget.js.map +1 -1
- package/dist/commonjs/models/operations/getorgbudgets.d.ts +2 -2
- package/dist/commonjs/models/operations/getorgbudgets.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getorgbudgets.js +10 -2
- package/dist/commonjs/models/operations/getorgbudgets.js.map +1 -1
- package/dist/commonjs/models/operations/listorgbudgetevents.d.ts +2 -2
- package/dist/commonjs/models/operations/listorgbudgetevents.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listorgbudgetevents.js +10 -2
- package/dist/commonjs/models/operations/listorgbudgetevents.js.map +1 -1
- package/dist/commonjs/models/operations/setorgbudget.d.ts +2 -2
- package/dist/commonjs/models/operations/setorgbudget.d.ts.map +1 -1
- package/dist/commonjs/models/operations/setorgbudget.js +4 -2
- 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/budgetsDeleteOrg.d.ts +2 -2
- package/dist/commonjs/react-query/budgetsDeleteOrg.js +2 -2
- package/dist/commonjs/react-query/budgetsGetOrg.core.d.ts +3 -1
- package/dist/commonjs/react-query/budgetsGetOrg.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/budgetsGetOrg.core.js +3 -3
- package/dist/commonjs/react-query/budgetsGetOrg.core.js.map +1 -1
- package/dist/commonjs/react-query/budgetsGetOrg.d.ts +8 -4
- package/dist/commonjs/react-query/budgetsGetOrg.d.ts.map +1 -1
- package/dist/commonjs/react-query/budgetsGetOrg.js +2 -2
- package/dist/commonjs/react-query/budgetsGetOrg.js.map +1 -1
- package/dist/commonjs/react-query/budgetsOrgEvents.core.d.ts +3 -1
- package/dist/commonjs/react-query/budgetsOrgEvents.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/budgetsOrgEvents.core.js +3 -3
- package/dist/commonjs/react-query/budgetsOrgEvents.core.js.map +1 -1
- package/dist/commonjs/react-query/budgetsOrgEvents.d.ts +8 -4
- package/dist/commonjs/react-query/budgetsOrgEvents.d.ts.map +1 -1
- package/dist/commonjs/react-query/budgetsOrgEvents.js +2 -2
- package/dist/commonjs/react-query/budgetsOrgEvents.js.map +1 -1
- package/dist/commonjs/react-query/budgetsSetApiKey.d.ts +1 -1
- package/dist/commonjs/react-query/budgetsSetApiKey.js +1 -1
- package/dist/commonjs/react-query/budgetsSetOrg.d.ts +2 -2
- package/dist/commonjs/react-query/budgetsSetOrg.js +2 -2
- package/dist/commonjs/sdk/budgets.d.ts +9 -9
- package/dist/commonjs/sdk/budgets.js +9 -9
- 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/budgetsDeleteOrg.d.ts +2 -2
- package/dist/esm/funcs/budgetsDeleteOrg.js +5 -10
- package/dist/esm/funcs/budgetsDeleteOrg.js.map +1 -1
- package/dist/esm/funcs/budgetsGetOrg.d.ts +1 -1
- package/dist/esm/funcs/budgetsGetOrg.js +7 -9
- package/dist/esm/funcs/budgetsGetOrg.js.map +1 -1
- package/dist/esm/funcs/budgetsOrgEvents.d.ts +1 -1
- package/dist/esm/funcs/budgetsOrgEvents.js +7 -9
- package/dist/esm/funcs/budgetsOrgEvents.js.map +1 -1
- package/dist/esm/funcs/budgetsSetApiKey.d.ts +1 -1
- package/dist/esm/funcs/budgetsSetApiKey.js +1 -1
- package/dist/esm/funcs/budgetsSetOrg.d.ts +2 -2
- package/dist/esm/funcs/budgetsSetOrg.js +8 -10
- package/dist/esm/funcs/budgetsSetOrg.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.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/budgetsDeleteOrg.js +2 -2
- package/dist/esm/mcp-server/tools/budgetsDeleteOrg.js.map +1 -1
- package/dist/esm/mcp-server/tools/budgetsGetOrg.js +1 -1
- package/dist/esm/mcp-server/tools/budgetsGetOrg.js.map +1 -1
- package/dist/esm/mcp-server/tools/budgetsOrgEvents.js +1 -1
- package/dist/esm/mcp-server/tools/budgetsOrgEvents.js.map +1 -1
- package/dist/esm/mcp-server/tools/budgetsSetApiKey.js +1 -1
- package/dist/esm/mcp-server/tools/budgetsSetOrg.js +2 -2
- package/dist/esm/mcp-server/tools/budgetsSetOrg.js.map +1 -1
- package/dist/esm/models/operations/deleteorgbudget.d.ts +2 -2
- package/dist/esm/models/operations/deleteorgbudget.d.ts.map +1 -1
- package/dist/esm/models/operations/deleteorgbudget.js +10 -2
- package/dist/esm/models/operations/deleteorgbudget.js.map +1 -1
- package/dist/esm/models/operations/getorgbudgets.d.ts +2 -2
- package/dist/esm/models/operations/getorgbudgets.d.ts.map +1 -1
- package/dist/esm/models/operations/getorgbudgets.js +10 -2
- package/dist/esm/models/operations/getorgbudgets.js.map +1 -1
- package/dist/esm/models/operations/listorgbudgetevents.d.ts +2 -2
- package/dist/esm/models/operations/listorgbudgetevents.d.ts.map +1 -1
- package/dist/esm/models/operations/listorgbudgetevents.js +10 -2
- package/dist/esm/models/operations/listorgbudgetevents.js.map +1 -1
- package/dist/esm/models/operations/setorgbudget.d.ts +2 -2
- package/dist/esm/models/operations/setorgbudget.d.ts.map +1 -1
- package/dist/esm/models/operations/setorgbudget.js +4 -2
- 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/budgetsDeleteOrg.d.ts +2 -2
- package/dist/esm/react-query/budgetsDeleteOrg.js +2 -2
- package/dist/esm/react-query/budgetsGetOrg.core.d.ts +3 -1
- package/dist/esm/react-query/budgetsGetOrg.core.d.ts.map +1 -1
- package/dist/esm/react-query/budgetsGetOrg.core.js +3 -3
- package/dist/esm/react-query/budgetsGetOrg.core.js.map +1 -1
- package/dist/esm/react-query/budgetsGetOrg.d.ts +8 -4
- package/dist/esm/react-query/budgetsGetOrg.d.ts.map +1 -1
- package/dist/esm/react-query/budgetsGetOrg.js +2 -2
- package/dist/esm/react-query/budgetsGetOrg.js.map +1 -1
- package/dist/esm/react-query/budgetsOrgEvents.core.d.ts +3 -1
- package/dist/esm/react-query/budgetsOrgEvents.core.d.ts.map +1 -1
- package/dist/esm/react-query/budgetsOrgEvents.core.js +3 -3
- package/dist/esm/react-query/budgetsOrgEvents.core.js.map +1 -1
- package/dist/esm/react-query/budgetsOrgEvents.d.ts +8 -4
- package/dist/esm/react-query/budgetsOrgEvents.d.ts.map +1 -1
- package/dist/esm/react-query/budgetsOrgEvents.js +2 -2
- package/dist/esm/react-query/budgetsOrgEvents.js.map +1 -1
- package/dist/esm/react-query/budgetsSetApiKey.d.ts +1 -1
- package/dist/esm/react-query/budgetsSetApiKey.js +1 -1
- package/dist/esm/react-query/budgetsSetOrg.d.ts +2 -2
- package/dist/esm/react-query/budgetsSetOrg.js +2 -2
- package/dist/esm/sdk/budgets.d.ts +9 -9
- package/dist/esm/sdk/budgets.js +9 -9
- 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/budgetsDeleteOrg.ts +5 -10
- package/src/funcs/budgetsGetOrg.ts +8 -9
- package/src/funcs/budgetsOrgEvents.ts +8 -11
- package/src/funcs/budgetsSetApiKey.ts +1 -1
- package/src/funcs/budgetsSetOrg.ts +9 -10
- 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/budgetsDeleteOrg.ts +2 -2
- package/src/mcp-server/tools/budgetsGetOrg.ts +1 -1
- package/src/mcp-server/tools/budgetsOrgEvents.ts +1 -1
- package/src/mcp-server/tools/budgetsSetApiKey.ts +1 -1
- package/src/mcp-server/tools/budgetsSetOrg.ts +2 -2
- package/src/models/operations/deleteorgbudget.ts +12 -4
- package/src/models/operations/getorgbudgets.ts +12 -4
- package/src/models/operations/listorgbudgetevents.ts +12 -4
- package/src/models/operations/setorgbudget.ts +6 -4
- package/src/react-query/budgetsApiKeyEvents.ts +2 -2
- package/src/react-query/budgetsDeleteApiKey.ts +1 -1
- package/src/react-query/budgetsDeleteOrg.ts +2 -2
- package/src/react-query/budgetsGetOrg.core.ts +5 -3
- package/src/react-query/budgetsGetOrg.ts +4 -4
- package/src/react-query/budgetsOrgEvents.core.ts +5 -3
- package/src/react-query/budgetsOrgEvents.ts +4 -4
- package/src/react-query/budgetsSetApiKey.ts +1 -1
- package/src/react-query/budgetsSetOrg.ts +2 -2
- package/src/sdk/budgets.ts +9 -9
|
@@ -14,7 +14,7 @@ export type BudgetsSetApiKeyMutationVariables = {
|
|
|
14
14
|
export type BudgetsSetApiKeyMutationData = operations.SetApiKeyBudgetResponseBody;
|
|
15
15
|
export type BudgetsSetApiKeyMutationError = SDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError;
|
|
16
16
|
/**
|
|
17
|
-
* Set
|
|
17
|
+
* Set an apikey budget
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
20
|
* 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.
|
|
@@ -12,7 +12,7 @@ const primitives_js_1 = require("../lib/primitives.js");
|
|
|
12
12
|
const fp_js_1 = require("../types/fp.js");
|
|
13
13
|
const _context_js_1 = require("./_context.js");
|
|
14
14
|
/**
|
|
15
|
-
* Set
|
|
15
|
+
* Set an apikey budget
|
|
16
16
|
*
|
|
17
17
|
* @remarks
|
|
18
18
|
* 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.
|
|
@@ -14,10 +14,10 @@ export type BudgetsSetOrgMutationVariables = {
|
|
|
14
14
|
export type BudgetsSetOrgMutationData = operations.SetOrgBudgetResponseBody;
|
|
15
15
|
export type BudgetsSetOrgMutationError = SDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError;
|
|
16
16
|
/**
|
|
17
|
-
* Set
|
|
17
|
+
* Set an org budget
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* Creates or updates a budget for the org. One budget per (scope, owner); editing re-evaluates against live spend.
|
|
20
|
+
* Creates or updates a budget for the org. One budget per (scope, owner); editing re-evaluates against live spend. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only.
|
|
21
21
|
*/
|
|
22
22
|
export declare function useBudgetsSetOrgMutation(options?: MutationHookOptions<BudgetsSetOrgMutationData, BudgetsSetOrgMutationError, BudgetsSetOrgMutationVariables>): UseMutationResult<BudgetsSetOrgMutationData, BudgetsSetOrgMutationError, BudgetsSetOrgMutationVariables>;
|
|
23
23
|
export declare function mutationKeyBudgetsSetOrg(): MutationKey;
|
|
@@ -12,10 +12,10 @@ const primitives_js_1 = require("../lib/primitives.js");
|
|
|
12
12
|
const fp_js_1 = require("../types/fp.js");
|
|
13
13
|
const _context_js_1 = require("./_context.js");
|
|
14
14
|
/**
|
|
15
|
-
* Set
|
|
15
|
+
* Set an org budget
|
|
16
16
|
*
|
|
17
17
|
* @remarks
|
|
18
|
-
* Creates or updates a budget for the org. One budget per (scope, owner); editing re-evaluates against live spend.
|
|
18
|
+
* Creates or updates a budget for the org. One budget per (scope, owner); editing re-evaluates against live spend. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only.
|
|
19
19
|
*/
|
|
20
20
|
function useBudgetsSetOrgMutation(options) {
|
|
21
21
|
const client = (0, _context_js_1.useSDKContext)();
|
|
@@ -12,28 +12,28 @@ export declare class Budgets extends ClientSDK {
|
|
|
12
12
|
* List org budgets
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* Returns the org's budgets (self-budget and/or ceiling) with each one's live spend gauge.
|
|
15
|
+
* Returns the org's budgets (self-budget and/or ceiling) with each one's live spend gauge. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only.
|
|
16
16
|
*/
|
|
17
17
|
getOrg(request: operations.GetOrgBudgetsRequest, options?: RequestOptions): Promise<operations.GetOrgBudgetsResponseBody>;
|
|
18
18
|
/**
|
|
19
|
-
* Set
|
|
19
|
+
* Set an org budget
|
|
20
20
|
*
|
|
21
21
|
* @remarks
|
|
22
|
-
* Creates or updates a budget for the org. One budget per (scope, owner); editing re-evaluates against live spend.
|
|
22
|
+
* Creates or updates a budget for the org. One budget per (scope, owner); editing re-evaluates against live spend. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only.
|
|
23
23
|
*/
|
|
24
24
|
setOrg(request: operations.SetOrgBudgetRequest, options?: RequestOptions): Promise<operations.SetOrgBudgetResponseBody>;
|
|
25
25
|
/**
|
|
26
|
-
* Delete
|
|
26
|
+
* Delete an org budget
|
|
27
27
|
*
|
|
28
28
|
* @remarks
|
|
29
|
-
* Removes the org's budget for the given owner; enforcement and alerts stop.
|
|
29
|
+
* Removes the org's budget for the given owner; enforcement and alerts stop. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only.
|
|
30
30
|
*/
|
|
31
31
|
deleteOrg(request: operations.DeleteOrgBudgetRequest, options?: RequestOptions): Promise<operations.DeleteOrgBudgetResponseBody>;
|
|
32
32
|
/**
|
|
33
33
|
* List org budget events
|
|
34
34
|
*
|
|
35
35
|
* @remarks
|
|
36
|
-
* Returns recent threshold-alert and block events for the
|
|
36
|
+
* Returns recent threshold-alert and block events for the org's budgets. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only.
|
|
37
37
|
*/
|
|
38
38
|
orgEvents(request: operations.ListOrgBudgetEventsRequest, options?: RequestOptions): Promise<operations.ListOrgBudgetEventsResponseBody>;
|
|
39
39
|
/**
|
|
@@ -44,14 +44,14 @@ export declare class Budgets extends ClientSDK {
|
|
|
44
44
|
*/
|
|
45
45
|
getApiKey(request: operations.GetApiKeyBudgetsRequest, options?: RequestOptions): Promise<operations.GetApiKeyBudgetsResponseBody>;
|
|
46
46
|
/**
|
|
47
|
-
* Set
|
|
47
|
+
* Set an apikey budget
|
|
48
48
|
*
|
|
49
49
|
* @remarks
|
|
50
50
|
* 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.
|
|
51
51
|
*/
|
|
52
52
|
setApiKey(request: operations.SetApiKeyBudgetRequest, options?: RequestOptions): Promise<operations.SetApiKeyBudgetResponseBody>;
|
|
53
53
|
/**
|
|
54
|
-
* Delete
|
|
54
|
+
* Delete an apikey budget
|
|
55
55
|
*
|
|
56
56
|
* @remarks
|
|
57
57
|
* 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.
|
|
@@ -61,7 +61,7 @@ export declare class Budgets extends ClientSDK {
|
|
|
61
61
|
* List apikey budget events
|
|
62
62
|
*
|
|
63
63
|
* @remarks
|
|
64
|
-
* Returns recent threshold-alert and block events for the
|
|
64
|
+
* Returns recent threshold-alert and block events for the apikey's budgets. Callable by cluster admins, or org admins for API keys in their own organization.
|
|
65
65
|
*/
|
|
66
66
|
apiKeyEvents(request: operations.ListApiKeyBudgetEventsRequest, options?: RequestOptions): Promise<operations.ListApiKeyBudgetEventsResponseBody>;
|
|
67
67
|
/**
|
|
@@ -31,25 +31,25 @@ class Budgets extends sdks_js_1.ClientSDK {
|
|
|
31
31
|
* List org budgets
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
* Returns the org's budgets (self-budget and/or ceiling) with each one's live spend gauge.
|
|
34
|
+
* Returns the org's budgets (self-budget and/or ceiling) with each one's live spend gauge. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only.
|
|
35
35
|
*/
|
|
36
36
|
async getOrg(request, options) {
|
|
37
37
|
return (0, fp_js_1.unwrapAsync)((0, budgetsGetOrg_js_1.budgetsGetOrg)(this, request, options));
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
|
-
* Set
|
|
40
|
+
* Set an org budget
|
|
41
41
|
*
|
|
42
42
|
* @remarks
|
|
43
|
-
* Creates or updates a budget for the org. One budget per (scope, owner); editing re-evaluates against live spend.
|
|
43
|
+
* Creates or updates a budget for the org. One budget per (scope, owner); editing re-evaluates against live spend. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only.
|
|
44
44
|
*/
|
|
45
45
|
async setOrg(request, options) {
|
|
46
46
|
return (0, fp_js_1.unwrapAsync)((0, budgetsSetOrg_js_1.budgetsSetOrg)(this, request, options));
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
|
-
* Delete
|
|
49
|
+
* Delete an org budget
|
|
50
50
|
*
|
|
51
51
|
* @remarks
|
|
52
|
-
* Removes the org's budget for the given owner; enforcement and alerts stop.
|
|
52
|
+
* Removes the org's budget for the given owner; enforcement and alerts stop. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only.
|
|
53
53
|
*/
|
|
54
54
|
async deleteOrg(request, options) {
|
|
55
55
|
return (0, fp_js_1.unwrapAsync)((0, budgetsDeleteOrg_js_1.budgetsDeleteOrg)(this, request, options));
|
|
@@ -58,7 +58,7 @@ class Budgets extends sdks_js_1.ClientSDK {
|
|
|
58
58
|
* List org budget events
|
|
59
59
|
*
|
|
60
60
|
* @remarks
|
|
61
|
-
* Returns recent threshold-alert and block events for the
|
|
61
|
+
* Returns recent threshold-alert and block events for the org's budgets. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only.
|
|
62
62
|
*/
|
|
63
63
|
async orgEvents(request, options) {
|
|
64
64
|
return (0, fp_js_1.unwrapAsync)((0, budgetsOrgEvents_js_1.budgetsOrgEvents)(this, request, options));
|
|
@@ -73,7 +73,7 @@ class Budgets extends sdks_js_1.ClientSDK {
|
|
|
73
73
|
return (0, fp_js_1.unwrapAsync)((0, budgetsGetApiKey_js_1.budgetsGetApiKey)(this, request, options));
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
76
|
-
* Set
|
|
76
|
+
* Set an apikey budget
|
|
77
77
|
*
|
|
78
78
|
* @remarks
|
|
79
79
|
* 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.
|
|
@@ -82,7 +82,7 @@ class Budgets extends sdks_js_1.ClientSDK {
|
|
|
82
82
|
return (0, fp_js_1.unwrapAsync)((0, budgetsSetApiKey_js_1.budgetsSetApiKey)(this, request, options));
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
|
-
* Delete
|
|
85
|
+
* Delete an apikey budget
|
|
86
86
|
*
|
|
87
87
|
* @remarks
|
|
88
88
|
* 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.
|
|
@@ -94,7 +94,7 @@ class Budgets extends sdks_js_1.ClientSDK {
|
|
|
94
94
|
* List apikey budget events
|
|
95
95
|
*
|
|
96
96
|
* @remarks
|
|
97
|
-
* Returns recent threshold-alert and block events for the
|
|
97
|
+
* Returns recent threshold-alert and block events for the apikey's budgets. Callable by cluster admins, or org admins for API keys in their own organization.
|
|
98
98
|
*/
|
|
99
99
|
async apiKeyEvents(request, options) {
|
|
100
100
|
return (0, fp_js_1.unwrapAsync)((0, budgetsApiKeyEvents_js_1.budgetsApiKeyEvents)(this, request, options));
|
|
@@ -11,7 +11,7 @@ import { Result } from "../types/fp.js";
|
|
|
11
11
|
* List apikey budget events
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
|
-
* Returns recent threshold-alert and block events for the
|
|
14
|
+
* Returns recent threshold-alert and block events for the apikey's budgets. Callable by cluster admins, or org admins for API keys in their own organization.
|
|
15
15
|
*/
|
|
16
16
|
export declare function budgetsApiKeyEvents(client: SDKCore, request: operations.ListApiKeyBudgetEventsRequest, options?: RequestOptions): APIPromise<Result<operations.ListApiKeyBudgetEventsResponseBody, SDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
17
17
|
//# sourceMappingURL=budgetsApiKeyEvents.d.ts.map
|
|
@@ -14,7 +14,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
14
14
|
* List apikey budget events
|
|
15
15
|
*
|
|
16
16
|
* @remarks
|
|
17
|
-
* Returns recent threshold-alert and block events for the
|
|
17
|
+
* Returns recent threshold-alert and block events for the apikey's budgets. Callable by cluster admins, or org admins for API keys in their own organization.
|
|
18
18
|
*/
|
|
19
19
|
export function budgetsApiKeyEvents(client, request, options) {
|
|
20
20
|
return new APIPromise($do(client, request, options));
|
|
@@ -8,7 +8,7 @@ import * as operations from "../models/operations/index.js";
|
|
|
8
8
|
import { APIPromise } from "../types/async.js";
|
|
9
9
|
import { Result } from "../types/fp.js";
|
|
10
10
|
/**
|
|
11
|
-
* Delete
|
|
11
|
+
* Delete an apikey budget
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
14
|
* 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.
|
|
@@ -11,7 +11,7 @@ import { pathToFunc } from "../lib/url.js";
|
|
|
11
11
|
import * as operations from "../models/operations/index.js";
|
|
12
12
|
import { APIPromise } from "../types/async.js";
|
|
13
13
|
/**
|
|
14
|
-
* Delete
|
|
14
|
+
* Delete an apikey budget
|
|
15
15
|
*
|
|
16
16
|
* @remarks
|
|
17
17
|
* 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.
|
|
@@ -8,10 +8,10 @@ import * as operations from "../models/operations/index.js";
|
|
|
8
8
|
import { APIPromise } from "../types/async.js";
|
|
9
9
|
import { Result } from "../types/fp.js";
|
|
10
10
|
/**
|
|
11
|
-
* Delete
|
|
11
|
+
* Delete an org budget
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
|
-
* Removes the org's budget for the given owner; enforcement and alerts stop.
|
|
14
|
+
* Removes the org's budget for the given owner; enforcement and alerts stop. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only.
|
|
15
15
|
*/
|
|
16
16
|
export declare function budgetsDeleteOrg(client: SDKCore, request: operations.DeleteOrgBudgetRequest, options?: RequestOptions): APIPromise<Result<operations.DeleteOrgBudgetResponseBody, SDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
17
17
|
//# sourceMappingURL=budgetsDeleteOrg.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
|
-
import { encodeFormQuery
|
|
4
|
+
import { encodeFormQuery } from "../lib/encodings.js";
|
|
5
5
|
import { matchStatusCode } from "../lib/http.js";
|
|
6
6
|
import * as M from "../lib/matchers.js";
|
|
7
7
|
import { compactMap } from "../lib/primitives.js";
|
|
@@ -11,10 +11,10 @@ import { pathToFunc } from "../lib/url.js";
|
|
|
11
11
|
import * as operations from "../models/operations/index.js";
|
|
12
12
|
import { APIPromise } from "../types/async.js";
|
|
13
13
|
/**
|
|
14
|
-
* Delete
|
|
14
|
+
* Delete an org budget
|
|
15
15
|
*
|
|
16
16
|
* @remarks
|
|
17
|
-
* Removes the org's budget for the given owner; enforcement and alerts stop.
|
|
17
|
+
* Removes the org's budget for the given owner; enforcement and alerts stop. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only.
|
|
18
18
|
*/
|
|
19
19
|
export function budgetsDeleteOrg(client, request, options) {
|
|
20
20
|
return new APIPromise($do(client, request, options));
|
|
@@ -26,14 +26,9 @@ async function $do(client, request, options) {
|
|
|
26
26
|
}
|
|
27
27
|
const payload = parsed.value;
|
|
28
28
|
const body = null;
|
|
29
|
-
const
|
|
30
|
-
orgId: encodeSimple("orgId", payload.orgId, {
|
|
31
|
-
explode: false,
|
|
32
|
-
charEncoding: "percent",
|
|
33
|
-
}),
|
|
34
|
-
};
|
|
35
|
-
const path = pathToFunc("/api/v1/budgeting/budgets/org/{orgId}")(pathParams);
|
|
29
|
+
const path = pathToFunc("/api/v1/budgeting/budgets/org")();
|
|
36
30
|
const query = encodeFormQuery({
|
|
31
|
+
"org_id": payload.org_id,
|
|
37
32
|
"owner": payload.owner,
|
|
38
33
|
});
|
|
39
34
|
const headers = new Headers(compactMap({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"budgetsDeleteOrg.js","sourceRoot":"","sources":["../../../src/funcs/budgetsDeleteOrg.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"budgetsDeleteOrg.js","sourceRoot":"","sources":["../../../src/funcs/budgetsDeleteOrg.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAW3C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAC9B,MAAe,EACf,OAA0C,EAC1C,OAAwB;IAcxB,OAAO,IAAI,UAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAe,EACf,OAA0C,EAC1C,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C,WAAW;QAChC,UAAU,EAAE,OAAO,CAAC,UAAU;KAC/B,CAAC,CAAC;IACH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,OAAO,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IAC/D,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAW5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,yCAAyC,CAAC,EACjE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -11,7 +11,7 @@ import { Result } from "../types/fp.js";
|
|
|
11
11
|
* List org budgets
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
|
-
* Returns the org's budgets (self-budget and/or ceiling) with each one's live spend gauge.
|
|
14
|
+
* Returns the org's budgets (self-budget and/or ceiling) with each one's live spend gauge. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only.
|
|
15
15
|
*/
|
|
16
16
|
export declare function budgetsGetOrg(client: SDKCore, request: operations.GetOrgBudgetsRequest, options?: RequestOptions): APIPromise<Result<operations.GetOrgBudgetsResponseBody, SDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
17
17
|
//# sourceMappingURL=budgetsGetOrg.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import { encodeFormQuery } from "../lib/encodings.js";
|
|
5
5
|
import { matchStatusCode } from "../lib/http.js";
|
|
6
6
|
import * as M from "../lib/matchers.js";
|
|
7
7
|
import { compactMap } from "../lib/primitives.js";
|
|
@@ -14,7 +14,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
14
14
|
* List org budgets
|
|
15
15
|
*
|
|
16
16
|
* @remarks
|
|
17
|
-
* Returns the org's budgets (self-budget and/or ceiling) with each one's live spend gauge.
|
|
17
|
+
* Returns the org's budgets (self-budget and/or ceiling) with each one's live spend gauge. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only.
|
|
18
18
|
*/
|
|
19
19
|
export function budgetsGetOrg(client, request, options) {
|
|
20
20
|
return new APIPromise($do(client, request, options));
|
|
@@ -26,13 +26,10 @@ async function $do(client, request, options) {
|
|
|
26
26
|
}
|
|
27
27
|
const payload = parsed.value;
|
|
28
28
|
const body = null;
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}),
|
|
34
|
-
};
|
|
35
|
-
const path = pathToFunc("/api/v1/budgeting/budgets/org/{orgId}")(pathParams);
|
|
29
|
+
const path = pathToFunc("/api/v1/budgeting/budgets/org")();
|
|
30
|
+
const query = encodeFormQuery({
|
|
31
|
+
"org_id": payload.org_id,
|
|
32
|
+
});
|
|
36
33
|
const headers = new Headers(compactMap({
|
|
37
34
|
Accept: "application/json",
|
|
38
35
|
}));
|
|
@@ -67,6 +64,7 @@ async function $do(client, request, options) {
|
|
|
67
64
|
baseURL: options?.serverURL,
|
|
68
65
|
path: path,
|
|
69
66
|
headers: headers,
|
|
67
|
+
query: query,
|
|
70
68
|
body: body,
|
|
71
69
|
userAgent: client._options.userAgent,
|
|
72
70
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"budgetsGetOrg.js","sourceRoot":"","sources":["../../../src/funcs/budgetsGetOrg.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"budgetsGetOrg.js","sourceRoot":"","sources":["../../../src/funcs/budgetsGetOrg.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAW3C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;;;;GAKG;AACH,MAAM,UAAU,aAAa,CAC3B,MAAe,EACf,OAAwC,EACxC,OAAwB;IAcxB,OAAO,IAAI,UAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAe,EACf,OAAwC,EACxC,OAAwB;IAiBxB,MAAM,MAAM,GAAG,SAAS,CACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,mCAAmC,CAAC,KAAK,CAAC,KAAK,CAAC,EAC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AAE,GAAG,EAAE,CAAC,CAAC;IAC/D,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAW5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,uCAAuC,CAAC,EAC/D,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -11,7 +11,7 @@ import { Result } from "../types/fp.js";
|
|
|
11
11
|
* List org budget events
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
|
-
* Returns recent threshold-alert and block events for the
|
|
14
|
+
* Returns recent threshold-alert and block events for the org's budgets. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only.
|
|
15
15
|
*/
|
|
16
16
|
export declare function budgetsOrgEvents(client: SDKCore, request: operations.ListOrgBudgetEventsRequest, options?: RequestOptions): APIPromise<Result<operations.ListOrgBudgetEventsResponseBody, SDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
17
17
|
//# sourceMappingURL=budgetsOrgEvents.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import { encodeFormQuery } from "../lib/encodings.js";
|
|
5
5
|
import { matchStatusCode } from "../lib/http.js";
|
|
6
6
|
import * as M from "../lib/matchers.js";
|
|
7
7
|
import { compactMap } from "../lib/primitives.js";
|
|
@@ -14,7 +14,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
14
14
|
* List org budget events
|
|
15
15
|
*
|
|
16
16
|
* @remarks
|
|
17
|
-
* Returns recent threshold-alert and block events for the
|
|
17
|
+
* Returns recent threshold-alert and block events for the org's budgets. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only.
|
|
18
18
|
*/
|
|
19
19
|
export function budgetsOrgEvents(client, request, options) {
|
|
20
20
|
return new APIPromise($do(client, request, options));
|
|
@@ -26,13 +26,10 @@ async function $do(client, request, options) {
|
|
|
26
26
|
}
|
|
27
27
|
const payload = parsed.value;
|
|
28
28
|
const body = null;
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}),
|
|
34
|
-
};
|
|
35
|
-
const path = pathToFunc("/api/v1/budgeting/budgets/org/{orgId}/events")(pathParams);
|
|
29
|
+
const path = pathToFunc("/api/v1/budgeting/budgets/org/events")();
|
|
30
|
+
const query = encodeFormQuery({
|
|
31
|
+
"org_id": payload.org_id,
|
|
32
|
+
});
|
|
36
33
|
const headers = new Headers(compactMap({
|
|
37
34
|
Accept: "application/json",
|
|
38
35
|
}));
|
|
@@ -67,6 +64,7 @@ async function $do(client, request, options) {
|
|
|
67
64
|
baseURL: options?.serverURL,
|
|
68
65
|
path: path,
|
|
69
66
|
headers: headers,
|
|
67
|
+
query: query,
|
|
70
68
|
body: body,
|
|
71
69
|
userAgent: client._options.userAgent,
|
|
72
70
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"budgetsOrgEvents.js","sourceRoot":"","sources":["../../../src/funcs/bud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rE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -8,7 +8,7 @@ import * as operations from "../models/operations/index.js";
|
|
|
8
8
|
import { APIPromise } from "../types/async.js";
|
|
9
9
|
import { Result } from "../types/fp.js";
|
|
10
10
|
/**
|
|
11
|
-
* Set
|
|
11
|
+
* Set an apikey budget
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
14
|
* 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.
|
|
@@ -11,7 +11,7 @@ import { pathToFunc } from "../lib/url.js";
|
|
|
11
11
|
import * as operations from "../models/operations/index.js";
|
|
12
12
|
import { APIPromise } from "../types/async.js";
|
|
13
13
|
/**
|
|
14
|
-
* Set
|
|
14
|
+
* Set an apikey budget
|
|
15
15
|
*
|
|
16
16
|
* @remarks
|
|
17
17
|
* 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.
|
|
@@ -8,10 +8,10 @@ import * as operations from "../models/operations/index.js";
|
|
|
8
8
|
import { APIPromise } from "../types/async.js";
|
|
9
9
|
import { Result } from "../types/fp.js";
|
|
10
10
|
/**
|
|
11
|
-
* Set
|
|
11
|
+
* Set an org budget
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
|
-
* Creates or updates a budget for the org. One budget per (scope, owner); editing re-evaluates against live spend.
|
|
14
|
+
* Creates or updates a budget for the org. One budget per (scope, owner); editing re-evaluates against live spend. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only.
|
|
15
15
|
*/
|
|
16
16
|
export declare function budgetsSetOrg(client: SDKCore, request: operations.SetOrgBudgetRequest, options?: RequestOptions): APIPromise<Result<operations.SetOrgBudgetResponseBody, SDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
17
17
|
//# sourceMappingURL=budgetsSetOrg.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import { encodeFormQuery, encodeJSON } from "../lib/encodings.js";
|
|
5
5
|
import { matchStatusCode } from "../lib/http.js";
|
|
6
6
|
import * as M from "../lib/matchers.js";
|
|
7
7
|
import { compactMap } from "../lib/primitives.js";
|
|
@@ -11,10 +11,10 @@ import { pathToFunc } from "../lib/url.js";
|
|
|
11
11
|
import * as operations from "../models/operations/index.js";
|
|
12
12
|
import { APIPromise } from "../types/async.js";
|
|
13
13
|
/**
|
|
14
|
-
* Set
|
|
14
|
+
* Set an org budget
|
|
15
15
|
*
|
|
16
16
|
* @remarks
|
|
17
|
-
* Creates or updates a budget for the org. One budget per (scope, owner); editing re-evaluates against live spend.
|
|
17
|
+
* Creates or updates a budget for the org. One budget per (scope, owner); editing re-evaluates against live spend. Targets the caller's own organization (inferred from the API key or session) unless the optional org_id query parameter names another org — cluster admins only.
|
|
18
18
|
*/
|
|
19
19
|
export function budgetsSetOrg(client, request, options) {
|
|
20
20
|
return new APIPromise($do(client, request, options));
|
|
@@ -26,13 +26,10 @@ async function $do(client, request, options) {
|
|
|
26
26
|
}
|
|
27
27
|
const payload = parsed.value;
|
|
28
28
|
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}),
|
|
34
|
-
};
|
|
35
|
-
const path = pathToFunc("/api/v1/budgeting/budgets/org/{orgId}")(pathParams);
|
|
29
|
+
const path = pathToFunc("/api/v1/budgeting/budgets/org")();
|
|
30
|
+
const query = encodeFormQuery({
|
|
31
|
+
"org_id": payload.org_id,
|
|
32
|
+
});
|
|
36
33
|
const headers = new Headers(compactMap({
|
|
37
34
|
"Content-Type": "application/json",
|
|
38
35
|
Accept: "application/json",
|
|
@@ -68,6 +65,7 @@ async function $do(client, request, options) {
|
|
|
68
65
|
baseURL: options?.serverURL,
|
|
69
66
|
path: path,
|
|
70
67
|
headers: headers,
|
|
68
|
+
query: query,
|
|
71
69
|
body: body,
|
|
72
70
|
userAgent: client._options.userAgent,
|
|
73
71
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"budgetsSetOrg.js","sourceRoot":"","sources":["../../../src/funcs/budgetsSetOrg.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"budgetsSetOrg.js","sourceRoot":"","sources":["../../../src/funcs/budgetsSetOrg.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;A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ts
CHANGED
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "1.1.0";
|
|
34
|
-
readonly sdkVersion: "0.49.
|
|
34
|
+
readonly sdkVersion: "0.49.9";
|
|
35
35
|
readonly genVersion: "2.918.3";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.49.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.49.9 2.918.3 1.1.0 @meetkai/mka1";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/esm/lib/config.js
CHANGED
|
@@ -31,8 +31,8 @@ export function serverURLFromOptions(options) {
|
|
|
31
31
|
export const SDK_METADATA = {
|
|
32
32
|
language: "typescript",
|
|
33
33
|
openapiDocVersion: "1.1.0",
|
|
34
|
-
sdkVersion: "0.49.
|
|
34
|
+
sdkVersion: "0.49.9",
|
|
35
35
|
genVersion: "2.918.3",
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 0.49.
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 0.49.9 2.918.3 1.1.0 @meetkai/mka1",
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.js.map
|
|
@@ -330,7 +330,7 @@ import { tool$usageSandbox } from "./tools/usageSandbox.js";
|
|
|
330
330
|
export function createMCPServer(deps) {
|
|
331
331
|
const server = new McpServer({
|
|
332
332
|
name: "SDK",
|
|
333
|
-
version: "0.49.
|
|
333
|
+
version: "0.49.9",
|
|
334
334
|
});
|
|
335
335
|
const client = new SDKCore({
|
|
336
336
|
bearerAuth: deps.bearerAuth,
|
|
@@ -11,7 +11,7 @@ export const tool$budgetsApiKeyEvents = {
|
|
|
11
11
|
name: "budgets-api-key-events",
|
|
12
12
|
description: `List apikey budget events
|
|
13
13
|
|
|
14
|
-
Returns recent threshold-alert and block events for the
|
|
14
|
+
Returns recent threshold-alert and block events for the apikey's budgets. Callable by cluster admins, or org admins for API keys in their own organization.`,
|
|
15
15
|
args,
|
|
16
16
|
tool: async (client, args, ctx) => {
|
|
17
17
|
const [result, apiCall] = await budgetsApiKeyEvents(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"budgetsApiKeyEvents.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/budgetsApiKeyEvents.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,2CAA2C;CAChE,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAgC;IACnE,IAAI,EAAE,wBAAwB;IAC9B,WAAW,EAAE;;
|
|
1
|
+
{"version":3,"file":"budgetsApiKeyEvents.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/budgetsApiKeyEvents.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,2CAA2C;CAChE,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAgC;IACnE,IAAI,EAAE,wBAAwB;IAC9B,WAAW,EAAE;;4JAE6I;IAC1J,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM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