@alpic-ai/api 0.0.0-staging.f4ec698 → 0.0.0-staging.f621e81
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/index.d.mts +417 -54
- package/dist/index.mjs +174 -14
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as _orpc_contract0 from "@orpc/contract";
|
|
1
|
+
import * as _$_orpc_contract0 from "@orpc/contract";
|
|
2
2
|
import { InferContractRouterInputs, InferContractRouterOutputs } from "@orpc/contract";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
@@ -10,7 +10,13 @@ type ApiContext = {
|
|
|
10
10
|
awsCognitoUserSub: string | undefined;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
declare const
|
|
13
|
+
declare const deploymentStatusSchema: z.ZodEnum<{
|
|
14
|
+
failed: "failed";
|
|
15
|
+
ongoing: "ongoing";
|
|
16
|
+
deployed: "deployed";
|
|
17
|
+
canceled: "canceled";
|
|
18
|
+
}>;
|
|
19
|
+
declare const createEnvironmentContractV1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
14
20
|
projectId: z.ZodString;
|
|
15
21
|
name: z.ZodString;
|
|
16
22
|
sourceBranch: z.ZodString;
|
|
@@ -26,14 +32,14 @@ declare const createEnvironmentContractV1: _orpc_contract0.ContractProcedureBuil
|
|
|
26
32
|
urls: z.ZodArray<z.ZodString>;
|
|
27
33
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
28
34
|
projectId: z.ZodString;
|
|
29
|
-
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
35
|
+
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
30
36
|
NOT_FOUND: {};
|
|
31
37
|
BAD_REQUEST: {};
|
|
32
38
|
}>, Record<never, never>>;
|
|
33
39
|
declare const contract: {
|
|
34
40
|
teams: {
|
|
35
41
|
list: {
|
|
36
|
-
v1: _orpc_contract0.ContractProcedureBuilderWithOutput<_orpc_contract0.Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
|
|
42
|
+
v1: _$_orpc_contract0.ContractProcedureBuilderWithOutput<_$_orpc_contract0.Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
|
|
37
43
|
id: z.ZodString;
|
|
38
44
|
name: z.ZodString;
|
|
39
45
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
@@ -43,7 +49,7 @@ declare const contract: {
|
|
|
43
49
|
};
|
|
44
50
|
analytics: {
|
|
45
51
|
get: {
|
|
46
|
-
v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
52
|
+
v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
47
53
|
projectId: z.ZodString;
|
|
48
54
|
startTimestamp: z.ZodCoercedNumber<unknown>;
|
|
49
55
|
endTimestamp: z.ZodCoercedNumber<unknown>;
|
|
@@ -86,7 +92,7 @@ declare const contract: {
|
|
|
86
92
|
categories: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
87
93
|
}, z.core.$strip>>;
|
|
88
94
|
}, z.core.$strip>;
|
|
89
|
-
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
95
|
+
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
90
96
|
NOT_FOUND: {};
|
|
91
97
|
BAD_REQUEST: {};
|
|
92
98
|
}>, Record<never, never>>;
|
|
@@ -94,14 +100,21 @@ declare const contract: {
|
|
|
94
100
|
};
|
|
95
101
|
deployments: {
|
|
96
102
|
list: {
|
|
97
|
-
v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
103
|
+
v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
98
104
|
projectId: z.ZodString;
|
|
105
|
+
status: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
106
|
+
failed: "failed";
|
|
107
|
+
ongoing: "ongoing";
|
|
108
|
+
deployed: "deployed";
|
|
109
|
+
canceled: "canceled";
|
|
110
|
+
}>>>;
|
|
111
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
99
112
|
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
100
113
|
id: z.ZodString;
|
|
101
114
|
status: z.ZodEnum<{
|
|
115
|
+
failed: "failed";
|
|
102
116
|
ongoing: "ongoing";
|
|
103
117
|
deployed: "deployed";
|
|
104
|
-
failed: "failed";
|
|
105
118
|
canceled: "canceled";
|
|
106
119
|
}>;
|
|
107
120
|
sourceRef: z.ZodNullable<z.ZodString>;
|
|
@@ -111,21 +124,23 @@ declare const contract: {
|
|
|
111
124
|
authorAvatarUrl: z.ZodNullable<z.ZodString>;
|
|
112
125
|
startedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
113
126
|
completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
114
|
-
isCurrent: z.ZodBoolean;
|
|
115
127
|
environmentId: z.ZodString;
|
|
116
|
-
|
|
128
|
+
environmentName: z.ZodString;
|
|
129
|
+
isCurrent: z.ZodBoolean;
|
|
130
|
+
deploymentPageUrl: z.ZodNullable<z.ZodURL>;
|
|
131
|
+
}, z.core.$strip>>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
117
132
|
NOT_FOUND: {};
|
|
118
133
|
}>, Record<never, never>>;
|
|
119
134
|
};
|
|
120
135
|
get: {
|
|
121
|
-
v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
136
|
+
v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
122
137
|
deploymentId: z.ZodString;
|
|
123
138
|
}, z.core.$strip>, z.ZodObject<{
|
|
124
139
|
id: z.ZodString;
|
|
125
140
|
status: z.ZodEnum<{
|
|
141
|
+
failed: "failed";
|
|
126
142
|
ongoing: "ongoing";
|
|
127
143
|
deployed: "deployed";
|
|
128
|
-
failed: "failed";
|
|
129
144
|
canceled: "canceled";
|
|
130
145
|
}>;
|
|
131
146
|
sourceRef: z.ZodNullable<z.ZodString>;
|
|
@@ -135,22 +150,25 @@ declare const contract: {
|
|
|
135
150
|
authorAvatarUrl: z.ZodNullable<z.ZodString>;
|
|
136
151
|
startedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
137
152
|
completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
153
|
+
environmentId: z.ZodString;
|
|
154
|
+
environmentName: z.ZodString;
|
|
155
|
+
isCurrent: z.ZodBoolean;
|
|
138
156
|
deploymentPageUrl: z.ZodNullable<z.ZodURL>;
|
|
139
|
-
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
157
|
+
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
140
158
|
NOT_FOUND: {};
|
|
141
159
|
}>, Record<never, never>>;
|
|
142
160
|
};
|
|
143
161
|
uploadArtifact: {
|
|
144
|
-
v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodObject<{
|
|
162
|
+
v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodObject<{
|
|
145
163
|
teamId: z.ZodOptional<z.ZodString>;
|
|
146
164
|
}, z.core.$strip>>, z.ZodObject<{
|
|
147
|
-
uploadUrl: z.
|
|
165
|
+
uploadUrl: z.ZodURL;
|
|
148
166
|
token: z.ZodString;
|
|
149
167
|
expiresAt: z.ZodCoercedDate<unknown>;
|
|
150
168
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
151
169
|
};
|
|
152
170
|
getLogs: {
|
|
153
|
-
v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
171
|
+
v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
154
172
|
deploymentId: z.ZodString;
|
|
155
173
|
}, z.core.$strip>, z.ZodObject<{
|
|
156
174
|
logs: z.ZodArray<z.ZodObject<{
|
|
@@ -158,14 +176,14 @@ declare const contract: {
|
|
|
158
176
|
content: z.ZodOptional<z.ZodString>;
|
|
159
177
|
}, z.core.$strip>>;
|
|
160
178
|
hasMoreLogs: z.ZodBoolean;
|
|
161
|
-
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
179
|
+
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
162
180
|
NOT_FOUND: {};
|
|
163
181
|
}>, Record<never, never>>;
|
|
164
182
|
};
|
|
165
183
|
};
|
|
166
184
|
environments: {
|
|
167
185
|
create: {
|
|
168
|
-
v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
186
|
+
v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
169
187
|
projectId: z.ZodString;
|
|
170
188
|
name: z.ZodString;
|
|
171
189
|
sourceBranch: z.ZodString;
|
|
@@ -181,13 +199,13 @@ declare const contract: {
|
|
|
181
199
|
urls: z.ZodArray<z.ZodString>;
|
|
182
200
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
183
201
|
projectId: z.ZodString;
|
|
184
|
-
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
202
|
+
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
185
203
|
NOT_FOUND: {};
|
|
186
204
|
BAD_REQUEST: {};
|
|
187
205
|
}>, Record<never, never>>;
|
|
188
206
|
};
|
|
189
207
|
get: {
|
|
190
|
-
v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
208
|
+
v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
191
209
|
environmentId: z.ZodString;
|
|
192
210
|
}, z.core.$strip>, z.ZodObject<{
|
|
193
211
|
id: z.ZodString;
|
|
@@ -197,20 +215,20 @@ declare const contract: {
|
|
|
197
215
|
domains: z.ZodArray<z.ZodURL>;
|
|
198
216
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
199
217
|
projectId: z.ZodString;
|
|
200
|
-
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
218
|
+
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
201
219
|
NOT_FOUND: {};
|
|
202
220
|
}>, Record<never, never>>;
|
|
203
221
|
};
|
|
204
222
|
deploy: {
|
|
205
|
-
v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
223
|
+
v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
206
224
|
environmentId: z.ZodString;
|
|
207
225
|
token: z.ZodOptional<z.ZodString>;
|
|
208
226
|
}, z.core.$strip>, z.ZodObject<{
|
|
209
227
|
id: z.ZodString;
|
|
210
228
|
status: z.ZodEnum<{
|
|
229
|
+
failed: "failed";
|
|
211
230
|
ongoing: "ongoing";
|
|
212
231
|
deployed: "deployed";
|
|
213
|
-
failed: "failed";
|
|
214
232
|
canceled: "canceled";
|
|
215
233
|
}>;
|
|
216
234
|
sourceRef: z.ZodNullable<z.ZodString>;
|
|
@@ -220,14 +238,17 @@ declare const contract: {
|
|
|
220
238
|
authorAvatarUrl: z.ZodNullable<z.ZodString>;
|
|
221
239
|
startedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
222
240
|
completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
241
|
+
environmentId: z.ZodString;
|
|
242
|
+
environmentName: z.ZodString;
|
|
243
|
+
isCurrent: z.ZodBoolean;
|
|
223
244
|
deploymentPageUrl: z.ZodNullable<z.ZodURL>;
|
|
224
|
-
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
245
|
+
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
225
246
|
NOT_FOUND: {};
|
|
226
247
|
BAD_REQUEST: {};
|
|
227
248
|
}>, Record<never, never>>;
|
|
228
249
|
};
|
|
229
250
|
getLogs: {
|
|
230
|
-
v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
251
|
+
v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
231
252
|
environmentId: z.ZodString;
|
|
232
253
|
since: z.ZodOptional<z.ZodString>;
|
|
233
254
|
until: z.ZodOptional<z.ZodString>;
|
|
@@ -257,7 +278,7 @@ declare const contract: {
|
|
|
257
278
|
durationInMs: z.ZodOptional<z.ZodNumber>;
|
|
258
279
|
}, z.core.$strip>>;
|
|
259
280
|
nextToken: z.ZodNullable<z.ZodString>;
|
|
260
|
-
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
281
|
+
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
261
282
|
NOT_FOUND: {};
|
|
262
283
|
BAD_REQUEST: {};
|
|
263
284
|
}>, Record<never, never>>;
|
|
@@ -265,7 +286,7 @@ declare const contract: {
|
|
|
265
286
|
};
|
|
266
287
|
environmentVariables: {
|
|
267
288
|
list: {
|
|
268
|
-
v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
289
|
+
v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
269
290
|
environmentId: z.ZodString;
|
|
270
291
|
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
271
292
|
id: z.ZodString;
|
|
@@ -273,12 +294,12 @@ declare const contract: {
|
|
|
273
294
|
value: z.ZodString;
|
|
274
295
|
isSecret: z.ZodBoolean;
|
|
275
296
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
276
|
-
}, z.core.$strip>>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
297
|
+
}, z.core.$strip>>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
277
298
|
NOT_FOUND: {};
|
|
278
299
|
}>, Record<never, never>>;
|
|
279
300
|
};
|
|
280
301
|
create: {
|
|
281
|
-
v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
302
|
+
v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
282
303
|
environmentId: z.ZodString;
|
|
283
304
|
environmentVariables: z.ZodArray<z.ZodObject<{
|
|
284
305
|
key: z.ZodString;
|
|
@@ -287,37 +308,37 @@ declare const contract: {
|
|
|
287
308
|
}, z.core.$strip>>;
|
|
288
309
|
}, z.core.$strip>, z.ZodObject<{
|
|
289
310
|
success: z.ZodLiteral<true>;
|
|
290
|
-
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
311
|
+
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
291
312
|
NOT_FOUND: {};
|
|
292
313
|
BAD_REQUEST: {};
|
|
293
314
|
}>, Record<never, never>>;
|
|
294
315
|
};
|
|
295
316
|
update: {
|
|
296
|
-
v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
317
|
+
v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
297
318
|
environmentVariableId: z.ZodString;
|
|
298
319
|
key: z.ZodString;
|
|
299
320
|
value: z.ZodOptional<z.ZodString>;
|
|
300
321
|
isSecret: z.ZodDefault<z.ZodBoolean>;
|
|
301
322
|
}, z.core.$strip>, z.ZodObject<{
|
|
302
323
|
success: z.ZodLiteral<true>;
|
|
303
|
-
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
324
|
+
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
304
325
|
NOT_FOUND: {};
|
|
305
326
|
BAD_REQUEST: {};
|
|
306
327
|
}>, Record<never, never>>;
|
|
307
328
|
};
|
|
308
329
|
delete: {
|
|
309
|
-
v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
330
|
+
v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
310
331
|
environmentVariableId: z.ZodString;
|
|
311
332
|
}, z.core.$strip>, z.ZodObject<{
|
|
312
333
|
success: z.ZodLiteral<true>;
|
|
313
|
-
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
334
|
+
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
314
335
|
NOT_FOUND: {};
|
|
315
336
|
}>, Record<never, never>>;
|
|
316
337
|
};
|
|
317
338
|
};
|
|
318
339
|
projects: {
|
|
319
340
|
update: {
|
|
320
|
-
v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
341
|
+
v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
321
342
|
projectId: z.ZodString;
|
|
322
343
|
name: z.ZodOptional<z.ZodString>;
|
|
323
344
|
sourceRepository: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -350,18 +371,18 @@ declare const contract: {
|
|
|
350
371
|
domains: z.ZodArray<z.ZodObject<{
|
|
351
372
|
domain: z.ZodString;
|
|
352
373
|
status: z.ZodEnum<{
|
|
374
|
+
failed: "failed";
|
|
353
375
|
ongoing: "ongoing";
|
|
354
376
|
deployed: "deployed";
|
|
355
|
-
failed: "failed";
|
|
356
377
|
}>;
|
|
357
378
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
358
379
|
}, z.core.$strip>>;
|
|
359
380
|
latestDeployment: z.ZodNullable<z.ZodObject<{
|
|
360
381
|
id: z.ZodString;
|
|
361
382
|
status: z.ZodEnum<{
|
|
383
|
+
failed: "failed";
|
|
362
384
|
ongoing: "ongoing";
|
|
363
385
|
deployed: "deployed";
|
|
364
|
-
failed: "failed";
|
|
365
386
|
canceled: "canceled";
|
|
366
387
|
}>;
|
|
367
388
|
sourceCommitId: z.ZodNullable<z.ZodString>;
|
|
@@ -379,9 +400,9 @@ declare const contract: {
|
|
|
379
400
|
latestDeployment: z.ZodNullable<z.ZodObject<{
|
|
380
401
|
id: z.ZodString;
|
|
381
402
|
status: z.ZodEnum<{
|
|
403
|
+
failed: "failed";
|
|
382
404
|
ongoing: "ongoing";
|
|
383
405
|
deployed: "deployed";
|
|
384
|
-
failed: "failed";
|
|
385
406
|
canceled: "canceled";
|
|
386
407
|
}>;
|
|
387
408
|
sourceCommitId: z.ZodNullable<z.ZodString>;
|
|
@@ -389,13 +410,13 @@ declare const contract: {
|
|
|
389
410
|
completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
390
411
|
}, z.core.$strip>>;
|
|
391
412
|
}, z.core.$strip>>;
|
|
392
|
-
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
413
|
+
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
393
414
|
NOT_FOUND: {};
|
|
394
415
|
BAD_REQUEST: {};
|
|
395
416
|
}>, Record<never, never>>;
|
|
396
417
|
};
|
|
397
418
|
get: {
|
|
398
|
-
v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
419
|
+
v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
399
420
|
projectId: z.ZodString;
|
|
400
421
|
}, z.core.$strip>, z.ZodObject<{
|
|
401
422
|
id: z.ZodString;
|
|
@@ -426,18 +447,18 @@ declare const contract: {
|
|
|
426
447
|
domains: z.ZodArray<z.ZodObject<{
|
|
427
448
|
domain: z.ZodString;
|
|
428
449
|
status: z.ZodEnum<{
|
|
450
|
+
failed: "failed";
|
|
429
451
|
ongoing: "ongoing";
|
|
430
452
|
deployed: "deployed";
|
|
431
|
-
failed: "failed";
|
|
432
453
|
}>;
|
|
433
454
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
434
455
|
}, z.core.$strip>>;
|
|
435
456
|
latestDeployment: z.ZodNullable<z.ZodObject<{
|
|
436
457
|
id: z.ZodString;
|
|
437
458
|
status: z.ZodEnum<{
|
|
459
|
+
failed: "failed";
|
|
438
460
|
ongoing: "ongoing";
|
|
439
461
|
deployed: "deployed";
|
|
440
|
-
failed: "failed";
|
|
441
462
|
canceled: "canceled";
|
|
442
463
|
}>;
|
|
443
464
|
sourceCommitId: z.ZodNullable<z.ZodString>;
|
|
@@ -455,9 +476,9 @@ declare const contract: {
|
|
|
455
476
|
latestDeployment: z.ZodNullable<z.ZodObject<{
|
|
456
477
|
id: z.ZodString;
|
|
457
478
|
status: z.ZodEnum<{
|
|
479
|
+
failed: "failed";
|
|
458
480
|
ongoing: "ongoing";
|
|
459
481
|
deployed: "deployed";
|
|
460
|
-
failed: "failed";
|
|
461
482
|
canceled: "canceled";
|
|
462
483
|
}>;
|
|
463
484
|
sourceCommitId: z.ZodNullable<z.ZodString>;
|
|
@@ -465,12 +486,12 @@ declare const contract: {
|
|
|
465
486
|
completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
466
487
|
}, z.core.$strip>>;
|
|
467
488
|
}, z.core.$strip>>;
|
|
468
|
-
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
489
|
+
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
469
490
|
NOT_FOUND: {};
|
|
470
491
|
}>, Record<never, never>>;
|
|
471
492
|
};
|
|
472
493
|
list: {
|
|
473
|
-
v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodObject<{
|
|
494
|
+
v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodObject<{
|
|
474
495
|
teamId: z.ZodOptional<z.ZodString>;
|
|
475
496
|
}, z.core.$strip>>, z.ZodArray<z.ZodObject<{
|
|
476
497
|
id: z.ZodString;
|
|
@@ -501,18 +522,18 @@ declare const contract: {
|
|
|
501
522
|
domains: z.ZodArray<z.ZodObject<{
|
|
502
523
|
domain: z.ZodString;
|
|
503
524
|
status: z.ZodEnum<{
|
|
525
|
+
failed: "failed";
|
|
504
526
|
ongoing: "ongoing";
|
|
505
527
|
deployed: "deployed";
|
|
506
|
-
failed: "failed";
|
|
507
528
|
}>;
|
|
508
529
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
509
530
|
}, z.core.$strip>>;
|
|
510
531
|
latestDeployment: z.ZodNullable<z.ZodObject<{
|
|
511
532
|
id: z.ZodString;
|
|
512
533
|
status: z.ZodEnum<{
|
|
534
|
+
failed: "failed";
|
|
513
535
|
ongoing: "ongoing";
|
|
514
536
|
deployed: "deployed";
|
|
515
|
-
failed: "failed";
|
|
516
537
|
canceled: "canceled";
|
|
517
538
|
}>;
|
|
518
539
|
sourceCommitId: z.ZodNullable<z.ZodString>;
|
|
@@ -530,9 +551,9 @@ declare const contract: {
|
|
|
530
551
|
latestDeployment: z.ZodNullable<z.ZodObject<{
|
|
531
552
|
id: z.ZodString;
|
|
532
553
|
status: z.ZodEnum<{
|
|
554
|
+
failed: "failed";
|
|
533
555
|
ongoing: "ongoing";
|
|
534
556
|
deployed: "deployed";
|
|
535
|
-
failed: "failed";
|
|
536
557
|
canceled: "canceled";
|
|
537
558
|
}>;
|
|
538
559
|
sourceCommitId: z.ZodNullable<z.ZodString>;
|
|
@@ -543,7 +564,7 @@ declare const contract: {
|
|
|
543
564
|
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
544
565
|
};
|
|
545
566
|
create: {
|
|
546
|
-
v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
567
|
+
v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
547
568
|
teamId: z.ZodOptional<z.ZodString>;
|
|
548
569
|
name: z.ZodString;
|
|
549
570
|
sourceRepository: z.ZodOptional<z.ZodString>;
|
|
@@ -601,30 +622,204 @@ declare const contract: {
|
|
|
601
622
|
installCommand: z.ZodNullable<z.ZodString>;
|
|
602
623
|
startCommand: z.ZodNullable<z.ZodString>;
|
|
603
624
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
604
|
-
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
625
|
+
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
605
626
|
NOT_FOUND: {};
|
|
606
627
|
BAD_REQUEST: {};
|
|
607
628
|
}>, Record<never, never>>;
|
|
608
629
|
};
|
|
609
630
|
delete: {
|
|
610
|
-
v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
631
|
+
v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
611
632
|
projectId: z.ZodString;
|
|
612
633
|
}, z.core.$strip>, z.ZodObject<{
|
|
613
634
|
success: z.ZodLiteral<true>;
|
|
614
|
-
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
635
|
+
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
615
636
|
NOT_FOUND: {};
|
|
616
637
|
}>, Record<never, never>>;
|
|
617
638
|
};
|
|
618
639
|
};
|
|
619
640
|
tunnels: {
|
|
620
641
|
getTicket: {
|
|
621
|
-
v1: _orpc_contract0.ContractProcedureBuilderWithOutput<_orpc_contract0.Schema<unknown, unknown>, z.ZodObject<{
|
|
642
|
+
v1: _$_orpc_contract0.ContractProcedureBuilderWithOutput<_$_orpc_contract0.Schema<unknown, unknown>, z.ZodObject<{
|
|
622
643
|
subdomain: z.ZodString;
|
|
623
644
|
ticket: z.ZodString;
|
|
624
645
|
tunnelHost: z.ZodString;
|
|
625
646
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
626
647
|
};
|
|
627
648
|
};
|
|
649
|
+
distribution: {
|
|
650
|
+
publish: {
|
|
651
|
+
v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
652
|
+
projectId: z.ZodString;
|
|
653
|
+
domain: z.ZodString;
|
|
654
|
+
title: z.ZodString;
|
|
655
|
+
description: z.ZodString;
|
|
656
|
+
websiteUrl: z.ZodOptional<z.ZodURL>;
|
|
657
|
+
iconSrc: z.ZodOptional<z.ZodURL>;
|
|
658
|
+
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
659
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
660
|
+
serverFields: z.ZodObject<{
|
|
661
|
+
$schema: z.ZodString;
|
|
662
|
+
name: z.ZodString;
|
|
663
|
+
description: z.ZodString;
|
|
664
|
+
version: z.ZodOptional<z.ZodString>;
|
|
665
|
+
title: z.ZodOptional<z.ZodString>;
|
|
666
|
+
websiteUrl: z.ZodOptional<z.ZodURL>;
|
|
667
|
+
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
668
|
+
src: z.ZodURL;
|
|
669
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
670
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
671
|
+
}, z.core.$strip>>>;
|
|
672
|
+
remotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
673
|
+
type: z.ZodString;
|
|
674
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
675
|
+
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
676
|
+
name: z.ZodString;
|
|
677
|
+
description: z.ZodString;
|
|
678
|
+
isRequired: z.ZodOptional<z.ZodBoolean>;
|
|
679
|
+
isSecret: z.ZodOptional<z.ZodBoolean>;
|
|
680
|
+
}, z.core.$strip>>>;
|
|
681
|
+
}, z.core.$strip>>>;
|
|
682
|
+
}, z.core.$strip>;
|
|
683
|
+
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
684
|
+
NOT_FOUND: {};
|
|
685
|
+
BAD_REQUEST: {};
|
|
686
|
+
}>, Record<never, never>>;
|
|
687
|
+
};
|
|
688
|
+
get: {
|
|
689
|
+
v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
690
|
+
projectId: z.ZodString;
|
|
691
|
+
domain: z.ZodString;
|
|
692
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
693
|
+
serverFields: z.ZodObject<{
|
|
694
|
+
$schema: z.ZodString;
|
|
695
|
+
name: z.ZodString;
|
|
696
|
+
description: z.ZodString;
|
|
697
|
+
version: z.ZodOptional<z.ZodString>;
|
|
698
|
+
title: z.ZodOptional<z.ZodString>;
|
|
699
|
+
websiteUrl: z.ZodOptional<z.ZodURL>;
|
|
700
|
+
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
701
|
+
src: z.ZodURL;
|
|
702
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
703
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
704
|
+
}, z.core.$strip>>>;
|
|
705
|
+
remotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
706
|
+
type: z.ZodString;
|
|
707
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
708
|
+
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
709
|
+
name: z.ZodString;
|
|
710
|
+
description: z.ZodString;
|
|
711
|
+
isRequired: z.ZodOptional<z.ZodBoolean>;
|
|
712
|
+
isSecret: z.ZodOptional<z.ZodBoolean>;
|
|
713
|
+
}, z.core.$strip>>>;
|
|
714
|
+
}, z.core.$strip>>>;
|
|
715
|
+
}, z.core.$strip>;
|
|
716
|
+
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
717
|
+
NOT_FOUND: {};
|
|
718
|
+
BAD_REQUEST: {};
|
|
719
|
+
}>, Record<never, never>>;
|
|
720
|
+
};
|
|
721
|
+
};
|
|
722
|
+
beacon: {
|
|
723
|
+
create: {
|
|
724
|
+
v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
725
|
+
targetUrl: z.ZodString;
|
|
726
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
727
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
728
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
729
|
+
id: z.ZodString;
|
|
730
|
+
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
731
|
+
NOT_FOUND: {};
|
|
732
|
+
BAD_REQUEST: {};
|
|
733
|
+
}>, Record<never, never>>;
|
|
734
|
+
};
|
|
735
|
+
get: {
|
|
736
|
+
v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
737
|
+
analysisId: z.ZodString;
|
|
738
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
739
|
+
id: z.ZodString;
|
|
740
|
+
targetUrl: z.ZodString;
|
|
741
|
+
status: z.ZodEnum<{
|
|
742
|
+
pending: "pending";
|
|
743
|
+
partial: "partial";
|
|
744
|
+
completed: "completed";
|
|
745
|
+
failed: "failed";
|
|
746
|
+
}>;
|
|
747
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
748
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
749
|
+
report: z.ZodNullable<z.ZodObject<{
|
|
750
|
+
schemaVersion: z.ZodString;
|
|
751
|
+
auditId: z.ZodString;
|
|
752
|
+
targetUrl: z.ZodString;
|
|
753
|
+
startedAt: z.ZodString;
|
|
754
|
+
completedAt: z.ZodString;
|
|
755
|
+
durationMs: z.ZodNumber;
|
|
756
|
+
results: z.ZodArray<z.ZodObject<{
|
|
757
|
+
checkId: z.ZodString;
|
|
758
|
+
status: z.ZodEnum<{
|
|
759
|
+
pending: "pending";
|
|
760
|
+
pass: "pass";
|
|
761
|
+
fail: "fail";
|
|
762
|
+
skip: "skip";
|
|
763
|
+
}>;
|
|
764
|
+
message: z.ZodString;
|
|
765
|
+
skipReason: z.ZodOptional<z.ZodString>;
|
|
766
|
+
severity: z.ZodEnum<{
|
|
767
|
+
error: "error";
|
|
768
|
+
warning: "warning";
|
|
769
|
+
info: "info";
|
|
770
|
+
}>;
|
|
771
|
+
category: z.ZodEnum<{
|
|
772
|
+
connectivity: "connectivity";
|
|
773
|
+
"tool-metadata": "tool-metadata";
|
|
774
|
+
"resource-metadata": "resource-metadata";
|
|
775
|
+
performance: "performance";
|
|
776
|
+
e2e: "e2e";
|
|
777
|
+
}>;
|
|
778
|
+
scope: z.ZodEnum<{
|
|
779
|
+
server: "server";
|
|
780
|
+
view: "view";
|
|
781
|
+
}>;
|
|
782
|
+
platforms: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
783
|
+
chatgpt: "chatgpt";
|
|
784
|
+
claudeai: "claudeai";
|
|
785
|
+
}>>>>;
|
|
786
|
+
durationMs: z.ZodNumber;
|
|
787
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
788
|
+
label: z.ZodString;
|
|
789
|
+
value: z.ZodOptional<z.ZodString>;
|
|
790
|
+
}, z.core.$strip>>>;
|
|
791
|
+
hint: z.ZodOptional<z.ZodObject<{
|
|
792
|
+
text: z.ZodString;
|
|
793
|
+
}, z.core.$strip>>;
|
|
794
|
+
}, z.core.$strip>>;
|
|
795
|
+
requiresAuth: z.ZodBoolean;
|
|
796
|
+
hasViewSupport: z.ZodBoolean;
|
|
797
|
+
viewPlatforms: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
798
|
+
chatgpt: "chatgpt";
|
|
799
|
+
claudeai: "claudeai";
|
|
800
|
+
}>>>>;
|
|
801
|
+
isReadyForPlatform: z.ZodRecord<z.ZodEnum<{
|
|
802
|
+
chatgpt: "chatgpt";
|
|
803
|
+
claudeai: "claudeai";
|
|
804
|
+
}>, z.ZodBoolean>;
|
|
805
|
+
widgetScreenshotKeys: z.ZodOptional<z.ZodObject<{
|
|
806
|
+
chatgpt: z.ZodOptional<z.ZodString>;
|
|
807
|
+
claudeai: z.ZodOptional<z.ZodString>;
|
|
808
|
+
}, z.core.$strip>>;
|
|
809
|
+
widgetScreenshots: z.ZodOptional<z.ZodObject<{
|
|
810
|
+
chatgpt: z.ZodOptional<z.ZodObject<{
|
|
811
|
+
url: z.ZodString;
|
|
812
|
+
}, z.core.$strip>>;
|
|
813
|
+
claudeai: z.ZodOptional<z.ZodObject<{
|
|
814
|
+
url: z.ZodString;
|
|
815
|
+
}, z.core.$strip>>;
|
|
816
|
+
}, z.core.$strip>>;
|
|
817
|
+
}, z.core.$strip>>;
|
|
818
|
+
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
819
|
+
NOT_FOUND: {};
|
|
820
|
+
}>, Record<never, never>>;
|
|
821
|
+
};
|
|
822
|
+
};
|
|
628
823
|
};
|
|
629
824
|
type RouterInput = InferContractRouterInputs<typeof contract>;
|
|
630
825
|
type RouterOutput = InferContractRouterOutputs<typeof contract>;
|
|
@@ -659,5 +854,173 @@ declare const transportSchema: z.ZodEnum<{
|
|
|
659
854
|
streamablehttp: "streamablehttp";
|
|
660
855
|
}>;
|
|
661
856
|
type Transport = z.infer<typeof transportSchema>;
|
|
857
|
+
declare const analysisStatusSchema: z.ZodEnum<{
|
|
858
|
+
pending: "pending";
|
|
859
|
+
partial: "partial";
|
|
860
|
+
completed: "completed";
|
|
861
|
+
failed: "failed";
|
|
862
|
+
}>;
|
|
863
|
+
declare const platformSchema: z.ZodEnum<{
|
|
864
|
+
chatgpt: "chatgpt";
|
|
865
|
+
claudeai: "claudeai";
|
|
866
|
+
}>;
|
|
867
|
+
type Platform = z.infer<typeof platformSchema>;
|
|
868
|
+
declare const checkSeveritySchema: z.ZodEnum<{
|
|
869
|
+
error: "error";
|
|
870
|
+
warning: "warning";
|
|
871
|
+
info: "info";
|
|
872
|
+
}>;
|
|
873
|
+
type CheckSeverity = z.infer<typeof checkSeveritySchema>;
|
|
874
|
+
declare const checkCategorySchema: z.ZodEnum<{
|
|
875
|
+
connectivity: "connectivity";
|
|
876
|
+
"tool-metadata": "tool-metadata";
|
|
877
|
+
"resource-metadata": "resource-metadata";
|
|
878
|
+
performance: "performance";
|
|
879
|
+
e2e: "e2e";
|
|
880
|
+
}>;
|
|
881
|
+
type CheckCategory = z.infer<typeof checkCategorySchema>;
|
|
882
|
+
declare const checkScopeSchema: z.ZodEnum<{
|
|
883
|
+
server: "server";
|
|
884
|
+
view: "view";
|
|
885
|
+
}>;
|
|
886
|
+
type CheckScope = z.infer<typeof checkScopeSchema>;
|
|
887
|
+
declare const checkDetailSchema: z.ZodObject<{
|
|
888
|
+
label: z.ZodString;
|
|
889
|
+
value: z.ZodOptional<z.ZodString>;
|
|
890
|
+
}, z.core.$strip>;
|
|
891
|
+
type CheckDetail = z.infer<typeof checkDetailSchema>;
|
|
892
|
+
declare const checkResultSchema: z.ZodObject<{
|
|
893
|
+
checkId: z.ZodString;
|
|
894
|
+
status: z.ZodEnum<{
|
|
895
|
+
pending: "pending";
|
|
896
|
+
pass: "pass";
|
|
897
|
+
fail: "fail";
|
|
898
|
+
skip: "skip";
|
|
899
|
+
}>;
|
|
900
|
+
message: z.ZodString;
|
|
901
|
+
skipReason: z.ZodOptional<z.ZodString>;
|
|
902
|
+
severity: z.ZodEnum<{
|
|
903
|
+
error: "error";
|
|
904
|
+
warning: "warning";
|
|
905
|
+
info: "info";
|
|
906
|
+
}>;
|
|
907
|
+
category: z.ZodEnum<{
|
|
908
|
+
connectivity: "connectivity";
|
|
909
|
+
"tool-metadata": "tool-metadata";
|
|
910
|
+
"resource-metadata": "resource-metadata";
|
|
911
|
+
performance: "performance";
|
|
912
|
+
e2e: "e2e";
|
|
913
|
+
}>;
|
|
914
|
+
scope: z.ZodEnum<{
|
|
915
|
+
server: "server";
|
|
916
|
+
view: "view";
|
|
917
|
+
}>;
|
|
918
|
+
platforms: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
919
|
+
chatgpt: "chatgpt";
|
|
920
|
+
claudeai: "claudeai";
|
|
921
|
+
}>>>>;
|
|
922
|
+
durationMs: z.ZodNumber;
|
|
923
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
924
|
+
label: z.ZodString;
|
|
925
|
+
value: z.ZodOptional<z.ZodString>;
|
|
926
|
+
}, z.core.$strip>>>;
|
|
927
|
+
hint: z.ZodOptional<z.ZodObject<{
|
|
928
|
+
text: z.ZodString;
|
|
929
|
+
}, z.core.$strip>>;
|
|
930
|
+
}, z.core.$strip>;
|
|
931
|
+
type CheckResult = z.infer<typeof checkResultSchema>;
|
|
932
|
+
declare const auditReportSchema: z.ZodObject<{
|
|
933
|
+
schemaVersion: z.ZodString;
|
|
934
|
+
auditId: z.ZodString;
|
|
935
|
+
targetUrl: z.ZodString;
|
|
936
|
+
startedAt: z.ZodString;
|
|
937
|
+
completedAt: z.ZodString;
|
|
938
|
+
durationMs: z.ZodNumber;
|
|
939
|
+
results: z.ZodArray<z.ZodObject<{
|
|
940
|
+
checkId: z.ZodString;
|
|
941
|
+
status: z.ZodEnum<{
|
|
942
|
+
pending: "pending";
|
|
943
|
+
pass: "pass";
|
|
944
|
+
fail: "fail";
|
|
945
|
+
skip: "skip";
|
|
946
|
+
}>;
|
|
947
|
+
message: z.ZodString;
|
|
948
|
+
skipReason: z.ZodOptional<z.ZodString>;
|
|
949
|
+
severity: z.ZodEnum<{
|
|
950
|
+
error: "error";
|
|
951
|
+
warning: "warning";
|
|
952
|
+
info: "info";
|
|
953
|
+
}>;
|
|
954
|
+
category: z.ZodEnum<{
|
|
955
|
+
connectivity: "connectivity";
|
|
956
|
+
"tool-metadata": "tool-metadata";
|
|
957
|
+
"resource-metadata": "resource-metadata";
|
|
958
|
+
performance: "performance";
|
|
959
|
+
e2e: "e2e";
|
|
960
|
+
}>;
|
|
961
|
+
scope: z.ZodEnum<{
|
|
962
|
+
server: "server";
|
|
963
|
+
view: "view";
|
|
964
|
+
}>;
|
|
965
|
+
platforms: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
966
|
+
chatgpt: "chatgpt";
|
|
967
|
+
claudeai: "claudeai";
|
|
968
|
+
}>>>>;
|
|
969
|
+
durationMs: z.ZodNumber;
|
|
970
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
971
|
+
label: z.ZodString;
|
|
972
|
+
value: z.ZodOptional<z.ZodString>;
|
|
973
|
+
}, z.core.$strip>>>;
|
|
974
|
+
hint: z.ZodOptional<z.ZodObject<{
|
|
975
|
+
text: z.ZodString;
|
|
976
|
+
}, z.core.$strip>>;
|
|
977
|
+
}, z.core.$strip>>;
|
|
978
|
+
requiresAuth: z.ZodBoolean;
|
|
979
|
+
hasViewSupport: z.ZodBoolean;
|
|
980
|
+
viewPlatforms: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
981
|
+
chatgpt: "chatgpt";
|
|
982
|
+
claudeai: "claudeai";
|
|
983
|
+
}>>>>;
|
|
984
|
+
isReadyForPlatform: z.ZodRecord<z.ZodEnum<{
|
|
985
|
+
chatgpt: "chatgpt";
|
|
986
|
+
claudeai: "claudeai";
|
|
987
|
+
}>, z.ZodBoolean>;
|
|
988
|
+
widgetScreenshotKeys: z.ZodOptional<z.ZodObject<{
|
|
989
|
+
chatgpt: z.ZodOptional<z.ZodString>;
|
|
990
|
+
claudeai: z.ZodOptional<z.ZodString>;
|
|
991
|
+
}, z.core.$strip>>;
|
|
992
|
+
widgetScreenshots: z.ZodOptional<z.ZodObject<{
|
|
993
|
+
chatgpt: z.ZodOptional<z.ZodObject<{
|
|
994
|
+
url: z.ZodString;
|
|
995
|
+
}, z.core.$strip>>;
|
|
996
|
+
claudeai: z.ZodOptional<z.ZodObject<{
|
|
997
|
+
url: z.ZodString;
|
|
998
|
+
}, z.core.$strip>>;
|
|
999
|
+
}, z.core.$strip>>;
|
|
1000
|
+
}, z.core.$strip>;
|
|
1001
|
+
type AuditReport = z.infer<typeof auditReportSchema>;
|
|
1002
|
+
declare const serverFieldsSchema: z.ZodObject<{
|
|
1003
|
+
$schema: z.ZodString;
|
|
1004
|
+
name: z.ZodString;
|
|
1005
|
+
description: z.ZodString;
|
|
1006
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1007
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1008
|
+
websiteUrl: z.ZodOptional<z.ZodURL>;
|
|
1009
|
+
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1010
|
+
src: z.ZodURL;
|
|
1011
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1012
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1013
|
+
}, z.core.$strip>>>;
|
|
1014
|
+
remotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1015
|
+
type: z.ZodString;
|
|
1016
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
1017
|
+
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1018
|
+
name: z.ZodString;
|
|
1019
|
+
description: z.ZodString;
|
|
1020
|
+
isRequired: z.ZodOptional<z.ZodBoolean>;
|
|
1021
|
+
isSecret: z.ZodOptional<z.ZodBoolean>;
|
|
1022
|
+
}, z.core.$strip>>>;
|
|
1023
|
+
}, z.core.$strip>>>;
|
|
1024
|
+
}, z.core.$strip>;
|
|
662
1025
|
//#endregion
|
|
663
|
-
export { ApiContext, RouterInput, RouterOutput, Runtime, Transport, buildSettingsSchema, contract, createEnvironmentContractV1, environmentVariableSchema, environmentVariablesSchema, runtimeSchema, transportSchema };
|
|
1026
|
+
export { ApiContext, AuditReport, CheckCategory, CheckDetail, CheckResult, CheckScope, CheckSeverity, Platform, RouterInput, RouterOutput, Runtime, Transport, analysisStatusSchema, auditReportSchema, buildSettingsSchema, checkDetailSchema, checkResultSchema, contract, createEnvironmentContractV1, deploymentStatusSchema, environmentVariableSchema, environmentVariablesSchema, platformSchema, runtimeSchema, serverFieldsSchema, transportSchema };
|
package/dist/index.mjs
CHANGED
|
@@ -60,6 +60,92 @@ const transportSchema = z.enum([
|
|
|
60
60
|
"sse",
|
|
61
61
|
"streamablehttp"
|
|
62
62
|
]);
|
|
63
|
+
const analysisStatusSchema = z.enum([
|
|
64
|
+
"pending",
|
|
65
|
+
"partial",
|
|
66
|
+
"completed",
|
|
67
|
+
"failed"
|
|
68
|
+
]);
|
|
69
|
+
const platformSchema = z.enum(["chatgpt", "claudeai"]);
|
|
70
|
+
const checkSeveritySchema = z.enum([
|
|
71
|
+
"error",
|
|
72
|
+
"warning",
|
|
73
|
+
"info"
|
|
74
|
+
]);
|
|
75
|
+
const checkCategorySchema = z.enum([
|
|
76
|
+
"connectivity",
|
|
77
|
+
"tool-metadata",
|
|
78
|
+
"resource-metadata",
|
|
79
|
+
"performance",
|
|
80
|
+
"e2e"
|
|
81
|
+
]);
|
|
82
|
+
const checkScopeSchema = z.enum(["server", "view"]);
|
|
83
|
+
const checkDetailSchema = z.object({
|
|
84
|
+
label: z.string(),
|
|
85
|
+
value: z.string().optional()
|
|
86
|
+
});
|
|
87
|
+
const checkResultSchema = z.object({
|
|
88
|
+
checkId: z.string(),
|
|
89
|
+
status: z.enum([
|
|
90
|
+
"pass",
|
|
91
|
+
"fail",
|
|
92
|
+
"skip",
|
|
93
|
+
"pending"
|
|
94
|
+
]),
|
|
95
|
+
message: z.string(),
|
|
96
|
+
skipReason: z.string().optional(),
|
|
97
|
+
severity: checkSeveritySchema,
|
|
98
|
+
category: checkCategorySchema,
|
|
99
|
+
scope: checkScopeSchema,
|
|
100
|
+
platforms: z.array(platformSchema).readonly().optional(),
|
|
101
|
+
durationMs: z.number(),
|
|
102
|
+
details: z.array(checkDetailSchema).optional(),
|
|
103
|
+
hint: z.object({ text: z.string() }).optional()
|
|
104
|
+
});
|
|
105
|
+
const auditReportSchema = z.object({
|
|
106
|
+
schemaVersion: z.string(),
|
|
107
|
+
auditId: z.string(),
|
|
108
|
+
targetUrl: z.string(),
|
|
109
|
+
startedAt: z.string(),
|
|
110
|
+
completedAt: z.string(),
|
|
111
|
+
durationMs: z.number(),
|
|
112
|
+
results: z.array(checkResultSchema),
|
|
113
|
+
requiresAuth: z.boolean(),
|
|
114
|
+
hasViewSupport: z.boolean(),
|
|
115
|
+
viewPlatforms: z.array(platformSchema).readonly().optional(),
|
|
116
|
+
isReadyForPlatform: z.record(platformSchema, z.boolean()),
|
|
117
|
+
widgetScreenshotKeys: z.object({
|
|
118
|
+
chatgpt: z.string().optional(),
|
|
119
|
+
claudeai: z.string().optional()
|
|
120
|
+
}).optional(),
|
|
121
|
+
widgetScreenshots: z.object({
|
|
122
|
+
chatgpt: z.object({ url: z.string() }).optional(),
|
|
123
|
+
claudeai: z.object({ url: z.string() }).optional()
|
|
124
|
+
}).optional()
|
|
125
|
+
});
|
|
126
|
+
const serverFieldsSchema = z.object({
|
|
127
|
+
$schema: z.string(),
|
|
128
|
+
name: z.string(),
|
|
129
|
+
description: z.string(),
|
|
130
|
+
version: z.string().optional(),
|
|
131
|
+
title: z.string().optional(),
|
|
132
|
+
websiteUrl: z.url().optional(),
|
|
133
|
+
icons: z.array(z.object({
|
|
134
|
+
src: z.url(),
|
|
135
|
+
mimeType: z.string().optional(),
|
|
136
|
+
sizes: z.array(z.string()).optional()
|
|
137
|
+
})).optional(),
|
|
138
|
+
remotes: z.array(z.object({
|
|
139
|
+
type: z.string(),
|
|
140
|
+
url: z.url().optional(),
|
|
141
|
+
headers: z.array(z.object({
|
|
142
|
+
name: z.string(),
|
|
143
|
+
description: z.string(),
|
|
144
|
+
isRequired: z.boolean().optional(),
|
|
145
|
+
isSecret: z.boolean().optional()
|
|
146
|
+
})).optional()
|
|
147
|
+
})).optional()
|
|
148
|
+
});
|
|
63
149
|
//#endregion
|
|
64
150
|
//#region src/api.contract.ts
|
|
65
151
|
const deploymentStatusSchema = z.enum([
|
|
@@ -84,9 +170,12 @@ const deploymentSchema = z.object({
|
|
|
84
170
|
authorUsername: z.string().nullable(),
|
|
85
171
|
authorAvatarUrl: z.string().nullable(),
|
|
86
172
|
startedAt: z.coerce.date().nullable(),
|
|
87
|
-
completedAt: z.coerce.date().nullable()
|
|
173
|
+
completedAt: z.coerce.date().nullable(),
|
|
174
|
+
environmentId: z.string(),
|
|
175
|
+
environmentName: z.string(),
|
|
176
|
+
isCurrent: z.boolean(),
|
|
177
|
+
deploymentPageUrl: z.url().nullable()
|
|
88
178
|
});
|
|
89
|
-
const deploymentWithPageUrlSchema = deploymentSchema.extend({ deploymentPageUrl: z.url().nullable() });
|
|
90
179
|
const isValidLogTimeInput = (value) => {
|
|
91
180
|
if (ms(value) !== void 0) return true;
|
|
92
181
|
return !Number.isNaN(new Date(value).getTime());
|
|
@@ -283,7 +372,7 @@ const deleteEnvironmentVariableContractV1 = oc.route({
|
|
|
283
372
|
successDescription: "The environment variable has been deleted successfully"
|
|
284
373
|
}).errors({ NOT_FOUND: {} }).input(z.object({ environmentVariableId: z.string().describe("The ID of the environment variable") })).output(z.object({ success: z.literal(true) }));
|
|
285
374
|
const deleteProjectContractV1 = oc.route({
|
|
286
|
-
path: "/v1/projects
|
|
375
|
+
path: "/v1/projects/{projectId}",
|
|
287
376
|
method: "DELETE",
|
|
288
377
|
summary: "Delete a project",
|
|
289
378
|
description: "Delete a project and all its environments",
|
|
@@ -318,7 +407,7 @@ const deployEnvironmentContractV1 = oc.route({
|
|
|
318
407
|
}).input(z.object({
|
|
319
408
|
environmentId: z.string().describe("The ID of the environment to deploy"),
|
|
320
409
|
token: z.string().describe("The token to identify the source archive").optional()
|
|
321
|
-
})).output(
|
|
410
|
+
})).output(deploymentSchema);
|
|
322
411
|
const uploadDeploymentArtifactContractV1 = oc.route({
|
|
323
412
|
path: "/v1/deployments/upload",
|
|
324
413
|
method: "POST",
|
|
@@ -327,21 +416,22 @@ const uploadDeploymentArtifactContractV1 = oc.route({
|
|
|
327
416
|
tags: ["deployments"],
|
|
328
417
|
successDescription: "The presigned upload URL has been generated successfully"
|
|
329
418
|
}).input(z.object({ teamId: z.string().optional() }).optional()).output(z.object({
|
|
330
|
-
uploadUrl: z.
|
|
419
|
+
uploadUrl: z.url().describe("Presigned S3 URL to upload the source archive with HTTP PUT"),
|
|
331
420
|
token: z.string().describe("Token to identify the source archive"),
|
|
332
421
|
expiresAt: z.coerce.date().describe("Expiration date of the presigned URL")
|
|
333
422
|
}));
|
|
334
|
-
const
|
|
423
|
+
const listDeploymentsContractV1 = oc.route({
|
|
335
424
|
path: "/v1/projects/{projectId}/deployments",
|
|
336
425
|
method: "GET",
|
|
337
426
|
summary: "List project deployments",
|
|
338
427
|
description: "List all deployments for a project",
|
|
339
428
|
tags: ["deployments"],
|
|
340
429
|
successDescription: "The list of deployments"
|
|
341
|
-
}).errors({ NOT_FOUND: {} }).input(z.object({
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
430
|
+
}).errors({ NOT_FOUND: {} }).input(z.object({
|
|
431
|
+
projectId: z.string().describe("The ID of the project"),
|
|
432
|
+
status: z.array(deploymentStatusSchema).optional().describe("Filter by one or more statuses"),
|
|
433
|
+
environmentId: z.string().optional().describe("Filter by environment ID")
|
|
434
|
+
})).output(z.array(deploymentSchema));
|
|
345
435
|
const getDeploymentContractV1 = oc.route({
|
|
346
436
|
path: "/v1/deployments/{deploymentId}",
|
|
347
437
|
method: "GET",
|
|
@@ -349,7 +439,7 @@ const getDeploymentContractV1 = oc.route({
|
|
|
349
439
|
description: "Get a deployment by ID",
|
|
350
440
|
tags: ["deployments"],
|
|
351
441
|
successDescription: "The deployment details"
|
|
352
|
-
}).errors({ NOT_FOUND: {} }).input(z.object({ deploymentId: z.string().describe("The ID of the deployment") })).output(
|
|
442
|
+
}).errors({ NOT_FOUND: {} }).input(z.object({ deploymentId: z.string().describe("The ID of the deployment") })).output(deploymentSchema);
|
|
353
443
|
const getLogsContractV1 = oc.route({
|
|
354
444
|
path: "/v1/environments/{environmentId}/logs",
|
|
355
445
|
method: "GET",
|
|
@@ -468,11 +558,73 @@ const getTunnelTicketContractV1 = oc.route({
|
|
|
468
558
|
ticket: z.string().describe("The signed tunnel ticket"),
|
|
469
559
|
tunnelHost: z.string().describe("The tunnel host to connect to")
|
|
470
560
|
}));
|
|
561
|
+
const publishServerContractV1 = oc.route({
|
|
562
|
+
path: "/v1/distribution/publish",
|
|
563
|
+
method: "POST",
|
|
564
|
+
summary: "Publish a server to the MCP registry",
|
|
565
|
+
tags: ["distribution"],
|
|
566
|
+
successDescription: "The server has been published successfully"
|
|
567
|
+
}).errors({
|
|
568
|
+
NOT_FOUND: {},
|
|
569
|
+
BAD_REQUEST: {}
|
|
570
|
+
}).input(z.object({
|
|
571
|
+
projectId: z.string(),
|
|
572
|
+
domain: z.string(),
|
|
573
|
+
title: z.string().min(1).max(100),
|
|
574
|
+
description: z.string().min(1).max(100),
|
|
575
|
+
websiteUrl: z.url().max(255).optional(),
|
|
576
|
+
iconSrc: z.url().max(255).optional(),
|
|
577
|
+
dryRun: z.boolean().optional()
|
|
578
|
+
})).output(z.object({ serverFields: serverFieldsSchema }));
|
|
579
|
+
const getServerInfoContractV1 = oc.route({
|
|
580
|
+
path: "/v1/distribution/get",
|
|
581
|
+
method: "GET",
|
|
582
|
+
summary: "Get server info",
|
|
583
|
+
description: "Get info about a server",
|
|
584
|
+
tags: ["distribution"],
|
|
585
|
+
successDescription: "The server info"
|
|
586
|
+
}).errors({
|
|
587
|
+
NOT_FOUND: {},
|
|
588
|
+
BAD_REQUEST: {}
|
|
589
|
+
}).input(z.object({
|
|
590
|
+
projectId: z.string(),
|
|
591
|
+
domain: z.string()
|
|
592
|
+
})).output(z.object({ serverFields: serverFieldsSchema }));
|
|
593
|
+
const createBeaconContractV1 = oc.route({
|
|
594
|
+
path: "/v1/beacon/analyses",
|
|
595
|
+
method: "POST",
|
|
596
|
+
summary: "Create a beacon analysis",
|
|
597
|
+
description: "Analyze an MCP server for spec compliance and AI client compatibility",
|
|
598
|
+
tags: ["beacon"],
|
|
599
|
+
successDescription: "The analysis has been created"
|
|
600
|
+
}).errors({
|
|
601
|
+
NOT_FOUND: {},
|
|
602
|
+
BAD_REQUEST: {}
|
|
603
|
+
}).input(z.object({
|
|
604
|
+
targetUrl: z.string().url().describe("The HTTPS URL of the MCP server to analyze"),
|
|
605
|
+
teamId: z.string().optional().describe("The team ID to associate the analysis with"),
|
|
606
|
+
projectId: z.string().optional().describe("The project ID to associate the analysis with")
|
|
607
|
+
})).output(z.object({ id: z.string() }));
|
|
608
|
+
const getBeaconContractV1 = oc.route({
|
|
609
|
+
path: "/v1/beacon/analyses/{analysisId}",
|
|
610
|
+
method: "GET",
|
|
611
|
+
summary: "Get a beacon analysis",
|
|
612
|
+
description: "Get a beacon analysis by ID, including the report if completed",
|
|
613
|
+
tags: ["beacon"],
|
|
614
|
+
successDescription: "The analysis details"
|
|
615
|
+
}).errors({ NOT_FOUND: {} }).input(z.object({ analysisId: z.string().describe("The ID of the analysis") })).output(z.object({
|
|
616
|
+
id: z.string(),
|
|
617
|
+
targetUrl: z.string(),
|
|
618
|
+
status: analysisStatusSchema,
|
|
619
|
+
durationMs: z.number().nullable(),
|
|
620
|
+
createdAt: z.coerce.date(),
|
|
621
|
+
report: auditReportSchema.nullable()
|
|
622
|
+
}));
|
|
471
623
|
const contract = {
|
|
472
624
|
teams: { list: { v1: listTeamsContractV1 } },
|
|
473
625
|
analytics: { get: { v1: getProjectAnalyticsContractV1 } },
|
|
474
626
|
deployments: {
|
|
475
|
-
list: { v1:
|
|
627
|
+
list: { v1: listDeploymentsContractV1 },
|
|
476
628
|
get: { v1: getDeploymentContractV1 },
|
|
477
629
|
uploadArtifact: { v1: uploadDeploymentArtifactContractV1 },
|
|
478
630
|
getLogs: { v1: getDeploymentLogsContractV1 }
|
|
@@ -496,7 +648,15 @@ const contract = {
|
|
|
496
648
|
create: { v1: createProjectContractV1 },
|
|
497
649
|
delete: { v1: deleteProjectContractV1 }
|
|
498
650
|
},
|
|
499
|
-
tunnels: { getTicket: { v1: getTunnelTicketContractV1 } }
|
|
651
|
+
tunnels: { getTicket: { v1: getTunnelTicketContractV1 } },
|
|
652
|
+
distribution: {
|
|
653
|
+
publish: { v1: publishServerContractV1 },
|
|
654
|
+
get: { v1: getServerInfoContractV1 }
|
|
655
|
+
},
|
|
656
|
+
beacon: {
|
|
657
|
+
create: { v1: createBeaconContractV1 },
|
|
658
|
+
get: { v1: getBeaconContractV1 }
|
|
659
|
+
}
|
|
500
660
|
};
|
|
501
661
|
//#endregion
|
|
502
|
-
export { buildSettingsSchema, contract, createEnvironmentContractV1, environmentVariableSchema, environmentVariablesSchema, runtimeSchema, transportSchema };
|
|
662
|
+
export { analysisStatusSchema, auditReportSchema, buildSettingsSchema, checkDetailSchema, checkResultSchema, contract, createEnvironmentContractV1, deploymentStatusSchema, environmentVariableSchema, environmentVariablesSchema, platformSchema, runtimeSchema, serverFieldsSchema, transportSchema };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alpic-ai/api",
|
|
3
|
-
"version": "0.0.0-staging.
|
|
3
|
+
"version": "0.0.0-staging.f621e81",
|
|
4
4
|
"description": "Contract for the Alpic API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"author": "Alpic",
|
|
18
18
|
"license": "ISC",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@orpc/contract": "^1.13.
|
|
20
|
+
"@orpc/contract": "^1.13.13",
|
|
21
21
|
"ms": "^2.1.3",
|
|
22
22
|
"zod": "^4.3.6"
|
|
23
23
|
},
|
|
@@ -25,16 +25,16 @@
|
|
|
25
25
|
"@total-typescript/tsconfig": "^1.0.4",
|
|
26
26
|
"@types/ms": "^2.1.0",
|
|
27
27
|
"shx": "^0.4.0",
|
|
28
|
-
"tsdown": "^0.21.
|
|
29
|
-
"typescript": "^
|
|
30
|
-
"vitest": "^4.1.
|
|
28
|
+
"tsdown": "^0.21.7",
|
|
29
|
+
"typescript": "^6.0.2",
|
|
30
|
+
"vitest": "^4.1.2"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "shx rm -rf dist && tsdown",
|
|
34
|
-
"format": "biome check --write --error-on-warnings",
|
|
34
|
+
"format": "biome check --write --error-on-warnings .",
|
|
35
35
|
"test": "pnpm run test:unit && pnpm run test:type && pnpm run test:format",
|
|
36
36
|
"test:unit": "vitest run",
|
|
37
|
-
"test:format": "
|
|
37
|
+
"test:format": "biome check --error-on-warnings .",
|
|
38
38
|
"test:type": "tsc --noEmit",
|
|
39
39
|
"publish:npm": "pnpm publish --tag \"${NPM_TAG}\" --access public --no-git-checks"
|
|
40
40
|
}
|