@levr-one/sdk 1.0.3 → 1.0.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/dist/gen/gate-binding-transfer/functions.d.ts +22 -0
- package/dist/gen/gate-binding-transfer/functions.js +32 -0
- package/dist/gen/gate-binding-transfer/index.d.ts +4 -0
- package/dist/gen/gate-binding-transfer/index.js +4 -0
- package/dist/gen/gate-binding-transfer/types.d.ts +73 -0
- package/dist/gen/gate-binding-transfer/types.js +2 -0
- package/dist/gen/gate-binding-transfer/zod.d.ts +20 -0
- package/dist/gen/gate-binding-transfer/zod.js +60 -0
- package/dist/gen/index.d.ts +1 -0
- package/dist/gen/index.js +1 -0
- package/dist/gen/team/types.d.ts +2 -0
- package/dist/gen/team/zod.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Generated from the Levr OpenAPI specification. Do not edit.
|
|
2
|
+
|
|
3
|
+
import type { Options } from '../../runtime/types.js';
|
|
4
|
+
import type {
|
|
5
|
+
GateBindingTransferExportConfigV1Data,
|
|
6
|
+
GateBindingTransferExportConfigV1Responses,
|
|
7
|
+
GateBindingTransferExportConfigV1Errors,
|
|
8
|
+
GateBindingTransferImportConfigV1Data,
|
|
9
|
+
GateBindingTransferImportConfigV1Responses,
|
|
10
|
+
GateBindingTransferImportConfigV1Errors,
|
|
11
|
+
} from './types.js';
|
|
12
|
+
|
|
13
|
+
/** GET /v1/gate/bindings/export */
|
|
14
|
+
export declare const gateBindingTransferExportConfigV1: <ThrowOnError extends boolean = false>(
|
|
15
|
+
options?: Options<GateBindingTransferExportConfigV1Data, ThrowOnError>,
|
|
16
|
+
) => import('../../runtime/types.js').RequestResult<GateBindingTransferExportConfigV1Responses, GateBindingTransferExportConfigV1Errors, ThrowOnError>;
|
|
17
|
+
|
|
18
|
+
/** POST /v1/gate/bindings/import */
|
|
19
|
+
export declare const gateBindingTransferImportConfigV1: <ThrowOnError extends boolean = false>(
|
|
20
|
+
options: Options<GateBindingTransferImportConfigV1Data, ThrowOnError>,
|
|
21
|
+
) => import('../../runtime/types.js').RequestResult<GateBindingTransferImportConfigV1Responses, GateBindingTransferImportConfigV1Errors, ThrowOnError>;
|
|
22
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// Generated from the Levr OpenAPI specification. Do not edit.
|
|
2
|
+
|
|
3
|
+
import { client as _client } from '../../runtime/index.js';
|
|
4
|
+
|
|
5
|
+
/** GET /v1/gate/bindings/export */
|
|
6
|
+
export const gateBindingTransferExportConfigV1 = (options) => {
|
|
7
|
+
return (options?.client ?? _client).get({
|
|
8
|
+
security: [
|
|
9
|
+
{
|
|
10
|
+
scheme: 'bearer',
|
|
11
|
+
type: 'http',
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
url: '/v1/gate/bindings/export',
|
|
15
|
+
...options,
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** POST /v1/gate/bindings/import */
|
|
20
|
+
export const gateBindingTransferImportConfigV1 = (options) => {
|
|
21
|
+
return (options?.client ?? _client).post({
|
|
22
|
+
security: [
|
|
23
|
+
{
|
|
24
|
+
scheme: 'bearer',
|
|
25
|
+
type: 'http',
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
url: '/v1/gate/bindings/import',
|
|
29
|
+
...options,
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// Generated from the Levr OpenAPI specification. Do not edit.
|
|
2
|
+
export type ExportedGateConfigDto = {
|
|
3
|
+
description?: string;
|
|
4
|
+
definitions: Array<{
|
|
5
|
+
key: string;
|
|
6
|
+
name: string;
|
|
7
|
+
description: string | null | null;
|
|
8
|
+
technique: string;
|
|
9
|
+
category: string | null | null;
|
|
10
|
+
resolver_template: Record<string, unknown> | null;
|
|
11
|
+
}>;
|
|
12
|
+
bindings: Array<{
|
|
13
|
+
gate_key: string;
|
|
14
|
+
repo_key?: string;
|
|
15
|
+
path_prefix?: string;
|
|
16
|
+
enabled: boolean;
|
|
17
|
+
config: Record<string, unknown>;
|
|
18
|
+
}>;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export type GateConfigFileDto = {
|
|
22
|
+
description?: string;
|
|
23
|
+
definitions?: Array<Record<string, unknown>>;
|
|
24
|
+
bindings: Array<Record<string, unknown>>;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export type GateConfigImportResultDto = {
|
|
28
|
+
dry_run: boolean;
|
|
29
|
+
definitions: Array<{
|
|
30
|
+
key: string;
|
|
31
|
+
action: "create" | "exists" | "differs";
|
|
32
|
+
stored_id?: string;
|
|
33
|
+
applied: boolean;
|
|
34
|
+
}>;
|
|
35
|
+
bindings: Array<{
|
|
36
|
+
gate_key: string;
|
|
37
|
+
repo_key: string | null | null;
|
|
38
|
+
path_prefix: string | null | null;
|
|
39
|
+
action: "create" | "exists" | "differs" | "update" | "delete" | "absent";
|
|
40
|
+
stored_id?: string;
|
|
41
|
+
note?: string;
|
|
42
|
+
applied: boolean;
|
|
43
|
+
}>;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export type GateBindingTransferExportConfigV1Data = {
|
|
47
|
+
body?: never;
|
|
48
|
+
path?: never;
|
|
49
|
+
query?: never;
|
|
50
|
+
url: '/v1/gate/bindings/export';
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export type GateBindingTransferExportConfigV1Responses = {
|
|
54
|
+
200: ExportedGateConfigDto;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export type GateBindingTransferExportConfigV1Errors = unknown;
|
|
58
|
+
|
|
59
|
+
export type GateBindingTransferImportConfigV1Data = {
|
|
60
|
+
body: GateConfigFileDto;
|
|
61
|
+
path?: never;
|
|
62
|
+
query?: {
|
|
63
|
+
dry_run?: "true" | "false";
|
|
64
|
+
};
|
|
65
|
+
url: '/v1/gate/bindings/import';
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export type GateBindingTransferImportConfigV1Responses = {
|
|
69
|
+
200: GateConfigImportResultDto;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export type GateBindingTransferImportConfigV1Errors = unknown;
|
|
73
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Generated from the Levr OpenAPI specification. Do not edit.
|
|
2
|
+
|
|
3
|
+
import { z } from 'zod/v3';
|
|
4
|
+
|
|
5
|
+
export declare const zExportedGateConfigDto: z.ZodType<import('./types.js').ExportedGateConfigDto>;
|
|
6
|
+
|
|
7
|
+
export type ExportedGateConfigDtoZodType = z.infer<typeof zExportedGateConfigDto>;
|
|
8
|
+
|
|
9
|
+
export declare const zGateConfigFileDto: z.ZodType<import('./types.js').GateConfigFileDto>;
|
|
10
|
+
|
|
11
|
+
export type GateConfigFileDtoZodType = z.infer<typeof zGateConfigFileDto>;
|
|
12
|
+
|
|
13
|
+
export declare const zGateConfigImportResultDto: z.ZodType<import('./types.js').GateConfigImportResultDto>;
|
|
14
|
+
|
|
15
|
+
export type GateConfigImportResultDtoZodType = z.infer<typeof zGateConfigImportResultDto>;
|
|
16
|
+
|
|
17
|
+
export declare const zGateBindingTransferExportConfigV1Data: z.ZodType<import('./types.js').GateBindingTransferExportConfigV1Data>;
|
|
18
|
+
|
|
19
|
+
export declare const zGateBindingTransferImportConfigV1Data: z.ZodType<import('./types.js').GateBindingTransferImportConfigV1Data>;
|
|
20
|
+
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// Generated from the Levr OpenAPI specification. Do not edit.
|
|
2
|
+
|
|
3
|
+
import { z } from 'zod/v3';
|
|
4
|
+
|
|
5
|
+
export const zExportedGateConfigDto = /* @__PURE__ */ z.object({
|
|
6
|
+
description: z.string().optional(),
|
|
7
|
+
definitions: z.array(z.object({
|
|
8
|
+
key: z.string(),
|
|
9
|
+
name: z.string(),
|
|
10
|
+
description: z.string().nullable(),
|
|
11
|
+
technique: z.string(),
|
|
12
|
+
category: z.string().nullable(),
|
|
13
|
+
resolver_template: z.record(z.string(), z.unknown()).nullable(),
|
|
14
|
+
})),
|
|
15
|
+
bindings: z.array(z.object({
|
|
16
|
+
gate_key: z.string(),
|
|
17
|
+
repo_key: z.string().optional(),
|
|
18
|
+
path_prefix: z.string().optional(),
|
|
19
|
+
enabled: z.boolean(),
|
|
20
|
+
config: z.record(z.string(), z.unknown()),
|
|
21
|
+
})),
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export const zGateConfigFileDto = /* @__PURE__ */ z.object({
|
|
25
|
+
description: z.string().optional(),
|
|
26
|
+
definitions: z.array(z.record(z.string(), z.unknown())).optional(),
|
|
27
|
+
bindings: z.array(z.record(z.string(), z.unknown())),
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export const zGateConfigImportResultDto = /* @__PURE__ */ z.object({
|
|
31
|
+
dry_run: z.boolean(),
|
|
32
|
+
definitions: z.array(z.object({
|
|
33
|
+
key: z.string(),
|
|
34
|
+
action: z.enum(["create", "exists", "differs"]),
|
|
35
|
+
stored_id: z.string().optional(),
|
|
36
|
+
applied: z.boolean(),
|
|
37
|
+
})),
|
|
38
|
+
bindings: z.array(z.object({
|
|
39
|
+
gate_key: z.string(),
|
|
40
|
+
repo_key: z.string().nullable(),
|
|
41
|
+
path_prefix: z.string().nullable(),
|
|
42
|
+
action: z.enum(["create", "exists", "differs", "update", "delete", "absent"]),
|
|
43
|
+
stored_id: z.string().optional(),
|
|
44
|
+
note: z.string().optional(),
|
|
45
|
+
applied: z.boolean(),
|
|
46
|
+
})),
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
export const zGateBindingTransferExportConfigV1Data = /* @__PURE__ */ z.object({
|
|
50
|
+
url: z.literal('/v1/gate/bindings/export'),
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export const zGateBindingTransferImportConfigV1Data = /* @__PURE__ */ z.object({
|
|
54
|
+
body: zGateConfigFileDto,
|
|
55
|
+
query: z.object({
|
|
56
|
+
'dry_run': z.enum(["true", "false"]).optional(),
|
|
57
|
+
}).optional(),
|
|
58
|
+
url: z.literal('/v1/gate/bindings/import'),
|
|
59
|
+
});
|
|
60
|
+
|
package/dist/gen/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './auth/index.js';
|
|
|
7
7
|
export * from './comment-issue/index.js';
|
|
8
8
|
export * from './comment-run/index.js';
|
|
9
9
|
export * from './comment-test/index.js';
|
|
10
|
+
export * from './gate-binding-transfer/index.js';
|
|
10
11
|
export * from './import/index.js';
|
|
11
12
|
export * from './issue/index.js';
|
|
12
13
|
export * from './issue-gate-verification/index.js';
|
package/dist/gen/index.js
CHANGED
|
@@ -7,6 +7,7 @@ export * from './auth/index.js';
|
|
|
7
7
|
export * from './comment-issue/index.js';
|
|
8
8
|
export * from './comment-run/index.js';
|
|
9
9
|
export * from './comment-test/index.js';
|
|
10
|
+
export * from './gate-binding-transfer/index.js';
|
|
10
11
|
export * from './import/index.js';
|
|
11
12
|
export * from './issue/index.js';
|
|
12
13
|
export * from './issue-gate-verification/index.js';
|
package/dist/gen/team/types.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export type ResponseTeamDto = {
|
|
|
14
14
|
settings?: unknown | null;
|
|
15
15
|
estimation_scale?: "none" | "fibonacci" | "linear" | "tshirt";
|
|
16
16
|
estimation_allow_zero?: boolean;
|
|
17
|
+
auto_close_parent?: boolean;
|
|
17
18
|
estimation_unestimated_value?: number;
|
|
18
19
|
is_system?: boolean;
|
|
19
20
|
created_at: unknown;
|
|
@@ -45,6 +46,7 @@ export type TeamFindAllV1Data = {
|
|
|
45
46
|
'filter.is_private'?: Array<string>;
|
|
46
47
|
'filter.issue_count'?: Array<string>;
|
|
47
48
|
'filter.estimation_allow_zero'?: Array<string>;
|
|
49
|
+
'filter.auto_close_parent'?: Array<string>;
|
|
48
50
|
'filter.estimation_unestimated_value'?: Array<string>;
|
|
49
51
|
'filter.is_system'?: Array<string>;
|
|
50
52
|
'filter.created_at'?: Array<string>;
|
package/dist/gen/team/zod.js
CHANGED
|
@@ -14,6 +14,7 @@ export const zResponseTeamDto = /* @__PURE__ */ z.object({
|
|
|
14
14
|
settings: z.unknown().optional(),
|
|
15
15
|
estimation_scale: z.enum(["none", "fibonacci", "linear", "tshirt"]).optional(),
|
|
16
16
|
estimation_allow_zero: z.boolean().optional(),
|
|
17
|
+
auto_close_parent: z.boolean().optional(),
|
|
17
18
|
estimation_unestimated_value: z.number().optional(),
|
|
18
19
|
is_system: z.boolean().optional(),
|
|
19
20
|
created_at: z.unknown(),
|
|
@@ -43,6 +44,7 @@ export const zTeamFindAllV1Data = /* @__PURE__ */ z.object({
|
|
|
43
44
|
'filter.is_private': z.array(z.string()).optional(),
|
|
44
45
|
'filter.issue_count': z.array(z.string()).optional(),
|
|
45
46
|
'filter.estimation_allow_zero': z.array(z.string()).optional(),
|
|
47
|
+
'filter.auto_close_parent': z.array(z.string()).optional(),
|
|
46
48
|
'filter.estimation_unestimated_value': z.array(z.string()).optional(),
|
|
47
49
|
'filter.is_system': z.array(z.string()).optional(),
|
|
48
50
|
'filter.created_at': z.array(z.string()).optional(),
|