@levr-one/sdk 0.0.0-stage → 1.0.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,125 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+ import type {
3
+ PaginatedDocumented,
4
+ } from '../_common/types.js';
5
+ export type ResponseIssueDto = {
6
+ id: string;
7
+ identifier?: string;
8
+ number?: number;
9
+ title: string;
10
+ description?: string | null | null;
11
+ priority?: number;
12
+ estimate?: number | null | null;
13
+ rolled_up_estimate?: number | null | null;
14
+ rolled_up_completed_estimate?: number | null | null;
15
+ sequence?: string;
16
+ sub_issue_sequence?: string | null | null;
17
+ due_date?: unknown | null;
18
+ snoozed_until?: unknown | null;
19
+ started_at?: unknown | null;
20
+ completed_at?: unknown | null;
21
+ canceled_at?: unknown | null;
22
+ auto_closed_at?: unknown | null;
23
+ origin?: string;
24
+ origin_detail?: string | null | null;
25
+ origin_model?: string | null | null;
26
+ origin_harness?: string | null | null;
27
+ origin_harness_version?: string | null | null;
28
+ origin_run_result_id?: string | null | null;
29
+ verification_status?: string;
30
+ verification_detail?: unknown | null;
31
+ confidence_score?: number | null | null;
32
+ added_to_cycle_at?: unknown | null;
33
+ sla_status?: string | null | null;
34
+ team_id: string;
35
+ workflow_state_id?: string;
36
+ creator_id?: string;
37
+ gate_set_id?: string | null | null;
38
+ milestone_id?: string | null | null;
39
+ spoke_key?: string | null | null;
40
+ gate_run_id?: string | null | null;
41
+ project_id?: string | null | null;
42
+ assignee_id?: string | null | null;
43
+ parent_id?: string | null | null;
44
+ cycle_id?: string | null | null;
45
+ type_label_id?: string | null | null;
46
+ created_at: unknown;
47
+ updated_at: unknown;
48
+ epoch: number;
49
+ created_by: string;
50
+ updated_by: string;
51
+ workspace_id: string;
52
+ deleted_at: unknown | null;
53
+ deleted_by: string | null | null;
54
+ archived_at: unknown | null;
55
+ archived_by: string | null | null;
56
+ auto_archived_at: unknown | null;
57
+ web_url?: string | null | null;
58
+ };
59
+
60
+ export type IssueFindAllV1Data = {
61
+ body?: never;
62
+ path?: never;
63
+ query?: {
64
+ _with?: string;
65
+ page?: number;
66
+ limit?: number;
67
+ 'filter.id'?: Array<string>;
68
+ 'filter.identifier'?: Array<string>;
69
+ 'filter.number'?: Array<string>;
70
+ 'filter.title'?: Array<string>;
71
+ 'filter.description'?: Array<string>;
72
+ 'filter.priority'?: Array<string>;
73
+ 'filter.estimate'?: Array<string>;
74
+ 'filter.rolled_up_estimate'?: Array<string>;
75
+ 'filter.rolled_up_completed_estimate'?: Array<string>;
76
+ 'filter.sequence'?: Array<string>;
77
+ 'filter.sub_issue_sequence'?: Array<string>;
78
+ 'filter.due_date'?: Array<string>;
79
+ 'filter.snoozed_until'?: Array<string>;
80
+ 'filter.started_at'?: Array<string>;
81
+ 'filter.completed_at'?: Array<string>;
82
+ 'filter.canceled_at'?: Array<string>;
83
+ 'filter.auto_closed_at'?: Array<string>;
84
+ 'filter.origin'?: Array<string>;
85
+ 'filter.origin_detail'?: Array<string>;
86
+ 'filter.origin_model'?: Array<string>;
87
+ 'filter.origin_harness'?: Array<string>;
88
+ 'filter.origin_harness_version'?: Array<string>;
89
+ 'filter.origin_run_result_id'?: Array<string>;
90
+ 'filter.verification_status'?: Array<string>;
91
+ 'filter.confidence_score'?: Array<string>;
92
+ 'filter.added_to_cycle_at'?: Array<string>;
93
+ 'filter.sla_status'?: Array<string>;
94
+ 'filter.team_id'?: Array<string>;
95
+ 'filter.workflow_state_id'?: Array<string>;
96
+ 'filter.creator_id'?: Array<string>;
97
+ 'filter.gate_set_id'?: Array<string>;
98
+ 'filter.milestone_id'?: Array<string>;
99
+ 'filter.spoke_key'?: Array<string>;
100
+ 'filter.gate_run_id'?: Array<string>;
101
+ 'filter.assignee_id'?: Array<string>;
102
+ 'filter.parent_id'?: Array<string>;
103
+ 'filter.cycle_id'?: Array<string>;
104
+ 'filter.type_label_id'?: Array<string>;
105
+ 'filter.created_at'?: Array<string>;
106
+ 'filter.updated_at'?: Array<string>;
107
+ 'filter.project_id'?: Array<string>;
108
+ 'filter.deleted_at'?: Array<string>;
109
+ 'filter.archived_at'?: Array<string>;
110
+ sortBy?: Array<"id:ASC" | "id:DESC" | "identifier:ASC" | "identifier:DESC" | "number:ASC" | "number:DESC" | "title:ASC" | "title:DESC" | "description:ASC" | "description:DESC" | "priority:ASC" | "priority:DESC" | "estimate:ASC" | "estimate:DESC" | "rolled_up_estimate:ASC" | "rolled_up_estimate:DESC" | "rolled_up_completed_estimate:ASC" | "rolled_up_completed_estimate:DESC" | "sequence:ASC" | "sequence:DESC" | "sub_issue_sequence:ASC" | "sub_issue_sequence:DESC" | "due_date:ASC" | "due_date:DESC" | "snoozed_until:ASC" | "snoozed_until:DESC" | "started_at:ASC" | "started_at:DESC" | "completed_at:ASC" | "completed_at:DESC" | "canceled_at:ASC" | "canceled_at:DESC" | "auto_closed_at:ASC" | "auto_closed_at:DESC" | "origin:ASC" | "origin:DESC" | "origin_detail:ASC" | "origin_detail:DESC" | "origin_model:ASC" | "origin_model:DESC" | "origin_harness:ASC" | "origin_harness:DESC" | "origin_harness_version:ASC" | "origin_harness_version:DESC" | "verification_status:ASC" | "verification_status:DESC" | "confidence_score:ASC" | "confidence_score:DESC" | "added_to_cycle_at:ASC" | "added_to_cycle_at:DESC" | "sla_status:ASC" | "sla_status:DESC" | "spoke_key:ASC" | "spoke_key:DESC" | "project_id:ASC" | "project_id:DESC" | "assignee_id:ASC" | "assignee_id:DESC" | "parent_id:ASC" | "parent_id:DESC" | "origin_run_result_id:ASC" | "origin_run_result_id:DESC" | "cycle_id:ASC" | "cycle_id:DESC" | "type_label_id:ASC" | "type_label_id:DESC" | "gate_set_id:ASC" | "gate_set_id:DESC" | "milestone_id:ASC" | "milestone_id:DESC" | "gate_run_id:ASC" | "gate_run_id:DESC" | "created_at:ASC" | "created_at:DESC" | "updated_at:ASC" | "updated_at:DESC" | "deleted_at:ASC" | "deleted_at:DESC" | "archived_at:ASC" | "archived_at:DESC">;
111
+ search?: string;
112
+ searchBy?: Array<string>;
113
+ };
114
+ url: '/v1/issue';
115
+ };
116
+
117
+ export type IssueFindAllV1Responses = {
118
+ 200: PaginatedDocumented & {
119
+ data?: Array<ResponseIssueDto>;
120
+ meta?: unknown;
121
+ };
122
+ };
123
+
124
+ export type IssueFindAllV1Errors = unknown;
125
+
@@ -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,10 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+
3
+ import { z } from 'zod/v3';
4
+
5
+ export declare const zResponseIssueDto: z.ZodType<import('./types.js').ResponseIssueDto>;
6
+
7
+ export type ResponseIssueDtoZodType = z.infer<typeof zResponseIssueDto>;
8
+
9
+ export declare const zIssueFindAllV1Data: z.ZodType<import('./types.js').IssueFindAllV1Data>;
10
+
@@ -0,0 +1,114 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+
3
+ import { z } from 'zod/v3';
4
+
5
+ export const zResponseIssueDto = /* @__PURE__ */ z.object({
6
+ id: z.string(),
7
+ identifier: z.string().optional(),
8
+ number: z.number().optional(),
9
+ title: z.string(),
10
+ description: z.string().nullable().optional(),
11
+ priority: z.number().optional(),
12
+ estimate: z.number().nullable().optional(),
13
+ rolled_up_estimate: z.number().nullable().optional(),
14
+ rolled_up_completed_estimate: z.number().nullable().optional(),
15
+ sequence: z.string().optional(),
16
+ sub_issue_sequence: z.string().nullable().optional(),
17
+ due_date: z.unknown().optional(),
18
+ snoozed_until: z.unknown().optional(),
19
+ started_at: z.unknown().optional(),
20
+ completed_at: z.unknown().optional(),
21
+ canceled_at: z.unknown().optional(),
22
+ auto_closed_at: z.unknown().optional(),
23
+ origin: z.string().optional(),
24
+ origin_detail: z.string().nullable().optional(),
25
+ origin_model: z.string().nullable().optional(),
26
+ origin_harness: z.string().nullable().optional(),
27
+ origin_harness_version: z.string().nullable().optional(),
28
+ origin_run_result_id: z.string().nullable().optional(),
29
+ verification_status: z.string().optional(),
30
+ verification_detail: z.unknown().optional(),
31
+ confidence_score: z.number().nullable().optional(),
32
+ added_to_cycle_at: z.unknown().optional(),
33
+ sla_status: z.string().nullable().optional(),
34
+ team_id: z.string(),
35
+ workflow_state_id: z.string().optional(),
36
+ creator_id: z.string().optional(),
37
+ gate_set_id: z.string().nullable().optional(),
38
+ milestone_id: z.string().nullable().optional(),
39
+ spoke_key: z.string().nullable().optional(),
40
+ gate_run_id: z.string().nullable().optional(),
41
+ project_id: z.string().nullable().optional(),
42
+ assignee_id: z.string().nullable().optional(),
43
+ parent_id: z.string().nullable().optional(),
44
+ cycle_id: z.string().nullable().optional(),
45
+ type_label_id: z.string().nullable().optional(),
46
+ created_at: z.unknown(),
47
+ updated_at: z.unknown(),
48
+ epoch: z.number(),
49
+ created_by: z.string(),
50
+ updated_by: z.string(),
51
+ workspace_id: z.string(),
52
+ deleted_at: z.unknown(),
53
+ deleted_by: z.string().nullable(),
54
+ archived_at: z.unknown(),
55
+ archived_by: z.string().nullable(),
56
+ auto_archived_at: z.unknown(),
57
+ web_url: z.string().nullable().optional(),
58
+ });
59
+
60
+ export const zIssueFindAllV1Data = /* @__PURE__ */ z.object({
61
+ query: z.object({
62
+ '_with': z.string().optional(),
63
+ 'page': z.number().optional(),
64
+ 'limit': z.number().optional(),
65
+ 'filter.id': z.array(z.string()).optional(),
66
+ 'filter.identifier': z.array(z.string()).optional(),
67
+ 'filter.number': z.array(z.string()).optional(),
68
+ 'filter.title': z.array(z.string()).optional(),
69
+ 'filter.description': z.array(z.string()).optional(),
70
+ 'filter.priority': z.array(z.string()).optional(),
71
+ 'filter.estimate': z.array(z.string()).optional(),
72
+ 'filter.rolled_up_estimate': z.array(z.string()).optional(),
73
+ 'filter.rolled_up_completed_estimate': z.array(z.string()).optional(),
74
+ 'filter.sequence': z.array(z.string()).optional(),
75
+ 'filter.sub_issue_sequence': z.array(z.string()).optional(),
76
+ 'filter.due_date': z.array(z.string()).optional(),
77
+ 'filter.snoozed_until': z.array(z.string()).optional(),
78
+ 'filter.started_at': z.array(z.string()).optional(),
79
+ 'filter.completed_at': z.array(z.string()).optional(),
80
+ 'filter.canceled_at': z.array(z.string()).optional(),
81
+ 'filter.auto_closed_at': z.array(z.string()).optional(),
82
+ 'filter.origin': z.array(z.string()).optional(),
83
+ 'filter.origin_detail': z.array(z.string()).optional(),
84
+ 'filter.origin_model': z.array(z.string()).optional(),
85
+ 'filter.origin_harness': z.array(z.string()).optional(),
86
+ 'filter.origin_harness_version': z.array(z.string()).optional(),
87
+ 'filter.origin_run_result_id': z.array(z.string()).optional(),
88
+ 'filter.verification_status': z.array(z.string()).optional(),
89
+ 'filter.confidence_score': z.array(z.string()).optional(),
90
+ 'filter.added_to_cycle_at': z.array(z.string()).optional(),
91
+ 'filter.sla_status': z.array(z.string()).optional(),
92
+ 'filter.team_id': z.array(z.string()).optional(),
93
+ 'filter.workflow_state_id': z.array(z.string()).optional(),
94
+ 'filter.creator_id': z.array(z.string()).optional(),
95
+ 'filter.gate_set_id': z.array(z.string()).optional(),
96
+ 'filter.milestone_id': z.array(z.string()).optional(),
97
+ 'filter.spoke_key': z.array(z.string()).optional(),
98
+ 'filter.gate_run_id': z.array(z.string()).optional(),
99
+ 'filter.assignee_id': z.array(z.string()).optional(),
100
+ 'filter.parent_id': z.array(z.string()).optional(),
101
+ 'filter.cycle_id': z.array(z.string()).optional(),
102
+ 'filter.type_label_id': z.array(z.string()).optional(),
103
+ 'filter.created_at': z.array(z.string()).optional(),
104
+ 'filter.updated_at': z.array(z.string()).optional(),
105
+ 'filter.project_id': z.array(z.string()).optional(),
106
+ 'filter.deleted_at': z.array(z.string()).optional(),
107
+ 'filter.archived_at': z.array(z.string()).optional(),
108
+ 'sortBy': z.array(z.enum(["id:ASC", "id:DESC", "identifier:ASC", "identifier:DESC", "number:ASC", "number:DESC", "title:ASC", "title:DESC", "description:ASC", "description:DESC", "priority:ASC", "priority:DESC", "estimate:ASC", "estimate:DESC", "rolled_up_estimate:ASC", "rolled_up_estimate:DESC", "rolled_up_completed_estimate:ASC", "rolled_up_completed_estimate:DESC", "sequence:ASC", "sequence:DESC", "sub_issue_sequence:ASC", "sub_issue_sequence:DESC", "due_date:ASC", "due_date:DESC", "snoozed_until:ASC", "snoozed_until:DESC", "started_at:ASC", "started_at:DESC", "completed_at:ASC", "completed_at:DESC", "canceled_at:ASC", "canceled_at:DESC", "auto_closed_at:ASC", "auto_closed_at:DESC", "origin:ASC", "origin:DESC", "origin_detail:ASC", "origin_detail:DESC", "origin_model:ASC", "origin_model:DESC", "origin_harness:ASC", "origin_harness:DESC", "origin_harness_version:ASC", "origin_harness_version:DESC", "verification_status:ASC", "verification_status:DESC", "confidence_score:ASC", "confidence_score:DESC", "added_to_cycle_at:ASC", "added_to_cycle_at:DESC", "sla_status:ASC", "sla_status:DESC", "spoke_key:ASC", "spoke_key:DESC", "project_id:ASC", "project_id:DESC", "assignee_id:ASC", "assignee_id:DESC", "parent_id:ASC", "parent_id:DESC", "origin_run_result_id:ASC", "origin_run_result_id:DESC", "cycle_id:ASC", "cycle_id:DESC", "type_label_id:ASC", "type_label_id:DESC", "gate_set_id:ASC", "gate_set_id:DESC", "milestone_id:ASC", "milestone_id:DESC", "gate_run_id:ASC", "gate_run_id:DESC", "created_at:ASC", "created_at:DESC", "updated_at:ASC", "updated_at:DESC", "deleted_at:ASC", "deleted_at:DESC", "archived_at:ASC", "archived_at:DESC"])).optional(),
109
+ 'search': z.string().optional(),
110
+ 'searchBy': z.array(z.string()).optional(),
111
+ }).optional(),
112
+ url: z.literal('/v1/issue'),
113
+ });
114
+
@@ -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
+ IssueGateVerificationVerifyGatesV1Data,
6
+ IssueGateVerificationVerifyGatesV1Responses,
7
+ IssueGateVerificationVerifyGatesV1Errors,
8
+ IssueGateVerificationReportGateResultsV1Data,
9
+ IssueGateVerificationReportGateResultsV1Responses,
10
+ IssueGateVerificationReportGateResultsV1Errors,
11
+ } from './types.js';
12
+
13
+ /** POST /v1/issue/{id}/verify-gates */
14
+ export declare const issueGateVerificationVerifyGatesV1: <ThrowOnError extends boolean = false>(
15
+ options?: Options<IssueGateVerificationVerifyGatesV1Data, ThrowOnError>,
16
+ ) => import('../../runtime/types.js').RequestResult<IssueGateVerificationVerifyGatesV1Responses, IssueGateVerificationVerifyGatesV1Errors, ThrowOnError>;
17
+
18
+ /** POST /v1/issue/{id}/gate-results */
19
+ export declare const issueGateVerificationReportGateResultsV1: <ThrowOnError extends boolean = false>(
20
+ options: Options<IssueGateVerificationReportGateResultsV1Data, ThrowOnError>,
21
+ ) => import('../../runtime/types.js').RequestResult<IssueGateVerificationReportGateResultsV1Responses, IssueGateVerificationReportGateResultsV1Errors, 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
+ /** POST /v1/issue/{id}/verify-gates */
6
+ export const issueGateVerificationVerifyGatesV1 = (options) => {
7
+ return (options?.client ?? _client).post({
8
+ security: [
9
+ {
10
+ scheme: 'bearer',
11
+ type: 'http',
12
+ },
13
+ ],
14
+ url: '/v1/issue/{id}/verify-gates',
15
+ ...options,
16
+ });
17
+ };
18
+
19
+ /** POST /v1/issue/{id}/gate-results */
20
+ export const issueGateVerificationReportGateResultsV1 = (options) => {
21
+ return (options?.client ?? _client).post({
22
+ security: [
23
+ {
24
+ scheme: 'bearer',
25
+ type: 'http',
26
+ },
27
+ ],
28
+ url: '/v1/issue/{id}/gate-results',
29
+ ...options,
30
+ });
31
+ };
32
+
@@ -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,46 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+ export type IssueGateVerificationReportGateResultsV1Body = {
3
+ results: Array<{
4
+ gate_type: string;
5
+ link_id: string;
6
+ status: "pass" | "fail" | "error";
7
+ output: string;
8
+ expected?: string;
9
+ step_id?: string;
10
+ rule_hash?: string;
11
+ steps?: Array<{
12
+ command: string;
13
+ exit_code: number;
14
+ stdout_tail: string;
15
+ stderr_tail: string;
16
+ step_id?: string;
17
+ }>;
18
+ }>;
19
+ };
20
+
21
+ export type IssueGateVerificationVerifyGatesV1Data = {
22
+ body?: never;
23
+ path: {
24
+ id: string;
25
+ };
26
+ query?: never;
27
+ url: '/v1/issue/{id}/verify-gates';
28
+ };
29
+
30
+ export type IssueGateVerificationVerifyGatesV1Responses = unknown;
31
+
32
+ export type IssueGateVerificationVerifyGatesV1Errors = unknown;
33
+
34
+ export type IssueGateVerificationReportGateResultsV1Data = {
35
+ body: IssueGateVerificationReportGateResultsV1Body;
36
+ path: {
37
+ id: string;
38
+ };
39
+ query?: never;
40
+ url: '/v1/issue/{id}/gate-results';
41
+ };
42
+
43
+ export type IssueGateVerificationReportGateResultsV1Responses = unknown;
44
+
45
+ export type IssueGateVerificationReportGateResultsV1Errors = unknown;
46
+
@@ -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,12 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+
3
+ import { z } from 'zod/v3';
4
+
5
+ export declare const zIssueGateVerificationReportGateResultsV1Body: z.ZodType<import('./types.js').IssueGateVerificationReportGateResultsV1Body>;
6
+
7
+ export type IssueGateVerificationReportGateResultsV1BodyZodType = z.infer<typeof zIssueGateVerificationReportGateResultsV1Body>;
8
+
9
+ export declare const zIssueGateVerificationVerifyGatesV1Data: z.ZodType<import('./types.js').IssueGateVerificationVerifyGatesV1Data>;
10
+
11
+ export declare const zIssueGateVerificationReportGateResultsV1Data: z.ZodType<import('./types.js').IssueGateVerificationReportGateResultsV1Data>;
12
+
@@ -0,0 +1,38 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+
3
+ import { z } from 'zod/v3';
4
+
5
+ export const zIssueGateVerificationReportGateResultsV1Body = /* @__PURE__ */ z.object({
6
+ results: z.array(z.object({
7
+ gate_type: z.string(),
8
+ link_id: z.string(),
9
+ status: z.enum(["pass", "fail", "error"]),
10
+ output: z.string(),
11
+ expected: z.string().optional(),
12
+ step_id: z.string().optional(),
13
+ rule_hash: z.string().optional(),
14
+ steps: z.array(z.object({
15
+ command: z.string(),
16
+ exit_code: z.number(),
17
+ stdout_tail: z.string(),
18
+ stderr_tail: z.string(),
19
+ step_id: z.string().optional(),
20
+ })).optional(),
21
+ })),
22
+ });
23
+
24
+ export const zIssueGateVerificationVerifyGatesV1Data = /* @__PURE__ */ z.object({
25
+ path: z.object({
26
+ 'id': z.string(),
27
+ }),
28
+ url: z.literal('/v1/issue/{id}/verify-gates'),
29
+ });
30
+
31
+ export const zIssueGateVerificationReportGateResultsV1Data = /* @__PURE__ */ z.object({
32
+ body: zIssueGateVerificationReportGateResultsV1Body,
33
+ path: z.object({
34
+ 'id': z.string(),
35
+ }),
36
+ url: z.literal('/v1/issue/{id}/gate-results'),
37
+ });
38
+
@@ -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
+ RunApiUpdateRunResultVariantByIdV1Data,
6
+ RunApiUpdateRunResultVariantByIdV1Responses,
7
+ RunApiUpdateRunResultVariantByIdV1Errors,
8
+ } from './types.js';
9
+
10
+ /** PATCH /v1/run/run-result-variant/{runResultVariantId} */
11
+ export declare const runApiUpdateRunResultVariantByIdV1: <ThrowOnError extends boolean = false>(
12
+ options: Options<RunApiUpdateRunResultVariantByIdV1Data, ThrowOnError>,
13
+ ) => import('../../runtime/types.js').RequestResult<RunApiUpdateRunResultVariantByIdV1Responses, RunApiUpdateRunResultVariantByIdV1Errors, 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
+ /** PATCH /v1/run/run-result-variant/{runResultVariantId} */
6
+ export const runApiUpdateRunResultVariantByIdV1 = (options) => {
7
+ return (options?.client ?? _client).patch({
8
+ security: [
9
+ {
10
+ scheme: 'bearer',
11
+ type: 'http',
12
+ },
13
+ ],
14
+ url: '/v1/run/run-result-variant/{runResultVariantId}',
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,93 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+ export {};
3
+
4
+ interface DataSetRowSnapshot {
5
+ id: string;
6
+ input: Record<string, unknown>;
7
+ expected_output?: Record<string, unknown> | null;
8
+ context?: Record<string, unknown> | null;
9
+ }
10
+ interface EnvironmentSnapshot {
11
+ id: string;
12
+ name: string;
13
+ key: number;
14
+ description?: string | null;
15
+ location?: string | null;
16
+ resources?: Record<string, string> | null;
17
+ }
18
+ interface ExecutionSource {
19
+ type?: string;
20
+ name?: string;
21
+ url?: string;
22
+ version?: string;
23
+ [key: string]: unknown;
24
+ }
25
+ interface RunResultData {
26
+ steps?: Array<{
27
+ status_id?: string;
28
+ status_name?: string;
29
+ elapsed_time?: number;
30
+ result?: string;
31
+ }>;
32
+ }
33
+
34
+ export type UpdateRunResultVariantDto = {
35
+ status_id?: string;
36
+ actual_result: string | null | null;
37
+ append_actual_result?: string;
38
+ started_at: unknown | null;
39
+ ended_at: unknown | null;
40
+ duration_ms: number | null | null;
41
+ };
42
+
43
+ export type RunResultVariantNodeDto = {
44
+ type: "run_result_variant";
45
+ id: string;
46
+ run_id: string;
47
+ run_result_id: string;
48
+ status_id: string;
49
+ environment_id: string | null | null;
50
+ data_set_row_id: string | null | null;
51
+ sequence: string;
52
+ actual_result: string | null | null;
53
+ started_at: unknown | null;
54
+ ended_at: unknown | null;
55
+ duration_ms: number | null | null;
56
+ environment_snapshot: EnvironmentSnapshot | null;
57
+ data_set_row_snapshot: DataSetRowSnapshot | null;
58
+ data: RunResultData | null;
59
+ source: ExecutionSource | null;
60
+ created_at: unknown;
61
+ updated_at: unknown;
62
+ created_by: string;
63
+ updated_by: string;
64
+ epoch: number;
65
+ status?: {
66
+ id: string;
67
+ name: string;
68
+ key: number;
69
+ color: string | null | null;
70
+ };
71
+ environment?: {
72
+ id: string;
73
+ name: string;
74
+ key: number;
75
+ description: string | null | null;
76
+ };
77
+ };
78
+
79
+ export type RunApiUpdateRunResultVariantByIdV1Data = {
80
+ body: UpdateRunResultVariantDto;
81
+ path: {
82
+ runResultVariantId: string;
83
+ };
84
+ query?: never;
85
+ url: '/v1/run/run-result-variant/{runResultVariantId}';
86
+ };
87
+
88
+ export type RunApiUpdateRunResultVariantByIdV1Responses = {
89
+ 200: RunResultVariantNodeDto;
90
+ };
91
+
92
+ export type RunApiUpdateRunResultVariantByIdV1Errors = unknown;
93
+
@@ -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 zUpdateRunResultVariantDto: z.ZodType<import('./types.js').UpdateRunResultVariantDto>;
6
+
7
+ export type UpdateRunResultVariantDtoZodType = z.infer<typeof zUpdateRunResultVariantDto>;
8
+
9
+ export declare const zRunResultVariantNodeDto: z.ZodType<import('./types.js').RunResultVariantNodeDto>;
10
+
11
+ export type RunResultVariantNodeDtoZodType = z.infer<typeof zRunResultVariantNodeDto>;
12
+
13
+ export declare const zRunApiUpdateRunResultVariantByIdV1Data: z.ZodType<import('./types.js').RunApiUpdateRunResultVariantByIdV1Data>;
14
+
@@ -0,0 +1,57 @@
1
+ // Generated from the Levr OpenAPI specification. Do not edit.
2
+
3
+ import { z } from 'zod/v3';
4
+
5
+ export const zUpdateRunResultVariantDto = /* @__PURE__ */ z.object({
6
+ status_id: z.string().optional(),
7
+ actual_result: z.string().nullable(),
8
+ append_actual_result: z.string().optional(),
9
+ started_at: z.unknown(),
10
+ ended_at: z.unknown(),
11
+ duration_ms: z.number().nullable(),
12
+ });
13
+
14
+ export const zRunResultVariantNodeDto = /* @__PURE__ */ z.object({
15
+ type: z.enum(["run_result_variant"]),
16
+ id: z.string(),
17
+ run_id: z.string(),
18
+ run_result_id: z.string(),
19
+ status_id: z.string(),
20
+ environment_id: z.string().nullable(),
21
+ data_set_row_id: z.string().nullable(),
22
+ sequence: z.string(),
23
+ actual_result: z.string().nullable(),
24
+ started_at: z.unknown(),
25
+ ended_at: z.unknown(),
26
+ duration_ms: z.number().nullable(),
27
+ environment_snapshot: z.record(z.string(), z.unknown()).nullable(),
28
+ data_set_row_snapshot: z.record(z.string(), z.unknown()).nullable(),
29
+ data: z.record(z.string(), z.unknown()).nullable(),
30
+ source: z.record(z.string(), z.unknown()).nullable(),
31
+ created_at: z.unknown(),
32
+ updated_at: z.unknown(),
33
+ created_by: z.string(),
34
+ updated_by: z.string(),
35
+ epoch: z.number(),
36
+ status: z.object({
37
+ id: z.string(),
38
+ name: z.string(),
39
+ key: z.number(),
40
+ color: z.string().nullable(),
41
+ }).optional(),
42
+ environment: z.object({
43
+ id: z.string(),
44
+ name: z.string(),
45
+ key: z.number(),
46
+ description: z.string().nullable(),
47
+ }).optional(),
48
+ });
49
+
50
+ export const zRunApiUpdateRunResultVariantByIdV1Data = /* @__PURE__ */ z.object({
51
+ body: zUpdateRunResultVariantDto,
52
+ path: z.object({
53
+ 'runResultVariantId': z.string(),
54
+ }),
55
+ url: z.literal('/v1/run/run-result-variant/{runResultVariantId}'),
56
+ });
57
+
@@ -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
+ TeamFindAllV1Data,
6
+ TeamFindAllV1Responses,
7
+ TeamFindAllV1Errors,
8
+ } from './types.js';
9
+
10
+ /** GET /v1/team */
11
+ export declare const teamFindAllV1: <ThrowOnError extends boolean = false>(
12
+ options?: Options<TeamFindAllV1Data, ThrowOnError>,
13
+ ) => import('../../runtime/types.js').RequestResult<TeamFindAllV1Responses, TeamFindAllV1Errors, ThrowOnError>;
14
+