@meetkai/mka1 0.53.0 → 0.53.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mcp-server.js +49 -84
- package/bin/mcp-server.js.map +21 -22
- package/dist/commonjs/funcs/usageSandbox.d.ts +1 -1
- package/dist/commonjs/funcs/usageSandbox.js +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- 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/usageSandbox.js +1 -1
- package/dist/commonjs/mcp-server/tools/usageSandbox.js.map +1 -1
- package/dist/commonjs/models/components/agent.d.ts +5 -3
- package/dist/commonjs/models/components/agent.d.ts.map +1 -1
- package/dist/commonjs/models/components/agent.js +2 -3
- package/dist/commonjs/models/components/agent.js.map +1 -1
- package/dist/commonjs/models/components/agentconnector.d.ts +7 -5
- package/dist/commonjs/models/components/agentconnector.d.ts.map +1 -1
- package/dist/commonjs/models/components/agentconnector.js +4 -5
- package/dist/commonjs/models/components/agentconnector.js.map +1 -1
- package/dist/commonjs/models/components/agentrun.d.ts +11 -9
- package/dist/commonjs/models/components/agentrun.d.ts.map +1 -1
- package/dist/commonjs/models/components/agentrun.js +8 -9
- package/dist/commonjs/models/components/agentrun.js.map +1 -1
- package/dist/commonjs/models/components/agentschedule.d.ts +7 -5
- package/dist/commonjs/models/components/agentschedule.d.ts.map +1 -1
- package/dist/commonjs/models/components/agentschedule.js +4 -5
- package/dist/commonjs/models/components/agentschedule.js.map +1 -1
- package/dist/commonjs/models/components/agentversion.d.ts +5 -3
- package/dist/commonjs/models/components/agentversion.d.ts.map +1 -1
- package/dist/commonjs/models/components/agentversion.js +2 -3
- package/dist/commonjs/models/components/agentversion.js.map +1 -1
- package/dist/commonjs/models/components/createagentrequest.d.ts +5 -3
- package/dist/commonjs/models/components/createagentrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/createagentrequest.js +2 -3
- package/dist/commonjs/models/components/createagentrequest.js.map +1 -1
- package/dist/commonjs/models/components/createagentrunrequest.d.ts +5 -3
- package/dist/commonjs/models/components/createagentrunrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/createagentrunrequest.js +2 -3
- package/dist/commonjs/models/components/createagentrunrequest.js.map +1 -1
- package/dist/commonjs/models/components/createagentschedulerequest.d.ts +5 -3
- package/dist/commonjs/models/components/createagentschedulerequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/createagentschedulerequest.js +2 -3
- package/dist/commonjs/models/components/createagentschedulerequest.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +0 -1
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +0 -1
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/tooldefinition.d.ts +16 -11
- package/dist/commonjs/models/components/tooldefinition.d.ts.map +1 -1
- package/dist/commonjs/models/components/tooldefinition.js +10 -11
- package/dist/commonjs/models/components/tooldefinition.js.map +1 -1
- package/dist/commonjs/models/components/updateagentrequest.d.ts +5 -3
- package/dist/commonjs/models/components/updateagentrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/updateagentrequest.js +2 -3
- package/dist/commonjs/models/components/updateagentrequest.js.map +1 -1
- package/dist/commonjs/models/components/updateagentschedulerequest.d.ts +2 -3
- package/dist/commonjs/models/components/updateagentschedulerequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/updateagentschedulerequest.js +2 -3
- package/dist/commonjs/models/components/updateagentschedulerequest.js.map +1 -1
- package/dist/commonjs/models/errors/errorenvelope.d.ts +2 -3
- package/dist/commonjs/models/errors/errorenvelope.d.ts.map +1 -1
- package/dist/commonjs/models/errors/errorenvelope.js +2 -3
- package/dist/commonjs/models/errors/errorenvelope.js.map +1 -1
- package/dist/commonjs/react-query/usageSandbox.d.ts +2 -2
- package/dist/commonjs/react-query/usageSandbox.js +2 -2
- package/dist/commonjs/sdk/usage.d.ts +1 -1
- package/dist/commonjs/sdk/usage.js +1 -1
- package/dist/esm/funcs/usageSandbox.d.ts +1 -1
- package/dist/esm/funcs/usageSandbox.js +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- 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/usageSandbox.js +1 -1
- package/dist/esm/mcp-server/tools/usageSandbox.js.map +1 -1
- package/dist/esm/models/components/agent.d.ts +5 -3
- package/dist/esm/models/components/agent.d.ts.map +1 -1
- package/dist/esm/models/components/agent.js +2 -3
- package/dist/esm/models/components/agent.js.map +1 -1
- package/dist/esm/models/components/agentconnector.d.ts +7 -5
- package/dist/esm/models/components/agentconnector.d.ts.map +1 -1
- package/dist/esm/models/components/agentconnector.js +4 -5
- package/dist/esm/models/components/agentconnector.js.map +1 -1
- package/dist/esm/models/components/agentrun.d.ts +11 -9
- package/dist/esm/models/components/agentrun.d.ts.map +1 -1
- package/dist/esm/models/components/agentrun.js +8 -9
- package/dist/esm/models/components/agentrun.js.map +1 -1
- package/dist/esm/models/components/agentschedule.d.ts +7 -5
- package/dist/esm/models/components/agentschedule.d.ts.map +1 -1
- package/dist/esm/models/components/agentschedule.js +4 -5
- package/dist/esm/models/components/agentschedule.js.map +1 -1
- package/dist/esm/models/components/agentversion.d.ts +5 -3
- package/dist/esm/models/components/agentversion.d.ts.map +1 -1
- package/dist/esm/models/components/agentversion.js +2 -3
- package/dist/esm/models/components/agentversion.js.map +1 -1
- package/dist/esm/models/components/createagentrequest.d.ts +5 -3
- package/dist/esm/models/components/createagentrequest.d.ts.map +1 -1
- package/dist/esm/models/components/createagentrequest.js +2 -3
- package/dist/esm/models/components/createagentrequest.js.map +1 -1
- package/dist/esm/models/components/createagentrunrequest.d.ts +5 -3
- package/dist/esm/models/components/createagentrunrequest.d.ts.map +1 -1
- package/dist/esm/models/components/createagentrunrequest.js +2 -3
- package/dist/esm/models/components/createagentrunrequest.js.map +1 -1
- package/dist/esm/models/components/createagentschedulerequest.d.ts +5 -3
- package/dist/esm/models/components/createagentschedulerequest.d.ts.map +1 -1
- package/dist/esm/models/components/createagentschedulerequest.js +2 -3
- package/dist/esm/models/components/createagentschedulerequest.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +0 -1
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +0 -1
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/tooldefinition.d.ts +16 -11
- package/dist/esm/models/components/tooldefinition.d.ts.map +1 -1
- package/dist/esm/models/components/tooldefinition.js +10 -11
- package/dist/esm/models/components/tooldefinition.js.map +1 -1
- package/dist/esm/models/components/updateagentrequest.d.ts +5 -3
- package/dist/esm/models/components/updateagentrequest.d.ts.map +1 -1
- package/dist/esm/models/components/updateagentrequest.js +2 -3
- package/dist/esm/models/components/updateagentrequest.js.map +1 -1
- package/dist/esm/models/components/updateagentschedulerequest.d.ts +2 -3
- package/dist/esm/models/components/updateagentschedulerequest.d.ts.map +1 -1
- package/dist/esm/models/components/updateagentschedulerequest.js +2 -3
- package/dist/esm/models/components/updateagentschedulerequest.js.map +1 -1
- package/dist/esm/models/errors/errorenvelope.d.ts +2 -3
- package/dist/esm/models/errors/errorenvelope.d.ts.map +1 -1
- package/dist/esm/models/errors/errorenvelope.js +2 -3
- package/dist/esm/models/errors/errorenvelope.js.map +1 -1
- package/dist/esm/react-query/usageSandbox.d.ts +2 -2
- package/dist/esm/react-query/usageSandbox.js +2 -2
- package/dist/esm/sdk/usage.d.ts +1 -1
- package/dist/esm/sdk/usage.js +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/usageSandbox.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/usageSandbox.ts +1 -1
- package/src/models/components/agent.ts +7 -10
- package/src/models/components/agentconnector.ts +11 -14
- package/src/models/components/agentrun.ts +19 -22
- package/src/models/components/agentschedule.ts +11 -14
- package/src/models/components/agentversion.ts +7 -10
- package/src/models/components/createagentrequest.ts +7 -10
- package/src/models/components/createagentrunrequest.ts +7 -10
- package/src/models/components/createagentschedulerequest.ts +7 -10
- package/src/models/components/index.ts +0 -1
- package/src/models/components/tooldefinition.ts +26 -26
- package/src/models/components/updateagentrequest.ts +7 -10
- package/src/models/components/updateagentschedulerequest.ts +4 -10
- package/src/models/errors/errorenvelope.ts +4 -5
- package/src/react-query/usageSandbox.ts +2 -2
- package/src/sdk/usage.ts +1 -1
- package/dist/commonjs/models/components/jsonvalue.d.ts +0 -17
- package/dist/commonjs/models/components/jsonvalue.d.ts.map +0 -1
- package/dist/commonjs/models/components/jsonvalue.js +0 -68
- package/dist/commonjs/models/components/jsonvalue.js.map +0 -1
- package/dist/esm/models/components/jsonvalue.d.ts +0 -17
- package/dist/esm/models/components/jsonvalue.d.ts.map +0 -1
- package/dist/esm/models/components/jsonvalue.js +0 -30
- package/dist/esm/models/components/jsonvalue.js.map +0 -1
- package/src/models/components/jsonvalue.ts +0 -65
|
@@ -5,13 +5,12 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import * as components from "../components/index.js";
|
|
9
8
|
import { SDKError } from "./sdkerror.js";
|
|
10
9
|
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
11
10
|
|
|
12
11
|
export type ErrorT = {
|
|
13
12
|
message: string;
|
|
14
|
-
details?:
|
|
13
|
+
details?: any | null | undefined;
|
|
15
14
|
};
|
|
16
15
|
|
|
17
16
|
export type ErrorEnvelopeData = {
|
|
@@ -42,12 +41,12 @@ export class ErrorEnvelope extends SDKError {
|
|
|
42
41
|
export const ErrorT$inboundSchema: z.ZodType<ErrorT, z.ZodTypeDef, unknown> = z
|
|
43
42
|
.object({
|
|
44
43
|
message: z.string(),
|
|
45
|
-
details: z.nullable(
|
|
44
|
+
details: z.nullable(z.any()).optional(),
|
|
46
45
|
});
|
|
47
46
|
/** @internal */
|
|
48
47
|
export type ErrorT$Outbound = {
|
|
49
48
|
message: string;
|
|
50
|
-
details?:
|
|
49
|
+
details?: any | null | undefined;
|
|
51
50
|
};
|
|
52
51
|
|
|
53
52
|
/** @internal */
|
|
@@ -57,7 +56,7 @@ export const ErrorT$outboundSchema: z.ZodType<
|
|
|
57
56
|
ErrorT
|
|
58
57
|
> = z.object({
|
|
59
58
|
message: z.string(),
|
|
60
|
-
details: z.nullable(
|
|
59
|
+
details: z.nullable(z.any()).optional(),
|
|
61
60
|
});
|
|
62
61
|
|
|
63
62
|
export function errorToJSON(errorT: ErrorT): string {
|
|
@@ -57,7 +57,7 @@ export type UsageSandboxQueryError =
|
|
|
57
57
|
* Get Sandbox Usage
|
|
58
58
|
*
|
|
59
59
|
* @remarks
|
|
60
|
-
* Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
|
|
60
|
+
* Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Buckets are calendar-aligned in UTC: `start_time` is snapped down and `end_time` snapped up to the nearest bucket-width boundary, so the first and last buckets may extend slightly beyond the requested range. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
|
|
61
61
|
*/
|
|
62
62
|
export function useUsageSandbox(
|
|
63
63
|
request: operations.GetSandboxUsageRequest,
|
|
@@ -78,7 +78,7 @@ export function useUsageSandbox(
|
|
|
78
78
|
* Get Sandbox Usage
|
|
79
79
|
*
|
|
80
80
|
* @remarks
|
|
81
|
-
* Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
|
|
81
|
+
* Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Buckets are calendar-aligned in UTC: `start_time` is snapped down and `end_time` snapped up to the nearest bucket-width boundary, so the first and last buckets may extend slightly beyond the requested range. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
|
|
82
82
|
*/
|
|
83
83
|
export function useUsageSandboxSuspense(
|
|
84
84
|
request: operations.GetSandboxUsageRequest,
|
package/src/sdk/usage.ts
CHANGED
|
@@ -14,7 +14,7 @@ export class Usage extends ClientSDK {
|
|
|
14
14
|
* Get Sandbox Usage
|
|
15
15
|
*
|
|
16
16
|
* @remarks
|
|
17
|
-
* Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
|
|
17
|
+
* Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Buckets are calendar-aligned in UTC: `start_time` is snapped down and `end_time` snapped up to the nearest bucket-width boundary, so the first and last buckets may extend slightly beyond the requested range. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
|
|
18
18
|
*/
|
|
19
19
|
async sandbox(
|
|
20
20
|
request: operations.GetSandboxUsageRequest,
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
export type JsonValue = string | number | number | boolean | Array<JsonValue | null> | {
|
|
5
|
-
[k: string]: JsonValue | null;
|
|
6
|
-
};
|
|
7
|
-
/** @internal */
|
|
8
|
-
export declare const JsonValue$inboundSchema: z.ZodType<JsonValue, z.ZodTypeDef, unknown>;
|
|
9
|
-
/** @internal */
|
|
10
|
-
export type JsonValue$Outbound = string | number | number | boolean | Array<JsonValue$Outbound | null> | {
|
|
11
|
-
[k: string]: JsonValue$Outbound | null;
|
|
12
|
-
};
|
|
13
|
-
/** @internal */
|
|
14
|
-
export declare const JsonValue$outboundSchema: z.ZodType<JsonValue$Outbound, z.ZodTypeDef, JsonValue>;
|
|
15
|
-
export declare function jsonValueToJSON(jsonValue: JsonValue): string;
|
|
16
|
-
export declare function jsonValueFromJSON(jsonString: string): SafeParseResult<JsonValue, SDKValidationError>;
|
|
17
|
-
//# sourceMappingURL=jsonvalue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jsonvalue.d.ts","sourceRoot":"","sources":["../../../../src/models/components/jsonvalue.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC,GACvB;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAA;CAAE,CAAC;AAEtC,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,OAAO,CAC7C,SAAS,EACT,CAAC,CAAC,UAAU,EACZ,OAAO,CAQP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,kBAAkB,GAC1B,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,CAAC,kBAAkB,GAAG,IAAI,CAAC,GAChC;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,kBAAkB,GAAG,IAAI,CAAA;CAAE,CAAC;AAE/C,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,OAAO,CAC9C,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,SAAS,CAQT,CAAC;AAEH,wBAAgB,eAAe,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAE5D;AACD,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,SAAS,EAAE,kBAAkB,CAAC,CAMhD"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.JsonValue$outboundSchema = exports.JsonValue$inboundSchema = void 0;
|
|
40
|
-
exports.jsonValueToJSON = jsonValueToJSON;
|
|
41
|
-
exports.jsonValueFromJSON = jsonValueFromJSON;
|
|
42
|
-
const z = __importStar(require("zod/v3"));
|
|
43
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
-
/** @internal */
|
|
45
|
-
exports.JsonValue$inboundSchema = z.union([
|
|
46
|
-
z.string(),
|
|
47
|
-
z.number(),
|
|
48
|
-
z.number().int(),
|
|
49
|
-
z.boolean(),
|
|
50
|
-
z.array(z.nullable(z.lazy(() => exports.JsonValue$inboundSchema))),
|
|
51
|
-
z.record(z.nullable(z.lazy(() => exports.JsonValue$inboundSchema))),
|
|
52
|
-
]);
|
|
53
|
-
/** @internal */
|
|
54
|
-
exports.JsonValue$outboundSchema = z.union([
|
|
55
|
-
z.string(),
|
|
56
|
-
z.number(),
|
|
57
|
-
z.number().int(),
|
|
58
|
-
z.boolean(),
|
|
59
|
-
z.array(z.nullable(z.lazy(() => exports.JsonValue$outboundSchema))),
|
|
60
|
-
z.record(z.nullable(z.lazy(() => exports.JsonValue$outboundSchema))),
|
|
61
|
-
]);
|
|
62
|
-
function jsonValueToJSON(jsonValue) {
|
|
63
|
-
return JSON.stringify(exports.JsonValue$outboundSchema.parse(jsonValue));
|
|
64
|
-
}
|
|
65
|
-
function jsonValueFromJSON(jsonString) {
|
|
66
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.JsonValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'JsonValue' from JSON`);
|
|
67
|
-
}
|
|
68
|
-
//# sourceMappingURL=jsonvalue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jsonvalue.js","sourceRoot":"","sources":["../../../../src/models/components/jsonvalue.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDH,0CAEC;AACD,8CAQC;AA5DD,0CAA4B;AAC5B,qDAAiD;AAYjD,gBAAgB;AACH,QAAA,uBAAuB,GAIhC,CAAC,CAAC,KAAK,CAAC;IACV,CAAC,CAAC,MAAM,EAAE;IACV,CAAC,CAAC,MAAM,EAAE;IACV,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAChB,CAAC,CAAC,OAAO,EAAE;IACX,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,+BAAuB,CAAC,CAAC,CAAC;IAC1D,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,+BAAuB,CAAC,CAAC,CAAC;CAC5D,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,wBAAwB,GAIjC,CAAC,CAAC,KAAK,CAAC;IACV,CAAC,CAAC,MAAM,EAAE;IACV,CAAC,CAAC,MAAM,EAAE;IACV,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAChB,CAAC,CAAC,OAAO,EAAE;IACX,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,gCAAwB,CAAC,CAAC,CAAC;IAC3D,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,gCAAwB,CAAC,CAAC,CAAC;CAC7D,CAAC,CAAC;AAEH,SAAgB,eAAe,CAAC,SAAoB;IAClD,OAAO,IAAI,CAAC,SAAS,CAAC,gCAAwB,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;AACnE,CAAC;AACD,SAAgB,iBAAiB,CAC/B,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,+BAAuB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnD,uCAAuC,CACxC,CAAC;AACJ,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
export type JsonValue = string | number | number | boolean | Array<JsonValue | null> | {
|
|
5
|
-
[k: string]: JsonValue | null;
|
|
6
|
-
};
|
|
7
|
-
/** @internal */
|
|
8
|
-
export declare const JsonValue$inboundSchema: z.ZodType<JsonValue, z.ZodTypeDef, unknown>;
|
|
9
|
-
/** @internal */
|
|
10
|
-
export type JsonValue$Outbound = string | number | number | boolean | Array<JsonValue$Outbound | null> | {
|
|
11
|
-
[k: string]: JsonValue$Outbound | null;
|
|
12
|
-
};
|
|
13
|
-
/** @internal */
|
|
14
|
-
export declare const JsonValue$outboundSchema: z.ZodType<JsonValue$Outbound, z.ZodTypeDef, JsonValue>;
|
|
15
|
-
export declare function jsonValueToJSON(jsonValue: JsonValue): string;
|
|
16
|
-
export declare function jsonValueFromJSON(jsonString: string): SafeParseResult<JsonValue, SDKValidationError>;
|
|
17
|
-
//# sourceMappingURL=jsonvalue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jsonvalue.d.ts","sourceRoot":"","sources":["../../../../src/models/components/jsonvalue.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC,GACvB;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAA;CAAE,CAAC;AAEtC,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,OAAO,CAC7C,SAAS,EACT,CAAC,CAAC,UAAU,EACZ,OAAO,CAQP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,kBAAkB,GAC1B,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,CAAC,kBAAkB,GAAG,IAAI,CAAC,GAChC;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,kBAAkB,GAAG,IAAI,CAAA;CAAE,CAAC;AAE/C,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,OAAO,CAC9C,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,SAAS,CAQT,CAAC;AAEH,wBAAgB,eAAe,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAE5D;AACD,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,SAAS,EAAE,kBAAkB,CAAC,CAMhD"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod/v3";
|
|
5
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
6
|
-
/** @internal */
|
|
7
|
-
export const JsonValue$inboundSchema = z.union([
|
|
8
|
-
z.string(),
|
|
9
|
-
z.number(),
|
|
10
|
-
z.number().int(),
|
|
11
|
-
z.boolean(),
|
|
12
|
-
z.array(z.nullable(z.lazy(() => JsonValue$inboundSchema))),
|
|
13
|
-
z.record(z.nullable(z.lazy(() => JsonValue$inboundSchema))),
|
|
14
|
-
]);
|
|
15
|
-
/** @internal */
|
|
16
|
-
export const JsonValue$outboundSchema = z.union([
|
|
17
|
-
z.string(),
|
|
18
|
-
z.number(),
|
|
19
|
-
z.number().int(),
|
|
20
|
-
z.boolean(),
|
|
21
|
-
z.array(z.nullable(z.lazy(() => JsonValue$outboundSchema))),
|
|
22
|
-
z.record(z.nullable(z.lazy(() => JsonValue$outboundSchema))),
|
|
23
|
-
]);
|
|
24
|
-
export function jsonValueToJSON(jsonValue) {
|
|
25
|
-
return JSON.stringify(JsonValue$outboundSchema.parse(jsonValue));
|
|
26
|
-
}
|
|
27
|
-
export function jsonValueFromJSON(jsonString) {
|
|
28
|
-
return safeParse(jsonString, (x) => JsonValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'JsonValue' from JSON`);
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=jsonvalue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jsonvalue.js","sourceRoot":"","sources":["../../../../src/models/components/jsonvalue.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAYjD,gBAAgB;AAChB,MAAM,CAAC,MAAM,uBAAuB,GAIhC,CAAC,CAAC,KAAK,CAAC;IACV,CAAC,CAAC,MAAM,EAAE;IACV,CAAC,CAAC,MAAM,EAAE;IACV,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAChB,CAAC,CAAC,OAAO,EAAE;IACX,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC,CAAC,CAAC;IAC1D,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC,CAAC,CAAC;CAC5D,CAAC,CAAC;AAUH,gBAAgB;AAChB,MAAM,CAAC,MAAM,wBAAwB,GAIjC,CAAC,CAAC,KAAK,CAAC;IACV,CAAC,CAAC,MAAM,EAAE;IACV,CAAC,CAAC,MAAM,EAAE;IACV,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAChB,CAAC,CAAC,OAAO,EAAE;IACX,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC,CAAC,CAAC;IAC3D,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC,CAAC,CAAC;CAC7D,CAAC,CAAC;AAEH,MAAM,UAAU,eAAe,CAAC,SAAoB;IAClD,OAAO,IAAI,CAAC,SAAS,CAAC,wBAAwB,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;AACnE,CAAC;AACD,MAAM,UAAU,iBAAiB,CAC/B,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uBAAuB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnD,uCAAuC,CACxC,CAAC;AACJ,CAAC"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
|
|
10
|
-
export type JsonValue =
|
|
11
|
-
| string
|
|
12
|
-
| number
|
|
13
|
-
| number
|
|
14
|
-
| boolean
|
|
15
|
-
| Array<JsonValue | null>
|
|
16
|
-
| { [k: string]: JsonValue | null };
|
|
17
|
-
|
|
18
|
-
/** @internal */
|
|
19
|
-
export const JsonValue$inboundSchema: z.ZodType<
|
|
20
|
-
JsonValue,
|
|
21
|
-
z.ZodTypeDef,
|
|
22
|
-
unknown
|
|
23
|
-
> = z.union([
|
|
24
|
-
z.string(),
|
|
25
|
-
z.number(),
|
|
26
|
-
z.number().int(),
|
|
27
|
-
z.boolean(),
|
|
28
|
-
z.array(z.nullable(z.lazy(() => JsonValue$inboundSchema))),
|
|
29
|
-
z.record(z.nullable(z.lazy(() => JsonValue$inboundSchema))),
|
|
30
|
-
]);
|
|
31
|
-
/** @internal */
|
|
32
|
-
export type JsonValue$Outbound =
|
|
33
|
-
| string
|
|
34
|
-
| number
|
|
35
|
-
| number
|
|
36
|
-
| boolean
|
|
37
|
-
| Array<JsonValue$Outbound | null>
|
|
38
|
-
| { [k: string]: JsonValue$Outbound | null };
|
|
39
|
-
|
|
40
|
-
/** @internal */
|
|
41
|
-
export const JsonValue$outboundSchema: z.ZodType<
|
|
42
|
-
JsonValue$Outbound,
|
|
43
|
-
z.ZodTypeDef,
|
|
44
|
-
JsonValue
|
|
45
|
-
> = z.union([
|
|
46
|
-
z.string(),
|
|
47
|
-
z.number(),
|
|
48
|
-
z.number().int(),
|
|
49
|
-
z.boolean(),
|
|
50
|
-
z.array(z.nullable(z.lazy(() => JsonValue$outboundSchema))),
|
|
51
|
-
z.record(z.nullable(z.lazy(() => JsonValue$outboundSchema))),
|
|
52
|
-
]);
|
|
53
|
-
|
|
54
|
-
export function jsonValueToJSON(jsonValue: JsonValue): string {
|
|
55
|
-
return JSON.stringify(JsonValue$outboundSchema.parse(jsonValue));
|
|
56
|
-
}
|
|
57
|
-
export function jsonValueFromJSON(
|
|
58
|
-
jsonString: string,
|
|
59
|
-
): SafeParseResult<JsonValue, SDKValidationError> {
|
|
60
|
-
return safeParse(
|
|
61
|
-
jsonString,
|
|
62
|
-
(x) => JsonValue$inboundSchema.parse(JSON.parse(x)),
|
|
63
|
-
`Failed to parse 'JsonValue' from JSON`,
|
|
64
|
-
);
|
|
65
|
-
}
|