@alpic-ai/api 0.0.0-dev.gff1b65e → 0.0.0-dev.gff8f374

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
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- import * as _$_orpc_contract0 from "@orpc/contract";
3
2
  import { InferContractRouterInputs, InferContractRouterOutputs } from "@orpc/contract";
4
3
 
5
4
  //#region src/api.contract.d.ts
@@ -16,7 +15,7 @@ declare const deploymentStatusSchema: z.ZodEnum<{
16
15
  failed: "failed";
17
16
  canceled: "canceled";
18
17
  }>;
19
- declare const createEnvironmentContractV1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
18
+ declare const createEnvironmentContractV1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
20
19
  projectId: z.ZodString;
21
20
  name: z.ZodString;
22
21
  sourceBranch: z.ZodString;
@@ -29,17 +28,17 @@ declare const createEnvironmentContractV1: _$_orpc_contract0.ContractProcedureBu
29
28
  id: z.ZodString;
30
29
  name: z.ZodString;
31
30
  sourceBranch: z.ZodNullable<z.ZodString>;
32
- urls: z.ZodArray<z.ZodString>;
31
+ urls: z.ZodArray<z.ZodURL>;
33
32
  createdAt: z.ZodCoercedDate<unknown>;
34
33
  projectId: z.ZodString;
35
- }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
34
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
36
35
  NOT_FOUND: {};
37
36
  BAD_REQUEST: {};
38
37
  }>, Record<never, never>>;
39
38
  declare const contract: {
40
39
  teams: {
41
40
  list: {
42
- v1: _$_orpc_contract0.ContractProcedureBuilderWithOutput<_$_orpc_contract0.Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
41
+ v1: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
43
42
  id: z.ZodString;
44
43
  name: z.ZodString;
45
44
  createdAt: z.ZodCoercedDate<unknown>;
@@ -49,7 +48,7 @@ declare const contract: {
49
48
  };
50
49
  analytics: {
51
50
  get: {
52
- v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
51
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
53
52
  projectId: z.ZodString;
54
53
  startTimestamp: z.ZodCoercedNumber<unknown>;
55
54
  endTimestamp: z.ZodCoercedNumber<unknown>;
@@ -92,7 +91,7 @@ declare const contract: {
92
91
  categories: z.ZodRecord<z.ZodString, z.ZodUnknown>;
93
92
  }, z.core.$strip>>;
94
93
  }, z.core.$strip>;
95
- }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
94
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
96
95
  NOT_FOUND: {};
97
96
  BAD_REQUEST: {};
98
97
  }>, Record<never, never>>;
@@ -100,7 +99,7 @@ declare const contract: {
100
99
  };
101
100
  deployments: {
102
101
  list: {
103
- v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
102
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
104
103
  projectId: z.ZodString;
105
104
  status: z.ZodOptional<z.ZodArray<z.ZodEnum<{
106
105
  ongoing: "ongoing";
@@ -128,12 +127,12 @@ declare const contract: {
128
127
  environmentName: z.ZodString;
129
128
  isCurrent: z.ZodBoolean;
130
129
  deploymentPageUrl: z.ZodNullable<z.ZodURL>;
131
- }, z.core.$strip>>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
130
+ }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
132
131
  NOT_FOUND: {};
133
132
  }>, Record<never, never>>;
134
133
  };
135
134
  get: {
136
- v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
135
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
137
136
  deploymentId: z.ZodString;
138
137
  }, z.core.$strip>, z.ZodObject<{
139
138
  id: z.ZodString;
@@ -154,21 +153,24 @@ declare const contract: {
154
153
  environmentName: z.ZodString;
155
154
  isCurrent: z.ZodBoolean;
156
155
  deploymentPageUrl: z.ZodNullable<z.ZodURL>;
157
- }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
156
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
158
157
  NOT_FOUND: {};
159
158
  }>, Record<never, never>>;
160
159
  };
161
160
  uploadArtifact: {
162
- v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodObject<{
161
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodObject<{
163
162
  teamId: z.ZodOptional<z.ZodString>;
164
163
  }, z.core.$strip>>, z.ZodObject<{
165
164
  uploadUrl: z.ZodURL;
166
165
  token: z.ZodString;
167
166
  expiresAt: z.ZodCoercedDate<unknown>;
168
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
167
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
168
+ NOT_FOUND: {};
169
+ BAD_REQUEST: {};
170
+ }>, Record<never, never>>;
169
171
  };
170
172
  getLogs: {
171
- v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
173
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
172
174
  deploymentId: z.ZodString;
173
175
  }, z.core.$strip>, z.ZodObject<{
174
176
  logs: z.ZodArray<z.ZodObject<{
@@ -176,14 +178,14 @@ declare const contract: {
176
178
  content: z.ZodOptional<z.ZodString>;
177
179
  }, z.core.$strip>>;
178
180
  hasMoreLogs: z.ZodBoolean;
179
- }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
181
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
180
182
  NOT_FOUND: {};
181
183
  }>, Record<never, never>>;
182
184
  };
183
185
  };
184
186
  environments: {
185
187
  create: {
186
- v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
188
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
187
189
  projectId: z.ZodString;
188
190
  name: z.ZodString;
189
191
  sourceBranch: z.ZodString;
@@ -196,16 +198,16 @@ declare const contract: {
196
198
  id: z.ZodString;
197
199
  name: z.ZodString;
198
200
  sourceBranch: z.ZodNullable<z.ZodString>;
199
- urls: z.ZodArray<z.ZodString>;
201
+ urls: z.ZodArray<z.ZodURL>;
200
202
  createdAt: z.ZodCoercedDate<unknown>;
201
203
  projectId: z.ZodString;
202
- }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
204
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
203
205
  NOT_FOUND: {};
204
206
  BAD_REQUEST: {};
205
207
  }>, Record<never, never>>;
206
208
  };
207
209
  get: {
208
- v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
210
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
209
211
  environmentId: z.ZodString;
210
212
  }, z.core.$strip>, z.ZodObject<{
211
213
  id: z.ZodString;
@@ -215,12 +217,12 @@ declare const contract: {
215
217
  domains: z.ZodArray<z.ZodCustomStringFormat<"hostname">>;
216
218
  createdAt: z.ZodCoercedDate<unknown>;
217
219
  projectId: z.ZodString;
218
- }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
220
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
219
221
  NOT_FOUND: {};
220
222
  }>, Record<never, never>>;
221
223
  };
222
224
  deploy: {
223
- v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
225
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
224
226
  environmentId: z.ZodString;
225
227
  token: z.ZodOptional<z.ZodString>;
226
228
  }, z.core.$strip>, z.ZodObject<{
@@ -242,13 +244,13 @@ declare const contract: {
242
244
  environmentName: z.ZodString;
243
245
  isCurrent: z.ZodBoolean;
244
246
  deploymentPageUrl: z.ZodNullable<z.ZodURL>;
245
- }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
247
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
246
248
  NOT_FOUND: {};
247
249
  BAD_REQUEST: {};
248
250
  }>, Record<never, never>>;
249
251
  };
250
252
  getLogs: {
251
- v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
253
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
252
254
  environmentId: z.ZodString;
253
255
  since: z.ZodOptional<z.ZodString>;
254
256
  until: z.ZodOptional<z.ZodString>;
@@ -278,13 +280,13 @@ declare const contract: {
278
280
  durationInMs: z.ZodOptional<z.ZodNumber>;
279
281
  }, z.core.$strip>>;
280
282
  nextToken: z.ZodNullable<z.ZodString>;
281
- }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
283
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
282
284
  NOT_FOUND: {};
283
285
  BAD_REQUEST: {};
284
286
  }>, Record<never, never>>;
285
287
  };
286
288
  getLatestLogs: {
287
- v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
289
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
288
290
  environmentId: z.ZodString;
289
291
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
290
292
  level: z.ZodOptional<z.ZodArray<z.ZodEnum<{
@@ -310,7 +312,7 @@ declare const contract: {
310
312
  method: z.ZodOptional<z.ZodString>;
311
313
  durationInMs: z.ZodOptional<z.ZodNumber>;
312
314
  }, z.core.$strip>>;
313
- }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
315
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
314
316
  NOT_FOUND: {};
315
317
  BAD_REQUEST: {};
316
318
  }>, Record<never, never>>;
@@ -318,7 +320,7 @@ declare const contract: {
318
320
  };
319
321
  environmentVariables: {
320
322
  list: {
321
- v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
323
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
322
324
  environmentId: z.ZodString;
323
325
  }, z.core.$strip>, z.ZodArray<z.ZodObject<{
324
326
  id: z.ZodString;
@@ -326,12 +328,12 @@ declare const contract: {
326
328
  value: z.ZodString;
327
329
  isSecret: z.ZodBoolean;
328
330
  createdAt: z.ZodCoercedDate<unknown>;
329
- }, z.core.$strip>>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
331
+ }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
330
332
  NOT_FOUND: {};
331
333
  }>, Record<never, never>>;
332
334
  };
333
335
  create: {
334
- v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
336
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
335
337
  environmentId: z.ZodString;
336
338
  environmentVariables: z.ZodArray<z.ZodObject<{
337
339
  key: z.ZodString;
@@ -340,37 +342,38 @@ declare const contract: {
340
342
  }, z.core.$strip>>;
341
343
  }, z.core.$strip>, z.ZodObject<{
342
344
  success: z.ZodLiteral<true>;
343
- }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
345
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
344
346
  NOT_FOUND: {};
345
347
  BAD_REQUEST: {};
346
348
  }>, Record<never, never>>;
347
349
  };
348
350
  update: {
349
- v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
351
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
350
352
  environmentVariableId: z.ZodString;
351
353
  key: z.ZodString;
352
354
  value: z.ZodOptional<z.ZodString>;
353
355
  isSecret: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
354
356
  }, z.core.$strip>, z.ZodObject<{
355
357
  success: z.ZodLiteral<true>;
356
- }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
358
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
357
359
  NOT_FOUND: {};
358
360
  BAD_REQUEST: {};
359
361
  }>, Record<never, never>>;
360
362
  };
361
363
  delete: {
362
- v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
364
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
363
365
  environmentVariableId: z.ZodString;
364
366
  }, z.core.$strip>, z.ZodObject<{
365
367
  success: z.ZodLiteral<true>;
366
- }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
368
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
367
369
  NOT_FOUND: {};
370
+ BAD_REQUEST: {};
368
371
  }>, Record<never, never>>;
369
372
  };
370
373
  };
371
374
  projects: {
372
375
  update: {
373
- v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
376
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
374
377
  projectId: z.ZodString;
375
378
  name: z.ZodOptional<z.ZodString>;
376
379
  sourceRepository: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -442,13 +445,13 @@ declare const contract: {
442
445
  completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
443
446
  }, z.core.$strip>>;
444
447
  }, z.core.$strip>>;
445
- }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
448
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
446
449
  NOT_FOUND: {};
447
450
  BAD_REQUEST: {};
448
451
  }>, Record<never, never>>;
449
452
  };
450
453
  get: {
451
- v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
454
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
452
455
  projectId: z.ZodString;
453
456
  }, z.core.$strip>, z.ZodObject<{
454
457
  id: z.ZodString;
@@ -518,12 +521,12 @@ declare const contract: {
518
521
  completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
519
522
  }, z.core.$strip>>;
520
523
  }, z.core.$strip>>;
521
- }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
524
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
522
525
  NOT_FOUND: {};
523
526
  }>, Record<never, never>>;
524
527
  };
525
528
  list: {
526
- v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodObject<{
529
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodObject<{
527
530
  teamId: z.ZodOptional<z.ZodString>;
528
531
  }, z.core.$strip>>, z.ZodArray<z.ZodObject<{
529
532
  id: z.ZodString;
@@ -593,10 +596,13 @@ declare const contract: {
593
596
  completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
594
597
  }, z.core.$strip>>;
595
598
  }, z.core.$strip>>;
596
- }, z.core.$strip>>, Record<never, never>, Record<never, never>>;
599
+ }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
600
+ NOT_FOUND: {};
601
+ BAD_REQUEST: {};
602
+ }>, Record<never, never>>;
597
603
  };
598
604
  create: {
599
- v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
605
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
600
606
  teamId: z.ZodOptional<z.ZodString>;
601
607
  name: z.ZodString;
602
608
  sourceRepository: z.ZodOptional<z.ZodString>;
@@ -654,24 +660,24 @@ declare const contract: {
654
660
  installCommand: z.ZodNullable<z.ZodString>;
655
661
  startCommand: z.ZodNullable<z.ZodString>;
656
662
  createdAt: z.ZodCoercedDate<unknown>;
657
- }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
663
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
658
664
  NOT_FOUND: {};
659
665
  BAD_REQUEST: {};
660
666
  }>, Record<never, never>>;
661
667
  };
662
668
  delete: {
663
- v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
669
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
664
670
  projectId: z.ZodString;
665
671
  }, z.core.$strip>, z.ZodObject<{
666
672
  success: z.ZodLiteral<true>;
667
- }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
673
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
668
674
  NOT_FOUND: {};
669
675
  }>, Record<never, never>>;
670
676
  };
671
677
  };
672
678
  playground: {
673
679
  get: {
674
- v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
680
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
675
681
  environmentId: z.ZodString;
676
682
  }, z.core.$strip>, z.ZodObject<{
677
683
  isPlaygroundEnabled: z.ZodBoolean;
@@ -689,12 +695,12 @@ declare const contract: {
689
695
  prompt: z.ZodString;
690
696
  }, z.core.$strip>>;
691
697
  }, z.core.$strip>>;
692
- }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
698
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
693
699
  NOT_FOUND: {};
694
700
  }>, Record<never, never>>;
695
701
  };
696
702
  upsert: {
697
- v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
703
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
698
704
  environmentId: z.ZodString;
699
705
  isPlaygroundEnabled: z.ZodOptional<z.ZodBoolean>;
700
706
  name: z.ZodOptional<z.ZodString>;
@@ -725,7 +731,7 @@ declare const contract: {
725
731
  prompt: z.ZodString;
726
732
  }, z.core.$strip>>;
727
733
  }, z.core.$strip>>;
728
- }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
734
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
729
735
  NOT_FOUND: {};
730
736
  BAD_REQUEST: {};
731
737
  }>, Record<never, never>>;
@@ -733,16 +739,18 @@ declare const contract: {
733
739
  };
734
740
  tunnels: {
735
741
  getTicket: {
736
- v1: _$_orpc_contract0.ContractProcedureBuilderWithOutput<_$_orpc_contract0.Schema<unknown, unknown>, z.ZodObject<{
742
+ v1: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
737
743
  subdomain: z.ZodString;
738
744
  ticket: z.ZodString;
739
745
  tunnelHost: z.ZodString;
740
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
746
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
747
+ FORBIDDEN: {};
748
+ }>, Record<never, never>>;
741
749
  };
742
750
  };
743
751
  distribution: {
744
752
  publish: {
745
- v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
753
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
746
754
  projectId: z.ZodString;
747
755
  domain: z.ZodString;
748
756
  title: z.ZodString;
@@ -774,13 +782,13 @@ declare const contract: {
774
782
  }, z.core.$strip>>>;
775
783
  }, z.core.$strip>>>;
776
784
  }, z.core.$strip>;
777
- }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
785
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
778
786
  NOT_FOUND: {};
779
787
  BAD_REQUEST: {};
780
788
  }>, Record<never, never>>;
781
789
  };
782
790
  get: {
783
- v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
791
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
784
792
  projectId: z.ZodString;
785
793
  domain: z.ZodString;
786
794
  }, z.core.$strip>, z.ZodObject<{
@@ -807,7 +815,7 @@ declare const contract: {
807
815
  }, z.core.$strip>>>;
808
816
  }, z.core.$strip>>>;
809
817
  }, z.core.$strip>;
810
- }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
818
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
811
819
  NOT_FOUND: {};
812
820
  BAD_REQUEST: {};
813
821
  }>, Record<never, never>>;
@@ -815,7 +823,7 @@ declare const contract: {
815
823
  };
816
824
  beacon: {
817
825
  create: {
818
- v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
826
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
819
827
  targetUrl: z.ZodURL;
820
828
  teamId: z.ZodOptional<z.ZodString>;
821
829
  projectId: z.ZodOptional<z.ZodString>;
@@ -828,7 +836,7 @@ declare const contract: {
828
836
  }>>>;
829
837
  }, z.core.$strip>, z.ZodObject<{
830
838
  id: z.ZodString;
831
- }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
839
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
832
840
  NOT_FOUND: {};
833
841
  BAD_REQUEST: {};
834
842
  DNS_RESOLUTION_FAILED: {
@@ -837,7 +845,7 @@ declare const contract: {
837
845
  }>, Record<never, never>>;
838
846
  };
839
847
  get: {
840
- v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
848
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
841
849
  auditId: z.ZodString;
842
850
  }, z.core.$strip>, z.ZodObject<{
843
851
  id: z.ZodString;
@@ -921,7 +929,7 @@ declare const contract: {
921
929
  }, z.core.$strip>>;
922
930
  }, z.core.$strip>;
923
931
  }, z.core.$strip>>;
924
- }, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
932
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
925
933
  NOT_FOUND: {};
926
934
  }>, Record<never, never>>;
927
935
  };
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@ import { z } from "zod";
2
2
  import * as z$1 from "zod/v4";
3
3
  import { oc } from "@orpc/contract";
4
4
  import ms from "ms";
5
- //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_@cfworker+json-schema@4.1.1_zod@4.4.3/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js
5
+ //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.4.3/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js
6
6
  /**
7
7
  * Reusable URL validation that disallows javascript: scheme
8
8
  */
@@ -539,6 +539,22 @@ z.object({
539
539
  serverFields: serverFieldsSchema$1,
540
540
  source: z.enum(["registry", "defaults"])
541
541
  });
542
+ /**
543
+ * Returns a variant of a `maxLength`-constrained string that clamps (truncates) instead of
544
+ * rejecting on overflow — used for AI-generated copy where the model routinely overshoots.
545
+ *
546
+ * NOTE: this rebuilds the schema from scratch, carrying over only `maxLength` (as a clamp),
547
+ * `minLength`, and the description. Any other validators on the source field (`.regex()`,
548
+ * `.email()`, custom refinements) are intentionally dropped — this helper is meant for plain
549
+ * free-text length caps only. A field with `null` `maxLength` is returned unchanged.
550
+ */
551
+ const clampStringField = (field) => {
552
+ const max = field.maxLength;
553
+ if (max === null) return field;
554
+ const clamped = z.string().overwrite((value) => value.slice(0, max)).max(max);
555
+ const withMin = field.minLength === null ? clamped : clamped.min(field.minLength);
556
+ return field.description ? withMin.describe(field.description) : withMin;
557
+ };
542
558
  const toolDefinitionSchema = z.object({
543
559
  name: z.string(),
544
560
  title: z.string().optional().describe("Human-friendly name for the tool, used in the UI. If not provided, `name` will be used."),
@@ -551,14 +567,14 @@ const toolDefinitionSchema = z.object({
551
567
  }).optional()
552
568
  });
553
569
  const positiveTestCaseSchema = z.object({
554
- scenario: z.string(),
555
- userPrompt: z.string(),
556
- toolTriggered: z.string().optional(),
557
- expectedOutput: z.string().optional()
570
+ scenario: z.string().describe("Short label for what this case demonstrates."),
571
+ userPrompt: z.string().describe("A realistic, standalone user message a reviewer can paste and run with no prior state or multi-turn setup. Vary phrasing and tone across cases."),
572
+ toolTriggered: z.string().optional().describe("The tool this prompt should invoke."),
573
+ expectedOutput: z.string().optional().describe("What the user should see, including post-interaction behaviour where relevant.")
558
574
  }).partial().describe("Each case: Scenario, User prompt, Tool triggered, Expected output.");
559
575
  const screenshotEntrySchema = z.object({
560
576
  prompt: z.string(),
561
- url: z.url()
577
+ url: z.url().or(z.literal(""))
562
578
  }).describe("Each screenshot: the user prompt that produced it + the image URL.");
563
579
  /** Accepts either a valid email or URL. */
564
580
  const supportChannelSchema = z.string().refine((value) => z.email().safeParse(value).success || z.url().safeParse(value).success, { error: "Must be a valid email or URL" });
@@ -578,22 +594,315 @@ const chatgptCategorySchema = z.enum([
578
594
  "TRAVEL"
579
595
  ]);
580
596
  const chatgptAuthenticationSchema = z.enum(["No auth needed", "OAuth 2.0"]);
581
- const chatgptAllowedCountriesSchema = z.enum(["Allow all", "Restrict to specific countries"]);
597
+ const chatgptCountryCodeSchema = z.enum([
598
+ "AD",
599
+ "AE",
600
+ "AF",
601
+ "AG",
602
+ "AL",
603
+ "AM",
604
+ "AO",
605
+ "AR",
606
+ "AT",
607
+ "AU",
608
+ "AW",
609
+ "AX",
610
+ "AZ",
611
+ "BA",
612
+ "BB",
613
+ "BD",
614
+ "BE",
615
+ "BF",
616
+ "BG",
617
+ "BH",
618
+ "BI",
619
+ "BJ",
620
+ "BL",
621
+ "BM",
622
+ "BN",
623
+ "BO",
624
+ "BR",
625
+ "BS",
626
+ "BT",
627
+ "BW",
628
+ "BZ",
629
+ "CA",
630
+ "CD",
631
+ "CF",
632
+ "CG",
633
+ "CH",
634
+ "CI",
635
+ "CL",
636
+ "CM",
637
+ "CO",
638
+ "CR",
639
+ "CV",
640
+ "CY",
641
+ "CZ",
642
+ "DE",
643
+ "DJ",
644
+ "DK",
645
+ "DM",
646
+ "DO",
647
+ "DZ",
648
+ "EC",
649
+ "EE",
650
+ "EG",
651
+ "ER",
652
+ "ES",
653
+ "ET",
654
+ "FI",
655
+ "FJ",
656
+ "FM",
657
+ "FO",
658
+ "FR",
659
+ "GA",
660
+ "GB",
661
+ "GD",
662
+ "GE",
663
+ "GF",
664
+ "GH",
665
+ "GL",
666
+ "GM",
667
+ "GN",
668
+ "GP",
669
+ "GQ",
670
+ "GR",
671
+ "GT",
672
+ "GW",
673
+ "GY",
674
+ "HN",
675
+ "HR",
676
+ "HT",
677
+ "HU",
678
+ "ID",
679
+ "IE",
680
+ "IL",
681
+ "IN",
682
+ "IQ",
683
+ "IS",
684
+ "IT",
685
+ "JM",
686
+ "JO",
687
+ "JP",
688
+ "KE",
689
+ "KG",
690
+ "KH",
691
+ "KI",
692
+ "KM",
693
+ "KN",
694
+ "KR",
695
+ "KW",
696
+ "KY",
697
+ "KZ",
698
+ "LA",
699
+ "LB",
700
+ "LC",
701
+ "LI",
702
+ "LK",
703
+ "LR",
704
+ "LS",
705
+ "LT",
706
+ "LU",
707
+ "LV",
708
+ "LY",
709
+ "MA",
710
+ "MC",
711
+ "MD",
712
+ "ME",
713
+ "MF",
714
+ "MG",
715
+ "MH",
716
+ "MK",
717
+ "ML",
718
+ "MM",
719
+ "MN",
720
+ "MQ",
721
+ "MR",
722
+ "MT",
723
+ "MU",
724
+ "MV",
725
+ "MW",
726
+ "MX",
727
+ "MY",
728
+ "MZ",
729
+ "NA",
730
+ "NC",
731
+ "NE",
732
+ "NG",
733
+ "NI",
734
+ "NL",
735
+ "NO",
736
+ "NP",
737
+ "NR",
738
+ "NZ",
739
+ "OM",
740
+ "PA",
741
+ "PE",
742
+ "PF",
743
+ "PG",
744
+ "PH",
745
+ "PK",
746
+ "PL",
747
+ "PM",
748
+ "PS",
749
+ "PT",
750
+ "PW",
751
+ "PY",
752
+ "QA",
753
+ "RE",
754
+ "RO",
755
+ "RS",
756
+ "RW",
757
+ "SA",
758
+ "SB",
759
+ "SC",
760
+ "SD",
761
+ "SE",
762
+ "SG",
763
+ "SH",
764
+ "SI",
765
+ "SJ",
766
+ "SK",
767
+ "SL",
768
+ "SM",
769
+ "SN",
770
+ "SO",
771
+ "SR",
772
+ "SS",
773
+ "ST",
774
+ "SV",
775
+ "SZ",
776
+ "TD",
777
+ "TF",
778
+ "TG",
779
+ "TH",
780
+ "TJ",
781
+ "TL",
782
+ "TM",
783
+ "TN",
784
+ "TO",
785
+ "TR",
786
+ "TT",
787
+ "TV",
788
+ "TW",
789
+ "TZ",
790
+ "UA",
791
+ "UG",
792
+ "US",
793
+ "UY",
794
+ "UZ",
795
+ "VA",
796
+ "VC",
797
+ "VN",
798
+ "VU",
799
+ "WF",
800
+ "WS",
801
+ "YE",
802
+ "YT",
803
+ "ZA",
804
+ "ZM",
805
+ "ZW"
806
+ ]);
807
+ const chatgptAllowedCountriesSchema = z.discriminatedUnion("mode", [
808
+ z.object({ mode: z.literal("all") }),
809
+ z.object({
810
+ mode: z.literal("allow"),
811
+ countries: z.array(chatgptCountryCodeSchema)
812
+ }),
813
+ z.object({
814
+ mode: z.literal("block"),
815
+ countries: z.array(chatgptCountryCodeSchema)
816
+ })
817
+ ]);
818
+ const chatgptTranslationLocaleSchema = z.enum([
819
+ "am",
820
+ "ar",
821
+ "bg-BG",
822
+ "bn-BD",
823
+ "bs-BA",
824
+ "ca-ES",
825
+ "cs-CZ",
826
+ "da-DK",
827
+ "de-DE",
828
+ "el-GR",
829
+ "es-419",
830
+ "es-ES",
831
+ "et-EE",
832
+ "fi-FI",
833
+ "fr-CA",
834
+ "fr-FR",
835
+ "gu-IN",
836
+ "hi-IN",
837
+ "hr-HR",
838
+ "hu-HU",
839
+ "hy-AM",
840
+ "id-ID",
841
+ "is-IS",
842
+ "it-IT",
843
+ "ja-JP",
844
+ "ka-GE",
845
+ "kk",
846
+ "kn-IN",
847
+ "ko-KR",
848
+ "lt",
849
+ "lv-LV",
850
+ "mk-MK",
851
+ "ml",
852
+ "mn",
853
+ "mr-IN",
854
+ "ms-MY",
855
+ "my-MM",
856
+ "nb-NO",
857
+ "nl-NL",
858
+ "pa",
859
+ "pl-PL",
860
+ "pt-BR",
861
+ "pt-PT",
862
+ "ro-RO",
863
+ "ru-RU",
864
+ "sk-SK",
865
+ "sl-SI",
866
+ "so-SO",
867
+ "sq-AL",
868
+ "sr-RS",
869
+ "sv-SE",
870
+ "sw-TZ",
871
+ "ta-IN",
872
+ "te-IN",
873
+ "th-TH",
874
+ "tl",
875
+ "tr-TR",
876
+ "uk-UA",
877
+ "ur",
878
+ "vi-VN",
879
+ "zh-CN",
880
+ "zh-HK",
881
+ "zh-TW"
882
+ ]);
582
883
  const negativeTestCaseSchema = z.object({
583
884
  scenario: z.string(),
584
885
  userPrompt: z.string()
585
886
  }).partial().describe("Each case: Scenario + User prompt (the app should NOT trigger).");
586
887
  const chatgptToolJustificationSchema = z.object({
587
888
  toolName: z.string(),
588
- readOnlyJustification: z.string(),
589
- openWorldJustification: z.string(),
590
- destructiveJustification: z.string()
591
- }).describe("Per-tool justification of each MCP annotation value (one sentence per hint).");
889
+ readOnlyJustification: z.string().describe("One sentence on what the tool reads and returns."),
890
+ openWorldJustification: z.string().describe("One sentence on whether the tool reaches external systems beyond your own service."),
891
+ destructiveJustification: z.string().describe("One sentence on whether the tool changes data. For a read-only tool, state the full triad: \"No data is created, modified, or deleted.\"")
892
+ }).describe("Per-tool justification of each MCP annotation value (one specific sentence per hint).");
893
+ /**
894
+ * Base copy fields, defined once and reused by both the submission form and per-locale
895
+ * translations so the constraints (tagline ≤ 30 chars) never drift. The translation generation
896
+ * path wraps these in {@link clampStringField} since the LLM tends to overshoot the limit.
897
+ */
898
+ const chatgptTaglineSchema = z.string().max(30);
899
+ const chatgptDescriptionSchema = z.string();
592
900
  const chatgptTranslationSchema = z.object({
593
- locale: z.string(),
594
- tagline: z.string().optional(),
595
- description: z.string().optional()
901
+ locale: chatgptTranslationLocaleSchema,
902
+ tagline: chatgptTaglineSchema,
903
+ description: chatgptDescriptionSchema
596
904
  }).describe("Locale-scoped override for tagline + description. English (US) is the default.");
905
+ chatgptTranslationSchema.extend({ tagline: clampStringField(chatgptTaglineSchema) });
597
906
  /**
598
907
  * Field order mirrors the ChatGPT (OpenAI) submission spreadsheet, grouped by section.
599
908
  * When adding/removing/reordering fields, keep this in sync with the sheet.
@@ -602,8 +911,8 @@ const chatgptSubmissionFormDataSchema = z.object({
602
911
  logoLight: z.string().describe("Logo icon for light mode. Square PNG, no borders or rounded corners (clients apply circular cropping)."),
603
912
  logoDark: z.string().optional().describe("Optional dark-mode logo icon. Square PNG, same specs as the light icon. Leave empty if the light icon also works on dark backgrounds."),
604
913
  appName: z.string().describe("The name users will see in ChatGPT and in the Apps Directory."),
605
- tagline: z.string().max(30).describe("Plain-language phrase focused on function and user value. 30 chars max."),
606
- description: z.string().describe("Clear, engaging description highlighting what the app does and why people will love it. Appears publicly on the directory page."),
914
+ tagline: chatgptTaglineSchema.describe("Plain-language phrase focused on function and user value, 30 chars max. Avoid generic superlatives like \"the best …\"."),
915
+ description: chatgptDescriptionSchema.describe("Clear, engaging description highlighting what the app does and why people will love it. Appears publicly on the directory page. End it by naming the product categories or intents the app does NOT cover, so ChatGPT learns when not to route to it (define exclusions by absent categories or wrong intents, never by naming other brands)."),
607
916
  category: chatgptCategorySchema.describe("Category from the OpenAI taxonomy."),
608
917
  developerName: z.string().describe("Developer name shown publicly on the app's directory page."),
609
918
  companyUrl: z.url().describe("Your company's main website URL."),
@@ -615,12 +924,12 @@ const chatgptSubmissionFormDataSchema = z.object({
615
924
  serverUrl: z.url().describe("URL of the MCP server."),
616
925
  authentication: chatgptAuthenticationSchema.describe("OAuth 2.0 or No auth. OAuth configuration is auto-discovered from the MCP server's metadata."),
617
926
  tools: z.array(toolDefinitionSchema).describe("List of tools exposed by the MCP server (auto-populated from the production server's manifest)."),
618
- toolJustifications: z.array(chatgptToolJustificationSchema).describe("Per-tool justification of `readOnlyHint`, `openWorldHint`, and `destructiveHint` annotation values."),
619
- testCases: z.array(positiveTestCaseSchema).describe("At least 5 positive test cases. Each: Scenario, User prompt, Tool triggered, Expected output. Coverage over all major use cases."),
620
- negativeTestCases: z.array(negativeTestCaseSchema).describe("3 negative test cases — prompts where the app should NOT trigger but the model might think it's relevant."),
621
- screenshots: z.array(screenshotEntrySchema).describe("In-app screenshots paired with the user prompt that produced them. Widget apps must show the widget UI; non-widget apps show the model response. Min 1, max 4 entries. First three are public. Images: 706px wide, 400–860px tall, PNG."),
927
+ toolJustifications: z.array(chatgptToolJustificationSchema).describe("Per-tool justification of `readOnlyHint`, `openWorldHint`, and `destructiveHint` annotation values. One short, specific sentence per hint describing what the tool actually does."),
928
+ testCases: z.array(positiveTestCaseSchema).describe("At least 5 positive test cases. Each: Scenario, User prompt, Tool triggered, Expected output. Collectively cover the full capability across different flow stages (initial search or browse, market or locale handling, post-interaction detail, an action ChatGPT performs on the user's behalf, and a conversion or secondary tool) rather than five variations of the same first step."),
929
+ negativeTestCases: z.array(negativeTestCaseSchema).describe("3 negative test cases: prompts where the app should NOT trigger but the model might think it is relevant. These become production routing metadata that teaches ChatGPT when to stay silent, so pick tight near-misses: a product category the app does not carry, the right brand or domain but an intent the app does not serve, or a boundary with a sibling app."),
930
+ screenshots: z.array(screenshotEntrySchema).max(3).describe("In-app screenshots paired with the user prompt that produced them. Widget apps must show the widget UI; non-widget apps show the model response. Min 1, max 3 entries, all public. Images: 706px wide, 400–860px tall, PNG."),
622
931
  translations: z.array(chatgptTranslationSchema).describe("Per-locale translation of tagline + description. English (US) is the default."),
623
- allowedCountries: chatgptAllowedCountriesSchema.describe("'Allow all' or restrict to a specific list. See OpenAI's supported countries list."),
932
+ allowedCountries: chatgptAllowedCountriesSchema.describe("Availability: all supported countries, or an allow-list / block-list of specific ones (ISO alpha-2)."),
624
933
  releaseNotes: z.string().describe("Publicly displayed on the app details page.")
625
934
  });
626
935
  chatgptSubmissionFormDataSchema.pick({
@@ -637,7 +946,7 @@ chatgptSubmissionFormDataSchema.pick({
637
946
  testCases: true,
638
947
  negativeTestCases: true,
639
948
  toolJustifications: true
640
- });
949
+ }).extend({ tagline: clampStringField(chatgptSubmissionFormDataSchema.shape.tagline) });
641
950
  const claudeCategorySchema = z.enum([
642
951
  "Business & Productivity",
643
952
  "Communication",
@@ -649,7 +958,7 @@ const claudeCategorySchema = z.enum([
649
958
  "Media & Entertainment",
650
959
  "Commerce & Shopping"
651
960
  ]);
652
- z.enum([
961
+ const claudeAuthenticationSchema = z.enum([
653
962
  "No auth needed",
654
963
  "OAuth 2.0",
655
964
  "Custom URL"
@@ -657,28 +966,34 @@ z.enum([
657
966
  const claudeMcpUrlTypeSchema = z.enum(["Universal URL", "Custom MCP URLs"]);
658
967
  z.enum(["Static OAuth Client", "Dynamic OAuth Client (DCR / CIMD)"]);
659
968
  const claudeReadWriteCapabilitiesSchema = z.enum([
660
- "Read only",
661
- "Write only",
662
- "Read + write"
969
+ "Read Only",
970
+ "Write Only",
971
+ "Read + Write"
663
972
  ]);
664
973
  const claudeTransportSchema = z.enum(["Streamable HTTP", "SSE"]);
974
+ const claudeTestedSurfaceSchema = z.enum([
975
+ "Claude.ai (web)",
976
+ "Claude Desktop",
977
+ "Claude Code",
978
+ "Cowork"
979
+ ]);
665
980
  const claudeThirdPartySchema = z.enum([
666
- "Web access (open web fetch / scraping / arbitrary URLs)",
667
- "Third-party AI model integration",
668
- "Third-party data retrieval (via workflow / aggregator)",
669
- "Third-party data modification (via workflow / aggregator)",
981
+ "Web access: Fetches information from the open web (e.g., web scraping, search engines, or browsing arbitrary URLs, not just connecting to a specific API)",
982
+ "Third-party AI model integration: Sends data to or receives data from a generative AI model other than Claude",
983
+ "Third-party data retrieval: Connects to external services that themselves retrieve data from other sources (e.g., workflow automation platforms or other services that aggregate or relay data from multiple third-party sources)",
984
+ "Third-party data modification: Can connect to external services that themselves create, update, or delete data in other sources (e.g., workflow automation platforms or other services that write to multiple third-party sources)",
670
985
  "N/A"
671
986
  ]);
672
987
  const claudeDataHandlingSchema = z.enum([
673
988
  "Server only accesses data explicitly requested by user",
674
989
  "No data is stored beyond session requirements",
675
- "Data transmission is encrypted (HTTPS / TLS)",
990
+ "Data transmission is encrypted (HTTPS/TLS)",
676
991
  "GDPR compliant (if applicable)"
677
992
  ]);
678
993
  const claudeSponsoredContentSchema = z.enum([
679
994
  "No, there is no sponsored content or advertisements",
680
995
  "Yes, there are banner ads or other paid visual elements",
681
- "Yes, returned content or ranking is impacted by sponsorship or ad placement"
996
+ "Yes, the returned content or ranking of returned content is impacted by sponsorship or ad placement"
682
997
  ]);
683
998
  /**
684
999
  * Field order mirrors the Claude (Anthropic) submission spreadsheet, grouped by section.
@@ -743,7 +1058,7 @@ If 'Yes', you will also be required to provide screenshots of your UI (see Promo
743
1058
  Note: These are attestations — you are legally agreeing to these practices by submitting the form.`),
744
1059
  personalDataHealthAccess: z.boolean().describe(`Select 'Yes' ONLY if your connector gives users access to their own personal health information — such as medical records, lab results, diagnoses, prescriptions, wearable health metrics (heart rate, sleep data, etc.), or mental health data.
745
1060
  Select 'No' for the vast majority of business/productivity/dev tools. When in doubt, select 'No'. This field triggers additional compliance review if 'Yes'.`),
746
- categories: z.array(claudeCategorySchema).describe(`Select the category or categories that best describe your connector. This determines where it appears in the directory's browse experience. Choose the most specific fit:
1061
+ category: claudeCategorySchema.describe(`Select the category that best describes your connector. This determines where it appears in the directory's browse experience. Choose the most specific fit:
747
1062
  • Business & Productivity — project management, CRM, HR, office tools
748
1063
  • Communication — email, chat, messaging, notifications
749
1064
  • Data & Analytics — dashboards, reporting, databases, BI tools
@@ -753,12 +1068,13 @@ Select 'No' for the vast majority of business/productivity/dev tools. When in do
753
1068
  • Health & Life Sciences — clinical, pharma, medical professional tools
754
1069
  • Media & Entertainment — content, publishing, streaming
755
1070
  • Commerce & Shopping — e-commerce, inventory, orders
756
- Multiple categories are allowed if genuinely applicable.`),
1071
+ Anthropic's submission form only accepts a single category.`),
757
1072
  sponsoredContentsOrAdvertisement: claudeSponsoredContentSchema.describe(`Be honest here — advertising is not permitted in the Connectors Directory per Anthropic's policy. Select the option that accurately describes your server:
758
1073
  • 'No, there is no sponsored content or advertisements' — the results your server returns are not influenced by paid placement or sponsorship. This is what almost all connectors should select.
759
1074
  • 'Yes, there are banner ads or other paid visual elements' — your UI includes visual ads. NOTE: this will likely lead to rejection, as Anthropic prohibits advertising in Claude.
760
1075
  • 'Yes, the returned content or ranking of returned content is impacted by sponsorship or ad placement' — paid results affect what you return. NOTE: this also likely leads to rejection.
761
1076
  If your server returns organic results from a platform that has ads in its own UI (but your API results are not affected by ads), select 'No'.`),
1077
+ authentication: claudeAuthenticationSchema.describe("How users authenticate with the server. No auth / OAuth 2.0 / Custom URL (not supported)."),
762
1078
  transportSupport: z.array(claudeTransportSchema).describe(`Select all transport protocols your server supports:
763
1079
  • 'Streamable HTTP' — the modern, recommended transport. Anthropic strongly recommends implementing this. This is the future-proof option and should be your default.
764
1080
  • 'SSE (Server-Sent Events)' — the older transport. SSE may be deprecated by Anthropic later in 2025/2026. If you currently only support SSE, you should plan to migrate to Streamable HTTP.
@@ -798,6 +1114,7 @@ Reviewers test every single tool you list here — don't list tools that don't w
798
1114
  • 'I've specified user-friendly titles for all tools' — every tool has a 'title' annotation (a human-readable label, different from the tool name).
799
1115
  • 'I've specified accurate tool annotations for all tools' — every tool has the correct annotation: readOnlyHint: true for read operations (search, get, list, fetch), OR destructiveHint: true for write operations (create, update, delete, send).
800
1116
  This is the #1 reason submissions get rejected (30% of all rejections). Do not check these boxes without actually having implemented the annotations. See MCP spec for how to add them.`),
1117
+ testedSurfaces: z.array(claudeTestedSurfaceSchema).describe(`Confirm testing is complete and your server works as intended in these surfaces. Select every surface you've verified. Claude.ai (web) and Claude Desktop are the usual targets for remote MCP servers; Claude Code and Cowork compatibility is not required. Anthropic requires at least two surfaces.`),
801
1118
  logoLight: z.string().describe(`Your connector's logo for light backgrounds. Requirements:
802
1119
  • Format: SVG only
803
1120
  • Aspect ratio: square (1:1)
@@ -824,17 +1141,24 @@ claudeSubmissionFormDataSchema.pick({
824
1141
  isMcpApp: true,
825
1142
  transportSupport: true,
826
1143
  primaryContactEmail: true,
827
- primaryContactName: true
1144
+ primaryContactName: true,
1145
+ authentication: true,
1146
+ personalDataHealthAccess: true,
1147
+ testedSurfaces: true
1148
+ }).extend({
1149
+ connectionRequirements: claudeSubmissionFormDataSchema.shape.connectionRequirements.optional(),
1150
+ testingCredentials: claudeSubmissionFormDataSchema.shape.testingCredentials.optional()
828
1151
  });
829
1152
  claudeSubmissionFormDataSchema.pick({
830
1153
  tagline: true,
831
1154
  description: true,
832
- categories: true,
1155
+ category: true,
833
1156
  testCases: true
834
- });
1157
+ }).extend({ tagline: clampStringField(claudeSubmissionFormDataSchema.shape.tagline) });
835
1158
  const submissionMetaFieldsSchema = z.object({
836
1159
  id: z.string(),
837
1160
  environmentId: z.string(),
1161
+ auditId: z.string().nullable(),
838
1162
  createdAt: z.coerce.date(),
839
1163
  updatedAt: z.coerce.date()
840
1164
  });
@@ -1010,7 +1334,7 @@ const createEnvironmentContractV1 = oc.route({
1010
1334
  id: z.string(),
1011
1335
  name: z.string(),
1012
1336
  sourceBranch: z.string().nullable().describe("The branch used to build the environment"),
1013
- urls: z.array(z.string().url()).describe("The URLs of the MCP server"),
1337
+ urls: z.array(z.url()).describe("The URLs of the MCP server"),
1014
1338
  createdAt: z.coerce.date(),
1015
1339
  projectId: z.string().describe("The ID of the project the environment belongs to")
1016
1340
  }));
@@ -1086,6 +1410,9 @@ const listProjectsContractV1 = oc.route({
1086
1410
  description: "List all projects for a team",
1087
1411
  tags: ["projects"],
1088
1412
  successDescription: "The list of projects"
1413
+ }).errors({
1414
+ NOT_FOUND: {},
1415
+ BAD_REQUEST: {}
1089
1416
  }).input(z.object({ teamId: z.string().optional() }).optional()).output(z.array(projectOutputSchema));
1090
1417
  const createProjectContractV1 = oc.route({
1091
1418
  path: "/v1/projects",
@@ -1181,7 +1508,10 @@ const deleteEnvironmentVariableContractV1 = oc.route({
1181
1508
  description: "Delete an environment variable by ID",
1182
1509
  tags: ["environments"],
1183
1510
  successDescription: "The environment variable has been deleted successfully"
1184
- }).errors({ NOT_FOUND: {} }).input(z.object({ environmentVariableId: z.string().describe("The ID of the environment variable") })).output(z.object({ success: z.literal(true) }));
1511
+ }).errors({
1512
+ NOT_FOUND: {},
1513
+ BAD_REQUEST: {}
1514
+ }).input(z.object({ environmentVariableId: z.string().describe("The ID of the environment variable") })).output(z.object({ success: z.literal(true) }));
1185
1515
  const deleteProjectContractV1 = oc.route({
1186
1516
  path: "/v1/projects/{projectId}",
1187
1517
  method: "DELETE",
@@ -1226,6 +1556,9 @@ const uploadDeploymentArtifactContractV1 = oc.route({
1226
1556
  description: "Return a presigned S3 URL to upload a deployment artifact",
1227
1557
  tags: ["deployments"],
1228
1558
  successDescription: "The presigned upload URL has been generated successfully"
1559
+ }).errors({
1560
+ NOT_FOUND: {},
1561
+ BAD_REQUEST: {}
1229
1562
  }).input(z.object({ teamId: z.string().optional() }).optional()).output(z.object({
1230
1563
  uploadUrl: z.url().describe("Presigned S3 URL to upload the source archive with HTTP PUT"),
1231
1564
  token: z.string().describe("Token to identify the source archive"),
@@ -1399,7 +1732,7 @@ const getTunnelTicketContractV1 = oc.route({
1399
1732
  description: "Get a signed ticket for establishing a tunnel connection. Requires user authentication (API keys are not supported).",
1400
1733
  tags: ["tunnels"],
1401
1734
  successDescription: "The tunnel ticket"
1402
- }).output(z.object({
1735
+ }).errors({ FORBIDDEN: {} }).output(z.object({
1403
1736
  subdomain: z.string().describe("The subdomain assigned to the user"),
1404
1737
  ticket: z.string().describe("The signed tunnel ticket"),
1405
1738
  tunnelHost: z.string().describe("The tunnel host to connect to")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alpic-ai/api",
3
- "version": "0.0.0-dev.gff1b65e",
3
+ "version": "0.0.0-dev.gff8f374",
4
4
  "description": "Contract for the Alpic API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",
@@ -17,19 +17,19 @@
17
17
  "author": "Alpic",
18
18
  "license": "ISC",
19
19
  "dependencies": {
20
- "@orpc/contract": "^1.14.3",
20
+ "@orpc/contract": "^1.14.6",
21
21
  "ms": "^2.1.3",
22
22
  "zod": "^4.4.3"
23
23
  },
24
24
  "devDependencies": {
25
- "@orpc/openapi": "^1.14.3",
26
- "@orpc/zod": "^1.14.3",
25
+ "@orpc/openapi": "^1.14.6",
26
+ "@orpc/zod": "^1.14.6",
27
27
  "@total-typescript/tsconfig": "^1.0.4",
28
28
  "@types/ms": "^2.1.0",
29
29
  "shx": "^0.4.0",
30
- "tsdown": "^0.22.0",
30
+ "tsdown": "^0.22.2",
31
31
  "typescript": "^6.0.3",
32
- "vitest": "^4.1.6",
32
+ "vitest": "^4.1.8",
33
33
  "@alpic-ai/domains": "0.0.0"
34
34
  },
35
35
  "scripts": {