@cat-factory/contracts 0.34.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/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/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.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/package.json +3 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ContractNoBody, defineApiContract, withObjectKeys } from '@toad-contracts/valibot';
|
|
2
|
+
import * as v from 'valibot';
|
|
3
|
+
import { localModelEndpointSchema, localModelEndpointTestResultSchema, testLocalModelEndpointSchema, upsertLocalModelEndpointSchema, } from '../localModels.js';
|
|
4
|
+
import { errorResponses } from './_shared.js';
|
|
5
|
+
// ---------------------------------------------------------------------------
|
|
6
|
+
// Per-user local-runner endpoint route contracts. The
|
|
7
|
+
// LocalModelEndpointController is mounted at `/`, so the paths are absolute and
|
|
8
|
+
// carry no workspace param; endpoints are scoped to the signed-in user. See
|
|
9
|
+
// LocalModelEndpointController in @cat-factory/server.
|
|
10
|
+
// ---------------------------------------------------------------------------
|
|
11
|
+
// Response wrapper that exists only inline in the controller today.
|
|
12
|
+
const localModelEndpointListSchema = v.object({
|
|
13
|
+
endpoints: v.array(localModelEndpointSchema),
|
|
14
|
+
});
|
|
15
|
+
// The `:provider` segment is re-validated against `localRunnerSchema` in the handler.
|
|
16
|
+
const providerParams = withObjectKeys(v.object({ provider: v.string() }));
|
|
17
|
+
export const listLocalModelEndpointsContract = defineApiContract({
|
|
18
|
+
method: 'get',
|
|
19
|
+
pathResolver: () => '/local-model-endpoints',
|
|
20
|
+
responsesByStatusCode: { 200: localModelEndpointListSchema, ...errorResponses },
|
|
21
|
+
});
|
|
22
|
+
export const upsertLocalModelEndpointContract = defineApiContract({
|
|
23
|
+
method: 'put',
|
|
24
|
+
requestPathParamsSchema: providerParams,
|
|
25
|
+
pathResolver: ({ provider }) => `/local-model-endpoints/${provider}`,
|
|
26
|
+
requestBodySchema: upsertLocalModelEndpointSchema,
|
|
27
|
+
responsesByStatusCode: { 201: localModelEndpointSchema, ...errorResponses },
|
|
28
|
+
});
|
|
29
|
+
export const removeLocalModelEndpointContract = defineApiContract({
|
|
30
|
+
method: 'delete',
|
|
31
|
+
requestPathParamsSchema: providerParams,
|
|
32
|
+
pathResolver: ({ provider }) => `/local-model-endpoints/${provider}`,
|
|
33
|
+
responsesByStatusCode: { 204: ContractNoBody, ...errorResponses },
|
|
34
|
+
});
|
|
35
|
+
export const testLocalModelEndpointContract = defineApiContract({
|
|
36
|
+
method: 'post',
|
|
37
|
+
pathResolver: () => '/local-model-endpoints/test',
|
|
38
|
+
requestBodySchema: testLocalModelEndpointSchema,
|
|
39
|
+
responsesByStatusCode: { 200: localModelEndpointTestResultSchema, ...errorResponses },
|
|
40
|
+
});
|
|
41
|
+
//# sourceMappingURL=localModels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"localModels.js","sourceRoot":"","sources":["../../src/routes/localModels.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,wBAAwB,EACxB,kCAAkC,EAClC,4BAA4B,EAC5B,8BAA8B,GAC/B,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C,8EAA8E;AAC9E,sDAAsD;AACtD,gFAAgF;AAChF,4EAA4E;AAC5E,uDAAuD;AACvD,8EAA8E;AAE9E,oEAAoE;AACpE,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC;CAC7C,CAAC,CAAA;AAEF,sFAAsF;AACtF,MAAM,cAAc,GAAG,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAA;AAEzE,MAAM,CAAC,MAAM,+BAA+B,GAAG,iBAAiB,CAAC;IAC/D,MAAM,EAAE,KAAK;IACb,YAAY,EAAE,GAAG,EAAE,CAAC,wBAAwB;IAC5C,qBAAqB,EAAE,EAAE,GAAG,EAAE,4BAA4B,EAAE,GAAG,cAAc,EAAE;CAChF,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,gCAAgC,GAAG,iBAAiB,CAAC;IAChE,MAAM,EAAE,KAAK;IACb,uBAAuB,EAAE,cAAc;IACvC,YAAY,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,0BAA0B,QAAQ,EAAE;IACpE,iBAAiB,EAAE,8BAA8B;IACjD,qBAAqB,EAAE,EAAE,GAAG,EAAE,wBAAwB,EAAE,GAAG,cAAc,EAAE;CAC5E,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,gCAAgC,GAAG,iBAAiB,CAAC;IAChE,MAAM,EAAE,QAAQ;IAChB,uBAAuB,EAAE,cAAc;IACvC,YAAY,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,0BAA0B,QAAQ,EAAE;IACpE,qBAAqB,EAAE,EAAE,GAAG,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE;CAClE,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAG,iBAAiB,CAAC;IAC9D,MAAM,EAAE,MAAM;IACd,YAAY,EAAE,GAAG,EAAE,CAAC,6BAA6B;IACjD,iBAAiB,EAAE,4BAA4B;IAC/C,qBAAqB,EAAE,EAAE,GAAG,EAAE,kCAAkC,EAAE,GAAG,cAAc,EAAE;CACtF,CAAC,CAAA"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
export declare const getLocalSettingsContract: {
|
|
2
|
+
readonly method: "get";
|
|
3
|
+
readonly pathResolver: () => string;
|
|
4
|
+
readonly responsesByStatusCode: {
|
|
5
|
+
readonly '4xx': import("valibot").ObjectSchema<{
|
|
6
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
7
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
8
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
9
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
10
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
11
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
12
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
13
|
+
}, undefined>, undefined>, undefined>;
|
|
14
|
+
}, undefined>;
|
|
15
|
+
}, undefined>;
|
|
16
|
+
readonly '5xx': import("valibot").ObjectSchema<{
|
|
17
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
18
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
19
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
20
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
21
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
22
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
23
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
24
|
+
}, undefined>, undefined>, undefined>;
|
|
25
|
+
}, undefined>;
|
|
26
|
+
}, undefined>;
|
|
27
|
+
readonly 200: import("valibot").ObjectSchema<{
|
|
28
|
+
readonly pool: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
29
|
+
readonly size: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, import("valibot").MaxValueAction<number, 50, undefined>]>, 0>;
|
|
30
|
+
readonly minWarm: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, import("valibot").MaxValueAction<number, 50, undefined>]>, 0>;
|
|
31
|
+
readonly max: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, import("valibot").MaxValueAction<number, 100, undefined>]>, undefined>, null>;
|
|
32
|
+
readonly idleTtlMs: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, 600000>;
|
|
33
|
+
}, undefined>, {}>;
|
|
34
|
+
readonly checkout: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
35
|
+
readonly workspaceRoot: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").RegexAction<string, "workspaceRoot must be an absolute (POSIX) path, e.g. /workspace">]>, "/workspace">;
|
|
36
|
+
readonly cleanKeep: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>]>, undefined>, readonly ["node_modules", ".venv", "target", ".gradle", ".pnpm-store"]>;
|
|
37
|
+
}, undefined>, {}>;
|
|
38
|
+
}, undefined>;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export declare const updateLocalSettingsContract: {
|
|
42
|
+
readonly method: "put";
|
|
43
|
+
readonly pathResolver: () => string;
|
|
44
|
+
readonly requestBodySchema: import("valibot").ObjectSchema<{
|
|
45
|
+
readonly pool: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
46
|
+
readonly size: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, import("valibot").MaxValueAction<number, 50, undefined>]>, 0>;
|
|
47
|
+
readonly minWarm: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, import("valibot").MaxValueAction<number, 50, undefined>]>, 0>;
|
|
48
|
+
readonly max: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, import("valibot").MaxValueAction<number, 100, undefined>]>, undefined>, null>;
|
|
49
|
+
readonly idleTtlMs: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, 600000>;
|
|
50
|
+
}, undefined>, {}>;
|
|
51
|
+
readonly checkout: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
52
|
+
readonly workspaceRoot: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").RegexAction<string, "workspaceRoot must be an absolute (POSIX) path, e.g. /workspace">]>, "/workspace">;
|
|
53
|
+
readonly cleanKeep: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>]>, undefined>, readonly ["node_modules", ".venv", "target", ".gradle", ".pnpm-store"]>;
|
|
54
|
+
}, undefined>, {}>;
|
|
55
|
+
}, undefined>;
|
|
56
|
+
readonly responsesByStatusCode: {
|
|
57
|
+
readonly '4xx': import("valibot").ObjectSchema<{
|
|
58
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
59
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
60
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
61
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
62
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
63
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
64
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
65
|
+
}, undefined>, undefined>, undefined>;
|
|
66
|
+
}, undefined>;
|
|
67
|
+
}, undefined>;
|
|
68
|
+
readonly '5xx': import("valibot").ObjectSchema<{
|
|
69
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
70
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
71
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
72
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
73
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
74
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
75
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
76
|
+
}, undefined>, undefined>, undefined>;
|
|
77
|
+
}, undefined>;
|
|
78
|
+
}, undefined>;
|
|
79
|
+
readonly 200: import("valibot").ObjectSchema<{
|
|
80
|
+
readonly pool: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
81
|
+
readonly size: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, import("valibot").MaxValueAction<number, 50, undefined>]>, 0>;
|
|
82
|
+
readonly minWarm: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, import("valibot").MaxValueAction<number, 50, undefined>]>, 0>;
|
|
83
|
+
readonly max: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, import("valibot").MaxValueAction<number, 100, undefined>]>, undefined>, null>;
|
|
84
|
+
readonly idleTtlMs: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, 600000>;
|
|
85
|
+
}, undefined>, {}>;
|
|
86
|
+
readonly checkout: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
87
|
+
readonly workspaceRoot: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").RegexAction<string, "workspaceRoot must be an absolute (POSIX) path, e.g. /workspace">]>, "/workspace">;
|
|
88
|
+
readonly cleanKeep: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>]>, undefined>, readonly ["node_modules", ".venv", "target", ".gradle", ".pnpm-store"]>;
|
|
89
|
+
}, undefined>, {}>;
|
|
90
|
+
}, undefined>;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
//# sourceMappingURL=localSettings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"localSettings.d.ts","sourceRoot":"","sources":["../../src/routes/localSettings.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAInC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKtC,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineApiContract } from '@toad-contracts/valibot';
|
|
2
|
+
import { localSettingsSchema, updateLocalSettingsSchema } from '../localSettings.js';
|
|
3
|
+
import { errorResponses } from './_shared.js';
|
|
4
|
+
// ---------------------------------------------------------------------------
|
|
5
|
+
// Local-mode operational settings route contracts (warm-container-pool sizing +
|
|
6
|
+
// per-repo checkout reuse). A per-deployment singleton mounted at the root;
|
|
7
|
+
// wired only on the local-mode facade (503 elsewhere). No secrets, so GET
|
|
8
|
+
// returns the plain config and PUT replaces it wholesale. See
|
|
9
|
+
// LocalSettingsController in @cat-factory/server.
|
|
10
|
+
// ---------------------------------------------------------------------------
|
|
11
|
+
export const getLocalSettingsContract = defineApiContract({
|
|
12
|
+
method: 'get',
|
|
13
|
+
pathResolver: () => '/local-settings',
|
|
14
|
+
responsesByStatusCode: { 200: localSettingsSchema, ...errorResponses },
|
|
15
|
+
});
|
|
16
|
+
export const updateLocalSettingsContract = defineApiContract({
|
|
17
|
+
method: 'put',
|
|
18
|
+
pathResolver: () => '/local-settings',
|
|
19
|
+
requestBodySchema: updateLocalSettingsSchema,
|
|
20
|
+
responsesByStatusCode: { 200: localSettingsSchema, ...errorResponses },
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=localSettings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"localSettings.js","sourceRoot":"","sources":["../../src/routes/localSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAA;AACpF,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C,8EAA8E;AAC9E,gFAAgF;AAChF,4EAA4E;AAC5E,0EAA0E;AAC1E,8DAA8D;AAC9D,kDAAkD;AAClD,8EAA8E;AAE9E,MAAM,CAAC,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;IACxD,MAAM,EAAE,KAAK;IACb,YAAY,EAAE,GAAG,EAAE,CAAC,iBAAiB;IACrC,qBAAqB,EAAE,EAAE,GAAG,EAAE,mBAAmB,EAAE,GAAG,cAAc,EAAE;CACvE,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAG,iBAAiB,CAAC;IAC3D,MAAM,EAAE,KAAK;IACb,YAAY,EAAE,GAAG,EAAE,CAAC,iBAAiB;IACrC,iBAAiB,EAAE,yBAAyB;IAC5C,qBAAqB,EAAE,EAAE,GAAG,EAAE,mBAAmB,EAAE,GAAG,cAAc,EAAE;CACvE,CAAC,CAAA"}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import { ContractNoBody } from '@toad-contracts/valibot';
|
|
2
|
+
import * as v from 'valibot';
|
|
3
|
+
export declare const listMergePresetsContract: {
|
|
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.ArraySchema<v.ObjectSchema<{
|
|
30
|
+
readonly id: v.StringSchema<undefined>;
|
|
31
|
+
readonly name: v.StringSchema<undefined>;
|
|
32
|
+
readonly maxComplexity: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
33
|
+
readonly maxRisk: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
34
|
+
readonly maxImpact: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
35
|
+
readonly ciMaxAttempts: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
36
|
+
readonly maxRequirementIterations: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
37
|
+
readonly maxRequirementConcernAllowed: v.PicklistSchema<["none", "low", "medium", "high"], undefined>;
|
|
38
|
+
readonly releaseWatchWindowMinutes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
39
|
+
readonly releaseMaxAttempts: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
40
|
+
readonly humanReviewGraceMinutes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
41
|
+
readonly isDefault: v.BooleanSchema<undefined>;
|
|
42
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
43
|
+
}, undefined>, undefined>;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export declare const createMergePresetContract: {
|
|
47
|
+
readonly method: "post";
|
|
48
|
+
readonly pathResolver: () => string;
|
|
49
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
50
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 60, undefined>]>;
|
|
51
|
+
readonly maxComplexity: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
52
|
+
readonly maxRisk: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
53
|
+
readonly maxImpact: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
54
|
+
readonly ciMaxAttempts: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 50, undefined>]>;
|
|
55
|
+
readonly maxRequirementIterations: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 20, undefined>]>;
|
|
56
|
+
readonly maxRequirementConcernAllowed: v.PicklistSchema<["none", "low", "medium", "high"], undefined>;
|
|
57
|
+
readonly releaseWatchWindowMinutes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 720, undefined>]>, 30>;
|
|
58
|
+
readonly releaseMaxAttempts: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 10, undefined>]>, 1>;
|
|
59
|
+
readonly humanReviewGraceMinutes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1440, undefined>]>, 10>;
|
|
60
|
+
readonly isDefault: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
61
|
+
}, undefined>;
|
|
62
|
+
readonly responsesByStatusCode: {
|
|
63
|
+
readonly '4xx': v.ObjectSchema<{
|
|
64
|
+
readonly error: v.ObjectSchema<{
|
|
65
|
+
readonly code: v.StringSchema<undefined>;
|
|
66
|
+
readonly message: v.StringSchema<undefined>;
|
|
67
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
68
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
69
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
70
|
+
readonly message: v.StringSchema<undefined>;
|
|
71
|
+
}, undefined>, undefined>, undefined>;
|
|
72
|
+
}, undefined>;
|
|
73
|
+
}, undefined>;
|
|
74
|
+
readonly '5xx': v.ObjectSchema<{
|
|
75
|
+
readonly error: v.ObjectSchema<{
|
|
76
|
+
readonly code: v.StringSchema<undefined>;
|
|
77
|
+
readonly message: v.StringSchema<undefined>;
|
|
78
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
79
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
80
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
81
|
+
readonly message: v.StringSchema<undefined>;
|
|
82
|
+
}, undefined>, undefined>, undefined>;
|
|
83
|
+
}, undefined>;
|
|
84
|
+
}, undefined>;
|
|
85
|
+
readonly 201: v.ObjectSchema<{
|
|
86
|
+
readonly id: v.StringSchema<undefined>;
|
|
87
|
+
readonly name: v.StringSchema<undefined>;
|
|
88
|
+
readonly maxComplexity: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
89
|
+
readonly maxRisk: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
90
|
+
readonly maxImpact: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
91
|
+
readonly ciMaxAttempts: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
92
|
+
readonly maxRequirementIterations: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
93
|
+
readonly maxRequirementConcernAllowed: v.PicklistSchema<["none", "low", "medium", "high"], undefined>;
|
|
94
|
+
readonly releaseWatchWindowMinutes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
95
|
+
readonly releaseMaxAttempts: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
96
|
+
readonly humanReviewGraceMinutes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
97
|
+
readonly isDefault: v.BooleanSchema<undefined>;
|
|
98
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
99
|
+
}, undefined>;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
export declare const updateMergePresetContract: {
|
|
103
|
+
readonly method: "patch";
|
|
104
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
105
|
+
readonly presetId: v.StringSchema<undefined>;
|
|
106
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
107
|
+
readonly pathResolver: ({ presetId }: {
|
|
108
|
+
presetId: string;
|
|
109
|
+
}) => string;
|
|
110
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
111
|
+
readonly name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 60, undefined>]>, undefined>;
|
|
112
|
+
readonly maxComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
113
|
+
readonly maxRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
114
|
+
readonly maxImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
115
|
+
readonly ciMaxAttempts: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 50, undefined>]>, undefined>;
|
|
116
|
+
readonly maxRequirementIterations: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 20, undefined>]>, undefined>;
|
|
117
|
+
readonly maxRequirementConcernAllowed: v.OptionalSchema<v.PicklistSchema<["none", "low", "medium", "high"], undefined>, undefined>;
|
|
118
|
+
readonly releaseWatchWindowMinutes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 720, undefined>]>, undefined>;
|
|
119
|
+
readonly releaseMaxAttempts: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 10, undefined>]>, undefined>;
|
|
120
|
+
readonly humanReviewGraceMinutes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1440, undefined>]>, undefined>;
|
|
121
|
+
readonly isDefault: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
122
|
+
}, undefined>;
|
|
123
|
+
readonly responsesByStatusCode: {
|
|
124
|
+
readonly '4xx': v.ObjectSchema<{
|
|
125
|
+
readonly error: v.ObjectSchema<{
|
|
126
|
+
readonly code: v.StringSchema<undefined>;
|
|
127
|
+
readonly message: v.StringSchema<undefined>;
|
|
128
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
129
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
130
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
131
|
+
readonly message: v.StringSchema<undefined>;
|
|
132
|
+
}, undefined>, undefined>, undefined>;
|
|
133
|
+
}, undefined>;
|
|
134
|
+
}, undefined>;
|
|
135
|
+
readonly '5xx': v.ObjectSchema<{
|
|
136
|
+
readonly error: v.ObjectSchema<{
|
|
137
|
+
readonly code: v.StringSchema<undefined>;
|
|
138
|
+
readonly message: v.StringSchema<undefined>;
|
|
139
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
140
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
141
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
142
|
+
readonly message: v.StringSchema<undefined>;
|
|
143
|
+
}, undefined>, undefined>, undefined>;
|
|
144
|
+
}, undefined>;
|
|
145
|
+
}, undefined>;
|
|
146
|
+
readonly 200: v.ObjectSchema<{
|
|
147
|
+
readonly id: v.StringSchema<undefined>;
|
|
148
|
+
readonly name: v.StringSchema<undefined>;
|
|
149
|
+
readonly maxComplexity: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
150
|
+
readonly maxRisk: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
151
|
+
readonly maxImpact: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
152
|
+
readonly ciMaxAttempts: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
153
|
+
readonly maxRequirementIterations: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
154
|
+
readonly maxRequirementConcernAllowed: v.PicklistSchema<["none", "low", "medium", "high"], undefined>;
|
|
155
|
+
readonly releaseWatchWindowMinutes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
156
|
+
readonly releaseMaxAttempts: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
157
|
+
readonly humanReviewGraceMinutes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
158
|
+
readonly isDefault: v.BooleanSchema<undefined>;
|
|
159
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
160
|
+
}, undefined>;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
export declare const deleteMergePresetContract: {
|
|
164
|
+
readonly method: "delete";
|
|
165
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
166
|
+
readonly presetId: v.StringSchema<undefined>;
|
|
167
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
168
|
+
readonly pathResolver: ({ presetId }: {
|
|
169
|
+
presetId: string;
|
|
170
|
+
}) => string;
|
|
171
|
+
readonly responsesByStatusCode: {
|
|
172
|
+
readonly '4xx': v.ObjectSchema<{
|
|
173
|
+
readonly error: v.ObjectSchema<{
|
|
174
|
+
readonly code: v.StringSchema<undefined>;
|
|
175
|
+
readonly message: v.StringSchema<undefined>;
|
|
176
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
177
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
178
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
179
|
+
readonly message: v.StringSchema<undefined>;
|
|
180
|
+
}, undefined>, undefined>, undefined>;
|
|
181
|
+
}, undefined>;
|
|
182
|
+
}, undefined>;
|
|
183
|
+
readonly '5xx': v.ObjectSchema<{
|
|
184
|
+
readonly error: v.ObjectSchema<{
|
|
185
|
+
readonly code: v.StringSchema<undefined>;
|
|
186
|
+
readonly message: v.StringSchema<undefined>;
|
|
187
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
188
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
189
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
190
|
+
readonly message: v.StringSchema<undefined>;
|
|
191
|
+
}, undefined>, undefined>, undefined>;
|
|
192
|
+
}, undefined>;
|
|
193
|
+
}, undefined>;
|
|
194
|
+
readonly 204: typeof ContractNoBody;
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
//# sourceMappingURL=merge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../src/routes/merge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqC,MAAM,yBAAyB,CAAA;AAC3F,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAiB5B,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAInC,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKpC,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMpC,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKpC,CAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ContractNoBody, defineApiContract, withObjectKeys } from '@toad-contracts/valibot';
|
|
2
|
+
import * as v from 'valibot';
|
|
3
|
+
import { createMergePresetSchema, mergeThresholdPresetSchema, updateMergePresetSchema, } from '../merge.js';
|
|
4
|
+
import { errorResponses } from './_shared.js';
|
|
5
|
+
// ---------------------------------------------------------------------------
|
|
6
|
+
// Merge threshold preset route contracts. Mounted under `/workspaces/:workspaceId`,
|
|
7
|
+
// so the paths here are relative to that prefix. See MergePresetController in
|
|
8
|
+
// @cat-factory/server.
|
|
9
|
+
// ---------------------------------------------------------------------------
|
|
10
|
+
const mergePresetListSchema = v.array(mergeThresholdPresetSchema);
|
|
11
|
+
const presetIdParams = withObjectKeys(v.object({ presetId: v.string() }));
|
|
12
|
+
export const listMergePresetsContract = defineApiContract({
|
|
13
|
+
method: 'get',
|
|
14
|
+
pathResolver: () => '/merge-presets',
|
|
15
|
+
responsesByStatusCode: { 200: mergePresetListSchema, ...errorResponses },
|
|
16
|
+
});
|
|
17
|
+
export const createMergePresetContract = defineApiContract({
|
|
18
|
+
method: 'post',
|
|
19
|
+
pathResolver: () => '/merge-presets',
|
|
20
|
+
requestBodySchema: createMergePresetSchema,
|
|
21
|
+
responsesByStatusCode: { 201: mergeThresholdPresetSchema, ...errorResponses },
|
|
22
|
+
});
|
|
23
|
+
export const updateMergePresetContract = defineApiContract({
|
|
24
|
+
method: 'patch',
|
|
25
|
+
requestPathParamsSchema: presetIdParams,
|
|
26
|
+
pathResolver: ({ presetId }) => `/merge-presets/${presetId}`,
|
|
27
|
+
requestBodySchema: updateMergePresetSchema,
|
|
28
|
+
responsesByStatusCode: { 200: mergeThresholdPresetSchema, ...errorResponses },
|
|
29
|
+
});
|
|
30
|
+
export const deleteMergePresetContract = defineApiContract({
|
|
31
|
+
method: 'delete',
|
|
32
|
+
requestPathParamsSchema: presetIdParams,
|
|
33
|
+
pathResolver: ({ presetId }) => `/merge-presets/${presetId}`,
|
|
34
|
+
responsesByStatusCode: { 204: ContractNoBody, ...errorResponses },
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=merge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merge.js","sourceRoot":"","sources":["../../src/routes/merge.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,uBAAuB,EACvB,0BAA0B,EAC1B,uBAAuB,GACxB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C,8EAA8E;AAC9E,oFAAoF;AACpF,8EAA8E;AAC9E,uBAAuB;AACvB,8EAA8E;AAE9E,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAA;AACjE,MAAM,cAAc,GAAG,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAA;AAEzE,MAAM,CAAC,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;IACxD,MAAM,EAAE,KAAK;IACb,YAAY,EAAE,GAAG,EAAE,CAAC,gBAAgB;IACpC,qBAAqB,EAAE,EAAE,GAAG,EAAE,qBAAqB,EAAE,GAAG,cAAc,EAAE;CACzE,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,iBAAiB,CAAC;IACzD,MAAM,EAAE,MAAM;IACd,YAAY,EAAE,GAAG,EAAE,CAAC,gBAAgB;IACpC,iBAAiB,EAAE,uBAAuB;IAC1C,qBAAqB,EAAE,EAAE,GAAG,EAAE,0BAA0B,EAAE,GAAG,cAAc,EAAE;CAC9E,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,iBAAiB,CAAC;IACzD,MAAM,EAAE,OAAO;IACf,uBAAuB,EAAE,cAAc;IACvC,YAAY,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,kBAAkB,QAAQ,EAAE;IAC5D,iBAAiB,EAAE,uBAAuB;IAC1C,qBAAqB,EAAE,EAAE,GAAG,EAAE,0BAA0B,EAAE,GAAG,cAAc,EAAE;CAC9E,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,iBAAiB,CAAC;IACzD,MAAM,EAAE,QAAQ;IAChB,uBAAuB,EAAE,cAAc;IACvC,YAAY,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,kBAAkB,QAAQ,EAAE;IAC5D,qBAAqB,EAAE,EAAE,GAAG,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE;CAClE,CAAC,CAAA"}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { ContractNoBody } from '@toad-contracts/valibot';
|
|
2
|
+
import * as v from 'valibot';
|
|
3
|
+
export declare const listModelPresetsContract: {
|
|
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.ArraySchema<v.ObjectSchema<{
|
|
30
|
+
readonly id: v.StringSchema<undefined>;
|
|
31
|
+
readonly name: v.StringSchema<undefined>;
|
|
32
|
+
readonly baseModelId: v.StringSchema<undefined>;
|
|
33
|
+
readonly overrides: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
|
|
34
|
+
readonly isDefault: v.BooleanSchema<undefined>;
|
|
35
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
36
|
+
}, undefined>, undefined>;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export declare const createModelPresetContract: {
|
|
40
|
+
readonly method: "post";
|
|
41
|
+
readonly pathResolver: () => string;
|
|
42
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
43
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 60, undefined>]>;
|
|
44
|
+
readonly baseModelId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>;
|
|
45
|
+
readonly overrides: v.OptionalSchema<v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>, undefined>, {}>;
|
|
46
|
+
readonly isDefault: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
47
|
+
}, undefined>;
|
|
48
|
+
readonly responsesByStatusCode: {
|
|
49
|
+
readonly '4xx': v.ObjectSchema<{
|
|
50
|
+
readonly error: v.ObjectSchema<{
|
|
51
|
+
readonly code: v.StringSchema<undefined>;
|
|
52
|
+
readonly message: v.StringSchema<undefined>;
|
|
53
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
54
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
55
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
56
|
+
readonly message: v.StringSchema<undefined>;
|
|
57
|
+
}, undefined>, undefined>, undefined>;
|
|
58
|
+
}, undefined>;
|
|
59
|
+
}, undefined>;
|
|
60
|
+
readonly '5xx': v.ObjectSchema<{
|
|
61
|
+
readonly error: v.ObjectSchema<{
|
|
62
|
+
readonly code: v.StringSchema<undefined>;
|
|
63
|
+
readonly message: v.StringSchema<undefined>;
|
|
64
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
65
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
66
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
67
|
+
readonly message: v.StringSchema<undefined>;
|
|
68
|
+
}, undefined>, undefined>, undefined>;
|
|
69
|
+
}, undefined>;
|
|
70
|
+
}, undefined>;
|
|
71
|
+
readonly 201: v.ObjectSchema<{
|
|
72
|
+
readonly id: v.StringSchema<undefined>;
|
|
73
|
+
readonly name: v.StringSchema<undefined>;
|
|
74
|
+
readonly baseModelId: v.StringSchema<undefined>;
|
|
75
|
+
readonly overrides: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
|
|
76
|
+
readonly isDefault: v.BooleanSchema<undefined>;
|
|
77
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
78
|
+
}, undefined>;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
export declare const updateModelPresetContract: {
|
|
82
|
+
readonly method: "patch";
|
|
83
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
84
|
+
readonly presetId: v.StringSchema<undefined>;
|
|
85
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
86
|
+
readonly pathResolver: ({ presetId }: {
|
|
87
|
+
presetId: string;
|
|
88
|
+
}) => string;
|
|
89
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
90
|
+
readonly name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 60, undefined>]>, undefined>;
|
|
91
|
+
readonly baseModelId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>, undefined>;
|
|
92
|
+
readonly overrides: v.OptionalSchema<v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>, undefined>, undefined>;
|
|
93
|
+
readonly isDefault: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
94
|
+
}, undefined>;
|
|
95
|
+
readonly responsesByStatusCode: {
|
|
96
|
+
readonly '4xx': v.ObjectSchema<{
|
|
97
|
+
readonly error: v.ObjectSchema<{
|
|
98
|
+
readonly code: v.StringSchema<undefined>;
|
|
99
|
+
readonly message: v.StringSchema<undefined>;
|
|
100
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
101
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
102
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
103
|
+
readonly message: v.StringSchema<undefined>;
|
|
104
|
+
}, undefined>, undefined>, undefined>;
|
|
105
|
+
}, undefined>;
|
|
106
|
+
}, undefined>;
|
|
107
|
+
readonly '5xx': v.ObjectSchema<{
|
|
108
|
+
readonly error: v.ObjectSchema<{
|
|
109
|
+
readonly code: v.StringSchema<undefined>;
|
|
110
|
+
readonly message: v.StringSchema<undefined>;
|
|
111
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
112
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
113
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
114
|
+
readonly message: v.StringSchema<undefined>;
|
|
115
|
+
}, undefined>, undefined>, undefined>;
|
|
116
|
+
}, undefined>;
|
|
117
|
+
}, undefined>;
|
|
118
|
+
readonly 200: v.ObjectSchema<{
|
|
119
|
+
readonly id: v.StringSchema<undefined>;
|
|
120
|
+
readonly name: v.StringSchema<undefined>;
|
|
121
|
+
readonly baseModelId: v.StringSchema<undefined>;
|
|
122
|
+
readonly overrides: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
|
|
123
|
+
readonly isDefault: v.BooleanSchema<undefined>;
|
|
124
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
125
|
+
}, undefined>;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
export declare const deleteModelPresetContract: {
|
|
129
|
+
readonly method: "delete";
|
|
130
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
131
|
+
readonly presetId: v.StringSchema<undefined>;
|
|
132
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
133
|
+
readonly pathResolver: ({ presetId }: {
|
|
134
|
+
presetId: string;
|
|
135
|
+
}) => string;
|
|
136
|
+
readonly responsesByStatusCode: {
|
|
137
|
+
readonly '4xx': v.ObjectSchema<{
|
|
138
|
+
readonly error: v.ObjectSchema<{
|
|
139
|
+
readonly code: v.StringSchema<undefined>;
|
|
140
|
+
readonly message: v.StringSchema<undefined>;
|
|
141
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
142
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
143
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
144
|
+
readonly message: v.StringSchema<undefined>;
|
|
145
|
+
}, undefined>, undefined>, undefined>;
|
|
146
|
+
}, undefined>;
|
|
147
|
+
}, undefined>;
|
|
148
|
+
readonly '5xx': v.ObjectSchema<{
|
|
149
|
+
readonly error: v.ObjectSchema<{
|
|
150
|
+
readonly code: v.StringSchema<undefined>;
|
|
151
|
+
readonly message: v.StringSchema<undefined>;
|
|
152
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
153
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
154
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
155
|
+
readonly message: v.StringSchema<undefined>;
|
|
156
|
+
}, undefined>, undefined>, undefined>;
|
|
157
|
+
}, undefined>;
|
|
158
|
+
}, undefined>;
|
|
159
|
+
readonly 204: typeof ContractNoBody;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
//# sourceMappingURL=model-presets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-presets.d.ts","sourceRoot":"","sources":["../../src/routes/model-presets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqC,MAAM,yBAAyB,CAAA;AAC3F,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAiB5B,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAInC,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKpC,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMpC,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKpC,CAAA"}
|