@s2-dev/streamstore 0.7.0 → 0.7.1
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 +31 -54
- package/bin/mcp-server.js.map +10 -10
- 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/models/components/basininfo.d.ts +2 -6
- package/dist/commonjs/models/components/basininfo.d.ts.map +1 -1
- package/dist/commonjs/models/components/basininfo.js +3 -4
- package/dist/commonjs/models/components/basininfo.js.map +1 -1
- package/dist/commonjs/models/components/basinscope.d.ts +34 -0
- package/dist/commonjs/models/components/basinscope.d.ts.map +1 -0
- package/dist/commonjs/models/components/basinscope.js +64 -0
- package/dist/commonjs/models/components/basinscope.js.map +1 -0
- package/dist/commonjs/models/components/createbasinrequest.d.ts +6 -3
- package/dist/commonjs/models/components/createbasinrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/createbasinrequest.js +3 -3
- package/dist/commonjs/models/components/createbasinrequest.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +1 -1
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -1
- package/dist/commonjs/models/components/index.js.map +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/models/components/basininfo.d.ts +2 -6
- package/dist/esm/models/components/basininfo.d.ts.map +1 -1
- package/dist/esm/models/components/basininfo.js +3 -4
- package/dist/esm/models/components/basininfo.js.map +1 -1
- package/dist/esm/models/components/basinscope.d.ts +34 -0
- package/dist/esm/models/components/basinscope.d.ts.map +1 -0
- package/dist/esm/models/components/basinscope.js +28 -0
- package/dist/esm/models/components/basinscope.js.map +1 -0
- package/dist/esm/models/components/createbasinrequest.d.ts +6 -3
- package/dist/esm/models/components/createbasinrequest.d.ts.map +1 -1
- package/dist/esm/models/components/createbasinrequest.js +3 -3
- package/dist/esm/models/components/createbasinrequest.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +1 -1
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -1
- package/dist/esm/models/components/index.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +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/models/components/basininfo.ts +8 -10
- package/src/models/components/basinscope.ts +37 -0
- package/src/models/components/createbasinrequest.ts +12 -10
- package/src/models/components/index.ts +1 -1
- package/dist/commonjs/models/components/assignment.d.ts +0 -90
- package/dist/commonjs/models/components/assignment.d.ts.map +0 -1
- package/dist/commonjs/models/components/assignment.js +0 -127
- package/dist/commonjs/models/components/assignment.js.map +0 -1
- package/dist/esm/models/components/assignment.d.ts +0 -90
- package/dist/esm/models/components/assignment.d.ts.map +0 -1
- package/dist/esm/models/components/assignment.js +0 -85
- package/dist/esm/models/components/assignment.js.map +0 -1
- package/src/models/components/assignment.ts +0 -174
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
export * from "./appendinput.js";
|
|
5
5
|
export * from "./appendoutput.js";
|
|
6
6
|
export * from "./appendrecord.js";
|
|
7
|
-
export * from "./assignment.js";
|
|
8
7
|
export * from "./basinconfig.js";
|
|
9
8
|
export * from "./basininfo.js";
|
|
9
|
+
export * from "./basinscope.js";
|
|
10
10
|
export * from "./basinstate.js";
|
|
11
11
|
export * from "./checktailresponse.js";
|
|
12
12
|
export * from "./createbasinrequest.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -54,7 +54,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
54
54
|
export const SDK_METADATA = {
|
|
55
55
|
language: "typescript",
|
|
56
56
|
openapiDocVersion: "1.0.0",
|
|
57
|
-
sdkVersion: "0.7.
|
|
58
|
-
genVersion: "2.545.
|
|
59
|
-
userAgent: "speakeasy-sdk/typescript 0.7.
|
|
57
|
+
sdkVersion: "0.7.1",
|
|
58
|
+
genVersion: "2.545.7",
|
|
59
|
+
userAgent: "speakeasy-sdk/typescript 0.7.1 2.545.7 1.0.0 @s2-dev/streamstore",
|
|
60
60
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -6,6 +6,11 @@ import * as z from "zod";
|
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
BasinScope,
|
|
11
|
+
BasinScope$inboundSchema,
|
|
12
|
+
BasinScope$outboundSchema,
|
|
13
|
+
} from "./basinscope.js";
|
|
9
14
|
import {
|
|
10
15
|
BasinState,
|
|
11
16
|
BasinState$inboundSchema,
|
|
@@ -16,10 +21,6 @@ import {
|
|
|
16
21
|
* Basin information.
|
|
17
22
|
*/
|
|
18
23
|
export type BasinInfo = {
|
|
19
|
-
/**
|
|
20
|
-
* Cell assignment.
|
|
21
|
-
*/
|
|
22
|
-
cell: string;
|
|
23
24
|
/**
|
|
24
25
|
* Basin name.
|
|
25
26
|
*/
|
|
@@ -27,7 +28,7 @@ export type BasinInfo = {
|
|
|
27
28
|
/**
|
|
28
29
|
* Basin scope.
|
|
29
30
|
*/
|
|
30
|
-
scope:
|
|
31
|
+
scope: BasinScope;
|
|
31
32
|
/**
|
|
32
33
|
* Current state of the basin.
|
|
33
34
|
*/
|
|
@@ -40,15 +41,13 @@ export const BasinInfo$inboundSchema: z.ZodType<
|
|
|
40
41
|
z.ZodTypeDef,
|
|
41
42
|
unknown
|
|
42
43
|
> = z.object({
|
|
43
|
-
cell: z.string(),
|
|
44
44
|
name: z.string(),
|
|
45
|
-
scope:
|
|
45
|
+
scope: BasinScope$inboundSchema,
|
|
46
46
|
state: BasinState$inboundSchema,
|
|
47
47
|
});
|
|
48
48
|
|
|
49
49
|
/** @internal */
|
|
50
50
|
export type BasinInfo$Outbound = {
|
|
51
|
-
cell: string;
|
|
52
51
|
name: string;
|
|
53
52
|
scope: string;
|
|
54
53
|
state: string;
|
|
@@ -60,9 +59,8 @@ export const BasinInfo$outboundSchema: z.ZodType<
|
|
|
60
59
|
z.ZodTypeDef,
|
|
61
60
|
BasinInfo
|
|
62
61
|
> = z.object({
|
|
63
|
-
cell: z.string(),
|
|
64
62
|
name: z.string(),
|
|
65
|
-
scope:
|
|
63
|
+
scope: BasinScope$outboundSchema,
|
|
66
64
|
state: BasinState$outboundSchema,
|
|
67
65
|
});
|
|
68
66
|
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Basin scope.
|
|
10
|
+
*/
|
|
11
|
+
export const BasinScope = {
|
|
12
|
+
Unspecified: "unspecified",
|
|
13
|
+
AwsUsEast1: "aws:us-east-1",
|
|
14
|
+
} as const;
|
|
15
|
+
/**
|
|
16
|
+
* Basin scope.
|
|
17
|
+
*/
|
|
18
|
+
export type BasinScope = ClosedEnum<typeof BasinScope>;
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const BasinScope$inboundSchema: z.ZodNativeEnum<typeof BasinScope> = z
|
|
22
|
+
.nativeEnum(BasinScope);
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const BasinScope$outboundSchema: z.ZodNativeEnum<typeof BasinScope> =
|
|
26
|
+
BasinScope$inboundSchema;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
31
|
+
*/
|
|
32
|
+
export namespace BasinScope$ {
|
|
33
|
+
/** @deprecated use `BasinScope$inboundSchema` instead. */
|
|
34
|
+
export const inboundSchema = BasinScope$inboundSchema;
|
|
35
|
+
/** @deprecated use `BasinScope$outboundSchema` instead. */
|
|
36
|
+
export const outboundSchema = BasinScope$outboundSchema;
|
|
37
|
+
}
|
|
@@ -6,25 +6,27 @@ import * as z from "zod";
|
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
import {
|
|
10
|
-
Assignment,
|
|
11
|
-
Assignment$inboundSchema,
|
|
12
|
-
Assignment$Outbound,
|
|
13
|
-
Assignment$outboundSchema,
|
|
14
|
-
} from "./assignment.js";
|
|
15
9
|
import {
|
|
16
10
|
BasinConfig,
|
|
17
11
|
BasinConfig$inboundSchema,
|
|
18
12
|
BasinConfig$Outbound,
|
|
19
13
|
BasinConfig$outboundSchema,
|
|
20
14
|
} from "./basinconfig.js";
|
|
15
|
+
import {
|
|
16
|
+
BasinScope,
|
|
17
|
+
BasinScope$inboundSchema,
|
|
18
|
+
BasinScope$outboundSchema,
|
|
19
|
+
} from "./basinscope.js";
|
|
21
20
|
|
|
22
21
|
/**
|
|
23
22
|
* Create basin request.
|
|
24
23
|
*/
|
|
25
24
|
export type CreateBasinRequest = {
|
|
26
|
-
assignment?: Assignment | null | undefined;
|
|
27
25
|
config?: BasinConfig | null | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Basin scope.
|
|
28
|
+
*/
|
|
29
|
+
scope?: BasinScope | undefined;
|
|
28
30
|
};
|
|
29
31
|
|
|
30
32
|
/** @internal */
|
|
@@ -33,14 +35,14 @@ export const CreateBasinRequest$inboundSchema: z.ZodType<
|
|
|
33
35
|
z.ZodTypeDef,
|
|
34
36
|
unknown
|
|
35
37
|
> = z.object({
|
|
36
|
-
assignment: z.nullable(Assignment$inboundSchema).optional(),
|
|
37
38
|
config: z.nullable(BasinConfig$inboundSchema).optional(),
|
|
39
|
+
scope: BasinScope$inboundSchema.optional(),
|
|
38
40
|
});
|
|
39
41
|
|
|
40
42
|
/** @internal */
|
|
41
43
|
export type CreateBasinRequest$Outbound = {
|
|
42
|
-
assignment?: Assignment$Outbound | null | undefined;
|
|
43
44
|
config?: BasinConfig$Outbound | null | undefined;
|
|
45
|
+
scope?: string | undefined;
|
|
44
46
|
};
|
|
45
47
|
|
|
46
48
|
/** @internal */
|
|
@@ -49,8 +51,8 @@ export const CreateBasinRequest$outboundSchema: z.ZodType<
|
|
|
49
51
|
z.ZodTypeDef,
|
|
50
52
|
CreateBasinRequest
|
|
51
53
|
> = z.object({
|
|
52
|
-
assignment: z.nullable(Assignment$outboundSchema).optional(),
|
|
53
54
|
config: z.nullable(BasinConfig$outboundSchema).optional(),
|
|
55
|
+
scope: BasinScope$outboundSchema.optional(),
|
|
54
56
|
});
|
|
55
57
|
|
|
56
58
|
/**
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
export * from "./appendinput.js";
|
|
6
6
|
export * from "./appendoutput.js";
|
|
7
7
|
export * from "./appendrecord.js";
|
|
8
|
-
export * from "./assignment.js";
|
|
9
8
|
export * from "./basinconfig.js";
|
|
10
9
|
export * from "./basininfo.js";
|
|
10
|
+
export * from "./basinscope.js";
|
|
11
11
|
export * from "./basinstate.js";
|
|
12
12
|
export * from "./checktailresponse.js";
|
|
13
13
|
export * from "./createbasinrequest.js";
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
/**
|
|
5
|
-
* Explicit cell assignment, if it is owned by the account.
|
|
6
|
-
*/
|
|
7
|
-
export type Cell = {
|
|
8
|
-
/**
|
|
9
|
-
* Explicit cell assignment, if it is owned by the account.
|
|
10
|
-
*/
|
|
11
|
-
cell: string;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Basin scope. It should be formatted as "{cloud}:{region}", e.g. "aws:us-east-1".
|
|
15
|
-
*/
|
|
16
|
-
export type Scope = {
|
|
17
|
-
/**
|
|
18
|
-
* Basin scope. It should be formatted as "{cloud}:{region}", e.g. "aws:us-east-1".
|
|
19
|
-
*/
|
|
20
|
-
scope: string;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Assignment of the basin to a cloud and region, or an explicit cell.
|
|
24
|
-
*/
|
|
25
|
-
export type Assignment = Scope | Cell;
|
|
26
|
-
/** @internal */
|
|
27
|
-
export declare const Cell$inboundSchema: z.ZodType<Cell, z.ZodTypeDef, unknown>;
|
|
28
|
-
/** @internal */
|
|
29
|
-
export type Cell$Outbound = {
|
|
30
|
-
cell: string;
|
|
31
|
-
};
|
|
32
|
-
/** @internal */
|
|
33
|
-
export declare const Cell$outboundSchema: z.ZodType<Cell$Outbound, z.ZodTypeDef, Cell>;
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
37
|
-
*/
|
|
38
|
-
export declare namespace Cell$ {
|
|
39
|
-
/** @deprecated use `Cell$inboundSchema` instead. */
|
|
40
|
-
const inboundSchema: z.ZodType<Cell, z.ZodTypeDef, unknown>;
|
|
41
|
-
/** @deprecated use `Cell$outboundSchema` instead. */
|
|
42
|
-
const outboundSchema: z.ZodType<Cell$Outbound, z.ZodTypeDef, Cell>;
|
|
43
|
-
/** @deprecated use `Cell$Outbound` instead. */
|
|
44
|
-
type Outbound = Cell$Outbound;
|
|
45
|
-
}
|
|
46
|
-
export declare function cellToJSON(cell: Cell): string;
|
|
47
|
-
export declare function cellFromJSON(jsonString: string): SafeParseResult<Cell, SDKValidationError>;
|
|
48
|
-
/** @internal */
|
|
49
|
-
export declare const Scope$inboundSchema: z.ZodType<Scope, z.ZodTypeDef, unknown>;
|
|
50
|
-
/** @internal */
|
|
51
|
-
export type Scope$Outbound = {
|
|
52
|
-
scope: string;
|
|
53
|
-
};
|
|
54
|
-
/** @internal */
|
|
55
|
-
export declare const Scope$outboundSchema: z.ZodType<Scope$Outbound, z.ZodTypeDef, Scope>;
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
|
-
*/
|
|
60
|
-
export declare namespace Scope$ {
|
|
61
|
-
/** @deprecated use `Scope$inboundSchema` instead. */
|
|
62
|
-
const inboundSchema: z.ZodType<Scope, z.ZodTypeDef, unknown>;
|
|
63
|
-
/** @deprecated use `Scope$outboundSchema` instead. */
|
|
64
|
-
const outboundSchema: z.ZodType<Scope$Outbound, z.ZodTypeDef, Scope>;
|
|
65
|
-
/** @deprecated use `Scope$Outbound` instead. */
|
|
66
|
-
type Outbound = Scope$Outbound;
|
|
67
|
-
}
|
|
68
|
-
export declare function scopeToJSON(scope: Scope): string;
|
|
69
|
-
export declare function scopeFromJSON(jsonString: string): SafeParseResult<Scope, SDKValidationError>;
|
|
70
|
-
/** @internal */
|
|
71
|
-
export declare const Assignment$inboundSchema: z.ZodType<Assignment, z.ZodTypeDef, unknown>;
|
|
72
|
-
/** @internal */
|
|
73
|
-
export type Assignment$Outbound = Scope$Outbound | Cell$Outbound;
|
|
74
|
-
/** @internal */
|
|
75
|
-
export declare const Assignment$outboundSchema: z.ZodType<Assignment$Outbound, z.ZodTypeDef, Assignment>;
|
|
76
|
-
/**
|
|
77
|
-
* @internal
|
|
78
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
79
|
-
*/
|
|
80
|
-
export declare namespace Assignment$ {
|
|
81
|
-
/** @deprecated use `Assignment$inboundSchema` instead. */
|
|
82
|
-
const inboundSchema: z.ZodType<Assignment, z.ZodTypeDef, unknown>;
|
|
83
|
-
/** @deprecated use `Assignment$outboundSchema` instead. */
|
|
84
|
-
const outboundSchema: z.ZodType<Assignment$Outbound, z.ZodTypeDef, Assignment>;
|
|
85
|
-
/** @deprecated use `Assignment$Outbound` instead. */
|
|
86
|
-
type Outbound = Assignment$Outbound;
|
|
87
|
-
}
|
|
88
|
-
export declare function assignmentToJSON(assignment: Assignment): string;
|
|
89
|
-
export declare function assignmentFromJSON(jsonString: string): SafeParseResult<Assignment, SDKValidationError>;
|
|
90
|
-
//# sourceMappingURL=assignment.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assignment.d.ts","sourceRoot":"","sources":["../../../../src/models/components/assignment.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG;IACjB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG;IAClB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,IAAI,CAAC;AAEtC,gBAAgB;AAChB,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAGlE,CAAC;AAEL,gBAAgB;AAChB,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC,UAAU,EAAE,IAAI,CAGzE,CAAC;AAEL;;;GAGG;AACH,yBAAiB,KAAK,CAAC;IACrB,oDAAoD;IAC7C,MAAM,aAAa,wCAAqB,CAAC;IAChD,qDAAqD;IAC9C,MAAM,cAAc,8CAAsB,CAAC;IAClD,+CAA+C;IAC/C,KAAY,QAAQ,GAAG,aAAa,CAAC;CACtC;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAE7C;AAED,wBAAgB,YAAY,CAC1B,UAAU,EAAE,MAAM,GACjB,eAAe,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AmB,CAAC;CAC5C;AAED,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAE/D;AAED,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAMjD"}
|
|
@@ -1,127 +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.Assignment$ = exports.Assignment$outboundSchema = exports.Assignment$inboundSchema = exports.Scope$ = exports.Scope$outboundSchema = exports.Scope$inboundSchema = exports.Cell$ = exports.Cell$outboundSchema = exports.Cell$inboundSchema = void 0;
|
|
40
|
-
exports.cellToJSON = cellToJSON;
|
|
41
|
-
exports.cellFromJSON = cellFromJSON;
|
|
42
|
-
exports.scopeToJSON = scopeToJSON;
|
|
43
|
-
exports.scopeFromJSON = scopeFromJSON;
|
|
44
|
-
exports.assignmentToJSON = assignmentToJSON;
|
|
45
|
-
exports.assignmentFromJSON = assignmentFromJSON;
|
|
46
|
-
const z = __importStar(require("zod"));
|
|
47
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
48
|
-
/** @internal */
|
|
49
|
-
exports.Cell$inboundSchema = z
|
|
50
|
-
.object({
|
|
51
|
-
cell: z.string(),
|
|
52
|
-
});
|
|
53
|
-
/** @internal */
|
|
54
|
-
exports.Cell$outboundSchema = z.object({
|
|
55
|
-
cell: z.string(),
|
|
56
|
-
});
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
60
|
-
*/
|
|
61
|
-
var Cell$;
|
|
62
|
-
(function (Cell$) {
|
|
63
|
-
/** @deprecated use `Cell$inboundSchema` instead. */
|
|
64
|
-
Cell$.inboundSchema = exports.Cell$inboundSchema;
|
|
65
|
-
/** @deprecated use `Cell$outboundSchema` instead. */
|
|
66
|
-
Cell$.outboundSchema = exports.Cell$outboundSchema;
|
|
67
|
-
})(Cell$ || (exports.Cell$ = Cell$ = {}));
|
|
68
|
-
function cellToJSON(cell) {
|
|
69
|
-
return JSON.stringify(exports.Cell$outboundSchema.parse(cell));
|
|
70
|
-
}
|
|
71
|
-
function cellFromJSON(jsonString) {
|
|
72
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Cell$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Cell' from JSON`);
|
|
73
|
-
}
|
|
74
|
-
/** @internal */
|
|
75
|
-
exports.Scope$inboundSchema = z
|
|
76
|
-
.object({
|
|
77
|
-
scope: z.string(),
|
|
78
|
-
});
|
|
79
|
-
/** @internal */
|
|
80
|
-
exports.Scope$outboundSchema = z.object({
|
|
81
|
-
scope: z.string(),
|
|
82
|
-
});
|
|
83
|
-
/**
|
|
84
|
-
* @internal
|
|
85
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
86
|
-
*/
|
|
87
|
-
var Scope$;
|
|
88
|
-
(function (Scope$) {
|
|
89
|
-
/** @deprecated use `Scope$inboundSchema` instead. */
|
|
90
|
-
Scope$.inboundSchema = exports.Scope$inboundSchema;
|
|
91
|
-
/** @deprecated use `Scope$outboundSchema` instead. */
|
|
92
|
-
Scope$.outboundSchema = exports.Scope$outboundSchema;
|
|
93
|
-
})(Scope$ || (exports.Scope$ = Scope$ = {}));
|
|
94
|
-
function scopeToJSON(scope) {
|
|
95
|
-
return JSON.stringify(exports.Scope$outboundSchema.parse(scope));
|
|
96
|
-
}
|
|
97
|
-
function scopeFromJSON(jsonString) {
|
|
98
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Scope$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Scope' from JSON`);
|
|
99
|
-
}
|
|
100
|
-
/** @internal */
|
|
101
|
-
exports.Assignment$inboundSchema = z.union([
|
|
102
|
-
z.lazy(() => exports.Scope$inboundSchema),
|
|
103
|
-
z.lazy(() => exports.Cell$inboundSchema),
|
|
104
|
-
]);
|
|
105
|
-
/** @internal */
|
|
106
|
-
exports.Assignment$outboundSchema = z.union([
|
|
107
|
-
z.lazy(() => exports.Scope$outboundSchema),
|
|
108
|
-
z.lazy(() => exports.Cell$outboundSchema),
|
|
109
|
-
]);
|
|
110
|
-
/**
|
|
111
|
-
* @internal
|
|
112
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
113
|
-
*/
|
|
114
|
-
var Assignment$;
|
|
115
|
-
(function (Assignment$) {
|
|
116
|
-
/** @deprecated use `Assignment$inboundSchema` instead. */
|
|
117
|
-
Assignment$.inboundSchema = exports.Assignment$inboundSchema;
|
|
118
|
-
/** @deprecated use `Assignment$outboundSchema` instead. */
|
|
119
|
-
Assignment$.outboundSchema = exports.Assignment$outboundSchema;
|
|
120
|
-
})(Assignment$ || (exports.Assignment$ = Assignment$ = {}));
|
|
121
|
-
function assignmentToJSON(assignment) {
|
|
122
|
-
return JSON.stringify(exports.Assignment$outboundSchema.parse(assignment));
|
|
123
|
-
}
|
|
124
|
-
function assignmentFromJSON(jsonString) {
|
|
125
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Assignment$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Assignment' from JSON`);
|
|
126
|
-
}
|
|
127
|
-
//# sourceMappingURL=assignment.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assignment.js","sourceRoot":"","sources":["../../../../src/models/components/assignment.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8DH,gCAEC;AAED,oCAQC;AAmCD,kCAEC;AAED,sCAQC;AAsCD,4CAEC;AAED,gDAQC;AAzKD,uCAAyB;AACzB,qDAAiD;AA6BjD,gBAAgB;AACH,QAAA,kBAAkB,GAA2C,CAAC;KACxE,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AAOL,gBAAgB;AACH,QAAA,mBAAmB,GAC9B,CAAC,CAAC,MAAM,CAAC;IACP,IAAI,EAAE,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,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2BAAmB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/C,mCAAmC,CACpC,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,wBAAwB,GAIjC,CAAC,CAAC,KAAK,CAAC;IACV,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;IACjC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,0BAAkB,CAAC;CACjC,CAAC,CAAC;AAKH,gBAAgB;AACH,QAAA,yBAAyB,GAIlC,CAAC,CAAC,KAAK,CAAC;IACV,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,4BAAoB,CAAC;IAClC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;CAClC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,WAAW,CAO3B;AAPD,WAAiB,WAAW;IAC1B,0DAA0D;IAC7C,yBAAa,GAAG,gCAAwB,CAAC;IACtD,2DAA2D;IAC9C,0BAAc,GAAG,iCAAyB,CAAC;AAG1D,CAAC,EAPgB,WAAW,2BAAX,WAAW,QAO3B;AAED,SAAgB,gBAAgB,CAAC,UAAsB;IACrD,OAAO,IAAI,CAAC,SAAS,CAAC,iCAAyB,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;AACrE,CAAC;AAED,SAAgB,kBAAkB,CAChC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gCAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpD,wCAAwC,CACzC,CAAC;AACJ,CAAC"}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
/**
|
|
5
|
-
* Explicit cell assignment, if it is owned by the account.
|
|
6
|
-
*/
|
|
7
|
-
export type Cell = {
|
|
8
|
-
/**
|
|
9
|
-
* Explicit cell assignment, if it is owned by the account.
|
|
10
|
-
*/
|
|
11
|
-
cell: string;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Basin scope. It should be formatted as "{cloud}:{region}", e.g. "aws:us-east-1".
|
|
15
|
-
*/
|
|
16
|
-
export type Scope = {
|
|
17
|
-
/**
|
|
18
|
-
* Basin scope. It should be formatted as "{cloud}:{region}", e.g. "aws:us-east-1".
|
|
19
|
-
*/
|
|
20
|
-
scope: string;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Assignment of the basin to a cloud and region, or an explicit cell.
|
|
24
|
-
*/
|
|
25
|
-
export type Assignment = Scope | Cell;
|
|
26
|
-
/** @internal */
|
|
27
|
-
export declare const Cell$inboundSchema: z.ZodType<Cell, z.ZodTypeDef, unknown>;
|
|
28
|
-
/** @internal */
|
|
29
|
-
export type Cell$Outbound = {
|
|
30
|
-
cell: string;
|
|
31
|
-
};
|
|
32
|
-
/** @internal */
|
|
33
|
-
export declare const Cell$outboundSchema: z.ZodType<Cell$Outbound, z.ZodTypeDef, Cell>;
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
37
|
-
*/
|
|
38
|
-
export declare namespace Cell$ {
|
|
39
|
-
/** @deprecated use `Cell$inboundSchema` instead. */
|
|
40
|
-
const inboundSchema: z.ZodType<Cell, z.ZodTypeDef, unknown>;
|
|
41
|
-
/** @deprecated use `Cell$outboundSchema` instead. */
|
|
42
|
-
const outboundSchema: z.ZodType<Cell$Outbound, z.ZodTypeDef, Cell>;
|
|
43
|
-
/** @deprecated use `Cell$Outbound` instead. */
|
|
44
|
-
type Outbound = Cell$Outbound;
|
|
45
|
-
}
|
|
46
|
-
export declare function cellToJSON(cell: Cell): string;
|
|
47
|
-
export declare function cellFromJSON(jsonString: string): SafeParseResult<Cell, SDKValidationError>;
|
|
48
|
-
/** @internal */
|
|
49
|
-
export declare const Scope$inboundSchema: z.ZodType<Scope, z.ZodTypeDef, unknown>;
|
|
50
|
-
/** @internal */
|
|
51
|
-
export type Scope$Outbound = {
|
|
52
|
-
scope: string;
|
|
53
|
-
};
|
|
54
|
-
/** @internal */
|
|
55
|
-
export declare const Scope$outboundSchema: z.ZodType<Scope$Outbound, z.ZodTypeDef, Scope>;
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
|
-
*/
|
|
60
|
-
export declare namespace Scope$ {
|
|
61
|
-
/** @deprecated use `Scope$inboundSchema` instead. */
|
|
62
|
-
const inboundSchema: z.ZodType<Scope, z.ZodTypeDef, unknown>;
|
|
63
|
-
/** @deprecated use `Scope$outboundSchema` instead. */
|
|
64
|
-
const outboundSchema: z.ZodType<Scope$Outbound, z.ZodTypeDef, Scope>;
|
|
65
|
-
/** @deprecated use `Scope$Outbound` instead. */
|
|
66
|
-
type Outbound = Scope$Outbound;
|
|
67
|
-
}
|
|
68
|
-
export declare function scopeToJSON(scope: Scope): string;
|
|
69
|
-
export declare function scopeFromJSON(jsonString: string): SafeParseResult<Scope, SDKValidationError>;
|
|
70
|
-
/** @internal */
|
|
71
|
-
export declare const Assignment$inboundSchema: z.ZodType<Assignment, z.ZodTypeDef, unknown>;
|
|
72
|
-
/** @internal */
|
|
73
|
-
export type Assignment$Outbound = Scope$Outbound | Cell$Outbound;
|
|
74
|
-
/** @internal */
|
|
75
|
-
export declare const Assignment$outboundSchema: z.ZodType<Assignment$Outbound, z.ZodTypeDef, Assignment>;
|
|
76
|
-
/**
|
|
77
|
-
* @internal
|
|
78
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
79
|
-
*/
|
|
80
|
-
export declare namespace Assignment$ {
|
|
81
|
-
/** @deprecated use `Assignment$inboundSchema` instead. */
|
|
82
|
-
const inboundSchema: z.ZodType<Assignment, z.ZodTypeDef, unknown>;
|
|
83
|
-
/** @deprecated use `Assignment$outboundSchema` instead. */
|
|
84
|
-
const outboundSchema: z.ZodType<Assignment$Outbound, z.ZodTypeDef, Assignment>;
|
|
85
|
-
/** @deprecated use `Assignment$Outbound` instead. */
|
|
86
|
-
type Outbound = Assignment$Outbound;
|
|
87
|
-
}
|
|
88
|
-
export declare function assignmentToJSON(assignment: Assignment): string;
|
|
89
|
-
export declare function assignmentFromJSON(jsonString: string): SafeParseResult<Assignment, SDKValidationError>;
|
|
90
|
-
//# sourceMappingURL=assignment.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assignment.d.ts","sourceRoot":"","sources":["../../../../src/models/components/assignment.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG;IACjB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG;IAClB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,IAAI,CAAC;AAEtC,gBAAgB;AAChB,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAGlE,CAAC;AAEL,gBAAgB;AAChB,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO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CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,mBAAmB,GAAG,cAAc,GAAG,aAAa,CAAC;AAEjE,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAC/C,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,UAAU,CAIV,CAAC;AAEH;;;GAGG;AACH,yBAAiB,WAAW,CAAC;IAC3B,0DAA0D;IACnD,MAAM,aAAa,8CAA2B,CAAC;IACtD,2DAA2D;IACpD,MAAM,cAAc,0DAA4B,CAAC;IACxD,qDAAqD;IACrD,KAAY,QAAQ,GAAG,mBAAmB,CAAC;CAC5C;AAED,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAE/D;AAED,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAMjD"}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod";
|
|
5
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
6
|
-
/** @internal */
|
|
7
|
-
export const Cell$inboundSchema = z
|
|
8
|
-
.object({
|
|
9
|
-
cell: z.string(),
|
|
10
|
-
});
|
|
11
|
-
/** @internal */
|
|
12
|
-
export const Cell$outboundSchema = z.object({
|
|
13
|
-
cell: z.string(),
|
|
14
|
-
});
|
|
15
|
-
/**
|
|
16
|
-
* @internal
|
|
17
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
18
|
-
*/
|
|
19
|
-
export var Cell$;
|
|
20
|
-
(function (Cell$) {
|
|
21
|
-
/** @deprecated use `Cell$inboundSchema` instead. */
|
|
22
|
-
Cell$.inboundSchema = Cell$inboundSchema;
|
|
23
|
-
/** @deprecated use `Cell$outboundSchema` instead. */
|
|
24
|
-
Cell$.outboundSchema = Cell$outboundSchema;
|
|
25
|
-
})(Cell$ || (Cell$ = {}));
|
|
26
|
-
export function cellToJSON(cell) {
|
|
27
|
-
return JSON.stringify(Cell$outboundSchema.parse(cell));
|
|
28
|
-
}
|
|
29
|
-
export function cellFromJSON(jsonString) {
|
|
30
|
-
return safeParse(jsonString, (x) => Cell$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Cell' from JSON`);
|
|
31
|
-
}
|
|
32
|
-
/** @internal */
|
|
33
|
-
export const Scope$inboundSchema = z
|
|
34
|
-
.object({
|
|
35
|
-
scope: z.string(),
|
|
36
|
-
});
|
|
37
|
-
/** @internal */
|
|
38
|
-
export const Scope$outboundSchema = z.object({
|
|
39
|
-
scope: z.string(),
|
|
40
|
-
});
|
|
41
|
-
/**
|
|
42
|
-
* @internal
|
|
43
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
44
|
-
*/
|
|
45
|
-
export var Scope$;
|
|
46
|
-
(function (Scope$) {
|
|
47
|
-
/** @deprecated use `Scope$inboundSchema` instead. */
|
|
48
|
-
Scope$.inboundSchema = Scope$inboundSchema;
|
|
49
|
-
/** @deprecated use `Scope$outboundSchema` instead. */
|
|
50
|
-
Scope$.outboundSchema = Scope$outboundSchema;
|
|
51
|
-
})(Scope$ || (Scope$ = {}));
|
|
52
|
-
export function scopeToJSON(scope) {
|
|
53
|
-
return JSON.stringify(Scope$outboundSchema.parse(scope));
|
|
54
|
-
}
|
|
55
|
-
export function scopeFromJSON(jsonString) {
|
|
56
|
-
return safeParse(jsonString, (x) => Scope$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Scope' from JSON`);
|
|
57
|
-
}
|
|
58
|
-
/** @internal */
|
|
59
|
-
export const Assignment$inboundSchema = z.union([
|
|
60
|
-
z.lazy(() => Scope$inboundSchema),
|
|
61
|
-
z.lazy(() => Cell$inboundSchema),
|
|
62
|
-
]);
|
|
63
|
-
/** @internal */
|
|
64
|
-
export const Assignment$outboundSchema = z.union([
|
|
65
|
-
z.lazy(() => Scope$outboundSchema),
|
|
66
|
-
z.lazy(() => Cell$outboundSchema),
|
|
67
|
-
]);
|
|
68
|
-
/**
|
|
69
|
-
* @internal
|
|
70
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
71
|
-
*/
|
|
72
|
-
export var Assignment$;
|
|
73
|
-
(function (Assignment$) {
|
|
74
|
-
/** @deprecated use `Assignment$inboundSchema` instead. */
|
|
75
|
-
Assignment$.inboundSchema = Assignment$inboundSchema;
|
|
76
|
-
/** @deprecated use `Assignment$outboundSchema` instead. */
|
|
77
|
-
Assignment$.outboundSchema = Assignment$outboundSchema;
|
|
78
|
-
})(Assignment$ || (Assignment$ = {}));
|
|
79
|
-
export function assignmentToJSON(assignment) {
|
|
80
|
-
return JSON.stringify(Assignment$outboundSchema.parse(assignment));
|
|
81
|
-
}
|
|
82
|
-
export function assignmentFromJSON(jsonString) {
|
|
83
|
-
return safeParse(jsonString, (x) => Assignment$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Assignment' from JSON`);
|
|
84
|
-
}
|
|
85
|
-
//# sourceMappingURL=assignment.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assignment.js","sourceRoot":"","sources":["../../../../src/models/components/assignment.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AA6BjD,gBAAgB;AAChB,MAAM,CAAC,MAAM,kBAAkB,GAA2C,CAAC;KACxE,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AAOL,gBAAgB;AAChB,MAAM,CAAC,MAAM,mBAAmB,GAC9B,CAAC,CAAC,MAAM,CAAC;IACP,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,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