syllable-sdk 1.0.13-rc.3 → 1.0.13-rc.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/bin/mcp-server.js +2809 -806
- package/bin/mcp-server.js.map +34 -9
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/bodyinsightsfolderuploadfile.d.ts +8 -8
- package/models/components/bodyinsightsfolderuploadfile.d.ts.map +1 -1
- package/models/components/bodyinsightsfolderuploadfile.js +11 -12
- package/models/components/bodyinsightsfolderuploadfile.js.map +1 -1
- package/models/components/callaction.d.ts +113 -0
- package/models/components/callaction.d.ts.map +1 -0
- package/models/components/callaction.js +174 -0
- package/models/components/callaction.js.map +1 -0
- package/models/components/caseexpression.d.ts +18 -0
- package/models/components/caseexpression.d.ts.map +1 -0
- package/models/components/caseexpression.js +59 -0
- package/models/components/caseexpression.js.map +1 -0
- package/models/components/celexpression.d.ts +28 -0
- package/models/components/celexpression.d.ts.map +1 -0
- package/models/components/celexpression.js +60 -0
- package/models/components/celexpression.js.map +1 -0
- package/models/components/conditionaltext.d.ts +85 -0
- package/models/components/conditionaltext.d.ts.map +1 -0
- package/models/components/conditionaltext.js +147 -0
- package/models/components/conditionaltext.js.map +1 -0
- package/models/components/conditionalvalue.d.ts +147 -0
- package/models/components/conditionalvalue.d.ts.map +1 -0
- package/models/components/conditionalvalue.js +248 -0
- package/models/components/conditionalvalue.js.map +1 -0
- package/models/components/context.d.ts +150 -0
- package/models/components/context.d.ts.map +1 -0
- package/models/components/context.js +265 -0
- package/models/components/context.js.map +1 -0
- package/models/components/contexttaskmetadata.d.ts +22 -0
- package/models/components/contexttaskmetadata.d.ts.map +1 -0
- package/models/components/contexttaskmetadata.js +69 -0
- package/models/components/contexttaskmetadata.js.map +1 -0
- package/models/components/contexttoolinfo.d.ts +25 -0
- package/models/components/contexttoolinfo.d.ts.map +1 -0
- package/models/components/contexttoolinfo.js +60 -0
- package/models/components/contexttoolinfo.js.map +1 -0
- package/models/components/eventtask.d.ts +42 -0
- package/models/components/eventtask.d.ts.map +1 -0
- package/models/components/eventtask.js +76 -0
- package/models/components/eventtask.js.map +1 -0
- package/models/components/eventtaskevents.d.ts +74 -0
- package/models/components/eventtaskevents.d.ts.map +1 -0
- package/models/components/eventtaskevents.js +139 -0
- package/models/components/eventtaskevents.js.map +1 -0
- package/models/components/expressiontask.d.ts +109 -0
- package/models/components/expressiontask.d.ts.map +1 -0
- package/models/components/expressiontask.js +170 -0
- package/models/components/expressiontask.js.map +1 -0
- package/models/components/expressiontaskevents.d.ts +131 -0
- package/models/components/expressiontaskevents.d.ts.map +1 -0
- package/models/components/expressiontaskevents.js +219 -0
- package/models/components/expressiontaskevents.js.map +1 -0
- package/models/components/incrementaction.d.ts +92 -0
- package/models/components/incrementaction.d.ts.map +1 -0
- package/models/components/incrementaction.js +151 -0
- package/models/components/incrementaction.js.map +1 -0
- package/models/components/index.d.ts +25 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +25 -0
- package/models/components/index.js.map +1 -1
- package/models/components/inputparameter.d.ts +51 -0
- package/models/components/inputparameter.d.ts.map +1 -0
- package/models/components/inputparameter.js +87 -0
- package/models/components/inputparameter.js.map +1 -0
- package/models/components/jmespathexpression.d.ts +44 -0
- package/models/components/jmespathexpression.d.ts.map +1 -0
- package/models/components/jmespathexpression.js +71 -0
- package/models/components/jmespathexpression.js.map +1 -0
- package/models/components/loadtoolfromfiletask.d.ts +59 -0
- package/models/components/loadtoolfromfiletask.d.ts.map +1 -0
- package/models/components/loadtoolfromfiletask.js +88 -0
- package/models/components/loadtoolfromfiletask.js.map +1 -0
- package/models/components/nextstep.d.ts +93 -0
- package/models/components/nextstep.d.ts.map +1 -0
- package/models/components/nextstep.js +149 -0
- package/models/components/nextstep.js.map +1 -0
- package/models/components/saveaction.d.ts +92 -0
- package/models/components/saveaction.d.ts.map +1 -0
- package/models/components/saveaction.js +151 -0
- package/models/components/saveaction.js.map +1 -0
- package/models/components/sayaction.d.ts +108 -0
- package/models/components/sayaction.d.ts.map +1 -0
- package/models/components/sayaction.js +162 -0
- package/models/components/sayaction.js.map +1 -0
- package/models/components/setvalueaction.d.ts +154 -0
- package/models/components/setvalueaction.d.ts.map +1 -0
- package/models/components/setvalueaction.js +246 -0
- package/models/components/setvalueaction.js.map +1 -0
- package/models/components/step.d.ts +73 -0
- package/models/components/step.d.ts.map +1 -0
- package/models/components/step.js +103 -0
- package/models/components/step.js.map +1 -0
- package/models/components/stepeventactions.d.ts +185 -0
- package/models/components/stepeventactions.d.ts.map +1 -0
- package/models/components/stepeventactions.js +296 -0
- package/models/components/stepeventactions.js.map +1 -0
- package/models/components/stepstask.d.ts +42 -0
- package/models/components/stepstask.d.ts.map +1 -0
- package/models/components/stepstask.js +76 -0
- package/models/components/stepstask.js.map +1 -0
- package/models/components/steptools.d.ts +33 -0
- package/models/components/steptools.d.ts.map +1 -0
- package/models/components/steptools.js +71 -0
- package/models/components/steptools.js.map +1 -0
- package/models/components/tooldefinition.d.ts +6 -0
- package/models/components/tooldefinition.d.ts.map +1 -1
- package/models/components/tooldefinition.js +3 -0
- package/models/components/tooldefinition.js.map +1 -1
- package/models/components/variable.d.ts +119 -0
- package/models/components/variable.d.ts.map +1 -0
- package/models/components/variable.js +186 -0
- package/models/components/variable.js.map +1 -0
- package/openapi.json +2138 -291
- 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/bodyinsightsfolderuploadfile.ts +36 -25
- package/src/models/components/callaction.ts +331 -0
- package/src/models/components/caseexpression.ts +53 -0
- package/src/models/components/celexpression.ts +60 -0
- package/src/models/components/conditionaltext.ts +280 -0
- package/src/models/components/conditionalvalue.ts +477 -0
- package/src/models/components/context.ts +485 -0
- package/src/models/components/contexttaskmetadata.ts +67 -0
- package/src/models/components/contexttoolinfo.ts +59 -0
- package/src/models/components/eventtask.ts +102 -0
- package/src/models/components/eventtaskevents.ts +257 -0
- package/src/models/components/expressiontask.ts +333 -0
- package/src/models/components/expressiontaskevents.ts +430 -0
- package/src/models/components/incrementaction.ts +291 -0
- package/src/models/components/index.ts +25 -0
- package/src/models/components/inputparameter.ts +103 -0
- package/src/models/components/jmespathexpression.ts +86 -0
- package/src/models/components/loadtoolfromfiletask.ts +137 -0
- package/src/models/components/nextstep.ts +280 -0
- package/src/models/components/saveaction.ts +281 -0
- package/src/models/components/sayaction.ts +302 -0
- package/src/models/components/setvalueaction.ts +508 -0
- package/src/models/components/step.ts +174 -0
- package/src/models/components/stepeventactions.ts +619 -0
- package/src/models/components/stepstask.ts +102 -0
- package/src/models/components/steptools.ts +76 -0
- package/src/models/components/tooldefinition.ts +13 -0
- package/src/models/components/variable.ts +332 -0
- package/src/types/enums.ts +1 -21
- package/src/types/index.ts +2 -1
- package/src/types/unrecognized.ts +27 -0
- package/types/enums.d.ts +1 -8
- package/types/enums.d.ts.map +1 -1
- package/types/enums.js +3 -21
- package/types/enums.js.map +1 -1
- package/types/index.d.ts +2 -1
- package/types/index.d.ts.map +1 -1
- package/types/index.js +15 -0
- package/types/index.js.map +1 -1
- package/types/unrecognized.d.ts +10 -0
- package/types/unrecognized.d.ts.map +1 -0
- package/types/unrecognized.js +26 -0
- package/types/unrecognized.js.map +1 -0
|
@@ -0,0 +1,76 @@
|
|
|
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 { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Configuration for tools available in a step.
|
|
13
|
+
*/
|
|
14
|
+
export type StepTools = {
|
|
15
|
+
/**
|
|
16
|
+
* Whether to force immediate tool call without user interaction.
|
|
17
|
+
*/
|
|
18
|
+
call?: boolean | null | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* List of allowed tool names for this step.
|
|
21
|
+
*/
|
|
22
|
+
allow?: Array<string> | null | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Whether to expose the go_to_step escape hatch to the LLM. Defaults to disabled.
|
|
25
|
+
*/
|
|
26
|
+
allowGoToStep?: boolean | null | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const StepTools$inboundSchema: z.ZodType<
|
|
31
|
+
StepTools,
|
|
32
|
+
z.ZodTypeDef,
|
|
33
|
+
unknown
|
|
34
|
+
> = z.object({
|
|
35
|
+
call: z.nullable(z.boolean()).optional(),
|
|
36
|
+
allow: z.nullable(z.array(z.string())).optional(),
|
|
37
|
+
allow_go_to_step: z.nullable(z.boolean()).optional(),
|
|
38
|
+
}).transform((v) => {
|
|
39
|
+
return remap$(v, {
|
|
40
|
+
"allow_go_to_step": "allowGoToStep",
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
/** @internal */
|
|
44
|
+
export type StepTools$Outbound = {
|
|
45
|
+
call?: boolean | null | undefined;
|
|
46
|
+
allow?: Array<string> | null | undefined;
|
|
47
|
+
allow_go_to_step?: boolean | null | undefined;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const StepTools$outboundSchema: z.ZodType<
|
|
52
|
+
StepTools$Outbound,
|
|
53
|
+
z.ZodTypeDef,
|
|
54
|
+
StepTools
|
|
55
|
+
> = z.object({
|
|
56
|
+
call: z.nullable(z.boolean()).optional(),
|
|
57
|
+
allow: z.nullable(z.array(z.string())).optional(),
|
|
58
|
+
allowGoToStep: z.nullable(z.boolean()).optional(),
|
|
59
|
+
}).transform((v) => {
|
|
60
|
+
return remap$(v, {
|
|
61
|
+
allowGoToStep: "allow_go_to_step",
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
export function stepToolsToJSON(stepTools: StepTools): string {
|
|
66
|
+
return JSON.stringify(StepTools$outboundSchema.parse(stepTools));
|
|
67
|
+
}
|
|
68
|
+
export function stepToolsFromJSON(
|
|
69
|
+
jsonString: string,
|
|
70
|
+
): SafeParseResult<StepTools, SDKValidationError> {
|
|
71
|
+
return safeParse(
|
|
72
|
+
jsonString,
|
|
73
|
+
(x) => StepTools$inboundSchema.parse(JSON.parse(x)),
|
|
74
|
+
`Failed to parse 'StepTools' from JSON`,
|
|
75
|
+
);
|
|
76
|
+
}
|
|
@@ -8,6 +8,12 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
import {
|
|
12
|
+
Context,
|
|
13
|
+
Context$inboundSchema,
|
|
14
|
+
Context$Outbound,
|
|
15
|
+
Context$outboundSchema,
|
|
16
|
+
} from "./context.js";
|
|
11
17
|
import {
|
|
12
18
|
InternalTool,
|
|
13
19
|
InternalTool$inboundSchema,
|
|
@@ -68,6 +74,10 @@ export type ToolDefinition = {
|
|
|
68
74
|
* The configuration for an HTTP API call.
|
|
69
75
|
*/
|
|
70
76
|
endpoint?: ToolHttpEndpoint | null | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* The configuration for a context tool.
|
|
79
|
+
*/
|
|
80
|
+
context?: Context | null | undefined;
|
|
71
81
|
/**
|
|
72
82
|
* The default values for the parameters of the function/tool call.
|
|
73
83
|
*/
|
|
@@ -134,6 +144,7 @@ export const ToolDefinition$inboundSchema: z.ZodType<
|
|
|
134
144
|
type: z.nullable(Type$inboundSchema).optional(),
|
|
135
145
|
tool: InternalTool$inboundSchema,
|
|
136
146
|
endpoint: z.nullable(ToolHttpEndpoint$inboundSchema).optional(),
|
|
147
|
+
context: z.nullable(Context$inboundSchema).optional(),
|
|
137
148
|
defaults: z.nullable(
|
|
138
149
|
z.union([z.any(), z.record(ToolParameterDefault$inboundSchema)]),
|
|
139
150
|
).optional(),
|
|
@@ -151,6 +162,7 @@ export type ToolDefinition$Outbound = {
|
|
|
151
162
|
type?: string | null | undefined;
|
|
152
163
|
tool: InternalTool$Outbound;
|
|
153
164
|
endpoint?: ToolHttpEndpoint$Outbound | null | undefined;
|
|
165
|
+
context?: Context$Outbound | null | undefined;
|
|
154
166
|
defaults?:
|
|
155
167
|
| any
|
|
156
168
|
| { [k: string]: ToolParameterDefault$Outbound }
|
|
@@ -170,6 +182,7 @@ export const ToolDefinition$outboundSchema: z.ZodType<
|
|
|
170
182
|
type: z.nullable(Type$outboundSchema).optional(),
|
|
171
183
|
tool: InternalTool$outboundSchema,
|
|
172
184
|
endpoint: z.nullable(ToolHttpEndpoint$outboundSchema).optional(),
|
|
185
|
+
context: z.nullable(Context$outboundSchema).optional(),
|
|
173
186
|
defaults: z.nullable(
|
|
174
187
|
z.union([z.any(), z.record(ToolParameterDefault$outboundSchema)]),
|
|
175
188
|
).optional(),
|
|
@@ -0,0 +1,332 @@
|
|
|
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
|
+
import {
|
|
12
|
+
CaseExpression,
|
|
13
|
+
CaseExpression$inboundSchema,
|
|
14
|
+
CaseExpression$Outbound,
|
|
15
|
+
CaseExpression$outboundSchema,
|
|
16
|
+
} from "./caseexpression.js";
|
|
17
|
+
import {
|
|
18
|
+
CelExpression,
|
|
19
|
+
CelExpression$inboundSchema,
|
|
20
|
+
CelExpression$Outbound,
|
|
21
|
+
CelExpression$outboundSchema,
|
|
22
|
+
} from "./celexpression.js";
|
|
23
|
+
import {
|
|
24
|
+
JMESPathExpression,
|
|
25
|
+
JMESPathExpression$inboundSchema,
|
|
26
|
+
JMESPathExpression$Outbound,
|
|
27
|
+
JMESPathExpression$outboundSchema,
|
|
28
|
+
} from "./jmespathexpression.js";
|
|
29
|
+
|
|
30
|
+
export type One =
|
|
31
|
+
| (CelExpression & { type: "cel" })
|
|
32
|
+
| (JMESPathExpression & { type: "jmespath" })
|
|
33
|
+
| (JMESPathExpression & { type: "jp" });
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Expression to compute initial value (mutually exclusive with value).
|
|
37
|
+
*/
|
|
38
|
+
export type VariableValueFrom =
|
|
39
|
+
| CaseExpression
|
|
40
|
+
| (CelExpression & { type: "cel" })
|
|
41
|
+
| (JMESPathExpression & { type: "jmespath" })
|
|
42
|
+
| (JMESPathExpression & { type: "jp" })
|
|
43
|
+
| string;
|
|
44
|
+
|
|
45
|
+
export const VariableType = {
|
|
46
|
+
String: "string",
|
|
47
|
+
Number: "number",
|
|
48
|
+
Integer: "integer",
|
|
49
|
+
Boolean: "boolean",
|
|
50
|
+
Object: "object",
|
|
51
|
+
Array: "array",
|
|
52
|
+
Null: "null",
|
|
53
|
+
} as const;
|
|
54
|
+
export type VariableType = ClosedEnum<typeof VariableType>;
|
|
55
|
+
|
|
56
|
+
export type Variable = {
|
|
57
|
+
/**
|
|
58
|
+
* Initial value of the variable.
|
|
59
|
+
*/
|
|
60
|
+
value?: any | null | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Expression to compute initial value (mutually exclusive with value).
|
|
63
|
+
*/
|
|
64
|
+
valueFrom?:
|
|
65
|
+
| CaseExpression
|
|
66
|
+
| (CelExpression & { type: "cel" })
|
|
67
|
+
| (JMESPathExpression & { type: "jmespath" })
|
|
68
|
+
| (JMESPathExpression & { type: "jp" })
|
|
69
|
+
| string
|
|
70
|
+
| null
|
|
71
|
+
| undefined;
|
|
72
|
+
/**
|
|
73
|
+
* The name of the property.
|
|
74
|
+
*/
|
|
75
|
+
name: string;
|
|
76
|
+
type?: VariableType | null | undefined;
|
|
77
|
+
description?: string | null | undefined;
|
|
78
|
+
title?: string | null | undefined;
|
|
79
|
+
format?: string | null | undefined;
|
|
80
|
+
pattern?: string | null | undefined;
|
|
81
|
+
enum?: Array<string> | null | undefined;
|
|
82
|
+
examples?: Array<any> | null | undefined;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
/** @internal */
|
|
86
|
+
export const One$inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown> = z.union(
|
|
87
|
+
[
|
|
88
|
+
CelExpression$inboundSchema.and(
|
|
89
|
+
z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
|
|
90
|
+
),
|
|
91
|
+
JMESPathExpression$inboundSchema.and(
|
|
92
|
+
z.object({ type: z.literal("jmespath") }).transform((v) => ({
|
|
93
|
+
type: v.type,
|
|
94
|
+
})),
|
|
95
|
+
),
|
|
96
|
+
JMESPathExpression$inboundSchema.and(
|
|
97
|
+
z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
|
|
98
|
+
),
|
|
99
|
+
],
|
|
100
|
+
);
|
|
101
|
+
/** @internal */
|
|
102
|
+
export type One$Outbound =
|
|
103
|
+
| (CelExpression$Outbound & { type: "cel" })
|
|
104
|
+
| (JMESPathExpression$Outbound & { type: "jmespath" })
|
|
105
|
+
| (JMESPathExpression$Outbound & { type: "jp" });
|
|
106
|
+
|
|
107
|
+
/** @internal */
|
|
108
|
+
export const One$outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One> = z
|
|
109
|
+
.union([
|
|
110
|
+
CelExpression$outboundSchema.and(
|
|
111
|
+
z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
|
|
112
|
+
),
|
|
113
|
+
JMESPathExpression$outboundSchema.and(
|
|
114
|
+
z.object({ type: z.literal("jmespath") }).transform((v) => ({
|
|
115
|
+
type: v.type,
|
|
116
|
+
})),
|
|
117
|
+
),
|
|
118
|
+
JMESPathExpression$outboundSchema.and(
|
|
119
|
+
z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
|
|
120
|
+
),
|
|
121
|
+
]);
|
|
122
|
+
|
|
123
|
+
export function oneToJSON(one: One): string {
|
|
124
|
+
return JSON.stringify(One$outboundSchema.parse(one));
|
|
125
|
+
}
|
|
126
|
+
export function oneFromJSON(
|
|
127
|
+
jsonString: string,
|
|
128
|
+
): SafeParseResult<One, SDKValidationError> {
|
|
129
|
+
return safeParse(
|
|
130
|
+
jsonString,
|
|
131
|
+
(x) => One$inboundSchema.parse(JSON.parse(x)),
|
|
132
|
+
`Failed to parse 'One' from JSON`,
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/** @internal */
|
|
137
|
+
export const VariableValueFrom$inboundSchema: z.ZodType<
|
|
138
|
+
VariableValueFrom,
|
|
139
|
+
z.ZodTypeDef,
|
|
140
|
+
unknown
|
|
141
|
+
> = z.union([
|
|
142
|
+
CaseExpression$inboundSchema,
|
|
143
|
+
z.union([
|
|
144
|
+
CelExpression$inboundSchema.and(
|
|
145
|
+
z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
|
|
146
|
+
),
|
|
147
|
+
JMESPathExpression$inboundSchema.and(
|
|
148
|
+
z.object({ type: z.literal("jmespath") }).transform((v) => ({
|
|
149
|
+
type: v.type,
|
|
150
|
+
})),
|
|
151
|
+
),
|
|
152
|
+
JMESPathExpression$inboundSchema.and(
|
|
153
|
+
z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
|
|
154
|
+
),
|
|
155
|
+
]),
|
|
156
|
+
z.string(),
|
|
157
|
+
]);
|
|
158
|
+
/** @internal */
|
|
159
|
+
export type VariableValueFrom$Outbound =
|
|
160
|
+
| CaseExpression$Outbound
|
|
161
|
+
| (CelExpression$Outbound & { type: "cel" })
|
|
162
|
+
| (JMESPathExpression$Outbound & { type: "jmespath" })
|
|
163
|
+
| (JMESPathExpression$Outbound & { type: "jp" })
|
|
164
|
+
| string;
|
|
165
|
+
|
|
166
|
+
/** @internal */
|
|
167
|
+
export const VariableValueFrom$outboundSchema: z.ZodType<
|
|
168
|
+
VariableValueFrom$Outbound,
|
|
169
|
+
z.ZodTypeDef,
|
|
170
|
+
VariableValueFrom
|
|
171
|
+
> = z.union([
|
|
172
|
+
CaseExpression$outboundSchema,
|
|
173
|
+
z.union([
|
|
174
|
+
CelExpression$outboundSchema.and(
|
|
175
|
+
z.object({ type: z.literal("cel") }).transform((v) => ({ type: v.type })),
|
|
176
|
+
),
|
|
177
|
+
JMESPathExpression$outboundSchema.and(
|
|
178
|
+
z.object({ type: z.literal("jmespath") }).transform((v) => ({
|
|
179
|
+
type: v.type,
|
|
180
|
+
})),
|
|
181
|
+
),
|
|
182
|
+
JMESPathExpression$outboundSchema.and(
|
|
183
|
+
z.object({ type: z.literal("jp") }).transform((v) => ({ type: v.type })),
|
|
184
|
+
),
|
|
185
|
+
]),
|
|
186
|
+
z.string(),
|
|
187
|
+
]);
|
|
188
|
+
|
|
189
|
+
export function variableValueFromToJSON(
|
|
190
|
+
variableValueFrom: VariableValueFrom,
|
|
191
|
+
): string {
|
|
192
|
+
return JSON.stringify(
|
|
193
|
+
VariableValueFrom$outboundSchema.parse(variableValueFrom),
|
|
194
|
+
);
|
|
195
|
+
}
|
|
196
|
+
export function variableValueFromFromJSON(
|
|
197
|
+
jsonString: string,
|
|
198
|
+
): SafeParseResult<VariableValueFrom, SDKValidationError> {
|
|
199
|
+
return safeParse(
|
|
200
|
+
jsonString,
|
|
201
|
+
(x) => VariableValueFrom$inboundSchema.parse(JSON.parse(x)),
|
|
202
|
+
`Failed to parse 'VariableValueFrom' from JSON`,
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/** @internal */
|
|
207
|
+
export const VariableType$inboundSchema: z.ZodNativeEnum<typeof VariableType> =
|
|
208
|
+
z.nativeEnum(VariableType);
|
|
209
|
+
/** @internal */
|
|
210
|
+
export const VariableType$outboundSchema: z.ZodNativeEnum<typeof VariableType> =
|
|
211
|
+
VariableType$inboundSchema;
|
|
212
|
+
|
|
213
|
+
/** @internal */
|
|
214
|
+
export const Variable$inboundSchema: z.ZodType<
|
|
215
|
+
Variable,
|
|
216
|
+
z.ZodTypeDef,
|
|
217
|
+
unknown
|
|
218
|
+
> = z.object({
|
|
219
|
+
value: z.nullable(z.any()).optional(),
|
|
220
|
+
value_from: z.nullable(
|
|
221
|
+
z.union([
|
|
222
|
+
CaseExpression$inboundSchema,
|
|
223
|
+
z.union([
|
|
224
|
+
CelExpression$inboundSchema.and(
|
|
225
|
+
z.object({ type: z.literal("cel") }).transform((v) => ({
|
|
226
|
+
type: v.type,
|
|
227
|
+
})),
|
|
228
|
+
),
|
|
229
|
+
JMESPathExpression$inboundSchema.and(
|
|
230
|
+
z.object({ type: z.literal("jmespath") }).transform((v) => ({
|
|
231
|
+
type: v.type,
|
|
232
|
+
})),
|
|
233
|
+
),
|
|
234
|
+
JMESPathExpression$inboundSchema.and(
|
|
235
|
+
z.object({ type: z.literal("jp") }).transform((v) => ({
|
|
236
|
+
type: v.type,
|
|
237
|
+
})),
|
|
238
|
+
),
|
|
239
|
+
]),
|
|
240
|
+
z.string(),
|
|
241
|
+
]),
|
|
242
|
+
).optional(),
|
|
243
|
+
name: z.string(),
|
|
244
|
+
type: z.nullable(VariableType$inboundSchema).optional(),
|
|
245
|
+
description: z.nullable(z.string()).optional(),
|
|
246
|
+
title: z.nullable(z.string()).optional(),
|
|
247
|
+
format: z.nullable(z.string()).optional(),
|
|
248
|
+
pattern: z.nullable(z.string()).optional(),
|
|
249
|
+
enum: z.nullable(z.array(z.string())).optional(),
|
|
250
|
+
examples: z.nullable(z.array(z.any())).optional(),
|
|
251
|
+
}).transform((v) => {
|
|
252
|
+
return remap$(v, {
|
|
253
|
+
"value_from": "valueFrom",
|
|
254
|
+
});
|
|
255
|
+
});
|
|
256
|
+
/** @internal */
|
|
257
|
+
export type Variable$Outbound = {
|
|
258
|
+
value?: any | null | undefined;
|
|
259
|
+
value_from?:
|
|
260
|
+
| CaseExpression$Outbound
|
|
261
|
+
| (CelExpression$Outbound & { type: "cel" })
|
|
262
|
+
| (JMESPathExpression$Outbound & { type: "jmespath" })
|
|
263
|
+
| (JMESPathExpression$Outbound & { type: "jp" })
|
|
264
|
+
| string
|
|
265
|
+
| null
|
|
266
|
+
| undefined;
|
|
267
|
+
name: string;
|
|
268
|
+
type?: string | null | undefined;
|
|
269
|
+
description?: string | null | undefined;
|
|
270
|
+
title?: string | null | undefined;
|
|
271
|
+
format?: string | null | undefined;
|
|
272
|
+
pattern?: string | null | undefined;
|
|
273
|
+
enum?: Array<string> | null | undefined;
|
|
274
|
+
examples?: Array<any> | null | undefined;
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
/** @internal */
|
|
278
|
+
export const Variable$outboundSchema: z.ZodType<
|
|
279
|
+
Variable$Outbound,
|
|
280
|
+
z.ZodTypeDef,
|
|
281
|
+
Variable
|
|
282
|
+
> = z.object({
|
|
283
|
+
value: z.nullable(z.any()).optional(),
|
|
284
|
+
valueFrom: z.nullable(
|
|
285
|
+
z.union([
|
|
286
|
+
CaseExpression$outboundSchema,
|
|
287
|
+
z.union([
|
|
288
|
+
CelExpression$outboundSchema.and(
|
|
289
|
+
z.object({ type: z.literal("cel") }).transform((v) => ({
|
|
290
|
+
type: v.type,
|
|
291
|
+
})),
|
|
292
|
+
),
|
|
293
|
+
JMESPathExpression$outboundSchema.and(
|
|
294
|
+
z.object({ type: z.literal("jmespath") }).transform((v) => ({
|
|
295
|
+
type: v.type,
|
|
296
|
+
})),
|
|
297
|
+
),
|
|
298
|
+
JMESPathExpression$outboundSchema.and(
|
|
299
|
+
z.object({ type: z.literal("jp") }).transform((v) => ({
|
|
300
|
+
type: v.type,
|
|
301
|
+
})),
|
|
302
|
+
),
|
|
303
|
+
]),
|
|
304
|
+
z.string(),
|
|
305
|
+
]),
|
|
306
|
+
).optional(),
|
|
307
|
+
name: z.string(),
|
|
308
|
+
type: z.nullable(VariableType$outboundSchema).optional(),
|
|
309
|
+
description: z.nullable(z.string()).optional(),
|
|
310
|
+
title: z.nullable(z.string()).optional(),
|
|
311
|
+
format: z.nullable(z.string()).optional(),
|
|
312
|
+
pattern: z.nullable(z.string()).optional(),
|
|
313
|
+
enum: z.nullable(z.array(z.string())).optional(),
|
|
314
|
+
examples: z.nullable(z.array(z.any())).optional(),
|
|
315
|
+
}).transform((v) => {
|
|
316
|
+
return remap$(v, {
|
|
317
|
+
valueFrom: "value_from",
|
|
318
|
+
});
|
|
319
|
+
});
|
|
320
|
+
|
|
321
|
+
export function variableToJSON(variable: Variable): string {
|
|
322
|
+
return JSON.stringify(Variable$outboundSchema.parse(variable));
|
|
323
|
+
}
|
|
324
|
+
export function variableFromJSON(
|
|
325
|
+
jsonString: string,
|
|
326
|
+
): SafeParseResult<Variable, SDKValidationError> {
|
|
327
|
+
return safeParse(
|
|
328
|
+
jsonString,
|
|
329
|
+
(x) => Variable$inboundSchema.parse(JSON.parse(x)),
|
|
330
|
+
`Failed to parse 'Variable' from JSON`,
|
|
331
|
+
);
|
|
332
|
+
}
|
package/src/types/enums.ts
CHANGED
|
@@ -3,34 +3,14 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
+
import { Unrecognized, unrecognized } from "./unrecognized.js";
|
|
6
7
|
|
|
7
|
-
declare const __brand: unique symbol;
|
|
8
|
-
export type Unrecognized<T> = T & { [__brand]: "unrecognized" };
|
|
9
8
|
export type ClosedEnum<T extends Readonly<Record<string, string | number>>> =
|
|
10
9
|
T[keyof T];
|
|
11
10
|
export type OpenEnum<T extends Readonly<Record<string, string | number>>> =
|
|
12
11
|
| T[keyof T]
|
|
13
12
|
| Unrecognized<T[keyof T] extends number ? number : string>;
|
|
14
13
|
|
|
15
|
-
function unrecognized<T>(value: T): Unrecognized<T> {
|
|
16
|
-
unrecognizedCount++;
|
|
17
|
-
return value as Unrecognized<T>;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
let unrecognizedCount = 0;
|
|
21
|
-
let refCount = 0;
|
|
22
|
-
export function unrecognizedCounter() {
|
|
23
|
-
refCount++;
|
|
24
|
-
const start = unrecognizedCount;
|
|
25
|
-
return {
|
|
26
|
-
count: () => {
|
|
27
|
-
const count = unrecognizedCount - start;
|
|
28
|
-
if (--refCount === 0) unrecognizedCount = 0;
|
|
29
|
-
return count;
|
|
30
|
-
},
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
|
|
34
14
|
export function inboundSchema<T extends Record<string, string>>(
|
|
35
15
|
enumObj: T,
|
|
36
16
|
): z.ZodType<OpenEnum<T>, z.ZodTypeDef, unknown> {
|
package/src/types/index.ts
CHANGED
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
export { blobLikeSchema, isBlobLike } from "./blobs.js";
|
|
6
|
-
export type { ClosedEnum, OpenEnum
|
|
6
|
+
export type { ClosedEnum, OpenEnum } from "./enums.js";
|
|
7
7
|
export type { Result } from "./fp.js";
|
|
8
8
|
export type { PageIterator, Paginator } from "./operations.js";
|
|
9
9
|
export { createPageIterator } from "./operations.js";
|
|
10
10
|
export { RFCDate } from "./rfcdate.js";
|
|
11
|
+
export * from "./unrecognized.js";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
declare const __brand: unique symbol;
|
|
6
|
+
export type Unrecognized<T> = T & { [__brand]: "unrecognized" };
|
|
7
|
+
|
|
8
|
+
function unrecognized<T>(value: T): Unrecognized<T> {
|
|
9
|
+
globalCount++;
|
|
10
|
+
return value as Unrecognized<T>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
let globalCount = 0;
|
|
14
|
+
let refCount = 0;
|
|
15
|
+
export function startCountingUnrecognized() {
|
|
16
|
+
refCount++;
|
|
17
|
+
const start = globalCount;
|
|
18
|
+
return {
|
|
19
|
+
end: () => {
|
|
20
|
+
const count = globalCount - start;
|
|
21
|
+
if (--refCount === 0) globalCount = 0;
|
|
22
|
+
return count;
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { unrecognized };
|
package/types/enums.d.ts
CHANGED
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
|
-
|
|
3
|
-
export type Unrecognized<T> = T & {
|
|
4
|
-
[__brand]: "unrecognized";
|
|
5
|
-
};
|
|
2
|
+
import { Unrecognized } from "./unrecognized.js";
|
|
6
3
|
export type ClosedEnum<T extends Readonly<Record<string, string | number>>> = T[keyof T];
|
|
7
4
|
export type OpenEnum<T extends Readonly<Record<string, string | number>>> = T[keyof T] | Unrecognized<T[keyof T] extends number ? number : string>;
|
|
8
|
-
export declare function unrecognizedCounter(): {
|
|
9
|
-
count: () => number;
|
|
10
|
-
};
|
|
11
5
|
export declare function inboundSchema<T extends Record<string, string>>(enumObj: T): z.ZodType<OpenEnum<T>, z.ZodTypeDef, unknown>;
|
|
12
6
|
export declare function inboundSchemaInt<T extends Record<string, number | string>>(enumObj: T): z.ZodType<OpenEnum<T>, z.ZodTypeDef, unknown>;
|
|
13
7
|
export declare function outboundSchema<T extends Record<string, string>>(_: T): z.ZodType<string, z.ZodTypeDef, OpenEnum<T>>;
|
|
14
8
|
export declare function outboundSchemaInt<T extends Record<string, number | string>>(_: T): z.ZodType<number, z.ZodTypeDef, OpenEnum<T>>;
|
|
15
|
-
export {};
|
|
16
9
|
//# sourceMappingURL=enums.d.ts.map
|
package/types/enums.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../src/types/enums.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../src/types/enums.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAgB,MAAM,mBAAmB,CAAC;AAE/D,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,IACxE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AACb,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,IACpE,CAAC,CAAC,MAAM,CAAC,CAAC,GACV,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,CAAC;AAE9D,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC5D,OAAO,EAAE,CAAC,GACT,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAAC,CAM/C;AAED,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,EACxE,OAAO,EAAE,CAAC,GACT,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAAC,CAO/C;AAED,wBAAgB,cAAc,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC7D,CAAC,EAAE,CAAC,GACH,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAE9C;AAED,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,EACzE,CAAC,EAAE,CAAC,GACH,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAE9C"}
|
package/types/enums.js
CHANGED
|
@@ -36,35 +36,17 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.unrecognizedCounter = unrecognizedCounter;
|
|
40
39
|
exports.inboundSchema = inboundSchema;
|
|
41
40
|
exports.inboundSchemaInt = inboundSchemaInt;
|
|
42
41
|
exports.outboundSchema = outboundSchema;
|
|
43
42
|
exports.outboundSchemaInt = outboundSchemaInt;
|
|
44
43
|
const z = __importStar(require("zod/v3"));
|
|
45
|
-
|
|
46
|
-
unrecognizedCount++;
|
|
47
|
-
return value;
|
|
48
|
-
}
|
|
49
|
-
let unrecognizedCount = 0;
|
|
50
|
-
let refCount = 0;
|
|
51
|
-
function unrecognizedCounter() {
|
|
52
|
-
refCount++;
|
|
53
|
-
const start = unrecognizedCount;
|
|
54
|
-
return {
|
|
55
|
-
count: () => {
|
|
56
|
-
const count = unrecognizedCount - start;
|
|
57
|
-
if (--refCount === 0)
|
|
58
|
-
unrecognizedCount = 0;
|
|
59
|
-
return count;
|
|
60
|
-
},
|
|
61
|
-
};
|
|
62
|
-
}
|
|
44
|
+
const unrecognized_js_1 = require("./unrecognized.js");
|
|
63
45
|
function inboundSchema(enumObj) {
|
|
64
46
|
const options = Object.values(enumObj);
|
|
65
47
|
return z.union([
|
|
66
48
|
...options.map(x => z.literal(x)),
|
|
67
|
-
z.string().transform(x => unrecognized(x)),
|
|
49
|
+
z.string().transform(x => (0, unrecognized_js_1.unrecognized)(x)),
|
|
68
50
|
]);
|
|
69
51
|
}
|
|
70
52
|
function inboundSchemaInt(enumObj) {
|
|
@@ -72,7 +54,7 @@ function inboundSchemaInt(enumObj) {
|
|
|
72
54
|
const options = Object.values(enumObj).filter(v => typeof v === "number");
|
|
73
55
|
return z.union([
|
|
74
56
|
...options.map(x => z.literal(x)),
|
|
75
|
-
z.number().int().transform(x => unrecognized(x)),
|
|
57
|
+
z.number().int().transform(x => (0, unrecognized_js_1.unrecognized)(x)),
|
|
76
58
|
]);
|
|
77
59
|
}
|
|
78
60
|
function outboundSchema(_) {
|
package/types/enums.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../src/types/enums.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../src/types/enums.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWH,sCAQC;AAED,4CASC;AAED,wCAIC;AAED,8CAIC;AAxCD,0CAA4B;AAC5B,uDAA+D;AAQ/D,SAAgB,aAAa,CAC3B,OAAU;IAEV,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACvC,OAAO,CAAC,CAAC,KAAK,CAAC;QACb,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QACjC,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAA,8BAAY,EAAC,CAAC,CAAC,CAAC;KACpC,CAAC,CAAC;AACZ,CAAC;AAED,SAAgB,gBAAgB,CAC9B,OAAU;IAEV,wEAAwE;IACxE,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC;IAC1E,OAAO,CAAC,CAAC,KAAK,CAAC;QACb,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QACjC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAA,8BAAY,EAAC,CAAC,CAAC,CAAC;KAC1C,CAAC,CAAC;AACZ,CAAC;AAED,SAAgB,cAAc,CAC5B,CAAI;IAEJ,OAAO,CAAC,CAAC,MAAM,EAAS,CAAC;AAC3B,CAAC;AAED,SAAgB,iBAAiB,CAC/B,CAAI;IAEJ,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAS,CAAC;AACjC,CAAC"}
|
package/types/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export { blobLikeSchema, isBlobLike } from "./blobs.js";
|
|
2
|
-
export type { ClosedEnum, OpenEnum
|
|
2
|
+
export type { ClosedEnum, OpenEnum } from "./enums.js";
|
|
3
3
|
export type { Result } from "./fp.js";
|
|
4
4
|
export type { PageIterator, Paginator } from "./operations.js";
|
|
5
5
|
export { createPageIterator } from "./operations.js";
|
|
6
6
|
export { RFCDate } from "./rfcdate.js";
|
|
7
|
+
export * from "./unrecognized.js";
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/types/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxD,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/types/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxD,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACvD,YAAY,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACtC,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,cAAc,mBAAmB,CAAC"}
|
package/types/index.js
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
/*
|
|
3
3
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
17
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
|
+
};
|
|
5
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
20
|
exports.RFCDate = exports.createPageIterator = exports.isBlobLike = exports.blobLikeSchema = void 0;
|
|
7
21
|
var blobs_js_1 = require("./blobs.js");
|
|
@@ -11,4 +25,5 @@ var operations_js_1 = require("./operations.js");
|
|
|
11
25
|
Object.defineProperty(exports, "createPageIterator", { enumerable: true, get: function () { return operations_js_1.createPageIterator; } });
|
|
12
26
|
var rfcdate_js_1 = require("./rfcdate.js");
|
|
13
27
|
Object.defineProperty(exports, "RFCDate", { enumerable: true, get: function () { return rfcdate_js_1.RFCDate; } });
|
|
28
|
+
__exportStar(require("./unrecognized.js"), exports);
|
|
14
29
|
//# sourceMappingURL=index.js.map
|
package/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/types/index.ts"],"names":[],"mappings":";AAAA;;GAEG
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/types/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;AAEH,uCAAwD;AAA/C,0GAAA,cAAc,OAAA;AAAE,sGAAA,UAAU,OAAA;AAInC,iDAAqD;AAA5C,mHAAA,kBAAkB,OAAA;AAC3B,2CAAuC;AAA9B,qGAAA,OAAO,OAAA;AAChB,oDAAkC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const __brand: unique symbol;
|
|
2
|
+
export type Unrecognized<T> = T & {
|
|
3
|
+
[__brand]: "unrecognized";
|
|
4
|
+
};
|
|
5
|
+
declare function unrecognized<T>(value: T): Unrecognized<T>;
|
|
6
|
+
export declare function startCountingUnrecognized(): {
|
|
7
|
+
end: () => number;
|
|
8
|
+
};
|
|
9
|
+
export { unrecognized };
|
|
10
|
+
//# sourceMappingURL=unrecognized.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unrecognized.d.ts","sourceRoot":"","sources":["../src/types/unrecognized.ts"],"names":[],"mappings":"AAIA,OAAO,CAAC,MAAM,OAAO,EAAE,OAAO,MAAM,CAAC;AACrC,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG;IAAE,CAAC,OAAO,CAAC,EAAE,cAAc,CAAA;CAAE,CAAC;AAEhE,iBAAS,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,CAGlD;AAID,wBAAgB,yBAAyB;;EAUxC;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
|