@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.
Files changed (142) hide show
  1. package/dist/auth.d.ts +11 -0
  2. package/dist/auth.d.ts.map +1 -1
  3. package/dist/auth.js +9 -0
  4. package/dist/auth.js.map +1 -1
  5. package/dist/routes/_shared.d.ts +9 -0
  6. package/dist/routes/_shared.d.ts.map +1 -1
  7. package/dist/routes/_shared.js +12 -0
  8. package/dist/routes/_shared.js.map +1 -1
  9. package/dist/routes/accounts.d.ts +13 -13
  10. package/dist/routes/accounts.js +2 -2
  11. package/dist/routes/accounts.js.map +1 -1
  12. package/dist/routes/agent-runs.d.ts +2 -2
  13. package/dist/routes/agent-runs.d.ts.map +1 -1
  14. package/dist/routes/agent-runs.js +3 -3
  15. package/dist/routes/agent-runs.js.map +1 -1
  16. package/dist/routes/api-keys.d.ts +154 -155
  17. package/dist/routes/api-keys.d.ts.map +1 -1
  18. package/dist/routes/api-keys.js +3 -4
  19. package/dist/routes/api-keys.js.map +1 -1
  20. package/dist/routes/auth.d.ts +67 -2
  21. package/dist/routes/auth.d.ts.map +1 -1
  22. package/dist/routes/auth.js +20 -4
  23. package/dist/routes/auth.js.map +1 -1
  24. package/dist/routes/board.d.ts +853 -854
  25. package/dist/routes/board.d.ts.map +1 -1
  26. package/dist/routes/board.js +3 -4
  27. package/dist/routes/board.js.map +1 -1
  28. package/dist/routes/bootstrap.d.ts +3 -3
  29. package/dist/routes/bootstrap.d.ts.map +1 -1
  30. package/dist/routes/bootstrap.js +4 -4
  31. package/dist/routes/bootstrap.js.map +1 -1
  32. package/dist/routes/clarity.d.ts +6 -6
  33. package/dist/routes/clarity.js +2 -2
  34. package/dist/routes/clarity.js.map +1 -1
  35. package/dist/routes/consensus.d.ts +1 -1
  36. package/dist/routes/consensus.js +3 -3
  37. package/dist/routes/consensus.js.map +1 -1
  38. package/dist/routes/documents.d.ts +6 -6
  39. package/dist/routes/documents.d.ts.map +1 -1
  40. package/dist/routes/documents.js +3 -3
  41. package/dist/routes/documents.js.map +1 -1
  42. package/dist/routes/environments.d.ts +3 -3
  43. package/dist/routes/environments.d.ts.map +1 -1
  44. package/dist/routes/environments.js +3 -3
  45. package/dist/routes/environments.js.map +1 -1
  46. package/dist/routes/execution.d.ts +7 -7
  47. package/dist/routes/execution.js +3 -3
  48. package/dist/routes/execution.js.map +1 -1
  49. package/dist/routes/followUp.d.ts +1 -1
  50. package/dist/routes/followUp.js +2 -2
  51. package/dist/routes/followUp.js.map +1 -1
  52. package/dist/routes/fragment-library.d.ts +6 -6
  53. package/dist/routes/fragment-library.d.ts.map +1 -1
  54. package/dist/routes/fragment-library.js +4 -4
  55. package/dist/routes/fragment-library.js.map +1 -1
  56. package/dist/routes/github.d.ts +6 -6
  57. package/dist/routes/github.js +2 -2
  58. package/dist/routes/github.js.map +1 -1
  59. package/dist/routes/human-review.d.ts +235 -236
  60. package/dist/routes/human-review.d.ts.map +1 -1
  61. package/dist/routes/human-review.js +3 -4
  62. package/dist/routes/human-review.js.map +1 -1
  63. package/dist/routes/human-test.d.ts +1202 -1203
  64. package/dist/routes/human-test.d.ts.map +1 -1
  65. package/dist/routes/human-test.js +3 -4
  66. package/dist/routes/human-test.js.map +1 -1
  67. package/dist/routes/kaizen.d.ts +79 -80
  68. package/dist/routes/kaizen.d.ts.map +1 -1
  69. package/dist/routes/kaizen.js +3 -4
  70. package/dist/routes/kaizen.js.map +1 -1
  71. package/dist/routes/localModels.d.ts +2 -2
  72. package/dist/routes/localModels.d.ts.map +1 -1
  73. package/dist/routes/localModels.js +3 -3
  74. package/dist/routes/localModels.js.map +1 -1
  75. package/dist/routes/merge.d.ts +2 -2
  76. package/dist/routes/merge.d.ts.map +1 -1
  77. package/dist/routes/merge.js +3 -3
  78. package/dist/routes/merge.js.map +1 -1
  79. package/dist/routes/model-presets.d.ts +2 -2
  80. package/dist/routes/model-presets.d.ts.map +1 -1
  81. package/dist/routes/model-presets.js +3 -3
  82. package/dist/routes/model-presets.js.map +1 -1
  83. package/dist/routes/models.d.ts +86 -87
  84. package/dist/routes/models.d.ts.map +1 -1
  85. package/dist/routes/models.js +3 -4
  86. package/dist/routes/models.js.map +1 -1
  87. package/dist/routes/notifications.d.ts +2 -2
  88. package/dist/routes/notifications.d.ts.map +1 -1
  89. package/dist/routes/notifications.js +3 -3
  90. package/dist/routes/notifications.js.map +1 -1
  91. package/dist/routes/openrouter.d.ts +88 -89
  92. package/dist/routes/openrouter.d.ts.map +1 -1
  93. package/dist/routes/openrouter.js +3 -4
  94. package/dist/routes/openrouter.js.map +1 -1
  95. package/dist/routes/personal-subscriptions.d.ts +1 -1
  96. package/dist/routes/personal-subscriptions.d.ts.map +1 -1
  97. package/dist/routes/personal-subscriptions.js +3 -3
  98. package/dist/routes/personal-subscriptions.js.map +1 -1
  99. package/dist/routes/pipelines.d.ts +4 -4
  100. package/dist/routes/pipelines.d.ts.map +1 -1
  101. package/dist/routes/pipelines.js +3 -3
  102. package/dist/routes/pipelines.js.map +1 -1
  103. package/dist/routes/recurring.d.ts +4 -4
  104. package/dist/routes/recurring.d.ts.map +1 -1
  105. package/dist/routes/recurring.js +3 -3
  106. package/dist/routes/recurring.js.map +1 -1
  107. package/dist/routes/release.d.ts +2 -2
  108. package/dist/routes/release.d.ts.map +1 -1
  109. package/dist/routes/release.js +3 -3
  110. package/dist/routes/release.js.map +1 -1
  111. package/dist/routes/requirements.d.ts +7 -7
  112. package/dist/routes/requirements.js +2 -2
  113. package/dist/routes/requirements.js.map +1 -1
  114. package/dist/routes/sandbox.d.ts +5 -5
  115. package/dist/routes/sandbox.d.ts.map +1 -1
  116. package/dist/routes/sandbox.js +5 -5
  117. package/dist/routes/sandbox.js.map +1 -1
  118. package/dist/routes/services.d.ts +3 -3
  119. package/dist/routes/services.d.ts.map +1 -1
  120. package/dist/routes/services.js +3 -3
  121. package/dist/routes/services.js.map +1 -1
  122. package/dist/routes/spec.d.ts +51 -52
  123. package/dist/routes/spec.d.ts.map +1 -1
  124. package/dist/routes/spec.js +3 -4
  125. package/dist/routes/spec.js.map +1 -1
  126. package/dist/routes/tasks.d.ts +7 -7
  127. package/dist/routes/tasks.d.ts.map +1 -1
  128. package/dist/routes/tasks.js +3 -3
  129. package/dist/routes/tasks.js.map +1 -1
  130. package/dist/routes/user-secret.d.ts +4 -4
  131. package/dist/routes/user-secret.d.ts.map +1 -1
  132. package/dist/routes/user-secret.js +3 -3
  133. package/dist/routes/user-secret.js.map +1 -1
  134. package/dist/routes/vendor-credentials.d.ts +1 -1
  135. package/dist/routes/vendor-credentials.d.ts.map +1 -1
  136. package/dist/routes/vendor-credentials.js +3 -3
  137. package/dist/routes/vendor-credentials.js.map +1 -1
  138. package/dist/routes/workspaces.d.ts +3 -3
  139. package/dist/routes/workspaces.d.ts.map +1 -1
  140. package/dist/routes/workspaces.js +5 -5
  141. package/dist/routes/workspaces.js.map +1 -1
  142. package/package.json +1 -1
@@ -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': v.ObjectSchema<{
7
- readonly error: v.ObjectSchema<{
8
- readonly code: v.StringSchema<undefined>;
9
- readonly message: v.StringSchema<undefined>;
10
- readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
11
- readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
12
- readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
13
- readonly message: v.StringSchema<undefined>;
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': v.ObjectSchema<{
18
- readonly error: v.ObjectSchema<{
19
- readonly code: v.StringSchema<undefined>;
20
- readonly message: v.StringSchema<undefined>;
21
- readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
22
- readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
23
- readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
24
- readonly message: v.StringSchema<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>;
25
24
  }, undefined>, undefined>, undefined>;
26
25
  }, undefined>;
27
26
  }, undefined>;
28
- readonly 200: v.ArraySchema<v.ObjectSchema<{
29
- readonly id: v.StringSchema<undefined>;
30
- readonly label: v.StringSchema<undefined>;
31
- readonly description: v.StringSchema<undefined>;
32
- readonly flavor: v.PicklistSchema<["cloudflare", "direct", "openrouter", "subscription"], undefined>;
33
- readonly available: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
34
- readonly providerLabel: v.StringSchema<undefined>;
35
- readonly provider: v.StringSchema<undefined>;
36
- readonly model: v.StringSchema<undefined>;
37
- readonly vendor: v.OptionalSchema<v.PicklistSchema<["claude", "codex", "glm", "kimi", "deepseek"], undefined>, undefined>;
38
- readonly cost: v.OptionalSchema<v.ObjectSchema<{
39
- readonly inputPerMillion: v.NumberSchema<undefined>;
40
- readonly outputPerMillion: v.NumberSchema<undefined>;
41
- readonly currency: v.StringSchema<undefined>;
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: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
44
- readonly quotaBased: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
45
- readonly subscription: v.OptionalSchema<v.ObjectSchema<{
46
- readonly vendor: v.PicklistSchema<["claude", "codex", "glm", "kimi", "deepseek"], undefined>;
47
- readonly providerLabel: v.StringSchema<undefined>;
48
- readonly provider: v.StringSchema<undefined>;
49
- readonly model: v.StringSchema<undefined>;
50
- readonly cost: v.OptionalSchema<v.ObjectSchema<{
51
- readonly inputPerMillion: v.NumberSchema<undefined>;
52
- readonly outputPerMillion: v.NumberSchema<undefined>;
53
- readonly currency: v.StringSchema<undefined>;
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: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
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: v.ObjectSchema<{
63
- readonly workspaceId: v.StringSchema<undefined>;
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': v.ObjectSchema<{
70
- readonly error: v.ObjectSchema<{
71
- readonly code: v.StringSchema<undefined>;
72
- readonly message: v.StringSchema<undefined>;
73
- readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
74
- readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
75
- readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
76
- readonly message: v.StringSchema<undefined>;
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': v.ObjectSchema<{
81
- readonly error: v.ObjectSchema<{
82
- readonly code: v.StringSchema<undefined>;
83
- readonly message: v.StringSchema<undefined>;
84
- readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
85
- readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
86
- readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
87
- readonly message: v.StringSchema<undefined>;
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: v.ArraySchema<v.ObjectSchema<{
92
- readonly id: v.StringSchema<undefined>;
93
- readonly label: v.StringSchema<undefined>;
94
- readonly description: v.StringSchema<undefined>;
95
- readonly flavor: v.PicklistSchema<["cloudflare", "direct", "openrouter", "subscription"], undefined>;
96
- readonly available: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
97
- readonly providerLabel: v.StringSchema<undefined>;
98
- readonly provider: v.StringSchema<undefined>;
99
- readonly model: v.StringSchema<undefined>;
100
- readonly vendor: v.OptionalSchema<v.PicklistSchema<["claude", "codex", "glm", "kimi", "deepseek"], undefined>, undefined>;
101
- readonly cost: v.OptionalSchema<v.ObjectSchema<{
102
- readonly inputPerMillion: v.NumberSchema<undefined>;
103
- readonly outputPerMillion: v.NumberSchema<undefined>;
104
- readonly currency: v.StringSchema<undefined>;
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: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
107
- readonly quotaBased: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
108
- readonly subscription: v.OptionalSchema<v.ObjectSchema<{
109
- readonly vendor: v.PicklistSchema<["claude", "codex", "glm", "kimi", "deepseek"], undefined>;
110
- readonly providerLabel: v.StringSchema<undefined>;
111
- readonly provider: v.StringSchema<undefined>;
112
- readonly model: v.StringSchema<undefined>;
113
- readonly cost: v.OptionalSchema<v.ObjectSchema<{
114
- readonly inputPerMillion: v.NumberSchema<undefined>;
115
- readonly outputPerMillion: v.NumberSchema<undefined>;
116
- readonly currency: v.StringSchema<undefined>;
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: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
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":"AACA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI7B,CAAA;AAIF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKtC,CAAA"}
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"}
@@ -1,13 +1,12 @@
1
- import { defineApiContract, withObjectKeys } from '@toad-contracts/valibot';
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 = withObjectKeys(v.object({ workspaceId: v.string() }));
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,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C,8EAA8E;AAC9E,+EAA+E;AAC/E,oEAAoE;AACpE,0CAA0C;AAC1C,8EAA8E;AAE9E,MAAM,iBAAiB,GAAG,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,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,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
- readonly notificationId: v.StringSchema<undefined>;
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
- readonly notificationId: v.StringSchema<undefined>;
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,EAAqC,MAAM,yBAAyB,CAAA;AAC3F,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
+ {"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, withObjectKeys } from '@toad-contracts/valibot';
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 = withObjectKeys(v.object({ notificationId: v.string() }));
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":[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,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: v.ObjectSchema<{
6
- readonly workspaceId: v.StringSchema<undefined>;
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': v.ObjectSchema<{
13
- readonly error: v.ObjectSchema<{
14
- readonly code: v.StringSchema<undefined>;
15
- readonly message: v.StringSchema<undefined>;
16
- readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
17
- readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
18
- readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
19
- readonly message: v.StringSchema<undefined>;
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': v.ObjectSchema<{
24
- readonly error: v.ObjectSchema<{
25
- readonly code: v.StringSchema<undefined>;
26
- readonly message: v.StringSchema<undefined>;
27
- readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
28
- readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
29
- readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
30
- readonly message: v.StringSchema<undefined>;
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: v.ObjectSchema<{
35
- readonly models: v.ArraySchema<v.ObjectSchema<{
36
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
37
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 200, undefined>]>;
38
- readonly contextLength: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
39
- readonly inputPerMillion: v.NumberSchema<undefined>;
40
- readonly outputPerMillion: v.NumberSchema<undefined>;
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: v.NumberSchema<undefined>;
43
- readonly updatedAt: v.NumberSchema<undefined>;
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: v.ObjectSchema<{
50
- readonly workspaceId: v.StringSchema<undefined>;
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: v.ObjectSchema<{
56
- readonly models: v.ArraySchema<v.ObjectSchema<{
57
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
58
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 200, undefined>]>;
59
- readonly contextLength: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
60
- readonly inputPerMillion: v.NumberSchema<undefined>;
61
- readonly outputPerMillion: v.NumberSchema<undefined>;
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': v.ObjectSchema<{
66
- readonly error: v.ObjectSchema<{
67
- readonly code: v.StringSchema<undefined>;
68
- readonly message: v.StringSchema<undefined>;
69
- readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
70
- readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
71
- readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
72
- readonly message: v.StringSchema<undefined>;
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': v.ObjectSchema<{
77
- readonly error: v.ObjectSchema<{
78
- readonly code: v.StringSchema<undefined>;
79
- readonly message: v.StringSchema<undefined>;
80
- readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
81
- readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
82
- readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
83
- readonly message: v.StringSchema<undefined>;
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: v.ObjectSchema<{
88
- readonly models: v.ArraySchema<v.ObjectSchema<{
89
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
90
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 200, undefined>]>;
91
- readonly contextLength: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
92
- readonly inputPerMillion: v.NumberSchema<undefined>;
93
- readonly outputPerMillion: v.NumberSchema<undefined>;
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: v.NumberSchema<undefined>;
96
- readonly updatedAt: v.NumberSchema<undefined>;
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: v.ObjectSchema<{
103
- readonly workspaceId: v.StringSchema<undefined>;
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': v.ObjectSchema<{
111
- readonly error: v.ObjectSchema<{
112
- readonly code: v.StringSchema<undefined>;
113
- readonly message: v.StringSchema<undefined>;
114
- readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
115
- readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
116
- readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
117
- readonly message: v.StringSchema<undefined>;
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': v.ObjectSchema<{
122
- readonly error: v.ObjectSchema<{
123
- readonly code: v.StringSchema<undefined>;
124
- readonly message: v.StringSchema<undefined>;
125
- readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
126
- readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
127
- readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
128
- readonly message: v.StringSchema<undefined>;
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: v.ObjectSchema<{
133
- readonly reachable: v.BooleanSchema<undefined>;
134
- readonly models: v.ArraySchema<v.ObjectSchema<{
135
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
136
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 200, undefined>]>;
137
- readonly contextLength: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
138
- readonly inputPerMillion: v.NumberSchema<undefined>;
139
- readonly outputPerMillion: v.NumberSchema<undefined>;
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: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
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,EAAqC,MAAM,yBAAyB,CAAA;AAC3F,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAiB5B,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKvC,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM1C,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM3C,CAAA"}
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, withObjectKeys } from '@toad-contracts/valibot';
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 = withObjectKeys(v.object({ workspaceId: v.string() }));
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,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAC3F,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EACL,uBAAuB,EACvB,6BAA6B,EAC7B,6BAA6B,GAC9B,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C,8EAA8E;AAC9E,gEAAgE;AAChE,+EAA+E;AAC/E,oEAAoE;AACpE,uBAAuB;AACvB,8EAA8E;AAE9E,MAAM,iBAAiB,GAAG,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,MAAM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AAgE;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
- readonly vendor: v.StringSchema<undefined>;
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,EAAqC,MAAM,yBAAyB,CAAA;AAC3F,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAoB5B,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI5C,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK5C,CAAA;AAEF,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK7C,CAAA"}
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"}