@cat-factory/contracts 0.33.0 → 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-keys.d.ts +17 -0
- package/dist/api-keys.d.ts.map +1 -1
- package/dist/api-keys.js +2 -0
- package/dist/api-keys.js.map +1 -1
- package/dist/entities.d.ts +135 -0
- package/dist/entities.d.ts.map +1 -1
- package/dist/entities.js +46 -0
- package/dist/entities.js.map +1 -1
- package/dist/github.d.ts +14 -0
- package/dist/github.d.ts.map +1 -1
- package/dist/github.js +13 -0
- package/dist/github.js.map +1 -1
- package/dist/human-review.d.ts +8 -0
- package/dist/human-review.d.ts.map +1 -0
- package/dist/human-review.js +12 -0
- package/dist/human-review.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/merge.d.ts +9 -0
- package/dist/merge.d.ts.map +1 -1
- package/dist/merge.js +10 -0
- package/dist/merge.js.map +1 -1
- package/dist/notifications.d.ts +2 -2
- package/dist/notifications.d.ts.map +1 -1
- package/dist/notifications.js +6 -0
- package/dist/notifications.js.map +1 -1
- package/dist/observability.d.ts +63 -0
- package/dist/observability.d.ts.map +1 -1
- package/dist/observability.js +57 -0
- package/dist/observability.js.map +1 -1
- package/dist/requests.d.ts +7 -0
- package/dist/requests.d.ts.map +1 -1
- package/dist/requests.js +2 -0
- package/dist/requests.js.map +1 -1
- package/dist/routes/_shared.d.ts +49 -0
- package/dist/routes/_shared.d.ts.map +1 -0
- package/dist/routes/_shared.js +34 -0
- package/dist/routes/_shared.js.map +1 -0
- package/dist/routes/accounts.d.ts +775 -0
- package/dist/routes/accounts.d.ts.map +1 -0
- package/dist/routes/accounts.js +145 -0
- package/dist/routes/accounts.js.map +1 -0
- package/dist/routes/agent-runs.d.ts +659 -0
- package/dist/routes/agent-runs.d.ts.map +1 -0
- package/dist/routes/agent-runs.js +33 -0
- package/dist/routes/agent-runs.js.map +1 -0
- package/dist/routes/api-keys.d.ts +245 -0
- package/dist/routes/api-keys.d.ts.map +1 -0
- package/dist/routes/api-keys.js +49 -0
- package/dist/routes/api-keys.js.map +1 -0
- package/dist/routes/auth.d.ts +411 -0
- package/dist/routes/auth.d.ts.map +1 -0
- package/dist/routes/auth.js +129 -0
- package/dist/routes/auth.js.map +1 -0
- package/dist/routes/board.d.ts +1260 -0
- package/dist/routes/board.d.ts.map +1 -0
- package/dist/routes/board.js +85 -0
- package/dist/routes/board.js.map +1 -0
- package/dist/routes/bootstrap.d.ts +395 -0
- package/dist/routes/bootstrap.d.ts.map +1 -0
- package/dist/routes/bootstrap.js +56 -0
- package/dist/routes/bootstrap.js.map +1 -0
- package/dist/routes/brainstorm.d.ts +482 -0
- package/dist/routes/brainstorm.d.ts.map +1 -0
- package/dist/routes/brainstorm.js +69 -0
- package/dist/routes/brainstorm.js.map +1 -0
- package/dist/routes/clarity.d.ts +462 -0
- package/dist/routes/clarity.d.ts.map +1 -0
- package/dist/routes/clarity.js +67 -0
- package/dist/routes/clarity.js.map +1 -0
- package/dist/routes/consensus.d.ts +71 -0
- package/dist/routes/consensus.d.ts.map +1 -0
- package/dist/routes/consensus.js +23 -0
- package/dist/routes/consensus.js.map +1 -0
- package/dist/routes/documents.d.ts +449 -0
- package/dist/routes/documents.d.ts.map +1 -0
- package/dist/routes/documents.js +89 -0
- package/dist/routes/documents.js.map +1 -0
- package/dist/routes/environments.d.ts +715 -0
- package/dist/routes/environments.d.ts.map +1 -0
- package/dist/routes/environments.js +82 -0
- package/dist/routes/environments.js.map +1 -0
- package/dist/routes/execution.d.ts +2768 -0
- package/dist/routes/execution.d.ts.map +1 -0
- package/dist/routes/execution.js +119 -0
- package/dist/routes/execution.js.map +1 -0
- package/dist/routes/followUp.d.ts +277 -0
- package/dist/routes/followUp.d.ts.map +1 -0
- package/dist/routes/followUp.js +47 -0
- package/dist/routes/followUp.js.map +1 -0
- package/dist/routes/fragment-library.d.ts +594 -0
- package/dist/routes/fragment-library.d.ts.map +1 -0
- package/dist/routes/fragment-library.js +102 -0
- package/dist/routes/fragment-library.js.map +1 -0
- package/dist/routes/github.d.ts +807 -0
- package/dist/routes/github.d.ts.map +1 -0
- package/dist/routes/github.js +157 -0
- package/dist/routes/github.js.map +1 -0
- package/dist/routes/human-review.d.ts +290 -0
- package/dist/routes/human-review.d.ts.map +1 -0
- package/dist/routes/human-review.js +20 -0
- package/dist/routes/human-review.js.map +1 -0
- package/dist/routes/human-test.d.ts +1435 -0
- package/dist/routes/human-test.d.ts.map +1 -0
- package/dist/routes/human-test.js +48 -0
- package/dist/routes/human-test.js.map +1 -0
- package/dist/routes/incident-enrichment.d.ts +110 -0
- package/dist/routes/incident-enrichment.d.ts.map +1 -0
- package/dist/routes/incident-enrichment.js +26 -0
- package/dist/routes/incident-enrichment.js.map +1 -0
- package/dist/routes/index.d.ts +47 -0
- package/dist/routes/index.d.ts.map +1 -0
- package/dist/routes/index.js +50 -0
- package/dist/routes/index.js.map +1 -0
- package/dist/routes/kaizen.d.ts +113 -0
- package/dist/routes/kaizen.d.ts.map +1 -0
- package/dist/routes/kaizen.js +22 -0
- package/dist/routes/kaizen.js.map +1 -0
- package/dist/routes/localModels.d.ts +163 -0
- package/dist/routes/localModels.d.ts.map +1 -0
- package/dist/routes/localModels.js +41 -0
- package/dist/routes/localModels.js.map +1 -0
- package/dist/routes/localSettings.d.ts +93 -0
- package/dist/routes/localSettings.d.ts.map +1 -0
- package/dist/routes/localSettings.js +22 -0
- package/dist/routes/localSettings.js.map +1 -0
- package/dist/routes/merge.d.ts +197 -0
- package/dist/routes/merge.d.ts.map +1 -0
- package/dist/routes/merge.js +36 -0
- package/dist/routes/merge.js.map +1 -0
- package/dist/routes/model-presets.d.ts +162 -0
- package/dist/routes/model-presets.d.ts.map +1 -0
- package/dist/routes/model-presets.js +36 -0
- package/dist/routes/model-presets.js.map +1 -0
- package/dist/routes/models.d.ts +123 -0
- package/dist/routes/models.d.ts.map +1 -0
- package/dist/routes/models.js +25 -0
- package/dist/routes/models.js.map +1 -0
- package/dist/routes/notifications.d.ts +213 -0
- package/dist/routes/notifications.d.ts.map +1 -0
- package/dist/routes/notifications.js +31 -0
- package/dist/routes/notifications.js.map +1 -0
- package/dist/routes/openrouter.d.ts +145 -0
- package/dist/routes/openrouter.d.ts.map +1 -0
- package/dist/routes/openrouter.js +32 -0
- package/dist/routes/openrouter.js.map +1 -0
- package/dist/routes/personal-subscriptions.d.ts +124 -0
- package/dist/routes/personal-subscriptions.d.ts.map +1 -0
- package/dist/routes/personal-subscriptions.js +32 -0
- package/dist/routes/personal-subscriptions.js.map +1 -0
- package/dist/routes/pipelines.d.ts +457 -0
- package/dist/routes/pipelines.d.ts.map +1 -0
- package/dist/routes/pipelines.js +51 -0
- package/dist/routes/pipelines.js.map +1 -0
- package/dist/routes/prompt-fragments.d.ts +52 -0
- package/dist/routes/prompt-fragments.d.ts.map +1 -0
- package/dist/routes/prompt-fragments.js +14 -0
- package/dist/routes/prompt-fragments.js.map +1 -0
- package/dist/routes/provisioning-logs.d.ts +45 -0
- package/dist/routes/provisioning-logs.d.ts.map +1 -0
- package/dist/routes/provisioning-logs.js +14 -0
- package/dist/routes/provisioning-logs.js.map +1 -0
- package/dist/routes/recurring.d.ts +309 -0
- package/dist/routes/recurring.d.ts.map +1 -0
- package/dist/routes/recurring.js +50 -0
- package/dist/routes/recurring.js.map +1 -0
- package/dist/routes/release.d.ts +218 -0
- package/dist/routes/release.d.ts.map +1 -0
- package/dist/routes/release.js +47 -0
- package/dist/routes/release.js.map +1 -0
- package/dist/routes/requirements.d.ts +901 -0
- package/dist/routes/requirements.d.ts.map +1 -0
- package/dist/routes/requirements.js +96 -0
- package/dist/routes/requirements.js.map +1 -0
- package/dist/routes/runners.d.ts +442 -0
- package/dist/routes/runners.d.ts.map +1 -0
- package/dist/routes/runners.js +47 -0
- package/dist/routes/runners.js.map +1 -0
- package/dist/routes/sandbox.d.ts +898 -0
- package/dist/routes/sandbox.d.ts.map +1 -0
- package/dist/routes/sandbox.js +119 -0
- package/dist/routes/sandbox.js.map +1 -0
- package/dist/routes/service-fragment-defaults.d.ts +66 -0
- package/dist/routes/service-fragment-defaults.d.ts.map +1 -0
- package/dist/routes/service-fragment-defaults.js +20 -0
- package/dist/routes/service-fragment-defaults.js.map +1 -0
- package/dist/routes/services.d.ts +224 -0
- package/dist/routes/services.d.ts.map +1 -0
- package/dist/routes/services.js +44 -0
- package/dist/routes/services.js.map +1 -0
- package/dist/routes/slack.d.ts +332 -0
- package/dist/routes/slack.d.ts.map +1 -0
- package/dist/routes/slack.js +72 -0
- package/dist/routes/slack.js.map +1 -0
- package/dist/routes/spec.d.ts +76 -0
- package/dist/routes/spec.d.ts.map +1 -0
- package/dist/routes/spec.js +17 -0
- package/dist/routes/spec.js.map +1 -0
- package/dist/routes/tasks.d.ts +723 -0
- package/dist/routes/tasks.d.ts.map +1 -0
- package/dist/routes/tasks.js +108 -0
- package/dist/routes/tasks.js.map +1 -0
- package/dist/routes/tracker.d.ts +77 -0
- package/dist/routes/tracker.d.ts.map +1 -0
- package/dist/routes/tracker.js +20 -0
- package/dist/routes/tracker.js.map +1 -0
- package/dist/routes/user-secret.d.ts +231 -0
- package/dist/routes/user-secret.d.ts.map +1 -0
- package/dist/routes/user-secret.js +49 -0
- package/dist/routes/user-secret.js.map +1 -0
- package/dist/routes/vendor-credentials.d.ts +120 -0
- package/dist/routes/vendor-credentials.d.ts.map +1 -0
- package/dist/routes/vendor-credentials.js +33 -0
- package/dist/routes/vendor-credentials.js.map +1 -0
- package/dist/routes/workspace-settings.d.ts +93 -0
- package/dist/routes/workspace-settings.d.ts.map +1 -0
- package/dist/routes/workspace-settings.js +20 -0
- package/dist/routes/workspace-settings.js.map +1 -0
- package/dist/routes/workspaces.d.ts +1309 -0
- package/dist/routes/workspaces.d.ts.map +1 -0
- package/dist/routes/workspaces.js +45 -0
- package/dist/routes/workspaces.js.map +1 -0
- package/dist/slack.d.ts +2 -2
- package/dist/snapshot.d.ts +11 -1
- package/dist/snapshot.d.ts.map +1 -1
- package/package.json +3 -1
|
@@ -0,0 +1,594 @@
|
|
|
1
|
+
import { ContractNoBody } from '@toad-contracts/valibot';
|
|
2
|
+
import * as v from 'valibot';
|
|
3
|
+
export declare const listPromptFragmentsContract: {
|
|
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 version: v.StringSchema<undefined>;
|
|
32
|
+
readonly title: v.StringSchema<undefined>;
|
|
33
|
+
readonly category: v.StringSchema<undefined>;
|
|
34
|
+
readonly summary: v.StringSchema<undefined>;
|
|
35
|
+
readonly body: v.StringSchema<undefined>;
|
|
36
|
+
readonly appliesTo: v.OptionalSchema<v.ObjectSchema<{
|
|
37
|
+
readonly blockTypes: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["frontend", "service", "api", "database", "queue", "integration", "external", "environment"], undefined>, undefined>, undefined>;
|
|
38
|
+
readonly agentKinds: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
|
|
39
|
+
}, undefined>, undefined>;
|
|
40
|
+
readonly tags: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
41
|
+
readonly source: v.OptionalSchema<v.ObjectSchema<{
|
|
42
|
+
readonly sourceId: v.StringSchema<undefined>;
|
|
43
|
+
readonly path: v.StringSchema<undefined>;
|
|
44
|
+
readonly sha: v.StringSchema<undefined>;
|
|
45
|
+
}, undefined>, undefined>;
|
|
46
|
+
readonly documentRef: v.OptionalSchema<v.ObjectSchema<{
|
|
47
|
+
readonly source: v.PicklistSchema<["confluence", "notion", "github"], undefined>;
|
|
48
|
+
readonly externalId: v.StringSchema<undefined>;
|
|
49
|
+
}, undefined>, undefined>;
|
|
50
|
+
readonly resolvedAt: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
51
|
+
}, undefined>, undefined>;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
export declare const createPromptFragmentContract: {
|
|
55
|
+
readonly method: "post";
|
|
56
|
+
readonly pathResolver: () => string;
|
|
57
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
58
|
+
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
59
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
60
|
+
readonly category: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 100, undefined>]>, undefined>;
|
|
61
|
+
readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>;
|
|
62
|
+
readonly body: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 20000, undefined>]>;
|
|
63
|
+
readonly tags: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 40, undefined>]>, undefined>, undefined>;
|
|
64
|
+
readonly appliesTo: v.OptionalSchema<v.ObjectSchema<{
|
|
65
|
+
readonly blockTypes: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["frontend", "service", "api", "database", "queue", "integration", "external", "environment"], undefined>, undefined>, undefined>;
|
|
66
|
+
readonly agentKinds: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
|
|
67
|
+
}, undefined>, undefined>;
|
|
68
|
+
readonly version: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 40, undefined>]>, undefined>;
|
|
69
|
+
}, undefined>;
|
|
70
|
+
readonly responsesByStatusCode: {
|
|
71
|
+
readonly '4xx': v.ObjectSchema<{
|
|
72
|
+
readonly error: v.ObjectSchema<{
|
|
73
|
+
readonly code: v.StringSchema<undefined>;
|
|
74
|
+
readonly message: v.StringSchema<undefined>;
|
|
75
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
76
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
77
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
78
|
+
readonly message: v.StringSchema<undefined>;
|
|
79
|
+
}, undefined>, undefined>, undefined>;
|
|
80
|
+
}, undefined>;
|
|
81
|
+
}, undefined>;
|
|
82
|
+
readonly '5xx': v.ObjectSchema<{
|
|
83
|
+
readonly error: v.ObjectSchema<{
|
|
84
|
+
readonly code: v.StringSchema<undefined>;
|
|
85
|
+
readonly message: v.StringSchema<undefined>;
|
|
86
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
87
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
88
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
89
|
+
readonly message: v.StringSchema<undefined>;
|
|
90
|
+
}, undefined>, undefined>, undefined>;
|
|
91
|
+
}, undefined>;
|
|
92
|
+
}, undefined>;
|
|
93
|
+
readonly 201: v.ObjectSchema<{
|
|
94
|
+
readonly id: v.StringSchema<undefined>;
|
|
95
|
+
readonly version: v.StringSchema<undefined>;
|
|
96
|
+
readonly title: v.StringSchema<undefined>;
|
|
97
|
+
readonly category: v.StringSchema<undefined>;
|
|
98
|
+
readonly summary: v.StringSchema<undefined>;
|
|
99
|
+
readonly body: v.StringSchema<undefined>;
|
|
100
|
+
readonly appliesTo: v.OptionalSchema<v.ObjectSchema<{
|
|
101
|
+
readonly blockTypes: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["frontend", "service", "api", "database", "queue", "integration", "external", "environment"], undefined>, undefined>, undefined>;
|
|
102
|
+
readonly agentKinds: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
|
|
103
|
+
}, undefined>, undefined>;
|
|
104
|
+
readonly tags: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
105
|
+
readonly source: v.OptionalSchema<v.ObjectSchema<{
|
|
106
|
+
readonly sourceId: v.StringSchema<undefined>;
|
|
107
|
+
readonly path: v.StringSchema<undefined>;
|
|
108
|
+
readonly sha: v.StringSchema<undefined>;
|
|
109
|
+
}, undefined>, undefined>;
|
|
110
|
+
readonly documentRef: v.OptionalSchema<v.ObjectSchema<{
|
|
111
|
+
readonly source: v.PicklistSchema<["confluence", "notion", "github"], undefined>;
|
|
112
|
+
readonly externalId: v.StringSchema<undefined>;
|
|
113
|
+
}, undefined>, undefined>;
|
|
114
|
+
readonly resolvedAt: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
115
|
+
}, undefined>;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
export declare const updatePromptFragmentContract: {
|
|
119
|
+
readonly method: "patch";
|
|
120
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
121
|
+
readonly fragmentId: v.StringSchema<undefined>;
|
|
122
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
123
|
+
readonly pathResolver: ({ fragmentId }: {
|
|
124
|
+
fragmentId: string;
|
|
125
|
+
}) => string;
|
|
126
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
127
|
+
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
128
|
+
readonly category: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 100, undefined>]>, undefined>;
|
|
129
|
+
readonly summary: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
130
|
+
readonly body: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 20000, undefined>]>, undefined>;
|
|
131
|
+
readonly tags: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 40, undefined>]>, undefined>, undefined>;
|
|
132
|
+
readonly appliesTo: v.OptionalSchema<v.ObjectSchema<{
|
|
133
|
+
readonly blockTypes: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["frontend", "service", "api", "database", "queue", "integration", "external", "environment"], undefined>, undefined>, undefined>;
|
|
134
|
+
readonly agentKinds: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
|
|
135
|
+
}, undefined>, undefined>;
|
|
136
|
+
readonly version: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 40, undefined>]>, undefined>;
|
|
137
|
+
}, undefined>;
|
|
138
|
+
readonly responsesByStatusCode: {
|
|
139
|
+
readonly '4xx': v.ObjectSchema<{
|
|
140
|
+
readonly error: v.ObjectSchema<{
|
|
141
|
+
readonly code: v.StringSchema<undefined>;
|
|
142
|
+
readonly message: v.StringSchema<undefined>;
|
|
143
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
144
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
145
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
146
|
+
readonly message: v.StringSchema<undefined>;
|
|
147
|
+
}, undefined>, undefined>, undefined>;
|
|
148
|
+
}, undefined>;
|
|
149
|
+
}, undefined>;
|
|
150
|
+
readonly '5xx': v.ObjectSchema<{
|
|
151
|
+
readonly error: v.ObjectSchema<{
|
|
152
|
+
readonly code: v.StringSchema<undefined>;
|
|
153
|
+
readonly message: v.StringSchema<undefined>;
|
|
154
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
155
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
156
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
157
|
+
readonly message: v.StringSchema<undefined>;
|
|
158
|
+
}, undefined>, undefined>, undefined>;
|
|
159
|
+
}, undefined>;
|
|
160
|
+
}, undefined>;
|
|
161
|
+
readonly 200: v.ObjectSchema<{
|
|
162
|
+
readonly id: v.StringSchema<undefined>;
|
|
163
|
+
readonly version: v.StringSchema<undefined>;
|
|
164
|
+
readonly title: v.StringSchema<undefined>;
|
|
165
|
+
readonly category: v.StringSchema<undefined>;
|
|
166
|
+
readonly summary: v.StringSchema<undefined>;
|
|
167
|
+
readonly body: v.StringSchema<undefined>;
|
|
168
|
+
readonly appliesTo: v.OptionalSchema<v.ObjectSchema<{
|
|
169
|
+
readonly blockTypes: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["frontend", "service", "api", "database", "queue", "integration", "external", "environment"], undefined>, undefined>, undefined>;
|
|
170
|
+
readonly agentKinds: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
|
|
171
|
+
}, undefined>, undefined>;
|
|
172
|
+
readonly tags: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
173
|
+
readonly source: v.OptionalSchema<v.ObjectSchema<{
|
|
174
|
+
readonly sourceId: v.StringSchema<undefined>;
|
|
175
|
+
readonly path: v.StringSchema<undefined>;
|
|
176
|
+
readonly sha: v.StringSchema<undefined>;
|
|
177
|
+
}, undefined>, undefined>;
|
|
178
|
+
readonly documentRef: v.OptionalSchema<v.ObjectSchema<{
|
|
179
|
+
readonly source: v.PicklistSchema<["confluence", "notion", "github"], undefined>;
|
|
180
|
+
readonly externalId: v.StringSchema<undefined>;
|
|
181
|
+
}, undefined>, undefined>;
|
|
182
|
+
readonly resolvedAt: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
183
|
+
}, undefined>;
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
export declare const deletePromptFragmentContract: {
|
|
187
|
+
readonly method: "delete";
|
|
188
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
189
|
+
readonly fragmentId: v.StringSchema<undefined>;
|
|
190
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
191
|
+
readonly pathResolver: ({ fragmentId }: {
|
|
192
|
+
fragmentId: string;
|
|
193
|
+
}) => string;
|
|
194
|
+
readonly responsesByStatusCode: {
|
|
195
|
+
readonly '4xx': v.ObjectSchema<{
|
|
196
|
+
readonly error: v.ObjectSchema<{
|
|
197
|
+
readonly code: v.StringSchema<undefined>;
|
|
198
|
+
readonly message: v.StringSchema<undefined>;
|
|
199
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
200
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
201
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
202
|
+
readonly message: v.StringSchema<undefined>;
|
|
203
|
+
}, undefined>, undefined>, undefined>;
|
|
204
|
+
}, undefined>;
|
|
205
|
+
}, undefined>;
|
|
206
|
+
readonly '5xx': v.ObjectSchema<{
|
|
207
|
+
readonly error: v.ObjectSchema<{
|
|
208
|
+
readonly code: v.StringSchema<undefined>;
|
|
209
|
+
readonly message: v.StringSchema<undefined>;
|
|
210
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
211
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
212
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
213
|
+
readonly message: v.StringSchema<undefined>;
|
|
214
|
+
}, undefined>, undefined>, undefined>;
|
|
215
|
+
}, undefined>;
|
|
216
|
+
}, undefined>;
|
|
217
|
+
readonly 204: typeof ContractNoBody;
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
export declare const createDocumentFragmentContract: {
|
|
221
|
+
readonly method: "post";
|
|
222
|
+
readonly pathResolver: () => string;
|
|
223
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
224
|
+
readonly source: v.PicklistSchema<["confluence", "notion", "github"], undefined>;
|
|
225
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>;
|
|
226
|
+
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
227
|
+
readonly category: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 100, undefined>]>, undefined>;
|
|
228
|
+
readonly tags: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 40, undefined>]>, undefined>, undefined>;
|
|
229
|
+
readonly appliesTo: v.OptionalSchema<v.ObjectSchema<{
|
|
230
|
+
readonly blockTypes: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["frontend", "service", "api", "database", "queue", "integration", "external", "environment"], undefined>, undefined>, undefined>;
|
|
231
|
+
readonly agentKinds: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
|
|
232
|
+
}, undefined>, undefined>;
|
|
233
|
+
readonly viaWorkspaceId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
234
|
+
}, undefined>;
|
|
235
|
+
readonly responsesByStatusCode: {
|
|
236
|
+
readonly '4xx': v.ObjectSchema<{
|
|
237
|
+
readonly error: v.ObjectSchema<{
|
|
238
|
+
readonly code: v.StringSchema<undefined>;
|
|
239
|
+
readonly message: v.StringSchema<undefined>;
|
|
240
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
241
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
242
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
243
|
+
readonly message: v.StringSchema<undefined>;
|
|
244
|
+
}, undefined>, undefined>, undefined>;
|
|
245
|
+
}, undefined>;
|
|
246
|
+
}, undefined>;
|
|
247
|
+
readonly '5xx': v.ObjectSchema<{
|
|
248
|
+
readonly error: v.ObjectSchema<{
|
|
249
|
+
readonly code: v.StringSchema<undefined>;
|
|
250
|
+
readonly message: v.StringSchema<undefined>;
|
|
251
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
252
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
253
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
254
|
+
readonly message: v.StringSchema<undefined>;
|
|
255
|
+
}, undefined>, undefined>, undefined>;
|
|
256
|
+
}, undefined>;
|
|
257
|
+
}, undefined>;
|
|
258
|
+
readonly 201: v.ObjectSchema<{
|
|
259
|
+
readonly id: v.StringSchema<undefined>;
|
|
260
|
+
readonly version: v.StringSchema<undefined>;
|
|
261
|
+
readonly title: v.StringSchema<undefined>;
|
|
262
|
+
readonly category: v.StringSchema<undefined>;
|
|
263
|
+
readonly summary: v.StringSchema<undefined>;
|
|
264
|
+
readonly body: v.StringSchema<undefined>;
|
|
265
|
+
readonly appliesTo: v.OptionalSchema<v.ObjectSchema<{
|
|
266
|
+
readonly blockTypes: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["frontend", "service", "api", "database", "queue", "integration", "external", "environment"], undefined>, undefined>, undefined>;
|
|
267
|
+
readonly agentKinds: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
|
|
268
|
+
}, undefined>, undefined>;
|
|
269
|
+
readonly tags: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
270
|
+
readonly source: v.OptionalSchema<v.ObjectSchema<{
|
|
271
|
+
readonly sourceId: v.StringSchema<undefined>;
|
|
272
|
+
readonly path: v.StringSchema<undefined>;
|
|
273
|
+
readonly sha: v.StringSchema<undefined>;
|
|
274
|
+
}, undefined>, undefined>;
|
|
275
|
+
readonly documentRef: v.OptionalSchema<v.ObjectSchema<{
|
|
276
|
+
readonly source: v.PicklistSchema<["confluence", "notion", "github"], undefined>;
|
|
277
|
+
readonly externalId: v.StringSchema<undefined>;
|
|
278
|
+
}, undefined>, undefined>;
|
|
279
|
+
readonly resolvedAt: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
280
|
+
}, undefined>;
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
export declare const refreshPromptFragmentContract: {
|
|
284
|
+
readonly method: "post";
|
|
285
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
286
|
+
readonly fragmentId: v.StringSchema<undefined>;
|
|
287
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
288
|
+
readonly requestQuerySchema: v.ObjectSchema<{
|
|
289
|
+
readonly viaWorkspaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
290
|
+
}, undefined>;
|
|
291
|
+
readonly pathResolver: ({ fragmentId }: {
|
|
292
|
+
fragmentId: string;
|
|
293
|
+
}) => string;
|
|
294
|
+
readonly requestBodySchema: typeof ContractNoBody;
|
|
295
|
+
readonly responsesByStatusCode: {
|
|
296
|
+
readonly '4xx': v.ObjectSchema<{
|
|
297
|
+
readonly error: v.ObjectSchema<{
|
|
298
|
+
readonly code: v.StringSchema<undefined>;
|
|
299
|
+
readonly message: v.StringSchema<undefined>;
|
|
300
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
301
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
302
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
303
|
+
readonly message: v.StringSchema<undefined>;
|
|
304
|
+
}, undefined>, undefined>, undefined>;
|
|
305
|
+
}, undefined>;
|
|
306
|
+
}, undefined>;
|
|
307
|
+
readonly '5xx': v.ObjectSchema<{
|
|
308
|
+
readonly error: v.ObjectSchema<{
|
|
309
|
+
readonly code: v.StringSchema<undefined>;
|
|
310
|
+
readonly message: v.StringSchema<undefined>;
|
|
311
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
312
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
313
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
314
|
+
readonly message: v.StringSchema<undefined>;
|
|
315
|
+
}, undefined>, undefined>, undefined>;
|
|
316
|
+
}, undefined>;
|
|
317
|
+
}, undefined>;
|
|
318
|
+
readonly 200: v.ObjectSchema<{
|
|
319
|
+
readonly id: v.StringSchema<undefined>;
|
|
320
|
+
readonly version: v.StringSchema<undefined>;
|
|
321
|
+
readonly title: v.StringSchema<undefined>;
|
|
322
|
+
readonly category: v.StringSchema<undefined>;
|
|
323
|
+
readonly summary: v.StringSchema<undefined>;
|
|
324
|
+
readonly body: v.StringSchema<undefined>;
|
|
325
|
+
readonly appliesTo: v.OptionalSchema<v.ObjectSchema<{
|
|
326
|
+
readonly blockTypes: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["frontend", "service", "api", "database", "queue", "integration", "external", "environment"], undefined>, undefined>, undefined>;
|
|
327
|
+
readonly agentKinds: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
|
|
328
|
+
}, undefined>, undefined>;
|
|
329
|
+
readonly tags: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
330
|
+
readonly source: v.OptionalSchema<v.ObjectSchema<{
|
|
331
|
+
readonly sourceId: v.StringSchema<undefined>;
|
|
332
|
+
readonly path: v.StringSchema<undefined>;
|
|
333
|
+
readonly sha: v.StringSchema<undefined>;
|
|
334
|
+
}, undefined>, undefined>;
|
|
335
|
+
readonly documentRef: v.OptionalSchema<v.ObjectSchema<{
|
|
336
|
+
readonly source: v.PicklistSchema<["confluence", "notion", "github"], undefined>;
|
|
337
|
+
readonly externalId: v.StringSchema<undefined>;
|
|
338
|
+
}, undefined>, undefined>;
|
|
339
|
+
readonly resolvedAt: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
340
|
+
}, undefined>;
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
export declare const listFragmentSourcesContract: {
|
|
344
|
+
readonly method: "get";
|
|
345
|
+
readonly pathResolver: () => string;
|
|
346
|
+
readonly responsesByStatusCode: {
|
|
347
|
+
readonly '4xx': v.ObjectSchema<{
|
|
348
|
+
readonly error: v.ObjectSchema<{
|
|
349
|
+
readonly code: v.StringSchema<undefined>;
|
|
350
|
+
readonly message: v.StringSchema<undefined>;
|
|
351
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
352
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
353
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
354
|
+
readonly message: v.StringSchema<undefined>;
|
|
355
|
+
}, undefined>, undefined>, undefined>;
|
|
356
|
+
}, undefined>;
|
|
357
|
+
}, undefined>;
|
|
358
|
+
readonly '5xx': v.ObjectSchema<{
|
|
359
|
+
readonly error: v.ObjectSchema<{
|
|
360
|
+
readonly code: v.StringSchema<undefined>;
|
|
361
|
+
readonly message: v.StringSchema<undefined>;
|
|
362
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
363
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
364
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
365
|
+
readonly message: v.StringSchema<undefined>;
|
|
366
|
+
}, undefined>, undefined>, undefined>;
|
|
367
|
+
}, undefined>;
|
|
368
|
+
}, undefined>;
|
|
369
|
+
readonly 200: v.ArraySchema<v.ObjectSchema<{
|
|
370
|
+
readonly id: v.StringSchema<undefined>;
|
|
371
|
+
readonly ownerKind: v.PicklistSchema<["account", "workspace"], undefined>;
|
|
372
|
+
readonly ownerId: v.StringSchema<undefined>;
|
|
373
|
+
readonly repoOwner: v.StringSchema<undefined>;
|
|
374
|
+
readonly repoName: v.StringSchema<undefined>;
|
|
375
|
+
readonly gitRef: v.StringSchema<undefined>;
|
|
376
|
+
readonly dirPath: v.StringSchema<undefined>;
|
|
377
|
+
readonly lastSyncedSha: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
378
|
+
readonly lastSyncedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
379
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
380
|
+
}, undefined>, undefined>;
|
|
381
|
+
};
|
|
382
|
+
};
|
|
383
|
+
export declare const linkFragmentSourceContract: {
|
|
384
|
+
readonly method: "post";
|
|
385
|
+
readonly pathResolver: () => string;
|
|
386
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
387
|
+
readonly repoOwner: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 100, undefined>]>;
|
|
388
|
+
readonly repoName: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
389
|
+
readonly gitRef: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
390
|
+
readonly dirPath: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 300, undefined>]>, undefined>;
|
|
391
|
+
}, undefined>;
|
|
392
|
+
readonly responsesByStatusCode: {
|
|
393
|
+
readonly '4xx': v.ObjectSchema<{
|
|
394
|
+
readonly error: v.ObjectSchema<{
|
|
395
|
+
readonly code: v.StringSchema<undefined>;
|
|
396
|
+
readonly message: v.StringSchema<undefined>;
|
|
397
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
398
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
399
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
400
|
+
readonly message: v.StringSchema<undefined>;
|
|
401
|
+
}, undefined>, undefined>, undefined>;
|
|
402
|
+
}, undefined>;
|
|
403
|
+
}, undefined>;
|
|
404
|
+
readonly '5xx': v.ObjectSchema<{
|
|
405
|
+
readonly error: v.ObjectSchema<{
|
|
406
|
+
readonly code: v.StringSchema<undefined>;
|
|
407
|
+
readonly message: v.StringSchema<undefined>;
|
|
408
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
409
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
410
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
411
|
+
readonly message: v.StringSchema<undefined>;
|
|
412
|
+
}, undefined>, undefined>, undefined>;
|
|
413
|
+
}, undefined>;
|
|
414
|
+
}, undefined>;
|
|
415
|
+
readonly 201: v.ObjectSchema<{
|
|
416
|
+
readonly id: v.StringSchema<undefined>;
|
|
417
|
+
readonly ownerKind: v.PicklistSchema<["account", "workspace"], undefined>;
|
|
418
|
+
readonly ownerId: v.StringSchema<undefined>;
|
|
419
|
+
readonly repoOwner: v.StringSchema<undefined>;
|
|
420
|
+
readonly repoName: v.StringSchema<undefined>;
|
|
421
|
+
readonly gitRef: v.StringSchema<undefined>;
|
|
422
|
+
readonly dirPath: v.StringSchema<undefined>;
|
|
423
|
+
readonly lastSyncedSha: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
424
|
+
readonly lastSyncedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
425
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
426
|
+
}, undefined>;
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
export declare const unlinkFragmentSourceContract: {
|
|
430
|
+
readonly method: "delete";
|
|
431
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
432
|
+
readonly id: v.StringSchema<undefined>;
|
|
433
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
434
|
+
readonly pathResolver: ({ id }: {
|
|
435
|
+
id: string;
|
|
436
|
+
}) => string;
|
|
437
|
+
readonly responsesByStatusCode: {
|
|
438
|
+
readonly '4xx': v.ObjectSchema<{
|
|
439
|
+
readonly error: v.ObjectSchema<{
|
|
440
|
+
readonly code: v.StringSchema<undefined>;
|
|
441
|
+
readonly message: v.StringSchema<undefined>;
|
|
442
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
443
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
444
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
445
|
+
readonly message: v.StringSchema<undefined>;
|
|
446
|
+
}, undefined>, undefined>, undefined>;
|
|
447
|
+
}, undefined>;
|
|
448
|
+
}, undefined>;
|
|
449
|
+
readonly '5xx': v.ObjectSchema<{
|
|
450
|
+
readonly error: v.ObjectSchema<{
|
|
451
|
+
readonly code: v.StringSchema<undefined>;
|
|
452
|
+
readonly message: v.StringSchema<undefined>;
|
|
453
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
454
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
455
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
456
|
+
readonly message: v.StringSchema<undefined>;
|
|
457
|
+
}, undefined>, undefined>, undefined>;
|
|
458
|
+
}, undefined>;
|
|
459
|
+
}, undefined>;
|
|
460
|
+
readonly 204: typeof ContractNoBody;
|
|
461
|
+
};
|
|
462
|
+
};
|
|
463
|
+
export declare const fragmentSourceStatusContract: {
|
|
464
|
+
readonly method: "get";
|
|
465
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
466
|
+
readonly id: v.StringSchema<undefined>;
|
|
467
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
468
|
+
readonly pathResolver: ({ id }: {
|
|
469
|
+
id: string;
|
|
470
|
+
}) => string;
|
|
471
|
+
readonly responsesByStatusCode: {
|
|
472
|
+
readonly '4xx': v.ObjectSchema<{
|
|
473
|
+
readonly error: v.ObjectSchema<{
|
|
474
|
+
readonly code: v.StringSchema<undefined>;
|
|
475
|
+
readonly message: v.StringSchema<undefined>;
|
|
476
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
477
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
478
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
479
|
+
readonly message: v.StringSchema<undefined>;
|
|
480
|
+
}, undefined>, undefined>, undefined>;
|
|
481
|
+
}, undefined>;
|
|
482
|
+
}, undefined>;
|
|
483
|
+
readonly '5xx': v.ObjectSchema<{
|
|
484
|
+
readonly error: v.ObjectSchema<{
|
|
485
|
+
readonly code: v.StringSchema<undefined>;
|
|
486
|
+
readonly message: v.StringSchema<undefined>;
|
|
487
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
488
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
489
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
490
|
+
readonly message: v.StringSchema<undefined>;
|
|
491
|
+
}, undefined>, undefined>, undefined>;
|
|
492
|
+
}, undefined>;
|
|
493
|
+
}, undefined>;
|
|
494
|
+
readonly 200: v.ObjectSchema<{
|
|
495
|
+
readonly changed: v.BooleanSchema<undefined>;
|
|
496
|
+
readonly changedCount: v.NumberSchema<undefined>;
|
|
497
|
+
readonly lastSyncedSha: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
498
|
+
readonly remoteSha: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
499
|
+
}, undefined>;
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
export declare const syncFragmentSourceContract: {
|
|
503
|
+
readonly method: "post";
|
|
504
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
505
|
+
readonly id: v.StringSchema<undefined>;
|
|
506
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
507
|
+
readonly pathResolver: ({ id }: {
|
|
508
|
+
id: string;
|
|
509
|
+
}) => string;
|
|
510
|
+
readonly requestBodySchema: typeof ContractNoBody;
|
|
511
|
+
readonly responsesByStatusCode: {
|
|
512
|
+
readonly '4xx': v.ObjectSchema<{
|
|
513
|
+
readonly error: v.ObjectSchema<{
|
|
514
|
+
readonly code: v.StringSchema<undefined>;
|
|
515
|
+
readonly message: v.StringSchema<undefined>;
|
|
516
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
517
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
518
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
519
|
+
readonly message: v.StringSchema<undefined>;
|
|
520
|
+
}, undefined>, undefined>, undefined>;
|
|
521
|
+
}, undefined>;
|
|
522
|
+
}, undefined>;
|
|
523
|
+
readonly '5xx': v.ObjectSchema<{
|
|
524
|
+
readonly error: v.ObjectSchema<{
|
|
525
|
+
readonly code: v.StringSchema<undefined>;
|
|
526
|
+
readonly message: v.StringSchema<undefined>;
|
|
527
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
528
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
529
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
530
|
+
readonly message: v.StringSchema<undefined>;
|
|
531
|
+
}, undefined>, undefined>, undefined>;
|
|
532
|
+
}, undefined>;
|
|
533
|
+
}, undefined>;
|
|
534
|
+
readonly 200: v.ObjectSchema<{
|
|
535
|
+
readonly upserted: v.NumberSchema<undefined>;
|
|
536
|
+
readonly tombstoned: v.NumberSchema<undefined>;
|
|
537
|
+
readonly unchanged: v.NumberSchema<undefined>;
|
|
538
|
+
readonly lastSyncedSha: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
539
|
+
}, undefined>;
|
|
540
|
+
};
|
|
541
|
+
};
|
|
542
|
+
export declare const resolvedFragmentsContract: {
|
|
543
|
+
readonly method: "get";
|
|
544
|
+
readonly pathResolver: () => string;
|
|
545
|
+
readonly responsesByStatusCode: {
|
|
546
|
+
readonly '4xx': v.ObjectSchema<{
|
|
547
|
+
readonly error: v.ObjectSchema<{
|
|
548
|
+
readonly code: v.StringSchema<undefined>;
|
|
549
|
+
readonly message: v.StringSchema<undefined>;
|
|
550
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
551
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
552
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
553
|
+
readonly message: v.StringSchema<undefined>;
|
|
554
|
+
}, undefined>, undefined>, undefined>;
|
|
555
|
+
}, undefined>;
|
|
556
|
+
}, undefined>;
|
|
557
|
+
readonly '5xx': v.ObjectSchema<{
|
|
558
|
+
readonly error: v.ObjectSchema<{
|
|
559
|
+
readonly code: v.StringSchema<undefined>;
|
|
560
|
+
readonly message: v.StringSchema<undefined>;
|
|
561
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
562
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
563
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
564
|
+
readonly message: v.StringSchema<undefined>;
|
|
565
|
+
}, undefined>, undefined>, undefined>;
|
|
566
|
+
}, undefined>;
|
|
567
|
+
}, undefined>;
|
|
568
|
+
readonly 200: v.ArraySchema<v.ObjectSchema<{
|
|
569
|
+
readonly id: v.StringSchema<undefined>;
|
|
570
|
+
readonly version: v.StringSchema<undefined>;
|
|
571
|
+
readonly title: v.StringSchema<undefined>;
|
|
572
|
+
readonly category: v.StringSchema<undefined>;
|
|
573
|
+
readonly summary: v.StringSchema<undefined>;
|
|
574
|
+
readonly body: v.StringSchema<undefined>;
|
|
575
|
+
readonly appliesTo: v.OptionalSchema<v.ObjectSchema<{
|
|
576
|
+
readonly blockTypes: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["frontend", "service", "api", "database", "queue", "integration", "external", "environment"], undefined>, undefined>, undefined>;
|
|
577
|
+
readonly agentKinds: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
|
|
578
|
+
}, undefined>, undefined>;
|
|
579
|
+
readonly tags: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
580
|
+
readonly source: v.OptionalSchema<v.ObjectSchema<{
|
|
581
|
+
readonly sourceId: v.StringSchema<undefined>;
|
|
582
|
+
readonly path: v.StringSchema<undefined>;
|
|
583
|
+
readonly sha: v.StringSchema<undefined>;
|
|
584
|
+
}, undefined>, undefined>;
|
|
585
|
+
readonly documentRef: v.OptionalSchema<v.ObjectSchema<{
|
|
586
|
+
readonly source: v.PicklistSchema<["confluence", "notion", "github"], undefined>;
|
|
587
|
+
readonly externalId: v.StringSchema<undefined>;
|
|
588
|
+
}, undefined>, undefined>;
|
|
589
|
+
readonly resolvedAt: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
590
|
+
readonly tier: v.PicklistSchema<["builtin", "account", "workspace"], undefined>;
|
|
591
|
+
}, undefined>, undefined>;
|
|
592
|
+
};
|
|
593
|
+
};
|
|
594
|
+
//# sourceMappingURL=fragment-library.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fragment-library.d.ts","sourceRoot":"","sources":["../../src/routes/fragment-library.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqC,MAAM,yBAAyB,CAAA;AAC3F,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAmC5B,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAItC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKvC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMvC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKvC,CAAA;AAIF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKzC,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASxC,CAAA;AAIF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAItC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKrC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKvC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKvC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMrC,CAAA;AAIF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIpC,CAAA"}
|