@bugbug-io/api-schema 13.39.1
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/README.md +39 -0
- package/dist/generated/v2.d.ts +7989 -0
- package/dist/generated/v2.d.ts.map +1 -0
- package/dist/generated/v2.js +6 -0
- package/dist/generated/v2.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas/_paginated.d.ts +16 -0
- package/dist/schemas/_paginated.d.ts.map +1 -0
- package/dist/schemas/_paginated.js +12 -0
- package/dist/schemas/_paginated.js.map +1 -0
- package/dist/schemas/common.d.ts +7 -0
- package/dist/schemas/common.d.ts.map +1 -0
- package/dist/schemas/common.js +12 -0
- package/dist/schemas/common.js.map +1 -0
- package/dist/schemas/enums.d.ts +34 -0
- package/dist/schemas/enums.d.ts.map +1 -0
- package/dist/schemas/enums.js +160 -0
- package/dist/schemas/enums.js.map +1 -0
- package/dist/schemas/index.d.ts +10 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +10 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/profiles.d.ts +48 -0
- package/dist/schemas/profiles.d.ts.map +1 -0
- package/dist/schemas/profiles.js +12 -0
- package/dist/schemas/profiles.js.map +1 -0
- package/dist/schemas/projects.d.ts +64 -0
- package/dist/schemas/projects.d.ts.map +1 -0
- package/dist/schemas/projects.js +14 -0
- package/dist/schemas/projects.js.map +1 -0
- package/dist/schemas/runs.d.ts +524 -0
- package/dist/schemas/runs.d.ts.map +1 -0
- package/dist/schemas/runs.js +101 -0
- package/dist/schemas/runs.js.map +1 -0
- package/dist/schemas/selectors.d.ts +308 -0
- package/dist/schemas/selectors.d.ts.map +1 -0
- package/dist/schemas/selectors.js +43 -0
- package/dist/schemas/selectors.js.map +1 -0
- package/dist/schemas/steps.d.ts +22022 -0
- package/dist/schemas/steps.d.ts.map +1 -0
- package/dist/schemas/steps.js +384 -0
- package/dist/schemas/steps.js.map +1 -0
- package/dist/schemas/suites.d.ts +133 -0
- package/dist/schemas/suites.d.ts.map +1 -0
- package/dist/schemas/suites.js +30 -0
- package/dist/schemas/suites.js.map +1 -0
- package/dist/schemas/tests.d.ts +62 -0
- package/dist/schemas/tests.d.ts.map +1 -0
- package/dist/schemas/tests.js +22 -0
- package/dist/schemas/tests.js.map +1 -0
- package/dist/step-error-codes.d.ts +11 -0
- package/dist/step-error-codes.d.ts.map +1 -0
- package/dist/step-error-codes.js +81 -0
- package/dist/step-error-codes.js.map +1 -0
- package/dist/types.d.ts +124 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +7 -0
- package/dist/types.js.map +1 -0
- package/package.json +91 -0
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Standalone enum schemas used across step / run / selector schemas.
|
|
3
|
+
*/
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
export const DEBUG_ARTIFACT_TYPES = [
|
|
6
|
+
'network_logs',
|
|
7
|
+
'logs',
|
|
8
|
+
'dom_snapshot',
|
|
9
|
+
];
|
|
10
|
+
export const DebugArtifactByTypeSchema = z.enum(DEBUG_ARTIFACT_TYPES);
|
|
11
|
+
export const RUN_MODES = [
|
|
12
|
+
'server',
|
|
13
|
+
'local',
|
|
14
|
+
'recording',
|
|
15
|
+
];
|
|
16
|
+
export const RunModeSchema = z
|
|
17
|
+
.enum(RUN_MODES)
|
|
18
|
+
.describe('Run execution mode: server, local, recording.');
|
|
19
|
+
export const WAITING_CONDITION_TYPES = [
|
|
20
|
+
'documentComplete',
|
|
21
|
+
'elementIsVisible',
|
|
22
|
+
'elementIsNotCovered',
|
|
23
|
+
'elementIsNotAnimating',
|
|
24
|
+
'elementIsNotDisabled',
|
|
25
|
+
'elementHasFocus',
|
|
26
|
+
'networkIdle',
|
|
27
|
+
'pageNavigationAfterExecution',
|
|
28
|
+
'elementHasAttribute',
|
|
29
|
+
];
|
|
30
|
+
export const WaitingConditionTypeSchema = z
|
|
31
|
+
.enum(WAITING_CONDITION_TYPES)
|
|
32
|
+
.describe('Waiting condition type evaluated by BugBug.');
|
|
33
|
+
export const StatusSchema = z.enum([
|
|
34
|
+
'initialized',
|
|
35
|
+
'passed',
|
|
36
|
+
'failed',
|
|
37
|
+
'auto_retrying',
|
|
38
|
+
'recording',
|
|
39
|
+
'queued',
|
|
40
|
+
'running',
|
|
41
|
+
'stopped',
|
|
42
|
+
'paused',
|
|
43
|
+
'error',
|
|
44
|
+
'skipped',
|
|
45
|
+
]);
|
|
46
|
+
export const StepTypeSchema = z
|
|
47
|
+
.enum([
|
|
48
|
+
'answerPrompt',
|
|
49
|
+
'assert',
|
|
50
|
+
'change',
|
|
51
|
+
'clear',
|
|
52
|
+
'click',
|
|
53
|
+
'dblClick',
|
|
54
|
+
'rightClick',
|
|
55
|
+
'closeTab',
|
|
56
|
+
'dragAndDrop',
|
|
57
|
+
'elementVisualRegression',
|
|
58
|
+
'execute',
|
|
59
|
+
'goto',
|
|
60
|
+
'goBack',
|
|
61
|
+
'goForward',
|
|
62
|
+
'hover',
|
|
63
|
+
'ifCondition',
|
|
64
|
+
'mouseDown',
|
|
65
|
+
'mouseUp',
|
|
66
|
+
'newTab',
|
|
67
|
+
'pageVisualRegression',
|
|
68
|
+
'pasteFromClipboard',
|
|
69
|
+
'reloadPage',
|
|
70
|
+
'scroll',
|
|
71
|
+
'select',
|
|
72
|
+
'setLocalVariable',
|
|
73
|
+
'switchContext',
|
|
74
|
+
'type',
|
|
75
|
+
'uploadFile',
|
|
76
|
+
])
|
|
77
|
+
.describe('Available step types: answerPrompt, assert, change, clear, click, dblClick, rightClick, closeTab, dragAndDrop, elementVisualRegression, execute, goto, goBack, goForward, hover, ifCondition, mouseDown, mouseUp, newTab, pageVisualRegression, pasteFromClipboard, reloadPage, scroll, select, setLocalVariable, switchContext, type, uploadFile.');
|
|
78
|
+
export const AssertionTypeSchema = z
|
|
79
|
+
.enum([
|
|
80
|
+
'contain',
|
|
81
|
+
'equal',
|
|
82
|
+
'greaterThan',
|
|
83
|
+
'lessThan',
|
|
84
|
+
'match',
|
|
85
|
+
'notContain',
|
|
86
|
+
'notEqual',
|
|
87
|
+
'notMatch',
|
|
88
|
+
'any',
|
|
89
|
+
])
|
|
90
|
+
.describe('Assertion operators supported by BugBug: contain, equal, greaterThan, lessThan, match, notContain, notEqual, notMatch, any.');
|
|
91
|
+
export const AssertionPropertySchema = z
|
|
92
|
+
.enum([
|
|
93
|
+
'checked',
|
|
94
|
+
'count',
|
|
95
|
+
'customJavaScript',
|
|
96
|
+
'exist',
|
|
97
|
+
'notChecked',
|
|
98
|
+
'notExist',
|
|
99
|
+
'notVisible',
|
|
100
|
+
'textContent',
|
|
101
|
+
'hasAttribute',
|
|
102
|
+
'hasNotAttribute',
|
|
103
|
+
'value',
|
|
104
|
+
'visible',
|
|
105
|
+
'pageTitle',
|
|
106
|
+
'pageShowsText',
|
|
107
|
+
'pageDoesNotShowText',
|
|
108
|
+
'pageUrlIs',
|
|
109
|
+
'downloadStarted',
|
|
110
|
+
'variableValue',
|
|
111
|
+
'clipboardValue',
|
|
112
|
+
'disabled',
|
|
113
|
+
'notDisabled',
|
|
114
|
+
])
|
|
115
|
+
.describe('Assertion properties supported by BugBug, including element state, page-level checks, downloads, variables, clipboard, and disabled state.');
|
|
116
|
+
export const SelectorTypeSchema = z
|
|
117
|
+
.enum(['XPath', 'customCSS', 'customXPath', ''])
|
|
118
|
+
.nullable()
|
|
119
|
+
.describe('Selector engines or strategies supported by BugBug: XPath, customCSS, customXPath.');
|
|
120
|
+
export const SelectorsRelationSchema = z
|
|
121
|
+
.enum(['descendant', 'ancestor', 'sibling'])
|
|
122
|
+
.describe('How selectors inside a group are combined: descendant, ancestor, sibling.');
|
|
123
|
+
export const InteractionPositionSchema = z
|
|
124
|
+
.enum([
|
|
125
|
+
'smart',
|
|
126
|
+
'custom',
|
|
127
|
+
'topLeft',
|
|
128
|
+
'topCenter',
|
|
129
|
+
'topRight',
|
|
130
|
+
'middleLeft',
|
|
131
|
+
'middleCenter',
|
|
132
|
+
'middleRight',
|
|
133
|
+
'bottomLeft',
|
|
134
|
+
'bottomCenter',
|
|
135
|
+
'bottomRight',
|
|
136
|
+
])
|
|
137
|
+
.describe('Element interaction position used by BugBug.');
|
|
138
|
+
export const DragAndDropTargetSchema = z
|
|
139
|
+
.enum(['coords', 'element'])
|
|
140
|
+
.describe('Drag-and-drop target mode.');
|
|
141
|
+
export const ScrollEdgeSchema = InteractionPositionSchema.exclude(['smart', 'custom'])
|
|
142
|
+
.nullable()
|
|
143
|
+
.describe('Element edge to scroll toward.');
|
|
144
|
+
export const ScrollDirectionSchema = z.enum(['down', 'up', 'right', 'left']).nullable();
|
|
145
|
+
export const ScrollToSchema = z
|
|
146
|
+
.enum(['coords', 'edge', 'untilNextStepElementIsVisible', 'elementIntoView'])
|
|
147
|
+
.describe('Scroll target strategy.');
|
|
148
|
+
export const ScrollInsideSchema = z
|
|
149
|
+
.enum(['window', 'element'])
|
|
150
|
+
.describe('Whether to scroll inside the window or target element.');
|
|
151
|
+
export const SelectTypeSchema = z
|
|
152
|
+
.enum(['text', 'index', 'value'])
|
|
153
|
+
.describe('How the option should be matched.');
|
|
154
|
+
export const ScreenSizeTypeSchema = z
|
|
155
|
+
.enum(['desktop', 'mobile', 'custom'])
|
|
156
|
+
.describe('Screen size preset used when running or recording the test.');
|
|
157
|
+
export const TriggeredBySchema = z
|
|
158
|
+
.enum(['user', 'api', 'webhook', 'scheduler', 'github', 'cli', 'agent'])
|
|
159
|
+
.describe('Origin that triggered the run.');
|
|
160
|
+
//# sourceMappingURL=enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../src/schemas/enums.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,MAAM,C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CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './common';
|
|
2
|
+
export * from './enums';
|
|
3
|
+
export * from './selectors';
|
|
4
|
+
export * from './steps';
|
|
5
|
+
export * from './tests';
|
|
6
|
+
export * from './suites';
|
|
7
|
+
export * from './profiles';
|
|
8
|
+
export * from './projects';
|
|
9
|
+
export * from './runs';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './common';
|
|
2
|
+
export * from './enums';
|
|
3
|
+
export * from './selectors';
|
|
4
|
+
export * from './steps';
|
|
5
|
+
export * from './tests';
|
|
6
|
+
export * from './suites';
|
|
7
|
+
export * from './profiles';
|
|
8
|
+
export * from './projects';
|
|
9
|
+
export * from './runs';
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ProfileSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
11
|
+
id: z.ZodString;
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
15
|
+
export declare const ProfilesListSchema: z.ZodObject<{
|
|
16
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
nextToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
results: z.ZodArray<z.ZodObject<{
|
|
19
|
+
id: z.ZodString;
|
|
20
|
+
name: z.ZodString;
|
|
21
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
23
|
+
id: z.ZodString;
|
|
24
|
+
name: z.ZodString;
|
|
25
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
27
|
+
id: z.ZodString;
|
|
28
|
+
name: z.ZodString;
|
|
29
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
results: z.objectOutputType<{
|
|
33
|
+
id: z.ZodString;
|
|
34
|
+
name: z.ZodString;
|
|
35
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
37
|
+
count?: number | undefined;
|
|
38
|
+
nextToken?: string | null | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
results: z.objectInputType<{
|
|
41
|
+
id: z.ZodString;
|
|
42
|
+
name: z.ZodString;
|
|
43
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
44
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
45
|
+
count?: number | undefined;
|
|
46
|
+
nextToken?: string | null | undefined;
|
|
47
|
+
}>;
|
|
48
|
+
//# sourceMappingURL=profiles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../src/schemas/profiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,aAAa;;;;;;;;;;;;gCAMV,CAAC;AAEjB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAqC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { makePaginatedSchema } from './_paginated';
|
|
3
|
+
import { UuidSchema } from './common';
|
|
4
|
+
export const ProfileSchema = z
|
|
5
|
+
.object({
|
|
6
|
+
id: UuidSchema.describe('Run profile UUID.'),
|
|
7
|
+
name: z.string().describe('Run profile name.'),
|
|
8
|
+
isDefault: z.boolean().optional().describe('Whether this is the default run profile.'),
|
|
9
|
+
})
|
|
10
|
+
.passthrough();
|
|
11
|
+
export const ProfilesListSchema = makePaginatedSchema(ProfileSchema);
|
|
12
|
+
//# sourceMappingURL=profiles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profiles.js","sourceRoot":"","sources":["../../src/schemas/profiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC;KAC3B,MAAM,CAAC;IACN,EAAE,EAAE,UAAU,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IAC5C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IAC9C,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,0CAA0C,CAAC;CACvF,CAAC;KACD,WAAW,EAAE,CAAC;AAEjB,MAAM,CAAC,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,aAAa,CAAC,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ProjectSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
name: z.ZodNullable<z.ZodString>;
|
|
5
|
+
homepageUrl: z.ZodNullable<z.ZodString>;
|
|
6
|
+
organizationId: z.ZodNullable<z.ZodString>;
|
|
7
|
+
organizationName: z.ZodString;
|
|
8
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
name: z.ZodNullable<z.ZodString>;
|
|
11
|
+
homepageUrl: z.ZodNullable<z.ZodString>;
|
|
12
|
+
organizationId: z.ZodNullable<z.ZodString>;
|
|
13
|
+
organizationName: z.ZodString;
|
|
14
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
15
|
+
id: z.ZodString;
|
|
16
|
+
name: z.ZodNullable<z.ZodString>;
|
|
17
|
+
homepageUrl: z.ZodNullable<z.ZodString>;
|
|
18
|
+
organizationId: z.ZodNullable<z.ZodString>;
|
|
19
|
+
organizationName: z.ZodString;
|
|
20
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
21
|
+
export declare const ProjectsListSchema: z.ZodObject<{
|
|
22
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
nextToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
results: z.ZodArray<z.ZodObject<{
|
|
25
|
+
id: z.ZodString;
|
|
26
|
+
name: z.ZodNullable<z.ZodString>;
|
|
27
|
+
homepageUrl: z.ZodNullable<z.ZodString>;
|
|
28
|
+
organizationId: z.ZodNullable<z.ZodString>;
|
|
29
|
+
organizationName: z.ZodString;
|
|
30
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
31
|
+
id: z.ZodString;
|
|
32
|
+
name: z.ZodNullable<z.ZodString>;
|
|
33
|
+
homepageUrl: z.ZodNullable<z.ZodString>;
|
|
34
|
+
organizationId: z.ZodNullable<z.ZodString>;
|
|
35
|
+
organizationName: z.ZodString;
|
|
36
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
37
|
+
id: z.ZodString;
|
|
38
|
+
name: z.ZodNullable<z.ZodString>;
|
|
39
|
+
homepageUrl: z.ZodNullable<z.ZodString>;
|
|
40
|
+
organizationId: z.ZodNullable<z.ZodString>;
|
|
41
|
+
organizationName: z.ZodString;
|
|
42
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
results: z.objectOutputType<{
|
|
45
|
+
id: z.ZodString;
|
|
46
|
+
name: z.ZodNullable<z.ZodString>;
|
|
47
|
+
homepageUrl: z.ZodNullable<z.ZodString>;
|
|
48
|
+
organizationId: z.ZodNullable<z.ZodString>;
|
|
49
|
+
organizationName: z.ZodString;
|
|
50
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
51
|
+
count?: number | undefined;
|
|
52
|
+
nextToken?: string | null | undefined;
|
|
53
|
+
}, {
|
|
54
|
+
results: z.objectInputType<{
|
|
55
|
+
id: z.ZodString;
|
|
56
|
+
name: z.ZodNullable<z.ZodString>;
|
|
57
|
+
homepageUrl: z.ZodNullable<z.ZodString>;
|
|
58
|
+
organizationId: z.ZodNullable<z.ZodString>;
|
|
59
|
+
organizationName: z.ZodString;
|
|
60
|
+
}, z.ZodTypeAny, "passthrough">[];
|
|
61
|
+
count?: number | undefined;
|
|
62
|
+
nextToken?: string | null | undefined;
|
|
63
|
+
}>;
|
|
64
|
+
//# sourceMappingURL=projects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../src/schemas/projects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;gCAQV,CAAC;AAEjB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAqC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { makePaginatedSchema } from './_paginated';
|
|
3
|
+
import { UuidSchema } from './common';
|
|
4
|
+
export const ProjectSchema = z
|
|
5
|
+
.object({
|
|
6
|
+
id: UuidSchema.describe('Project UUID.'),
|
|
7
|
+
name: z.string().nullable().describe('Project name.'),
|
|
8
|
+
homepageUrl: z.string().nullable().describe('Project homepage URL.'),
|
|
9
|
+
organizationId: z.string().nullable().describe('Owning organization UUID.'),
|
|
10
|
+
organizationName: z.string().describe('Owning organization name.'),
|
|
11
|
+
})
|
|
12
|
+
.passthrough();
|
|
13
|
+
export const ProjectsListSchema = makePaginatedSchema(ProjectSchema);
|
|
14
|
+
//# sourceMappingURL=projects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projects.js","sourceRoot":"","sources":["../../src/schemas/projects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC;KAC3B,MAAM,CAAC;IACN,EAAE,EAAE,UAAU,CAAC,QAAQ,CAAC,eAAe,CAAC;IACxC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,eAAe,CAAC;IACrD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uBAAuB,CAAC;IACpE,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAC3E,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;CACnE,CAAC;KACD,WAAW,EAAE,CAAC;AAEjB,MAAM,CAAC,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,aAAa,CAAC,CAAC"}
|