@levr-one/sdk 0.0.0-stage → 1.0.0-canary.0

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.
Files changed (108) hide show
  1. package/README.md +132 -2
  2. package/dist/client.config.d.ts +3 -0
  3. package/dist/client.config.js +5 -0
  4. package/dist/gen/_common/index.d.ts +3 -0
  5. package/dist/gen/_common/index.js +3 -0
  6. package/dist/gen/_common/types.d.ts +29 -0
  7. package/dist/gen/_common/types.js +2 -0
  8. package/dist/gen/_common/zod.d.ts +10 -0
  9. package/dist/gen/_common/zod.js +31 -0
  10. package/dist/gen/attachment-upload/functions.d.ts +14 -0
  11. package/dist/gen/attachment-upload/functions.js +28 -0
  12. package/dist/gen/attachment-upload/index.d.ts +4 -0
  13. package/dist/gen/attachment-upload/index.js +4 -0
  14. package/dist/gen/attachment-upload/types.d.ts +40 -0
  15. package/dist/gen/attachment-upload/types.js +2 -0
  16. package/dist/gen/attachment-upload/zod.d.ts +14 -0
  17. package/dist/gen/attachment-upload/zod.js +34 -0
  18. package/dist/gen/auth/functions.d.ts +22 -0
  19. package/dist/gen/auth/functions.js +32 -0
  20. package/dist/gen/auth/index.d.ts +4 -0
  21. package/dist/gen/auth/index.js +4 -0
  22. package/dist/gen/auth/types.d.ts +52 -0
  23. package/dist/gen/auth/types.js +2 -0
  24. package/dist/gen/auth/zod.d.ts +16 -0
  25. package/dist/gen/auth/zod.js +37 -0
  26. package/dist/gen/comment-issue/functions.d.ts +14 -0
  27. package/dist/gen/comment-issue/functions.js +18 -0
  28. package/dist/gen/comment-issue/index.d.ts +4 -0
  29. package/dist/gen/comment-issue/index.js +4 -0
  30. package/dist/gen/comment-issue/types.d.ts +40 -0
  31. package/dist/gen/comment-issue/types.js +2 -0
  32. package/dist/gen/comment-issue/zod.d.ts +14 -0
  33. package/dist/gen/comment-issue/zod.js +35 -0
  34. package/dist/gen/comment-run/functions.d.ts +14 -0
  35. package/dist/gen/comment-run/functions.js +18 -0
  36. package/dist/gen/comment-run/index.d.ts +4 -0
  37. package/dist/gen/comment-run/index.js +4 -0
  38. package/dist/gen/comment-run/types.d.ts +40 -0
  39. package/dist/gen/comment-run/types.js +2 -0
  40. package/dist/gen/comment-run/zod.d.ts +14 -0
  41. package/dist/gen/comment-run/zod.js +35 -0
  42. package/dist/gen/comment-test/functions.d.ts +14 -0
  43. package/dist/gen/comment-test/functions.js +18 -0
  44. package/dist/gen/comment-test/index.d.ts +4 -0
  45. package/dist/gen/comment-test/index.js +4 -0
  46. package/dist/gen/comment-test/types.d.ts +40 -0
  47. package/dist/gen/comment-test/types.js +2 -0
  48. package/dist/gen/comment-test/zod.d.ts +14 -0
  49. package/dist/gen/comment-test/zod.js +35 -0
  50. package/dist/gen/import/functions.d.ts +14 -0
  51. package/dist/gen/import/functions.js +28 -0
  52. package/dist/gen/import/index.d.ts +4 -0
  53. package/dist/gen/import/index.js +4 -0
  54. package/dist/gen/import/types.d.ts +90 -0
  55. package/dist/gen/import/types.js +2 -0
  56. package/dist/gen/import/zod.d.ts +14 -0
  57. package/dist/gen/import/zod.js +85 -0
  58. package/dist/gen/index.d.ts +15 -0
  59. package/dist/gen/index.js +15 -0
  60. package/dist/gen/issue/functions.d.ts +14 -0
  61. package/dist/gen/issue/functions.js +18 -0
  62. package/dist/gen/issue/index.d.ts +4 -0
  63. package/dist/gen/issue/index.js +4 -0
  64. package/dist/gen/issue/types.d.ts +125 -0
  65. package/dist/gen/issue/types.js +2 -0
  66. package/dist/gen/issue/zod.d.ts +10 -0
  67. package/dist/gen/issue/zod.js +114 -0
  68. package/dist/gen/issue-gate-verification/functions.d.ts +22 -0
  69. package/dist/gen/issue-gate-verification/functions.js +32 -0
  70. package/dist/gen/issue-gate-verification/index.d.ts +4 -0
  71. package/dist/gen/issue-gate-verification/index.js +4 -0
  72. package/dist/gen/issue-gate-verification/types.d.ts +46 -0
  73. package/dist/gen/issue-gate-verification/types.js +2 -0
  74. package/dist/gen/issue-gate-verification/zod.d.ts +12 -0
  75. package/dist/gen/issue-gate-verification/zod.js +38 -0
  76. package/dist/gen/run-api/functions.d.ts +14 -0
  77. package/dist/gen/run-api/functions.js +18 -0
  78. package/dist/gen/run-api/index.d.ts +4 -0
  79. package/dist/gen/run-api/index.js +4 -0
  80. package/dist/gen/run-api/types.d.ts +93 -0
  81. package/dist/gen/run-api/types.js +2 -0
  82. package/dist/gen/run-api/zod.d.ts +14 -0
  83. package/dist/gen/run-api/zod.js +57 -0
  84. package/dist/gen/team/functions.d.ts +14 -0
  85. package/dist/gen/team/functions.js +18 -0
  86. package/dist/gen/team/index.d.ts +4 -0
  87. package/dist/gen/team/index.js +4 -0
  88. package/dist/gen/team/types.d.ts +69 -0
  89. package/dist/gen/team/types.js +2 -0
  90. package/dist/gen/team/zod.d.ts +10 -0
  91. package/dist/gen/team/zod.js +58 -0
  92. package/dist/gen/test-case-import/functions.d.ts +22 -0
  93. package/dist/gen/test-case-import/functions.js +42 -0
  94. package/dist/gen/test-case-import/index.d.ts +4 -0
  95. package/dist/gen/test-case-import/index.js +4 -0
  96. package/dist/gen/test-case-import/types.d.ts +142 -0
  97. package/dist/gen/test-case-import/types.js +2 -0
  98. package/dist/gen/test-case-import/zod.d.ts +24 -0
  99. package/dist/gen/test-case-import/zod.js +129 -0
  100. package/dist/index.d.ts +4 -0
  101. package/dist/index.js +5 -0
  102. package/dist/runtime/client.d.ts +2 -0
  103. package/dist/runtime/client.js +229 -0
  104. package/dist/runtime/index.d.ts +3 -0
  105. package/dist/runtime/index.js +8 -0
  106. package/dist/runtime/types.d.ts +83 -0
  107. package/dist/runtime/types.js +1 -0
  108. package/package.json +41 -4
@@ -0,0 +1,14 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+
3
+ import { z } from 'zod/v3';
4
+
5
+ export declare const zCreateCommentIssueDto: z.ZodType<import('./types.js').CreateCommentIssueDto>;
6
+
7
+ export type CreateCommentIssueDtoZodType = z.infer<typeof zCreateCommentIssueDto>;
8
+
9
+ export declare const zResponseCommentIssueDto: z.ZodType<import('./types.js').ResponseCommentIssueDto>;
10
+
11
+ export type ResponseCommentIssueDtoZodType = z.infer<typeof zResponseCommentIssueDto>;
12
+
13
+ export declare const zCommentIssueCreateV1Data: z.ZodType<import('./types.js').CommentIssueCreateV1Data>;
14
+
@@ -0,0 +1,35 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+
3
+ import { z } from 'zod/v3';
4
+
5
+ export const zCreateCommentIssueDto = /* @__PURE__ */ z.object({
6
+ id: z.string().optional(),
7
+ body: z.string().nullable().optional(),
8
+ key: z.number().optional(),
9
+ source: z.unknown().optional(),
10
+ spoke_key: z.string().nullable().optional(),
11
+ issue_id: z.string(),
12
+ });
13
+
14
+ export const zResponseCommentIssueDto = /* @__PURE__ */ z.object({
15
+ id: z.string(),
16
+ body: z.string().nullable().optional(),
17
+ key: z.number().optional(),
18
+ source: z.unknown().optional(),
19
+ spoke_key: z.string().nullable().optional(),
20
+ issue_id: z.string(),
21
+ created_at: z.unknown(),
22
+ updated_at: z.unknown(),
23
+ epoch: z.number(),
24
+ created_by: z.string(),
25
+ updated_by: z.string(),
26
+ workspace_id: z.string(),
27
+ deleted_at: z.unknown(),
28
+ deleted_by: z.string().nullable(),
29
+ });
30
+
31
+ export const zCommentIssueCreateV1Data = /* @__PURE__ */ z.object({
32
+ body: zCreateCommentIssueDto,
33
+ url: z.literal('/v1/comment-issue'),
34
+ });
35
+
@@ -0,0 +1,14 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+
3
+ import type { Options } from '../../runtime/types.js';
4
+ import type {
5
+ CommentRunCreateV1Data,
6
+ CommentRunCreateV1Responses,
7
+ CommentRunCreateV1Errors,
8
+ } from './types.js';
9
+
10
+ /** POST /v1/comment-run */
11
+ export declare const commentRunCreateV1: <ThrowOnError extends boolean = false>(
12
+ options: Options<CommentRunCreateV1Data, ThrowOnError>,
13
+ ) => import('../../runtime/types.js').RequestResult<CommentRunCreateV1Responses, CommentRunCreateV1Errors, ThrowOnError>;
14
+
@@ -0,0 +1,18 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+
3
+ import { client as _client } from '../../runtime/index.js';
4
+
5
+ /** POST /v1/comment-run */
6
+ export const commentRunCreateV1 = (options) => {
7
+ return (options?.client ?? _client).post({
8
+ security: [
9
+ {
10
+ scheme: 'bearer',
11
+ type: 'http',
12
+ },
13
+ ],
14
+ url: '/v1/comment-run',
15
+ ...options,
16
+ });
17
+ };
18
+
@@ -0,0 +1,4 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+ export * from './types.js';
3
+ export * from './functions.js';
4
+ export * from './zod.js';
@@ -0,0 +1,4 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+ export * from './types.js';
3
+ export * from './functions.js';
4
+ export * from './zod.js';
@@ -0,0 +1,40 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+ export type CreateCommentRunDto = {
3
+ id?: string;
4
+ body?: string | null | null;
5
+ key?: number;
6
+ source?: unknown | null;
7
+ spoke_key?: string | null | null;
8
+ run_id: string;
9
+ };
10
+
11
+ export type ResponseCommentRunDto = {
12
+ id: string;
13
+ body?: string | null | null;
14
+ key?: number;
15
+ source?: unknown | null;
16
+ spoke_key?: string | null | null;
17
+ run_id: string;
18
+ created_at: unknown;
19
+ updated_at: unknown;
20
+ epoch: number;
21
+ created_by: string;
22
+ updated_by: string;
23
+ workspace_id: string;
24
+ deleted_at: unknown | null;
25
+ deleted_by: string | null | null;
26
+ };
27
+
28
+ export type CommentRunCreateV1Data = {
29
+ body: CreateCommentRunDto;
30
+ path?: never;
31
+ query?: never;
32
+ url: '/v1/comment-run';
33
+ };
34
+
35
+ export type CommentRunCreateV1Responses = {
36
+ 201: ResponseCommentRunDto;
37
+ };
38
+
39
+ export type CommentRunCreateV1Errors = unknown;
40
+
@@ -0,0 +1,2 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+ // Types-only file — JS runtime is empty unless enums exist
@@ -0,0 +1,14 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+
3
+ import { z } from 'zod/v3';
4
+
5
+ export declare const zCreateCommentRunDto: z.ZodType<import('./types.js').CreateCommentRunDto>;
6
+
7
+ export type CreateCommentRunDtoZodType = z.infer<typeof zCreateCommentRunDto>;
8
+
9
+ export declare const zResponseCommentRunDto: z.ZodType<import('./types.js').ResponseCommentRunDto>;
10
+
11
+ export type ResponseCommentRunDtoZodType = z.infer<typeof zResponseCommentRunDto>;
12
+
13
+ export declare const zCommentRunCreateV1Data: z.ZodType<import('./types.js').CommentRunCreateV1Data>;
14
+
@@ -0,0 +1,35 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+
3
+ import { z } from 'zod/v3';
4
+
5
+ export const zCreateCommentRunDto = /* @__PURE__ */ z.object({
6
+ id: z.string().optional(),
7
+ body: z.string().nullable().optional(),
8
+ key: z.number().optional(),
9
+ source: z.unknown().optional(),
10
+ spoke_key: z.string().nullable().optional(),
11
+ run_id: z.string(),
12
+ });
13
+
14
+ export const zResponseCommentRunDto = /* @__PURE__ */ z.object({
15
+ id: z.string(),
16
+ body: z.string().nullable().optional(),
17
+ key: z.number().optional(),
18
+ source: z.unknown().optional(),
19
+ spoke_key: z.string().nullable().optional(),
20
+ run_id: z.string(),
21
+ created_at: z.unknown(),
22
+ updated_at: z.unknown(),
23
+ epoch: z.number(),
24
+ created_by: z.string(),
25
+ updated_by: z.string(),
26
+ workspace_id: z.string(),
27
+ deleted_at: z.unknown(),
28
+ deleted_by: z.string().nullable(),
29
+ });
30
+
31
+ export const zCommentRunCreateV1Data = /* @__PURE__ */ z.object({
32
+ body: zCreateCommentRunDto,
33
+ url: z.literal('/v1/comment-run'),
34
+ });
35
+
@@ -0,0 +1,14 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+
3
+ import type { Options } from '../../runtime/types.js';
4
+ import type {
5
+ CommentTestCreateV1Data,
6
+ CommentTestCreateV1Responses,
7
+ CommentTestCreateV1Errors,
8
+ } from './types.js';
9
+
10
+ /** POST /v1/comment-test */
11
+ export declare const commentTestCreateV1: <ThrowOnError extends boolean = false>(
12
+ options: Options<CommentTestCreateV1Data, ThrowOnError>,
13
+ ) => import('../../runtime/types.js').RequestResult<CommentTestCreateV1Responses, CommentTestCreateV1Errors, ThrowOnError>;
14
+
@@ -0,0 +1,18 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+
3
+ import { client as _client } from '../../runtime/index.js';
4
+
5
+ /** POST /v1/comment-test */
6
+ export const commentTestCreateV1 = (options) => {
7
+ return (options?.client ?? _client).post({
8
+ security: [
9
+ {
10
+ scheme: 'bearer',
11
+ type: 'http',
12
+ },
13
+ ],
14
+ url: '/v1/comment-test',
15
+ ...options,
16
+ });
17
+ };
18
+
@@ -0,0 +1,4 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+ export * from './types.js';
3
+ export * from './functions.js';
4
+ export * from './zod.js';
@@ -0,0 +1,4 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+ export * from './types.js';
3
+ export * from './functions.js';
4
+ export * from './zod.js';
@@ -0,0 +1,40 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+ export type CreateCommentTestDto = {
3
+ id?: string;
4
+ body?: string | null | null;
5
+ key?: number;
6
+ source?: unknown | null;
7
+ spoke_key?: string | null | null;
8
+ test_id: string;
9
+ };
10
+
11
+ export type ResponseCommentTestDto = {
12
+ id: string;
13
+ body?: string | null | null;
14
+ key?: number;
15
+ source?: unknown | null;
16
+ spoke_key?: string | null | null;
17
+ test_id: string;
18
+ created_at: unknown;
19
+ updated_at: unknown;
20
+ epoch: number;
21
+ created_by: string;
22
+ updated_by: string;
23
+ workspace_id: string;
24
+ deleted_at: unknown | null;
25
+ deleted_by: string | null | null;
26
+ };
27
+
28
+ export type CommentTestCreateV1Data = {
29
+ body: CreateCommentTestDto;
30
+ path?: never;
31
+ query?: never;
32
+ url: '/v1/comment-test';
33
+ };
34
+
35
+ export type CommentTestCreateV1Responses = {
36
+ 201: ResponseCommentTestDto;
37
+ };
38
+
39
+ export type CommentTestCreateV1Errors = unknown;
40
+
@@ -0,0 +1,2 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+ // Types-only file — JS runtime is empty unless enums exist
@@ -0,0 +1,14 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+
3
+ import { z } from 'zod/v3';
4
+
5
+ export declare const zCreateCommentTestDto: z.ZodType<import('./types.js').CreateCommentTestDto>;
6
+
7
+ export type CreateCommentTestDtoZodType = z.infer<typeof zCreateCommentTestDto>;
8
+
9
+ export declare const zResponseCommentTestDto: z.ZodType<import('./types.js').ResponseCommentTestDto>;
10
+
11
+ export type ResponseCommentTestDtoZodType = z.infer<typeof zResponseCommentTestDto>;
12
+
13
+ export declare const zCommentTestCreateV1Data: z.ZodType<import('./types.js').CommentTestCreateV1Data>;
14
+
@@ -0,0 +1,35 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+
3
+ import { z } from 'zod/v3';
4
+
5
+ export const zCreateCommentTestDto = /* @__PURE__ */ z.object({
6
+ id: z.string().optional(),
7
+ body: z.string().nullable().optional(),
8
+ key: z.number().optional(),
9
+ source: z.unknown().optional(),
10
+ spoke_key: z.string().nullable().optional(),
11
+ test_id: z.string(),
12
+ });
13
+
14
+ export const zResponseCommentTestDto = /* @__PURE__ */ z.object({
15
+ id: z.string(),
16
+ body: z.string().nullable().optional(),
17
+ key: z.number().optional(),
18
+ source: z.unknown().optional(),
19
+ spoke_key: z.string().nullable().optional(),
20
+ test_id: z.string(),
21
+ created_at: z.unknown(),
22
+ updated_at: z.unknown(),
23
+ epoch: z.number(),
24
+ created_by: z.string(),
25
+ updated_by: z.string(),
26
+ workspace_id: z.string(),
27
+ deleted_at: z.unknown(),
28
+ deleted_by: z.string().nullable(),
29
+ });
30
+
31
+ export const zCommentTestCreateV1Data = /* @__PURE__ */ z.object({
32
+ body: zCreateCommentTestDto,
33
+ url: z.literal('/v1/comment-test'),
34
+ });
35
+
@@ -0,0 +1,14 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+
3
+ import type { Options } from '../../runtime/types.js';
4
+ import type {
5
+ ImportCreateV1Data,
6
+ ImportCreateV1Responses,
7
+ ImportCreateV1Errors,
8
+ } from './types.js';
9
+
10
+ /** POST /v1/imports */
11
+ export declare const importCreateV1: <ThrowOnError extends boolean = false>(
12
+ options: Options<ImportCreateV1Data, ThrowOnError>,
13
+ ) => import('../../runtime/types.js').RequestResult<ImportCreateV1Responses, ImportCreateV1Errors, ThrowOnError>;
14
+
@@ -0,0 +1,28 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+
3
+ import { client as _client } from '../../runtime/index.js';
4
+
5
+ /** POST /v1/imports */
6
+ export const importCreateV1 = (options) => {
7
+ return (options?.client ?? _client).post({
8
+ security: [
9
+ {
10
+ scheme: 'bearer',
11
+ type: 'http',
12
+ },
13
+ ],
14
+ url: '/v1/imports',
15
+ bodySerializer: (body) => {
16
+ const fd = new FormData();
17
+ if (body && typeof body === 'object') {
18
+ for (const [k, v] of Object.entries(body)) {
19
+ if (v == null) continue;
20
+ fd.append(k, v instanceof Blob ? v : String(v));
21
+ }
22
+ }
23
+ return fd;
24
+ },
25
+ ...options,
26
+ });
27
+ };
28
+
@@ -0,0 +1,4 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+ export * from './types.js';
3
+ export * from './functions.js';
4
+ export * from './zod.js';
@@ -0,0 +1,4 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+ export * from './types.js';
3
+ export * from './functions.js';
4
+ export * from './zod.js';
@@ -0,0 +1,90 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+ export type ImportCreateV1Body = {
3
+ file?: Blob;
4
+ file_id?: string;
5
+ team_id?: string;
6
+ format?: "junit" | "gherkin" | "cucumber-json" | "ctrf-json";
7
+ run_name?: string;
8
+ automation_source?: string;
9
+ automation_source_id?: string;
10
+ import_metadata?: string;
11
+ include_results?: boolean;
12
+ };
13
+
14
+ export type ImportResponseDto = {
15
+ id: string;
16
+ team_id: string;
17
+ status: "processing" | "completed" | "completed_with_warnings" | "failed";
18
+ format: "junit" | "gherkin" | "cucumber-json" | "ctrf-json";
19
+ created_at: string;
20
+ completed_at: string;
21
+ result?: {
22
+ run_id?: string;
23
+ root_folder_id: string;
24
+ stats: {
25
+ suites_created: number;
26
+ suites_updated: number;
27
+ tests_created: number;
28
+ tests_updated: number;
29
+ results_created: number;
30
+ results_updated: number;
31
+ labels_created: number;
32
+ label_assignments_created: number;
33
+ passed: number;
34
+ failed: number;
35
+ errored: number;
36
+ skipped: number;
37
+ pending: number;
38
+ todo: number;
39
+ flaky: number;
40
+ };
41
+ warnings?: Array<{
42
+ type: string;
43
+ message: string;
44
+ count: number;
45
+ details?: Array<string>;
46
+ truncated?: boolean;
47
+ }>;
48
+ results?: Array<{
49
+ id: string;
50
+ name: string;
51
+ suite: string | null | null;
52
+ classname: string | null | null;
53
+ status: string;
54
+ test_key: string;
55
+ attempts: number;
56
+ attachments: Array<{
57
+ path: string | null | null;
58
+ name: string | null | null;
59
+ kind: "screenshot" | "video" | "trace" | "stdout_log" | "stderr_log" | "har" | "report" | "attachment" | "other";
60
+ attempt_index: number | null | null;
61
+ stored: boolean;
62
+ }>;
63
+ }>;
64
+ };
65
+ error?: {
66
+ code: string;
67
+ message: string;
68
+ details?: {
69
+ line?: number;
70
+ column?: number;
71
+ element?: string;
72
+ };
73
+ };
74
+ automation_source_id?: string;
75
+ automation_source_name?: string;
76
+ };
77
+
78
+ export type ImportCreateV1Data = {
79
+ body: ImportCreateV1Body;
80
+ path?: never;
81
+ query?: never;
82
+ url: '/v1/imports';
83
+ };
84
+
85
+ export type ImportCreateV1Responses = {
86
+ 200: ImportResponseDto;
87
+ };
88
+
89
+ export type ImportCreateV1Errors = unknown;
90
+
@@ -0,0 +1,2 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+ // Types-only file — JS runtime is empty unless enums exist
@@ -0,0 +1,14 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+
3
+ import { z } from 'zod/v3';
4
+
5
+ export declare const zImportCreateV1Body: z.ZodType<import('./types.js').ImportCreateV1Body>;
6
+
7
+ export type ImportCreateV1BodyZodType = z.infer<typeof zImportCreateV1Body>;
8
+
9
+ export declare const zImportResponseDto: z.ZodType<import('./types.js').ImportResponseDto>;
10
+
11
+ export type ImportResponseDtoZodType = z.infer<typeof zImportResponseDto>;
12
+
13
+ export declare const zImportCreateV1Data: z.ZodType<import('./types.js').ImportCreateV1Data>;
14
+
@@ -0,0 +1,85 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+
3
+ import { z } from 'zod/v3';
4
+
5
+ export const zImportCreateV1Body = /* @__PURE__ */ z.object({
6
+ file: z.instanceof(Blob).optional(),
7
+ file_id: z.string().optional(),
8
+ team_id: z.string().optional(),
9
+ format: z.enum(["junit", "gherkin", "cucumber-json", "ctrf-json"]).optional(),
10
+ run_name: z.string().max(250).optional(),
11
+ automation_source: z.string().max(100).optional(),
12
+ automation_source_id: z.string().optional(),
13
+ import_metadata: z.string().optional(),
14
+ include_results: z.boolean().optional(),
15
+ });
16
+
17
+ export const zImportResponseDto = /* @__PURE__ */ z.object({
18
+ id: z.string(),
19
+ team_id: z.string(),
20
+ status: z.enum(["processing", "completed", "completed_with_warnings", "failed"]),
21
+ format: z.enum(["junit", "gherkin", "cucumber-json", "ctrf-json"]),
22
+ created_at: z.string(),
23
+ completed_at: z.string(),
24
+ result: z.object({
25
+ run_id: z.string().optional(),
26
+ root_folder_id: z.string(),
27
+ stats: z.object({
28
+ suites_created: z.number(),
29
+ suites_updated: z.number(),
30
+ tests_created: z.number(),
31
+ tests_updated: z.number(),
32
+ results_created: z.number(),
33
+ results_updated: z.number(),
34
+ labels_created: z.number(),
35
+ label_assignments_created: z.number(),
36
+ passed: z.number(),
37
+ failed: z.number(),
38
+ errored: z.number(),
39
+ skipped: z.number(),
40
+ pending: z.number(),
41
+ todo: z.number(),
42
+ flaky: z.number(),
43
+ }),
44
+ warnings: z.array(z.object({
45
+ type: z.string(),
46
+ message: z.string(),
47
+ count: z.number(),
48
+ details: z.array(z.string()).optional(),
49
+ truncated: z.boolean().optional(),
50
+ })).optional(),
51
+ results: z.array(z.object({
52
+ id: z.string(),
53
+ name: z.string(),
54
+ suite: z.string().nullable(),
55
+ classname: z.string().nullable(),
56
+ status: z.string(),
57
+ test_key: z.string(),
58
+ attempts: z.number(),
59
+ attachments: z.array(z.object({
60
+ path: z.string().nullable(),
61
+ name: z.string().nullable(),
62
+ kind: z.enum(["screenshot", "video", "trace", "stdout_log", "stderr_log", "har", "report", "attachment", "other"]),
63
+ attempt_index: z.number().nullable(),
64
+ stored: z.boolean(),
65
+ })),
66
+ })).optional(),
67
+ }).optional(),
68
+ error: z.object({
69
+ code: z.string(),
70
+ message: z.string(),
71
+ details: z.object({
72
+ line: z.number().optional(),
73
+ column: z.number().optional(),
74
+ element: z.string().optional(),
75
+ }).optional(),
76
+ }).optional(),
77
+ automation_source_id: z.string().optional(),
78
+ automation_source_name: z.string().optional(),
79
+ });
80
+
81
+ export const zImportCreateV1Data = /* @__PURE__ */ z.object({
82
+ body: zImportCreateV1Body,
83
+ url: z.literal('/v1/imports'),
84
+ });
85
+
@@ -0,0 +1,15 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+ // Root barrel: re-exports all controller barrels + shared types
3
+
4
+ export * from './_common/index.js';
5
+ export * from './attachment-upload/index.js';
6
+ export * from './auth/index.js';
7
+ export * from './comment-issue/index.js';
8
+ export * from './comment-run/index.js';
9
+ export * from './comment-test/index.js';
10
+ export * from './import/index.js';
11
+ export * from './issue/index.js';
12
+ export * from './issue-gate-verification/index.js';
13
+ export * from './run-api/index.js';
14
+ export * from './team/index.js';
15
+ export * from './test-case-import/index.js';
@@ -0,0 +1,15 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+ // Root barrel: re-exports all controller barrels + shared types
3
+
4
+ export * from './_common/index.js';
5
+ export * from './attachment-upload/index.js';
6
+ export * from './auth/index.js';
7
+ export * from './comment-issue/index.js';
8
+ export * from './comment-run/index.js';
9
+ export * from './comment-test/index.js';
10
+ export * from './import/index.js';
11
+ export * from './issue/index.js';
12
+ export * from './issue-gate-verification/index.js';
13
+ export * from './run-api/index.js';
14
+ export * from './team/index.js';
15
+ export * from './test-case-import/index.js';
@@ -0,0 +1,14 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+
3
+ import type { Options } from '../../runtime/types.js';
4
+ import type {
5
+ IssueFindAllV1Data,
6
+ IssueFindAllV1Responses,
7
+ IssueFindAllV1Errors,
8
+ } from './types.js';
9
+
10
+ /** GET /v1/issue */
11
+ export declare const issueFindAllV1: <ThrowOnError extends boolean = false>(
12
+ options?: Options<IssueFindAllV1Data, ThrowOnError>,
13
+ ) => import('../../runtime/types.js').RequestResult<IssueFindAllV1Responses, IssueFindAllV1Errors, ThrowOnError>;
14
+
@@ -0,0 +1,18 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+
3
+ import { client as _client } from '../../runtime/index.js';
4
+
5
+ /** GET /v1/issue */
6
+ export const issueFindAllV1 = (options) => {
7
+ return (options?.client ?? _client).get({
8
+ security: [
9
+ {
10
+ scheme: 'bearer',
11
+ type: 'http',
12
+ },
13
+ ],
14
+ url: '/v1/issue',
15
+ ...options,
16
+ });
17
+ };
18
+
@@ -0,0 +1,4 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+ export * from './types.js';
3
+ export * from './functions.js';
4
+ export * from './zod.js';
@@ -0,0 +1,4 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+ export * from './types.js';
3
+ export * from './functions.js';
4
+ export * from './zod.js';