@alpic-ai/api 1.163.0 → 1.164.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -30,9 +30,10 @@ declare const createEnvironmentContractV1: import("@orpc/contract").ContractProc
30
30
  urls: z.ZodArray<z.ZodURL>;
31
31
  createdAt: z.ZodCoercedDate<unknown>;
32
32
  projectId: z.ZodString;
33
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
34
- NOT_FOUND: {};
33
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
35
34
  BAD_REQUEST: {};
35
+ }>, {
36
+ NOT_FOUND: {};
36
37
  }>, Record<never, never>>;
37
38
  declare const contract: {
38
39
  teams: {
@@ -42,7 +43,9 @@ declare const contract: {
42
43
  name: z.ZodString;
43
44
  createdAt: z.ZodCoercedDate<unknown>;
44
45
  hasStripeAccount: z.ZodBoolean;
45
- }, z.core.$strip>>, Record<never, never>, Record<never, never>>;
46
+ }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
47
+ BAD_REQUEST: {};
48
+ }>, Record<never, never>>;
46
49
  };
47
50
  };
48
51
  analytics: {
@@ -90,9 +93,10 @@ declare const contract: {
90
93
  categories: z.ZodRecord<z.ZodString, z.ZodUnknown>;
91
94
  }, z.core.$strip>>;
92
95
  }, z.core.$strip>;
93
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
94
- NOT_FOUND: {};
96
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
95
97
  BAD_REQUEST: {};
98
+ }>, {
99
+ NOT_FOUND: {};
96
100
  }>, Record<never, never>>;
97
101
  };
98
102
  };
@@ -126,7 +130,9 @@ declare const contract: {
126
130
  environmentName: z.ZodString;
127
131
  isCurrent: z.ZodBoolean;
128
132
  deploymentPageUrl: z.ZodNullable<z.ZodURL>;
129
- }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
133
+ }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
134
+ BAD_REQUEST: {};
135
+ }>, {
130
136
  NOT_FOUND: {};
131
137
  }>, Record<never, never>>;
132
138
  };
@@ -152,7 +158,9 @@ declare const contract: {
152
158
  environmentName: z.ZodString;
153
159
  isCurrent: z.ZodBoolean;
154
160
  deploymentPageUrl: z.ZodNullable<z.ZodURL>;
155
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
161
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
162
+ BAD_REQUEST: {};
163
+ }>, {
156
164
  NOT_FOUND: {};
157
165
  }>, Record<never, never>>;
158
166
  };
@@ -163,9 +171,10 @@ declare const contract: {
163
171
  uploadUrl: z.ZodURL;
164
172
  token: z.ZodString;
165
173
  expiresAt: z.ZodCoercedDate<unknown>;
166
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
167
- NOT_FOUND: {};
174
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
168
175
  BAD_REQUEST: {};
176
+ }>, {
177
+ NOT_FOUND: {};
169
178
  }>, Record<never, never>>;
170
179
  };
171
180
  getLogs: {
@@ -177,7 +186,9 @@ declare const contract: {
177
186
  content: z.ZodOptional<z.ZodString>;
178
187
  }, z.core.$strip>>;
179
188
  hasMoreLogs: z.ZodBoolean;
180
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
189
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
190
+ BAD_REQUEST: {};
191
+ }>, {
181
192
  NOT_FOUND: {};
182
193
  }>, Record<never, never>>;
183
194
  };
@@ -200,9 +211,10 @@ declare const contract: {
200
211
  urls: z.ZodArray<z.ZodURL>;
201
212
  createdAt: z.ZodCoercedDate<unknown>;
202
213
  projectId: z.ZodString;
203
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
204
- NOT_FOUND: {};
214
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
205
215
  BAD_REQUEST: {};
216
+ }>, {
217
+ NOT_FOUND: {};
206
218
  }>, Record<never, never>>;
207
219
  };
208
220
  get: {
@@ -216,7 +228,9 @@ declare const contract: {
216
228
  domains: z.ZodArray<z.ZodCustomStringFormat<"hostname">>;
217
229
  createdAt: z.ZodCoercedDate<unknown>;
218
230
  projectId: z.ZodString;
219
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
231
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
232
+ BAD_REQUEST: {};
233
+ }>, {
220
234
  NOT_FOUND: {};
221
235
  }>, Record<never, never>>;
222
236
  };
@@ -254,9 +268,10 @@ declare const contract: {
254
268
  environmentName: z.ZodString;
255
269
  isCurrent: z.ZodBoolean;
256
270
  deploymentPageUrl: z.ZodNullable<z.ZodURL>;
257
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
258
- NOT_FOUND: {};
271
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
259
272
  BAD_REQUEST: {};
273
+ }>, {
274
+ NOT_FOUND: {};
260
275
  CONFLICT: {};
261
276
  }>, Record<never, never>>;
262
277
  };
@@ -291,9 +306,10 @@ declare const contract: {
291
306
  durationInMs: z.ZodOptional<z.ZodNumber>;
292
307
  }, z.core.$strip>>;
293
308
  nextToken: z.ZodNullable<z.ZodString>;
294
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
295
- NOT_FOUND: {};
309
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
296
310
  BAD_REQUEST: {};
311
+ }>, {
312
+ NOT_FOUND: {};
297
313
  }>, Record<never, never>>;
298
314
  };
299
315
  getLatestLogs: {
@@ -323,9 +339,10 @@ declare const contract: {
323
339
  method: z.ZodOptional<z.ZodString>;
324
340
  durationInMs: z.ZodOptional<z.ZodNumber>;
325
341
  }, z.core.$strip>>;
326
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
327
- NOT_FOUND: {};
342
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
328
343
  BAD_REQUEST: {};
344
+ }>, {
345
+ NOT_FOUND: {};
329
346
  }>, Record<never, never>>;
330
347
  };
331
348
  };
@@ -339,7 +356,9 @@ declare const contract: {
339
356
  value: z.ZodString;
340
357
  isSecret: z.ZodBoolean;
341
358
  createdAt: z.ZodCoercedDate<unknown>;
342
- }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
359
+ }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
360
+ BAD_REQUEST: {};
361
+ }>, {
343
362
  NOT_FOUND: {};
344
363
  }>, Record<never, never>>;
345
364
  };
@@ -353,9 +372,10 @@ declare const contract: {
353
372
  }, z.core.$strip>>;
354
373
  }, z.core.$strip>, z.ZodObject<{
355
374
  success: z.ZodLiteral<true>;
356
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
357
- NOT_FOUND: {};
375
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
358
376
  BAD_REQUEST: {};
377
+ }>, {
378
+ NOT_FOUND: {};
359
379
  }>, Record<never, never>>;
360
380
  };
361
381
  update: {
@@ -366,9 +386,10 @@ declare const contract: {
366
386
  isSecret: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
367
387
  }, z.core.$strip>, z.ZodObject<{
368
388
  success: z.ZodLiteral<true>;
369
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
370
- NOT_FOUND: {};
389
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
371
390
  BAD_REQUEST: {};
391
+ }>, {
392
+ NOT_FOUND: {};
372
393
  }>, Record<never, never>>;
373
394
  };
374
395
  delete: {
@@ -376,9 +397,10 @@ declare const contract: {
376
397
  environmentVariableId: z.ZodString;
377
398
  }, z.core.$strip>, z.ZodObject<{
378
399
  success: z.ZodLiteral<true>;
379
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
380
- NOT_FOUND: {};
400
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
381
401
  BAD_REQUEST: {};
402
+ }>, {
403
+ NOT_FOUND: {};
382
404
  }>, Record<never, never>>;
383
405
  };
384
406
  };
@@ -456,9 +478,10 @@ declare const contract: {
456
478
  completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
457
479
  }, z.core.$strip>>;
458
480
  }, z.core.$strip>>;
459
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
460
- NOT_FOUND: {};
481
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
461
482
  BAD_REQUEST: {};
483
+ }>, {
484
+ NOT_FOUND: {};
462
485
  FORBIDDEN: {};
463
486
  }>, Record<never, never>>;
464
487
  };
@@ -533,7 +556,9 @@ declare const contract: {
533
556
  completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
534
557
  }, z.core.$strip>>;
535
558
  }, z.core.$strip>>;
536
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
559
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
560
+ BAD_REQUEST: {};
561
+ }>, {
537
562
  NOT_FOUND: {};
538
563
  }>, Record<never, never>>;
539
564
  };
@@ -608,9 +633,10 @@ declare const contract: {
608
633
  completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
609
634
  }, z.core.$strip>>;
610
635
  }, z.core.$strip>>;
611
- }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
612
- NOT_FOUND: {};
636
+ }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
613
637
  BAD_REQUEST: {};
638
+ }>, {
639
+ NOT_FOUND: {};
614
640
  }>, Record<never, never>>;
615
641
  };
616
642
  create: {
@@ -672,9 +698,10 @@ declare const contract: {
672
698
  installCommand: z.ZodNullable<z.ZodString>;
673
699
  startCommand: z.ZodNullable<z.ZodString>;
674
700
  createdAt: z.ZodCoercedDate<unknown>;
675
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
676
- NOT_FOUND: {};
701
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
677
702
  BAD_REQUEST: {};
703
+ }>, {
704
+ NOT_FOUND: {};
678
705
  FORBIDDEN: {};
679
706
  }>, Record<never, never>>;
680
707
  };
@@ -683,7 +710,9 @@ declare const contract: {
683
710
  projectId: z.ZodString;
684
711
  }, z.core.$strip>, z.ZodObject<{
685
712
  success: z.ZodLiteral<true>;
686
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
713
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
714
+ BAD_REQUEST: {};
715
+ }>, {
687
716
  NOT_FOUND: {};
688
717
  }>, Record<never, never>>;
689
718
  };
@@ -708,7 +737,9 @@ declare const contract: {
708
737
  prompt: z.ZodString;
709
738
  }, z.core.$strip>>;
710
739
  }, z.core.$strip>>;
711
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
740
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
741
+ BAD_REQUEST: {};
742
+ }>, {
712
743
  NOT_FOUND: {};
713
744
  }>, Record<never, never>>;
714
745
  };
@@ -744,9 +775,10 @@ declare const contract: {
744
775
  prompt: z.ZodString;
745
776
  }, z.core.$strip>>;
746
777
  }, z.core.$strip>>;
747
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
748
- NOT_FOUND: {};
778
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
749
779
  BAD_REQUEST: {};
780
+ }>, {
781
+ NOT_FOUND: {};
750
782
  }>, Record<never, never>>;
751
783
  };
752
784
  };
@@ -756,7 +788,9 @@ declare const contract: {
756
788
  subdomain: z.ZodString;
757
789
  ticket: z.ZodString;
758
790
  tunnelHost: z.ZodString;
759
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
791
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
792
+ BAD_REQUEST: {};
793
+ }>, {
760
794
  FORBIDDEN: {};
761
795
  }>, Record<never, never>>;
762
796
  };
@@ -795,9 +829,10 @@ declare const contract: {
795
829
  }, z.core.$strip>>>;
796
830
  }, z.core.$strip>>>;
797
831
  }, z.core.$strip>;
798
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
799
- NOT_FOUND: {};
832
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
800
833
  BAD_REQUEST: {};
834
+ }>, {
835
+ NOT_FOUND: {};
801
836
  }>, Record<never, never>>;
802
837
  };
803
838
  get: {
@@ -828,9 +863,10 @@ declare const contract: {
828
863
  }, z.core.$strip>>>;
829
864
  }, z.core.$strip>>>;
830
865
  }, z.core.$strip>;
831
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
832
- NOT_FOUND: {};
866
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
833
867
  BAD_REQUEST: {};
868
+ }>, {
869
+ NOT_FOUND: {};
834
870
  }>, Record<never, never>>;
835
871
  };
836
872
  };
@@ -849,9 +885,10 @@ declare const contract: {
849
885
  }>>>;
850
886
  }, z.core.$strip>, z.ZodObject<{
851
887
  id: z.ZodString;
852
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
853
- NOT_FOUND: {};
888
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
854
889
  BAD_REQUEST: {};
890
+ }>, {
891
+ NOT_FOUND: {};
855
892
  DNS_RESOLUTION_FAILED: {
856
893
  status: number;
857
894
  };
@@ -942,7 +979,9 @@ declare const contract: {
942
979
  }, z.core.$strip>>;
943
980
  }, z.core.$strip>;
944
981
  }, z.core.$strip>>;
945
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
982
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
983
+ BAD_REQUEST: {};
984
+ }>, {
946
985
  NOT_FOUND: {};
947
986
  }>, Record<never, never>>;
948
987
  };
@@ -979,7 +1018,9 @@ declare const contractForDocs: {
979
1018
  environmentName: z.ZodString;
980
1019
  isCurrent: z.ZodBoolean;
981
1020
  deploymentPageUrl: z.ZodNullable<z.ZodURL>;
982
- }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1021
+ }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1022
+ BAD_REQUEST: {};
1023
+ }>, {
983
1024
  NOT_FOUND: {};
984
1025
  }>, Record<never, never>>;
985
1026
  };
@@ -1005,7 +1046,9 @@ declare const contractForDocs: {
1005
1046
  environmentName: z.ZodString;
1006
1047
  isCurrent: z.ZodBoolean;
1007
1048
  deploymentPageUrl: z.ZodNullable<z.ZodURL>;
1008
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1049
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1050
+ BAD_REQUEST: {};
1051
+ }>, {
1009
1052
  NOT_FOUND: {};
1010
1053
  }>, Record<never, never>>;
1011
1054
  };
@@ -1018,7 +1061,9 @@ declare const contractForDocs: {
1018
1061
  content: z.ZodOptional<z.ZodString>;
1019
1062
  }, z.core.$strip>>;
1020
1063
  hasMoreLogs: z.ZodBoolean;
1021
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1064
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1065
+ BAD_REQUEST: {};
1066
+ }>, {
1022
1067
  NOT_FOUND: {};
1023
1068
  }>, Record<never, never>>;
1024
1069
  };
@@ -1030,7 +1075,9 @@ declare const contractForDocs: {
1030
1075
  name: z.ZodString;
1031
1076
  createdAt: z.ZodCoercedDate<unknown>;
1032
1077
  hasStripeAccount: z.ZodBoolean;
1033
- }, z.core.$strip>>, Record<never, never>, Record<never, never>>;
1078
+ }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1079
+ BAD_REQUEST: {};
1080
+ }>, Record<never, never>>;
1034
1081
  };
1035
1082
  };
1036
1083
  analytics: {
@@ -1078,9 +1125,10 @@ declare const contractForDocs: {
1078
1125
  categories: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1079
1126
  }, z.core.$strip>>;
1080
1127
  }, z.core.$strip>;
1081
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1082
- NOT_FOUND: {};
1128
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1083
1129
  BAD_REQUEST: {};
1130
+ }>, {
1131
+ NOT_FOUND: {};
1084
1132
  }>, Record<never, never>>;
1085
1133
  };
1086
1134
  };
@@ -1102,9 +1150,10 @@ declare const contractForDocs: {
1102
1150
  urls: z.ZodArray<z.ZodURL>;
1103
1151
  createdAt: z.ZodCoercedDate<unknown>;
1104
1152
  projectId: z.ZodString;
1105
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1106
- NOT_FOUND: {};
1153
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1107
1154
  BAD_REQUEST: {};
1155
+ }>, {
1156
+ NOT_FOUND: {};
1108
1157
  }>, Record<never, never>>;
1109
1158
  };
1110
1159
  get: {
@@ -1118,7 +1167,9 @@ declare const contractForDocs: {
1118
1167
  domains: z.ZodArray<z.ZodCustomStringFormat<"hostname">>;
1119
1168
  createdAt: z.ZodCoercedDate<unknown>;
1120
1169
  projectId: z.ZodString;
1121
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1170
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1171
+ BAD_REQUEST: {};
1172
+ }>, {
1122
1173
  NOT_FOUND: {};
1123
1174
  }>, Record<never, never>>;
1124
1175
  };
@@ -1156,9 +1207,10 @@ declare const contractForDocs: {
1156
1207
  environmentName: z.ZodString;
1157
1208
  isCurrent: z.ZodBoolean;
1158
1209
  deploymentPageUrl: z.ZodNullable<z.ZodURL>;
1159
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1160
- NOT_FOUND: {};
1210
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1161
1211
  BAD_REQUEST: {};
1212
+ }>, {
1213
+ NOT_FOUND: {};
1162
1214
  CONFLICT: {};
1163
1215
  }>, Record<never, never>>;
1164
1216
  };
@@ -1193,9 +1245,10 @@ declare const contractForDocs: {
1193
1245
  durationInMs: z.ZodOptional<z.ZodNumber>;
1194
1246
  }, z.core.$strip>>;
1195
1247
  nextToken: z.ZodNullable<z.ZodString>;
1196
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1197
- NOT_FOUND: {};
1248
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1198
1249
  BAD_REQUEST: {};
1250
+ }>, {
1251
+ NOT_FOUND: {};
1199
1252
  }>, Record<never, never>>;
1200
1253
  };
1201
1254
  getLatestLogs: {
@@ -1225,9 +1278,10 @@ declare const contractForDocs: {
1225
1278
  method: z.ZodOptional<z.ZodString>;
1226
1279
  durationInMs: z.ZodOptional<z.ZodNumber>;
1227
1280
  }, z.core.$strip>>;
1228
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1229
- NOT_FOUND: {};
1281
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1230
1282
  BAD_REQUEST: {};
1283
+ }>, {
1284
+ NOT_FOUND: {};
1231
1285
  }>, Record<never, never>>;
1232
1286
  };
1233
1287
  };
@@ -1241,7 +1295,9 @@ declare const contractForDocs: {
1241
1295
  value: z.ZodString;
1242
1296
  isSecret: z.ZodBoolean;
1243
1297
  createdAt: z.ZodCoercedDate<unknown>;
1244
- }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1298
+ }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1299
+ BAD_REQUEST: {};
1300
+ }>, {
1245
1301
  NOT_FOUND: {};
1246
1302
  }>, Record<never, never>>;
1247
1303
  };
@@ -1255,9 +1311,10 @@ declare const contractForDocs: {
1255
1311
  }, z.core.$strip>>;
1256
1312
  }, z.core.$strip>, z.ZodObject<{
1257
1313
  success: z.ZodLiteral<true>;
1258
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1259
- NOT_FOUND: {};
1314
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1260
1315
  BAD_REQUEST: {};
1316
+ }>, {
1317
+ NOT_FOUND: {};
1261
1318
  }>, Record<never, never>>;
1262
1319
  };
1263
1320
  update: {
@@ -1268,9 +1325,10 @@ declare const contractForDocs: {
1268
1325
  isSecret: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1269
1326
  }, z.core.$strip>, z.ZodObject<{
1270
1327
  success: z.ZodLiteral<true>;
1271
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1272
- NOT_FOUND: {};
1328
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1273
1329
  BAD_REQUEST: {};
1330
+ }>, {
1331
+ NOT_FOUND: {};
1274
1332
  }>, Record<never, never>>;
1275
1333
  };
1276
1334
  delete: {
@@ -1278,9 +1336,10 @@ declare const contractForDocs: {
1278
1336
  environmentVariableId: z.ZodString;
1279
1337
  }, z.core.$strip>, z.ZodObject<{
1280
1338
  success: z.ZodLiteral<true>;
1281
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1282
- NOT_FOUND: {};
1339
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1283
1340
  BAD_REQUEST: {};
1341
+ }>, {
1342
+ NOT_FOUND: {};
1284
1343
  }>, Record<never, never>>;
1285
1344
  };
1286
1345
  };
@@ -1358,9 +1417,10 @@ declare const contractForDocs: {
1358
1417
  completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1359
1418
  }, z.core.$strip>>;
1360
1419
  }, z.core.$strip>>;
1361
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1362
- NOT_FOUND: {};
1420
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1363
1421
  BAD_REQUEST: {};
1422
+ }>, {
1423
+ NOT_FOUND: {};
1364
1424
  FORBIDDEN: {};
1365
1425
  }>, Record<never, never>>;
1366
1426
  };
@@ -1435,7 +1495,9 @@ declare const contractForDocs: {
1435
1495
  completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1436
1496
  }, z.core.$strip>>;
1437
1497
  }, z.core.$strip>>;
1438
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1498
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1499
+ BAD_REQUEST: {};
1500
+ }>, {
1439
1501
  NOT_FOUND: {};
1440
1502
  }>, Record<never, never>>;
1441
1503
  };
@@ -1510,9 +1572,10 @@ declare const contractForDocs: {
1510
1572
  completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1511
1573
  }, z.core.$strip>>;
1512
1574
  }, z.core.$strip>>;
1513
- }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1514
- NOT_FOUND: {};
1575
+ }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1515
1576
  BAD_REQUEST: {};
1577
+ }>, {
1578
+ NOT_FOUND: {};
1516
1579
  }>, Record<never, never>>;
1517
1580
  };
1518
1581
  create: {
@@ -1574,9 +1637,10 @@ declare const contractForDocs: {
1574
1637
  installCommand: z.ZodNullable<z.ZodString>;
1575
1638
  startCommand: z.ZodNullable<z.ZodString>;
1576
1639
  createdAt: z.ZodCoercedDate<unknown>;
1577
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1578
- NOT_FOUND: {};
1640
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1579
1641
  BAD_REQUEST: {};
1642
+ }>, {
1643
+ NOT_FOUND: {};
1580
1644
  FORBIDDEN: {};
1581
1645
  }>, Record<never, never>>;
1582
1646
  };
@@ -1585,7 +1649,9 @@ declare const contractForDocs: {
1585
1649
  projectId: z.ZodString;
1586
1650
  }, z.core.$strip>, z.ZodObject<{
1587
1651
  success: z.ZodLiteral<true>;
1588
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1652
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1653
+ BAD_REQUEST: {};
1654
+ }>, {
1589
1655
  NOT_FOUND: {};
1590
1656
  }>, Record<never, never>>;
1591
1657
  };
@@ -1610,7 +1676,9 @@ declare const contractForDocs: {
1610
1676
  prompt: z.ZodString;
1611
1677
  }, z.core.$strip>>;
1612
1678
  }, z.core.$strip>>;
1613
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1679
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1680
+ BAD_REQUEST: {};
1681
+ }>, {
1614
1682
  NOT_FOUND: {};
1615
1683
  }>, Record<never, never>>;
1616
1684
  };
@@ -1646,9 +1714,10 @@ declare const contractForDocs: {
1646
1714
  prompt: z.ZodString;
1647
1715
  }, z.core.$strip>>;
1648
1716
  }, z.core.$strip>>;
1649
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1650
- NOT_FOUND: {};
1717
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1651
1718
  BAD_REQUEST: {};
1719
+ }>, {
1720
+ NOT_FOUND: {};
1652
1721
  }>, Record<never, never>>;
1653
1722
  };
1654
1723
  };
@@ -1658,7 +1727,9 @@ declare const contractForDocs: {
1658
1727
  subdomain: z.ZodString;
1659
1728
  ticket: z.ZodString;
1660
1729
  tunnelHost: z.ZodString;
1661
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1730
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1731
+ BAD_REQUEST: {};
1732
+ }>, {
1662
1733
  FORBIDDEN: {};
1663
1734
  }>, Record<never, never>>;
1664
1735
  };
@@ -1697,9 +1768,10 @@ declare const contractForDocs: {
1697
1768
  }, z.core.$strip>>>;
1698
1769
  }, z.core.$strip>>>;
1699
1770
  }, z.core.$strip>;
1700
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1701
- NOT_FOUND: {};
1771
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1702
1772
  BAD_REQUEST: {};
1773
+ }>, {
1774
+ NOT_FOUND: {};
1703
1775
  }>, Record<never, never>>;
1704
1776
  };
1705
1777
  get: {
@@ -1730,9 +1802,10 @@ declare const contractForDocs: {
1730
1802
  }, z.core.$strip>>>;
1731
1803
  }, z.core.$strip>>>;
1732
1804
  }, z.core.$strip>;
1733
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1734
- NOT_FOUND: {};
1805
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1735
1806
  BAD_REQUEST: {};
1807
+ }>, {
1808
+ NOT_FOUND: {};
1736
1809
  }>, Record<never, never>>;
1737
1810
  };
1738
1811
  };
@@ -1751,9 +1824,10 @@ declare const contractForDocs: {
1751
1824
  }>>>;
1752
1825
  }, z.core.$strip>, z.ZodObject<{
1753
1826
  id: z.ZodString;
1754
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1755
- NOT_FOUND: {};
1827
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1756
1828
  BAD_REQUEST: {};
1829
+ }>, {
1830
+ NOT_FOUND: {};
1757
1831
  DNS_RESOLUTION_FAILED: {
1758
1832
  status: number;
1759
1833
  };
@@ -1844,7 +1918,9 @@ declare const contractForDocs: {
1844
1918
  }, z.core.$strip>>;
1845
1919
  }, z.core.$strip>;
1846
1920
  }, z.core.$strip>>;
1847
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1921
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1922
+ BAD_REQUEST: {};
1923
+ }>, {
1848
1924
  NOT_FOUND: {};
1849
1925
  }>, Record<never, never>>;
1850
1926
  };
package/dist/index.mjs CHANGED
@@ -407,7 +407,8 @@ z.object({
407
407
  createdAt: z.coerce.date(),
408
408
  environmentId: z.string(),
409
409
  content: z.string(),
410
- source: z.enum(["model", "user"])
410
+ source: z.enum(["model", "user"]),
411
+ clientName: z.string().nullable()
411
412
  });
412
413
  z.object({
413
414
  content: z.string(),
@@ -443,6 +444,7 @@ z.object({
443
444
  environmentId: z.string(),
444
445
  toolName: z.string(),
445
446
  message: z.string(),
447
+ clientName: z.string().nullable(),
446
448
  categories: z.array(intentCategorySchema)
447
449
  });
448
450
  const signalCategorySchema = z.object({
@@ -1548,17 +1550,15 @@ const isValidLogTimeInput = (value) => {
1548
1550
  if (ms(value) !== void 0) return true;
1549
1551
  return !Number.isNaN(new Date(value).getTime());
1550
1552
  };
1551
- const createEnvironmentContractV1 = oc.route({
1553
+ const base = oc.errors({ BAD_REQUEST: {} });
1554
+ const createEnvironmentContractV1 = base.route({
1552
1555
  path: "/v1/environments",
1553
1556
  method: "POST",
1554
1557
  summary: "Create an environment",
1555
1558
  description: "Create an environment for a project",
1556
1559
  tags: ["environments"],
1557
1560
  successDescription: "The environment has been created successfully"
1558
- }).errors({
1559
- NOT_FOUND: {},
1560
- BAD_REQUEST: {}
1561
- }).input(z.object({
1561
+ }).errors({ NOT_FOUND: {} }).input(z.object({
1562
1562
  projectId: z.string().describe("The ID of the project to create the environment for"),
1563
1563
  name: z.string().min(1).describe("The name of the environment"),
1564
1564
  sourceBranch: z.string().min(1).describe("The branch used to build the environment"),
@@ -1571,7 +1571,7 @@ const createEnvironmentContractV1 = oc.route({
1571
1571
  createdAt: z.coerce.date(),
1572
1572
  projectId: z.string().describe("The ID of the project the environment belongs to")
1573
1573
  }));
1574
- const getEnvironmentContractV1 = oc.route({
1574
+ const getEnvironmentContractV1 = base.route({
1575
1575
  path: "/v1/environments/{environmentId}",
1576
1576
  method: "GET",
1577
1577
  summary: "Get an environment",
@@ -1628,7 +1628,7 @@ const projectOutputSchema = z.object({
1628
1628
  productionEnvironment: productionEnvironmentSchema.nullable(),
1629
1629
  environments: z.array(environmentSchema)
1630
1630
  });
1631
- const getProjectContractV1 = oc.route({
1631
+ const getProjectContractV1 = base.route({
1632
1632
  path: "/v1/projects/{projectId}",
1633
1633
  method: "GET",
1634
1634
  summary: "Get a project",
@@ -1636,18 +1636,15 @@ const getProjectContractV1 = oc.route({
1636
1636
  tags: ["projects"],
1637
1637
  successDescription: "The project details"
1638
1638
  }).errors({ NOT_FOUND: {} }).input(z.object({ projectId: z.string().describe("The ID of the project") })).output(projectOutputSchema);
1639
- const listProjectsContractV1 = oc.route({
1639
+ const listProjectsContractV1 = base.route({
1640
1640
  path: "/v1/projects",
1641
1641
  method: "GET",
1642
1642
  summary: "List projects",
1643
1643
  description: "List all projects for a team",
1644
1644
  tags: ["projects"],
1645
1645
  successDescription: "The list of projects"
1646
- }).errors({
1647
- NOT_FOUND: {},
1648
- BAD_REQUEST: {}
1649
- }).input(z.object({ teamId: z.string().optional() }).optional()).output(z.array(projectOutputSchema));
1650
- const createProjectContractV1 = oc.route({
1646
+ }).errors({ NOT_FOUND: {} }).input(z.object({ teamId: z.string().optional() }).optional()).output(z.array(projectOutputSchema));
1647
+ const createProjectContractV1 = base.route({
1651
1648
  path: "/v1/projects",
1652
1649
  method: "POST",
1653
1650
  summary: "Create a project",
@@ -1656,7 +1653,6 @@ const createProjectContractV1 = oc.route({
1656
1653
  successDescription: "The project has been created successfully"
1657
1654
  }).errors({
1658
1655
  NOT_FOUND: {},
1659
- BAD_REQUEST: {},
1660
1656
  FORBIDDEN: {}
1661
1657
  }).input(z.object({
1662
1658
  teamId: z.string().optional(),
@@ -1697,7 +1693,7 @@ const environmentVariableOutputSchema = z.object({
1697
1693
  isSecret: z.boolean(),
1698
1694
  createdAt: z.coerce.date()
1699
1695
  });
1700
- const listEnvironmentVariablesContractV1 = oc.route({
1696
+ const listEnvironmentVariablesContractV1 = base.route({
1701
1697
  path: "/v1/environments/{environmentId}/environment-variables",
1702
1698
  method: "GET",
1703
1699
  summary: "List environment variables",
@@ -1705,48 +1701,39 @@ const listEnvironmentVariablesContractV1 = oc.route({
1705
1701
  tags: ["environments"],
1706
1702
  successDescription: "The list of environment variables"
1707
1703
  }).errors({ NOT_FOUND: {} }).input(z.object({ environmentId: z.string().describe("The ID of the environment") })).output(z.array(environmentVariableOutputSchema));
1708
- const createEnvironmentVariablesContractV1 = oc.route({
1704
+ const createEnvironmentVariablesContractV1 = base.route({
1709
1705
  path: "/v1/environments/{environmentId}/environment-variables",
1710
1706
  method: "POST",
1711
1707
  summary: "Add environment variables",
1712
1708
  description: "Add one or more environment variables to an environment",
1713
1709
  tags: ["environments"],
1714
1710
  successDescription: "The environment variables have been added successfully"
1715
- }).errors({
1716
- NOT_FOUND: {},
1717
- BAD_REQUEST: {}
1718
- }).input(z.object({
1711
+ }).errors({ NOT_FOUND: {} }).input(z.object({
1719
1712
  environmentId: z.string().describe("The ID of the environment"),
1720
1713
  environmentVariables: environmentVariablesSchema
1721
1714
  })).output(z.object({ success: z.literal(true) }));
1722
- const updateEnvironmentVariableContractV1 = oc.route({
1715
+ const updateEnvironmentVariableContractV1 = base.route({
1723
1716
  path: "/v1/environment-variables/{environmentVariableId}",
1724
1717
  method: "PATCH",
1725
1718
  summary: "Update an environment variable",
1726
1719
  description: "Update an environment variable by ID",
1727
1720
  tags: ["environments"],
1728
1721
  successDescription: "The environment variable has been updated successfully"
1729
- }).errors({
1730
- NOT_FOUND: {},
1731
- BAD_REQUEST: {}
1732
- }).input(z.object({
1722
+ }).errors({ NOT_FOUND: {} }).input(z.object({
1733
1723
  environmentVariableId: z.string().describe("The ID of the environment variable"),
1734
1724
  key: environmentVariableSchema.shape.key,
1735
1725
  value: environmentVariableSchema.shape.value.optional(),
1736
1726
  isSecret: environmentVariableSchema.shape.isSecret.optional()
1737
1727
  })).output(z.object({ success: z.literal(true) }));
1738
- const deleteEnvironmentVariableContractV1 = oc.route({
1728
+ const deleteEnvironmentVariableContractV1 = base.route({
1739
1729
  path: "/v1/environment-variables/{environmentVariableId}",
1740
1730
  method: "DELETE",
1741
1731
  summary: "Delete an environment variable",
1742
1732
  description: "Delete an environment variable by ID",
1743
1733
  tags: ["environments"],
1744
1734
  successDescription: "The environment variable has been deleted successfully"
1745
- }).errors({
1746
- NOT_FOUND: {},
1747
- BAD_REQUEST: {}
1748
- }).input(z.object({ environmentVariableId: z.string().describe("The ID of the environment variable") })).output(z.object({ success: z.literal(true) }));
1749
- const deleteProjectContractV1 = oc.route({
1735
+ }).errors({ NOT_FOUND: {} }).input(z.object({ environmentVariableId: z.string().describe("The ID of the environment variable") })).output(z.object({ success: z.literal(true) }));
1736
+ const deleteProjectContractV1 = base.route({
1750
1737
  path: "/v1/projects/{projectId}",
1751
1738
  method: "DELETE",
1752
1739
  summary: "Delete a project",
@@ -1754,7 +1741,7 @@ const deleteProjectContractV1 = oc.route({
1754
1741
  tags: ["projects"],
1755
1742
  successDescription: "The project has been deleted successfully"
1756
1743
  }).errors({ NOT_FOUND: {} }).input(z.object({ projectId: z.string().describe("The ID of the project") })).output(z.object({ success: z.literal(true) }));
1757
- const updateProjectContractV1 = oc.route({
1744
+ const updateProjectContractV1 = base.route({
1758
1745
  path: "/v1/projects/{projectId}",
1759
1746
  method: "PATCH",
1760
1747
  summary: "Update a project",
@@ -1763,14 +1750,13 @@ const updateProjectContractV1 = oc.route({
1763
1750
  successDescription: "The project has been updated successfully"
1764
1751
  }).errors({
1765
1752
  NOT_FOUND: {},
1766
- BAD_REQUEST: {},
1767
1753
  FORBIDDEN: {}
1768
1754
  }).input(z.object({
1769
1755
  projectId: z.string().describe("The ID of the project"),
1770
1756
  name: z.string().min(1).max(100).optional().describe("The new name for the project"),
1771
1757
  sourceRepository: z.string().nullable().optional().describe("The source repository to connect to the project")
1772
1758
  })).output(projectOutputSchema);
1773
- const deployEnvironmentContractV1 = oc.route({
1759
+ const deployEnvironmentContractV1 = base.route({
1774
1760
  path: "/v1/environments/{environmentId}/deploy",
1775
1761
  method: "POST",
1776
1762
  summary: "Deploy an environment",
@@ -1779,29 +1765,25 @@ const deployEnvironmentContractV1 = oc.route({
1779
1765
  successDescription: "The environment has been deployed successfully"
1780
1766
  }).errors({
1781
1767
  NOT_FOUND: {},
1782
- BAD_REQUEST: {},
1783
1768
  CONFLICT: {}
1784
1769
  }).input(z.object({
1785
1770
  environmentId: z.string().describe("The ID of the environment to deploy"),
1786
1771
  token: z.string().describe("The token to identify the source archive").optional(),
1787
1772
  settings: buildSettingsSchema.extend({ transport: transportSchema }).optional().describe("Project settings detected by the client from the source. When provided, the server skips downloading and extracting the source archive to detect them.")
1788
1773
  })).output(deploymentSchema);
1789
- const uploadDeploymentArtifactContractV1 = oc.route({
1774
+ const uploadDeploymentArtifactContractV1 = base.route({
1790
1775
  path: "/v1/deployments/upload",
1791
1776
  method: "POST",
1792
1777
  summary: "Upload deployment artifacts",
1793
1778
  description: "Return a presigned S3 URL to upload a deployment artifact",
1794
1779
  tags: ["deployments"],
1795
1780
  successDescription: "The presigned upload URL has been generated successfully"
1796
- }).errors({
1797
- NOT_FOUND: {},
1798
- BAD_REQUEST: {}
1799
- }).input(z.object({ teamId: z.string().optional() }).optional()).output(z.object({
1781
+ }).errors({ NOT_FOUND: {} }).input(z.object({ teamId: z.string().optional() }).optional()).output(z.object({
1800
1782
  uploadUrl: z.url().describe("Presigned S3 URL to upload the source archive with HTTP PUT"),
1801
1783
  token: z.string().describe("Token to identify the source archive"),
1802
1784
  expiresAt: z.coerce.date().describe("Expiration date of the presigned URL")
1803
1785
  }));
1804
- const listDeploymentsContractV1 = oc.route({
1786
+ const listDeploymentsContractV1 = base.route({
1805
1787
  path: "/v1/projects/{projectId}/deployments",
1806
1788
  method: "GET",
1807
1789
  summary: "List project deployments",
@@ -1813,7 +1795,7 @@ const listDeploymentsContractV1 = oc.route({
1813
1795
  status: z.array(deploymentStatusSchema).optional().describe("Filter by one or more statuses"),
1814
1796
  environmentId: z.string().optional().describe("Filter by environment ID")
1815
1797
  })).output(z.array(deploymentSchema));
1816
- const getDeploymentContractV1 = oc.route({
1798
+ const getDeploymentContractV1 = base.route({
1817
1799
  path: "/v1/deployments/{deploymentId}",
1818
1800
  method: "GET",
1819
1801
  summary: "Get a deployment",
@@ -1836,17 +1818,14 @@ const logEntrySchema = z.object({
1836
1818
  method: z.string().optional(),
1837
1819
  durationInMs: z.number().optional()
1838
1820
  });
1839
- const getLogsContractV1 = oc.route({
1821
+ const getLogsContractV1 = base.route({
1840
1822
  path: "/v1/environments/{environmentId}/logs",
1841
1823
  method: "GET",
1842
1824
  summary: "Get logs",
1843
1825
  description: "Get logs for an environment",
1844
1826
  tags: ["environments"],
1845
1827
  successDescription: "The logs"
1846
- }).errors({
1847
- NOT_FOUND: {},
1848
- BAD_REQUEST: {}
1849
- }).input(z.object({
1828
+ }).errors({ NOT_FOUND: {} }).input(z.object({
1850
1829
  environmentId: z.string().describe("The ID of the environment"),
1851
1830
  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)"),
1852
1831
  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"),
@@ -1863,17 +1842,14 @@ const getLogsContractV1 = oc.route({
1863
1842
  logs: z.array(logEntrySchema),
1864
1843
  nextToken: z.string().nullable()
1865
1844
  }));
1866
- const getLatestLogsContractV1 = oc.route({
1845
+ const getLatestLogsContractV1 = base.route({
1867
1846
  path: "/v1/environments/{environmentId}/latest-logs",
1868
1847
  method: "GET",
1869
1848
  summary: "Get latest logs",
1870
1849
  description: "Get the N most recent logs for an environment",
1871
1850
  tags: ["environments"],
1872
1851
  successDescription: "The latest logs"
1873
- }).errors({
1874
- NOT_FOUND: {},
1875
- BAD_REQUEST: {}
1876
- }).input(z.object({
1852
+ }).errors({ NOT_FOUND: {} }).input(z.object({
1877
1853
  environmentId: z.string().describe("The ID of the environment"),
1878
1854
  limit: z.coerce.number().int().min(1).max(1e3).default(100).describe("Number of most recent log entries to return"),
1879
1855
  level: z.array(z.enum([
@@ -1884,7 +1860,7 @@ const getLatestLogsContractV1 = oc.route({
1884
1860
  ])).optional().describe("Filter by log level"),
1885
1861
  search: z.string().optional().describe("Filter pattern to search for in log content")
1886
1862
  })).output(z.object({ logs: z.array(logEntrySchema) }));
1887
- const getDeploymentLogsContractV1 = oc.route({
1863
+ const getDeploymentLogsContractV1 = base.route({
1888
1864
  path: "/v1/deployments/{deploymentId}/logs",
1889
1865
  method: "GET",
1890
1866
  summary: "Get deployment logs",
@@ -1911,17 +1887,14 @@ const analyticsTimeSeriesSchema = z.object({
1911
1887
  output_token_mean: z.array(analyticsDataPointSchema),
1912
1888
  task_count: z.array(analyticsDataPointSchema)
1913
1889
  });
1914
- const getProjectAnalyticsContractV1 = oc.route({
1890
+ const getProjectAnalyticsContractV1 = base.route({
1915
1891
  path: "/v1/analytics/{projectId}",
1916
1892
  method: "GET",
1917
1893
  summary: "Get project analytics",
1918
1894
  description: "Get analytics data for a project over a time range",
1919
1895
  tags: ["analytics"],
1920
1896
  successDescription: "The project analytics data"
1921
- }).errors({
1922
- NOT_FOUND: {},
1923
- BAD_REQUEST: {}
1924
- }).input(z.object({
1897
+ }).errors({ NOT_FOUND: {} }).input(z.object({
1925
1898
  projectId: z.string().describe("The ID of the project"),
1926
1899
  startTimestamp: z.coerce.number().describe("Start timestamp in milliseconds"),
1927
1900
  endTimestamp: z.coerce.number().describe("End timestamp in milliseconds"),
@@ -1936,7 +1909,7 @@ const getProjectAnalyticsContractV1 = oc.route({
1936
1909
  }),
1937
1910
  timeSeries: analyticsTimeSeriesSchema
1938
1911
  }));
1939
- const listTeamsContractV1 = oc.route({
1912
+ const listTeamsContractV1 = base.route({
1940
1913
  path: "/v1/teams",
1941
1914
  method: "GET",
1942
1915
  summary: "List teams",
@@ -1949,7 +1922,7 @@ const listTeamsContractV1 = oc.route({
1949
1922
  createdAt: z.coerce.date(),
1950
1923
  hasStripeAccount: z.boolean()
1951
1924
  })));
1952
- const getTunnelTicketContractV1 = oc.route({
1925
+ const getTunnelTicketContractV1 = base.route({
1953
1926
  path: "/v1/tunnels/ticket",
1954
1927
  method: "GET",
1955
1928
  summary: "Get a tunnel ticket",
@@ -1961,16 +1934,13 @@ const getTunnelTicketContractV1 = oc.route({
1961
1934
  ticket: z.string().describe("The signed tunnel ticket"),
1962
1935
  tunnelHost: z.string().describe("The tunnel host to connect to")
1963
1936
  }));
1964
- const publishServerContractV1 = oc.route({
1937
+ const publishServerContractV1 = base.route({
1965
1938
  path: "/v1/distribution/publish",
1966
1939
  method: "POST",
1967
1940
  summary: "Publish a server to the MCP registry",
1968
1941
  tags: ["distribution"],
1969
1942
  successDescription: "The server has been published successfully"
1970
- }).errors({
1971
- NOT_FOUND: {},
1972
- BAD_REQUEST: {}
1973
- }).input(z.object({
1943
+ }).errors({ NOT_FOUND: {} }).input(z.object({
1974
1944
  projectId: z.string(),
1975
1945
  domain: z.string(),
1976
1946
  title: z.string().min(1).max(100),
@@ -1979,17 +1949,14 @@ const publishServerContractV1 = oc.route({
1979
1949
  iconSrc: z.url().max(255).optional(),
1980
1950
  dryRun: z.boolean().optional()
1981
1951
  })).output(z.object({ serverFields: serverFieldsSchema }));
1982
- const getServerInfoContractV1 = oc.route({
1952
+ const getServerInfoContractV1 = base.route({
1983
1953
  path: "/v1/distribution/get",
1984
1954
  method: "GET",
1985
1955
  summary: "Get server info",
1986
1956
  description: "Get info about a server",
1987
1957
  tags: ["distribution"],
1988
1958
  successDescription: "The server info"
1989
- }).errors({
1990
- NOT_FOUND: {},
1991
- BAD_REQUEST: {}
1992
- }).input(z.object({
1959
+ }).errors({ NOT_FOUND: {} }).input(z.object({
1993
1960
  projectId: z.string(),
1994
1961
  domain: z.string()
1995
1962
  })).output(z.object({ serverFields: serverFieldsSchema }));
@@ -2008,7 +1975,7 @@ const playgroundOutputSchema = z.object({
2008
1975
  isPlaygroundEnabled: z.boolean(),
2009
1976
  serverMetadata: playgroundServerMetadataOutputSchema.nullable()
2010
1977
  });
2011
- const getPlaygroundContractV1 = oc.route({
1978
+ const getPlaygroundContractV1 = base.route({
2012
1979
  path: "/v1/environments/{environmentId}/playground",
2013
1980
  method: "GET",
2014
1981
  summary: "Get playground configuration",
@@ -2016,17 +1983,14 @@ const getPlaygroundContractV1 = oc.route({
2016
1983
  tags: ["environments"],
2017
1984
  successDescription: "The playground configuration"
2018
1985
  }).errors({ NOT_FOUND: {} }).input(z.object({ environmentId: z.string().describe("The ID of the environment") })).output(playgroundOutputSchema);
2019
- const upsertPlaygroundContractV1 = oc.route({
1986
+ const upsertPlaygroundContractV1 = base.route({
2020
1987
  path: "/v1/environments/{environmentId}/playground",
2021
1988
  method: "PUT",
2022
1989
  summary: "Update playground configuration",
2023
1990
  description: "Update the playground configuration for an environment. All fields are optional — only provided fields are updated.",
2024
1991
  tags: ["environments"],
2025
1992
  successDescription: "The updated playground configuration"
2026
- }).errors({
2027
- NOT_FOUND: {},
2028
- BAD_REQUEST: {}
2029
- }).input(z.object({
1993
+ }).errors({ NOT_FOUND: {} }).input(z.object({
2030
1994
  environmentId: z.string().describe("The ID of the environment"),
2031
1995
  isPlaygroundEnabled: z.boolean().optional(),
2032
1996
  name: z.string().min(1).max(100).optional(),
@@ -2034,7 +1998,7 @@ const upsertPlaygroundContractV1 = oc.route({
2034
1998
  headers: z.array(playgroundHeaderSchema).optional(),
2035
1999
  examplePrompts: z.array(playgroundExamplePromptSchema).max(5).optional()
2036
2000
  })).output(playgroundOutputSchema);
2037
- const createBeaconContractV1 = oc.route({
2001
+ const createBeaconContractV1 = base.route({
2038
2002
  path: "/v1/beacon/audits",
2039
2003
  method: "POST",
2040
2004
  summary: "Create a beacon audit",
@@ -2043,7 +2007,6 @@ const createBeaconContractV1 = oc.route({
2043
2007
  successDescription: "The audit has been created"
2044
2008
  }).errors({
2045
2009
  NOT_FOUND: {},
2046
- BAD_REQUEST: {},
2047
2010
  DNS_RESOLUTION_FAILED: { status: 400 }
2048
2011
  }).input(z.object({
2049
2012
  targetUrl: z.url().describe("The HTTPS URL of the MCP server to audit"),
@@ -2051,7 +2014,7 @@ const createBeaconContractV1 = oc.route({
2051
2014
  projectId: z.string().optional().describe("The project ID to associate the audit with"),
2052
2015
  excludeCategories: z.array(checkCategorySchema).optional().describe("Check categories to exclude from the audit")
2053
2016
  })).output(z.object({ id: z.string() }));
2054
- const getBeaconContractV1 = oc.route({
2017
+ const getBeaconContractV1 = base.route({
2055
2018
  path: "/v1/beacon/audits/{auditId}",
2056
2019
  method: "GET",
2057
2020
  summary: "Get a beacon audit",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alpic-ai/api",
3
- "version": "1.163.0",
3
+ "version": "1.164.0",
4
4
  "description": "Contract for the Alpic API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",
@@ -33,13 +33,13 @@
33
33
  "author": "Alpic",
34
34
  "license": "ISC",
35
35
  "dependencies": {
36
- "@orpc/contract": "^1.14.13",
36
+ "@orpc/contract": "^1.15.0",
37
37
  "ms": "^2.1.3",
38
38
  "zod": "^4.4.3"
39
39
  },
40
40
  "devDependencies": {
41
- "@orpc/openapi": "^1.14.13",
42
- "@orpc/zod": "^1.14.13",
41
+ "@orpc/openapi": "^1.15.0",
42
+ "@orpc/zod": "^1.15.0",
43
43
  "@total-typescript/tsconfig": "^1.0.4",
44
44
  "@types/ms": "^2.1.0",
45
45
  "shx": "^0.4.0",