@qawolf/api-contracts 0.135.0 → 0.140.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.
- package/LICENSE +21 -0
- package/dist/v1/build/create.d.ts +1 -4
- package/dist/v1/build/create.d.ts.map +1 -1
- package/dist/v1/build/delete.d.ts +2 -5
- package/dist/v1/build/delete.d.ts.map +1 -1
- package/dist/v1/build/delete.js +1 -1
- package/dist/v1/build/delete.js.map +1 -1
- package/dist/v1/build/get.d.ts +1 -4
- package/dist/v1/build/get.d.ts.map +1 -1
- package/dist/v1/build/index.d.ts +6 -18
- package/dist/v1/build/index.d.ts.map +1 -1
- package/dist/v1/build/list.d.ts +1 -4
- package/dist/v1/build/list.d.ts.map +1 -1
- package/dist/v1/build/requestUpload.d.ts +1 -1
- package/dist/v1/build/requestUpload.js +3 -3
- package/dist/v1/build/requestUpload.js.map +1 -1
- package/dist/v1/build/resource.d.ts +2 -8
- package/dist/v1/build/resource.d.ts.map +1 -1
- package/dist/v1/build/resource.js +5 -6
- package/dist/v1/build/resource.js.map +1 -1
- package/dist/v1/codeHostIntegration/findForRepository.d.ts +51 -0
- package/dist/v1/codeHostIntegration/findForRepository.d.ts.map +1 -0
- package/dist/v1/codeHostIntegration/findForRepository.js +90 -0
- package/dist/v1/codeHostIntegration/findForRepository.js.map +1 -0
- package/dist/v1/codeHostIntegration/index.d.ts +116 -0
- package/dist/v1/codeHostIntegration/index.d.ts.map +1 -1
- package/dist/v1/codeHostIntegration/index.js +8 -0
- package/dist/v1/codeHostIntegration/index.js.map +1 -1
- package/dist/v1/deployment/index.d.ts +21 -6
- package/dist/v1/deployment/index.d.ts.map +1 -1
- package/dist/v1/deployment/reportStatus.d.ts +21 -6
- package/dist/v1/deployment/reportStatus.d.ts.map +1 -1
- package/dist/v1/deployment/reportStatus.js +1 -1
- package/dist/v1/deployment/reportStatus.js.map +1 -1
- package/dist/v1/deployment/reportStatusChanges.d.ts +21 -6
- package/dist/v1/deployment/reportStatusChanges.d.ts.map +1 -1
- package/dist/v1/deployment/reportStatusChanges.js +50 -5
- package/dist/v1/deployment/reportStatusChanges.js.map +1 -1
- package/dist/v1/extensibleValue.d.ts +8 -0
- package/dist/v1/extensibleValue.d.ts.map +1 -0
- package/dist/v1/extensibleValue.js +10 -0
- package/dist/v1/extensibleValue.js.map +1 -0
- package/dist/v1/index.d.ts +322 -84
- package/dist/v1/index.d.ts.map +1 -1
- package/dist/v1/index.js +6 -12
- package/dist/v1/index.js.map +1 -1
- package/dist/v1/investigation/finding.d.ts +1 -0
- package/dist/v1/investigation/finding.d.ts.map +1 -1
- package/dist/v1/investigation/finding.js +4 -0
- package/dist/v1/investigation/finding.js.map +1 -1
- package/dist/v1/investigation/get.d.ts +1 -0
- package/dist/v1/investigation/get.d.ts.map +1 -1
- package/dist/v1/investigation/index.d.ts +1 -0
- package/dist/v1/investigation/index.d.ts.map +1 -1
- package/dist/v1/run/get.d.ts +2 -8
- package/dist/v1/run/get.d.ts.map +1 -1
- package/dist/v1/run/versions.d.ts +1 -4
- package/dist/v1/run/versions.d.ts.map +1 -1
- package/dist/v1/run/versions.js +1 -8
- package/dist/v1/run/versions.js.map +1 -1
- package/dist/v1/runner/catalog.d.ts +10 -10
- package/dist/v1/runner/identity.d.ts +4 -4
- package/dist/v1/runner/index.d.ts +4 -4
- package/dist/v1/runner/list.d.ts +2 -2
- package/dist/v1/runner/runFlow.d.ts +4 -4
- package/dist/v1/tag/contracts.d.ts +62 -0
- package/dist/v1/tag/contracts.d.ts.map +1 -0
- package/dist/v1/tag/contracts.js +7 -0
- package/dist/v1/tag/contracts.js.map +1 -0
- package/dist/v1/usage/breakdown.d.ts +79 -0
- package/dist/v1/usage/breakdown.d.ts.map +1 -0
- package/dist/v1/usage/breakdown.js +99 -0
- package/dist/v1/usage/breakdown.js.map +1 -0
- package/dist/v1/usage/index.d.ts +79 -0
- package/dist/v1/usage/index.d.ts.map +1 -0
- package/dist/v1/usage/index.js +5 -0
- package/dist/v1/usage/index.js.map +1 -0
- package/package.json +7 -6
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 QA Wolf Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -42,10 +42,7 @@ export declare const makeCreateBuildContract: <EnvironmentId extends PublicIdSch
|
|
|
42
42
|
environmentId: z.ZodOptional<EnvironmentId>;
|
|
43
43
|
fileName: z.ZodString;
|
|
44
44
|
id: z.ZodString;
|
|
45
|
-
platform: z.
|
|
46
|
-
android: "android";
|
|
47
|
-
ios: "ios";
|
|
48
|
-
}>;
|
|
45
|
+
platform: z.ZodString;
|
|
49
46
|
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
50
47
|
version: z.ZodOptional<z.ZodString>;
|
|
51
48
|
url: z.ZodURL;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/v1/build/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAQhD,eAAO,MAAM,uBAAuB,GAClC,aAAa,SAAS,cAAc,EACpC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,SAAS,EAAE,WAAW,CAAC;CACxB
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/v1/build/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAQhD,eAAO,MAAM,uBAAuB,GAClC,aAAa,SAAS,cAAc,EACpC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuEA,CAAC"}
|
|
@@ -14,7 +14,7 @@ export declare const makeDeleteBuildContract: <EnvironmentId extends PublicIdSch
|
|
|
14
14
|
readonly openWorldHint: false;
|
|
15
15
|
readonly readOnlyHint: false;
|
|
16
16
|
};
|
|
17
|
-
readonly description: "Delete a build. Runs never install a deleted build. Deleting an environment's latest build makes the previous one its latest. Runs install that build only if its file is still kept
|
|
17
|
+
readonly description: "Delete a build. Runs never install a deleted build. Deleting an environment's latest build makes the previous one its latest. Runs install that build only if its file is still kept. On QA Wolf's cloud, the latest builds of static environments are always kept. Otherwise the newest 50 builds of each app and platform in an environment, and the newest 100 with no environment, are kept up to 180 days after upload; older ones are deleted 7 days after they fall out. The builds of a terminated preview environment are deleted 7 days after it terminates. Answers the build with deletedAt set. Deleting a deleted build answers it unchanged.";
|
|
18
18
|
readonly input: z.ZodObject<{
|
|
19
19
|
buildId: z.ZodString;
|
|
20
20
|
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
@@ -33,10 +33,7 @@ export declare const makeDeleteBuildContract: <EnvironmentId extends PublicIdSch
|
|
|
33
33
|
environmentId: z.ZodOptional<EnvironmentId>;
|
|
34
34
|
fileName: z.ZodString;
|
|
35
35
|
id: z.ZodString;
|
|
36
|
-
platform: z.
|
|
37
|
-
android: "android";
|
|
38
|
-
ios: "ios";
|
|
39
|
-
}>;
|
|
36
|
+
platform: z.ZodString;
|
|
40
37
|
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
41
38
|
version: z.ZodOptional<z.ZodString>;
|
|
42
39
|
url: z.ZodURL;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../src/v1/build/delete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,eAAO,MAAM,uBAAuB,GAClC,aAAa,SAAS,cAAc,EACpC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,SAAS,EAAE,WAAW,CAAC;CACxB
|
|
1
|
+
{"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../src/v1/build/delete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,eAAO,MAAM,uBAAuB,GAClC,aAAa,SAAS,cAAc,EACpC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCA,CAAC"}
|
package/dist/v1/build/delete.js
CHANGED
|
@@ -19,7 +19,7 @@ export const makeDeleteBuildContract = (ids) => {
|
|
|
19
19
|
openWorldHint: false,
|
|
20
20
|
readOnlyHint: false,
|
|
21
21
|
},
|
|
22
|
-
description: "Delete a build. Runs never install a deleted build. Deleting an environment's latest build makes the previous one its latest. Runs install that build only if its file is still kept
|
|
22
|
+
description: "Delete a build. Runs never install a deleted build. Deleting an environment's latest build makes the previous one its latest. Runs install that build only if its file is still kept. On QA Wolf's cloud, the latest builds of static environments are always kept. Otherwise the newest 50 builds of each app and platform in an environment, and the newest 100 with no environment, are kept up to 180 days after upload; older ones are deleted 7 days after they fall out. The builds of a terminated preview environment are deleted 7 days after it terminates. Answers the build with deletedAt set. Deleting a deleted build answers it unchanged.",
|
|
23
23
|
input,
|
|
24
24
|
kind: "write",
|
|
25
25
|
name: "build.delete",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../src/v1/build/delete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,aAAa,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAEvE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAGrC,GAGD,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,OAAO,EAAE,aAAa;QACtB,WAAW,EAAE,GAAG,CAAC,SAAS;aACvB,QAAQ,EAAE;aACV,QAAQ,CACP,gGAAgG,CACjG;KACJ,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,uBAAuB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAEjE,OAAO;QACL,wBAAwB,EAAE;YACxB,eAAe,EACb,uKAAuK;YACzK,aAAa,EAAE,wCAAwC;YACvD,YAAY,EAAE,oBAAoB;SACnC;QACD,WAAW,EAAE;YACX,eAAe,EAAE,IAAI;YACrB,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,KAAK;SACpB;QACD,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../src/v1/build/delete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,aAAa,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAEvE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAGrC,GAGD,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,OAAO,EAAE,aAAa;QACtB,WAAW,EAAE,GAAG,CAAC,SAAS;aACvB,QAAQ,EAAE;aACV,QAAQ,CACP,gGAAgG,CACjG;KACJ,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,uBAAuB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAEjE,OAAO;QACL,wBAAwB,EAAE;YACxB,eAAe,EACb,uKAAuK;YACzK,aAAa,EAAE,wCAAwC;YACvD,YAAY,EAAE,oBAAoB;SACnC;QACD,WAAW,EAAE;YACX,eAAe,EAAE,IAAI;YACrB,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,KAAK;SACpB;QACD,WAAW,EACT,6nBAA6nB;QAC/nB,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,cAAc;QACpB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
package/dist/v1/build/get.d.ts
CHANGED
|
@@ -33,10 +33,7 @@ export declare const makeGetBuildContract: <EnvironmentId extends PublicIdSchema
|
|
|
33
33
|
environmentId: z.ZodOptional<EnvironmentId>;
|
|
34
34
|
fileName: z.ZodString;
|
|
35
35
|
id: z.ZodString;
|
|
36
|
-
platform: z.
|
|
37
|
-
android: "android";
|
|
38
|
-
ios: "ios";
|
|
39
|
-
}>;
|
|
36
|
+
platform: z.ZodString;
|
|
40
37
|
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
41
38
|
version: z.ZodOptional<z.ZodString>;
|
|
42
39
|
url: z.ZodURL;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/v1/build/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,eAAO,MAAM,oBAAoB,GAC/B,aAAa,SAAS,cAAc,EACpC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,SAAS,EAAE,WAAW,CAAC;CACxB
|
|
1
|
+
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/v1/build/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,eAAO,MAAM,oBAAoB,GAC/B,aAAa,SAAS,cAAc,EACpC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCA,CAAC"}
|
package/dist/v1/build/index.d.ts
CHANGED
|
@@ -43,10 +43,7 @@ export declare const makeBuildContracts: <EnvironmentId extends PublicIdSchema,
|
|
|
43
43
|
environmentId: import("zod").ZodOptional<EnvironmentId>;
|
|
44
44
|
fileName: import("zod").ZodString;
|
|
45
45
|
id: import("zod").ZodString;
|
|
46
|
-
platform: import("zod").
|
|
47
|
-
android: "android";
|
|
48
|
-
ios: "ios";
|
|
49
|
-
}>;
|
|
46
|
+
platform: import("zod").ZodString;
|
|
50
47
|
sizeBytes: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
51
48
|
version: import("zod").ZodOptional<import("zod").ZodString>;
|
|
52
49
|
url: import("zod").ZodURL;
|
|
@@ -64,7 +61,7 @@ export declare const makeBuildContracts: <EnvironmentId extends PublicIdSchema,
|
|
|
64
61
|
readonly openWorldHint: false;
|
|
65
62
|
readonly readOnlyHint: false;
|
|
66
63
|
};
|
|
67
|
-
readonly description: "Delete a build. Runs never install a deleted build. Deleting an environment's latest build makes the previous one its latest. Runs install that build only if its file is still kept
|
|
64
|
+
readonly description: "Delete a build. Runs never install a deleted build. Deleting an environment's latest build makes the previous one its latest. Runs install that build only if its file is still kept. On QA Wolf's cloud, the latest builds of static environments are always kept. Otherwise the newest 50 builds of each app and platform in an environment, and the newest 100 with no environment, are kept up to 180 days after upload; older ones are deleted 7 days after they fall out. The builds of a terminated preview environment are deleted 7 days after it terminates. Answers the build with deletedAt set. Deleting a deleted build answers it unchanged.";
|
|
68
65
|
readonly input: import("zod").ZodObject<{
|
|
69
66
|
buildId: import("zod").ZodString;
|
|
70
67
|
workspaceId: import("zod").ZodOptional<WorkspaceId>;
|
|
@@ -83,10 +80,7 @@ export declare const makeBuildContracts: <EnvironmentId extends PublicIdSchema,
|
|
|
83
80
|
environmentId: import("zod").ZodOptional<EnvironmentId>;
|
|
84
81
|
fileName: import("zod").ZodString;
|
|
85
82
|
id: import("zod").ZodString;
|
|
86
|
-
platform: import("zod").
|
|
87
|
-
android: "android";
|
|
88
|
-
ios: "ios";
|
|
89
|
-
}>;
|
|
83
|
+
platform: import("zod").ZodString;
|
|
90
84
|
sizeBytes: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
91
85
|
version: import("zod").ZodOptional<import("zod").ZodString>;
|
|
92
86
|
url: import("zod").ZodURL;
|
|
@@ -123,10 +117,7 @@ export declare const makeBuildContracts: <EnvironmentId extends PublicIdSchema,
|
|
|
123
117
|
environmentId: import("zod").ZodOptional<EnvironmentId>;
|
|
124
118
|
fileName: import("zod").ZodString;
|
|
125
119
|
id: import("zod").ZodString;
|
|
126
|
-
platform: import("zod").
|
|
127
|
-
android: "android";
|
|
128
|
-
ios: "ios";
|
|
129
|
-
}>;
|
|
120
|
+
platform: import("zod").ZodString;
|
|
130
121
|
sizeBytes: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
131
122
|
version: import("zod").ZodOptional<import("zod").ZodString>;
|
|
132
123
|
url: import("zod").ZodURL;
|
|
@@ -167,10 +158,7 @@ export declare const makeBuildContracts: <EnvironmentId extends PublicIdSchema,
|
|
|
167
158
|
environmentId: import("zod").ZodOptional<EnvironmentId>;
|
|
168
159
|
fileName: import("zod").ZodString;
|
|
169
160
|
id: import("zod").ZodString;
|
|
170
|
-
platform: import("zod").
|
|
171
|
-
android: "android";
|
|
172
|
-
ios: "ios";
|
|
173
|
-
}>;
|
|
161
|
+
platform: import("zod").ZodString;
|
|
174
162
|
sizeBytes: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
175
163
|
version: import("zod").ZodOptional<import("zod").ZodString>;
|
|
176
164
|
url: import("zod").ZodURL;
|
|
@@ -213,7 +201,7 @@ export declare const makeBuildContracts: <EnvironmentId extends PublicIdSchema,
|
|
|
213
201
|
readonly openWorldHint: false;
|
|
214
202
|
readonly readOnlyHint: false;
|
|
215
203
|
};
|
|
216
|
-
readonly description: "Get a URL to upload an app build: an .apk, .aab or .
|
|
204
|
+
readonly description: "Get a URL to upload an app build: an .apk, .aab, .ipa, or a Linux Electron app as a .deb or .rpm, up to 1 GB by default. PUT the file there with uploadHeaders, then call build.create with the buildId.";
|
|
217
205
|
readonly input: import("zod").ZodObject<{
|
|
218
206
|
buildId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
219
207
|
fileName: import("zod").ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/build/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAShD,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,eAAe,CAAC;AAEvB,eAAO,MAAM,kBAAkB,GAC7B,aAAa,SAAS,cAAc,EACpC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,SAAS,EAAE,WAAW,CAAC;CACxB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/build/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAShD,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,eAAe,CAAC;AAEvB,eAAO,MAAM,kBAAkB,GAC7B,aAAa,SAAS,cAAc,EACpC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOC,CAAC"}
|
package/dist/v1/build/list.d.ts
CHANGED
|
@@ -37,10 +37,7 @@ export declare const makeListBuildsContract: <EnvironmentId extends PublicIdSche
|
|
|
37
37
|
environmentId: z.ZodOptional<EnvironmentId>;
|
|
38
38
|
fileName: z.ZodString;
|
|
39
39
|
id: z.ZodString;
|
|
40
|
-
platform: z.
|
|
41
|
-
android: "android";
|
|
42
|
-
ios: "ios";
|
|
43
|
-
}>;
|
|
40
|
+
platform: z.ZodString;
|
|
44
41
|
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
45
42
|
version: z.ZodOptional<z.ZodString>;
|
|
46
43
|
url: z.ZodURL;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/v1/build/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAKhD,eAAO,MAAM,sBAAsB,GACjC,aAAa,SAAS,cAAc,EACpC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,SAAS,EAAE,WAAW,CAAC;CACxB
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/v1/build/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAKhD,eAAO,MAAM,sBAAsB,GACjC,aAAa,SAAS,cAAc,EACpC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2DA,CAAC"}
|
|
@@ -13,7 +13,7 @@ export declare const makeRequestBuildUploadContract: <WorkspaceId extends Public
|
|
|
13
13
|
readonly openWorldHint: false;
|
|
14
14
|
readonly readOnlyHint: false;
|
|
15
15
|
};
|
|
16
|
-
readonly description: "Get a URL to upload an app build: an .apk, .aab or .
|
|
16
|
+
readonly description: "Get a URL to upload an app build: an .apk, .aab, .ipa, or a Linux Electron app as a .deb or .rpm, up to 1 GB by default. PUT the file there with uploadHeaders, then call build.create with the buildId.";
|
|
17
17
|
readonly input: z.ZodObject<{
|
|
18
18
|
buildId: z.ZodOptional<z.ZodString>;
|
|
19
19
|
fileName: z.ZodString;
|
|
@@ -8,8 +8,8 @@ export const makeRequestBuildUploadContract = (ids) => {
|
|
|
8
8
|
fileName: z
|
|
9
9
|
.string()
|
|
10
10
|
.regex(/^[A-Za-z0-9._-]{1,255}$/, "A file name is one path segment of letters, digits, dots, dashes and underscores, at most 255 characters.")
|
|
11
|
-
.refine((fileName) => /\.(apk|aab|ipa)$/i.test(fileName), "A build is an .apk, .aab or .
|
|
12
|
-
.describe("The file's name, such as `app-release.apk`, `app-release.aab` or `
|
|
11
|
+
.refine((fileName) => /\.(apk|aab|ipa|deb|rpm)$/i.test(fileName), "A build is an .apk, .aab, .ipa, .deb or .rpm file.")
|
|
12
|
+
.describe("The file's name, such as `app-release.apk`, `app-release.aab`, `App.ipa` or `my-app_1.0.0_amd64.deb`. Its extension sets the platform."),
|
|
13
13
|
fileSizeBytes: z
|
|
14
14
|
.number()
|
|
15
15
|
.int()
|
|
@@ -42,7 +42,7 @@ export const makeRequestBuildUploadContract = (ids) => {
|
|
|
42
42
|
openWorldHint: false,
|
|
43
43
|
readOnlyHint: false,
|
|
44
44
|
},
|
|
45
|
-
description: "Get a URL to upload an app build: an .apk, .aab or .
|
|
45
|
+
description: "Get a URL to upload an app build: an .apk, .aab, .ipa, or a Linux Electron app as a .deb or .rpm, up to 1 GB by default. PUT the file there with uploadHeaders, then call build.create with the buildId.",
|
|
46
46
|
input,
|
|
47
47
|
kind: "write",
|
|
48
48
|
name: "build.requestUpload",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requestUpload.js","sourceRoot":"","sources":["../../../src/v1/build/requestUpload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAE5C,GAED,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,CA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6D,CAAC;QAC1E,aAAa,EAAE,CAAC;aACb,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;aAC9B,QAAQ,CACP,uEAAuE,CACxE;QACH,SAAS,EAAE,CAAC;aACT,MAAM,EAAE;aACR,QAAQ,CACP,uRAAuR,CACxR;KACJ,CAAC,CAAC;IAEH,OAAO;QACL,wBAAwB,EAAE;YACxB,eAAe,EACb,qEAAqE;YACvE,aAAa,EACX,6EAA6E;YAC/E,YAAY,EACV,mFAAmF;SACtF;QACD,WAAW,EAAE;YACX,eAAe,EAAE,KAAK;YACtB,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,KAAK;SACpB;QACD,WAAW,EACT,0MAA0M;QAC5M,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,qBAAqB;QAC3B,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import type { PublicIdSchema } from "../ids.js";
|
|
3
|
-
export declare const buildPlatformSchema: z.
|
|
4
|
-
android: "android";
|
|
5
|
-
ios: "ios";
|
|
6
|
-
}>;
|
|
3
|
+
export declare const buildPlatformSchema: z.ZodString;
|
|
7
4
|
/** What a client sends as a build id: the id `build.requestUpload` answered with. */
|
|
8
5
|
export declare const buildIdSchema: z.ZodString;
|
|
9
6
|
export declare const makeBuildResourceSchema: <EnvironmentId extends PublicIdSchema>(ids: {
|
|
@@ -19,10 +16,7 @@ export declare const makeBuildResourceSchema: <EnvironmentId extends PublicIdSch
|
|
|
19
16
|
environmentId: z.ZodOptional<EnvironmentId>;
|
|
20
17
|
fileName: z.ZodString;
|
|
21
18
|
id: z.ZodString;
|
|
22
|
-
platform: z.
|
|
23
|
-
android: "android";
|
|
24
|
-
ios: "ios";
|
|
25
|
-
}>;
|
|
19
|
+
platform: z.ZodString;
|
|
26
20
|
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
27
21
|
version: z.ZodOptional<z.ZodString>;
|
|
28
22
|
url: z.ZodURL;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["../../../src/v1/build/resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["../../../src/v1/build/resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAGhD,eAAO,MAAM,mBAAmB,aAG/B,CAAC;AAEF,qFAAqF;AACrF,eAAO,MAAM,aAAa,aAGmC,CAAC;AAE9D,eAAO,MAAM,uBAAuB,GAClC,aAAa,SAAS,cAAc,EACpC,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;CAC5B;;;;;;;;;;;;;;;iBAoDE,CAAC;AAEJ,wFAAwF;AACxF,eAAO,MAAM,kCAAkC,GAC7C,aAAa,SAAS,cAAc,EACpC,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;CAC5B;;;;;;oBAsCE,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { extensibleValue } from "../extensibleValue.js";
|
|
2
3
|
import { resource } from "../resource.js";
|
|
3
|
-
export const buildPlatformSchema =
|
|
4
|
-
.enum(["android", "ios"])
|
|
5
|
-
.describe("The platform the build runs on, read from its file type.");
|
|
4
|
+
export const buildPlatformSchema = extensibleValue(["android", "ios", "linux"], "The OS the build runs on, read from its file type. `linux` builds are Electron apps that Electron flows launch.");
|
|
6
5
|
/** What a client sends as a build id: the id `build.requestUpload` answered with. */
|
|
7
6
|
export const buildIdSchema = z
|
|
8
7
|
.string()
|
|
@@ -11,7 +10,7 @@ export const buildIdSchema = z
|
|
|
11
10
|
export const makeBuildResourceSchema = (ids) => resource({
|
|
12
11
|
appId: z
|
|
13
12
|
.string()
|
|
14
|
-
.describe("The package name (Android) or bundle ID (iOS) read from the file. A flow launches it with `launch({ app: { id } })`."),
|
|
13
|
+
.describe("The package name (Android, Linux) or bundle ID (iOS) read from the file. A flow launches it with `launch({ app: { id } })`."),
|
|
15
14
|
appName: z
|
|
16
15
|
.string()
|
|
17
16
|
.optional()
|
|
@@ -23,7 +22,7 @@ export const makeBuildResourceSchema = (ids) => resource({
|
|
|
23
22
|
buildNumber: z
|
|
24
23
|
.string()
|
|
25
24
|
.optional()
|
|
26
|
-
.describe("versionCode (Android)
|
|
25
|
+
.describe("versionCode (Android), CFBundleVersion (iOS) or RPM release (Linux), when the file has one."),
|
|
27
26
|
commitSha: z
|
|
28
27
|
.string()
|
|
29
28
|
.optional()
|
|
@@ -47,7 +46,7 @@ export const makeBuildResourceSchema = (ids) => resource({
|
|
|
47
46
|
version: z
|
|
48
47
|
.string()
|
|
49
48
|
.optional()
|
|
50
|
-
.describe("versionName (Android)
|
|
49
|
+
.describe("versionName (Android), CFBundleShortVersionString (iOS) or package version (Linux), when the file has one."),
|
|
51
50
|
}, { urlFieldDescription: "Absolute URL of the team's Builds page." });
|
|
52
51
|
/** Picks the environment a build goes on, the same way deployment.reportStatus does. */
|
|
53
52
|
export const makeBuildEnvironmentSelectorSchema = (ids) => z.union([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource.js","sourceRoot":"","sources":["../../../src/v1/build/resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"resource.js","sourceRoot":"","sources":["../../../src/v1/build/resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;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AC;SACT,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,EAAE;SACV,QAAQ,CAAC,2BAA2B,CAAC;IACxC,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,4GAA4G,CAC7G;CACJ,EACD,EAAE,mBAAmB,EAAE,yCAAyC,EAAE,CACnE,CAAC;AAEJ,wFAAwF;AACxF,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAEhD,GAED,EAAE,EAAE,CACH,CAAC,CAAC,KAAK,CACL;IACE,CAAC,CAAC,YAAY,CAAC;QACb,EAAE,EAAE,GAAG,CAAC,WAAW,CAAC,QAAQ,CAC1B,sGAAsG,CACvG;KACF,CAAC;IACF,CAAC,CAAC,YAAY,CAAC;QACb,wBAAwB,EAAE,CAAC;aACxB,MAAM,EAAE;aACR,IAAI,EAAE;aACN,GAAG,CAAC,CAAC,CAAC;aACN,GAAG,CAAC,GAAG,CAAC;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,8GAA8G,CAC/G;QACH,SAAS,EAAE,CAAC;aACT,OAAO,EAAE;aACT,QAAQ,EAAE;aACV,QAAQ,CACP,mKAAmK,CACpK;QACH,IAAI,EAAE,CAAC;aACJ,MAAM,EAAE;aACR,IAAI,EAAE;aACN,GAAG,CAAC,CAAC,CAAC;aACN,GAAG,CAAC,GAAG,CAAC;aACR,QAAQ,CACP,2IAA2I,CAC5I;KACJ,CAAC;CACH,EACD;IACE,KAAK,EACH,sGAAsG;CACzG,CACF,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { PublicIdSchema } from "../ids.js";
|
|
3
|
+
export declare const makeFindCodeHostIntegrationForRepositoryContract: <WorkspaceId extends PublicIdSchema>(ids: {
|
|
4
|
+
workspace: WorkspaceId;
|
|
5
|
+
}) => {
|
|
6
|
+
readonly annotationJustifications: {
|
|
7
|
+
readonly destructiveHint: "Does not connect, disconnect or change code host integrations.";
|
|
8
|
+
readonly openWorldHint: "Answers from QA Wolf integration records without contacting the URL, GitHub or GitLab.";
|
|
9
|
+
readonly readOnlyHint: "Looks the repository up in the workspace's integrations and stores nothing.";
|
|
10
|
+
};
|
|
11
|
+
readonly annotations: {
|
|
12
|
+
readonly destructiveHint: false;
|
|
13
|
+
readonly openWorldHint: false;
|
|
14
|
+
readonly readOnlyHint: true;
|
|
15
|
+
};
|
|
16
|
+
readonly description: "Check whether QA Wolf can read a repository through the workspace's code host integrations, and what it can access: the repository's code and its pull requests. A CI job calls this before reporting a deployment to decide which changes to include. Not covered means QA Wolf only knows the changes the report includes; settingsUrl is where a workspace admin connects the code host.";
|
|
17
|
+
readonly input: z.ZodObject<{
|
|
18
|
+
url: z.ZodString;
|
|
19
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
readonly kind: "read";
|
|
22
|
+
readonly name: "codeHostIntegration.findForRepository";
|
|
23
|
+
readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
24
|
+
coverage: z.ZodLiteral<"covered">;
|
|
25
|
+
fullName: z.ZodString;
|
|
26
|
+
permissions: z.ZodObject<{
|
|
27
|
+
code: z.ZodEnum<{
|
|
28
|
+
read: "read";
|
|
29
|
+
write: "write";
|
|
30
|
+
"no-access": "no-access";
|
|
31
|
+
}>;
|
|
32
|
+
pullRequests: z.ZodEnum<{
|
|
33
|
+
read: "read";
|
|
34
|
+
write: "write";
|
|
35
|
+
}>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
provider: z.ZodEnum<{
|
|
38
|
+
github: "github";
|
|
39
|
+
gitlab: "gitlab";
|
|
40
|
+
}>;
|
|
41
|
+
settingsUrl: z.ZodURL;
|
|
42
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
+
coverage: z.ZodLiteral<"not-covered">;
|
|
44
|
+
settingsUrl: z.ZodURL;
|
|
45
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
46
|
+
coverage: z.ZodLiteral<"unsupported-host">;
|
|
47
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
48
|
+
coverage: z.ZodLiteral<"unrecognized-url">;
|
|
49
|
+
}, z.core.$strip>], "coverage">;
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=findForRepository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"findForRepository.d.ts","sourceRoot":"","sources":["../../../src/v1/codeHostIntegration/findForRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAqBhD,eAAO,MAAM,gDAAgD,GAC3D,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkGA,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
// git's scp-like form, `user@host:path`. A colon followed by `//` belongs to a
|
|
3
|
+
// URL scheme instead.
|
|
4
|
+
const scpLikeUser = /^([^@/]+)@[^@/:]+:(?!\/\/)/;
|
|
5
|
+
/** Whether a repository URL carries a user other than git's own `git`, or a password. */
|
|
6
|
+
function carriesCredentials(url) {
|
|
7
|
+
const trimmed = url.trim();
|
|
8
|
+
if (URL.canParse(trimmed)) {
|
|
9
|
+
const { password, username } = new URL(trimmed);
|
|
10
|
+
return password !== "" || (username !== "" && username !== "git");
|
|
11
|
+
}
|
|
12
|
+
const user = scpLikeUser.exec(trimmed)?.[1];
|
|
13
|
+
return user !== undefined && user !== "git";
|
|
14
|
+
}
|
|
15
|
+
const settingsUrl = z
|
|
16
|
+
.url()
|
|
17
|
+
.describe("Absolute URL of the workspace's integrations settings page.");
|
|
18
|
+
export const makeFindCodeHostIntegrationForRepositoryContract = (ids) => {
|
|
19
|
+
const input = z.object({
|
|
20
|
+
url: z
|
|
21
|
+
.string()
|
|
22
|
+
.min(1)
|
|
23
|
+
.max(2048)
|
|
24
|
+
.refine((url) => !carriesCredentials(url), {
|
|
25
|
+
message: "The URL carries credentials, and it is sent in the request address. Remove the credentials, such as a token before the host, and send the URL again.",
|
|
26
|
+
})
|
|
27
|
+
.describe('The repository\'s URL, as a CI job or a git remote names it: "https://github.com/acme/storefront", "ssh://git@github.com/acme/storefront.git" or "git@gitlab.com:acme/web/storefront.git". The URL is sent in the request address, so it must carry no credentials: QA Wolf refuses one with a user other than "git" or a password. QA Wolf does not fetch or store the URL.'),
|
|
28
|
+
workspaceId: ids.workspace
|
|
29
|
+
.optional()
|
|
30
|
+
.describe("The workspace to check. Required when authenticating with an organization or user API key."),
|
|
31
|
+
});
|
|
32
|
+
const output = z.discriminatedUnion("coverage", [
|
|
33
|
+
z.object({
|
|
34
|
+
coverage: z
|
|
35
|
+
.literal("covered")
|
|
36
|
+
.describe("A code host integration of the workspace covers the repository."),
|
|
37
|
+
fullName: z
|
|
38
|
+
.string()
|
|
39
|
+
.describe('The repository\'s full name as QA Wolf knows it, such as "acme/storefront". Report deployments of this repository with this exact name.'),
|
|
40
|
+
permissions: z
|
|
41
|
+
.object({
|
|
42
|
+
code: z
|
|
43
|
+
.enum(["no-access", "read", "write"])
|
|
44
|
+
.describe('Access to the repository\'s code and commits. The QA Wolf Code GitHub app has "write" once QA Wolf turns on code access for the workspace, and "no-access" until then. With "no-access", QA Wolf only knows about changes pushed straight to a branch when a deployment report includes them.'),
|
|
45
|
+
pullRequests: z
|
|
46
|
+
.enum(["read", "write"])
|
|
47
|
+
.describe("Access to the repository's pull requests."),
|
|
48
|
+
})
|
|
49
|
+
.describe("What the covering integration lets QA Wolf do in the repository."),
|
|
50
|
+
provider: z
|
|
51
|
+
.enum(["github", "gitlab"])
|
|
52
|
+
.describe("The code host the covering integration connects."),
|
|
53
|
+
settingsUrl,
|
|
54
|
+
}),
|
|
55
|
+
z.object({
|
|
56
|
+
coverage: z
|
|
57
|
+
.literal("not-covered")
|
|
58
|
+
.describe("No code host integration of the workspace covers the repository, or the integration is suspended. QA Wolf only knows the changes a deployment report includes."),
|
|
59
|
+
settingsUrl,
|
|
60
|
+
}),
|
|
61
|
+
z.object({
|
|
62
|
+
coverage: z
|
|
63
|
+
.literal("unsupported-host")
|
|
64
|
+
.describe("The URL names a code host QA Wolf does not connect to. QA Wolf connects to github.com and gitlab.com."),
|
|
65
|
+
}),
|
|
66
|
+
z.object({
|
|
67
|
+
coverage: z
|
|
68
|
+
.literal("unrecognized-url")
|
|
69
|
+
.describe("The URL is not a repository URL QA Wolf recognizes."),
|
|
70
|
+
}),
|
|
71
|
+
]);
|
|
72
|
+
return {
|
|
73
|
+
annotationJustifications: {
|
|
74
|
+
destructiveHint: "Does not connect, disconnect or change code host integrations.",
|
|
75
|
+
openWorldHint: "Answers from QA Wolf integration records without contacting the URL, GitHub or GitLab.",
|
|
76
|
+
readOnlyHint: "Looks the repository up in the workspace's integrations and stores nothing.",
|
|
77
|
+
},
|
|
78
|
+
annotations: {
|
|
79
|
+
destructiveHint: false,
|
|
80
|
+
openWorldHint: false,
|
|
81
|
+
readOnlyHint: true,
|
|
82
|
+
},
|
|
83
|
+
description: "Check whether QA Wolf can read a repository through the workspace's code host integrations, and what it can access: the repository's code and its pull requests. A CI job calls this before reporting a deployment to decide which changes to include. Not covered means QA Wolf only knows the changes the report includes; settingsUrl is where a workspace admin connects the code host.",
|
|
84
|
+
input,
|
|
85
|
+
kind: "read",
|
|
86
|
+
name: "codeHostIntegration.findForRepository",
|
|
87
|
+
output,
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
//# sourceMappingURL=findForRepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"findForRepository.js","sourceRoot":"","sources":["../../../src/v1/codeHostIntegration/findForRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM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AK;YACtB,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,IAAI;SACnB;QACD,WAAW,EACT,6XAA6X;QAC/X,KAAK;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,uCAAuC;QAC7C,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,4 +1,120 @@
|
|
|
1
|
+
import type { PublicIdSchema } from "../ids.js";
|
|
1
2
|
export { makeFindCodeHostIntegrationsContract } from "./find.js";
|
|
2
3
|
export { makeListCodeHostRepositoriesContract } from "./listRepositories.js";
|
|
3
4
|
export { makeCodeHostIntegrationResourceSchema, makeCodeHostRepositoryResourceSchema, } from "./resource.js";
|
|
5
|
+
export declare const makeCodeHostIntegrationContracts: <WorkspaceId extends PublicIdSchema>(ids: {
|
|
6
|
+
workspace: WorkspaceId;
|
|
7
|
+
}) => {
|
|
8
|
+
find: {
|
|
9
|
+
readonly annotationJustifications: {
|
|
10
|
+
readonly destructiveHint: "Does not disconnect integrations or change repository access.";
|
|
11
|
+
readonly openWorldHint: "Reads QA Wolf integration records without contacting or changing GitHub or GitLab.";
|
|
12
|
+
readonly readOnlyHint: "Lists the workspace's stored code host integrations and settings link without modifying them.";
|
|
13
|
+
};
|
|
14
|
+
readonly annotations: {
|
|
15
|
+
readonly destructiveHint: false;
|
|
16
|
+
readonly openWorldHint: false;
|
|
17
|
+
readonly readOnlyHint: true;
|
|
18
|
+
};
|
|
19
|
+
readonly description: "List the workspace's code host integrations (GitHub or GitLab). A connected integration lets QA Wolf read repositories and receive the code host's webhooks. codeHostIntegration.listRepositories pages the repositories each integration covers.";
|
|
20
|
+
readonly input: import("zod").ZodObject<{
|
|
21
|
+
workspaceId: import("zod").ZodOptional<WorkspaceId>;
|
|
22
|
+
}, import("zod/v4/core").$strip>;
|
|
23
|
+
readonly kind: "read";
|
|
24
|
+
readonly name: "codeHostIntegration.find";
|
|
25
|
+
readonly output: import("zod").ZodObject<{
|
|
26
|
+
integrations: import("zod").ZodArray<import("zod").ZodObject<{
|
|
27
|
+
connectedAt: import("zod").ZodISODateTime;
|
|
28
|
+
provider: import("zod").ZodEnum<{
|
|
29
|
+
github: "github";
|
|
30
|
+
gitlab: "gitlab";
|
|
31
|
+
}>;
|
|
32
|
+
suspendedAt: import("zod").ZodOptional<import("zod").ZodISODateTime>;
|
|
33
|
+
url: import("zod").ZodURL;
|
|
34
|
+
}, import("zod/v4/core").$strip>>;
|
|
35
|
+
settingsUrl: import("zod").ZodURL;
|
|
36
|
+
}, import("zod/v4/core").$strip>;
|
|
37
|
+
};
|
|
38
|
+
findForRepository: {
|
|
39
|
+
readonly annotationJustifications: {
|
|
40
|
+
readonly destructiveHint: "Does not connect, disconnect or change code host integrations.";
|
|
41
|
+
readonly openWorldHint: "Answers from QA Wolf integration records without contacting the URL, GitHub or GitLab.";
|
|
42
|
+
readonly readOnlyHint: "Looks the repository up in the workspace's integrations and stores nothing.";
|
|
43
|
+
};
|
|
44
|
+
readonly annotations: {
|
|
45
|
+
readonly destructiveHint: false;
|
|
46
|
+
readonly openWorldHint: false;
|
|
47
|
+
readonly readOnlyHint: true;
|
|
48
|
+
};
|
|
49
|
+
readonly description: "Check whether QA Wolf can read a repository through the workspace's code host integrations, and what it can access: the repository's code and its pull requests. A CI job calls this before reporting a deployment to decide which changes to include. Not covered means QA Wolf only knows the changes the report includes; settingsUrl is where a workspace admin connects the code host.";
|
|
50
|
+
readonly input: import("zod").ZodObject<{
|
|
51
|
+
url: import("zod").ZodString;
|
|
52
|
+
workspaceId: import("zod").ZodOptional<WorkspaceId>;
|
|
53
|
+
}, import("zod/v4/core").$strip>;
|
|
54
|
+
readonly kind: "read";
|
|
55
|
+
readonly name: "codeHostIntegration.findForRepository";
|
|
56
|
+
readonly output: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
57
|
+
coverage: import("zod").ZodLiteral<"covered">;
|
|
58
|
+
fullName: import("zod").ZodString;
|
|
59
|
+
permissions: import("zod").ZodObject<{
|
|
60
|
+
code: import("zod").ZodEnum<{
|
|
61
|
+
read: "read";
|
|
62
|
+
write: "write";
|
|
63
|
+
"no-access": "no-access";
|
|
64
|
+
}>;
|
|
65
|
+
pullRequests: import("zod").ZodEnum<{
|
|
66
|
+
read: "read";
|
|
67
|
+
write: "write";
|
|
68
|
+
}>;
|
|
69
|
+
}, import("zod/v4/core").$strip>;
|
|
70
|
+
provider: import("zod").ZodEnum<{
|
|
71
|
+
github: "github";
|
|
72
|
+
gitlab: "gitlab";
|
|
73
|
+
}>;
|
|
74
|
+
settingsUrl: import("zod").ZodURL;
|
|
75
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
76
|
+
coverage: import("zod").ZodLiteral<"not-covered">;
|
|
77
|
+
settingsUrl: import("zod").ZodURL;
|
|
78
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
79
|
+
coverage: import("zod").ZodLiteral<"unsupported-host">;
|
|
80
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
81
|
+
coverage: import("zod").ZodLiteral<"unrecognized-url">;
|
|
82
|
+
}, import("zod/v4/core").$strip>], "coverage">;
|
|
83
|
+
};
|
|
84
|
+
listRepositories: {
|
|
85
|
+
readonly annotationJustifications: {
|
|
86
|
+
readonly destructiveHint: "Does not edit repositories, integration settings, or access permissions.";
|
|
87
|
+
readonly openWorldHint: "Reads repositories already recorded for the workspace's integrations, without accessing arbitrary external repositories.";
|
|
88
|
+
readonly readOnlyHint: "Lists repository metadata from the workspace's last code host sync without triggering a new sync.";
|
|
89
|
+
};
|
|
90
|
+
readonly annotations: {
|
|
91
|
+
readonly destructiveHint: false;
|
|
92
|
+
readonly openWorldHint: false;
|
|
93
|
+
readonly readOnlyHint: true;
|
|
94
|
+
};
|
|
95
|
+
readonly description: "List the repositories the workspace's code host integrations cover, alphabetical by full name. The list reflects the last sync from the code host; codeHostIntegration.find lists the integrations themselves.";
|
|
96
|
+
readonly input: import("zod").ZodObject<{
|
|
97
|
+
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
98
|
+
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
99
|
+
provider: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
100
|
+
github: "github";
|
|
101
|
+
gitlab: "gitlab";
|
|
102
|
+
}>>;
|
|
103
|
+
workspaceId: import("zod").ZodOptional<WorkspaceId>;
|
|
104
|
+
}, import("zod/v4/core").$strip>;
|
|
105
|
+
readonly kind: "read";
|
|
106
|
+
readonly name: "codeHostIntegration.listRepositories";
|
|
107
|
+
readonly output: import("zod").ZodObject<{
|
|
108
|
+
nextCursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
109
|
+
repositories: import("zod").ZodArray<import("zod").ZodObject<{
|
|
110
|
+
fullName: import("zod").ZodString;
|
|
111
|
+
provider: import("zod").ZodEnum<{
|
|
112
|
+
github: "github";
|
|
113
|
+
gitlab: "gitlab";
|
|
114
|
+
}>;
|
|
115
|
+
url: import("zod").ZodURL;
|
|
116
|
+
}, import("zod/v4/core").$strip>>;
|
|
117
|
+
}, import("zod/v4/core").$strip>;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
4
120
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/codeHostIntegration/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,EAAE,oCAAoC,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EACL,qCAAqC,EACrC,oCAAoC,GACrC,MAAM,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/codeHostIntegration/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAMhD,OAAO,EAAE,oCAAoC,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,EAAE,oCAAoC,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EACL,qCAAqC,EACrC,oCAAoC,GACrC,MAAM,eAAe,CAAC;AAEvB,eAAO,MAAM,gCAAgC,GAC3C,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIC,CAAC"}
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
+
import { makeFindCodeHostIntegrationsContract } from "./find.js";
|
|
2
|
+
import { makeFindCodeHostIntegrationForRepositoryContract } from "./findForRepository.js";
|
|
3
|
+
import { makeListCodeHostRepositoriesContract } from "./listRepositories.js";
|
|
1
4
|
export { makeFindCodeHostIntegrationsContract } from "./find.js";
|
|
2
5
|
export { makeListCodeHostRepositoriesContract } from "./listRepositories.js";
|
|
3
6
|
export { makeCodeHostIntegrationResourceSchema, makeCodeHostRepositoryResourceSchema, } from "./resource.js";
|
|
7
|
+
export const makeCodeHostIntegrationContracts = (ids) => ({
|
|
8
|
+
find: makeFindCodeHostIntegrationsContract(ids),
|
|
9
|
+
findForRepository: makeFindCodeHostIntegrationForRepositoryContract(ids),
|
|
10
|
+
listRepositories: makeListCodeHostRepositoriesContract(ids),
|
|
11
|
+
});
|
|
4
12
|
//# sourceMappingURL=index.js.map
|