@alpic-ai/api 0.0.0-staging.9ccdbd8 → 0.0.0-staging.9dec05f
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 +261 -5
- package/dist/index.mjs +231 -27
- package/package.json +10 -8
package/dist/index.d.mts
CHANGED
|
@@ -6,8 +6,16 @@ import { z } from "zod";
|
|
|
6
6
|
type ApiContext = {
|
|
7
7
|
request: Request & {
|
|
8
8
|
teamIds: string[];
|
|
9
|
+
defaultTeamId: string | undefined;
|
|
10
|
+
awsCognitoUserSub: string | undefined;
|
|
9
11
|
};
|
|
10
12
|
};
|
|
13
|
+
declare const deploymentStatusSchema: z.ZodEnum<{
|
|
14
|
+
ongoing: "ongoing";
|
|
15
|
+
deployed: "deployed";
|
|
16
|
+
failed: "failed";
|
|
17
|
+
canceled: "canceled";
|
|
18
|
+
}>;
|
|
11
19
|
declare const createEnvironmentContractV1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
12
20
|
projectId: z.ZodString;
|
|
13
21
|
name: z.ZodString;
|
|
@@ -36,7 +44,6 @@ declare const contract: {
|
|
|
36
44
|
name: z.ZodString;
|
|
37
45
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
38
46
|
hasStripeAccount: z.ZodBoolean;
|
|
39
|
-
hasActiveSubscription: z.ZodBoolean;
|
|
40
47
|
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
41
48
|
};
|
|
42
49
|
};
|
|
@@ -95,6 +102,13 @@ declare const contract: {
|
|
|
95
102
|
list: {
|
|
96
103
|
v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
97
104
|
projectId: z.ZodString;
|
|
105
|
+
status: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
106
|
+
ongoing: "ongoing";
|
|
107
|
+
deployed: "deployed";
|
|
108
|
+
failed: "failed";
|
|
109
|
+
canceled: "canceled";
|
|
110
|
+
}>>>;
|
|
111
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
98
112
|
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
99
113
|
id: z.ZodString;
|
|
100
114
|
status: z.ZodEnum<{
|
|
@@ -110,8 +124,10 @@ declare const contract: {
|
|
|
110
124
|
authorAvatarUrl: z.ZodNullable<z.ZodString>;
|
|
111
125
|
startedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
112
126
|
completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
113
|
-
isCurrent: z.ZodBoolean;
|
|
114
127
|
environmentId: z.ZodString;
|
|
128
|
+
environmentName: z.ZodString;
|
|
129
|
+
isCurrent: z.ZodBoolean;
|
|
130
|
+
deploymentPageUrl: z.ZodNullable<z.ZodURL>;
|
|
115
131
|
}, z.core.$strip>>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
116
132
|
NOT_FOUND: {};
|
|
117
133
|
}>, Record<never, never>>;
|
|
@@ -134,6 +150,10 @@ declare const contract: {
|
|
|
134
150
|
authorAvatarUrl: z.ZodNullable<z.ZodString>;
|
|
135
151
|
startedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
136
152
|
completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
153
|
+
environmentId: z.ZodString;
|
|
154
|
+
environmentName: z.ZodString;
|
|
155
|
+
isCurrent: z.ZodBoolean;
|
|
156
|
+
deploymentPageUrl: z.ZodNullable<z.ZodURL>;
|
|
137
157
|
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
138
158
|
NOT_FOUND: {};
|
|
139
159
|
}>, Record<never, never>>;
|
|
@@ -142,7 +162,7 @@ declare const contract: {
|
|
|
142
162
|
v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodObject<{
|
|
143
163
|
teamId: z.ZodOptional<z.ZodString>;
|
|
144
164
|
}, z.core.$strip>>, z.ZodObject<{
|
|
145
|
-
uploadUrl: z.
|
|
165
|
+
uploadUrl: z.ZodURL;
|
|
146
166
|
token: z.ZodString;
|
|
147
167
|
expiresAt: z.ZodCoercedDate<unknown>;
|
|
148
168
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
@@ -218,16 +238,109 @@ declare const contract: {
|
|
|
218
238
|
authorAvatarUrl: z.ZodNullable<z.ZodString>;
|
|
219
239
|
startedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
220
240
|
completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
241
|
+
environmentId: z.ZodString;
|
|
242
|
+
environmentName: z.ZodString;
|
|
243
|
+
isCurrent: z.ZodBoolean;
|
|
244
|
+
deploymentPageUrl: z.ZodNullable<z.ZodURL>;
|
|
245
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
246
|
+
NOT_FOUND: {};
|
|
247
|
+
BAD_REQUEST: {};
|
|
248
|
+
}>, Record<never, never>>;
|
|
249
|
+
};
|
|
250
|
+
getLogs: {
|
|
251
|
+
v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
252
|
+
environmentId: z.ZodString;
|
|
253
|
+
since: z.ZodOptional<z.ZodString>;
|
|
254
|
+
until: z.ZodOptional<z.ZodString>;
|
|
255
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
256
|
+
level: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
257
|
+
INFO: "INFO";
|
|
258
|
+
ERROR: "ERROR";
|
|
259
|
+
WARNING: "WARNING";
|
|
260
|
+
DEBUG: "DEBUG";
|
|
261
|
+
}>>>;
|
|
262
|
+
search: z.ZodOptional<z.ZodString>;
|
|
263
|
+
nextToken: z.ZodOptional<z.ZodString>;
|
|
264
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
265
|
+
logs: z.ZodArray<z.ZodObject<{
|
|
266
|
+
timestamp: z.ZodCoercedDate<unknown>;
|
|
267
|
+
type: z.ZodEnum<{
|
|
268
|
+
INFO: "INFO";
|
|
269
|
+
ERROR: "ERROR";
|
|
270
|
+
WARNING: "WARNING";
|
|
271
|
+
DEBUG: "DEBUG";
|
|
272
|
+
START: "START";
|
|
273
|
+
END: "END";
|
|
274
|
+
}>;
|
|
275
|
+
requestId: z.ZodString;
|
|
276
|
+
content: z.ZodOptional<z.ZodString>;
|
|
277
|
+
method: z.ZodOptional<z.ZodString>;
|
|
278
|
+
durationInMs: z.ZodOptional<z.ZodNumber>;
|
|
279
|
+
}, z.core.$strip>>;
|
|
280
|
+
nextToken: z.ZodNullable<z.ZodString>;
|
|
221
281
|
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
222
282
|
NOT_FOUND: {};
|
|
223
283
|
BAD_REQUEST: {};
|
|
224
284
|
}>, Record<never, never>>;
|
|
225
285
|
};
|
|
226
286
|
};
|
|
287
|
+
environmentVariables: {
|
|
288
|
+
list: {
|
|
289
|
+
v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
290
|
+
environmentId: z.ZodString;
|
|
291
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
292
|
+
id: z.ZodString;
|
|
293
|
+
key: z.ZodString;
|
|
294
|
+
value: z.ZodString;
|
|
295
|
+
isSecret: z.ZodBoolean;
|
|
296
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
297
|
+
}, z.core.$strip>>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
298
|
+
NOT_FOUND: {};
|
|
299
|
+
}>, Record<never, never>>;
|
|
300
|
+
};
|
|
301
|
+
create: {
|
|
302
|
+
v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
303
|
+
environmentId: z.ZodString;
|
|
304
|
+
environmentVariables: z.ZodArray<z.ZodObject<{
|
|
305
|
+
key: z.ZodString;
|
|
306
|
+
value: z.ZodString;
|
|
307
|
+
isSecret: z.ZodDefault<z.ZodBoolean>;
|
|
308
|
+
}, z.core.$strip>>;
|
|
309
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
310
|
+
success: z.ZodLiteral<true>;
|
|
311
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
312
|
+
NOT_FOUND: {};
|
|
313
|
+
BAD_REQUEST: {};
|
|
314
|
+
}>, Record<never, never>>;
|
|
315
|
+
};
|
|
316
|
+
update: {
|
|
317
|
+
v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
318
|
+
environmentVariableId: z.ZodString;
|
|
319
|
+
key: z.ZodString;
|
|
320
|
+
value: z.ZodOptional<z.ZodString>;
|
|
321
|
+
isSecret: z.ZodDefault<z.ZodBoolean>;
|
|
322
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
323
|
+
success: z.ZodLiteral<true>;
|
|
324
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
325
|
+
NOT_FOUND: {};
|
|
326
|
+
BAD_REQUEST: {};
|
|
327
|
+
}>, Record<never, never>>;
|
|
328
|
+
};
|
|
329
|
+
delete: {
|
|
330
|
+
v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
331
|
+
environmentVariableId: z.ZodString;
|
|
332
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
333
|
+
success: z.ZodLiteral<true>;
|
|
334
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
335
|
+
NOT_FOUND: {};
|
|
336
|
+
}>, Record<never, never>>;
|
|
337
|
+
};
|
|
338
|
+
};
|
|
227
339
|
projects: {
|
|
228
340
|
update: {
|
|
229
341
|
v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
230
342
|
projectId: z.ZodString;
|
|
343
|
+
name: z.ZodOptional<z.ZodString>;
|
|
231
344
|
sourceRepository: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
232
345
|
}, z.core.$strip>, z.ZodObject<{
|
|
233
346
|
id: z.ZodString;
|
|
@@ -255,6 +368,15 @@ declare const contract: {
|
|
|
255
368
|
id: z.ZodString;
|
|
256
369
|
name: z.ZodString;
|
|
257
370
|
mcpServerUrl: z.ZodString;
|
|
371
|
+
domains: z.ZodArray<z.ZodObject<{
|
|
372
|
+
domain: z.ZodString;
|
|
373
|
+
status: z.ZodEnum<{
|
|
374
|
+
ongoing: "ongoing";
|
|
375
|
+
deployed: "deployed";
|
|
376
|
+
failed: "failed";
|
|
377
|
+
}>;
|
|
378
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
379
|
+
}, z.core.$strip>>;
|
|
258
380
|
latestDeployment: z.ZodNullable<z.ZodObject<{
|
|
259
381
|
id: z.ZodString;
|
|
260
382
|
status: z.ZodEnum<{
|
|
@@ -322,6 +444,15 @@ declare const contract: {
|
|
|
322
444
|
id: z.ZodString;
|
|
323
445
|
name: z.ZodString;
|
|
324
446
|
mcpServerUrl: z.ZodString;
|
|
447
|
+
domains: z.ZodArray<z.ZodObject<{
|
|
448
|
+
domain: z.ZodString;
|
|
449
|
+
status: z.ZodEnum<{
|
|
450
|
+
ongoing: "ongoing";
|
|
451
|
+
deployed: "deployed";
|
|
452
|
+
failed: "failed";
|
|
453
|
+
}>;
|
|
454
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
455
|
+
}, z.core.$strip>>;
|
|
325
456
|
latestDeployment: z.ZodNullable<z.ZodObject<{
|
|
326
457
|
id: z.ZodString;
|
|
327
458
|
status: z.ZodEnum<{
|
|
@@ -360,7 +491,9 @@ declare const contract: {
|
|
|
360
491
|
}>, Record<never, never>>;
|
|
361
492
|
};
|
|
362
493
|
list: {
|
|
363
|
-
v1: _orpc_contract0.
|
|
494
|
+
v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodObject<{
|
|
495
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
496
|
+
}, z.core.$strip>>, z.ZodArray<z.ZodObject<{
|
|
364
497
|
id: z.ZodString;
|
|
365
498
|
name: z.ZodString;
|
|
366
499
|
teamId: z.ZodString;
|
|
@@ -386,6 +519,15 @@ declare const contract: {
|
|
|
386
519
|
id: z.ZodString;
|
|
387
520
|
name: z.ZodString;
|
|
388
521
|
mcpServerUrl: z.ZodString;
|
|
522
|
+
domains: z.ZodArray<z.ZodObject<{
|
|
523
|
+
domain: z.ZodString;
|
|
524
|
+
status: z.ZodEnum<{
|
|
525
|
+
ongoing: "ongoing";
|
|
526
|
+
deployed: "deployed";
|
|
527
|
+
failed: "failed";
|
|
528
|
+
}>;
|
|
529
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
530
|
+
}, z.core.$strip>>;
|
|
389
531
|
latestDeployment: z.ZodNullable<z.ZodObject<{
|
|
390
532
|
id: z.ZodString;
|
|
391
533
|
status: z.ZodEnum<{
|
|
@@ -485,6 +627,97 @@ declare const contract: {
|
|
|
485
627
|
BAD_REQUEST: {};
|
|
486
628
|
}>, Record<never, never>>;
|
|
487
629
|
};
|
|
630
|
+
delete: {
|
|
631
|
+
v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
632
|
+
projectId: z.ZodString;
|
|
633
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
634
|
+
success: z.ZodLiteral<true>;
|
|
635
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
636
|
+
NOT_FOUND: {};
|
|
637
|
+
}>, Record<never, never>>;
|
|
638
|
+
};
|
|
639
|
+
};
|
|
640
|
+
tunnels: {
|
|
641
|
+
getTicket: {
|
|
642
|
+
v1: _orpc_contract0.ContractProcedureBuilderWithOutput<_orpc_contract0.Schema<unknown, unknown>, z.ZodObject<{
|
|
643
|
+
subdomain: z.ZodString;
|
|
644
|
+
ticket: z.ZodString;
|
|
645
|
+
tunnelHost: z.ZodString;
|
|
646
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
647
|
+
};
|
|
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
|
+
};
|
|
488
721
|
};
|
|
489
722
|
};
|
|
490
723
|
type RouterInput = InferContractRouterInputs<typeof contract>;
|
|
@@ -520,5 +753,28 @@ declare const transportSchema: z.ZodEnum<{
|
|
|
520
753
|
streamablehttp: "streamablehttp";
|
|
521
754
|
}>;
|
|
522
755
|
type Transport = z.infer<typeof transportSchema>;
|
|
756
|
+
declare const serverFieldsSchema: z.ZodObject<{
|
|
757
|
+
$schema: z.ZodString;
|
|
758
|
+
name: z.ZodString;
|
|
759
|
+
description: z.ZodString;
|
|
760
|
+
version: z.ZodOptional<z.ZodString>;
|
|
761
|
+
title: z.ZodOptional<z.ZodString>;
|
|
762
|
+
websiteUrl: z.ZodOptional<z.ZodURL>;
|
|
763
|
+
icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
764
|
+
src: z.ZodURL;
|
|
765
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
766
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
767
|
+
}, z.core.$strip>>>;
|
|
768
|
+
remotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
769
|
+
type: z.ZodString;
|
|
770
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
771
|
+
headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
772
|
+
name: z.ZodString;
|
|
773
|
+
description: z.ZodString;
|
|
774
|
+
isRequired: z.ZodOptional<z.ZodBoolean>;
|
|
775
|
+
isSecret: z.ZodOptional<z.ZodBoolean>;
|
|
776
|
+
}, z.core.$strip>>>;
|
|
777
|
+
}, z.core.$strip>>>;
|
|
778
|
+
}, z.core.$strip>;
|
|
523
779
|
//#endregion
|
|
524
|
-
export { ApiContext, RouterInput, RouterOutput, Runtime, Transport, buildSettingsSchema, contract, createEnvironmentContractV1, environmentVariableSchema, environmentVariablesSchema, runtimeSchema, transportSchema };
|
|
780
|
+
export { ApiContext, RouterInput, RouterOutput, Runtime, Transport, buildSettingsSchema, contract, createEnvironmentContractV1, deploymentStatusSchema, environmentVariableSchema, environmentVariablesSchema, runtimeSchema, serverFieldsSchema, transportSchema };
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { oc } from "@orpc/contract";
|
|
2
|
+
import ms from "ms";
|
|
2
3
|
import { z } from "zod";
|
|
3
|
-
|
|
4
4
|
//#region src/schemas.ts
|
|
5
5
|
const RESERVED_KEYS = [
|
|
6
6
|
"_HANDLER",
|
|
@@ -13,7 +13,11 @@ const RESERVED_KEYS = [
|
|
|
13
13
|
"AWS_LAMBDA_FUNCTION_VERSION",
|
|
14
14
|
"AWS_LAMBDA_INITIALIZATION_TYPE",
|
|
15
15
|
"AWS_LAMBDA_LOG_GROUP_NAME",
|
|
16
|
+
"AWS_LAMBDA_LOG_STREAM_NAME",
|
|
16
17
|
"AWS_ACCESS_KEY",
|
|
18
|
+
"AWS_ACCESS_KEY_ID",
|
|
19
|
+
"AWS_SECRET_ACCESS_KEY",
|
|
20
|
+
"AWS_SESSION_TOKEN",
|
|
17
21
|
"AWS_LAMBDA_RUNTIME_API",
|
|
18
22
|
"LAMBDA_TASK_ROOT",
|
|
19
23
|
"LAMBDA_RUNTIME_DIR",
|
|
@@ -30,7 +34,8 @@ const RESERVED_KEYS = [
|
|
|
30
34
|
"BUILD_ARG_BUILD_COMMAND",
|
|
31
35
|
"BUILD_ARG_BUILD_OUTPUT_DIR",
|
|
32
36
|
"BUILD_ARG_START_COMMAND",
|
|
33
|
-
"ALPIC_HOST"
|
|
37
|
+
"ALPIC_HOST",
|
|
38
|
+
"ALPIC_CUSTOM_DOMAINS"
|
|
34
39
|
];
|
|
35
40
|
const environmentVariableSchema = z.object({
|
|
36
41
|
key: z.string().min(2, "Key must be at least 2 characters").regex(/^[a-zA-Z]([a-zA-Z0-9_])+$/, "Key must start with a letter and contain only letters, numbers, and underscores").refine((key) => !RESERVED_KEYS.includes(key), "This key is reserved and cannot be used as an environment variable key"),
|
|
@@ -55,7 +60,29 @@ const transportSchema = z.enum([
|
|
|
55
60
|
"sse",
|
|
56
61
|
"streamablehttp"
|
|
57
62
|
]);
|
|
58
|
-
|
|
63
|
+
const serverFieldsSchema = z.object({
|
|
64
|
+
$schema: z.string(),
|
|
65
|
+
name: z.string(),
|
|
66
|
+
description: z.string(),
|
|
67
|
+
version: z.string().optional(),
|
|
68
|
+
title: z.string().optional(),
|
|
69
|
+
websiteUrl: z.url().optional(),
|
|
70
|
+
icons: z.array(z.object({
|
|
71
|
+
src: z.url(),
|
|
72
|
+
mimeType: z.string().optional(),
|
|
73
|
+
sizes: z.array(z.string()).optional()
|
|
74
|
+
})).optional(),
|
|
75
|
+
remotes: z.array(z.object({
|
|
76
|
+
type: z.string(),
|
|
77
|
+
url: z.url().optional(),
|
|
78
|
+
headers: z.array(z.object({
|
|
79
|
+
name: z.string(),
|
|
80
|
+
description: z.string(),
|
|
81
|
+
isRequired: z.boolean().optional(),
|
|
82
|
+
isSecret: z.boolean().optional()
|
|
83
|
+
})).optional()
|
|
84
|
+
})).optional()
|
|
85
|
+
});
|
|
59
86
|
//#endregion
|
|
60
87
|
//#region src/api.contract.ts
|
|
61
88
|
const deploymentStatusSchema = z.enum([
|
|
@@ -80,8 +107,16 @@ const deploymentSchema = z.object({
|
|
|
80
107
|
authorUsername: z.string().nullable(),
|
|
81
108
|
authorAvatarUrl: z.string().nullable(),
|
|
82
109
|
startedAt: z.coerce.date().nullable(),
|
|
83
|
-
completedAt: z.coerce.date().nullable()
|
|
110
|
+
completedAt: z.coerce.date().nullable(),
|
|
111
|
+
environmentId: z.string(),
|
|
112
|
+
environmentName: z.string(),
|
|
113
|
+
isCurrent: z.boolean(),
|
|
114
|
+
deploymentPageUrl: z.url().nullable()
|
|
84
115
|
});
|
|
116
|
+
const isValidLogTimeInput = (value) => {
|
|
117
|
+
if (ms(value) !== void 0) return true;
|
|
118
|
+
return !Number.isNaN(new Date(value).getTime());
|
|
119
|
+
};
|
|
85
120
|
const createEnvironmentContractV1 = oc.route({
|
|
86
121
|
path: "/v1/environments",
|
|
87
122
|
method: "POST",
|
|
@@ -106,7 +141,7 @@ const createEnvironmentContractV1 = oc.route({
|
|
|
106
141
|
projectId: z.string().describe("The ID of the project the environment belongs to")
|
|
107
142
|
}));
|
|
108
143
|
const getEnvironmentContractV1 = oc.route({
|
|
109
|
-
path: "/v1/environments
|
|
144
|
+
path: "/v1/environments/{environmentId}",
|
|
110
145
|
method: "GET",
|
|
111
146
|
summary: "Get an environment",
|
|
112
147
|
description: "Get an environment by ID",
|
|
@@ -121,10 +156,20 @@ const getEnvironmentContractV1 = oc.route({
|
|
|
121
156
|
createdAt: z.coerce.date(),
|
|
122
157
|
projectId: z.string()
|
|
123
158
|
}));
|
|
159
|
+
const domainSchema = z.object({
|
|
160
|
+
domain: z.string(),
|
|
161
|
+
status: z.enum([
|
|
162
|
+
"ongoing",
|
|
163
|
+
"deployed",
|
|
164
|
+
"failed"
|
|
165
|
+
]),
|
|
166
|
+
createdAt: z.coerce.date()
|
|
167
|
+
});
|
|
124
168
|
const productionEnvironmentSchema = z.object({
|
|
125
169
|
id: z.string(),
|
|
126
170
|
name: z.string(),
|
|
127
171
|
mcpServerUrl: z.string(),
|
|
172
|
+
domains: z.array(domainSchema),
|
|
128
173
|
latestDeployment: latestDeploymentSchema.nullable()
|
|
129
174
|
});
|
|
130
175
|
const environmentSchema = z.object({
|
|
@@ -153,7 +198,7 @@ const projectOutputSchema = z.object({
|
|
|
153
198
|
environments: z.array(environmentSchema)
|
|
154
199
|
});
|
|
155
200
|
const getProjectContractV1 = oc.route({
|
|
156
|
-
path: "/v1/projects
|
|
201
|
+
path: "/v1/projects/{projectId}",
|
|
157
202
|
method: "GET",
|
|
158
203
|
summary: "Get a project",
|
|
159
204
|
description: "Get a project by ID",
|
|
@@ -167,7 +212,7 @@ const listProjectsContractV1 = oc.route({
|
|
|
167
212
|
description: "List all projects for a team",
|
|
168
213
|
tags: ["projects"],
|
|
169
214
|
successDescription: "The list of projects"
|
|
170
|
-
}).output(z.array(projectOutputSchema));
|
|
215
|
+
}).input(z.object({ teamId: z.string().optional() }).optional()).output(z.array(projectOutputSchema));
|
|
171
216
|
const createProjectContractV1 = oc.route({
|
|
172
217
|
path: "/v1/projects",
|
|
173
218
|
method: "POST",
|
|
@@ -180,7 +225,7 @@ const createProjectContractV1 = oc.route({
|
|
|
180
225
|
BAD_REQUEST: {}
|
|
181
226
|
}).input(z.object({
|
|
182
227
|
teamId: z.string().optional(),
|
|
183
|
-
name: z.string().min(1).max(100),
|
|
228
|
+
name: z.string().trim().min(1).max(100),
|
|
184
229
|
sourceRepository: z.string().optional(),
|
|
185
230
|
branchName: z.string().min(1).optional(),
|
|
186
231
|
runtime: runtimeSchema,
|
|
@@ -210,8 +255,69 @@ const createProjectContractV1 = oc.route({
|
|
|
210
255
|
startCommand: z.string().nullable(),
|
|
211
256
|
createdAt: z.coerce.date()
|
|
212
257
|
}));
|
|
213
|
-
const
|
|
258
|
+
const environmentVariableOutputSchema = z.object({
|
|
259
|
+
id: z.string(),
|
|
260
|
+
key: z.string(),
|
|
261
|
+
value: z.string(),
|
|
262
|
+
isSecret: z.boolean(),
|
|
263
|
+
createdAt: z.coerce.date()
|
|
264
|
+
});
|
|
265
|
+
const listEnvironmentVariablesContractV1 = oc.route({
|
|
266
|
+
path: "/v1/environments/{environmentId}/environment-variables",
|
|
267
|
+
method: "GET",
|
|
268
|
+
summary: "List environment variables",
|
|
269
|
+
description: "List all environment variables for an environment",
|
|
270
|
+
tags: ["environments"],
|
|
271
|
+
successDescription: "The list of environment variables"
|
|
272
|
+
}).errors({ NOT_FOUND: {} }).input(z.object({ environmentId: z.string().describe("The ID of the environment") })).output(z.array(environmentVariableOutputSchema));
|
|
273
|
+
const createEnvironmentVariablesContractV1 = oc.route({
|
|
274
|
+
path: "/v1/environments/{environmentId}/environment-variables",
|
|
275
|
+
method: "POST",
|
|
276
|
+
summary: "Add environment variables",
|
|
277
|
+
description: "Add one or more environment variables to an environment",
|
|
278
|
+
tags: ["environments"],
|
|
279
|
+
successDescription: "The environment variables have been added successfully"
|
|
280
|
+
}).errors({
|
|
281
|
+
NOT_FOUND: {},
|
|
282
|
+
BAD_REQUEST: {}
|
|
283
|
+
}).input(z.object({
|
|
284
|
+
environmentId: z.string().describe("The ID of the environment"),
|
|
285
|
+
environmentVariables: environmentVariablesSchema
|
|
286
|
+
})).output(z.object({ success: z.literal(true) }));
|
|
287
|
+
const updateEnvironmentVariableContractV1 = oc.route({
|
|
288
|
+
path: "/v1/environment-variables/{environmentVariableId}",
|
|
289
|
+
method: "PATCH",
|
|
290
|
+
summary: "Update an environment variable",
|
|
291
|
+
description: "Update an environment variable by ID",
|
|
292
|
+
tags: ["environments"],
|
|
293
|
+
successDescription: "The environment variable has been updated successfully"
|
|
294
|
+
}).errors({
|
|
295
|
+
NOT_FOUND: {},
|
|
296
|
+
BAD_REQUEST: {}
|
|
297
|
+
}).input(z.object({
|
|
298
|
+
environmentVariableId: z.string().describe("The ID of the environment variable"),
|
|
299
|
+
key: environmentVariableSchema.shape.key,
|
|
300
|
+
value: environmentVariableSchema.shape.value.optional(),
|
|
301
|
+
isSecret: environmentVariableSchema.shape.isSecret
|
|
302
|
+
})).output(z.object({ success: z.literal(true) }));
|
|
303
|
+
const deleteEnvironmentVariableContractV1 = oc.route({
|
|
304
|
+
path: "/v1/environment-variables/{environmentVariableId}",
|
|
305
|
+
method: "DELETE",
|
|
306
|
+
summary: "Delete an environment variable",
|
|
307
|
+
description: "Delete an environment variable by ID",
|
|
308
|
+
tags: ["environments"],
|
|
309
|
+
successDescription: "The environment variable has been deleted successfully"
|
|
310
|
+
}).errors({ NOT_FOUND: {} }).input(z.object({ environmentVariableId: z.string().describe("The ID of the environment variable") })).output(z.object({ success: z.literal(true) }));
|
|
311
|
+
const deleteProjectContractV1 = oc.route({
|
|
214
312
|
path: "/v1/projects/:projectId",
|
|
313
|
+
method: "DELETE",
|
|
314
|
+
summary: "Delete a project",
|
|
315
|
+
description: "Delete a project and all its environments",
|
|
316
|
+
tags: ["projects"],
|
|
317
|
+
successDescription: "The project has been deleted successfully"
|
|
318
|
+
}).errors({ NOT_FOUND: {} }).input(z.object({ projectId: z.string().describe("The ID of the project") })).output(z.object({ success: z.literal(true) }));
|
|
319
|
+
const updateProjectContractV1 = oc.route({
|
|
320
|
+
path: "/v1/projects/{projectId}",
|
|
215
321
|
method: "PATCH",
|
|
216
322
|
summary: "Update a project",
|
|
217
323
|
description: "Update project settings",
|
|
@@ -222,10 +328,11 @@ const updateProjectContractV1 = oc.route({
|
|
|
222
328
|
BAD_REQUEST: {}
|
|
223
329
|
}).input(z.object({
|
|
224
330
|
projectId: z.string().describe("The ID of the project"),
|
|
331
|
+
name: z.string().min(1).max(100).optional().describe("The new name for the project"),
|
|
225
332
|
sourceRepository: z.string().nullable().optional().describe("The source repository to connect to the project")
|
|
226
333
|
})).output(projectOutputSchema);
|
|
227
334
|
const deployEnvironmentContractV1 = oc.route({
|
|
228
|
-
path: "/v1/environments
|
|
335
|
+
path: "/v1/environments/{environmentId}/deploy",
|
|
229
336
|
method: "POST",
|
|
230
337
|
summary: "Deploy an environment",
|
|
231
338
|
description: "Deploy an environment",
|
|
@@ -246,31 +353,73 @@ const uploadDeploymentArtifactContractV1 = oc.route({
|
|
|
246
353
|
tags: ["deployments"],
|
|
247
354
|
successDescription: "The presigned upload URL has been generated successfully"
|
|
248
355
|
}).input(z.object({ teamId: z.string().optional() }).optional()).output(z.object({
|
|
249
|
-
uploadUrl: z.
|
|
356
|
+
uploadUrl: z.url().describe("Presigned S3 URL to upload the source archive with HTTP PUT"),
|
|
250
357
|
token: z.string().describe("Token to identify the source archive"),
|
|
251
358
|
expiresAt: z.coerce.date().describe("Expiration date of the presigned URL")
|
|
252
359
|
}));
|
|
253
|
-
const
|
|
254
|
-
path: "/v1/projects
|
|
360
|
+
const listDeploymentsContractV1 = oc.route({
|
|
361
|
+
path: "/v1/projects/{projectId}/deployments",
|
|
255
362
|
method: "GET",
|
|
256
363
|
summary: "List project deployments",
|
|
257
364
|
description: "List all deployments for a project",
|
|
258
365
|
tags: ["deployments"],
|
|
259
366
|
successDescription: "The list of deployments"
|
|
260
|
-
}).errors({ NOT_FOUND: {} }).input(z.object({
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
367
|
+
}).errors({ NOT_FOUND: {} }).input(z.object({
|
|
368
|
+
projectId: z.string().describe("The ID of the project"),
|
|
369
|
+
status: z.array(deploymentStatusSchema).optional().describe("Filter by one or more statuses"),
|
|
370
|
+
environmentId: z.string().optional().describe("Filter by environment ID")
|
|
371
|
+
})).output(z.array(deploymentSchema));
|
|
264
372
|
const getDeploymentContractV1 = oc.route({
|
|
265
|
-
path: "/v1/deployments
|
|
373
|
+
path: "/v1/deployments/{deploymentId}",
|
|
266
374
|
method: "GET",
|
|
267
375
|
summary: "Get a deployment",
|
|
268
376
|
description: "Get a deployment by ID",
|
|
269
377
|
tags: ["deployments"],
|
|
270
378
|
successDescription: "The deployment details"
|
|
271
379
|
}).errors({ NOT_FOUND: {} }).input(z.object({ deploymentId: z.string().describe("The ID of the deployment") })).output(deploymentSchema);
|
|
380
|
+
const getLogsContractV1 = oc.route({
|
|
381
|
+
path: "/v1/environments/{environmentId}/logs",
|
|
382
|
+
method: "GET",
|
|
383
|
+
summary: "Get logs",
|
|
384
|
+
description: "Get logs for an environment",
|
|
385
|
+
tags: ["environments"],
|
|
386
|
+
successDescription: "The logs"
|
|
387
|
+
}).errors({
|
|
388
|
+
NOT_FOUND: {},
|
|
389
|
+
BAD_REQUEST: {}
|
|
390
|
+
}).input(z.object({
|
|
391
|
+
environmentId: z.string().describe("The ID of the environment"),
|
|
392
|
+
since: z.string().refine(isValidLogTimeInput, { message: "Invalid time. Use relative (1h, 30m, 2d) or ISO 8601 format." }).optional().describe("Start time — ISO 8601 (2024-01-01T00:00:00Z) or relative (1h, 30m, 2d)"),
|
|
393
|
+
until: z.string().refine(isValidLogTimeInput, { message: "Invalid time. Use relative (1h, 30m, 2d) or ISO 8601 format." }).optional().describe("End time — ISO 8601 or relative"),
|
|
394
|
+
limit: z.coerce.number().int().min(1).max(1e3).default(1e3).describe("Maximum number of log entries to return."),
|
|
395
|
+
level: z.array(z.enum([
|
|
396
|
+
"INFO",
|
|
397
|
+
"ERROR",
|
|
398
|
+
"WARNING",
|
|
399
|
+
"DEBUG"
|
|
400
|
+
])).optional().describe("Filter by log level"),
|
|
401
|
+
search: z.string().optional().describe("Filter pattern to search for in log content"),
|
|
402
|
+
nextToken: z.string().optional().describe("Pagination token from a previous response")
|
|
403
|
+
})).output(z.object({
|
|
404
|
+
logs: z.array(z.object({
|
|
405
|
+
timestamp: z.coerce.date(),
|
|
406
|
+
type: z.enum([
|
|
407
|
+
"START",
|
|
408
|
+
"END",
|
|
409
|
+
"INFO",
|
|
410
|
+
"ERROR",
|
|
411
|
+
"WARNING",
|
|
412
|
+
"DEBUG"
|
|
413
|
+
]),
|
|
414
|
+
requestId: z.string(),
|
|
415
|
+
content: z.string().optional(),
|
|
416
|
+
method: z.string().optional(),
|
|
417
|
+
durationInMs: z.number().optional()
|
|
418
|
+
})),
|
|
419
|
+
nextToken: z.string().nullable()
|
|
420
|
+
}));
|
|
272
421
|
const getDeploymentLogsContractV1 = oc.route({
|
|
273
|
-
path: "/v1/deployments
|
|
422
|
+
path: "/v1/deployments/{deploymentId}/logs",
|
|
274
423
|
method: "GET",
|
|
275
424
|
summary: "Get deployment logs",
|
|
276
425
|
description: "Get the logs for a deployment",
|
|
@@ -297,7 +446,7 @@ const analyticsTimeSeriesSchema = z.object({
|
|
|
297
446
|
task_count: z.array(analyticsDataPointSchema)
|
|
298
447
|
});
|
|
299
448
|
const getProjectAnalyticsContractV1 = oc.route({
|
|
300
|
-
path: "/v1/analytics
|
|
449
|
+
path: "/v1/analytics/{projectId}",
|
|
301
450
|
method: "GET",
|
|
302
451
|
summary: "Get project analytics",
|
|
303
452
|
description: "Get analytics data for a project over a time range",
|
|
@@ -332,14 +481,57 @@ const listTeamsContractV1 = oc.route({
|
|
|
332
481
|
id: z.string(),
|
|
333
482
|
name: z.string(),
|
|
334
483
|
createdAt: z.coerce.date(),
|
|
335
|
-
hasStripeAccount: z.boolean()
|
|
336
|
-
hasActiveSubscription: z.boolean()
|
|
484
|
+
hasStripeAccount: z.boolean()
|
|
337
485
|
})));
|
|
486
|
+
const getTunnelTicketContractV1 = oc.route({
|
|
487
|
+
path: "/v1/tunnels/ticket",
|
|
488
|
+
method: "GET",
|
|
489
|
+
summary: "Get a tunnel ticket",
|
|
490
|
+
description: "Get a signed ticket for establishing a tunnel connection. Requires user authentication (API keys are not supported).",
|
|
491
|
+
tags: ["tunnels"],
|
|
492
|
+
successDescription: "The tunnel ticket"
|
|
493
|
+
}).output(z.object({
|
|
494
|
+
subdomain: z.string().describe("The subdomain assigned to the user"),
|
|
495
|
+
ticket: z.string().describe("The signed tunnel ticket"),
|
|
496
|
+
tunnelHost: z.string().describe("The tunnel host to connect to")
|
|
497
|
+
}));
|
|
498
|
+
const publishServerContractV1 = oc.route({
|
|
499
|
+
path: "/v1/distribution/publish",
|
|
500
|
+
method: "POST",
|
|
501
|
+
summary: "Publish a server to the MCP registry",
|
|
502
|
+
tags: ["distribution"],
|
|
503
|
+
successDescription: "The server has been published successfully"
|
|
504
|
+
}).errors({
|
|
505
|
+
NOT_FOUND: {},
|
|
506
|
+
BAD_REQUEST: {}
|
|
507
|
+
}).input(z.object({
|
|
508
|
+
projectId: z.string(),
|
|
509
|
+
domain: z.string(),
|
|
510
|
+
title: z.string().min(1).max(100),
|
|
511
|
+
description: z.string().min(1).max(100),
|
|
512
|
+
websiteUrl: z.url().max(255).optional(),
|
|
513
|
+
iconSrc: z.url().max(255).optional(),
|
|
514
|
+
dryRun: z.boolean().optional()
|
|
515
|
+
})).output(z.object({ serverFields: serverFieldsSchema }));
|
|
516
|
+
const getServerInfoContractV1 = oc.route({
|
|
517
|
+
path: "/v1/distribution/get",
|
|
518
|
+
method: "GET",
|
|
519
|
+
summary: "Get server info",
|
|
520
|
+
description: "Get info about a server",
|
|
521
|
+
tags: ["distribution"],
|
|
522
|
+
successDescription: "The server info"
|
|
523
|
+
}).errors({
|
|
524
|
+
NOT_FOUND: {},
|
|
525
|
+
BAD_REQUEST: {}
|
|
526
|
+
}).input(z.object({
|
|
527
|
+
projectId: z.string(),
|
|
528
|
+
domain: z.string()
|
|
529
|
+
})).output(z.object({ serverFields: serverFieldsSchema }));
|
|
338
530
|
const contract = {
|
|
339
531
|
teams: { list: { v1: listTeamsContractV1 } },
|
|
340
532
|
analytics: { get: { v1: getProjectAnalyticsContractV1 } },
|
|
341
533
|
deployments: {
|
|
342
|
-
list: { v1:
|
|
534
|
+
list: { v1: listDeploymentsContractV1 },
|
|
343
535
|
get: { v1: getDeploymentContractV1 },
|
|
344
536
|
uploadArtifact: { v1: uploadDeploymentArtifactContractV1 },
|
|
345
537
|
getLogs: { v1: getDeploymentLogsContractV1 }
|
|
@@ -347,15 +539,27 @@ const contract = {
|
|
|
347
539
|
environments: {
|
|
348
540
|
create: { v1: createEnvironmentContractV1 },
|
|
349
541
|
get: { v1: getEnvironmentContractV1 },
|
|
350
|
-
deploy: { v1: deployEnvironmentContractV1 }
|
|
542
|
+
deploy: { v1: deployEnvironmentContractV1 },
|
|
543
|
+
getLogs: { v1: getLogsContractV1 }
|
|
544
|
+
},
|
|
545
|
+
environmentVariables: {
|
|
546
|
+
list: { v1: listEnvironmentVariablesContractV1 },
|
|
547
|
+
create: { v1: createEnvironmentVariablesContractV1 },
|
|
548
|
+
update: { v1: updateEnvironmentVariableContractV1 },
|
|
549
|
+
delete: { v1: deleteEnvironmentVariableContractV1 }
|
|
351
550
|
},
|
|
352
551
|
projects: {
|
|
353
552
|
update: { v1: updateProjectContractV1 },
|
|
354
553
|
get: { v1: getProjectContractV1 },
|
|
355
554
|
list: { v1: listProjectsContractV1 },
|
|
356
|
-
create: { v1: createProjectContractV1 }
|
|
555
|
+
create: { v1: createProjectContractV1 },
|
|
556
|
+
delete: { v1: deleteProjectContractV1 }
|
|
557
|
+
},
|
|
558
|
+
tunnels: { getTicket: { v1: getTunnelTicketContractV1 } },
|
|
559
|
+
distribution: {
|
|
560
|
+
publish: { v1: publishServerContractV1 },
|
|
561
|
+
get: { v1: getServerInfoContractV1 }
|
|
357
562
|
}
|
|
358
563
|
};
|
|
359
|
-
|
|
360
564
|
//#endregion
|
|
361
|
-
export { buildSettingsSchema, contract, createEnvironmentContractV1, environmentVariableSchema, environmentVariablesSchema, runtimeSchema, transportSchema };
|
|
565
|
+
export { buildSettingsSchema, contract, createEnvironmentContractV1, deploymentStatusSchema, environmentVariableSchema, environmentVariablesSchema, 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.9dec05f",
|
|
4
4
|
"description": "Contract for the Alpic API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
@@ -17,23 +17,25 @@
|
|
|
17
17
|
"author": "Alpic",
|
|
18
18
|
"license": "ISC",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@orpc/contract": "^1.13.
|
|
20
|
+
"@orpc/contract": "^1.13.8",
|
|
21
|
+
"ms": "^2.1.3",
|
|
21
22
|
"zod": "^4.3.6"
|
|
22
23
|
},
|
|
23
24
|
"devDependencies": {
|
|
24
25
|
"@total-typescript/tsconfig": "^1.0.4",
|
|
25
|
-
"
|
|
26
|
+
"@types/ms": "^2.1.0",
|
|
26
27
|
"shx": "^0.4.0",
|
|
27
|
-
"tsdown": "^0.
|
|
28
|
+
"tsdown": "^0.21.4",
|
|
28
29
|
"typescript": "^5.9.3",
|
|
29
|
-
"vitest": "^4.0
|
|
30
|
+
"vitest": "^4.1.0"
|
|
30
31
|
},
|
|
31
32
|
"scripts": {
|
|
32
33
|
"build": "shx rm -rf dist && tsdown",
|
|
33
|
-
"format": "biome check --write --error-on-warnings",
|
|
34
|
+
"format": "biome check --write --error-on-warnings .",
|
|
34
35
|
"test": "pnpm run test:unit && pnpm run test:type && pnpm run test:format",
|
|
35
36
|
"test:unit": "vitest run",
|
|
36
|
-
"test:format": "
|
|
37
|
-
"test:type": "tsc --noEmit"
|
|
37
|
+
"test:format": "biome check --error-on-warnings .",
|
|
38
|
+
"test:type": "tsc --noEmit",
|
|
39
|
+
"publish:npm": "pnpm publish --tag \"${NPM_TAG}\" --access public --no-git-checks"
|
|
38
40
|
}
|
|
39
41
|
}
|