@cat-factory/contracts 0.33.0 → 0.35.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/dist/api-keys.d.ts +17 -0
- package/dist/api-keys.d.ts.map +1 -1
- package/dist/api-keys.js +2 -0
- package/dist/api-keys.js.map +1 -1
- package/dist/entities.d.ts +135 -0
- package/dist/entities.d.ts.map +1 -1
- package/dist/entities.js +46 -0
- package/dist/entities.js.map +1 -1
- package/dist/github.d.ts +14 -0
- package/dist/github.d.ts.map +1 -1
- package/dist/github.js +13 -0
- package/dist/github.js.map +1 -1
- package/dist/human-review.d.ts +8 -0
- package/dist/human-review.d.ts.map +1 -0
- package/dist/human-review.js +12 -0
- package/dist/human-review.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/merge.d.ts +9 -0
- package/dist/merge.d.ts.map +1 -1
- package/dist/merge.js +10 -0
- package/dist/merge.js.map +1 -1
- package/dist/notifications.d.ts +2 -2
- package/dist/notifications.d.ts.map +1 -1
- package/dist/notifications.js +6 -0
- package/dist/notifications.js.map +1 -1
- package/dist/observability.d.ts +63 -0
- package/dist/observability.d.ts.map +1 -1
- package/dist/observability.js +57 -0
- package/dist/observability.js.map +1 -1
- package/dist/requests.d.ts +7 -0
- package/dist/requests.d.ts.map +1 -1
- package/dist/requests.js +2 -0
- package/dist/requests.js.map +1 -1
- package/dist/routes/_shared.d.ts +49 -0
- package/dist/routes/_shared.d.ts.map +1 -0
- package/dist/routes/_shared.js +34 -0
- package/dist/routes/_shared.js.map +1 -0
- package/dist/routes/accounts.d.ts +775 -0
- package/dist/routes/accounts.d.ts.map +1 -0
- package/dist/routes/accounts.js +145 -0
- package/dist/routes/accounts.js.map +1 -0
- package/dist/routes/agent-runs.d.ts +659 -0
- package/dist/routes/agent-runs.d.ts.map +1 -0
- package/dist/routes/agent-runs.js +33 -0
- package/dist/routes/agent-runs.js.map +1 -0
- package/dist/routes/api-keys.d.ts +245 -0
- package/dist/routes/api-keys.d.ts.map +1 -0
- package/dist/routes/api-keys.js +49 -0
- package/dist/routes/api-keys.js.map +1 -0
- package/dist/routes/auth.d.ts +411 -0
- package/dist/routes/auth.d.ts.map +1 -0
- package/dist/routes/auth.js +129 -0
- package/dist/routes/auth.js.map +1 -0
- package/dist/routes/board.d.ts +1260 -0
- package/dist/routes/board.d.ts.map +1 -0
- package/dist/routes/board.js +85 -0
- package/dist/routes/board.js.map +1 -0
- package/dist/routes/bootstrap.d.ts +395 -0
- package/dist/routes/bootstrap.d.ts.map +1 -0
- package/dist/routes/bootstrap.js +56 -0
- package/dist/routes/bootstrap.js.map +1 -0
- package/dist/routes/brainstorm.d.ts +482 -0
- package/dist/routes/brainstorm.d.ts.map +1 -0
- package/dist/routes/brainstorm.js +69 -0
- package/dist/routes/brainstorm.js.map +1 -0
- package/dist/routes/clarity.d.ts +462 -0
- package/dist/routes/clarity.d.ts.map +1 -0
- package/dist/routes/clarity.js +67 -0
- package/dist/routes/clarity.js.map +1 -0
- package/dist/routes/consensus.d.ts +71 -0
- package/dist/routes/consensus.d.ts.map +1 -0
- package/dist/routes/consensus.js +23 -0
- package/dist/routes/consensus.js.map +1 -0
- package/dist/routes/documents.d.ts +449 -0
- package/dist/routes/documents.d.ts.map +1 -0
- package/dist/routes/documents.js +89 -0
- package/dist/routes/documents.js.map +1 -0
- package/dist/routes/environments.d.ts +715 -0
- package/dist/routes/environments.d.ts.map +1 -0
- package/dist/routes/environments.js +82 -0
- package/dist/routes/environments.js.map +1 -0
- package/dist/routes/execution.d.ts +2768 -0
- package/dist/routes/execution.d.ts.map +1 -0
- package/dist/routes/execution.js +119 -0
- package/dist/routes/execution.js.map +1 -0
- package/dist/routes/followUp.d.ts +277 -0
- package/dist/routes/followUp.d.ts.map +1 -0
- package/dist/routes/followUp.js +47 -0
- package/dist/routes/followUp.js.map +1 -0
- package/dist/routes/fragment-library.d.ts +594 -0
- package/dist/routes/fragment-library.d.ts.map +1 -0
- package/dist/routes/fragment-library.js +102 -0
- package/dist/routes/fragment-library.js.map +1 -0
- package/dist/routes/github.d.ts +807 -0
- package/dist/routes/github.d.ts.map +1 -0
- package/dist/routes/github.js +157 -0
- package/dist/routes/github.js.map +1 -0
- package/dist/routes/human-review.d.ts +290 -0
- package/dist/routes/human-review.d.ts.map +1 -0
- package/dist/routes/human-review.js +20 -0
- package/dist/routes/human-review.js.map +1 -0
- package/dist/routes/human-test.d.ts +1435 -0
- package/dist/routes/human-test.d.ts.map +1 -0
- package/dist/routes/human-test.js +48 -0
- package/dist/routes/human-test.js.map +1 -0
- package/dist/routes/incident-enrichment.d.ts +110 -0
- package/dist/routes/incident-enrichment.d.ts.map +1 -0
- package/dist/routes/incident-enrichment.js +26 -0
- package/dist/routes/incident-enrichment.js.map +1 -0
- package/dist/routes/index.d.ts +47 -0
- package/dist/routes/index.d.ts.map +1 -0
- package/dist/routes/index.js +50 -0
- package/dist/routes/index.js.map +1 -0
- package/dist/routes/kaizen.d.ts +113 -0
- package/dist/routes/kaizen.d.ts.map +1 -0
- package/dist/routes/kaizen.js +22 -0
- package/dist/routes/kaizen.js.map +1 -0
- package/dist/routes/localModels.d.ts +163 -0
- package/dist/routes/localModels.d.ts.map +1 -0
- package/dist/routes/localModels.js +41 -0
- package/dist/routes/localModels.js.map +1 -0
- package/dist/routes/localSettings.d.ts +93 -0
- package/dist/routes/localSettings.d.ts.map +1 -0
- package/dist/routes/localSettings.js +22 -0
- package/dist/routes/localSettings.js.map +1 -0
- package/dist/routes/merge.d.ts +197 -0
- package/dist/routes/merge.d.ts.map +1 -0
- package/dist/routes/merge.js +36 -0
- package/dist/routes/merge.js.map +1 -0
- package/dist/routes/model-presets.d.ts +162 -0
- package/dist/routes/model-presets.d.ts.map +1 -0
- package/dist/routes/model-presets.js +36 -0
- package/dist/routes/model-presets.js.map +1 -0
- package/dist/routes/models.d.ts +123 -0
- package/dist/routes/models.d.ts.map +1 -0
- package/dist/routes/models.js +25 -0
- package/dist/routes/models.js.map +1 -0
- package/dist/routes/notifications.d.ts +213 -0
- package/dist/routes/notifications.d.ts.map +1 -0
- package/dist/routes/notifications.js +31 -0
- package/dist/routes/notifications.js.map +1 -0
- package/dist/routes/openrouter.d.ts +145 -0
- package/dist/routes/openrouter.d.ts.map +1 -0
- package/dist/routes/openrouter.js +32 -0
- package/dist/routes/openrouter.js.map +1 -0
- package/dist/routes/personal-subscriptions.d.ts +124 -0
- package/dist/routes/personal-subscriptions.d.ts.map +1 -0
- package/dist/routes/personal-subscriptions.js +32 -0
- package/dist/routes/personal-subscriptions.js.map +1 -0
- package/dist/routes/pipelines.d.ts +457 -0
- package/dist/routes/pipelines.d.ts.map +1 -0
- package/dist/routes/pipelines.js +51 -0
- package/dist/routes/pipelines.js.map +1 -0
- package/dist/routes/prompt-fragments.d.ts +52 -0
- package/dist/routes/prompt-fragments.d.ts.map +1 -0
- package/dist/routes/prompt-fragments.js +14 -0
- package/dist/routes/prompt-fragments.js.map +1 -0
- package/dist/routes/provisioning-logs.d.ts +45 -0
- package/dist/routes/provisioning-logs.d.ts.map +1 -0
- package/dist/routes/provisioning-logs.js +14 -0
- package/dist/routes/provisioning-logs.js.map +1 -0
- package/dist/routes/recurring.d.ts +309 -0
- package/dist/routes/recurring.d.ts.map +1 -0
- package/dist/routes/recurring.js +50 -0
- package/dist/routes/recurring.js.map +1 -0
- package/dist/routes/release.d.ts +218 -0
- package/dist/routes/release.d.ts.map +1 -0
- package/dist/routes/release.js +47 -0
- package/dist/routes/release.js.map +1 -0
- package/dist/routes/requirements.d.ts +901 -0
- package/dist/routes/requirements.d.ts.map +1 -0
- package/dist/routes/requirements.js +96 -0
- package/dist/routes/requirements.js.map +1 -0
- package/dist/routes/runners.d.ts +442 -0
- package/dist/routes/runners.d.ts.map +1 -0
- package/dist/routes/runners.js +47 -0
- package/dist/routes/runners.js.map +1 -0
- package/dist/routes/sandbox.d.ts +898 -0
- package/dist/routes/sandbox.d.ts.map +1 -0
- package/dist/routes/sandbox.js +119 -0
- package/dist/routes/sandbox.js.map +1 -0
- package/dist/routes/service-fragment-defaults.d.ts +66 -0
- package/dist/routes/service-fragment-defaults.d.ts.map +1 -0
- package/dist/routes/service-fragment-defaults.js +20 -0
- package/dist/routes/service-fragment-defaults.js.map +1 -0
- package/dist/routes/services.d.ts +224 -0
- package/dist/routes/services.d.ts.map +1 -0
- package/dist/routes/services.js +44 -0
- package/dist/routes/services.js.map +1 -0
- package/dist/routes/slack.d.ts +332 -0
- package/dist/routes/slack.d.ts.map +1 -0
- package/dist/routes/slack.js +72 -0
- package/dist/routes/slack.js.map +1 -0
- package/dist/routes/spec.d.ts +76 -0
- package/dist/routes/spec.d.ts.map +1 -0
- package/dist/routes/spec.js +17 -0
- package/dist/routes/spec.js.map +1 -0
- package/dist/routes/tasks.d.ts +723 -0
- package/dist/routes/tasks.d.ts.map +1 -0
- package/dist/routes/tasks.js +108 -0
- package/dist/routes/tasks.js.map +1 -0
- package/dist/routes/tracker.d.ts +77 -0
- package/dist/routes/tracker.d.ts.map +1 -0
- package/dist/routes/tracker.js +20 -0
- package/dist/routes/tracker.js.map +1 -0
- package/dist/routes/user-secret.d.ts +231 -0
- package/dist/routes/user-secret.d.ts.map +1 -0
- package/dist/routes/user-secret.js +49 -0
- package/dist/routes/user-secret.js.map +1 -0
- package/dist/routes/vendor-credentials.d.ts +120 -0
- package/dist/routes/vendor-credentials.d.ts.map +1 -0
- package/dist/routes/vendor-credentials.js +33 -0
- package/dist/routes/vendor-credentials.js.map +1 -0
- package/dist/routes/workspace-settings.d.ts +93 -0
- package/dist/routes/workspace-settings.d.ts.map +1 -0
- package/dist/routes/workspace-settings.js +20 -0
- package/dist/routes/workspace-settings.js.map +1 -0
- package/dist/routes/workspaces.d.ts +1309 -0
- package/dist/routes/workspaces.d.ts.map +1 -0
- package/dist/routes/workspaces.js +45 -0
- package/dist/routes/workspaces.js.map +1 -0
- package/dist/slack.d.ts +2 -2
- package/dist/snapshot.d.ts +11 -1
- package/dist/snapshot.d.ts.map +1 -1
- package/package.json +3 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"requirements.d.ts","sourceRoot":"","sources":["../../src/routes/requirements.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqC,MAAM,yBAAyB,CAAA;AAC3F,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAsB5B,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKvC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMrC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMvC,CAAA;AAEF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM9C,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM1C,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMvC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMtC,CAAA;AAEF,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMpD,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOlD,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOlD,CAAA;AAEF,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOrD,CAAA;AAEF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM9C,CAAA"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { ContractNoBody, defineApiContract, withObjectKeys } from '@toad-contracts/valibot';
|
|
2
|
+
import * as v from 'valibot';
|
|
3
|
+
import { incorporateRequirementsSchema, reRequestRecommendationSchema, replyReviewItemSchema, requestRecommendationsSchema, requirementReviewSchema, resolveRequirementsExceededSchema, updateReviewItemStatusSchema, } from '../requirements.js';
|
|
4
|
+
import { errorResponses } from './_shared.js';
|
|
5
|
+
// ---------------------------------------------------------------------------
|
|
6
|
+
// Requirements-review route contracts. Mounted under `/workspaces/:workspaceId`,
|
|
7
|
+
// so the paths here are relative to that prefix. See RequirementReviewController
|
|
8
|
+
// in @cat-factory/server.
|
|
9
|
+
// ---------------------------------------------------------------------------
|
|
10
|
+
const blockIdParams = withObjectKeys(v.object({ blockId: v.string() }));
|
|
11
|
+
const reviewItemParams = withObjectKeys(v.object({ reviewId: v.string(), itemId: v.string() }));
|
|
12
|
+
const reviewRecParams = withObjectKeys(v.object({ reviewId: v.string(), recId: v.string() }));
|
|
13
|
+
export const getRequirementReviewContract = defineApiContract({
|
|
14
|
+
method: 'get',
|
|
15
|
+
requestPathParamsSchema: blockIdParams,
|
|
16
|
+
pathResolver: ({ blockId }) => `/blocks/${blockId}/requirement-review`,
|
|
17
|
+
responsesByStatusCode: { 200: v.nullable(requirementReviewSchema), ...errorResponses },
|
|
18
|
+
});
|
|
19
|
+
export const reviewRequirementsContract = defineApiContract({
|
|
20
|
+
method: 'post',
|
|
21
|
+
requestPathParamsSchema: blockIdParams,
|
|
22
|
+
pathResolver: ({ blockId }) => `/blocks/${blockId}/requirement-review`,
|
|
23
|
+
requestBodySchema: ContractNoBody,
|
|
24
|
+
responsesByStatusCode: { 201: requirementReviewSchema, ...errorResponses },
|
|
25
|
+
});
|
|
26
|
+
export const replyRequirementItemContract = defineApiContract({
|
|
27
|
+
method: 'post',
|
|
28
|
+
requestPathParamsSchema: reviewItemParams,
|
|
29
|
+
pathResolver: ({ reviewId, itemId }) => `/requirement-reviews/${reviewId}/items/${itemId}/reply`,
|
|
30
|
+
requestBodySchema: replyReviewItemSchema,
|
|
31
|
+
responsesByStatusCode: { 200: requirementReviewSchema, ...errorResponses },
|
|
32
|
+
});
|
|
33
|
+
export const updateRequirementItemStatusContract = defineApiContract({
|
|
34
|
+
method: 'patch',
|
|
35
|
+
requestPathParamsSchema: reviewItemParams,
|
|
36
|
+
pathResolver: ({ reviewId, itemId }) => `/requirement-reviews/${reviewId}/items/${itemId}`,
|
|
37
|
+
requestBodySchema: updateReviewItemStatusSchema,
|
|
38
|
+
responsesByStatusCode: { 200: requirementReviewSchema, ...errorResponses },
|
|
39
|
+
});
|
|
40
|
+
export const incorporateRequirementsContract = defineApiContract({
|
|
41
|
+
method: 'post',
|
|
42
|
+
requestPathParamsSchema: blockIdParams,
|
|
43
|
+
pathResolver: ({ blockId }) => `/blocks/${blockId}/requirement-review/incorporate`,
|
|
44
|
+
requestBodySchema: incorporateRequirementsSchema,
|
|
45
|
+
responsesByStatusCode: { 200: requirementReviewSchema, ...errorResponses },
|
|
46
|
+
});
|
|
47
|
+
export const reReviewRequirementsContract = defineApiContract({
|
|
48
|
+
method: 'post',
|
|
49
|
+
requestPathParamsSchema: blockIdParams,
|
|
50
|
+
pathResolver: ({ blockId }) => `/blocks/${blockId}/requirement-review/re-review`,
|
|
51
|
+
requestBodySchema: ContractNoBody,
|
|
52
|
+
responsesByStatusCode: { 200: requirementReviewSchema, ...errorResponses },
|
|
53
|
+
});
|
|
54
|
+
export const proceedRequirementsContract = defineApiContract({
|
|
55
|
+
method: 'post',
|
|
56
|
+
requestPathParamsSchema: blockIdParams,
|
|
57
|
+
pathResolver: ({ blockId }) => `/blocks/${blockId}/requirement-review/proceed`,
|
|
58
|
+
requestBodySchema: ContractNoBody,
|
|
59
|
+
responsesByStatusCode: { 200: requirementReviewSchema, ...errorResponses },
|
|
60
|
+
});
|
|
61
|
+
export const requestRequirementRecommendationsContract = defineApiContract({
|
|
62
|
+
method: 'post',
|
|
63
|
+
requestPathParamsSchema: blockIdParams,
|
|
64
|
+
pathResolver: ({ blockId }) => `/blocks/${blockId}/requirement-review/recommend`,
|
|
65
|
+
requestBodySchema: requestRecommendationsSchema,
|
|
66
|
+
responsesByStatusCode: { 200: v.nullable(requirementReviewSchema), ...errorResponses },
|
|
67
|
+
});
|
|
68
|
+
export const acceptRequirementRecommendationContract = defineApiContract({
|
|
69
|
+
method: 'post',
|
|
70
|
+
requestPathParamsSchema: reviewRecParams,
|
|
71
|
+
pathResolver: ({ reviewId, recId }) => `/requirement-reviews/${reviewId}/recommendations/${recId}/accept`,
|
|
72
|
+
requestBodySchema: ContractNoBody,
|
|
73
|
+
responsesByStatusCode: { 200: requirementReviewSchema, ...errorResponses },
|
|
74
|
+
});
|
|
75
|
+
export const rejectRequirementRecommendationContract = defineApiContract({
|
|
76
|
+
method: 'post',
|
|
77
|
+
requestPathParamsSchema: reviewRecParams,
|
|
78
|
+
pathResolver: ({ reviewId, recId }) => `/requirement-reviews/${reviewId}/recommendations/${recId}/reject`,
|
|
79
|
+
requestBodySchema: ContractNoBody,
|
|
80
|
+
responsesByStatusCode: { 200: requirementReviewSchema, ...errorResponses },
|
|
81
|
+
});
|
|
82
|
+
export const reRequestRequirementRecommendationContract = defineApiContract({
|
|
83
|
+
method: 'post',
|
|
84
|
+
requestPathParamsSchema: reviewRecParams,
|
|
85
|
+
pathResolver: ({ reviewId, recId }) => `/requirement-reviews/${reviewId}/recommendations/${recId}/re-request`,
|
|
86
|
+
requestBodySchema: reRequestRecommendationSchema,
|
|
87
|
+
responsesByStatusCode: { 200: requirementReviewSchema, ...errorResponses },
|
|
88
|
+
});
|
|
89
|
+
export const resolveRequirementsExceededContract = defineApiContract({
|
|
90
|
+
method: 'post',
|
|
91
|
+
requestPathParamsSchema: blockIdParams,
|
|
92
|
+
pathResolver: ({ blockId }) => `/blocks/${blockId}/requirement-review/resolve-exceeded`,
|
|
93
|
+
requestBodySchema: resolveRequirementsExceededSchema,
|
|
94
|
+
responsesByStatusCode: { 200: requirementReviewSchema, ...errorResponses },
|
|
95
|
+
});
|
|
96
|
+
//# sourceMappingURL=requirements.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"requirements.js","sourceRoot":"","sources":["../../src/routes/requirements.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAC3F,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EACL,6BAA6B,EAC7B,6BAA6B,EAC7B,qBAAqB,EACrB,4BAA4B,EAC5B,uBAAuB,EACvB,iCAAiC,EACjC,4BAA4B,GAC7B,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C,8EAA8E;AAC9E,iFAAiF;AACjF,iFAAiF;AACjF,0BAA0B;AAC1B,8EAA8E;AAE9E,MAAM,aAAa,GAAG,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,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AE,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,CACpC,wBAAwB,QAAQ,oBAAoB,KAAK,aAAa;IACxE,iBAAiB,EAAE,6BAA6B;IAChD,qBAAqB,EAAE,EAAE,GAAG,EAAE,uBAAuB,EAAE,GAAG,cAAc,EAAE;CAC3E,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,mCAAmC,GAAG,iBAAiB,CAAC;IACnE,MAAM,EAAE,MAAM;IACd,uBAAuB,EAAE,aAAa;IACtC,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,WAAW,OAAO,sCAAsC;IACvF,iBAAiB,EAAE,iCAAiC;IACpD,qBAAqB,EAAE,EAAE,GAAG,EAAE,uBAAuB,EAAE,GAAG,cAAc,EAAE;CAC3E,CAAC,CAAA"}
|
|
@@ -0,0 +1,442 @@
|
|
|
1
|
+
import { ContractNoBody } from '@toad-contracts/valibot';
|
|
2
|
+
import * as v from 'valibot';
|
|
3
|
+
export declare const getRunnerPoolConnectionContract: {
|
|
4
|
+
readonly method: "get";
|
|
5
|
+
readonly pathResolver: () => string;
|
|
6
|
+
readonly responsesByStatusCode: {
|
|
7
|
+
readonly '4xx': v.ObjectSchema<{
|
|
8
|
+
readonly error: v.ObjectSchema<{
|
|
9
|
+
readonly code: v.StringSchema<undefined>;
|
|
10
|
+
readonly message: v.StringSchema<undefined>;
|
|
11
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
12
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
13
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
14
|
+
readonly message: v.StringSchema<undefined>;
|
|
15
|
+
}, undefined>, undefined>, undefined>;
|
|
16
|
+
}, undefined>;
|
|
17
|
+
}, undefined>;
|
|
18
|
+
readonly '5xx': v.ObjectSchema<{
|
|
19
|
+
readonly error: v.ObjectSchema<{
|
|
20
|
+
readonly code: v.StringSchema<undefined>;
|
|
21
|
+
readonly message: v.StringSchema<undefined>;
|
|
22
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
23
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
24
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
25
|
+
readonly message: v.StringSchema<undefined>;
|
|
26
|
+
}, undefined>, undefined>, undefined>;
|
|
27
|
+
}, undefined>;
|
|
28
|
+
}, undefined>;
|
|
29
|
+
readonly 200: v.ObjectSchema<{
|
|
30
|
+
readonly connection: v.NullableSchema<v.ObjectSchema<{
|
|
31
|
+
readonly providerId: v.StringSchema<undefined>;
|
|
32
|
+
readonly label: v.StringSchema<undefined>;
|
|
33
|
+
readonly baseUrl: v.StringSchema<undefined>;
|
|
34
|
+
readonly connectedAt: v.NumberSchema<undefined>;
|
|
35
|
+
readonly secretKeys: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
36
|
+
}, undefined>, undefined>;
|
|
37
|
+
}, undefined>;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export declare const registerRunnerPoolContract: {
|
|
41
|
+
readonly method: "post";
|
|
42
|
+
readonly pathResolver: () => string;
|
|
43
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
44
|
+
readonly manifest: v.ObjectSchema<{
|
|
45
|
+
readonly providerId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>;
|
|
46
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>;
|
|
47
|
+
readonly baseUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
|
|
48
|
+
readonly auth: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
49
|
+
readonly type: v.LiteralSchema<"none", undefined>;
|
|
50
|
+
}, undefined>, v.ObjectSchema<{
|
|
51
|
+
readonly type: v.LiteralSchema<"api_key", undefined>;
|
|
52
|
+
readonly headerName: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
53
|
+
readonly secretRef: v.ObjectSchema<{
|
|
54
|
+
readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>;
|
|
55
|
+
}, undefined>;
|
|
56
|
+
readonly valuePrefix: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
57
|
+
}, undefined>, v.ObjectSchema<{
|
|
58
|
+
readonly type: v.LiteralSchema<"bearer", undefined>;
|
|
59
|
+
readonly secretRef: v.ObjectSchema<{
|
|
60
|
+
readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>;
|
|
61
|
+
}, undefined>;
|
|
62
|
+
}, undefined>, v.ObjectSchema<{
|
|
63
|
+
readonly type: v.LiteralSchema<"basic", undefined>;
|
|
64
|
+
readonly usernameSecretRef: v.ObjectSchema<{
|
|
65
|
+
readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>;
|
|
66
|
+
}, undefined>;
|
|
67
|
+
readonly passwordSecretRef: v.ObjectSchema<{
|
|
68
|
+
readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>;
|
|
69
|
+
}, undefined>;
|
|
70
|
+
}, undefined>, v.ObjectSchema<{
|
|
71
|
+
readonly type: v.LiteralSchema<"oauth2_client_credentials", undefined>;
|
|
72
|
+
readonly tokenUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
|
|
73
|
+
readonly clientIdSecretRef: v.ObjectSchema<{
|
|
74
|
+
readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>;
|
|
75
|
+
}, undefined>;
|
|
76
|
+
readonly clientSecretSecretRef: v.ObjectSchema<{
|
|
77
|
+
readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>;
|
|
78
|
+
}, undefined>;
|
|
79
|
+
readonly scope: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
80
|
+
readonly audience: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
81
|
+
}, undefined>, v.ObjectSchema<{
|
|
82
|
+
readonly type: v.LiteralSchema<"custom_headers", undefined>;
|
|
83
|
+
readonly headers: v.ArraySchema<v.ObjectSchema<{
|
|
84
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
85
|
+
readonly secretRef: v.ObjectSchema<{
|
|
86
|
+
readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>;
|
|
87
|
+
}, undefined>;
|
|
88
|
+
}, undefined>, undefined>;
|
|
89
|
+
}, undefined>], undefined>;
|
|
90
|
+
readonly dispatch: v.ObjectSchema<{
|
|
91
|
+
readonly method: v.PicklistSchema<["GET", "POST", "PUT", "PATCH", "DELETE"], undefined>;
|
|
92
|
+
readonly pathTemplate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
|
|
93
|
+
readonly query: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
94
|
+
readonly key: v.StringSchema<undefined>;
|
|
95
|
+
readonly value: v.StringSchema<undefined>;
|
|
96
|
+
}, undefined>, undefined>, undefined>;
|
|
97
|
+
readonly headers: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
98
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
99
|
+
readonly value: v.StringSchema<undefined>;
|
|
100
|
+
}, undefined>, undefined>, undefined>;
|
|
101
|
+
readonly bodyTemplate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
102
|
+
readonly timeoutMs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 60000, undefined>]>, undefined>;
|
|
103
|
+
}, undefined>;
|
|
104
|
+
readonly poll: v.ObjectSchema<{
|
|
105
|
+
readonly method: v.PicklistSchema<["GET", "POST", "PUT", "PATCH", "DELETE"], undefined>;
|
|
106
|
+
readonly pathTemplate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
|
|
107
|
+
readonly query: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
108
|
+
readonly key: v.StringSchema<undefined>;
|
|
109
|
+
readonly value: v.StringSchema<undefined>;
|
|
110
|
+
}, undefined>, undefined>, undefined>;
|
|
111
|
+
readonly headers: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
112
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
113
|
+
readonly value: v.StringSchema<undefined>;
|
|
114
|
+
}, undefined>, undefined>, undefined>;
|
|
115
|
+
readonly bodyTemplate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
116
|
+
readonly timeoutMs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 60000, undefined>]>, undefined>;
|
|
117
|
+
}, undefined>;
|
|
118
|
+
readonly release: v.OptionalSchema<v.ObjectSchema<{
|
|
119
|
+
readonly method: v.PicklistSchema<["GET", "POST", "PUT", "PATCH", "DELETE"], undefined>;
|
|
120
|
+
readonly pathTemplate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
|
|
121
|
+
readonly query: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
122
|
+
readonly key: v.StringSchema<undefined>;
|
|
123
|
+
readonly value: v.StringSchema<undefined>;
|
|
124
|
+
}, undefined>, undefined>, undefined>;
|
|
125
|
+
readonly headers: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
126
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
127
|
+
readonly value: v.StringSchema<undefined>;
|
|
128
|
+
}, undefined>, undefined>, undefined>;
|
|
129
|
+
readonly bodyTemplate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
130
|
+
readonly timeoutMs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 60000, undefined>]>, undefined>;
|
|
131
|
+
}, undefined>, undefined>;
|
|
132
|
+
readonly response: v.ObjectSchema<{
|
|
133
|
+
readonly statusPath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
134
|
+
readonly statusMap: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
135
|
+
readonly from: v.StringSchema<undefined>;
|
|
136
|
+
readonly to: v.PicklistSchema<["running", "done", "failed"], undefined>;
|
|
137
|
+
}, undefined>, undefined>, undefined>;
|
|
138
|
+
readonly progressCompletedPath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
139
|
+
readonly progressInProgressPath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
140
|
+
readonly progressTotalPath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
141
|
+
readonly prUrlPath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
142
|
+
readonly branchPath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
143
|
+
readonly summaryPath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
144
|
+
readonly resultPath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
145
|
+
readonly followUpsPath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
146
|
+
readonly errorPath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
147
|
+
}, undefined>;
|
|
148
|
+
}, undefined>;
|
|
149
|
+
readonly secrets: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
|
|
150
|
+
}, undefined>;
|
|
151
|
+
readonly responsesByStatusCode: {
|
|
152
|
+
readonly '4xx': v.ObjectSchema<{
|
|
153
|
+
readonly error: v.ObjectSchema<{
|
|
154
|
+
readonly code: v.StringSchema<undefined>;
|
|
155
|
+
readonly message: v.StringSchema<undefined>;
|
|
156
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
157
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
158
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
159
|
+
readonly message: v.StringSchema<undefined>;
|
|
160
|
+
}, undefined>, undefined>, undefined>;
|
|
161
|
+
}, undefined>;
|
|
162
|
+
}, undefined>;
|
|
163
|
+
readonly '5xx': v.ObjectSchema<{
|
|
164
|
+
readonly error: v.ObjectSchema<{
|
|
165
|
+
readonly code: v.StringSchema<undefined>;
|
|
166
|
+
readonly message: v.StringSchema<undefined>;
|
|
167
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
168
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
169
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
170
|
+
readonly message: v.StringSchema<undefined>;
|
|
171
|
+
}, undefined>, undefined>, undefined>;
|
|
172
|
+
}, undefined>;
|
|
173
|
+
}, undefined>;
|
|
174
|
+
readonly 201: v.ObjectSchema<{
|
|
175
|
+
readonly providerId: v.StringSchema<undefined>;
|
|
176
|
+
readonly label: v.StringSchema<undefined>;
|
|
177
|
+
readonly baseUrl: v.StringSchema<undefined>;
|
|
178
|
+
readonly connectedAt: v.NumberSchema<undefined>;
|
|
179
|
+
readonly secretKeys: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
180
|
+
}, undefined>;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
export declare const updateRunnerPoolSecretsContract: {
|
|
184
|
+
readonly method: "put";
|
|
185
|
+
readonly pathResolver: () => string;
|
|
186
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
187
|
+
readonly secrets: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
|
|
188
|
+
}, undefined>;
|
|
189
|
+
readonly responsesByStatusCode: {
|
|
190
|
+
readonly '4xx': v.ObjectSchema<{
|
|
191
|
+
readonly error: v.ObjectSchema<{
|
|
192
|
+
readonly code: v.StringSchema<undefined>;
|
|
193
|
+
readonly message: v.StringSchema<undefined>;
|
|
194
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
195
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
196
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
197
|
+
readonly message: v.StringSchema<undefined>;
|
|
198
|
+
}, undefined>, undefined>, undefined>;
|
|
199
|
+
}, undefined>;
|
|
200
|
+
}, undefined>;
|
|
201
|
+
readonly '5xx': v.ObjectSchema<{
|
|
202
|
+
readonly error: v.ObjectSchema<{
|
|
203
|
+
readonly code: v.StringSchema<undefined>;
|
|
204
|
+
readonly message: v.StringSchema<undefined>;
|
|
205
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
206
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
207
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
208
|
+
readonly message: v.StringSchema<undefined>;
|
|
209
|
+
}, undefined>, undefined>, undefined>;
|
|
210
|
+
}, undefined>;
|
|
211
|
+
}, undefined>;
|
|
212
|
+
readonly 200: v.ObjectSchema<{
|
|
213
|
+
readonly providerId: v.StringSchema<undefined>;
|
|
214
|
+
readonly label: v.StringSchema<undefined>;
|
|
215
|
+
readonly baseUrl: v.StringSchema<undefined>;
|
|
216
|
+
readonly connectedAt: v.NumberSchema<undefined>;
|
|
217
|
+
readonly secretKeys: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
218
|
+
}, undefined>;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
export declare const unregisterRunnerPoolContract: {
|
|
222
|
+
readonly method: "delete";
|
|
223
|
+
readonly pathResolver: () => string;
|
|
224
|
+
readonly responsesByStatusCode: {
|
|
225
|
+
readonly '4xx': v.ObjectSchema<{
|
|
226
|
+
readonly error: v.ObjectSchema<{
|
|
227
|
+
readonly code: v.StringSchema<undefined>;
|
|
228
|
+
readonly message: v.StringSchema<undefined>;
|
|
229
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
230
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
231
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
232
|
+
readonly message: v.StringSchema<undefined>;
|
|
233
|
+
}, undefined>, undefined>, undefined>;
|
|
234
|
+
}, undefined>;
|
|
235
|
+
}, undefined>;
|
|
236
|
+
readonly '5xx': v.ObjectSchema<{
|
|
237
|
+
readonly error: v.ObjectSchema<{
|
|
238
|
+
readonly code: v.StringSchema<undefined>;
|
|
239
|
+
readonly message: v.StringSchema<undefined>;
|
|
240
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
241
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
242
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
243
|
+
readonly message: v.StringSchema<undefined>;
|
|
244
|
+
}, undefined>, undefined>, undefined>;
|
|
245
|
+
}, undefined>;
|
|
246
|
+
}, undefined>;
|
|
247
|
+
readonly 204: typeof ContractNoBody;
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
export declare const describeRunnerPoolProviderContract: {
|
|
251
|
+
readonly method: "get";
|
|
252
|
+
readonly pathResolver: () => string;
|
|
253
|
+
readonly responsesByStatusCode: {
|
|
254
|
+
readonly '4xx': v.ObjectSchema<{
|
|
255
|
+
readonly error: v.ObjectSchema<{
|
|
256
|
+
readonly code: v.StringSchema<undefined>;
|
|
257
|
+
readonly message: v.StringSchema<undefined>;
|
|
258
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
259
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
260
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
261
|
+
readonly message: v.StringSchema<undefined>;
|
|
262
|
+
}, undefined>, undefined>, undefined>;
|
|
263
|
+
}, undefined>;
|
|
264
|
+
}, undefined>;
|
|
265
|
+
readonly '5xx': v.ObjectSchema<{
|
|
266
|
+
readonly error: v.ObjectSchema<{
|
|
267
|
+
readonly code: v.StringSchema<undefined>;
|
|
268
|
+
readonly message: v.StringSchema<undefined>;
|
|
269
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
270
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
271
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
272
|
+
readonly message: v.StringSchema<undefined>;
|
|
273
|
+
}, undefined>, undefined>, undefined>;
|
|
274
|
+
}, undefined>;
|
|
275
|
+
}, undefined>;
|
|
276
|
+
readonly 200: v.ObjectSchema<{
|
|
277
|
+
readonly providerId: v.StringSchema<undefined>;
|
|
278
|
+
readonly label: v.StringSchema<undefined>;
|
|
279
|
+
readonly kind: v.PicklistSchema<["native", "manifest"], undefined>;
|
|
280
|
+
readonly configFields: v.ArraySchema<v.ObjectSchema<{
|
|
281
|
+
readonly key: v.StringSchema<undefined>;
|
|
282
|
+
readonly label: v.StringSchema<undefined>;
|
|
283
|
+
readonly help: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
284
|
+
readonly placeholder: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
285
|
+
readonly secret: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
286
|
+
readonly required: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
287
|
+
readonly type: v.OptionalSchema<v.PicklistSchema<["text", "password", "select"], undefined>, undefined>;
|
|
288
|
+
readonly options: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
289
|
+
readonly value: v.StringSchema<undefined>;
|
|
290
|
+
readonly label: v.StringSchema<undefined>;
|
|
291
|
+
}, undefined>, undefined>, undefined>;
|
|
292
|
+
readonly default: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
293
|
+
}, undefined>, undefined>;
|
|
294
|
+
readonly supportsTest: v.BooleanSchema<undefined>;
|
|
295
|
+
readonly missingRequired: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
296
|
+
readonly manifestTemplate: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
297
|
+
readonly savedManifest: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
298
|
+
}, undefined>;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
export declare const testRunnerPoolConnectionContract: {
|
|
302
|
+
readonly method: "post";
|
|
303
|
+
readonly pathResolver: () => string;
|
|
304
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
305
|
+
readonly manifest: v.OptionalSchema<v.ObjectSchema<{
|
|
306
|
+
readonly providerId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>;
|
|
307
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>;
|
|
308
|
+
readonly baseUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
|
|
309
|
+
readonly auth: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
310
|
+
readonly type: v.LiteralSchema<"none", undefined>;
|
|
311
|
+
}, undefined>, v.ObjectSchema<{
|
|
312
|
+
readonly type: v.LiteralSchema<"api_key", undefined>;
|
|
313
|
+
readonly headerName: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
314
|
+
readonly secretRef: v.ObjectSchema<{
|
|
315
|
+
readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>;
|
|
316
|
+
}, undefined>;
|
|
317
|
+
readonly valuePrefix: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
318
|
+
}, undefined>, v.ObjectSchema<{
|
|
319
|
+
readonly type: v.LiteralSchema<"bearer", undefined>;
|
|
320
|
+
readonly secretRef: v.ObjectSchema<{
|
|
321
|
+
readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>;
|
|
322
|
+
}, undefined>;
|
|
323
|
+
}, undefined>, v.ObjectSchema<{
|
|
324
|
+
readonly type: v.LiteralSchema<"basic", undefined>;
|
|
325
|
+
readonly usernameSecretRef: v.ObjectSchema<{
|
|
326
|
+
readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>;
|
|
327
|
+
}, undefined>;
|
|
328
|
+
readonly passwordSecretRef: v.ObjectSchema<{
|
|
329
|
+
readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>;
|
|
330
|
+
}, undefined>;
|
|
331
|
+
}, undefined>, v.ObjectSchema<{
|
|
332
|
+
readonly type: v.LiteralSchema<"oauth2_client_credentials", undefined>;
|
|
333
|
+
readonly tokenUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
|
|
334
|
+
readonly clientIdSecretRef: v.ObjectSchema<{
|
|
335
|
+
readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>;
|
|
336
|
+
}, undefined>;
|
|
337
|
+
readonly clientSecretSecretRef: v.ObjectSchema<{
|
|
338
|
+
readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>;
|
|
339
|
+
}, undefined>;
|
|
340
|
+
readonly scope: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
341
|
+
readonly audience: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
342
|
+
}, undefined>, v.ObjectSchema<{
|
|
343
|
+
readonly type: v.LiteralSchema<"custom_headers", undefined>;
|
|
344
|
+
readonly headers: v.ArraySchema<v.ObjectSchema<{
|
|
345
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
346
|
+
readonly secretRef: v.ObjectSchema<{
|
|
347
|
+
readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>;
|
|
348
|
+
}, undefined>;
|
|
349
|
+
}, undefined>, undefined>;
|
|
350
|
+
}, undefined>], undefined>;
|
|
351
|
+
readonly dispatch: v.ObjectSchema<{
|
|
352
|
+
readonly method: v.PicklistSchema<["GET", "POST", "PUT", "PATCH", "DELETE"], undefined>;
|
|
353
|
+
readonly pathTemplate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
|
|
354
|
+
readonly query: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
355
|
+
readonly key: v.StringSchema<undefined>;
|
|
356
|
+
readonly value: v.StringSchema<undefined>;
|
|
357
|
+
}, undefined>, undefined>, undefined>;
|
|
358
|
+
readonly headers: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
359
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
360
|
+
readonly value: v.StringSchema<undefined>;
|
|
361
|
+
}, undefined>, undefined>, undefined>;
|
|
362
|
+
readonly bodyTemplate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
363
|
+
readonly timeoutMs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 60000, undefined>]>, undefined>;
|
|
364
|
+
}, undefined>;
|
|
365
|
+
readonly poll: v.ObjectSchema<{
|
|
366
|
+
readonly method: v.PicklistSchema<["GET", "POST", "PUT", "PATCH", "DELETE"], undefined>;
|
|
367
|
+
readonly pathTemplate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
|
|
368
|
+
readonly query: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
369
|
+
readonly key: v.StringSchema<undefined>;
|
|
370
|
+
readonly value: v.StringSchema<undefined>;
|
|
371
|
+
}, undefined>, undefined>, undefined>;
|
|
372
|
+
readonly headers: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
373
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
374
|
+
readonly value: v.StringSchema<undefined>;
|
|
375
|
+
}, undefined>, undefined>, undefined>;
|
|
376
|
+
readonly bodyTemplate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
377
|
+
readonly timeoutMs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 60000, undefined>]>, undefined>;
|
|
378
|
+
}, undefined>;
|
|
379
|
+
readonly release: v.OptionalSchema<v.ObjectSchema<{
|
|
380
|
+
readonly method: v.PicklistSchema<["GET", "POST", "PUT", "PATCH", "DELETE"], undefined>;
|
|
381
|
+
readonly pathTemplate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
|
|
382
|
+
readonly query: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
383
|
+
readonly key: v.StringSchema<undefined>;
|
|
384
|
+
readonly value: v.StringSchema<undefined>;
|
|
385
|
+
}, undefined>, undefined>, undefined>;
|
|
386
|
+
readonly headers: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
387
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
388
|
+
readonly value: v.StringSchema<undefined>;
|
|
389
|
+
}, undefined>, undefined>, undefined>;
|
|
390
|
+
readonly bodyTemplate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
391
|
+
readonly timeoutMs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 60000, undefined>]>, undefined>;
|
|
392
|
+
}, undefined>, undefined>;
|
|
393
|
+
readonly response: v.ObjectSchema<{
|
|
394
|
+
readonly statusPath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
395
|
+
readonly statusMap: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
396
|
+
readonly from: v.StringSchema<undefined>;
|
|
397
|
+
readonly to: v.PicklistSchema<["running", "done", "failed"], undefined>;
|
|
398
|
+
}, undefined>, undefined>, undefined>;
|
|
399
|
+
readonly progressCompletedPath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
400
|
+
readonly progressInProgressPath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
401
|
+
readonly progressTotalPath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
402
|
+
readonly prUrlPath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
403
|
+
readonly branchPath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
404
|
+
readonly summaryPath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
405
|
+
readonly resultPath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
406
|
+
readonly followUpsPath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
407
|
+
readonly errorPath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
408
|
+
}, undefined>;
|
|
409
|
+
}, undefined>, undefined>;
|
|
410
|
+
readonly config: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;
|
|
411
|
+
readonly secrets: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;
|
|
412
|
+
}, undefined>;
|
|
413
|
+
readonly responsesByStatusCode: {
|
|
414
|
+
readonly '4xx': v.ObjectSchema<{
|
|
415
|
+
readonly error: v.ObjectSchema<{
|
|
416
|
+
readonly code: v.StringSchema<undefined>;
|
|
417
|
+
readonly message: v.StringSchema<undefined>;
|
|
418
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
419
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
420
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
421
|
+
readonly message: v.StringSchema<undefined>;
|
|
422
|
+
}, undefined>, undefined>, undefined>;
|
|
423
|
+
}, undefined>;
|
|
424
|
+
}, undefined>;
|
|
425
|
+
readonly '5xx': v.ObjectSchema<{
|
|
426
|
+
readonly error: v.ObjectSchema<{
|
|
427
|
+
readonly code: v.StringSchema<undefined>;
|
|
428
|
+
readonly message: v.StringSchema<undefined>;
|
|
429
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
430
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
431
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
432
|
+
readonly message: v.StringSchema<undefined>;
|
|
433
|
+
}, undefined>, undefined>, undefined>;
|
|
434
|
+
}, undefined>;
|
|
435
|
+
}, undefined>;
|
|
436
|
+
readonly 200: v.ObjectSchema<{
|
|
437
|
+
readonly ok: v.BooleanSchema<undefined>;
|
|
438
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
439
|
+
}, undefined>;
|
|
440
|
+
};
|
|
441
|
+
};
|
|
442
|
+
//# sourceMappingURL=runners.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runners.d.ts","sourceRoot":"","sources":["../../src/routes/runners.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAoB5B,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI1C,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKrC,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK1C,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIvC,CAAA;AAEF,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI7C,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK3C,CAAA"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ContractNoBody, defineApiContract } from '@toad-contracts/valibot';
|
|
2
|
+
import * as v from 'valibot';
|
|
3
|
+
import { connectionTestResultSchema, providerDescriptorSchema } from '../provider-config.js';
|
|
4
|
+
import { registerRunnerPoolSchema, runnerPoolConnectionSchema, testRunnerPoolConnectionSchema, updateRunnerPoolSecretsSchema, } from '../runners.js';
|
|
5
|
+
import { errorResponses } from './_shared.js';
|
|
6
|
+
// ---------------------------------------------------------------------------
|
|
7
|
+
// Self-hosted runner-pool route contracts. Mounted under `/workspaces/:workspaceId`,
|
|
8
|
+
// so the paths here are relative to that prefix. See RunnerPoolController.
|
|
9
|
+
// ---------------------------------------------------------------------------
|
|
10
|
+
// Response wrapper that exists only inline in the controller today.
|
|
11
|
+
const runnerPoolConnectionViewSchema = v.object({
|
|
12
|
+
connection: v.nullable(runnerPoolConnectionSchema),
|
|
13
|
+
});
|
|
14
|
+
export const getRunnerPoolConnectionContract = defineApiContract({
|
|
15
|
+
method: 'get',
|
|
16
|
+
pathResolver: () => '/runner-pool/connection',
|
|
17
|
+
responsesByStatusCode: { 200: runnerPoolConnectionViewSchema, ...errorResponses },
|
|
18
|
+
});
|
|
19
|
+
export const registerRunnerPoolContract = defineApiContract({
|
|
20
|
+
method: 'post',
|
|
21
|
+
pathResolver: () => '/runner-pool/connection',
|
|
22
|
+
requestBodySchema: registerRunnerPoolSchema,
|
|
23
|
+
responsesByStatusCode: { 201: runnerPoolConnectionSchema, ...errorResponses },
|
|
24
|
+
});
|
|
25
|
+
export const updateRunnerPoolSecretsContract = defineApiContract({
|
|
26
|
+
method: 'put',
|
|
27
|
+
pathResolver: () => '/runner-pool/connection/secrets',
|
|
28
|
+
requestBodySchema: updateRunnerPoolSecretsSchema,
|
|
29
|
+
responsesByStatusCode: { 200: runnerPoolConnectionSchema, ...errorResponses },
|
|
30
|
+
});
|
|
31
|
+
export const unregisterRunnerPoolContract = defineApiContract({
|
|
32
|
+
method: 'delete',
|
|
33
|
+
pathResolver: () => '/runner-pool/connection',
|
|
34
|
+
responsesByStatusCode: { 204: ContractNoBody, ...errorResponses },
|
|
35
|
+
});
|
|
36
|
+
export const describeRunnerPoolProviderContract = defineApiContract({
|
|
37
|
+
method: 'get',
|
|
38
|
+
pathResolver: () => '/runner-pool/provider',
|
|
39
|
+
responsesByStatusCode: { 200: providerDescriptorSchema, ...errorResponses },
|
|
40
|
+
});
|
|
41
|
+
export const testRunnerPoolConnectionContract = defineApiContract({
|
|
42
|
+
method: 'post',
|
|
43
|
+
pathResolver: () => '/runner-pool/connection/test',
|
|
44
|
+
requestBodySchema: testRunnerPoolConnectionSchema,
|
|
45
|
+
responsesByStatusCode: { 200: connectionTestResultSchema, ...errorResponses },
|
|
46
|
+
});
|
|
47
|
+
//# sourceMappingURL=runners.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runners.js","sourceRoot":"","sources":["../../src/routes/runners.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,0BAA0B,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAA;AAC5F,OAAO,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,8BAA8B,EAC9B,6BAA6B,GAC9B,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C,8EAA8E;AAC9E,qFAAqF;AACrF,2EAA2E;AAC3E,8EAA8E;AAE9E,oEAAoE;AACpE,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,0BAA0B,CAAC;CACnD,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAAG,iBAAiB,CAAC;IAC/D,MAAM,EAAE,KAAK;IACb,YAAY,EAAE,GAAG,EAAE,CAAC,yBAAyB;IAC7C,qBAAqB,EAAE,EAAE,GAAG,EAAE,8BAA8B,EAAE,GAAG,cAAc,EAAE;CAClF,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,iBAAiB,CAAC;IAC1D,MAAM,EAAE,MAAM;IACd,YAAY,EAAE,GAAG,EAAE,CAAC,yBAAyB;IAC7C,iBAAiB,EAAE,wBAAwB;IAC3C,qBAAqB,EAAE,EAAE,GAAG,EAAE,0BAA0B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