@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
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const maxUsageBreakdownDays = 366;
|
|
3
|
+
const usageGroupings = [
|
|
4
|
+
"day",
|
|
5
|
+
"week",
|
|
6
|
+
"month",
|
|
7
|
+
"workspace",
|
|
8
|
+
"environment",
|
|
9
|
+
"platform",
|
|
10
|
+
"source",
|
|
11
|
+
"trigger",
|
|
12
|
+
"user",
|
|
13
|
+
];
|
|
14
|
+
const usageDay = z
|
|
15
|
+
.string()
|
|
16
|
+
.regex(/^\d{4}-\d{2}-\d{2}$/)
|
|
17
|
+
.describe("A UTC day as YYYY-MM-DD.");
|
|
18
|
+
const totals = z.object({
|
|
19
|
+
flowRuns: z
|
|
20
|
+
.number()
|
|
21
|
+
.describe("Flow runs that used credits. A flow run counts once for each source that used its credits (its trigger, and each person who reran it), on the day of that source's first charge."),
|
|
22
|
+
runCredits: z.number().describe("Credits that flow runs used."),
|
|
23
|
+
sessionCredits: z
|
|
24
|
+
.number()
|
|
25
|
+
.describe("Credits of runners open outside a run. In a row, the exact share of the session time, so it can be a fraction."),
|
|
26
|
+
sessionSeconds: z.number().describe("Seconds of runners open outside a run."),
|
|
27
|
+
});
|
|
28
|
+
const group = z
|
|
29
|
+
.object({
|
|
30
|
+
day: z.string().optional(),
|
|
31
|
+
environment: z.string().optional(),
|
|
32
|
+
month: z.string().optional(),
|
|
33
|
+
platform: z.string().optional(),
|
|
34
|
+
source: z.string().optional(),
|
|
35
|
+
trigger: z.string().optional(),
|
|
36
|
+
user: z.string().optional(),
|
|
37
|
+
week: z.string().optional(),
|
|
38
|
+
workspace: z.string().optional(),
|
|
39
|
+
})
|
|
40
|
+
.describe("The value of each groupBy grouping for this row. day and week are YYYY-MM-DD (a week starts on Monday), month is YYYY-MM, platform is web, ios, android, windows or mac, and source is person, trigger, api, unknown or session-time. workspace, environment, trigger and user hold ids, named in labels. A grouping is absent when the usage has no value for it, for example the environment of a runner opened through the API, or the trigger of session time.");
|
|
41
|
+
const labels = z
|
|
42
|
+
.record(z.string(), z.string())
|
|
43
|
+
.describe("Names by id. An id with no name was deleted, or belongs to a workspace you cannot see.");
|
|
44
|
+
export const makeUsageBreakdownContract = (ids) => {
|
|
45
|
+
const input = z.object({
|
|
46
|
+
from: usageDay.describe("The first UTC day of the range, YYYY-MM-DD."),
|
|
47
|
+
groupBy: z
|
|
48
|
+
.array(z.enum(usageGroupings))
|
|
49
|
+
.max(2)
|
|
50
|
+
.default([])
|
|
51
|
+
.describe("Up to two groupings, for example [day, environment]. Empty gives one row with all usage."),
|
|
52
|
+
limit: z
|
|
53
|
+
.number()
|
|
54
|
+
.int()
|
|
55
|
+
.min(1)
|
|
56
|
+
.max(1000)
|
|
57
|
+
.default(100)
|
|
58
|
+
.describe("The most rows to return, most credits first. The rest are added up in others."),
|
|
59
|
+
scope: z
|
|
60
|
+
.enum(["workspace", "organization"])
|
|
61
|
+
.default("workspace")
|
|
62
|
+
.describe("workspace reads one workspace. organization reads every workspace of its organization whose usage you can see. It needs an organization API key or a billing manager; with a user credential, send workspaceId to name the organization. An organization API key is not a billing manager: it sees only the workspaces whose Usage page is open to customers."),
|
|
63
|
+
to: usageDay.describe(`The last UTC day of the range, YYYY-MM-DD. The range holds at most ${maxUsageBreakdownDays} days, including both ends.`),
|
|
64
|
+
workspaceId: ids.workspace
|
|
65
|
+
.optional()
|
|
66
|
+
.describe("The workspace to read, or whose organization to read. Required with a user API key, and with an organization API key for the workspace scope."),
|
|
67
|
+
});
|
|
68
|
+
const output = z.object({
|
|
69
|
+
labels: z.object({
|
|
70
|
+
environments: labels,
|
|
71
|
+
triggers: labels,
|
|
72
|
+
users: labels,
|
|
73
|
+
workspaces: labels,
|
|
74
|
+
}),
|
|
75
|
+
others: totals
|
|
76
|
+
.optional()
|
|
77
|
+
.describe("The rows after limit, added up. Absent when none was left out."),
|
|
78
|
+
rows: z.array(totals.extend({ group })).describe("Most credits first."),
|
|
79
|
+
totals: totals.describe("All usage of the range. sessionCredits here are whole credits, counted for each UTC month and platform, so the rows can add up to a little less."),
|
|
80
|
+
});
|
|
81
|
+
return {
|
|
82
|
+
annotationJustifications: {
|
|
83
|
+
destructiveHint: "Only reads usage.",
|
|
84
|
+
openWorldHint: "Reads QA Wolf usage records only.",
|
|
85
|
+
readOnlyHint: "Adds up recorded usage without changing anything.",
|
|
86
|
+
},
|
|
87
|
+
annotations: {
|
|
88
|
+
destructiveHint: false,
|
|
89
|
+
openWorldHint: false,
|
|
90
|
+
readOnlyHint: true,
|
|
91
|
+
},
|
|
92
|
+
description: "Show where credits went over a range of UTC days, grouped by time, workspace, environment, platform, source, trigger or user. Use it to find what uses the most credits, or to build a usage dashboard. Credits only, no dollar amounts.",
|
|
93
|
+
input,
|
|
94
|
+
kind: "read",
|
|
95
|
+
name: "usage.breakdown",
|
|
96
|
+
output,
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
//# sourceMappingURL=breakdown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breakdown.js","sourceRoot":"","sources":["../../../src/v1/usage/breakdown.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,CAAC;AAEzC,MAAM,cAAc,GAAG;IACrB,KAAK;IACL,MAAM;IACN,OAAO;IACP,WAAW;IACX,aAAa;IACb,UAAU;IACV,QAAQ;IACR,SAAS;IACT,MAAM;CACE,CAAC;AAEX,MAAM,QAAQ,GAAG,CAAC;KACf,MAAM,EAAE;KACR,KAAK,CAAC,qBAAqB,CAAC;KAC5B,QAAQ,CAAC,0BAA0B,CAAC,CAAC;AAExC,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,QAAQ,EAAE,CAAC;SACR,MAAM,EAAE;SACR,QAAQ,CACP,kLAAkL,CACnL;IACH,UAAU,EAAE,CA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AW,EAAE;YACX,eAAe,EAAE,KAAK;YACtB,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,IAAI;SACnB;QACD,WAAW,EACT,0OAA0O;QAC5O,KAAK;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,iBAAiB;QACvB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { PublicIdSchema } from "../ids.js";
|
|
2
|
+
export declare const makeUsageContracts: <WorkspaceId extends PublicIdSchema>(ids: {
|
|
3
|
+
workspace: WorkspaceId;
|
|
4
|
+
}) => {
|
|
5
|
+
breakdown: {
|
|
6
|
+
readonly annotationJustifications: {
|
|
7
|
+
readonly destructiveHint: "Only reads usage.";
|
|
8
|
+
readonly openWorldHint: "Reads QA Wolf usage records only.";
|
|
9
|
+
readonly readOnlyHint: "Adds up recorded usage without changing anything.";
|
|
10
|
+
};
|
|
11
|
+
readonly annotations: {
|
|
12
|
+
readonly destructiveHint: false;
|
|
13
|
+
readonly openWorldHint: false;
|
|
14
|
+
readonly readOnlyHint: true;
|
|
15
|
+
};
|
|
16
|
+
readonly description: "Show where credits went over a range of UTC days, grouped by time, workspace, environment, platform, source, trigger or user. Use it to find what uses the most credits, or to build a usage dashboard. Credits only, no dollar amounts.";
|
|
17
|
+
readonly input: import("zod").ZodObject<{
|
|
18
|
+
from: import("zod").ZodString;
|
|
19
|
+
groupBy: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
20
|
+
user: "user";
|
|
21
|
+
environment: "environment";
|
|
22
|
+
trigger: "trigger";
|
|
23
|
+
workspace: "workspace";
|
|
24
|
+
platform: "platform";
|
|
25
|
+
source: "source";
|
|
26
|
+
day: "day";
|
|
27
|
+
week: "week";
|
|
28
|
+
month: "month";
|
|
29
|
+
}>>>;
|
|
30
|
+
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
31
|
+
scope: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
32
|
+
organization: "organization";
|
|
33
|
+
workspace: "workspace";
|
|
34
|
+
}>>;
|
|
35
|
+
to: import("zod").ZodString;
|
|
36
|
+
workspaceId: import("zod").ZodOptional<WorkspaceId>;
|
|
37
|
+
}, import("zod/v4/core").$strip>;
|
|
38
|
+
readonly kind: "read";
|
|
39
|
+
readonly name: "usage.breakdown";
|
|
40
|
+
readonly output: import("zod").ZodObject<{
|
|
41
|
+
labels: import("zod").ZodObject<{
|
|
42
|
+
environments: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
|
43
|
+
triggers: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
|
44
|
+
users: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
|
45
|
+
workspaces: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
|
46
|
+
}, import("zod/v4/core").$strip>;
|
|
47
|
+
others: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
48
|
+
flowRuns: import("zod").ZodNumber;
|
|
49
|
+
runCredits: import("zod").ZodNumber;
|
|
50
|
+
sessionCredits: import("zod").ZodNumber;
|
|
51
|
+
sessionSeconds: import("zod").ZodNumber;
|
|
52
|
+
}, import("zod/v4/core").$strip>>;
|
|
53
|
+
rows: import("zod").ZodArray<import("zod").ZodObject<{
|
|
54
|
+
flowRuns: import("zod").ZodNumber;
|
|
55
|
+
runCredits: import("zod").ZodNumber;
|
|
56
|
+
sessionCredits: import("zod").ZodNumber;
|
|
57
|
+
sessionSeconds: import("zod").ZodNumber;
|
|
58
|
+
group: import("zod").ZodObject<{
|
|
59
|
+
day: import("zod").ZodOptional<import("zod").ZodString>;
|
|
60
|
+
environment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
61
|
+
month: import("zod").ZodOptional<import("zod").ZodString>;
|
|
62
|
+
platform: import("zod").ZodOptional<import("zod").ZodString>;
|
|
63
|
+
source: import("zod").ZodOptional<import("zod").ZodString>;
|
|
64
|
+
trigger: import("zod").ZodOptional<import("zod").ZodString>;
|
|
65
|
+
user: import("zod").ZodOptional<import("zod").ZodString>;
|
|
66
|
+
week: import("zod").ZodOptional<import("zod").ZodString>;
|
|
67
|
+
workspace: import("zod").ZodOptional<import("zod").ZodString>;
|
|
68
|
+
}, import("zod/v4/core").$strip>;
|
|
69
|
+
}, import("zod/v4/core").$strip>>;
|
|
70
|
+
totals: import("zod").ZodObject<{
|
|
71
|
+
flowRuns: import("zod").ZodNumber;
|
|
72
|
+
runCredits: import("zod").ZodNumber;
|
|
73
|
+
sessionCredits: import("zod").ZodNumber;
|
|
74
|
+
sessionSeconds: import("zod").ZodNumber;
|
|
75
|
+
}, import("zod/v4/core").$strip>;
|
|
76
|
+
}, import("zod/v4/core").$strip>;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/usage/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,eAAO,MAAM,kBAAkB,GAAI,WAAW,SAAS,cAAc,EAAE,KAAK;IAC1E,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/usage/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAE5D,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAqC,GAEtE,EAAE,EAAE,CAAC,CAAC;IACL,SAAS,EAAE,0BAA0B,CAAC,GAAG,CAAC;CAC3C,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qawolf/api-contracts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.140.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Versioned contracts for the QA Wolf public API",
|
|
6
|
+
"license": "MIT",
|
|
6
7
|
"repository": {
|
|
7
8
|
"type": "git",
|
|
8
9
|
"url": "git+https://github.com/qawolf/platform.git"
|
|
9
10
|
},
|
|
10
11
|
"files": [
|
|
11
|
-
"dist"
|
|
12
|
+
"dist",
|
|
13
|
+
"LICENSE"
|
|
12
14
|
],
|
|
13
15
|
"type": "module",
|
|
14
16
|
"sideEffects": false,
|
|
@@ -27,11 +29,11 @@
|
|
|
27
29
|
},
|
|
28
30
|
"scripts": {
|
|
29
31
|
"build": "rm -rf ./dist && tsc -p tsconfig.build.json",
|
|
30
|
-
"lint:ci": "
|
|
31
|
-
"lint:dev": "
|
|
32
|
+
"lint:ci": "pnpm run lint:first-half; FIRST_HALF_EXIT=$?; pnpm run lint:second-half && exit $FIRST_HALF_EXIT",
|
|
33
|
+
"lint:dev": "pnpm run lint:first-half",
|
|
32
34
|
"lint:first-half": "oxlint . --fix --quiet --report-unused-disable-directives --type-aware && oxfmt --write .",
|
|
33
35
|
"lint:second-half": "rev-dep config run",
|
|
34
|
-
"prepublishOnly": "
|
|
36
|
+
"prepublishOnly": "pnpm run build",
|
|
35
37
|
"test": "NODE_OPTIONS=\"--experimental-vm-modules\" NODE_NO_WARNINGS=1 jest",
|
|
36
38
|
"tsc:check": "tsgo --noEmit -p tsconfig.typecheck.json"
|
|
37
39
|
},
|
|
@@ -39,7 +41,6 @@
|
|
|
39
41
|
"tslib": "^2.5.3"
|
|
40
42
|
},
|
|
41
43
|
"devDependencies": {
|
|
42
|
-
"@typescript/native-preview": "^7.0.0-dev.20260416.1",
|
|
43
44
|
"typescript": "^5.9.3",
|
|
44
45
|
"zod": "^4.6.6"
|
|
45
46
|
},
|