@cat-factory/contracts 0.34.0 → 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-keys.d.ts +17 -0
- package/dist/api-keys.d.ts.map +1 -1
- package/dist/api-keys.js +2 -0
- package/dist/api-keys.js.map +1 -1
- package/dist/github.d.ts +14 -0
- package/dist/github.d.ts.map +1 -1
- package/dist/github.js +13 -0
- package/dist/github.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/observability.d.ts +63 -0
- package/dist/observability.d.ts.map +1 -1
- package/dist/observability.js +57 -0
- package/dist/observability.js.map +1 -1
- package/dist/requests.d.ts +7 -0
- package/dist/requests.d.ts.map +1 -1
- package/dist/requests.js +2 -0
- package/dist/requests.js.map +1 -1
- package/dist/routes/_shared.d.ts +49 -0
- package/dist/routes/_shared.d.ts.map +1 -0
- package/dist/routes/_shared.js +34 -0
- package/dist/routes/_shared.js.map +1 -0
- package/dist/routes/accounts.d.ts +775 -0
- package/dist/routes/accounts.d.ts.map +1 -0
- package/dist/routes/accounts.js +145 -0
- package/dist/routes/accounts.js.map +1 -0
- package/dist/routes/agent-runs.d.ts +659 -0
- package/dist/routes/agent-runs.d.ts.map +1 -0
- package/dist/routes/agent-runs.js +33 -0
- package/dist/routes/agent-runs.js.map +1 -0
- package/dist/routes/api-keys.d.ts +245 -0
- package/dist/routes/api-keys.d.ts.map +1 -0
- package/dist/routes/api-keys.js +49 -0
- package/dist/routes/api-keys.js.map +1 -0
- package/dist/routes/auth.d.ts +411 -0
- package/dist/routes/auth.d.ts.map +1 -0
- package/dist/routes/auth.js +129 -0
- package/dist/routes/auth.js.map +1 -0
- package/dist/routes/board.d.ts +1260 -0
- package/dist/routes/board.d.ts.map +1 -0
- package/dist/routes/board.js +85 -0
- package/dist/routes/board.js.map +1 -0
- package/dist/routes/bootstrap.d.ts +395 -0
- package/dist/routes/bootstrap.d.ts.map +1 -0
- package/dist/routes/bootstrap.js +56 -0
- package/dist/routes/bootstrap.js.map +1 -0
- package/dist/routes/brainstorm.d.ts +482 -0
- package/dist/routes/brainstorm.d.ts.map +1 -0
- package/dist/routes/brainstorm.js +69 -0
- package/dist/routes/brainstorm.js.map +1 -0
- package/dist/routes/clarity.d.ts +462 -0
- package/dist/routes/clarity.d.ts.map +1 -0
- package/dist/routes/clarity.js +67 -0
- package/dist/routes/clarity.js.map +1 -0
- package/dist/routes/consensus.d.ts +71 -0
- package/dist/routes/consensus.d.ts.map +1 -0
- package/dist/routes/consensus.js +23 -0
- package/dist/routes/consensus.js.map +1 -0
- package/dist/routes/documents.d.ts +449 -0
- package/dist/routes/documents.d.ts.map +1 -0
- package/dist/routes/documents.js +89 -0
- package/dist/routes/documents.js.map +1 -0
- package/dist/routes/environments.d.ts +715 -0
- package/dist/routes/environments.d.ts.map +1 -0
- package/dist/routes/environments.js +82 -0
- package/dist/routes/environments.js.map +1 -0
- package/dist/routes/execution.d.ts +2768 -0
- package/dist/routes/execution.d.ts.map +1 -0
- package/dist/routes/execution.js +119 -0
- package/dist/routes/execution.js.map +1 -0
- package/dist/routes/followUp.d.ts +277 -0
- package/dist/routes/followUp.d.ts.map +1 -0
- package/dist/routes/followUp.js +47 -0
- package/dist/routes/followUp.js.map +1 -0
- package/dist/routes/fragment-library.d.ts +594 -0
- package/dist/routes/fragment-library.d.ts.map +1 -0
- package/dist/routes/fragment-library.js +102 -0
- package/dist/routes/fragment-library.js.map +1 -0
- package/dist/routes/github.d.ts +807 -0
- package/dist/routes/github.d.ts.map +1 -0
- package/dist/routes/github.js +157 -0
- package/dist/routes/github.js.map +1 -0
- package/dist/routes/human-review.d.ts +290 -0
- package/dist/routes/human-review.d.ts.map +1 -0
- package/dist/routes/human-review.js +20 -0
- package/dist/routes/human-review.js.map +1 -0
- package/dist/routes/human-test.d.ts +1435 -0
- package/dist/routes/human-test.d.ts.map +1 -0
- package/dist/routes/human-test.js +48 -0
- package/dist/routes/human-test.js.map +1 -0
- package/dist/routes/incident-enrichment.d.ts +110 -0
- package/dist/routes/incident-enrichment.d.ts.map +1 -0
- package/dist/routes/incident-enrichment.js +26 -0
- package/dist/routes/incident-enrichment.js.map +1 -0
- package/dist/routes/index.d.ts +47 -0
- package/dist/routes/index.d.ts.map +1 -0
- package/dist/routes/index.js +50 -0
- package/dist/routes/index.js.map +1 -0
- package/dist/routes/kaizen.d.ts +113 -0
- package/dist/routes/kaizen.d.ts.map +1 -0
- package/dist/routes/kaizen.js +22 -0
- package/dist/routes/kaizen.js.map +1 -0
- package/dist/routes/localModels.d.ts +163 -0
- package/dist/routes/localModels.d.ts.map +1 -0
- package/dist/routes/localModels.js +41 -0
- package/dist/routes/localModels.js.map +1 -0
- package/dist/routes/localSettings.d.ts +93 -0
- package/dist/routes/localSettings.d.ts.map +1 -0
- package/dist/routes/localSettings.js +22 -0
- package/dist/routes/localSettings.js.map +1 -0
- package/dist/routes/merge.d.ts +197 -0
- package/dist/routes/merge.d.ts.map +1 -0
- package/dist/routes/merge.js +36 -0
- package/dist/routes/merge.js.map +1 -0
- package/dist/routes/model-presets.d.ts +162 -0
- package/dist/routes/model-presets.d.ts.map +1 -0
- package/dist/routes/model-presets.js +36 -0
- package/dist/routes/model-presets.js.map +1 -0
- package/dist/routes/models.d.ts +123 -0
- package/dist/routes/models.d.ts.map +1 -0
- package/dist/routes/models.js +25 -0
- package/dist/routes/models.js.map +1 -0
- package/dist/routes/notifications.d.ts +213 -0
- package/dist/routes/notifications.d.ts.map +1 -0
- package/dist/routes/notifications.js +31 -0
- package/dist/routes/notifications.js.map +1 -0
- package/dist/routes/openrouter.d.ts +145 -0
- package/dist/routes/openrouter.d.ts.map +1 -0
- package/dist/routes/openrouter.js +32 -0
- package/dist/routes/openrouter.js.map +1 -0
- package/dist/routes/personal-subscriptions.d.ts +124 -0
- package/dist/routes/personal-subscriptions.d.ts.map +1 -0
- package/dist/routes/personal-subscriptions.js +32 -0
- package/dist/routes/personal-subscriptions.js.map +1 -0
- package/dist/routes/pipelines.d.ts +457 -0
- package/dist/routes/pipelines.d.ts.map +1 -0
- package/dist/routes/pipelines.js +51 -0
- package/dist/routes/pipelines.js.map +1 -0
- package/dist/routes/prompt-fragments.d.ts +52 -0
- package/dist/routes/prompt-fragments.d.ts.map +1 -0
- package/dist/routes/prompt-fragments.js +14 -0
- package/dist/routes/prompt-fragments.js.map +1 -0
- package/dist/routes/provisioning-logs.d.ts +45 -0
- package/dist/routes/provisioning-logs.d.ts.map +1 -0
- package/dist/routes/provisioning-logs.js +14 -0
- package/dist/routes/provisioning-logs.js.map +1 -0
- package/dist/routes/recurring.d.ts +309 -0
- package/dist/routes/recurring.d.ts.map +1 -0
- package/dist/routes/recurring.js +50 -0
- package/dist/routes/recurring.js.map +1 -0
- package/dist/routes/release.d.ts +218 -0
- package/dist/routes/release.d.ts.map +1 -0
- package/dist/routes/release.js +47 -0
- package/dist/routes/release.js.map +1 -0
- package/dist/routes/requirements.d.ts +901 -0
- package/dist/routes/requirements.d.ts.map +1 -0
- package/dist/routes/requirements.js +96 -0
- package/dist/routes/requirements.js.map +1 -0
- package/dist/routes/runners.d.ts +442 -0
- package/dist/routes/runners.d.ts.map +1 -0
- package/dist/routes/runners.js +47 -0
- package/dist/routes/runners.js.map +1 -0
- package/dist/routes/sandbox.d.ts +898 -0
- package/dist/routes/sandbox.d.ts.map +1 -0
- package/dist/routes/sandbox.js +119 -0
- package/dist/routes/sandbox.js.map +1 -0
- package/dist/routes/service-fragment-defaults.d.ts +66 -0
- package/dist/routes/service-fragment-defaults.d.ts.map +1 -0
- package/dist/routes/service-fragment-defaults.js +20 -0
- package/dist/routes/service-fragment-defaults.js.map +1 -0
- package/dist/routes/services.d.ts +224 -0
- package/dist/routes/services.d.ts.map +1 -0
- package/dist/routes/services.js +44 -0
- package/dist/routes/services.js.map +1 -0
- package/dist/routes/slack.d.ts +332 -0
- package/dist/routes/slack.d.ts.map +1 -0
- package/dist/routes/slack.js +72 -0
- package/dist/routes/slack.js.map +1 -0
- package/dist/routes/spec.d.ts +76 -0
- package/dist/routes/spec.d.ts.map +1 -0
- package/dist/routes/spec.js +17 -0
- package/dist/routes/spec.js.map +1 -0
- package/dist/routes/tasks.d.ts +723 -0
- package/dist/routes/tasks.d.ts.map +1 -0
- package/dist/routes/tasks.js +108 -0
- package/dist/routes/tasks.js.map +1 -0
- package/dist/routes/tracker.d.ts +77 -0
- package/dist/routes/tracker.d.ts.map +1 -0
- package/dist/routes/tracker.js +20 -0
- package/dist/routes/tracker.js.map +1 -0
- package/dist/routes/user-secret.d.ts +231 -0
- package/dist/routes/user-secret.d.ts.map +1 -0
- package/dist/routes/user-secret.js +49 -0
- package/dist/routes/user-secret.js.map +1 -0
- package/dist/routes/vendor-credentials.d.ts +120 -0
- package/dist/routes/vendor-credentials.d.ts.map +1 -0
- package/dist/routes/vendor-credentials.js +33 -0
- package/dist/routes/vendor-credentials.js.map +1 -0
- package/dist/routes/workspace-settings.d.ts +93 -0
- package/dist/routes/workspace-settings.d.ts.map +1 -0
- package/dist/routes/workspace-settings.js +20 -0
- package/dist/routes/workspace-settings.js.map +1 -0
- package/dist/routes/workspaces.d.ts +1309 -0
- package/dist/routes/workspaces.d.ts.map +1 -0
- package/dist/routes/workspaces.js +45 -0
- package/dist/routes/workspaces.js.map +1 -0
- package/package.json +3 -1
|
@@ -0,0 +1,807 @@
|
|
|
1
|
+
import { ContractNoBody } from '@toad-contracts/valibot';
|
|
2
|
+
import * as v from 'valibot';
|
|
3
|
+
export declare const getGitHubInstallUrlContract: {
|
|
4
|
+
readonly method: "get";
|
|
5
|
+
readonly pathResolver: () => string;
|
|
6
|
+
readonly responsesByStatusCode: {
|
|
7
|
+
readonly '4xx': v.ObjectSchema<{
|
|
8
|
+
readonly error: v.ObjectSchema<{
|
|
9
|
+
readonly code: v.StringSchema<undefined>;
|
|
10
|
+
readonly message: v.StringSchema<undefined>;
|
|
11
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
12
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
13
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
14
|
+
readonly message: v.StringSchema<undefined>;
|
|
15
|
+
}, undefined>, undefined>, undefined>;
|
|
16
|
+
}, undefined>;
|
|
17
|
+
}, undefined>;
|
|
18
|
+
readonly '5xx': v.ObjectSchema<{
|
|
19
|
+
readonly error: v.ObjectSchema<{
|
|
20
|
+
readonly code: v.StringSchema<undefined>;
|
|
21
|
+
readonly message: v.StringSchema<undefined>;
|
|
22
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
23
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
24
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
25
|
+
readonly message: v.StringSchema<undefined>;
|
|
26
|
+
}, undefined>, undefined>, undefined>;
|
|
27
|
+
}, undefined>;
|
|
28
|
+
}, undefined>;
|
|
29
|
+
readonly 200: v.ObjectSchema<{
|
|
30
|
+
readonly url: v.StringSchema<undefined>;
|
|
31
|
+
}, undefined>;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export declare const getGitHubConnectionContract: {
|
|
35
|
+
readonly method: "get";
|
|
36
|
+
readonly pathResolver: () => string;
|
|
37
|
+
readonly responsesByStatusCode: {
|
|
38
|
+
readonly '4xx': v.ObjectSchema<{
|
|
39
|
+
readonly error: v.ObjectSchema<{
|
|
40
|
+
readonly code: v.StringSchema<undefined>;
|
|
41
|
+
readonly message: v.StringSchema<undefined>;
|
|
42
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
43
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
44
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
45
|
+
readonly message: v.StringSchema<undefined>;
|
|
46
|
+
}, undefined>, undefined>, undefined>;
|
|
47
|
+
}, undefined>;
|
|
48
|
+
}, undefined>;
|
|
49
|
+
readonly '5xx': v.ObjectSchema<{
|
|
50
|
+
readonly error: v.ObjectSchema<{
|
|
51
|
+
readonly code: v.StringSchema<undefined>;
|
|
52
|
+
readonly message: v.StringSchema<undefined>;
|
|
53
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
54
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
55
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
56
|
+
readonly message: v.StringSchema<undefined>;
|
|
57
|
+
}, undefined>, undefined>, undefined>;
|
|
58
|
+
}, undefined>;
|
|
59
|
+
}, undefined>;
|
|
60
|
+
readonly 200: v.ObjectSchema<{
|
|
61
|
+
readonly connection: v.NullableSchema<v.ObjectSchema<{
|
|
62
|
+
readonly installationId: v.NumberSchema<undefined>;
|
|
63
|
+
readonly accountLogin: v.StringSchema<undefined>;
|
|
64
|
+
readonly targetType: v.PicklistSchema<["Organization", "User"], undefined>;
|
|
65
|
+
readonly connectedAt: v.NumberSchema<undefined>;
|
|
66
|
+
readonly canCreateRepos: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
67
|
+
readonly canManageWorkflows: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
68
|
+
}, undefined>, undefined>;
|
|
69
|
+
}, undefined>;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
export declare const listGitHubInstallationsContract: {
|
|
73
|
+
readonly method: "get";
|
|
74
|
+
readonly pathResolver: () => string;
|
|
75
|
+
readonly responsesByStatusCode: {
|
|
76
|
+
readonly '4xx': 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>;
|
|
84
|
+
}, undefined>, undefined>, undefined>;
|
|
85
|
+
}, undefined>;
|
|
86
|
+
}, undefined>;
|
|
87
|
+
readonly '5xx': v.ObjectSchema<{
|
|
88
|
+
readonly error: v.ObjectSchema<{
|
|
89
|
+
readonly code: v.StringSchema<undefined>;
|
|
90
|
+
readonly message: v.StringSchema<undefined>;
|
|
91
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
92
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
93
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
94
|
+
readonly message: v.StringSchema<undefined>;
|
|
95
|
+
}, undefined>, undefined>, undefined>;
|
|
96
|
+
}, undefined>;
|
|
97
|
+
}, undefined>;
|
|
98
|
+
readonly 200: v.ObjectSchema<{
|
|
99
|
+
readonly installations: v.ArraySchema<v.ObjectSchema<{
|
|
100
|
+
readonly installationId: v.NumberSchema<undefined>;
|
|
101
|
+
readonly accountLogin: v.StringSchema<undefined>;
|
|
102
|
+
readonly targetType: v.PicklistSchema<["Organization", "User"], undefined>;
|
|
103
|
+
readonly accountAvatarUrl: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
104
|
+
readonly connected: v.PicklistSchema<["this", "other", "none"], undefined>;
|
|
105
|
+
}, undefined>, undefined>;
|
|
106
|
+
}, undefined>;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
export declare const connectGitHubContract: {
|
|
110
|
+
readonly method: "post";
|
|
111
|
+
readonly pathResolver: () => string;
|
|
112
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
113
|
+
readonly installationId: v.NumberSchema<undefined>;
|
|
114
|
+
}, undefined>;
|
|
115
|
+
readonly responsesByStatusCode: {
|
|
116
|
+
readonly '4xx': v.ObjectSchema<{
|
|
117
|
+
readonly error: v.ObjectSchema<{
|
|
118
|
+
readonly code: v.StringSchema<undefined>;
|
|
119
|
+
readonly message: v.StringSchema<undefined>;
|
|
120
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
121
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
122
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
123
|
+
readonly message: v.StringSchema<undefined>;
|
|
124
|
+
}, undefined>, undefined>, undefined>;
|
|
125
|
+
}, undefined>;
|
|
126
|
+
}, undefined>;
|
|
127
|
+
readonly '5xx': v.ObjectSchema<{
|
|
128
|
+
readonly error: v.ObjectSchema<{
|
|
129
|
+
readonly code: v.StringSchema<undefined>;
|
|
130
|
+
readonly message: v.StringSchema<undefined>;
|
|
131
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
132
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
133
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
134
|
+
readonly message: v.StringSchema<undefined>;
|
|
135
|
+
}, undefined>, undefined>, undefined>;
|
|
136
|
+
}, undefined>;
|
|
137
|
+
}, undefined>;
|
|
138
|
+
readonly 201: v.ObjectSchema<{
|
|
139
|
+
readonly installationId: v.NumberSchema<undefined>;
|
|
140
|
+
readonly accountLogin: v.StringSchema<undefined>;
|
|
141
|
+
readonly targetType: v.PicklistSchema<["Organization", "User"], undefined>;
|
|
142
|
+
readonly connectedAt: v.NumberSchema<undefined>;
|
|
143
|
+
readonly canCreateRepos: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
144
|
+
readonly canManageWorkflows: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
145
|
+
}, undefined>;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
export declare const listGitHubAvailableReposContract: {
|
|
149
|
+
readonly method: "get";
|
|
150
|
+
readonly pathResolver: () => string;
|
|
151
|
+
readonly responsesByStatusCode: {
|
|
152
|
+
readonly '4xx': v.ObjectSchema<{
|
|
153
|
+
readonly error: v.ObjectSchema<{
|
|
154
|
+
readonly code: v.StringSchema<undefined>;
|
|
155
|
+
readonly message: v.StringSchema<undefined>;
|
|
156
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
157
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
158
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
159
|
+
readonly message: v.StringSchema<undefined>;
|
|
160
|
+
}, undefined>, undefined>, undefined>;
|
|
161
|
+
}, undefined>;
|
|
162
|
+
}, undefined>;
|
|
163
|
+
readonly '5xx': v.ObjectSchema<{
|
|
164
|
+
readonly error: v.ObjectSchema<{
|
|
165
|
+
readonly code: v.StringSchema<undefined>;
|
|
166
|
+
readonly message: v.StringSchema<undefined>;
|
|
167
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
168
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
169
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
170
|
+
readonly message: v.StringSchema<undefined>;
|
|
171
|
+
}, undefined>, undefined>, undefined>;
|
|
172
|
+
}, undefined>;
|
|
173
|
+
}, undefined>;
|
|
174
|
+
readonly 200: v.ArraySchema<v.ObjectSchema<{
|
|
175
|
+
readonly githubId: v.NumberSchema<undefined>;
|
|
176
|
+
readonly owner: v.StringSchema<undefined>;
|
|
177
|
+
readonly name: v.StringSchema<undefined>;
|
|
178
|
+
readonly defaultBranch: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
179
|
+
readonly private: v.BooleanSchema<undefined>;
|
|
180
|
+
readonly linked: v.BooleanSchema<undefined>;
|
|
181
|
+
readonly isMonorepo: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
182
|
+
}, undefined>, undefined>;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
export declare const setGitHubLinkedReposContract: {
|
|
186
|
+
readonly method: "put";
|
|
187
|
+
readonly pathResolver: () => string;
|
|
188
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
189
|
+
readonly repoGithubIds: v.ArraySchema<v.NumberSchema<undefined>, undefined>;
|
|
190
|
+
}, undefined>;
|
|
191
|
+
readonly responsesByStatusCode: {
|
|
192
|
+
readonly '4xx': v.ObjectSchema<{
|
|
193
|
+
readonly error: v.ObjectSchema<{
|
|
194
|
+
readonly code: v.StringSchema<undefined>;
|
|
195
|
+
readonly message: v.StringSchema<undefined>;
|
|
196
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
197
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
198
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
199
|
+
readonly message: v.StringSchema<undefined>;
|
|
200
|
+
}, undefined>, undefined>, undefined>;
|
|
201
|
+
}, undefined>;
|
|
202
|
+
}, undefined>;
|
|
203
|
+
readonly '5xx': v.ObjectSchema<{
|
|
204
|
+
readonly error: v.ObjectSchema<{
|
|
205
|
+
readonly code: v.StringSchema<undefined>;
|
|
206
|
+
readonly message: v.StringSchema<undefined>;
|
|
207
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
208
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
209
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
210
|
+
readonly message: v.StringSchema<undefined>;
|
|
211
|
+
}, undefined>, undefined>, undefined>;
|
|
212
|
+
}, undefined>;
|
|
213
|
+
}, undefined>;
|
|
214
|
+
readonly 200: v.ArraySchema<v.ObjectSchema<{
|
|
215
|
+
readonly githubId: v.NumberSchema<undefined>;
|
|
216
|
+
readonly installationId: v.NumberSchema<undefined>;
|
|
217
|
+
readonly owner: v.StringSchema<undefined>;
|
|
218
|
+
readonly name: v.StringSchema<undefined>;
|
|
219
|
+
readonly defaultBranch: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
220
|
+
readonly private: v.BooleanSchema<undefined>;
|
|
221
|
+
readonly blockId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
222
|
+
readonly isMonorepo: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
223
|
+
readonly syncedAt: v.NumberSchema<undefined>;
|
|
224
|
+
}, undefined>, undefined>;
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
export declare const setGitHubRepoMonorepoContract: {
|
|
228
|
+
readonly method: "patch";
|
|
229
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
230
|
+
readonly repoGithubId: v.StringSchema<undefined>;
|
|
231
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
232
|
+
readonly pathResolver: ({ repoGithubId }: {
|
|
233
|
+
repoGithubId: string;
|
|
234
|
+
}) => string;
|
|
235
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
236
|
+
readonly isMonorepo: v.BooleanSchema<undefined>;
|
|
237
|
+
}, undefined>;
|
|
238
|
+
readonly responsesByStatusCode: {
|
|
239
|
+
readonly '4xx': v.ObjectSchema<{
|
|
240
|
+
readonly error: v.ObjectSchema<{
|
|
241
|
+
readonly code: v.StringSchema<undefined>;
|
|
242
|
+
readonly message: v.StringSchema<undefined>;
|
|
243
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
244
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
245
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
246
|
+
readonly message: v.StringSchema<undefined>;
|
|
247
|
+
}, undefined>, undefined>, undefined>;
|
|
248
|
+
}, undefined>;
|
|
249
|
+
}, undefined>;
|
|
250
|
+
readonly '5xx': v.ObjectSchema<{
|
|
251
|
+
readonly error: v.ObjectSchema<{
|
|
252
|
+
readonly code: v.StringSchema<undefined>;
|
|
253
|
+
readonly message: v.StringSchema<undefined>;
|
|
254
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
255
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
256
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
257
|
+
readonly message: v.StringSchema<undefined>;
|
|
258
|
+
}, undefined>, undefined>, undefined>;
|
|
259
|
+
}, undefined>;
|
|
260
|
+
}, undefined>;
|
|
261
|
+
readonly 200: v.ObjectSchema<{
|
|
262
|
+
readonly githubId: v.NumberSchema<undefined>;
|
|
263
|
+
readonly installationId: v.NumberSchema<undefined>;
|
|
264
|
+
readonly owner: v.StringSchema<undefined>;
|
|
265
|
+
readonly name: v.StringSchema<undefined>;
|
|
266
|
+
readonly defaultBranch: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
267
|
+
readonly private: v.BooleanSchema<undefined>;
|
|
268
|
+
readonly blockId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
269
|
+
readonly isMonorepo: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
270
|
+
readonly syncedAt: v.NumberSchema<undefined>;
|
|
271
|
+
}, undefined>;
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
export declare const listGitHubRepoTreeContract: {
|
|
275
|
+
readonly method: "get";
|
|
276
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
277
|
+
readonly repoGithubId: v.StringSchema<undefined>;
|
|
278
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
279
|
+
readonly pathResolver: ({ repoGithubId }: {
|
|
280
|
+
repoGithubId: string;
|
|
281
|
+
}) => string;
|
|
282
|
+
readonly requestQuerySchema: v.ObjectSchema<{
|
|
283
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
284
|
+
}, undefined>;
|
|
285
|
+
readonly responsesByStatusCode: {
|
|
286
|
+
readonly '4xx': v.ObjectSchema<{
|
|
287
|
+
readonly error: v.ObjectSchema<{
|
|
288
|
+
readonly code: v.StringSchema<undefined>;
|
|
289
|
+
readonly message: v.StringSchema<undefined>;
|
|
290
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
291
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
292
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
293
|
+
readonly message: v.StringSchema<undefined>;
|
|
294
|
+
}, undefined>, undefined>, undefined>;
|
|
295
|
+
}, undefined>;
|
|
296
|
+
}, undefined>;
|
|
297
|
+
readonly '5xx': v.ObjectSchema<{
|
|
298
|
+
readonly error: v.ObjectSchema<{
|
|
299
|
+
readonly code: v.StringSchema<undefined>;
|
|
300
|
+
readonly message: v.StringSchema<undefined>;
|
|
301
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
302
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
303
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
304
|
+
readonly message: v.StringSchema<undefined>;
|
|
305
|
+
}, undefined>, undefined>, undefined>;
|
|
306
|
+
}, undefined>;
|
|
307
|
+
}, undefined>;
|
|
308
|
+
readonly 200: v.ArraySchema<v.ObjectSchema<{
|
|
309
|
+
readonly path: v.StringSchema<undefined>;
|
|
310
|
+
readonly name: v.StringSchema<undefined>;
|
|
311
|
+
readonly type: v.StringSchema<undefined>;
|
|
312
|
+
}, undefined>, undefined>;
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
export declare const disconnectGitHubContract: {
|
|
316
|
+
readonly method: "delete";
|
|
317
|
+
readonly pathResolver: () => string;
|
|
318
|
+
readonly responsesByStatusCode: {
|
|
319
|
+
readonly '4xx': v.ObjectSchema<{
|
|
320
|
+
readonly error: v.ObjectSchema<{
|
|
321
|
+
readonly code: v.StringSchema<undefined>;
|
|
322
|
+
readonly message: v.StringSchema<undefined>;
|
|
323
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
324
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
325
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
326
|
+
readonly message: v.StringSchema<undefined>;
|
|
327
|
+
}, undefined>, undefined>, undefined>;
|
|
328
|
+
}, undefined>;
|
|
329
|
+
}, undefined>;
|
|
330
|
+
readonly '5xx': v.ObjectSchema<{
|
|
331
|
+
readonly error: v.ObjectSchema<{
|
|
332
|
+
readonly code: v.StringSchema<undefined>;
|
|
333
|
+
readonly message: v.StringSchema<undefined>;
|
|
334
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
335
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
336
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
337
|
+
readonly message: v.StringSchema<undefined>;
|
|
338
|
+
}, undefined>, undefined>, undefined>;
|
|
339
|
+
}, undefined>;
|
|
340
|
+
}, undefined>;
|
|
341
|
+
readonly 204: typeof ContractNoBody;
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
export declare const resyncGitHubContract: {
|
|
345
|
+
readonly method: "post";
|
|
346
|
+
readonly pathResolver: () => string;
|
|
347
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
348
|
+
readonly repoGithubId: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
349
|
+
readonly full: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
350
|
+
}, undefined>;
|
|
351
|
+
readonly responsesByStatusCode: {
|
|
352
|
+
readonly '4xx': v.ObjectSchema<{
|
|
353
|
+
readonly error: v.ObjectSchema<{
|
|
354
|
+
readonly code: v.StringSchema<undefined>;
|
|
355
|
+
readonly message: v.StringSchema<undefined>;
|
|
356
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
357
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
358
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
359
|
+
readonly message: v.StringSchema<undefined>;
|
|
360
|
+
}, undefined>, undefined>, undefined>;
|
|
361
|
+
}, undefined>;
|
|
362
|
+
}, undefined>;
|
|
363
|
+
readonly '5xx': v.ObjectSchema<{
|
|
364
|
+
readonly error: v.ObjectSchema<{
|
|
365
|
+
readonly code: v.StringSchema<undefined>;
|
|
366
|
+
readonly message: v.StringSchema<undefined>;
|
|
367
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
368
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
369
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
370
|
+
readonly message: v.StringSchema<undefined>;
|
|
371
|
+
}, undefined>, undefined>, undefined>;
|
|
372
|
+
}, undefined>;
|
|
373
|
+
}, undefined>;
|
|
374
|
+
readonly 200: v.ObjectSchema<{
|
|
375
|
+
readonly status: v.PicklistSchema<["backfill_started", "backfilled", "queued", "synced"], undefined>;
|
|
376
|
+
}, undefined>;
|
|
377
|
+
readonly 202: v.ObjectSchema<{
|
|
378
|
+
readonly status: v.PicklistSchema<["backfill_started", "backfilled", "queued", "synced"], undefined>;
|
|
379
|
+
}, undefined>;
|
|
380
|
+
};
|
|
381
|
+
};
|
|
382
|
+
export declare const listGitHubReposContract: {
|
|
383
|
+
readonly method: "get";
|
|
384
|
+
readonly pathResolver: () => string;
|
|
385
|
+
readonly responsesByStatusCode: {
|
|
386
|
+
readonly '4xx': v.ObjectSchema<{
|
|
387
|
+
readonly error: v.ObjectSchema<{
|
|
388
|
+
readonly code: v.StringSchema<undefined>;
|
|
389
|
+
readonly message: v.StringSchema<undefined>;
|
|
390
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
391
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
392
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
393
|
+
readonly message: v.StringSchema<undefined>;
|
|
394
|
+
}, undefined>, undefined>, undefined>;
|
|
395
|
+
}, undefined>;
|
|
396
|
+
}, undefined>;
|
|
397
|
+
readonly '5xx': v.ObjectSchema<{
|
|
398
|
+
readonly error: v.ObjectSchema<{
|
|
399
|
+
readonly code: v.StringSchema<undefined>;
|
|
400
|
+
readonly message: v.StringSchema<undefined>;
|
|
401
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
402
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
403
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
404
|
+
readonly message: v.StringSchema<undefined>;
|
|
405
|
+
}, undefined>, undefined>, undefined>;
|
|
406
|
+
}, undefined>;
|
|
407
|
+
}, undefined>;
|
|
408
|
+
readonly 200: v.ArraySchema<v.ObjectSchema<{
|
|
409
|
+
readonly githubId: v.NumberSchema<undefined>;
|
|
410
|
+
readonly installationId: v.NumberSchema<undefined>;
|
|
411
|
+
readonly owner: v.StringSchema<undefined>;
|
|
412
|
+
readonly name: v.StringSchema<undefined>;
|
|
413
|
+
readonly defaultBranch: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
414
|
+
readonly private: v.BooleanSchema<undefined>;
|
|
415
|
+
readonly blockId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
416
|
+
readonly isMonorepo: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
417
|
+
readonly syncedAt: v.NumberSchema<undefined>;
|
|
418
|
+
}, undefined>, undefined>;
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
export declare const listGitHubBranchesContract: {
|
|
422
|
+
readonly method: "get";
|
|
423
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
424
|
+
readonly repoGithubId: v.StringSchema<undefined>;
|
|
425
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
426
|
+
readonly pathResolver: ({ repoGithubId }: {
|
|
427
|
+
repoGithubId: string;
|
|
428
|
+
}) => string;
|
|
429
|
+
readonly responsesByStatusCode: {
|
|
430
|
+
readonly '4xx': v.ObjectSchema<{
|
|
431
|
+
readonly error: v.ObjectSchema<{
|
|
432
|
+
readonly code: v.StringSchema<undefined>;
|
|
433
|
+
readonly message: v.StringSchema<undefined>;
|
|
434
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
435
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
436
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
437
|
+
readonly message: v.StringSchema<undefined>;
|
|
438
|
+
}, undefined>, undefined>, undefined>;
|
|
439
|
+
}, undefined>;
|
|
440
|
+
}, undefined>;
|
|
441
|
+
readonly '5xx': v.ObjectSchema<{
|
|
442
|
+
readonly error: v.ObjectSchema<{
|
|
443
|
+
readonly code: v.StringSchema<undefined>;
|
|
444
|
+
readonly message: v.StringSchema<undefined>;
|
|
445
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
446
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
447
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
448
|
+
readonly message: v.StringSchema<undefined>;
|
|
449
|
+
}, undefined>, undefined>, undefined>;
|
|
450
|
+
}, undefined>;
|
|
451
|
+
}, undefined>;
|
|
452
|
+
readonly 200: v.ArraySchema<v.ObjectSchema<{
|
|
453
|
+
readonly repoGithubId: v.NumberSchema<undefined>;
|
|
454
|
+
readonly name: v.StringSchema<undefined>;
|
|
455
|
+
readonly headSha: v.StringSchema<undefined>;
|
|
456
|
+
readonly protected: v.BooleanSchema<undefined>;
|
|
457
|
+
readonly syncedAt: v.NumberSchema<undefined>;
|
|
458
|
+
}, undefined>, undefined>;
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
export declare const listGitHubPullsContract: {
|
|
462
|
+
readonly method: "get";
|
|
463
|
+
readonly pathResolver: () => string;
|
|
464
|
+
readonly responsesByStatusCode: {
|
|
465
|
+
readonly '4xx': v.ObjectSchema<{
|
|
466
|
+
readonly error: v.ObjectSchema<{
|
|
467
|
+
readonly code: v.StringSchema<undefined>;
|
|
468
|
+
readonly message: v.StringSchema<undefined>;
|
|
469
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
470
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
471
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
472
|
+
readonly message: v.StringSchema<undefined>;
|
|
473
|
+
}, undefined>, undefined>, undefined>;
|
|
474
|
+
}, undefined>;
|
|
475
|
+
}, undefined>;
|
|
476
|
+
readonly '5xx': v.ObjectSchema<{
|
|
477
|
+
readonly error: v.ObjectSchema<{
|
|
478
|
+
readonly code: v.StringSchema<undefined>;
|
|
479
|
+
readonly message: v.StringSchema<undefined>;
|
|
480
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
481
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
482
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
483
|
+
readonly message: v.StringSchema<undefined>;
|
|
484
|
+
}, undefined>, undefined>, undefined>;
|
|
485
|
+
}, undefined>;
|
|
486
|
+
}, undefined>;
|
|
487
|
+
readonly 200: v.ArraySchema<v.ObjectSchema<{
|
|
488
|
+
readonly repoGithubId: v.NumberSchema<undefined>;
|
|
489
|
+
readonly number: v.NumberSchema<undefined>;
|
|
490
|
+
readonly githubId: v.NumberSchema<undefined>;
|
|
491
|
+
readonly title: v.StringSchema<undefined>;
|
|
492
|
+
readonly state: v.PicklistSchema<["open", "closed"], undefined>;
|
|
493
|
+
readonly headRef: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
494
|
+
readonly baseRef: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
495
|
+
readonly headSha: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
496
|
+
readonly merged: v.BooleanSchema<undefined>;
|
|
497
|
+
readonly author: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
498
|
+
readonly updatedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
499
|
+
readonly syncedAt: v.NumberSchema<undefined>;
|
|
500
|
+
}, undefined>, undefined>;
|
|
501
|
+
};
|
|
502
|
+
};
|
|
503
|
+
export declare const listGitHubIssuesContract: {
|
|
504
|
+
readonly method: "get";
|
|
505
|
+
readonly pathResolver: () => string;
|
|
506
|
+
readonly responsesByStatusCode: {
|
|
507
|
+
readonly '4xx': v.ObjectSchema<{
|
|
508
|
+
readonly error: v.ObjectSchema<{
|
|
509
|
+
readonly code: v.StringSchema<undefined>;
|
|
510
|
+
readonly message: v.StringSchema<undefined>;
|
|
511
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
512
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
513
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
514
|
+
readonly message: v.StringSchema<undefined>;
|
|
515
|
+
}, undefined>, undefined>, undefined>;
|
|
516
|
+
}, undefined>;
|
|
517
|
+
}, undefined>;
|
|
518
|
+
readonly '5xx': v.ObjectSchema<{
|
|
519
|
+
readonly error: v.ObjectSchema<{
|
|
520
|
+
readonly code: v.StringSchema<undefined>;
|
|
521
|
+
readonly message: v.StringSchema<undefined>;
|
|
522
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
523
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
524
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
525
|
+
readonly message: v.StringSchema<undefined>;
|
|
526
|
+
}, undefined>, undefined>, undefined>;
|
|
527
|
+
}, undefined>;
|
|
528
|
+
}, undefined>;
|
|
529
|
+
readonly 200: v.ArraySchema<v.ObjectSchema<{
|
|
530
|
+
readonly repoGithubId: v.NumberSchema<undefined>;
|
|
531
|
+
readonly number: v.NumberSchema<undefined>;
|
|
532
|
+
readonly githubId: v.NumberSchema<undefined>;
|
|
533
|
+
readonly title: v.StringSchema<undefined>;
|
|
534
|
+
readonly state: v.PicklistSchema<["open", "closed"], undefined>;
|
|
535
|
+
readonly author: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
536
|
+
readonly labels: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
537
|
+
readonly updatedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
538
|
+
readonly syncedAt: v.NumberSchema<undefined>;
|
|
539
|
+
}, undefined>, undefined>;
|
|
540
|
+
};
|
|
541
|
+
};
|
|
542
|
+
export declare const createGitHubRepoContract: {
|
|
543
|
+
readonly method: "post";
|
|
544
|
+
readonly pathResolver: () => string;
|
|
545
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
546
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, "Only letters, digits, '.', '_' and '-' are allowed">, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 100, undefined>]>;
|
|
547
|
+
readonly private: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
548
|
+
readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 350, undefined>]>, "">;
|
|
549
|
+
}, undefined>;
|
|
550
|
+
readonly responsesByStatusCode: {
|
|
551
|
+
readonly '4xx': v.ObjectSchema<{
|
|
552
|
+
readonly error: v.ObjectSchema<{
|
|
553
|
+
readonly code: v.StringSchema<undefined>;
|
|
554
|
+
readonly message: v.StringSchema<undefined>;
|
|
555
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
556
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
557
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
558
|
+
readonly message: v.StringSchema<undefined>;
|
|
559
|
+
}, undefined>, undefined>, undefined>;
|
|
560
|
+
}, undefined>;
|
|
561
|
+
}, undefined>;
|
|
562
|
+
readonly '5xx': v.ObjectSchema<{
|
|
563
|
+
readonly error: v.ObjectSchema<{
|
|
564
|
+
readonly code: v.StringSchema<undefined>;
|
|
565
|
+
readonly message: v.StringSchema<undefined>;
|
|
566
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
567
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
568
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
569
|
+
readonly message: v.StringSchema<undefined>;
|
|
570
|
+
}, undefined>, undefined>, undefined>;
|
|
571
|
+
}, undefined>;
|
|
572
|
+
}, undefined>;
|
|
573
|
+
readonly 201: v.ObjectSchema<{
|
|
574
|
+
readonly githubId: v.NumberSchema<undefined>;
|
|
575
|
+
readonly owner: v.StringSchema<undefined>;
|
|
576
|
+
readonly name: v.StringSchema<undefined>;
|
|
577
|
+
readonly defaultBranch: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
578
|
+
readonly private: v.BooleanSchema<undefined>;
|
|
579
|
+
}, undefined>;
|
|
580
|
+
};
|
|
581
|
+
};
|
|
582
|
+
export declare const createGitHubBranchContract: {
|
|
583
|
+
readonly method: "post";
|
|
584
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
585
|
+
readonly repoGithubId: v.StringSchema<undefined>;
|
|
586
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
587
|
+
readonly pathResolver: ({ repoGithubId }: {
|
|
588
|
+
repoGithubId: string;
|
|
589
|
+
}) => string;
|
|
590
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
591
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
592
|
+
readonly fromSha: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
593
|
+
}, undefined>;
|
|
594
|
+
readonly responsesByStatusCode: {
|
|
595
|
+
readonly '4xx': v.ObjectSchema<{
|
|
596
|
+
readonly error: v.ObjectSchema<{
|
|
597
|
+
readonly code: v.StringSchema<undefined>;
|
|
598
|
+
readonly message: v.StringSchema<undefined>;
|
|
599
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
600
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
601
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
602
|
+
readonly message: v.StringSchema<undefined>;
|
|
603
|
+
}, undefined>, undefined>, undefined>;
|
|
604
|
+
}, undefined>;
|
|
605
|
+
}, undefined>;
|
|
606
|
+
readonly '5xx': v.ObjectSchema<{
|
|
607
|
+
readonly error: v.ObjectSchema<{
|
|
608
|
+
readonly code: v.StringSchema<undefined>;
|
|
609
|
+
readonly message: v.StringSchema<undefined>;
|
|
610
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
611
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
612
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
613
|
+
readonly message: v.StringSchema<undefined>;
|
|
614
|
+
}, undefined>, undefined>, undefined>;
|
|
615
|
+
}, undefined>;
|
|
616
|
+
}, undefined>;
|
|
617
|
+
readonly 201: v.ObjectSchema<{
|
|
618
|
+
readonly repoGithubId: v.NumberSchema<undefined>;
|
|
619
|
+
readonly name: v.StringSchema<undefined>;
|
|
620
|
+
readonly headSha: v.StringSchema<undefined>;
|
|
621
|
+
readonly protected: v.BooleanSchema<undefined>;
|
|
622
|
+
readonly syncedAt: v.NumberSchema<undefined>;
|
|
623
|
+
}, undefined>;
|
|
624
|
+
};
|
|
625
|
+
};
|
|
626
|
+
export declare const commitGitHubFilesContract: {
|
|
627
|
+
readonly method: "post";
|
|
628
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
629
|
+
readonly repoGithubId: v.StringSchema<undefined>;
|
|
630
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
631
|
+
readonly pathResolver: ({ repoGithubId }: {
|
|
632
|
+
repoGithubId: string;
|
|
633
|
+
}) => string;
|
|
634
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
635
|
+
readonly branch: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
636
|
+
readonly message: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
637
|
+
readonly files: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
638
|
+
readonly path: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
639
|
+
readonly content: v.StringSchema<undefined>;
|
|
640
|
+
}, undefined>, undefined>, v.MinLengthAction<{
|
|
641
|
+
path: string;
|
|
642
|
+
content: string;
|
|
643
|
+
}[], 1, undefined>]>;
|
|
644
|
+
readonly deletions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
|
|
645
|
+
readonly baseSha: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
646
|
+
}, undefined>;
|
|
647
|
+
readonly responsesByStatusCode: {
|
|
648
|
+
readonly '4xx': v.ObjectSchema<{
|
|
649
|
+
readonly error: v.ObjectSchema<{
|
|
650
|
+
readonly code: v.StringSchema<undefined>;
|
|
651
|
+
readonly message: v.StringSchema<undefined>;
|
|
652
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
653
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
654
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
655
|
+
readonly message: v.StringSchema<undefined>;
|
|
656
|
+
}, undefined>, undefined>, undefined>;
|
|
657
|
+
}, undefined>;
|
|
658
|
+
}, undefined>;
|
|
659
|
+
readonly '5xx': v.ObjectSchema<{
|
|
660
|
+
readonly error: v.ObjectSchema<{
|
|
661
|
+
readonly code: v.StringSchema<undefined>;
|
|
662
|
+
readonly message: v.StringSchema<undefined>;
|
|
663
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
664
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
665
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
666
|
+
readonly message: v.StringSchema<undefined>;
|
|
667
|
+
}, undefined>, undefined>, undefined>;
|
|
668
|
+
}, undefined>;
|
|
669
|
+
}, undefined>;
|
|
670
|
+
readonly 201: v.ObjectSchema<{
|
|
671
|
+
readonly sha: v.StringSchema<undefined>;
|
|
672
|
+
}, undefined>;
|
|
673
|
+
};
|
|
674
|
+
};
|
|
675
|
+
export declare const openGitHubPullRequestContract: {
|
|
676
|
+
readonly method: "post";
|
|
677
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
678
|
+
readonly repoGithubId: v.StringSchema<undefined>;
|
|
679
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
680
|
+
readonly pathResolver: ({ repoGithubId }: {
|
|
681
|
+
repoGithubId: string;
|
|
682
|
+
}) => string;
|
|
683
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
684
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
685
|
+
readonly head: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
686
|
+
readonly base: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
687
|
+
readonly body: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
688
|
+
readonly draft: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
689
|
+
}, undefined>;
|
|
690
|
+
readonly responsesByStatusCode: {
|
|
691
|
+
readonly '4xx': v.ObjectSchema<{
|
|
692
|
+
readonly error: v.ObjectSchema<{
|
|
693
|
+
readonly code: v.StringSchema<undefined>;
|
|
694
|
+
readonly message: v.StringSchema<undefined>;
|
|
695
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
696
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
697
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
698
|
+
readonly message: v.StringSchema<undefined>;
|
|
699
|
+
}, undefined>, undefined>, undefined>;
|
|
700
|
+
}, undefined>;
|
|
701
|
+
}, undefined>;
|
|
702
|
+
readonly '5xx': v.ObjectSchema<{
|
|
703
|
+
readonly error: v.ObjectSchema<{
|
|
704
|
+
readonly code: v.StringSchema<undefined>;
|
|
705
|
+
readonly message: v.StringSchema<undefined>;
|
|
706
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
707
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
708
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
709
|
+
readonly message: v.StringSchema<undefined>;
|
|
710
|
+
}, undefined>, undefined>, undefined>;
|
|
711
|
+
}, undefined>;
|
|
712
|
+
}, undefined>;
|
|
713
|
+
readonly 201: v.ObjectSchema<{
|
|
714
|
+
readonly repoGithubId: v.NumberSchema<undefined>;
|
|
715
|
+
readonly number: v.NumberSchema<undefined>;
|
|
716
|
+
readonly githubId: v.NumberSchema<undefined>;
|
|
717
|
+
readonly title: v.StringSchema<undefined>;
|
|
718
|
+
readonly state: v.PicklistSchema<["open", "closed"], undefined>;
|
|
719
|
+
readonly headRef: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
720
|
+
readonly baseRef: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
721
|
+
readonly headSha: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
722
|
+
readonly merged: v.BooleanSchema<undefined>;
|
|
723
|
+
readonly author: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
724
|
+
readonly updatedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
725
|
+
readonly syncedAt: v.NumberSchema<undefined>;
|
|
726
|
+
}, undefined>;
|
|
727
|
+
};
|
|
728
|
+
};
|
|
729
|
+
export declare const mergeGitHubPullRequestContract: {
|
|
730
|
+
readonly method: "put";
|
|
731
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
732
|
+
readonly repoGithubId: v.StringSchema<undefined>;
|
|
733
|
+
readonly number: v.StringSchema<undefined>;
|
|
734
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
735
|
+
readonly pathResolver: ({ repoGithubId, number }: {
|
|
736
|
+
repoGithubId: string;
|
|
737
|
+
number: string;
|
|
738
|
+
}) => string;
|
|
739
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
740
|
+
readonly method: v.OptionalSchema<v.PicklistSchema<["merge", "squash", "rebase"], undefined>, undefined>;
|
|
741
|
+
}, undefined>;
|
|
742
|
+
readonly responsesByStatusCode: {
|
|
743
|
+
readonly '4xx': v.ObjectSchema<{
|
|
744
|
+
readonly error: v.ObjectSchema<{
|
|
745
|
+
readonly code: v.StringSchema<undefined>;
|
|
746
|
+
readonly message: v.StringSchema<undefined>;
|
|
747
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
748
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
749
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
750
|
+
readonly message: v.StringSchema<undefined>;
|
|
751
|
+
}, undefined>, undefined>, undefined>;
|
|
752
|
+
}, undefined>;
|
|
753
|
+
}, undefined>;
|
|
754
|
+
readonly '5xx': v.ObjectSchema<{
|
|
755
|
+
readonly error: v.ObjectSchema<{
|
|
756
|
+
readonly code: v.StringSchema<undefined>;
|
|
757
|
+
readonly message: v.StringSchema<undefined>;
|
|
758
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
759
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
760
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
761
|
+
readonly message: v.StringSchema<undefined>;
|
|
762
|
+
}, undefined>, undefined>, undefined>;
|
|
763
|
+
}, undefined>;
|
|
764
|
+
}, undefined>;
|
|
765
|
+
readonly 204: typeof ContractNoBody;
|
|
766
|
+
};
|
|
767
|
+
};
|
|
768
|
+
export declare const commentGitHubIssueContract: {
|
|
769
|
+
readonly method: "post";
|
|
770
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
771
|
+
readonly repoGithubId: v.StringSchema<undefined>;
|
|
772
|
+
readonly number: v.StringSchema<undefined>;
|
|
773
|
+
}, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
|
|
774
|
+
readonly pathResolver: ({ repoGithubId, number }: {
|
|
775
|
+
repoGithubId: string;
|
|
776
|
+
number: string;
|
|
777
|
+
}) => string;
|
|
778
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
779
|
+
readonly body: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
780
|
+
}, undefined>;
|
|
781
|
+
readonly responsesByStatusCode: {
|
|
782
|
+
readonly '4xx': v.ObjectSchema<{
|
|
783
|
+
readonly error: v.ObjectSchema<{
|
|
784
|
+
readonly code: v.StringSchema<undefined>;
|
|
785
|
+
readonly message: v.StringSchema<undefined>;
|
|
786
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
787
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
788
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
789
|
+
readonly message: v.StringSchema<undefined>;
|
|
790
|
+
}, undefined>, undefined>, undefined>;
|
|
791
|
+
}, undefined>;
|
|
792
|
+
}, undefined>;
|
|
793
|
+
readonly '5xx': v.ObjectSchema<{
|
|
794
|
+
readonly error: v.ObjectSchema<{
|
|
795
|
+
readonly code: v.StringSchema<undefined>;
|
|
796
|
+
readonly message: v.StringSchema<undefined>;
|
|
797
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
798
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
799
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
800
|
+
readonly message: v.StringSchema<undefined>;
|
|
801
|
+
}, undefined>, undefined>, undefined>;
|
|
802
|
+
}, undefined>;
|
|
803
|
+
}, undefined>;
|
|
804
|
+
readonly 204: typeof ContractNoBody;
|
|
805
|
+
};
|
|
806
|
+
};
|
|
807
|
+
//# sourceMappingURL=github.d.ts.map
|