@cat-factory/contracts 0.35.0 → 0.37.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/auth.d.ts +11 -0
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +9 -0
- package/dist/auth.js.map +1 -1
- package/dist/routes/_shared.d.ts +9 -0
- package/dist/routes/_shared.d.ts.map +1 -1
- package/dist/routes/_shared.js +12 -0
- package/dist/routes/_shared.js.map +1 -1
- package/dist/routes/accounts.d.ts +13 -13
- package/dist/routes/accounts.js +2 -2
- package/dist/routes/accounts.js.map +1 -1
- package/dist/routes/agent-runs.d.ts +2 -2
- package/dist/routes/agent-runs.d.ts.map +1 -1
- package/dist/routes/agent-runs.js +3 -3
- package/dist/routes/agent-runs.js.map +1 -1
- package/dist/routes/api-keys.d.ts +154 -155
- package/dist/routes/api-keys.d.ts.map +1 -1
- package/dist/routes/api-keys.js +3 -4
- package/dist/routes/api-keys.js.map +1 -1
- package/dist/routes/auth.d.ts +67 -2
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/auth.js +20 -4
- package/dist/routes/auth.js.map +1 -1
- package/dist/routes/board.d.ts +853 -854
- package/dist/routes/board.d.ts.map +1 -1
- package/dist/routes/board.js +3 -4
- package/dist/routes/board.js.map +1 -1
- package/dist/routes/bootstrap.d.ts +3 -3
- package/dist/routes/bootstrap.d.ts.map +1 -1
- package/dist/routes/bootstrap.js +4 -4
- package/dist/routes/bootstrap.js.map +1 -1
- package/dist/routes/clarity.d.ts +6 -6
- package/dist/routes/clarity.js +2 -2
- package/dist/routes/clarity.js.map +1 -1
- package/dist/routes/consensus.d.ts +1 -1
- package/dist/routes/consensus.js +3 -3
- package/dist/routes/consensus.js.map +1 -1
- package/dist/routes/documents.d.ts +6 -6
- package/dist/routes/documents.d.ts.map +1 -1
- package/dist/routes/documents.js +3 -3
- package/dist/routes/documents.js.map +1 -1
- package/dist/routes/environments.d.ts +3 -3
- package/dist/routes/environments.d.ts.map +1 -1
- package/dist/routes/environments.js +3 -3
- package/dist/routes/environments.js.map +1 -1
- package/dist/routes/execution.d.ts +7 -7
- package/dist/routes/execution.js +3 -3
- package/dist/routes/execution.js.map +1 -1
- package/dist/routes/followUp.d.ts +1 -1
- package/dist/routes/followUp.js +2 -2
- package/dist/routes/followUp.js.map +1 -1
- package/dist/routes/fragment-library.d.ts +6 -6
- package/dist/routes/fragment-library.d.ts.map +1 -1
- package/dist/routes/fragment-library.js +4 -4
- package/dist/routes/fragment-library.js.map +1 -1
- package/dist/routes/github.d.ts +6 -6
- package/dist/routes/github.js +2 -2
- package/dist/routes/github.js.map +1 -1
- package/dist/routes/human-review.d.ts +235 -236
- package/dist/routes/human-review.d.ts.map +1 -1
- package/dist/routes/human-review.js +3 -4
- package/dist/routes/human-review.js.map +1 -1
- package/dist/routes/human-test.d.ts +1202 -1203
- package/dist/routes/human-test.d.ts.map +1 -1
- package/dist/routes/human-test.js +3 -4
- package/dist/routes/human-test.js.map +1 -1
- package/dist/routes/kaizen.d.ts +79 -80
- package/dist/routes/kaizen.d.ts.map +1 -1
- package/dist/routes/kaizen.js +3 -4
- package/dist/routes/kaizen.js.map +1 -1
- package/dist/routes/localModels.d.ts +2 -2
- package/dist/routes/localModels.d.ts.map +1 -1
- package/dist/routes/localModels.js +3 -3
- package/dist/routes/localModels.js.map +1 -1
- package/dist/routes/merge.d.ts +2 -2
- package/dist/routes/merge.d.ts.map +1 -1
- package/dist/routes/merge.js +3 -3
- package/dist/routes/merge.js.map +1 -1
- package/dist/routes/model-presets.d.ts +2 -2
- package/dist/routes/model-presets.d.ts.map +1 -1
- package/dist/routes/model-presets.js +3 -3
- package/dist/routes/model-presets.js.map +1 -1
- package/dist/routes/models.d.ts +86 -87
- package/dist/routes/models.d.ts.map +1 -1
- package/dist/routes/models.js +3 -4
- package/dist/routes/models.js.map +1 -1
- package/dist/routes/notifications.d.ts +2 -2
- package/dist/routes/notifications.d.ts.map +1 -1
- package/dist/routes/notifications.js +3 -3
- package/dist/routes/notifications.js.map +1 -1
- package/dist/routes/openrouter.d.ts +88 -89
- package/dist/routes/openrouter.d.ts.map +1 -1
- package/dist/routes/openrouter.js +3 -4
- package/dist/routes/openrouter.js.map +1 -1
- package/dist/routes/personal-subscriptions.d.ts +1 -1
- package/dist/routes/personal-subscriptions.d.ts.map +1 -1
- package/dist/routes/personal-subscriptions.js +3 -3
- package/dist/routes/personal-subscriptions.js.map +1 -1
- package/dist/routes/pipelines.d.ts +4 -4
- package/dist/routes/pipelines.d.ts.map +1 -1
- package/dist/routes/pipelines.js +3 -3
- package/dist/routes/pipelines.js.map +1 -1
- package/dist/routes/recurring.d.ts +4 -4
- package/dist/routes/recurring.d.ts.map +1 -1
- package/dist/routes/recurring.js +3 -3
- package/dist/routes/recurring.js.map +1 -1
- package/dist/routes/release.d.ts +2 -2
- package/dist/routes/release.d.ts.map +1 -1
- package/dist/routes/release.js +3 -3
- package/dist/routes/release.js.map +1 -1
- package/dist/routes/requirements.d.ts +7 -7
- package/dist/routes/requirements.js +2 -2
- package/dist/routes/requirements.js.map +1 -1
- package/dist/routes/sandbox.d.ts +5 -5
- package/dist/routes/sandbox.d.ts.map +1 -1
- package/dist/routes/sandbox.js +5 -5
- package/dist/routes/sandbox.js.map +1 -1
- package/dist/routes/services.d.ts +3 -3
- package/dist/routes/services.d.ts.map +1 -1
- package/dist/routes/services.js +3 -3
- package/dist/routes/services.js.map +1 -1
- package/dist/routes/spec.d.ts +51 -52
- package/dist/routes/spec.d.ts.map +1 -1
- package/dist/routes/spec.js +3 -4
- package/dist/routes/spec.js.map +1 -1
- package/dist/routes/tasks.d.ts +7 -7
- package/dist/routes/tasks.d.ts.map +1 -1
- package/dist/routes/tasks.js +3 -3
- package/dist/routes/tasks.js.map +1 -1
- package/dist/routes/user-secret.d.ts +4 -4
- package/dist/routes/user-secret.d.ts.map +1 -1
- package/dist/routes/user-secret.js +3 -3
- package/dist/routes/user-secret.js.map +1 -1
- package/dist/routes/vendor-credentials.d.ts +1 -1
- package/dist/routes/vendor-credentials.d.ts.map +1 -1
- package/dist/routes/vendor-credentials.js +3 -3
- package/dist/routes/vendor-credentials.js.map +1 -1
- package/dist/routes/workspaces.d.ts +3 -3
- package/dist/routes/workspaces.d.ts.map +1 -1
- package/dist/routes/workspaces.js +5 -5
- package/dist/routes/workspaces.js.map +1 -1
- package/package.json +1 -1
package/dist/routes/models.d.ts
CHANGED
|
@@ -1,121 +1,120 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
1
|
export declare const listModelsContract: {
|
|
3
2
|
readonly method: "get";
|
|
4
3
|
readonly pathResolver: () => string;
|
|
5
4
|
readonly responsesByStatusCode: {
|
|
6
|
-
readonly '4xx':
|
|
7
|
-
readonly error:
|
|
8
|
-
readonly code:
|
|
9
|
-
readonly message:
|
|
10
|
-
readonly details:
|
|
11
|
-
readonly issues:
|
|
12
|
-
readonly path:
|
|
13
|
-
readonly message:
|
|
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>;
|
|
14
13
|
}, undefined>, undefined>, undefined>;
|
|
15
14
|
}, undefined>;
|
|
16
15
|
}, undefined>;
|
|
17
|
-
readonly '5xx':
|
|
18
|
-
readonly error:
|
|
19
|
-
readonly code:
|
|
20
|
-
readonly message:
|
|
21
|
-
readonly details:
|
|
22
|
-
readonly issues:
|
|
23
|
-
readonly path:
|
|
24
|
-
readonly message:
|
|
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>;
|
|
25
24
|
}, undefined>, undefined>, undefined>;
|
|
26
25
|
}, undefined>;
|
|
27
26
|
}, undefined>;
|
|
28
|
-
readonly 200:
|
|
29
|
-
readonly id:
|
|
30
|
-
readonly label:
|
|
31
|
-
readonly description:
|
|
32
|
-
readonly flavor:
|
|
33
|
-
readonly available:
|
|
34
|
-
readonly providerLabel:
|
|
35
|
-
readonly provider:
|
|
36
|
-
readonly model:
|
|
37
|
-
readonly vendor:
|
|
38
|
-
readonly cost:
|
|
39
|
-
readonly inputPerMillion:
|
|
40
|
-
readonly outputPerMillion:
|
|
41
|
-
readonly currency:
|
|
27
|
+
readonly 200: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
28
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
29
|
+
readonly label: import("valibot").StringSchema<undefined>;
|
|
30
|
+
readonly description: import("valibot").StringSchema<undefined>;
|
|
31
|
+
readonly flavor: import("valibot").PicklistSchema<["cloudflare", "direct", "openrouter", "subscription"], undefined>;
|
|
32
|
+
readonly available: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
33
|
+
readonly providerLabel: import("valibot").StringSchema<undefined>;
|
|
34
|
+
readonly provider: import("valibot").StringSchema<undefined>;
|
|
35
|
+
readonly model: import("valibot").StringSchema<undefined>;
|
|
36
|
+
readonly vendor: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["claude", "codex", "glm", "kimi", "deepseek"], undefined>, undefined>;
|
|
37
|
+
readonly cost: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
38
|
+
readonly inputPerMillion: import("valibot").NumberSchema<undefined>;
|
|
39
|
+
readonly outputPerMillion: import("valibot").NumberSchema<undefined>;
|
|
40
|
+
readonly currency: import("valibot").StringSchema<undefined>;
|
|
42
41
|
}, undefined>, undefined>;
|
|
43
|
-
readonly contextTokens:
|
|
44
|
-
readonly quotaBased:
|
|
45
|
-
readonly subscription:
|
|
46
|
-
readonly vendor:
|
|
47
|
-
readonly providerLabel:
|
|
48
|
-
readonly provider:
|
|
49
|
-
readonly model:
|
|
50
|
-
readonly cost:
|
|
51
|
-
readonly inputPerMillion:
|
|
52
|
-
readonly outputPerMillion:
|
|
53
|
-
readonly currency:
|
|
42
|
+
readonly contextTokens: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
43
|
+
readonly quotaBased: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
44
|
+
readonly subscription: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
45
|
+
readonly vendor: import("valibot").PicklistSchema<["claude", "codex", "glm", "kimi", "deepseek"], undefined>;
|
|
46
|
+
readonly providerLabel: import("valibot").StringSchema<undefined>;
|
|
47
|
+
readonly provider: import("valibot").StringSchema<undefined>;
|
|
48
|
+
readonly model: import("valibot").StringSchema<undefined>;
|
|
49
|
+
readonly cost: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
50
|
+
readonly inputPerMillion: import("valibot").NumberSchema<undefined>;
|
|
51
|
+
readonly outputPerMillion: import("valibot").NumberSchema<undefined>;
|
|
52
|
+
readonly currency: import("valibot").StringSchema<undefined>;
|
|
54
53
|
}, undefined>, undefined>;
|
|
55
|
-
readonly contextTokens:
|
|
54
|
+
readonly contextTokens: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
56
55
|
}, undefined>, undefined>;
|
|
57
56
|
}, undefined>, undefined>;
|
|
58
57
|
};
|
|
59
58
|
};
|
|
60
59
|
export declare const listWorkspaceModelsContract: {
|
|
61
60
|
readonly method: "get";
|
|
62
|
-
readonly requestPathParamsSchema:
|
|
63
|
-
|
|
61
|
+
readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
|
|
62
|
+
workspaceId: import("valibot").StringSchema<undefined>;
|
|
64
63
|
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
65
64
|
readonly pathResolver: ({ workspaceId }: {
|
|
66
65
|
workspaceId: string;
|
|
67
66
|
}) => string;
|
|
68
67
|
readonly responsesByStatusCode: {
|
|
69
|
-
readonly '4xx':
|
|
70
|
-
readonly error:
|
|
71
|
-
readonly code:
|
|
72
|
-
readonly message:
|
|
73
|
-
readonly details:
|
|
74
|
-
readonly issues:
|
|
75
|
-
readonly path:
|
|
76
|
-
readonly message:
|
|
68
|
+
readonly '4xx': 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>;
|
|
77
76
|
}, undefined>, undefined>, undefined>;
|
|
78
77
|
}, undefined>;
|
|
79
78
|
}, undefined>;
|
|
80
|
-
readonly '5xx':
|
|
81
|
-
readonly error:
|
|
82
|
-
readonly code:
|
|
83
|
-
readonly message:
|
|
84
|
-
readonly details:
|
|
85
|
-
readonly issues:
|
|
86
|
-
readonly path:
|
|
87
|
-
readonly message:
|
|
79
|
+
readonly '5xx': import("valibot").ObjectSchema<{
|
|
80
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
81
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
82
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
83
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
84
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
85
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
86
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
88
87
|
}, undefined>, undefined>, undefined>;
|
|
89
88
|
}, undefined>;
|
|
90
89
|
}, undefined>;
|
|
91
|
-
readonly 200:
|
|
92
|
-
readonly id:
|
|
93
|
-
readonly label:
|
|
94
|
-
readonly description:
|
|
95
|
-
readonly flavor:
|
|
96
|
-
readonly available:
|
|
97
|
-
readonly providerLabel:
|
|
98
|
-
readonly provider:
|
|
99
|
-
readonly model:
|
|
100
|
-
readonly vendor:
|
|
101
|
-
readonly cost:
|
|
102
|
-
readonly inputPerMillion:
|
|
103
|
-
readonly outputPerMillion:
|
|
104
|
-
readonly currency:
|
|
90
|
+
readonly 200: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
91
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
92
|
+
readonly label: import("valibot").StringSchema<undefined>;
|
|
93
|
+
readonly description: import("valibot").StringSchema<undefined>;
|
|
94
|
+
readonly flavor: import("valibot").PicklistSchema<["cloudflare", "direct", "openrouter", "subscription"], undefined>;
|
|
95
|
+
readonly available: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
96
|
+
readonly providerLabel: import("valibot").StringSchema<undefined>;
|
|
97
|
+
readonly provider: import("valibot").StringSchema<undefined>;
|
|
98
|
+
readonly model: import("valibot").StringSchema<undefined>;
|
|
99
|
+
readonly vendor: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["claude", "codex", "glm", "kimi", "deepseek"], undefined>, undefined>;
|
|
100
|
+
readonly cost: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
101
|
+
readonly inputPerMillion: import("valibot").NumberSchema<undefined>;
|
|
102
|
+
readonly outputPerMillion: import("valibot").NumberSchema<undefined>;
|
|
103
|
+
readonly currency: import("valibot").StringSchema<undefined>;
|
|
105
104
|
}, undefined>, undefined>;
|
|
106
|
-
readonly contextTokens:
|
|
107
|
-
readonly quotaBased:
|
|
108
|
-
readonly subscription:
|
|
109
|
-
readonly vendor:
|
|
110
|
-
readonly providerLabel:
|
|
111
|
-
readonly provider:
|
|
112
|
-
readonly model:
|
|
113
|
-
readonly cost:
|
|
114
|
-
readonly inputPerMillion:
|
|
115
|
-
readonly outputPerMillion:
|
|
116
|
-
readonly currency:
|
|
105
|
+
readonly contextTokens: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
106
|
+
readonly quotaBased: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
107
|
+
readonly subscription: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
108
|
+
readonly vendor: import("valibot").PicklistSchema<["claude", "codex", "glm", "kimi", "deepseek"], undefined>;
|
|
109
|
+
readonly providerLabel: import("valibot").StringSchema<undefined>;
|
|
110
|
+
readonly provider: import("valibot").StringSchema<undefined>;
|
|
111
|
+
readonly model: import("valibot").StringSchema<undefined>;
|
|
112
|
+
readonly cost: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
113
|
+
readonly inputPerMillion: import("valibot").NumberSchema<undefined>;
|
|
114
|
+
readonly outputPerMillion: import("valibot").NumberSchema<undefined>;
|
|
115
|
+
readonly currency: import("valibot").StringSchema<undefined>;
|
|
117
116
|
}, undefined>, undefined>;
|
|
118
|
-
readonly contextTokens:
|
|
117
|
+
readonly contextTokens: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
119
118
|
}, undefined>, undefined>;
|
|
120
119
|
}, undefined>, undefined>;
|
|
121
120
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/routes/models.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/routes/models.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI7B,CAAA;AAIF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKtC,CAAA"}
|
package/dist/routes/models.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { defineApiContract
|
|
2
|
-
import * as v from 'valibot';
|
|
1
|
+
import { defineApiContract } from '@toad-contracts/valibot';
|
|
3
2
|
import { modelCatalogSchema } from '../entities.js';
|
|
4
|
-
import { errorResponses } from './_shared.js';
|
|
3
|
+
import { errorResponses, singleStringParam } from './_shared.js';
|
|
5
4
|
// ---------------------------------------------------------------------------
|
|
6
5
|
// Model picker catalog route contracts. The ModelController is mounted at `/`,
|
|
7
6
|
// so both paths are absolute and `workspaceId` IS a path param. See
|
|
8
7
|
// ModelController in @cat-factory/server.
|
|
9
8
|
// ---------------------------------------------------------------------------
|
|
10
|
-
const workspaceIdParams =
|
|
9
|
+
const workspaceIdParams = singleStringParam('workspaceId');
|
|
11
10
|
// Deployment-level catalog (no workspace context).
|
|
12
11
|
export const listModelsContract = defineApiContract({
|
|
13
12
|
method: 'get',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/routes/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/routes/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACnD,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAEhE,8EAA8E;AAC9E,+EAA+E;AAC/E,oEAAoE;AACpE,0CAA0C;AAC1C,8EAA8E;AAE9E,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,aAAa,CAAC,CAAA;AAE1D,mDAAmD;AACnD,MAAM,CAAC,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;IAClD,MAAM,EAAE,KAAK;IACb,YAAY,EAAE,GAAG,EAAE,CAAC,SAAS;IAC7B,qBAAqB,EAAE,EAAE,GAAG,EAAE,kBAAkB,EAAE,GAAG,cAAc,EAAE;CACtE,CAAC,CAAA;AAEF,yFAAyF;AACzF,wFAAwF;AACxF,MAAM,CAAC,MAAM,2BAA2B,GAAG,iBAAiB,CAAC;IAC3D,MAAM,EAAE,KAAK;IACb,uBAAuB,EAAE,iBAAiB;IAC1C,YAAY,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,eAAe,WAAW,SAAS;IACtE,qBAAqB,EAAE,EAAE,GAAG,EAAE,kBAAkB,EAAE,GAAG,cAAc,EAAE;CACtE,CAAC,CAAA"}
|
|
@@ -69,7 +69,7 @@ export declare const listNotificationsContract: {
|
|
|
69
69
|
export declare const actNotificationContract: {
|
|
70
70
|
readonly method: "post";
|
|
71
71
|
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
72
|
-
|
|
72
|
+
notificationId: v.StringSchema<undefined>;
|
|
73
73
|
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
74
74
|
readonly pathResolver: ({ notificationId }: {
|
|
75
75
|
notificationId: string;
|
|
@@ -141,7 +141,7 @@ export declare const actNotificationContract: {
|
|
|
141
141
|
export declare const dismissNotificationContract: {
|
|
142
142
|
readonly method: "post";
|
|
143
143
|
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
144
|
-
|
|
144
|
+
notificationId: v.StringSchema<undefined>;
|
|
145
145
|
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
146
146
|
readonly pathResolver: ({ notificationId }: {
|
|
147
147
|
notificationId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../src/routes/notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../src/routes/notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIpC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMlC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMtC,CAAA"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ContractNoBody, defineApiContract
|
|
1
|
+
import { ContractNoBody, defineApiContract } from '@toad-contracts/valibot';
|
|
2
2
|
import * as v from 'valibot';
|
|
3
3
|
import { notificationSchema } from '../notifications.js';
|
|
4
|
-
import { errorResponses } from './_shared.js';
|
|
4
|
+
import { errorResponses, singleStringParam } from './_shared.js';
|
|
5
5
|
// ---------------------------------------------------------------------------
|
|
6
6
|
// Notification inbox route contracts. Mounted under `/workspaces/:workspaceId`,
|
|
7
7
|
// so the paths here are relative to that prefix (the frontend supplies it via
|
|
8
8
|
// `pathPrefix`, the backend via the controller's mount point).
|
|
9
9
|
// ---------------------------------------------------------------------------
|
|
10
10
|
const notificationListSchema = v.array(notificationSchema);
|
|
11
|
-
const notificationIdParams =
|
|
11
|
+
const notificationIdParams = singleStringParam('notificationId');
|
|
12
12
|
export const listNotificationsContract = defineApiContract({
|
|
13
13
|
method: 'get',
|
|
14
14
|
pathResolver: () => '/notifications',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../src/routes/notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../src/routes/notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AACxD,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAEhE,8EAA8E;AAC9E,gFAAgF;AAChF,8EAA8E;AAC9E,+DAA+D;AAC/D,8EAA8E;AAE9E,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAA;AAC1D,MAAM,oBAAoB,GAAG,iBAAiB,CAAC,gBAAgB,CAAC,CAAA;AAEhE,MAAM,CAAC,MAAM,yBAAyB,GAAG,iBAAiB,CAAC;IACzD,MAAM,EAAE,KAAK;IACb,YAAY,EAAE,GAAG,EAAE,CAAC,gBAAgB;IACpC,qBAAqB,EAAE,EAAE,GAAG,EAAE,sBAAsB,EAAE,GAAG,cAAc,EAAE;CAC1E,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,iBAAiB,CAAC;IACvD,MAAM,EAAE,MAAM;IACd,uBAAuB,EAAE,oBAAoB;IAC7C,YAAY,EAAE,CAAC,EAAE,cAAc,EAAE,EAAE,EAAE,CAAC,kBAAkB,cAAc,MAAM;IAC5E,iBAAiB,EAAE,cAAc;IACjC,qBAAqB,EAAE,EAAE,GAAG,EAAE,kBAAkB,EAAE,GAAG,cAAc,EAAE;CACtE,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAG,iBAAiB,CAAC;IAC3D,MAAM,EAAE,MAAM;IACd,uBAAuB,EAAE,oBAAoB;IAC7C,YAAY,EAAE,CAAC,EAAE,cAAc,EAAE,EAAE,EAAE,CAAC,kBAAkB,cAAc,UAAU;IAChF,iBAAiB,EAAE,cAAc;IACjC,qBAAqB,EAAE,EAAE,GAAG,EAAE,kBAAkB,EAAE,GAAG,cAAc,EAAE;CACtE,CAAC,CAAA"}
|
|
@@ -1,144 +1,143 @@
|
|
|
1
1
|
import { ContractNoBody } from '@toad-contracts/valibot';
|
|
2
|
-
import * as v from 'valibot';
|
|
3
2
|
export declare const getOpenRouterCatalogContract: {
|
|
4
3
|
readonly method: "get";
|
|
5
|
-
readonly requestPathParamsSchema:
|
|
6
|
-
|
|
4
|
+
readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
|
|
5
|
+
workspaceId: import("valibot").StringSchema<undefined>;
|
|
7
6
|
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
8
7
|
readonly pathResolver: ({ workspaceId }: {
|
|
9
8
|
workspaceId: string;
|
|
10
9
|
}) => string;
|
|
11
10
|
readonly responsesByStatusCode: {
|
|
12
|
-
readonly '4xx':
|
|
13
|
-
readonly error:
|
|
14
|
-
readonly code:
|
|
15
|
-
readonly message:
|
|
16
|
-
readonly details:
|
|
17
|
-
readonly issues:
|
|
18
|
-
readonly path:
|
|
19
|
-
readonly message:
|
|
11
|
+
readonly '4xx': import("valibot").ObjectSchema<{
|
|
12
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
13
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
14
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
15
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
16
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
17
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
18
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
20
19
|
}, undefined>, undefined>, undefined>;
|
|
21
20
|
}, undefined>;
|
|
22
21
|
}, undefined>;
|
|
23
|
-
readonly '5xx':
|
|
24
|
-
readonly error:
|
|
25
|
-
readonly code:
|
|
26
|
-
readonly message:
|
|
27
|
-
readonly details:
|
|
28
|
-
readonly issues:
|
|
29
|
-
readonly path:
|
|
30
|
-
readonly message:
|
|
22
|
+
readonly '5xx': import("valibot").ObjectSchema<{
|
|
23
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
24
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
25
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
26
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
27
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
28
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
29
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
31
30
|
}, undefined>, undefined>, undefined>;
|
|
32
31
|
}, undefined>;
|
|
33
32
|
}, undefined>;
|
|
34
|
-
readonly 200:
|
|
35
|
-
readonly models:
|
|
36
|
-
readonly id:
|
|
37
|
-
readonly name:
|
|
38
|
-
readonly contextLength:
|
|
39
|
-
readonly inputPerMillion:
|
|
40
|
-
readonly outputPerMillion:
|
|
33
|
+
readonly 200: import("valibot").ObjectSchema<{
|
|
34
|
+
readonly models: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
35
|
+
readonly id: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>;
|
|
36
|
+
readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>;
|
|
37
|
+
readonly contextLength: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
38
|
+
readonly inputPerMillion: import("valibot").NumberSchema<undefined>;
|
|
39
|
+
readonly outputPerMillion: import("valibot").NumberSchema<undefined>;
|
|
41
40
|
}, undefined>, undefined>;
|
|
42
|
-
readonly createdAt:
|
|
43
|
-
readonly updatedAt:
|
|
41
|
+
readonly createdAt: import("valibot").NumberSchema<undefined>;
|
|
42
|
+
readonly updatedAt: import("valibot").NumberSchema<undefined>;
|
|
44
43
|
}, undefined>;
|
|
45
44
|
};
|
|
46
45
|
};
|
|
47
46
|
export declare const upsertOpenRouterCatalogContract: {
|
|
48
47
|
readonly method: "put";
|
|
49
|
-
readonly requestPathParamsSchema:
|
|
50
|
-
|
|
48
|
+
readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
|
|
49
|
+
workspaceId: import("valibot").StringSchema<undefined>;
|
|
51
50
|
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
52
51
|
readonly pathResolver: ({ workspaceId }: {
|
|
53
52
|
workspaceId: string;
|
|
54
53
|
}) => string;
|
|
55
|
-
readonly requestBodySchema:
|
|
56
|
-
readonly models:
|
|
57
|
-
readonly id:
|
|
58
|
-
readonly name:
|
|
59
|
-
readonly contextLength:
|
|
60
|
-
readonly inputPerMillion:
|
|
61
|
-
readonly outputPerMillion:
|
|
54
|
+
readonly requestBodySchema: import("valibot").ObjectSchema<{
|
|
55
|
+
readonly models: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
56
|
+
readonly id: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>;
|
|
57
|
+
readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>;
|
|
58
|
+
readonly contextLength: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
59
|
+
readonly inputPerMillion: import("valibot").NumberSchema<undefined>;
|
|
60
|
+
readonly outputPerMillion: import("valibot").NumberSchema<undefined>;
|
|
62
61
|
}, undefined>, undefined>;
|
|
63
62
|
}, undefined>;
|
|
64
63
|
readonly responsesByStatusCode: {
|
|
65
|
-
readonly '4xx':
|
|
66
|
-
readonly error:
|
|
67
|
-
readonly code:
|
|
68
|
-
readonly message:
|
|
69
|
-
readonly details:
|
|
70
|
-
readonly issues:
|
|
71
|
-
readonly path:
|
|
72
|
-
readonly message:
|
|
64
|
+
readonly '4xx': import("valibot").ObjectSchema<{
|
|
65
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
66
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
67
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
68
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
69
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
70
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
71
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
73
72
|
}, undefined>, undefined>, undefined>;
|
|
74
73
|
}, undefined>;
|
|
75
74
|
}, undefined>;
|
|
76
|
-
readonly '5xx':
|
|
77
|
-
readonly error:
|
|
78
|
-
readonly code:
|
|
79
|
-
readonly message:
|
|
80
|
-
readonly details:
|
|
81
|
-
readonly issues:
|
|
82
|
-
readonly path:
|
|
83
|
-
readonly message:
|
|
75
|
+
readonly '5xx': import("valibot").ObjectSchema<{
|
|
76
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
77
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
78
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
79
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
80
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
81
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
82
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
84
83
|
}, undefined>, undefined>, undefined>;
|
|
85
84
|
}, undefined>;
|
|
86
85
|
}, undefined>;
|
|
87
|
-
readonly 200:
|
|
88
|
-
readonly models:
|
|
89
|
-
readonly id:
|
|
90
|
-
readonly name:
|
|
91
|
-
readonly contextLength:
|
|
92
|
-
readonly inputPerMillion:
|
|
93
|
-
readonly outputPerMillion:
|
|
86
|
+
readonly 200: import("valibot").ObjectSchema<{
|
|
87
|
+
readonly models: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
88
|
+
readonly id: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>;
|
|
89
|
+
readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>;
|
|
90
|
+
readonly contextLength: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
91
|
+
readonly inputPerMillion: import("valibot").NumberSchema<undefined>;
|
|
92
|
+
readonly outputPerMillion: import("valibot").NumberSchema<undefined>;
|
|
94
93
|
}, undefined>, undefined>;
|
|
95
|
-
readonly createdAt:
|
|
96
|
-
readonly updatedAt:
|
|
94
|
+
readonly createdAt: import("valibot").NumberSchema<undefined>;
|
|
95
|
+
readonly updatedAt: import("valibot").NumberSchema<undefined>;
|
|
97
96
|
}, undefined>;
|
|
98
97
|
};
|
|
99
98
|
};
|
|
100
99
|
export declare const refreshOpenRouterCatalogContract: {
|
|
101
100
|
readonly method: "post";
|
|
102
|
-
readonly requestPathParamsSchema:
|
|
103
|
-
|
|
101
|
+
readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
|
|
102
|
+
workspaceId: import("valibot").StringSchema<undefined>;
|
|
104
103
|
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
105
104
|
readonly pathResolver: ({ workspaceId }: {
|
|
106
105
|
workspaceId: string;
|
|
107
106
|
}) => string;
|
|
108
107
|
readonly requestBodySchema: typeof ContractNoBody;
|
|
109
108
|
readonly responsesByStatusCode: {
|
|
110
|
-
readonly '4xx':
|
|
111
|
-
readonly error:
|
|
112
|
-
readonly code:
|
|
113
|
-
readonly message:
|
|
114
|
-
readonly details:
|
|
115
|
-
readonly issues:
|
|
116
|
-
readonly path:
|
|
117
|
-
readonly message:
|
|
109
|
+
readonly '4xx': import("valibot").ObjectSchema<{
|
|
110
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
111
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
112
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
113
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
114
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
115
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
116
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
118
117
|
}, undefined>, undefined>, undefined>;
|
|
119
118
|
}, undefined>;
|
|
120
119
|
}, undefined>;
|
|
121
|
-
readonly '5xx':
|
|
122
|
-
readonly error:
|
|
123
|
-
readonly code:
|
|
124
|
-
readonly message:
|
|
125
|
-
readonly details:
|
|
126
|
-
readonly issues:
|
|
127
|
-
readonly path:
|
|
128
|
-
readonly message:
|
|
120
|
+
readonly '5xx': import("valibot").ObjectSchema<{
|
|
121
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
122
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
123
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
124
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
125
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
126
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
127
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
129
128
|
}, undefined>, undefined>, undefined>;
|
|
130
129
|
}, undefined>;
|
|
131
130
|
}, undefined>;
|
|
132
|
-
readonly 200:
|
|
133
|
-
readonly reachable:
|
|
134
|
-
readonly models:
|
|
135
|
-
readonly id:
|
|
136
|
-
readonly name:
|
|
137
|
-
readonly contextLength:
|
|
138
|
-
readonly inputPerMillion:
|
|
139
|
-
readonly outputPerMillion:
|
|
131
|
+
readonly 200: import("valibot").ObjectSchema<{
|
|
132
|
+
readonly reachable: import("valibot").BooleanSchema<undefined>;
|
|
133
|
+
readonly models: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
134
|
+
readonly id: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>;
|
|
135
|
+
readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>;
|
|
136
|
+
readonly contextLength: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
137
|
+
readonly inputPerMillion: import("valibot").NumberSchema<undefined>;
|
|
138
|
+
readonly outputPerMillion: import("valibot").NumberSchema<undefined>;
|
|
140
139
|
}, undefined>, undefined>;
|
|
141
|
-
readonly error:
|
|
140
|
+
readonly error: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
142
141
|
}, undefined>;
|
|
143
142
|
};
|
|
144
143
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openrouter.d.ts","sourceRoot":"","sources":["../../src/routes/openrouter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"openrouter.d.ts","sourceRoot":"","sources":["../../src/routes/openrouter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAiB3E,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKvC,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM1C,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM3C,CAAA"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { ContractNoBody, defineApiContract
|
|
2
|
-
import * as v from 'valibot';
|
|
1
|
+
import { ContractNoBody, defineApiContract } from '@toad-contracts/valibot';
|
|
3
2
|
import { openRouterCatalogSchema, openRouterRefreshResultSchema, upsertOpenRouterCatalogSchema, } from '../openrouter.js';
|
|
4
|
-
import { errorResponses } from './_shared.js';
|
|
3
|
+
import { errorResponses, singleStringParam } from './_shared.js';
|
|
5
4
|
// ---------------------------------------------------------------------------
|
|
6
5
|
// Per-workspace OpenRouter dynamic-catalog route contracts. The
|
|
7
6
|
// OpenRouterCatalogController is mounted at `/`, so the paths are absolute and
|
|
8
7
|
// `workspaceId` IS a path param. See OpenRouterCatalogController in
|
|
9
8
|
// @cat-factory/server.
|
|
10
9
|
// ---------------------------------------------------------------------------
|
|
11
|
-
const workspaceIdParams =
|
|
10
|
+
const workspaceIdParams = singleStringParam('workspaceId');
|
|
12
11
|
export const getOpenRouterCatalogContract = defineApiContract({
|
|
13
12
|
method: 'get',
|
|
14
13
|
requestPathParamsSchema: workspaceIdParams,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openrouter.js","sourceRoot":"","sources":["../../src/routes/openrouter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"openrouter.js","sourceRoot":"","sources":["../../src/routes/openrouter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,EACL,uBAAuB,EACvB,6BAA6B,EAC7B,6BAA6B,GAC9B,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAEhE,8EAA8E;AAC9E,gEAAgE;AAChE,+EAA+E;AAC/E,oEAAoE;AACpE,uBAAuB;AACvB,8EAA8E;AAE9E,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,aAAa,CAAC,CAAA;AAE1D,MAAM,CAAC,MAAM,4BAA4B,GAAG,iBAAiB,CAAC;IAC5D,MAAM,EAAE,KAAK;IACb,uBAAuB,EAAE,iBAAiB;IAC1C,YAAY,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,eAAe,WAAW,qBAAqB;IAClF,qBAAqB,EAAE,EAAE,GAAG,EAAE,uBAAuB,EAAE,GAAG,cAAc,EAAE;CAC3E,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAAG,iBAAiB,CAAC;IAC/D,MAAM,EAAE,KAAK;IACb,uBAAuB,EAAE,iBAAiB;IAC1C,YAAY,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,eAAe,WAAW,qBAAqB;IAClF,iBAAiB,EAAE,6BAA6B;IAChD,qBAAqB,EAAE,EAAE,GAAG,EAAE,uBAAuB,EAAE,GAAG,cAAc,EAAE;CAC3E,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,gCAAgC,GAAG,iBAAiB,CAAC;IAChE,MAAM,EAAE,MAAM;IACd,uBAAuB,EAAE,iBAAiB;IAC1C,YAAY,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,eAAe,WAAW,qBAAqB;IAClF,iBAAiB,EAAE,cAAc;IACjC,qBAAqB,EAAE,EAAE,GAAG,EAAE,6BAA6B,EAAE,GAAG,cAAc,EAAE;CACjF,CAAC,CAAA"}
|
|
@@ -90,7 +90,7 @@ export declare const storePersonalSubscriptionContract: {
|
|
|
90
90
|
export declare const removePersonalSubscriptionContract: {
|
|
91
91
|
readonly method: "delete";
|
|
92
92
|
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
93
|
-
|
|
93
|
+
vendor: v.StringSchema<undefined>;
|
|
94
94
|
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
95
95
|
readonly pathResolver: ({ vendor }: {
|
|
96
96
|
vendor: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"personal-subscriptions.d.ts","sourceRoot":"","sources":["../../src/routes/personal-subscriptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"personal-subscriptions.d.ts","sourceRoot":"","sources":["../../src/routes/personal-subscriptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAoB5B,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI5C,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK5C,CAAA;AAEF,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK7C,CAAA"}
|