@otto-code/protocol 0.9.5 → 0.9.6
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/architectural-views/rpc-schemas.d.ts +5 -5
- package/dist/artifacts/rpc-schemas.d.ts +13 -13
- package/dist/artifacts/types.d.ts +4 -4
- package/dist/daemon-config.d.ts +9 -9
- package/dist/forge-connections.d.ts +127 -0
- package/dist/forge-connections.js +62 -0
- package/dist/generated/validation/ws-outbound.aot.js +14040 -13917
- package/dist/messages.d.ts +561 -387
- package/dist/messages.js +4 -0
- package/dist/project-knowledge.d.ts +11 -11
- package/dist/validation/ws-outbound-schema-metadata.d.ts +106 -78
- package/dist/workflow.d.ts +41 -41
- package/package.json +1 -1
|
@@ -48,8 +48,8 @@ export declare const ArchitecturalViewsDeliverResponseSchema: z.ZodObject<{
|
|
|
48
48
|
success: z.ZodBoolean;
|
|
49
49
|
viewId: z.ZodString;
|
|
50
50
|
storeLocation: z.ZodNullable<z.ZodEnum<{
|
|
51
|
-
repository: "repository";
|
|
52
51
|
host: "host";
|
|
52
|
+
repository: "repository";
|
|
53
53
|
}>>;
|
|
54
54
|
htmlPath: z.ZodNullable<z.ZodString>;
|
|
55
55
|
error: z.ZodNullable<z.ZodString>;
|
|
@@ -66,8 +66,8 @@ export declare const ArchitecturalViewSummarySchema: z.ZodObject<{
|
|
|
66
66
|
id: z.ZodString;
|
|
67
67
|
}, z.core.$strip>>;
|
|
68
68
|
storeLocation: z.ZodEnum<{
|
|
69
|
-
repository: "repository";
|
|
70
69
|
host: "host";
|
|
70
|
+
repository: "repository";
|
|
71
71
|
}>;
|
|
72
72
|
htmlPath: z.ZodString;
|
|
73
73
|
renderedAt: z.ZodString;
|
|
@@ -231,8 +231,8 @@ export declare const ArchitecturalViewsDraftPublishResponseSchema: z.ZodObject<{
|
|
|
231
231
|
id: z.ZodString;
|
|
232
232
|
}, z.core.$strip>>;
|
|
233
233
|
storeLocation: z.ZodEnum<{
|
|
234
|
-
repository: "repository";
|
|
235
234
|
host: "host";
|
|
235
|
+
repository: "repository";
|
|
236
236
|
}>;
|
|
237
237
|
htmlPath: z.ZodString;
|
|
238
238
|
renderedAt: z.ZodString;
|
|
@@ -377,8 +377,8 @@ export declare const ArchitecturalViewsListResponseSchema: z.ZodObject<{
|
|
|
377
377
|
id: z.ZodString;
|
|
378
378
|
}, z.core.$strip>>;
|
|
379
379
|
storeLocation: z.ZodEnum<{
|
|
380
|
-
repository: "repository";
|
|
381
380
|
host: "host";
|
|
381
|
+
repository: "repository";
|
|
382
382
|
}>;
|
|
383
383
|
htmlPath: z.ZodString;
|
|
384
384
|
renderedAt: z.ZodString;
|
|
@@ -420,8 +420,8 @@ export declare const ArchitecturalViewsGetContentResponseSchema: z.ZodObject<{
|
|
|
420
420
|
id: z.ZodString;
|
|
421
421
|
}, z.core.$strip>>;
|
|
422
422
|
storeLocation: z.ZodEnum<{
|
|
423
|
-
repository: "repository";
|
|
424
423
|
host: "host";
|
|
424
|
+
repository: "repository";
|
|
425
425
|
}>;
|
|
426
426
|
htmlPath: z.ZodString;
|
|
427
427
|
renderedAt: z.ZodString;
|
|
@@ -79,8 +79,8 @@ export declare const ArtifactStoreMoveRequestSchema: z.ZodObject<{
|
|
|
79
79
|
type: z.ZodLiteral<"artifact.store.move.request">;
|
|
80
80
|
artifactId: z.ZodString;
|
|
81
81
|
destination: z.ZodEnum<{
|
|
82
|
-
repository: "repository";
|
|
83
82
|
host: "host";
|
|
83
|
+
repository: "repository";
|
|
84
84
|
}>;
|
|
85
85
|
requestId: z.ZodString;
|
|
86
86
|
}, z.core.$strip>;
|
|
@@ -88,8 +88,8 @@ export declare const ProjectArtifactStoreSetRequestSchema: z.ZodObject<{
|
|
|
88
88
|
type: z.ZodLiteral<"project.artifact.store.set.request">;
|
|
89
89
|
projectId: z.ZodString;
|
|
90
90
|
location: z.ZodNullable<z.ZodEnum<{
|
|
91
|
-
repository: "repository";
|
|
92
91
|
host: "host";
|
|
92
|
+
repository: "repository";
|
|
93
93
|
}>>;
|
|
94
94
|
requestId: z.ZodString;
|
|
95
95
|
}, z.core.$strip>;
|
|
@@ -136,8 +136,8 @@ export declare const ArtifactListResponseSchema: z.ZodObject<{
|
|
|
136
136
|
runId: z.ZodString;
|
|
137
137
|
}, z.core.$strip>], "kind">>;
|
|
138
138
|
storageLocation: z.ZodOptional<z.ZodEnum<{
|
|
139
|
-
repository: "repository";
|
|
140
139
|
host: "host";
|
|
140
|
+
repository: "repository";
|
|
141
141
|
}>>;
|
|
142
142
|
repairAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
143
143
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
@@ -190,8 +190,8 @@ export declare const ArtifactCreateResponseSchema: z.ZodObject<{
|
|
|
190
190
|
runId: z.ZodString;
|
|
191
191
|
}, z.core.$strip>], "kind">>;
|
|
192
192
|
storageLocation: z.ZodOptional<z.ZodEnum<{
|
|
193
|
-
repository: "repository";
|
|
194
193
|
host: "host";
|
|
194
|
+
repository: "repository";
|
|
195
195
|
}>>;
|
|
196
196
|
repairAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
197
197
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
@@ -252,8 +252,8 @@ export declare const ArtifactStarResponseSchema: z.ZodObject<{
|
|
|
252
252
|
runId: z.ZodString;
|
|
253
253
|
}, z.core.$strip>], "kind">>;
|
|
254
254
|
storageLocation: z.ZodOptional<z.ZodEnum<{
|
|
255
|
-
repository: "repository";
|
|
256
255
|
host: "host";
|
|
256
|
+
repository: "repository";
|
|
257
257
|
}>>;
|
|
258
258
|
repairAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
259
259
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
@@ -306,8 +306,8 @@ export declare const ArtifactUpdateResponseSchema: z.ZodObject<{
|
|
|
306
306
|
runId: z.ZodString;
|
|
307
307
|
}, z.core.$strip>], "kind">>;
|
|
308
308
|
storageLocation: z.ZodOptional<z.ZodEnum<{
|
|
309
|
-
repository: "repository";
|
|
310
309
|
host: "host";
|
|
310
|
+
repository: "repository";
|
|
311
311
|
}>>;
|
|
312
312
|
repairAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
313
313
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
@@ -360,8 +360,8 @@ export declare const ArtifactRegenerateResponseSchema: z.ZodObject<{
|
|
|
360
360
|
runId: z.ZodString;
|
|
361
361
|
}, z.core.$strip>], "kind">>;
|
|
362
362
|
storageLocation: z.ZodOptional<z.ZodEnum<{
|
|
363
|
-
repository: "repository";
|
|
364
363
|
host: "host";
|
|
364
|
+
repository: "repository";
|
|
365
365
|
}>>;
|
|
366
366
|
repairAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
367
367
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
@@ -414,8 +414,8 @@ export declare const ArtifactCancelResponseSchema: z.ZodObject<{
|
|
|
414
414
|
runId: z.ZodString;
|
|
415
415
|
}, z.core.$strip>], "kind">>;
|
|
416
416
|
storageLocation: z.ZodOptional<z.ZodEnum<{
|
|
417
|
-
repository: "repository";
|
|
418
417
|
host: "host";
|
|
418
|
+
repository: "repository";
|
|
419
419
|
}>>;
|
|
420
420
|
repairAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
421
421
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
@@ -477,8 +477,8 @@ export declare const ArtifactRepairResponseSchema: z.ZodObject<{
|
|
|
477
477
|
runId: z.ZodString;
|
|
478
478
|
}, z.core.$strip>], "kind">>;
|
|
479
479
|
storageLocation: z.ZodOptional<z.ZodEnum<{
|
|
480
|
-
repository: "repository";
|
|
481
480
|
host: "host";
|
|
481
|
+
repository: "repository";
|
|
482
482
|
}>>;
|
|
483
483
|
repairAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
484
484
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
@@ -540,8 +540,8 @@ export declare const ArtifactDataUpdateResponseSchema: z.ZodObject<{
|
|
|
540
540
|
runId: z.ZodString;
|
|
541
541
|
}, z.core.$strip>], "kind">>;
|
|
542
542
|
storageLocation: z.ZodOptional<z.ZodEnum<{
|
|
543
|
-
repository: "repository";
|
|
544
543
|
host: "host";
|
|
544
|
+
repository: "repository";
|
|
545
545
|
}>>;
|
|
546
546
|
repairAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
547
547
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
@@ -594,8 +594,8 @@ export declare const ArtifactStoreMoveResponseSchema: z.ZodObject<{
|
|
|
594
594
|
runId: z.ZodString;
|
|
595
595
|
}, z.core.$strip>], "kind">>;
|
|
596
596
|
storageLocation: z.ZodOptional<z.ZodEnum<{
|
|
597
|
-
repository: "repository";
|
|
598
597
|
host: "host";
|
|
598
|
+
repository: "repository";
|
|
599
599
|
}>>;
|
|
600
600
|
repairAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
601
601
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
@@ -657,8 +657,8 @@ export declare const ArtifactCreatedNotificationSchema: z.ZodObject<{
|
|
|
657
657
|
runId: z.ZodString;
|
|
658
658
|
}, z.core.$strip>], "kind">>;
|
|
659
659
|
storageLocation: z.ZodOptional<z.ZodEnum<{
|
|
660
|
-
repository: "repository";
|
|
661
660
|
host: "host";
|
|
661
|
+
repository: "repository";
|
|
662
662
|
}>>;
|
|
663
663
|
repairAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
664
664
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
@@ -708,8 +708,8 @@ export declare const ArtifactUpdatedNotificationSchema: z.ZodObject<{
|
|
|
708
708
|
runId: z.ZodString;
|
|
709
709
|
}, z.core.$strip>], "kind">>;
|
|
710
710
|
storageLocation: z.ZodOptional<z.ZodEnum<{
|
|
711
|
-
repository: "repository";
|
|
712
711
|
host: "host";
|
|
712
|
+
repository: "repository";
|
|
713
713
|
}>>;
|
|
714
714
|
repairAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
715
715
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
@@ -4,8 +4,8 @@ export declare const ArtifactKindSchema: z.ZodEnum<{
|
|
|
4
4
|
}>;
|
|
5
5
|
export type ArtifactKind = z.infer<typeof ArtifactKindSchema>;
|
|
6
6
|
export declare const ProjectArtifactStoreLocationValueSchema: z.ZodEnum<{
|
|
7
|
-
repository: "repository";
|
|
8
7
|
host: "host";
|
|
8
|
+
repository: "repository";
|
|
9
9
|
}>;
|
|
10
10
|
export type ProjectArtifactStoreLocationValue = z.infer<typeof ProjectArtifactStoreLocationValueSchema>;
|
|
11
11
|
export declare const ArtifactStatusSchema: z.ZodEnum<{
|
|
@@ -72,8 +72,8 @@ export declare const ArtifactMetadataSchema: z.ZodObject<{
|
|
|
72
72
|
runId: z.ZodString;
|
|
73
73
|
}, z.core.$strip>], "kind">>;
|
|
74
74
|
storageLocation: z.ZodOptional<z.ZodEnum<{
|
|
75
|
-
repository: "repository";
|
|
76
75
|
host: "host";
|
|
76
|
+
repository: "repository";
|
|
77
77
|
}>>;
|
|
78
78
|
repairAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
79
79
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
@@ -119,8 +119,8 @@ export declare const ArtifactSummarySchema: z.ZodObject<{
|
|
|
119
119
|
runId: z.ZodString;
|
|
120
120
|
}, z.core.$strip>], "kind">>;
|
|
121
121
|
storageLocation: z.ZodOptional<z.ZodEnum<{
|
|
122
|
-
repository: "repository";
|
|
123
122
|
host: "host";
|
|
123
|
+
repository: "repository";
|
|
124
124
|
}>>;
|
|
125
125
|
repairAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
126
126
|
errorMessage: z.ZodNullable<z.ZodString>;
|
|
@@ -197,8 +197,8 @@ export declare const StoredArtifactSchema: z.ZodObject<{
|
|
|
197
197
|
runId: z.ZodString;
|
|
198
198
|
}, z.core.$strip>], "kind">>;
|
|
199
199
|
storageLocation: z.ZodOptional<z.ZodEnum<{
|
|
200
|
-
repository: "repository";
|
|
201
200
|
host: "host";
|
|
201
|
+
repository: "repository";
|
|
202
202
|
}>>;
|
|
203
203
|
repairAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
204
204
|
errorMessage: z.ZodNullable<z.ZodString>;
|
package/dist/daemon-config.d.ts
CHANGED
|
@@ -124,55 +124,55 @@ export declare const MutableKanbanConfigSchema: z.ZodObject<{
|
|
|
124
124
|
}, z.core.$loose>;
|
|
125
125
|
export type MutableKanbanConfig = z.infer<typeof MutableKanbanConfigSchema>;
|
|
126
126
|
export declare const ProjectKnowledgeStoreLocationSchema: z.ZodEnum<{
|
|
127
|
-
repository: "repository";
|
|
128
127
|
host: "host";
|
|
128
|
+
repository: "repository";
|
|
129
129
|
}>;
|
|
130
130
|
export declare const MutableProjectKnowledgeConfigSchema: z.ZodObject<{
|
|
131
131
|
defaultStoreLocation: z.ZodDefault<z.ZodEnum<{
|
|
132
|
-
repository: "repository";
|
|
133
132
|
host: "host";
|
|
133
|
+
repository: "repository";
|
|
134
134
|
}>>;
|
|
135
135
|
}, z.core.$loose>;
|
|
136
136
|
export declare const MutableProjectKnowledgeConfigPatchSchema: z.ZodObject<{
|
|
137
137
|
defaultStoreLocation: z.ZodOptional<z.ZodEnum<{
|
|
138
|
-
repository: "repository";
|
|
139
138
|
host: "host";
|
|
139
|
+
repository: "repository";
|
|
140
140
|
}>>;
|
|
141
141
|
}, z.core.$loose>;
|
|
142
142
|
export type MutableProjectKnowledgeConfig = z.infer<typeof MutableProjectKnowledgeConfigSchema>;
|
|
143
143
|
export declare const DEFAULT_MUTABLE_PROJECT_KNOWLEDGE_CONFIG: MutableProjectKnowledgeConfig;
|
|
144
144
|
export declare const ProjectArtifactStoreLocationSchema: z.ZodEnum<{
|
|
145
|
-
repository: "repository";
|
|
146
145
|
host: "host";
|
|
146
|
+
repository: "repository";
|
|
147
147
|
}>;
|
|
148
148
|
export declare const MutableProjectArtifactsConfigSchema: z.ZodObject<{
|
|
149
149
|
defaultStoreLocation: z.ZodDefault<z.ZodEnum<{
|
|
150
|
-
repository: "repository";
|
|
151
150
|
host: "host";
|
|
151
|
+
repository: "repository";
|
|
152
152
|
}>>;
|
|
153
153
|
}, z.core.$loose>;
|
|
154
154
|
export declare const MutableProjectArtifactsConfigPatchSchema: z.ZodObject<{
|
|
155
155
|
defaultStoreLocation: z.ZodOptional<z.ZodEnum<{
|
|
156
|
-
repository: "repository";
|
|
157
156
|
host: "host";
|
|
157
|
+
repository: "repository";
|
|
158
158
|
}>>;
|
|
159
159
|
}, z.core.$loose>;
|
|
160
160
|
export type MutableProjectArtifactsConfig = z.infer<typeof MutableProjectArtifactsConfigSchema>;
|
|
161
161
|
export declare const DEFAULT_MUTABLE_PROJECT_ARTIFACTS_CONFIG: MutableProjectArtifactsConfig;
|
|
162
162
|
export declare const ProjectWorkflowStoreLocationSchema: z.ZodEnum<{
|
|
163
|
-
repository: "repository";
|
|
164
163
|
host: "host";
|
|
164
|
+
repository: "repository";
|
|
165
165
|
}>;
|
|
166
166
|
export declare const MutableProjectWorkflowsConfigSchema: z.ZodObject<{
|
|
167
167
|
defaultStoreLocation: z.ZodDefault<z.ZodEnum<{
|
|
168
|
-
repository: "repository";
|
|
169
168
|
host: "host";
|
|
169
|
+
repository: "repository";
|
|
170
170
|
}>>;
|
|
171
171
|
}, z.core.$loose>;
|
|
172
172
|
export declare const MutableProjectWorkflowsConfigPatchSchema: z.ZodObject<{
|
|
173
173
|
defaultStoreLocation: z.ZodOptional<z.ZodEnum<{
|
|
174
|
-
repository: "repository";
|
|
175
174
|
host: "host";
|
|
175
|
+
repository: "repository";
|
|
176
176
|
}>>;
|
|
177
177
|
}, z.core.$loose>;
|
|
178
178
|
export type MutableProjectWorkflowsConfig = z.infer<typeof MutableProjectWorkflowsConfigSchema>;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ForgeConnectionSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
forge: z.ZodString;
|
|
5
|
+
host: z.ZodString;
|
|
6
|
+
label: z.ZodString;
|
|
7
|
+
account: z.ZodString;
|
|
8
|
+
method: z.ZodString;
|
|
9
|
+
revision: z.ZodNumber;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export declare const ForgeConnectionBindingSchema: z.ZodObject<{
|
|
12
|
+
forge: z.ZodString;
|
|
13
|
+
host: z.ZodString;
|
|
14
|
+
connectionId: z.ZodString;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export declare const ForgeConnectionsOverviewSchema: z.ZodObject<{
|
|
17
|
+
connections: z.ZodArray<z.ZodObject<{
|
|
18
|
+
id: z.ZodString;
|
|
19
|
+
forge: z.ZodString;
|
|
20
|
+
host: z.ZodString;
|
|
21
|
+
label: z.ZodString;
|
|
22
|
+
account: z.ZodString;
|
|
23
|
+
method: z.ZodString;
|
|
24
|
+
revision: z.ZodNumber;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
defaults: z.ZodArray<z.ZodObject<{
|
|
27
|
+
forge: z.ZodString;
|
|
28
|
+
host: z.ZodString;
|
|
29
|
+
connectionId: z.ZodString;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
overrides: z.ZodArray<z.ZodObject<{
|
|
32
|
+
forge: z.ZodString;
|
|
33
|
+
host: z.ZodString;
|
|
34
|
+
connectionId: z.ZodString;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
export declare const ForgeConnectionsActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
39
|
+
kind: z.ZodLiteral<"list">;
|
|
40
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
41
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
+
kind: z.ZodLiteral<"save">;
|
|
43
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
44
|
+
useForScope: z.ZodOptional<z.ZodBoolean>;
|
|
45
|
+
id: z.ZodOptional<z.ZodString>;
|
|
46
|
+
expectedRevision: z.ZodOptional<z.ZodNumber>;
|
|
47
|
+
forge: z.ZodString;
|
|
48
|
+
host: z.ZodString;
|
|
49
|
+
label: z.ZodString;
|
|
50
|
+
method: z.ZodString;
|
|
51
|
+
account: z.ZodOptional<z.ZodString>;
|
|
52
|
+
secret: z.ZodOptional<z.ZodString>;
|
|
53
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
54
|
+
kind: z.ZodLiteral<"select">;
|
|
55
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
56
|
+
forge: z.ZodString;
|
|
57
|
+
host: z.ZodString;
|
|
58
|
+
connectionId: z.ZodNullable<z.ZodString>;
|
|
59
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
60
|
+
kind: z.ZodLiteral<"remove">;
|
|
61
|
+
id: z.ZodString;
|
|
62
|
+
expectedRevision: z.ZodNumber;
|
|
63
|
+
}, z.core.$strip>], "kind">;
|
|
64
|
+
export declare const ForgeConnectionsManageRequestSchema: z.ZodObject<{
|
|
65
|
+
type: z.ZodLiteral<"forge.connections.manage.request">;
|
|
66
|
+
requestId: z.ZodString;
|
|
67
|
+
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
68
|
+
kind: z.ZodLiteral<"list">;
|
|
69
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
70
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
71
|
+
kind: z.ZodLiteral<"save">;
|
|
72
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
73
|
+
useForScope: z.ZodOptional<z.ZodBoolean>;
|
|
74
|
+
id: z.ZodOptional<z.ZodString>;
|
|
75
|
+
expectedRevision: z.ZodOptional<z.ZodNumber>;
|
|
76
|
+
forge: z.ZodString;
|
|
77
|
+
host: z.ZodString;
|
|
78
|
+
label: z.ZodString;
|
|
79
|
+
method: z.ZodString;
|
|
80
|
+
account: z.ZodOptional<z.ZodString>;
|
|
81
|
+
secret: z.ZodOptional<z.ZodString>;
|
|
82
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
83
|
+
kind: z.ZodLiteral<"select">;
|
|
84
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
85
|
+
forge: z.ZodString;
|
|
86
|
+
host: z.ZodString;
|
|
87
|
+
connectionId: z.ZodNullable<z.ZodString>;
|
|
88
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
89
|
+
kind: z.ZodLiteral<"remove">;
|
|
90
|
+
id: z.ZodString;
|
|
91
|
+
expectedRevision: z.ZodNumber;
|
|
92
|
+
}, z.core.$strip>], "kind">;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
export declare const ForgeConnectionsManageResponseSchema: z.ZodObject<{
|
|
95
|
+
type: z.ZodLiteral<"forge.connections.manage.response">;
|
|
96
|
+
payload: z.ZodObject<{
|
|
97
|
+
requestId: z.ZodString;
|
|
98
|
+
overview: z.ZodNullable<z.ZodObject<{
|
|
99
|
+
connections: z.ZodArray<z.ZodObject<{
|
|
100
|
+
id: z.ZodString;
|
|
101
|
+
forge: z.ZodString;
|
|
102
|
+
host: z.ZodString;
|
|
103
|
+
label: z.ZodString;
|
|
104
|
+
account: z.ZodString;
|
|
105
|
+
method: z.ZodString;
|
|
106
|
+
revision: z.ZodNumber;
|
|
107
|
+
}, z.core.$strip>>;
|
|
108
|
+
defaults: z.ZodArray<z.ZodObject<{
|
|
109
|
+
forge: z.ZodString;
|
|
110
|
+
host: z.ZodString;
|
|
111
|
+
connectionId: z.ZodString;
|
|
112
|
+
}, z.core.$strip>>;
|
|
113
|
+
overrides: z.ZodArray<z.ZodObject<{
|
|
114
|
+
forge: z.ZodString;
|
|
115
|
+
host: z.ZodString;
|
|
116
|
+
connectionId: z.ZodString;
|
|
117
|
+
}, z.core.$strip>>;
|
|
118
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
119
|
+
}, z.core.$strip>>;
|
|
120
|
+
error: z.ZodNullable<z.ZodString>;
|
|
121
|
+
}, z.core.$strip>;
|
|
122
|
+
}, z.core.$strip>;
|
|
123
|
+
export type ForgeConnection = z.infer<typeof ForgeConnectionSchema>;
|
|
124
|
+
export type ForgeConnectionBinding = z.infer<typeof ForgeConnectionBindingSchema>;
|
|
125
|
+
export type ForgeConnectionsOverview = z.infer<typeof ForgeConnectionsOverviewSchema>;
|
|
126
|
+
export type ForgeConnectionsAction = z.infer<typeof ForgeConnectionsActionSchema>;
|
|
127
|
+
//# sourceMappingURL=forge-connections.d.ts.map
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
// Connection references and account labels are safe to send to clients. Stored
|
|
3
|
+
// credentials are deliberately absent from the settings response.
|
|
4
|
+
export const ForgeConnectionSchema = z.object({
|
|
5
|
+
id: z.string(),
|
|
6
|
+
forge: z.string(),
|
|
7
|
+
host: z.string(),
|
|
8
|
+
label: z.string(),
|
|
9
|
+
account: z.string(),
|
|
10
|
+
method: z.string(),
|
|
11
|
+
revision: z.number(),
|
|
12
|
+
});
|
|
13
|
+
export const ForgeConnectionBindingSchema = z.object({
|
|
14
|
+
forge: z.string(),
|
|
15
|
+
host: z.string(),
|
|
16
|
+
connectionId: z.string(),
|
|
17
|
+
});
|
|
18
|
+
export const ForgeConnectionsOverviewSchema = z.object({
|
|
19
|
+
connections: z.array(ForgeConnectionSchema),
|
|
20
|
+
defaults: z.array(ForgeConnectionBindingSchema),
|
|
21
|
+
overrides: z.array(ForgeConnectionBindingSchema),
|
|
22
|
+
projectId: z.string().nullable(),
|
|
23
|
+
});
|
|
24
|
+
export const ForgeConnectionsActionSchema = z.discriminatedUnion("kind", [
|
|
25
|
+
z.object({ kind: z.literal("list"), projectId: z.string().optional() }),
|
|
26
|
+
z.object({
|
|
27
|
+
kind: z.literal("save"),
|
|
28
|
+
projectId: z.string().optional(),
|
|
29
|
+
useForScope: z.boolean().optional(),
|
|
30
|
+
id: z.string().optional(),
|
|
31
|
+
expectedRevision: z.number().optional(),
|
|
32
|
+
forge: z.string(),
|
|
33
|
+
host: z.string(),
|
|
34
|
+
label: z.string(),
|
|
35
|
+
method: z.string(),
|
|
36
|
+
account: z.string().optional(),
|
|
37
|
+
// Write-only credential entry. Never echo this field in any response.
|
|
38
|
+
secret: z.string().optional(),
|
|
39
|
+
}),
|
|
40
|
+
z.object({
|
|
41
|
+
kind: z.literal("select"),
|
|
42
|
+
projectId: z.string().optional(),
|
|
43
|
+
forge: z.string(),
|
|
44
|
+
host: z.string(),
|
|
45
|
+
connectionId: z.string().nullable(),
|
|
46
|
+
}),
|
|
47
|
+
z.object({ kind: z.literal("remove"), id: z.string(), expectedRevision: z.number() }),
|
|
48
|
+
]);
|
|
49
|
+
export const ForgeConnectionsManageRequestSchema = z.object({
|
|
50
|
+
type: z.literal("forge.connections.manage.request"),
|
|
51
|
+
requestId: z.string(),
|
|
52
|
+
action: ForgeConnectionsActionSchema,
|
|
53
|
+
});
|
|
54
|
+
export const ForgeConnectionsManageResponseSchema = z.object({
|
|
55
|
+
type: z.literal("forge.connections.manage.response"),
|
|
56
|
+
payload: z.object({
|
|
57
|
+
requestId: z.string(),
|
|
58
|
+
overview: ForgeConnectionsOverviewSchema.nullable(),
|
|
59
|
+
error: z.string().nullable(),
|
|
60
|
+
}),
|
|
61
|
+
});
|
|
62
|
+
//# sourceMappingURL=forge-connections.js.map
|