cribl-control-plane 0.4.0-beta.3 → 0.4.0-beta.4
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/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/models/configgroup.d.ts +1 -1
- package/dist/commonjs/models/configgroup.js +1 -1
- package/dist/commonjs/models/configgroup.js.map +1 -1
- package/dist/commonjs/models/difffiles.d.ts +5 -27
- package/dist/commonjs/models/difffiles.d.ts.map +1 -1
- package/dist/commonjs/models/difffiles.js +3 -47
- package/dist/commonjs/models/difffiles.js.map +1 -1
- package/dist/commonjs/models/diffline.d.ts +17 -0
- package/dist/commonjs/models/diffline.d.ts.map +1 -0
- package/dist/commonjs/models/diffline.js +61 -0
- package/dist/commonjs/models/diffline.js.map +1 -0
- package/dist/commonjs/models/difflinecontext.d.ts +20 -0
- package/dist/commonjs/models/difflinecontext.d.ts.map +1 -0
- package/dist/commonjs/models/difflinecontext.js +58 -0
- package/dist/commonjs/models/difflinecontext.js.map +1 -0
- package/dist/commonjs/models/difflinedelete.d.ts +19 -0
- package/dist/commonjs/models/difflinedelete.d.ts.map +1 -0
- package/dist/commonjs/models/difflinedelete.js +57 -0
- package/dist/commonjs/models/difflinedelete.js.map +1 -0
- package/dist/commonjs/models/difflineinsert.d.ts +19 -0
- package/dist/commonjs/models/difflineinsert.d.ts.map +1 -0
- package/dist/commonjs/models/difflineinsert.js +57 -0
- package/dist/commonjs/models/difflineinsert.js.map +1 -0
- package/dist/commonjs/models/groupcreaterequest.d.ts +1 -1
- package/dist/commonjs/models/groupcreaterequest.js +1 -1
- package/dist/commonjs/models/groupcreaterequest.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +4 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +4 -0
- package/dist/commonjs/models/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/models/configgroup.d.ts +1 -1
- package/dist/esm/models/configgroup.js +1 -1
- package/dist/esm/models/configgroup.js.map +1 -1
- package/dist/esm/models/difffiles.d.ts +5 -27
- package/dist/esm/models/difffiles.d.ts.map +1 -1
- package/dist/esm/models/difffiles.js +2 -42
- package/dist/esm/models/difffiles.js.map +1 -1
- package/dist/esm/models/diffline.d.ts +17 -0
- package/dist/esm/models/diffline.d.ts.map +1 -0
- package/dist/esm/models/diffline.js +24 -0
- package/dist/esm/models/diffline.js.map +1 -0
- package/dist/esm/models/difflinecontext.d.ts +20 -0
- package/dist/esm/models/difflinecontext.d.ts.map +1 -0
- package/dist/esm/models/difflinecontext.js +21 -0
- package/dist/esm/models/difflinecontext.js.map +1 -0
- package/dist/esm/models/difflinedelete.d.ts +19 -0
- package/dist/esm/models/difflinedelete.d.ts.map +1 -0
- package/dist/esm/models/difflinedelete.js +20 -0
- package/dist/esm/models/difflinedelete.js.map +1 -0
- package/dist/esm/models/difflineinsert.d.ts +19 -0
- package/dist/esm/models/difflineinsert.d.ts.map +1 -0
- package/dist/esm/models/difflineinsert.js +20 -0
- package/dist/esm/models/difflineinsert.js.map +1 -0
- package/dist/esm/models/groupcreaterequest.d.ts +1 -1
- package/dist/esm/models/groupcreaterequest.js +1 -1
- package/dist/esm/models/groupcreaterequest.js.map +1 -1
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/models/index.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/configgroup.ts +1 -1
- package/src/models/difffiles.ts +6 -99
- package/src/models/diffline.ts +58 -0
- package/src/models/difflinecontext.ts +48 -0
- package/src/models/difflinedelete.ts +46 -0
- package/src/models/difflineinsert.ts +46 -0
- package/src/models/groupcreaterequest.ts +1 -1
- package/src/models/index.ts +4 -0
package/jsr.json
CHANGED
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -61,9 +61,9 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
61
61
|
|
|
62
62
|
export const SDK_METADATA = {
|
|
63
63
|
language: "typescript",
|
|
64
|
-
openapiDocVersion: "4.16.0-alpha.
|
|
65
|
-
sdkVersion: "0.4.0-beta.
|
|
64
|
+
openapiDocVersion: "4.16.0-alpha.1763766224234-f72e4308",
|
|
65
|
+
sdkVersion: "0.4.0-beta.4",
|
|
66
66
|
genVersion: "2.755.9",
|
|
67
67
|
userAgent:
|
|
68
|
-
"speakeasy-sdk/typescript 0.4.0-beta.
|
|
68
|
+
"speakeasy-sdk/typescript 0.4.0-beta.4 2.755.9 4.16.0-alpha.1763766224234-f72e4308 cribl-control-plane",
|
|
69
69
|
} as const;
|
package/src/models/difffiles.ts
CHANGED
|
@@ -5,29 +5,15 @@
|
|
|
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 { DiffLine, DiffLine$inboundSchema } from "./diffline.js";
|
|
8
9
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
9
10
|
|
|
10
|
-
export type Line3 = {
|
|
11
|
-
content: string;
|
|
12
|
-
newNumber: number;
|
|
13
|
-
oldNumber: number;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export type Line2 = {
|
|
17
|
-
content: string;
|
|
18
|
-
newNumber: number;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export type Line1 = {
|
|
22
|
-
content: string;
|
|
23
|
-
oldNumber: number;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export type LineUnion = Line3 | Line1 | Line2;
|
|
27
|
-
|
|
28
11
|
export type Block = {
|
|
29
12
|
header: string;
|
|
30
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Diff Line
|
|
15
|
+
*/
|
|
16
|
+
lines: Array<DiffLine>;
|
|
31
17
|
newStartLine: number;
|
|
32
18
|
oldStartLine: number;
|
|
33
19
|
oldStartLine2?: number | undefined;
|
|
@@ -63,90 +49,11 @@ export type DiffFiles = {
|
|
|
63
49
|
unchangedPercentage?: number | undefined;
|
|
64
50
|
};
|
|
65
51
|
|
|
66
|
-
/** @internal */
|
|
67
|
-
export const Line3$inboundSchema: z.ZodType<Line3, z.ZodTypeDef, unknown> = z
|
|
68
|
-
.object({
|
|
69
|
-
content: z.string(),
|
|
70
|
-
newNumber: z.number(),
|
|
71
|
-
oldNumber: z.number(),
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
export function line3FromJSON(
|
|
75
|
-
jsonString: string,
|
|
76
|
-
): SafeParseResult<Line3, SDKValidationError> {
|
|
77
|
-
return safeParse(
|
|
78
|
-
jsonString,
|
|
79
|
-
(x) => Line3$inboundSchema.parse(JSON.parse(x)),
|
|
80
|
-
`Failed to parse 'Line3' from JSON`,
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/** @internal */
|
|
85
|
-
export const Line2$inboundSchema: z.ZodType<Line2, z.ZodTypeDef, unknown> = z
|
|
86
|
-
.object({
|
|
87
|
-
content: z.string(),
|
|
88
|
-
newNumber: z.number(),
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
export function line2FromJSON(
|
|
92
|
-
jsonString: string,
|
|
93
|
-
): SafeParseResult<Line2, SDKValidationError> {
|
|
94
|
-
return safeParse(
|
|
95
|
-
jsonString,
|
|
96
|
-
(x) => Line2$inboundSchema.parse(JSON.parse(x)),
|
|
97
|
-
`Failed to parse 'Line2' from JSON`,
|
|
98
|
-
);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/** @internal */
|
|
102
|
-
export const Line1$inboundSchema: z.ZodType<Line1, z.ZodTypeDef, unknown> = z
|
|
103
|
-
.object({
|
|
104
|
-
content: z.string(),
|
|
105
|
-
oldNumber: z.number(),
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
export function line1FromJSON(
|
|
109
|
-
jsonString: string,
|
|
110
|
-
): SafeParseResult<Line1, SDKValidationError> {
|
|
111
|
-
return safeParse(
|
|
112
|
-
jsonString,
|
|
113
|
-
(x) => Line1$inboundSchema.parse(JSON.parse(x)),
|
|
114
|
-
`Failed to parse 'Line1' from JSON`,
|
|
115
|
-
);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/** @internal */
|
|
119
|
-
export const LineUnion$inboundSchema: z.ZodType<
|
|
120
|
-
LineUnion,
|
|
121
|
-
z.ZodTypeDef,
|
|
122
|
-
unknown
|
|
123
|
-
> = z.union([
|
|
124
|
-
z.lazy(() => Line3$inboundSchema),
|
|
125
|
-
z.lazy(() => Line1$inboundSchema),
|
|
126
|
-
z.lazy(() => Line2$inboundSchema),
|
|
127
|
-
]);
|
|
128
|
-
|
|
129
|
-
export function lineUnionFromJSON(
|
|
130
|
-
jsonString: string,
|
|
131
|
-
): SafeParseResult<LineUnion, SDKValidationError> {
|
|
132
|
-
return safeParse(
|
|
133
|
-
jsonString,
|
|
134
|
-
(x) => LineUnion$inboundSchema.parse(JSON.parse(x)),
|
|
135
|
-
`Failed to parse 'LineUnion' from JSON`,
|
|
136
|
-
);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
52
|
/** @internal */
|
|
140
53
|
export const Block$inboundSchema: z.ZodType<Block, z.ZodTypeDef, unknown> = z
|
|
141
54
|
.object({
|
|
142
55
|
header: z.string(),
|
|
143
|
-
lines: z.array(
|
|
144
|
-
z.union([
|
|
145
|
-
z.lazy(() => Line3$inboundSchema),
|
|
146
|
-
z.lazy(() => Line1$inboundSchema),
|
|
147
|
-
z.lazy(() => Line2$inboundSchema),
|
|
148
|
-
]),
|
|
149
|
-
),
|
|
56
|
+
lines: z.array(DiffLine$inboundSchema),
|
|
150
57
|
newStartLine: z.number(),
|
|
151
58
|
oldStartLine: z.number(),
|
|
152
59
|
oldStartLine2: z.number().optional(),
|
|
@@ -0,0 +1,58 @@
|
|
|
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 {
|
|
9
|
+
DiffLineContext,
|
|
10
|
+
DiffLineContext$inboundSchema,
|
|
11
|
+
} from "./difflinecontext.js";
|
|
12
|
+
import {
|
|
13
|
+
DiffLineDelete,
|
|
14
|
+
DiffLineDelete$inboundSchema,
|
|
15
|
+
} from "./difflinedelete.js";
|
|
16
|
+
import {
|
|
17
|
+
DiffLineInsert,
|
|
18
|
+
DiffLineInsert$inboundSchema,
|
|
19
|
+
} from "./difflineinsert.js";
|
|
20
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
21
|
+
|
|
22
|
+
export type DiffLine =
|
|
23
|
+
| (DiffLineContext & { type: "context" })
|
|
24
|
+
| (DiffLineDelete & { type: "delete" })
|
|
25
|
+
| (DiffLineInsert & { type: "insert" });
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const DiffLine$inboundSchema: z.ZodType<
|
|
29
|
+
DiffLine,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
unknown
|
|
32
|
+
> = z.union([
|
|
33
|
+
DiffLineContext$inboundSchema.and(
|
|
34
|
+
z.object({ type: z.literal("context") }).transform((v) => ({
|
|
35
|
+
type: v.type,
|
|
36
|
+
})),
|
|
37
|
+
),
|
|
38
|
+
DiffLineDelete$inboundSchema.and(
|
|
39
|
+
z.object({ type: z.literal("delete") }).transform((v) => ({
|
|
40
|
+
type: v.type,
|
|
41
|
+
})),
|
|
42
|
+
),
|
|
43
|
+
DiffLineInsert$inboundSchema.and(
|
|
44
|
+
z.object({ type: z.literal("insert") }).transform((v) => ({
|
|
45
|
+
type: v.type,
|
|
46
|
+
})),
|
|
47
|
+
),
|
|
48
|
+
]);
|
|
49
|
+
|
|
50
|
+
export function diffLineFromJSON(
|
|
51
|
+
jsonString: string,
|
|
52
|
+
): SafeParseResult<DiffLine, SDKValidationError> {
|
|
53
|
+
return safeParse(
|
|
54
|
+
jsonString,
|
|
55
|
+
(x) => DiffLine$inboundSchema.parse(JSON.parse(x)),
|
|
56
|
+
`Failed to parse 'DiffLine' from JSON`,
|
|
57
|
+
);
|
|
58
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export const DiffLineContextType = {
|
|
12
|
+
Context: "context",
|
|
13
|
+
} as const;
|
|
14
|
+
export type DiffLineContextType = ClosedEnum<typeof DiffLineContextType>;
|
|
15
|
+
|
|
16
|
+
export type DiffLineContext = {
|
|
17
|
+
type: DiffLineContextType;
|
|
18
|
+
newNumber: number;
|
|
19
|
+
oldNumber: number;
|
|
20
|
+
content: string;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const DiffLineContextType$inboundSchema: z.ZodNativeEnum<
|
|
25
|
+
typeof DiffLineContextType
|
|
26
|
+
> = z.nativeEnum(DiffLineContextType);
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const DiffLineContext$inboundSchema: z.ZodType<
|
|
30
|
+
DiffLineContext,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
type: DiffLineContextType$inboundSchema,
|
|
35
|
+
newNumber: z.number(),
|
|
36
|
+
oldNumber: z.number(),
|
|
37
|
+
content: z.string(),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export function diffLineContextFromJSON(
|
|
41
|
+
jsonString: string,
|
|
42
|
+
): SafeParseResult<DiffLineContext, SDKValidationError> {
|
|
43
|
+
return safeParse(
|
|
44
|
+
jsonString,
|
|
45
|
+
(x) => DiffLineContext$inboundSchema.parse(JSON.parse(x)),
|
|
46
|
+
`Failed to parse 'DiffLineContext' from JSON`,
|
|
47
|
+
);
|
|
48
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export const DiffLineDeleteType = {
|
|
12
|
+
Delete: "delete",
|
|
13
|
+
} as const;
|
|
14
|
+
export type DiffLineDeleteType = ClosedEnum<typeof DiffLineDeleteType>;
|
|
15
|
+
|
|
16
|
+
export type DiffLineDelete = {
|
|
17
|
+
type: DiffLineDeleteType;
|
|
18
|
+
oldNumber: number;
|
|
19
|
+
content: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const DiffLineDeleteType$inboundSchema: z.ZodNativeEnum<
|
|
24
|
+
typeof DiffLineDeleteType
|
|
25
|
+
> = z.nativeEnum(DiffLineDeleteType);
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const DiffLineDelete$inboundSchema: z.ZodType<
|
|
29
|
+
DiffLineDelete,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
unknown
|
|
32
|
+
> = z.object({
|
|
33
|
+
type: DiffLineDeleteType$inboundSchema,
|
|
34
|
+
oldNumber: z.number(),
|
|
35
|
+
content: z.string(),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export function diffLineDeleteFromJSON(
|
|
39
|
+
jsonString: string,
|
|
40
|
+
): SafeParseResult<DiffLineDelete, SDKValidationError> {
|
|
41
|
+
return safeParse(
|
|
42
|
+
jsonString,
|
|
43
|
+
(x) => DiffLineDelete$inboundSchema.parse(JSON.parse(x)),
|
|
44
|
+
`Failed to parse 'DiffLineDelete' from JSON`,
|
|
45
|
+
);
|
|
46
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export const DiffLineInsertType = {
|
|
12
|
+
Insert: "insert",
|
|
13
|
+
} as const;
|
|
14
|
+
export type DiffLineInsertType = ClosedEnum<typeof DiffLineInsertType>;
|
|
15
|
+
|
|
16
|
+
export type DiffLineInsert = {
|
|
17
|
+
type: DiffLineInsertType;
|
|
18
|
+
newNumber: number;
|
|
19
|
+
content: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const DiffLineInsertType$inboundSchema: z.ZodNativeEnum<
|
|
24
|
+
typeof DiffLineInsertType
|
|
25
|
+
> = z.nativeEnum(DiffLineInsertType);
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const DiffLineInsert$inboundSchema: z.ZodType<
|
|
29
|
+
DiffLineInsert,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
unknown
|
|
32
|
+
> = z.object({
|
|
33
|
+
type: DiffLineInsertType$inboundSchema,
|
|
34
|
+
newNumber: z.number(),
|
|
35
|
+
content: z.string(),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export function diffLineInsertFromJSON(
|
|
39
|
+
jsonString: string,
|
|
40
|
+
): SafeParseResult<DiffLineInsert, SDKValidationError> {
|
|
41
|
+
return safeParse(
|
|
42
|
+
jsonString,
|
|
43
|
+
(x) => DiffLineInsert$inboundSchema.parse(JSON.parse(x)),
|
|
44
|
+
`Failed to parse 'DiffLineInsert' from JSON`,
|
|
45
|
+
);
|
|
46
|
+
}
|
|
@@ -73,7 +73,7 @@ export type GroupCreateRequestGit = {
|
|
|
73
73
|
|
|
74
74
|
export const GroupCreateRequestType = {
|
|
75
75
|
LakeAccess: "lake_access",
|
|
76
|
-
|
|
76
|
+
LocalSearch: "local_search",
|
|
77
77
|
} as const;
|
|
78
78
|
export type GroupCreateRequestType = OpenEnum<typeof GroupCreateRequestType>;
|
|
79
79
|
|
package/src/models/index.ts
CHANGED
|
@@ -50,6 +50,10 @@ export * from "./datasetmetadataruninfo.js";
|
|
|
50
50
|
export * from "./deployrequest.js";
|
|
51
51
|
export * from "./deployrequestlookups.js";
|
|
52
52
|
export * from "./difffiles.js";
|
|
53
|
+
export * from "./diffline.js";
|
|
54
|
+
export * from "./difflinecontext.js";
|
|
55
|
+
export * from "./difflinedelete.js";
|
|
56
|
+
export * from "./difflineinsert.js";
|
|
53
57
|
export * from "./distributedsummary.js";
|
|
54
58
|
export * from "./gitcommitparams.js";
|
|
55
59
|
export * from "./gitcommitsummary.js";
|