@meetkai/mka1 0.55.4 → 0.55.5
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 +360 -360
- package/bin/mcp-server.js +1515 -1146
- package/bin/mcp-server.js.map +15 -9
- package/dist/commonjs/funcs/llmModelsGetOrgTokenQuota.d.ts +19 -0
- package/dist/commonjs/funcs/llmModelsGetOrgTokenQuota.d.ts.map +1 -0
- package/dist/commonjs/funcs/llmModelsGetOrgTokenQuota.js +132 -0
- package/dist/commonjs/funcs/llmModelsGetOrgTokenQuota.js.map +1 -0
- package/dist/commonjs/funcs/llmModelsSetOrgTokenQuota.d.ts +19 -0
- package/dist/commonjs/funcs/llmModelsSetOrgTokenQuota.d.ts.map +1 -0
- package/dist/commonjs/funcs/llmModelsSetOrgTokenQuota.js +133 -0
- package/dist/commonjs/funcs/llmModelsSetOrgTokenQuota.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +5 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/llmModelsGetOrgTokenQuota.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/llmModelsGetOrgTokenQuota.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/llmModelsGetOrgTokenQuota.js +64 -0
- package/dist/commonjs/mcp-server/tools/llmModelsGetOrgTokenQuota.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/llmModelsSetOrgTokenQuota.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/llmModelsSetOrgTokenQuota.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/llmModelsSetOrgTokenQuota.js +64 -0
- package/dist/commonjs/mcp-server/tools/llmModelsSetOrgTokenQuota.js.map +1 -0
- package/dist/commonjs/models/operations/createchatcompletionstream.d.ts +14 -14
- package/dist/commonjs/models/operations/createchatcompletionstream.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createchatcompletionstream.js +21 -25
- package/dist/commonjs/models/operations/createchatcompletionstream.js.map +1 -1
- package/dist/commonjs/models/operations/getorgtokenquota.d.ts +50 -0
- package/dist/commonjs/models/operations/getorgtokenquota.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getorgtokenquota.js +106 -0
- package/dist/commonjs/models/operations/getorgtokenquota.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listbudgets.d.ts +10 -10
- package/dist/commonjs/models/operations/listbudgets.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listbudgets.js +12 -12
- package/dist/commonjs/models/operations/listbudgets.js.map +1 -1
- package/dist/commonjs/models/operations/setorgtokenquota.d.ts +101 -0
- package/dist/commonjs/models/operations/setorgtokenquota.d.ts.map +1 -0
- package/dist/commonjs/models/operations/setorgtokenquota.js +180 -0
- package/dist/commonjs/models/operations/setorgtokenquota.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +2 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +2 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/llmModelsGetOrgTokenQuota.core.d.ts +12 -0
- package/dist/commonjs/react-query/llmModelsGetOrgTokenQuota.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/llmModelsGetOrgTokenQuota.core.js +34 -0
- package/dist/commonjs/react-query/llmModelsGetOrgTokenQuota.core.js.map +1 -0
- package/dist/commonjs/react-query/llmModelsGetOrgTokenQuota.d.ts +28 -0
- package/dist/commonjs/react-query/llmModelsGetOrgTokenQuota.d.ts.map +1 -0
- package/dist/commonjs/react-query/llmModelsGetOrgTokenQuota.js +60 -0
- package/dist/commonjs/react-query/llmModelsGetOrgTokenQuota.js.map +1 -0
- package/dist/commonjs/react-query/llmModelsSetOrgTokenQuota.d.ts +28 -0
- package/dist/commonjs/react-query/llmModelsSetOrgTokenQuota.d.ts.map +1 -0
- package/dist/commonjs/react-query/llmModelsSetOrgTokenQuota.js +47 -0
- package/dist/commonjs/react-query/llmModelsSetOrgTokenQuota.js.map +1 -0
- package/dist/commonjs/sdk/models.d.ts +14 -0
- package/dist/commonjs/sdk/models.d.ts.map +1 -1
- package/dist/commonjs/sdk/models.js +20 -0
- package/dist/commonjs/sdk/models.js.map +1 -1
- package/dist/esm/funcs/llmModelsGetOrgTokenQuota.d.ts +19 -0
- package/dist/esm/funcs/llmModelsGetOrgTokenQuota.d.ts.map +1 -0
- package/dist/esm/funcs/llmModelsGetOrgTokenQuota.js +96 -0
- package/dist/esm/funcs/llmModelsGetOrgTokenQuota.js.map +1 -0
- package/dist/esm/funcs/llmModelsSetOrgTokenQuota.d.ts +19 -0
- package/dist/esm/funcs/llmModelsSetOrgTokenQuota.d.ts.map +1 -0
- package/dist/esm/funcs/llmModelsSetOrgTokenQuota.js +97 -0
- package/dist/esm/funcs/llmModelsSetOrgTokenQuota.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +5 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/llmModelsGetOrgTokenQuota.d.ts +8 -0
- package/dist/esm/mcp-server/tools/llmModelsGetOrgTokenQuota.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/llmModelsGetOrgTokenQuota.js +28 -0
- package/dist/esm/mcp-server/tools/llmModelsGetOrgTokenQuota.js.map +1 -0
- package/dist/esm/mcp-server/tools/llmModelsSetOrgTokenQuota.d.ts +8 -0
- package/dist/esm/mcp-server/tools/llmModelsSetOrgTokenQuota.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/llmModelsSetOrgTokenQuota.js +28 -0
- package/dist/esm/mcp-server/tools/llmModelsSetOrgTokenQuota.js.map +1 -0
- package/dist/esm/models/operations/createchatcompletionstream.d.ts +14 -14
- package/dist/esm/models/operations/createchatcompletionstream.d.ts.map +1 -1
- package/dist/esm/models/operations/createchatcompletionstream.js +16 -20
- package/dist/esm/models/operations/createchatcompletionstream.js.map +1 -1
- package/dist/esm/models/operations/getorgtokenquota.d.ts +50 -0
- package/dist/esm/models/operations/getorgtokenquota.d.ts.map +1 -0
- package/dist/esm/models/operations/getorgtokenquota.js +66 -0
- package/dist/esm/models/operations/getorgtokenquota.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listbudgets.d.ts +10 -10
- package/dist/esm/models/operations/listbudgets.d.ts.map +1 -1
- package/dist/esm/models/operations/listbudgets.js +11 -11
- package/dist/esm/models/operations/listbudgets.js.map +1 -1
- package/dist/esm/models/operations/setorgtokenquota.d.ts +101 -0
- package/dist/esm/models/operations/setorgtokenquota.d.ts.map +1 -0
- package/dist/esm/models/operations/setorgtokenquota.js +134 -0
- package/dist/esm/models/operations/setorgtokenquota.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +2 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +2 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/llmModelsGetOrgTokenQuota.core.d.ts +12 -0
- package/dist/esm/react-query/llmModelsGetOrgTokenQuota.core.d.ts.map +1 -0
- package/dist/esm/react-query/llmModelsGetOrgTokenQuota.core.js +29 -0
- package/dist/esm/react-query/llmModelsGetOrgTokenQuota.core.js.map +1 -0
- package/dist/esm/react-query/llmModelsGetOrgTokenQuota.d.ts +28 -0
- package/dist/esm/react-query/llmModelsGetOrgTokenQuota.d.ts.map +1 -0
- package/dist/esm/react-query/llmModelsGetOrgTokenQuota.js +50 -0
- package/dist/esm/react-query/llmModelsGetOrgTokenQuota.js.map +1 -0
- package/dist/esm/react-query/llmModelsSetOrgTokenQuota.d.ts +28 -0
- package/dist/esm/react-query/llmModelsSetOrgTokenQuota.d.ts.map +1 -0
- package/dist/esm/react-query/llmModelsSetOrgTokenQuota.js +42 -0
- package/dist/esm/react-query/llmModelsSetOrgTokenQuota.js.map +1 -0
- package/dist/esm/sdk/models.d.ts +14 -0
- package/dist/esm/sdk/models.d.ts.map +1 -1
- package/dist/esm/sdk/models.js +20 -0
- package/dist/esm/sdk/models.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/llmModelsGetOrgTokenQuota.ts +181 -0
- package/src/funcs/llmModelsSetOrgTokenQuota.ts +182 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/llmModelsGetOrgTokenQuota.ts +37 -0
- package/src/mcp-server/tools/llmModelsSetOrgTokenQuota.ts +37 -0
- package/src/models/operations/createchatcompletionstream.ts +72 -60
- package/src/models/operations/getorgtokenquota.ts +145 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/listbudgets.ts +20 -20
- package/src/models/operations/setorgtokenquota.ts +287 -0
- package/src/react-query/index.ts +2 -0
- package/src/react-query/llmModelsGetOrgTokenQuota.core.ts +71 -0
- package/src/react-query/llmModelsGetOrgTokenQuota.ts +136 -0
- package/src/react-query/llmModelsSetOrgTokenQuota.ts +109 -0
- package/src/sdk/models.ts +36 -0
|
@@ -27,14 +27,14 @@ export type Three = {
|
|
|
27
27
|
retry?: number | undefined;
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
-
export type
|
|
30
|
+
export type ResponseBody2 = {
|
|
31
31
|
event: "done";
|
|
32
32
|
data?: string | null | undefined;
|
|
33
33
|
id?: string | undefined;
|
|
34
34
|
retry?: number | undefined;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
export type
|
|
37
|
+
export type ResponseBody1 = {
|
|
38
38
|
event: "message";
|
|
39
39
|
/**
|
|
40
40
|
* Represents a streamed chunk of a chat completion response
|
|
@@ -48,8 +48,8 @@ export type One = {
|
|
|
48
48
|
* OK
|
|
49
49
|
*/
|
|
50
50
|
export type CreateChatCompletionStreamResponseBody =
|
|
51
|
-
|
|
|
52
|
-
|
|
|
51
|
+
| ResponseBody1
|
|
52
|
+
| ResponseBody2
|
|
53
53
|
| Three
|
|
54
54
|
| discriminatedUnionTypes.Unknown<"event">;
|
|
55
55
|
|
|
@@ -152,15 +152,18 @@ export function threeFromJSON(
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
/** @internal */
|
|
155
|
-
export const
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
155
|
+
export const ResponseBody2$inboundSchema: z.ZodType<
|
|
156
|
+
ResponseBody2,
|
|
157
|
+
z.ZodTypeDef,
|
|
158
|
+
unknown
|
|
159
|
+
> = z.object({
|
|
160
|
+
event: z.literal("done"),
|
|
161
|
+
data: z.nullable(z.string()).optional(),
|
|
162
|
+
id: z.string().optional(),
|
|
163
|
+
retry: z.number().int().optional(),
|
|
164
|
+
});
|
|
162
165
|
/** @internal */
|
|
163
|
-
export type
|
|
166
|
+
export type ResponseBody2$Outbound = {
|
|
164
167
|
event: "done";
|
|
165
168
|
data?: string | null | undefined;
|
|
166
169
|
id?: string | undefined;
|
|
@@ -168,45 +171,51 @@ export type Two$Outbound = {
|
|
|
168
171
|
};
|
|
169
172
|
|
|
170
173
|
/** @internal */
|
|
171
|
-
export const
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
174
|
+
export const ResponseBody2$outboundSchema: z.ZodType<
|
|
175
|
+
ResponseBody2$Outbound,
|
|
176
|
+
z.ZodTypeDef,
|
|
177
|
+
ResponseBody2
|
|
178
|
+
> = z.object({
|
|
179
|
+
event: z.literal("done"),
|
|
180
|
+
data: z.nullable(z.string()).optional(),
|
|
181
|
+
id: z.string().optional(),
|
|
182
|
+
retry: z.number().int().optional(),
|
|
183
|
+
});
|
|
178
184
|
|
|
179
|
-
export function
|
|
180
|
-
return JSON.stringify(
|
|
185
|
+
export function responseBody2ToJSON(responseBody2: ResponseBody2): string {
|
|
186
|
+
return JSON.stringify(ResponseBody2$outboundSchema.parse(responseBody2));
|
|
181
187
|
}
|
|
182
|
-
export function
|
|
188
|
+
export function responseBody2FromJSON(
|
|
183
189
|
jsonString: string,
|
|
184
|
-
): SafeParseResult<
|
|
190
|
+
): SafeParseResult<ResponseBody2, SDKValidationError> {
|
|
185
191
|
return safeParse(
|
|
186
192
|
jsonString,
|
|
187
|
-
(x) =>
|
|
188
|
-
`Failed to parse '
|
|
193
|
+
(x) => ResponseBody2$inboundSchema.parse(JSON.parse(x)),
|
|
194
|
+
`Failed to parse 'ResponseBody2' from JSON`,
|
|
189
195
|
);
|
|
190
196
|
}
|
|
191
197
|
|
|
192
198
|
/** @internal */
|
|
193
|
-
export const
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
})
|
|
199
|
+
export const ResponseBody1$inboundSchema: z.ZodType<
|
|
200
|
+
ResponseBody1,
|
|
201
|
+
z.ZodTypeDef,
|
|
202
|
+
unknown
|
|
203
|
+
> = z.object({
|
|
204
|
+
event: z.literal("message"),
|
|
205
|
+
data: z.unknown().transform((v, ctx) => {
|
|
206
|
+
if (typeof v !== "string") return v;
|
|
207
|
+
try {
|
|
208
|
+
return JSON.parse(v);
|
|
209
|
+
} catch (err) {
|
|
210
|
+
ctx.addIssue({ code: "custom", message: `malformed json: ${err}` });
|
|
211
|
+
return z.NEVER;
|
|
212
|
+
}
|
|
213
|
+
}).pipe(components.OpenAIChatCompletionChunk$inboundSchema),
|
|
214
|
+
id: z.string().optional(),
|
|
215
|
+
retry: z.number().int().optional(),
|
|
216
|
+
});
|
|
208
217
|
/** @internal */
|
|
209
|
-
export type
|
|
218
|
+
export type ResponseBody1$Outbound = {
|
|
210
219
|
event: "message";
|
|
211
220
|
data: components.OpenAIChatCompletionChunk$Outbound;
|
|
212
221
|
id?: string | undefined;
|
|
@@ -214,24 +223,27 @@ export type One$Outbound = {
|
|
|
214
223
|
};
|
|
215
224
|
|
|
216
225
|
/** @internal */
|
|
217
|
-
export const
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
226
|
+
export const ResponseBody1$outboundSchema: z.ZodType<
|
|
227
|
+
ResponseBody1$Outbound,
|
|
228
|
+
z.ZodTypeDef,
|
|
229
|
+
ResponseBody1
|
|
230
|
+
> = z.object({
|
|
231
|
+
event: z.literal("message"),
|
|
232
|
+
data: components.OpenAIChatCompletionChunk$outboundSchema,
|
|
233
|
+
id: z.string().optional(),
|
|
234
|
+
retry: z.number().int().optional(),
|
|
235
|
+
});
|
|
224
236
|
|
|
225
|
-
export function
|
|
226
|
-
return JSON.stringify(
|
|
237
|
+
export function responseBody1ToJSON(responseBody1: ResponseBody1): string {
|
|
238
|
+
return JSON.stringify(ResponseBody1$outboundSchema.parse(responseBody1));
|
|
227
239
|
}
|
|
228
|
-
export function
|
|
240
|
+
export function responseBody1FromJSON(
|
|
229
241
|
jsonString: string,
|
|
230
|
-
): SafeParseResult<
|
|
242
|
+
): SafeParseResult<ResponseBody1, SDKValidationError> {
|
|
231
243
|
return safeParse(
|
|
232
244
|
jsonString,
|
|
233
|
-
(x) =>
|
|
234
|
-
`Failed to parse '
|
|
245
|
+
(x) => ResponseBody1$inboundSchema.parse(JSON.parse(x)),
|
|
246
|
+
`Failed to parse 'ResponseBody1' from JSON`,
|
|
235
247
|
);
|
|
236
248
|
}
|
|
237
249
|
|
|
@@ -241,14 +253,14 @@ export const CreateChatCompletionStreamResponseBody$inboundSchema: z.ZodType<
|
|
|
241
253
|
z.ZodTypeDef,
|
|
242
254
|
unknown
|
|
243
255
|
> = discriminatedUnion("event", {
|
|
244
|
-
message: z.lazy(() =>
|
|
245
|
-
done: z.lazy(() =>
|
|
256
|
+
message: z.lazy(() => ResponseBody1$inboundSchema),
|
|
257
|
+
done: z.lazy(() => ResponseBody2$inboundSchema),
|
|
246
258
|
error: z.lazy(() => Three$inboundSchema),
|
|
247
259
|
});
|
|
248
260
|
/** @internal */
|
|
249
261
|
export type CreateChatCompletionStreamResponseBody$Outbound =
|
|
250
|
-
|
|
|
251
|
-
|
|
|
262
|
+
| ResponseBody1$Outbound
|
|
263
|
+
| ResponseBody2$Outbound
|
|
252
264
|
| Three$Outbound;
|
|
253
265
|
|
|
254
266
|
/** @internal */
|
|
@@ -257,8 +269,8 @@ export const CreateChatCompletionStreamResponseBody$outboundSchema: z.ZodType<
|
|
|
257
269
|
z.ZodTypeDef,
|
|
258
270
|
CreateChatCompletionStreamResponseBody
|
|
259
271
|
> = z.union([
|
|
260
|
-
z.lazy(() =>
|
|
261
|
-
z.lazy(() =>
|
|
272
|
+
z.lazy(() => ResponseBody1$outboundSchema),
|
|
273
|
+
z.lazy(() => ResponseBody2$outboundSchema),
|
|
262
274
|
z.lazy(() => Three$outboundSchema),
|
|
263
275
|
]);
|
|
264
276
|
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type GetOrgTokenQuotaRequest = {
|
|
13
|
+
orgId: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export const GetOrgTokenQuotaPeriod = {
|
|
17
|
+
Minute: "minute",
|
|
18
|
+
Day: "day",
|
|
19
|
+
Month: "month",
|
|
20
|
+
} as const;
|
|
21
|
+
export type GetOrgTokenQuotaPeriod = ClosedEnum<typeof GetOrgTokenQuotaPeriod>;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* OK
|
|
25
|
+
*/
|
|
26
|
+
export type GetOrgTokenQuotaResponseBody = {
|
|
27
|
+
orgId: string;
|
|
28
|
+
enabled: boolean;
|
|
29
|
+
limit: number | null;
|
|
30
|
+
period: GetOrgTokenQuotaPeriod | null;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const GetOrgTokenQuotaRequest$inboundSchema: z.ZodType<
|
|
35
|
+
GetOrgTokenQuotaRequest,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
unknown
|
|
38
|
+
> = z.object({
|
|
39
|
+
org_id: z.string(),
|
|
40
|
+
}).transform((v) => {
|
|
41
|
+
return remap$(v, {
|
|
42
|
+
"org_id": "orgId",
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
/** @internal */
|
|
46
|
+
export type GetOrgTokenQuotaRequest$Outbound = {
|
|
47
|
+
org_id: string;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const GetOrgTokenQuotaRequest$outboundSchema: z.ZodType<
|
|
52
|
+
GetOrgTokenQuotaRequest$Outbound,
|
|
53
|
+
z.ZodTypeDef,
|
|
54
|
+
GetOrgTokenQuotaRequest
|
|
55
|
+
> = z.object({
|
|
56
|
+
orgId: z.string(),
|
|
57
|
+
}).transform((v) => {
|
|
58
|
+
return remap$(v, {
|
|
59
|
+
orgId: "org_id",
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
export function getOrgTokenQuotaRequestToJSON(
|
|
64
|
+
getOrgTokenQuotaRequest: GetOrgTokenQuotaRequest,
|
|
65
|
+
): string {
|
|
66
|
+
return JSON.stringify(
|
|
67
|
+
GetOrgTokenQuotaRequest$outboundSchema.parse(getOrgTokenQuotaRequest),
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
export function getOrgTokenQuotaRequestFromJSON(
|
|
71
|
+
jsonString: string,
|
|
72
|
+
): SafeParseResult<GetOrgTokenQuotaRequest, SDKValidationError> {
|
|
73
|
+
return safeParse(
|
|
74
|
+
jsonString,
|
|
75
|
+
(x) => GetOrgTokenQuotaRequest$inboundSchema.parse(JSON.parse(x)),
|
|
76
|
+
`Failed to parse 'GetOrgTokenQuotaRequest' from JSON`,
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** @internal */
|
|
81
|
+
export const GetOrgTokenQuotaPeriod$inboundSchema: z.ZodNativeEnum<
|
|
82
|
+
typeof GetOrgTokenQuotaPeriod
|
|
83
|
+
> = z.nativeEnum(GetOrgTokenQuotaPeriod);
|
|
84
|
+
/** @internal */
|
|
85
|
+
export const GetOrgTokenQuotaPeriod$outboundSchema: z.ZodNativeEnum<
|
|
86
|
+
typeof GetOrgTokenQuotaPeriod
|
|
87
|
+
> = GetOrgTokenQuotaPeriod$inboundSchema;
|
|
88
|
+
|
|
89
|
+
/** @internal */
|
|
90
|
+
export const GetOrgTokenQuotaResponseBody$inboundSchema: z.ZodType<
|
|
91
|
+
GetOrgTokenQuotaResponseBody,
|
|
92
|
+
z.ZodTypeDef,
|
|
93
|
+
unknown
|
|
94
|
+
> = z.object({
|
|
95
|
+
org_id: z.string(),
|
|
96
|
+
enabled: z.boolean(),
|
|
97
|
+
limit: z.nullable(z.number().int()),
|
|
98
|
+
period: z.nullable(GetOrgTokenQuotaPeriod$inboundSchema),
|
|
99
|
+
}).transform((v) => {
|
|
100
|
+
return remap$(v, {
|
|
101
|
+
"org_id": "orgId",
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
/** @internal */
|
|
105
|
+
export type GetOrgTokenQuotaResponseBody$Outbound = {
|
|
106
|
+
org_id: string;
|
|
107
|
+
enabled: boolean;
|
|
108
|
+
limit: number | null;
|
|
109
|
+
period: string | null;
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
/** @internal */
|
|
113
|
+
export const GetOrgTokenQuotaResponseBody$outboundSchema: z.ZodType<
|
|
114
|
+
GetOrgTokenQuotaResponseBody$Outbound,
|
|
115
|
+
z.ZodTypeDef,
|
|
116
|
+
GetOrgTokenQuotaResponseBody
|
|
117
|
+
> = z.object({
|
|
118
|
+
orgId: z.string(),
|
|
119
|
+
enabled: z.boolean(),
|
|
120
|
+
limit: z.nullable(z.number().int()),
|
|
121
|
+
period: z.nullable(GetOrgTokenQuotaPeriod$outboundSchema),
|
|
122
|
+
}).transform((v) => {
|
|
123
|
+
return remap$(v, {
|
|
124
|
+
orgId: "org_id",
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
export function getOrgTokenQuotaResponseBodyToJSON(
|
|
129
|
+
getOrgTokenQuotaResponseBody: GetOrgTokenQuotaResponseBody,
|
|
130
|
+
): string {
|
|
131
|
+
return JSON.stringify(
|
|
132
|
+
GetOrgTokenQuotaResponseBody$outboundSchema.parse(
|
|
133
|
+
getOrgTokenQuotaResponseBody,
|
|
134
|
+
),
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
export function getOrgTokenQuotaResponseBodyFromJSON(
|
|
138
|
+
jsonString: string,
|
|
139
|
+
): SafeParseResult<GetOrgTokenQuotaResponseBody, SDKValidationError> {
|
|
140
|
+
return safeParse(
|
|
141
|
+
jsonString,
|
|
142
|
+
(x) => GetOrgTokenQuotaResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
143
|
+
`Failed to parse 'GetOrgTokenQuotaResponseBody' from JSON`,
|
|
144
|
+
);
|
|
145
|
+
}
|
|
@@ -224,6 +224,7 @@ export * from "./getorgbudgets.js";
|
|
|
224
224
|
export * from "./getorgbyid.js";
|
|
225
225
|
export * from "./getorgquota.js";
|
|
226
226
|
export * from "./getorgratelimit.js";
|
|
227
|
+
export * from "./getorgtokenquota.js";
|
|
227
228
|
export * from "./getpendinginvitation.js";
|
|
228
229
|
export * from "./getpricing.js";
|
|
229
230
|
export * from "./getprompt.js";
|
|
@@ -405,6 +406,7 @@ export * from "./setfeatureflagenvironmentstate.js";
|
|
|
405
406
|
export * from "./setorganizationbillingenabled.js";
|
|
406
407
|
export * from "./setorgbudget.js";
|
|
407
408
|
export * from "./setorgprice.js";
|
|
409
|
+
export * from "./setorgtokenquota.js";
|
|
408
410
|
export * from "./setsandboxconnectorapikey.js";
|
|
409
411
|
export * from "./setsandboxconnectortools.js";
|
|
410
412
|
export * from "./setteambudget.js";
|
|
@@ -27,12 +27,12 @@ export const DataOwner = {
|
|
|
27
27
|
} as const;
|
|
28
28
|
export type DataOwner = ClosedEnum<typeof DataOwner>;
|
|
29
29
|
|
|
30
|
-
export const
|
|
30
|
+
export const ListBudgetsDataPeriod = {
|
|
31
31
|
Daily: "daily",
|
|
32
32
|
Weekly: "weekly",
|
|
33
33
|
Monthly: "monthly",
|
|
34
34
|
} as const;
|
|
35
|
-
export type
|
|
35
|
+
export type ListBudgetsDataPeriod = ClosedEnum<typeof ListBudgetsDataPeriod>;
|
|
36
36
|
|
|
37
37
|
export const DataAction = {
|
|
38
38
|
Alert: "alert",
|
|
@@ -51,7 +51,7 @@ export type Data2 = {
|
|
|
51
51
|
scopeId: string;
|
|
52
52
|
scopeOrgId: string | null;
|
|
53
53
|
owner: DataOwner;
|
|
54
|
-
period:
|
|
54
|
+
period: ListBudgetsDataPeriod;
|
|
55
55
|
limit: number;
|
|
56
56
|
thresholds: Array<DataThresholds>;
|
|
57
57
|
alertWebhookUrl: string | null;
|
|
@@ -75,12 +75,12 @@ export const ListBudgetsDataOwner = {
|
|
|
75
75
|
} as const;
|
|
76
76
|
export type ListBudgetsDataOwner = ClosedEnum<typeof ListBudgetsDataOwner>;
|
|
77
77
|
|
|
78
|
-
export const
|
|
78
|
+
export const DataPeriod = {
|
|
79
79
|
Daily: "daily",
|
|
80
80
|
Weekly: "weekly",
|
|
81
81
|
Monthly: "monthly",
|
|
82
82
|
} as const;
|
|
83
|
-
export type
|
|
83
|
+
export type DataPeriod = ClosedEnum<typeof DataPeriod>;
|
|
84
84
|
|
|
85
85
|
export const ListBudgetsDataAction = {
|
|
86
86
|
Alert: "alert",
|
|
@@ -119,7 +119,7 @@ export type Data1 = {
|
|
|
119
119
|
scopeId: string;
|
|
120
120
|
scopeOrgId: string | null;
|
|
121
121
|
owner: ListBudgetsDataOwner;
|
|
122
|
-
period:
|
|
122
|
+
period: DataPeriod;
|
|
123
123
|
limit: number;
|
|
124
124
|
thresholds: Array<ListBudgetsDataThresholds>;
|
|
125
125
|
alertWebhookUrl: string | null;
|
|
@@ -153,11 +153,13 @@ export const DataOwner$outboundSchema: z.ZodNativeEnum<typeof DataOwner> =
|
|
|
153
153
|
DataOwner$inboundSchema;
|
|
154
154
|
|
|
155
155
|
/** @internal */
|
|
156
|
-
export const
|
|
157
|
-
|
|
156
|
+
export const ListBudgetsDataPeriod$inboundSchema: z.ZodNativeEnum<
|
|
157
|
+
typeof ListBudgetsDataPeriod
|
|
158
|
+
> = z.nativeEnum(ListBudgetsDataPeriod);
|
|
158
159
|
/** @internal */
|
|
159
|
-
export const
|
|
160
|
-
|
|
160
|
+
export const ListBudgetsDataPeriod$outboundSchema: z.ZodNativeEnum<
|
|
161
|
+
typeof ListBudgetsDataPeriod
|
|
162
|
+
> = ListBudgetsDataPeriod$inboundSchema;
|
|
161
163
|
|
|
162
164
|
/** @internal */
|
|
163
165
|
export const DataAction$inboundSchema: z.ZodNativeEnum<typeof DataAction> = z
|
|
@@ -212,7 +214,7 @@ export const Data2$inboundSchema: z.ZodType<Data2, z.ZodTypeDef, unknown> = z
|
|
|
212
214
|
scope_id: z.string(),
|
|
213
215
|
scope_org_id: z.nullable(z.string()),
|
|
214
216
|
owner: DataOwner$inboundSchema,
|
|
215
|
-
period:
|
|
217
|
+
period: ListBudgetsDataPeriod$inboundSchema,
|
|
216
218
|
limit: z.number(),
|
|
217
219
|
thresholds: z.array(z.lazy(() => DataThresholds$inboundSchema)),
|
|
218
220
|
alert_webhook_url: z.nullable(z.string()),
|
|
@@ -247,7 +249,7 @@ export const Data2$outboundSchema: z.ZodType<
|
|
|
247
249
|
scopeId: z.string(),
|
|
248
250
|
scopeOrgId: z.nullable(z.string()),
|
|
249
251
|
owner: DataOwner$outboundSchema,
|
|
250
|
-
period:
|
|
252
|
+
period: ListBudgetsDataPeriod$outboundSchema,
|
|
251
253
|
limit: z.number(),
|
|
252
254
|
thresholds: z.array(z.lazy(() => DataThresholds$outboundSchema)),
|
|
253
255
|
alertWebhookUrl: z.nullable(z.string()),
|
|
@@ -289,13 +291,11 @@ export const ListBudgetsDataOwner$outboundSchema: z.ZodNativeEnum<
|
|
|
289
291
|
> = ListBudgetsDataOwner$inboundSchema;
|
|
290
292
|
|
|
291
293
|
/** @internal */
|
|
292
|
-
export const
|
|
293
|
-
|
|
294
|
-
> = z.nativeEnum(ListBudgetsDataPeriod);
|
|
294
|
+
export const DataPeriod$inboundSchema: z.ZodNativeEnum<typeof DataPeriod> = z
|
|
295
|
+
.nativeEnum(DataPeriod);
|
|
295
296
|
/** @internal */
|
|
296
|
-
export const
|
|
297
|
-
|
|
298
|
-
> = ListBudgetsDataPeriod$inboundSchema;
|
|
297
|
+
export const DataPeriod$outboundSchema: z.ZodNativeEnum<typeof DataPeriod> =
|
|
298
|
+
DataPeriod$inboundSchema;
|
|
299
299
|
|
|
300
300
|
/** @internal */
|
|
301
301
|
export const ListBudgetsDataAction$inboundSchema: z.ZodNativeEnum<
|
|
@@ -418,7 +418,7 @@ export const Data1$inboundSchema: z.ZodType<Data1, z.ZodTypeDef, unknown> = z
|
|
|
418
418
|
scope_id: z.string(),
|
|
419
419
|
scope_org_id: z.nullable(z.string()),
|
|
420
420
|
owner: ListBudgetsDataOwner$inboundSchema,
|
|
421
|
-
period:
|
|
421
|
+
period: DataPeriod$inboundSchema,
|
|
422
422
|
limit: z.number(),
|
|
423
423
|
thresholds: z.array(z.lazy(() => ListBudgetsDataThresholds$inboundSchema)),
|
|
424
424
|
alert_webhook_url: z.nullable(z.string()),
|
|
@@ -455,7 +455,7 @@ export const Data1$outboundSchema: z.ZodType<
|
|
|
455
455
|
scopeId: z.string(),
|
|
456
456
|
scopeOrgId: z.nullable(z.string()),
|
|
457
457
|
owner: ListBudgetsDataOwner$outboundSchema,
|
|
458
|
-
period:
|
|
458
|
+
period: DataPeriod$outboundSchema,
|
|
459
459
|
limit: z.number(),
|
|
460
460
|
thresholds: z.array(z.lazy(() => ListBudgetsDataThresholds$outboundSchema)),
|
|
461
461
|
alertWebhookUrl: z.nullable(z.string()),
|