@alpic-ai/api 0.0.0-staging.g0c67562 → 0.0.0-staging.g0cf1ed0

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
@@ -257,6 +257,909 @@ declare const contract: {
257
257
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
258
258
  NOT_FOUND: {};
259
259
  BAD_REQUEST: {};
260
+ CONFLICT: {};
261
+ }>, Record<never, never>>;
262
+ };
263
+ getLogs: {
264
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
265
+ environmentId: z.ZodString;
266
+ since: z.ZodOptional<z.ZodString>;
267
+ until: z.ZodOptional<z.ZodString>;
268
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
269
+ level: z.ZodOptional<z.ZodArray<z.ZodEnum<{
270
+ INFO: "INFO";
271
+ ERROR: "ERROR";
272
+ WARNING: "WARNING";
273
+ DEBUG: "DEBUG";
274
+ }>>>;
275
+ search: z.ZodOptional<z.ZodString>;
276
+ nextToken: z.ZodOptional<z.ZodString>;
277
+ }, z.core.$strip>, z.ZodObject<{
278
+ logs: z.ZodArray<z.ZodObject<{
279
+ timestamp: z.ZodCoercedDate<unknown>;
280
+ type: z.ZodEnum<{
281
+ INFO: "INFO";
282
+ ERROR: "ERROR";
283
+ WARNING: "WARNING";
284
+ DEBUG: "DEBUG";
285
+ START: "START";
286
+ END: "END";
287
+ }>;
288
+ requestId: z.ZodString;
289
+ content: z.ZodOptional<z.ZodString>;
290
+ method: z.ZodOptional<z.ZodString>;
291
+ durationInMs: z.ZodOptional<z.ZodNumber>;
292
+ }, z.core.$strip>>;
293
+ nextToken: z.ZodNullable<z.ZodString>;
294
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
295
+ NOT_FOUND: {};
296
+ BAD_REQUEST: {};
297
+ }>, Record<never, never>>;
298
+ };
299
+ getLatestLogs: {
300
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
301
+ environmentId: z.ZodString;
302
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
303
+ level: z.ZodOptional<z.ZodArray<z.ZodEnum<{
304
+ INFO: "INFO";
305
+ ERROR: "ERROR";
306
+ WARNING: "WARNING";
307
+ DEBUG: "DEBUG";
308
+ }>>>;
309
+ search: z.ZodOptional<z.ZodString>;
310
+ }, z.core.$strip>, z.ZodObject<{
311
+ logs: z.ZodArray<z.ZodObject<{
312
+ timestamp: z.ZodCoercedDate<unknown>;
313
+ type: z.ZodEnum<{
314
+ INFO: "INFO";
315
+ ERROR: "ERROR";
316
+ WARNING: "WARNING";
317
+ DEBUG: "DEBUG";
318
+ START: "START";
319
+ END: "END";
320
+ }>;
321
+ requestId: z.ZodString;
322
+ content: z.ZodOptional<z.ZodString>;
323
+ method: z.ZodOptional<z.ZodString>;
324
+ durationInMs: z.ZodOptional<z.ZodNumber>;
325
+ }, z.core.$strip>>;
326
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
327
+ NOT_FOUND: {};
328
+ BAD_REQUEST: {};
329
+ }>, Record<never, never>>;
330
+ };
331
+ };
332
+ environmentVariables: {
333
+ list: {
334
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
335
+ environmentId: z.ZodString;
336
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
337
+ id: z.ZodString;
338
+ key: z.ZodString;
339
+ value: z.ZodString;
340
+ isSecret: z.ZodBoolean;
341
+ createdAt: z.ZodCoercedDate<unknown>;
342
+ }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
343
+ NOT_FOUND: {};
344
+ }>, Record<never, never>>;
345
+ };
346
+ create: {
347
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
348
+ environmentId: z.ZodString;
349
+ environmentVariables: z.ZodArray<z.ZodObject<{
350
+ key: z.ZodString;
351
+ value: z.ZodString;
352
+ isSecret: z.ZodDefault<z.ZodBoolean>;
353
+ }, z.core.$strip>>;
354
+ }, z.core.$strip>, z.ZodObject<{
355
+ success: z.ZodLiteral<true>;
356
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
357
+ NOT_FOUND: {};
358
+ BAD_REQUEST: {};
359
+ }>, Record<never, never>>;
360
+ };
361
+ update: {
362
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
363
+ environmentVariableId: z.ZodString;
364
+ key: z.ZodString;
365
+ value: z.ZodOptional<z.ZodString>;
366
+ isSecret: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
367
+ }, z.core.$strip>, z.ZodObject<{
368
+ success: z.ZodLiteral<true>;
369
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
370
+ NOT_FOUND: {};
371
+ BAD_REQUEST: {};
372
+ }>, Record<never, never>>;
373
+ };
374
+ delete: {
375
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
376
+ environmentVariableId: z.ZodString;
377
+ }, z.core.$strip>, z.ZodObject<{
378
+ success: z.ZodLiteral<true>;
379
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
380
+ NOT_FOUND: {};
381
+ BAD_REQUEST: {};
382
+ }>, Record<never, never>>;
383
+ };
384
+ };
385
+ projects: {
386
+ update: {
387
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
388
+ projectId: z.ZodString;
389
+ name: z.ZodOptional<z.ZodString>;
390
+ sourceRepository: z.ZodOptional<z.ZodNullable<z.ZodString>>;
391
+ }, z.core.$strip>, z.ZodObject<{
392
+ id: z.ZodString;
393
+ name: z.ZodString;
394
+ teamId: z.ZodString;
395
+ sourceRepository: z.ZodNullable<z.ZodString>;
396
+ runtime: z.ZodEnum<{
397
+ "python3.13": "python3.13";
398
+ "python3.14": "python3.14";
399
+ node22: "node22";
400
+ node24: "node24";
401
+ }>;
402
+ transport: z.ZodNullable<z.ZodEnum<{
403
+ stdio: "stdio";
404
+ sse: "sse";
405
+ streamablehttp: "streamablehttp";
406
+ }>>;
407
+ rootDirectory: z.ZodNullable<z.ZodString>;
408
+ buildCommand: z.ZodNullable<z.ZodString>;
409
+ buildOutputDir: z.ZodNullable<z.ZodString>;
410
+ installCommand: z.ZodNullable<z.ZodString>;
411
+ startCommand: z.ZodNullable<z.ZodString>;
412
+ createdAt: z.ZodCoercedDate<unknown>;
413
+ productionEnvironment: z.ZodNullable<z.ZodObject<{
414
+ id: z.ZodString;
415
+ name: z.ZodString;
416
+ mcpServerUrl: z.ZodString;
417
+ domains: z.ZodArray<z.ZodObject<{
418
+ domain: z.ZodString;
419
+ status: z.ZodEnum<{
420
+ ongoing: "ongoing";
421
+ deployed: "deployed";
422
+ failed: "failed";
423
+ }>;
424
+ createdAt: z.ZodCoercedDate<unknown>;
425
+ }, z.core.$strip>>;
426
+ latestDeployment: z.ZodNullable<z.ZodObject<{
427
+ id: z.ZodString;
428
+ status: z.ZodEnum<{
429
+ ongoing: "ongoing";
430
+ deployed: "deployed";
431
+ failed: "failed";
432
+ canceled: "canceled";
433
+ }>;
434
+ sourceCommitId: z.ZodNullable<z.ZodString>;
435
+ sourceCommitMessage: z.ZodNullable<z.ZodString>;
436
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
437
+ }, z.core.$strip>>;
438
+ }, z.core.$strip>>;
439
+ environments: z.ZodArray<z.ZodObject<{
440
+ id: z.ZodString;
441
+ name: z.ZodString;
442
+ sourceBranch: z.ZodNullable<z.ZodString>;
443
+ mcpServerUrl: z.ZodString;
444
+ createdAt: z.ZodCoercedDate<unknown>;
445
+ projectId: z.ZodString;
446
+ latestDeployment: z.ZodNullable<z.ZodObject<{
447
+ id: z.ZodString;
448
+ status: z.ZodEnum<{
449
+ ongoing: "ongoing";
450
+ deployed: "deployed";
451
+ failed: "failed";
452
+ canceled: "canceled";
453
+ }>;
454
+ sourceCommitId: z.ZodNullable<z.ZodString>;
455
+ sourceCommitMessage: z.ZodNullable<z.ZodString>;
456
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
457
+ }, z.core.$strip>>;
458
+ }, z.core.$strip>>;
459
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
460
+ NOT_FOUND: {};
461
+ BAD_REQUEST: {};
462
+ FORBIDDEN: {};
463
+ }>, Record<never, never>>;
464
+ };
465
+ get: {
466
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
467
+ projectId: z.ZodString;
468
+ }, z.core.$strip>, z.ZodObject<{
469
+ id: z.ZodString;
470
+ name: z.ZodString;
471
+ teamId: z.ZodString;
472
+ sourceRepository: z.ZodNullable<z.ZodString>;
473
+ runtime: z.ZodEnum<{
474
+ "python3.13": "python3.13";
475
+ "python3.14": "python3.14";
476
+ node22: "node22";
477
+ node24: "node24";
478
+ }>;
479
+ transport: z.ZodNullable<z.ZodEnum<{
480
+ stdio: "stdio";
481
+ sse: "sse";
482
+ streamablehttp: "streamablehttp";
483
+ }>>;
484
+ rootDirectory: z.ZodNullable<z.ZodString>;
485
+ buildCommand: z.ZodNullable<z.ZodString>;
486
+ buildOutputDir: z.ZodNullable<z.ZodString>;
487
+ installCommand: z.ZodNullable<z.ZodString>;
488
+ startCommand: z.ZodNullable<z.ZodString>;
489
+ createdAt: z.ZodCoercedDate<unknown>;
490
+ productionEnvironment: z.ZodNullable<z.ZodObject<{
491
+ id: z.ZodString;
492
+ name: z.ZodString;
493
+ mcpServerUrl: z.ZodString;
494
+ domains: z.ZodArray<z.ZodObject<{
495
+ domain: z.ZodString;
496
+ status: z.ZodEnum<{
497
+ ongoing: "ongoing";
498
+ deployed: "deployed";
499
+ failed: "failed";
500
+ }>;
501
+ createdAt: z.ZodCoercedDate<unknown>;
502
+ }, z.core.$strip>>;
503
+ latestDeployment: z.ZodNullable<z.ZodObject<{
504
+ id: z.ZodString;
505
+ status: z.ZodEnum<{
506
+ ongoing: "ongoing";
507
+ deployed: "deployed";
508
+ failed: "failed";
509
+ canceled: "canceled";
510
+ }>;
511
+ sourceCommitId: z.ZodNullable<z.ZodString>;
512
+ sourceCommitMessage: z.ZodNullable<z.ZodString>;
513
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
514
+ }, z.core.$strip>>;
515
+ }, z.core.$strip>>;
516
+ environments: z.ZodArray<z.ZodObject<{
517
+ id: z.ZodString;
518
+ name: z.ZodString;
519
+ sourceBranch: z.ZodNullable<z.ZodString>;
520
+ mcpServerUrl: z.ZodString;
521
+ createdAt: z.ZodCoercedDate<unknown>;
522
+ projectId: z.ZodString;
523
+ latestDeployment: z.ZodNullable<z.ZodObject<{
524
+ id: z.ZodString;
525
+ status: z.ZodEnum<{
526
+ ongoing: "ongoing";
527
+ deployed: "deployed";
528
+ failed: "failed";
529
+ canceled: "canceled";
530
+ }>;
531
+ sourceCommitId: z.ZodNullable<z.ZodString>;
532
+ sourceCommitMessage: z.ZodNullable<z.ZodString>;
533
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
534
+ }, z.core.$strip>>;
535
+ }, z.core.$strip>>;
536
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
537
+ NOT_FOUND: {};
538
+ }>, Record<never, never>>;
539
+ };
540
+ list: {
541
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodObject<{
542
+ teamId: z.ZodOptional<z.ZodString>;
543
+ }, z.core.$strip>>, z.ZodArray<z.ZodObject<{
544
+ id: z.ZodString;
545
+ name: z.ZodString;
546
+ teamId: z.ZodString;
547
+ sourceRepository: z.ZodNullable<z.ZodString>;
548
+ runtime: z.ZodEnum<{
549
+ "python3.13": "python3.13";
550
+ "python3.14": "python3.14";
551
+ node22: "node22";
552
+ node24: "node24";
553
+ }>;
554
+ transport: z.ZodNullable<z.ZodEnum<{
555
+ stdio: "stdio";
556
+ sse: "sse";
557
+ streamablehttp: "streamablehttp";
558
+ }>>;
559
+ rootDirectory: z.ZodNullable<z.ZodString>;
560
+ buildCommand: z.ZodNullable<z.ZodString>;
561
+ buildOutputDir: z.ZodNullable<z.ZodString>;
562
+ installCommand: z.ZodNullable<z.ZodString>;
563
+ startCommand: z.ZodNullable<z.ZodString>;
564
+ createdAt: z.ZodCoercedDate<unknown>;
565
+ productionEnvironment: z.ZodNullable<z.ZodObject<{
566
+ id: z.ZodString;
567
+ name: z.ZodString;
568
+ mcpServerUrl: z.ZodString;
569
+ domains: z.ZodArray<z.ZodObject<{
570
+ domain: z.ZodString;
571
+ status: z.ZodEnum<{
572
+ ongoing: "ongoing";
573
+ deployed: "deployed";
574
+ failed: "failed";
575
+ }>;
576
+ createdAt: z.ZodCoercedDate<unknown>;
577
+ }, z.core.$strip>>;
578
+ latestDeployment: z.ZodNullable<z.ZodObject<{
579
+ id: z.ZodString;
580
+ status: z.ZodEnum<{
581
+ ongoing: "ongoing";
582
+ deployed: "deployed";
583
+ failed: "failed";
584
+ canceled: "canceled";
585
+ }>;
586
+ sourceCommitId: z.ZodNullable<z.ZodString>;
587
+ sourceCommitMessage: z.ZodNullable<z.ZodString>;
588
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
589
+ }, z.core.$strip>>;
590
+ }, z.core.$strip>>;
591
+ environments: z.ZodArray<z.ZodObject<{
592
+ id: z.ZodString;
593
+ name: z.ZodString;
594
+ sourceBranch: z.ZodNullable<z.ZodString>;
595
+ mcpServerUrl: z.ZodString;
596
+ createdAt: z.ZodCoercedDate<unknown>;
597
+ projectId: z.ZodString;
598
+ latestDeployment: z.ZodNullable<z.ZodObject<{
599
+ id: z.ZodString;
600
+ status: z.ZodEnum<{
601
+ ongoing: "ongoing";
602
+ deployed: "deployed";
603
+ failed: "failed";
604
+ canceled: "canceled";
605
+ }>;
606
+ sourceCommitId: z.ZodNullable<z.ZodString>;
607
+ sourceCommitMessage: z.ZodNullable<z.ZodString>;
608
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
609
+ }, z.core.$strip>>;
610
+ }, z.core.$strip>>;
611
+ }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
612
+ NOT_FOUND: {};
613
+ BAD_REQUEST: {};
614
+ }>, Record<never, never>>;
615
+ };
616
+ create: {
617
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
618
+ teamId: z.ZodOptional<z.ZodString>;
619
+ name: z.ZodString;
620
+ sourceRepository: z.ZodOptional<z.ZodString>;
621
+ branchName: z.ZodOptional<z.ZodString>;
622
+ runtime: z.ZodEnum<{
623
+ "python3.13": "python3.13";
624
+ "python3.14": "python3.14";
625
+ node22: "node22";
626
+ node24: "node24";
627
+ }>;
628
+ transport: z.ZodOptional<z.ZodEnum<{
629
+ stdio: "stdio";
630
+ sse: "sse";
631
+ streamablehttp: "streamablehttp";
632
+ }>>;
633
+ rootDirectory: z.ZodOptional<z.ZodString>;
634
+ settings: z.ZodDefault<z.ZodObject<{
635
+ installCommand: z.ZodOptional<z.ZodString>;
636
+ buildCommand: z.ZodOptional<z.ZodString>;
637
+ buildOutputDir: z.ZodOptional<z.ZodString>;
638
+ startCommand: z.ZodOptional<z.ZodString>;
639
+ }, z.core.$strip>>;
640
+ environmentVariables: z.ZodDefault<z.ZodArray<z.ZodObject<{
641
+ key: z.ZodString;
642
+ value: z.ZodString;
643
+ isSecret: z.ZodDefault<z.ZodBoolean>;
644
+ }, z.core.$strip>>>;
645
+ }, z.core.$strip>, z.ZodObject<{
646
+ id: z.ZodString;
647
+ name: z.ZodString;
648
+ teamId: z.ZodString;
649
+ environments: z.ZodArray<z.ZodObject<{
650
+ id: z.ZodString;
651
+ name: z.ZodString;
652
+ }, z.core.$strip>>;
653
+ productionEnvironment: z.ZodNullable<z.ZodObject<{
654
+ id: z.ZodString;
655
+ name: z.ZodString;
656
+ }, z.core.$strip>>;
657
+ sourceRepository: z.ZodNullable<z.ZodString>;
658
+ runtime: z.ZodEnum<{
659
+ "python3.13": "python3.13";
660
+ "python3.14": "python3.14";
661
+ node22: "node22";
662
+ node24: "node24";
663
+ }>;
664
+ transport: z.ZodNullable<z.ZodEnum<{
665
+ stdio: "stdio";
666
+ sse: "sse";
667
+ streamablehttp: "streamablehttp";
668
+ }>>;
669
+ rootDirectory: z.ZodNullable<z.ZodString>;
670
+ buildCommand: z.ZodNullable<z.ZodString>;
671
+ buildOutputDir: z.ZodNullable<z.ZodString>;
672
+ installCommand: z.ZodNullable<z.ZodString>;
673
+ startCommand: z.ZodNullable<z.ZodString>;
674
+ createdAt: z.ZodCoercedDate<unknown>;
675
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
676
+ NOT_FOUND: {};
677
+ BAD_REQUEST: {};
678
+ FORBIDDEN: {};
679
+ }>, Record<never, never>>;
680
+ };
681
+ delete: {
682
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
683
+ projectId: z.ZodString;
684
+ }, z.core.$strip>, z.ZodObject<{
685
+ success: z.ZodLiteral<true>;
686
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
687
+ NOT_FOUND: {};
688
+ }>, Record<never, never>>;
689
+ };
690
+ };
691
+ playground: {
692
+ get: {
693
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
694
+ environmentId: z.ZodString;
695
+ }, z.core.$strip>, z.ZodObject<{
696
+ isPlaygroundEnabled: z.ZodBoolean;
697
+ serverMetadata: z.ZodNullable<z.ZodObject<{
698
+ name: z.ZodString;
699
+ description: z.ZodString;
700
+ headers: z.ZodArray<z.ZodObject<{
701
+ name: z.ZodString;
702
+ description: z.ZodString;
703
+ isRequired: z.ZodBoolean;
704
+ isSecret: z.ZodBoolean;
705
+ }, z.core.$strip>>;
706
+ examplePrompts: z.ZodArray<z.ZodObject<{
707
+ title: z.ZodString;
708
+ prompt: z.ZodString;
709
+ }, z.core.$strip>>;
710
+ }, z.core.$strip>>;
711
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
712
+ NOT_FOUND: {};
713
+ }>, Record<never, never>>;
714
+ };
715
+ upsert: {
716
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
717
+ environmentId: z.ZodString;
718
+ isPlaygroundEnabled: z.ZodOptional<z.ZodBoolean>;
719
+ name: z.ZodOptional<z.ZodString>;
720
+ description: z.ZodOptional<z.ZodString>;
721
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
722
+ name: z.ZodString;
723
+ description: z.ZodString;
724
+ isRequired: z.ZodDefault<z.ZodBoolean>;
725
+ isSecret: z.ZodDefault<z.ZodBoolean>;
726
+ }, z.core.$strip>>>;
727
+ examplePrompts: z.ZodOptional<z.ZodArray<z.ZodObject<{
728
+ title: z.ZodString;
729
+ prompt: z.ZodString;
730
+ }, z.core.$strip>>>;
731
+ }, z.core.$strip>, z.ZodObject<{
732
+ isPlaygroundEnabled: z.ZodBoolean;
733
+ serverMetadata: z.ZodNullable<z.ZodObject<{
734
+ name: z.ZodString;
735
+ description: z.ZodString;
736
+ headers: z.ZodArray<z.ZodObject<{
737
+ name: z.ZodString;
738
+ description: z.ZodString;
739
+ isRequired: z.ZodBoolean;
740
+ isSecret: z.ZodBoolean;
741
+ }, z.core.$strip>>;
742
+ examplePrompts: z.ZodArray<z.ZodObject<{
743
+ title: z.ZodString;
744
+ prompt: z.ZodString;
745
+ }, z.core.$strip>>;
746
+ }, z.core.$strip>>;
747
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
748
+ NOT_FOUND: {};
749
+ BAD_REQUEST: {};
750
+ }>, Record<never, never>>;
751
+ };
752
+ };
753
+ tunnels: {
754
+ getTicket: {
755
+ v1: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
756
+ subdomain: z.ZodString;
757
+ ticket: z.ZodString;
758
+ tunnelHost: z.ZodString;
759
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
760
+ FORBIDDEN: {};
761
+ }>, Record<never, never>>;
762
+ };
763
+ };
764
+ distribution: {
765
+ publish: {
766
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
767
+ projectId: z.ZodString;
768
+ domain: z.ZodString;
769
+ title: z.ZodString;
770
+ description: z.ZodString;
771
+ websiteUrl: z.ZodOptional<z.ZodURL>;
772
+ iconSrc: z.ZodOptional<z.ZodURL>;
773
+ dryRun: z.ZodOptional<z.ZodBoolean>;
774
+ }, z.core.$strip>, z.ZodObject<{
775
+ serverFields: z.ZodObject<{
776
+ $schema: z.ZodString;
777
+ name: z.ZodString;
778
+ description: z.ZodString;
779
+ version: z.ZodOptional<z.ZodString>;
780
+ title: z.ZodOptional<z.ZodString>;
781
+ websiteUrl: z.ZodOptional<z.ZodURL>;
782
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
783
+ src: z.ZodURL;
784
+ mimeType: z.ZodOptional<z.ZodString>;
785
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString>>;
786
+ }, z.core.$strip>>>;
787
+ remotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
788
+ type: z.ZodString;
789
+ url: z.ZodOptional<z.ZodURL>;
790
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
791
+ name: z.ZodString;
792
+ description: z.ZodString;
793
+ isRequired: z.ZodOptional<z.ZodBoolean>;
794
+ isSecret: z.ZodOptional<z.ZodBoolean>;
795
+ }, z.core.$strip>>>;
796
+ }, z.core.$strip>>>;
797
+ }, z.core.$strip>;
798
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
799
+ NOT_FOUND: {};
800
+ BAD_REQUEST: {};
801
+ }>, Record<never, never>>;
802
+ };
803
+ get: {
804
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
805
+ projectId: z.ZodString;
806
+ domain: z.ZodString;
807
+ }, z.core.$strip>, z.ZodObject<{
808
+ serverFields: z.ZodObject<{
809
+ $schema: z.ZodString;
810
+ name: z.ZodString;
811
+ description: z.ZodString;
812
+ version: z.ZodOptional<z.ZodString>;
813
+ title: z.ZodOptional<z.ZodString>;
814
+ websiteUrl: z.ZodOptional<z.ZodURL>;
815
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
816
+ src: z.ZodURL;
817
+ mimeType: z.ZodOptional<z.ZodString>;
818
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString>>;
819
+ }, z.core.$strip>>>;
820
+ remotes: z.ZodOptional<z.ZodArray<z.ZodObject<{
821
+ type: z.ZodString;
822
+ url: z.ZodOptional<z.ZodURL>;
823
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
824
+ name: z.ZodString;
825
+ description: z.ZodString;
826
+ isRequired: z.ZodOptional<z.ZodBoolean>;
827
+ isSecret: z.ZodOptional<z.ZodBoolean>;
828
+ }, z.core.$strip>>>;
829
+ }, z.core.$strip>>>;
830
+ }, z.core.$strip>;
831
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
832
+ NOT_FOUND: {};
833
+ BAD_REQUEST: {};
834
+ }>, Record<never, never>>;
835
+ };
836
+ };
837
+ beacon: {
838
+ create: {
839
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
840
+ targetUrl: z.ZodURL;
841
+ teamId: z.ZodOptional<z.ZodString>;
842
+ projectId: z.ZodOptional<z.ZodString>;
843
+ excludeCategories: z.ZodOptional<z.ZodArray<z.ZodEnum<{
844
+ connectivity: "connectivity";
845
+ "tool-metadata": "tool-metadata";
846
+ "resource-metadata": "resource-metadata";
847
+ performance: "performance";
848
+ e2e: "e2e";
849
+ }>>>;
850
+ }, z.core.$strip>, z.ZodObject<{
851
+ id: z.ZodString;
852
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
853
+ NOT_FOUND: {};
854
+ BAD_REQUEST: {};
855
+ DNS_RESOLUTION_FAILED: {
856
+ status: number;
857
+ };
858
+ }>, Record<never, never>>;
859
+ };
860
+ get: {
861
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
862
+ auditId: z.ZodString;
863
+ }, z.core.$strip>, z.ZodObject<{
864
+ id: z.ZodString;
865
+ targetUrl: z.ZodString;
866
+ status: z.ZodEnum<{
867
+ failed: "failed";
868
+ pending: "pending";
869
+ partial: "partial";
870
+ completed: "completed";
871
+ }>;
872
+ durationMs: z.ZodNullable<z.ZodNumber>;
873
+ createdAt: z.ZodCoercedDate<unknown>;
874
+ report: z.ZodNullable<z.ZodObject<{
875
+ schemaVersion: z.ZodString;
876
+ auditId: z.ZodString;
877
+ targetUrl: z.ZodString;
878
+ startedAt: z.ZodString;
879
+ completedAt: z.ZodString;
880
+ durationMs: z.ZodNumber;
881
+ results: z.ZodArray<z.ZodObject<{
882
+ checkId: z.ZodString;
883
+ checkName: z.ZodString;
884
+ description: z.ZodString;
885
+ status: z.ZodEnum<{
886
+ pending: "pending";
887
+ pass: "pass";
888
+ fail: "fail";
889
+ skip: "skip";
890
+ }>;
891
+ message: z.ZodString;
892
+ skipReason: z.ZodOptional<z.ZodString>;
893
+ severity: z.ZodEnum<{
894
+ error: "error";
895
+ warning: "warning";
896
+ info: "info";
897
+ }>;
898
+ category: z.ZodEnum<{
899
+ connectivity: "connectivity";
900
+ "tool-metadata": "tool-metadata";
901
+ "resource-metadata": "resource-metadata";
902
+ performance: "performance";
903
+ e2e: "e2e";
904
+ }>;
905
+ scope: z.ZodEnum<{
906
+ server: "server";
907
+ view: "view";
908
+ }>;
909
+ platforms: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
910
+ chatgpt: "chatgpt";
911
+ claudeai: "claudeai";
912
+ }>>>>;
913
+ durationMs: z.ZodNumber;
914
+ details: z.ZodOptional<z.ZodArray<z.ZodObject<{
915
+ label: z.ZodString;
916
+ value: z.ZodOptional<z.ZodString>;
917
+ }, z.core.$strip>>>;
918
+ hint: z.ZodOptional<z.ZodObject<{
919
+ text: z.ZodString;
920
+ }, z.core.$strip>>;
921
+ }, z.core.$strip>>;
922
+ requiresAuth: z.ZodBoolean;
923
+ hasViewSupport: z.ZodBoolean;
924
+ viewPlatforms: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
925
+ chatgpt: "chatgpt";
926
+ claudeai: "claudeai";
927
+ }>>>>;
928
+ isReadyForPlatform: z.ZodRecord<z.ZodEnum<{
929
+ chatgpt: "chatgpt";
930
+ claudeai: "claudeai";
931
+ }>, z.ZodBoolean>;
932
+ widgetScreenshotKeys: z.ZodObject<{
933
+ chatgpt: z.ZodOptional<z.ZodString>;
934
+ claudeai: z.ZodOptional<z.ZodString>;
935
+ }, z.core.$strip>;
936
+ widgetScreenshots: z.ZodObject<{
937
+ chatgpt: z.ZodOptional<z.ZodObject<{
938
+ url: z.ZodString;
939
+ }, z.core.$strip>>;
940
+ claudeai: z.ZodOptional<z.ZodObject<{
941
+ url: z.ZodString;
942
+ }, z.core.$strip>>;
943
+ }, z.core.$strip>;
944
+ }, z.core.$strip>>;
945
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
946
+ NOT_FOUND: {};
947
+ }>, Record<never, never>>;
948
+ };
949
+ };
950
+ };
951
+ declare const contractForDocs: {
952
+ deployments: {
953
+ list: {
954
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
955
+ projectId: z.ZodString;
956
+ status: z.ZodOptional<z.ZodArray<z.ZodEnum<{
957
+ ongoing: "ongoing";
958
+ deployed: "deployed";
959
+ failed: "failed";
960
+ canceled: "canceled";
961
+ }>>>;
962
+ environmentId: z.ZodOptional<z.ZodString>;
963
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
964
+ id: z.ZodString;
965
+ status: z.ZodEnum<{
966
+ ongoing: "ongoing";
967
+ deployed: "deployed";
968
+ failed: "failed";
969
+ canceled: "canceled";
970
+ }>;
971
+ sourceRef: z.ZodNullable<z.ZodString>;
972
+ sourceCommitId: z.ZodNullable<z.ZodString>;
973
+ sourceCommitMessage: z.ZodNullable<z.ZodString>;
974
+ authorUsername: z.ZodNullable<z.ZodString>;
975
+ authorAvatarUrl: z.ZodNullable<z.ZodString>;
976
+ startedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
977
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
978
+ environmentId: z.ZodString;
979
+ environmentName: z.ZodString;
980
+ isCurrent: z.ZodBoolean;
981
+ deploymentPageUrl: z.ZodNullable<z.ZodURL>;
982
+ }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
983
+ NOT_FOUND: {};
984
+ }>, Record<never, never>>;
985
+ };
986
+ get: {
987
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
988
+ deploymentId: z.ZodString;
989
+ }, z.core.$strip>, z.ZodObject<{
990
+ id: z.ZodString;
991
+ status: z.ZodEnum<{
992
+ ongoing: "ongoing";
993
+ deployed: "deployed";
994
+ failed: "failed";
995
+ canceled: "canceled";
996
+ }>;
997
+ sourceRef: z.ZodNullable<z.ZodString>;
998
+ sourceCommitId: z.ZodNullable<z.ZodString>;
999
+ sourceCommitMessage: z.ZodNullable<z.ZodString>;
1000
+ authorUsername: z.ZodNullable<z.ZodString>;
1001
+ authorAvatarUrl: z.ZodNullable<z.ZodString>;
1002
+ startedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1003
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1004
+ environmentId: z.ZodString;
1005
+ environmentName: z.ZodString;
1006
+ isCurrent: z.ZodBoolean;
1007
+ deploymentPageUrl: z.ZodNullable<z.ZodURL>;
1008
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1009
+ NOT_FOUND: {};
1010
+ }>, Record<never, never>>;
1011
+ };
1012
+ getLogs: {
1013
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1014
+ deploymentId: z.ZodString;
1015
+ }, z.core.$strip>, z.ZodObject<{
1016
+ logs: z.ZodArray<z.ZodObject<{
1017
+ timestamp: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1018
+ content: z.ZodOptional<z.ZodString>;
1019
+ }, z.core.$strip>>;
1020
+ hasMoreLogs: z.ZodBoolean;
1021
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1022
+ NOT_FOUND: {};
1023
+ }>, Record<never, never>>;
1024
+ };
1025
+ };
1026
+ teams: {
1027
+ list: {
1028
+ v1: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
1029
+ id: z.ZodString;
1030
+ name: z.ZodString;
1031
+ createdAt: z.ZodCoercedDate<unknown>;
1032
+ hasStripeAccount: z.ZodBoolean;
1033
+ }, z.core.$strip>>, Record<never, never>, Record<never, never>>;
1034
+ };
1035
+ };
1036
+ analytics: {
1037
+ get: {
1038
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1039
+ projectId: z.ZodString;
1040
+ startTimestamp: z.ZodCoercedNumber<unknown>;
1041
+ endTimestamp: z.ZodCoercedNumber<unknown>;
1042
+ timeZone: z.ZodString;
1043
+ }, z.core.$strip>, z.ZodObject<{
1044
+ metadata: z.ZodObject<{
1045
+ startTimestamp: z.ZodNumber;
1046
+ endTimestamp: z.ZodNumber;
1047
+ timeZone: z.ZodString;
1048
+ startDate: z.ZodCoercedDate<unknown>;
1049
+ interval: z.ZodString;
1050
+ }, z.core.$strip>;
1051
+ timeSeries: z.ZodObject<{
1052
+ sessions_count: z.ZodArray<z.ZodObject<{
1053
+ timestamp: z.ZodNumber;
1054
+ categories: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1055
+ }, z.core.$strip>>;
1056
+ requests_count: z.ZodArray<z.ZodObject<{
1057
+ timestamp: z.ZodNumber;
1058
+ categories: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1059
+ }, z.core.$strip>>;
1060
+ requests_latency_mean: z.ZodArray<z.ZodObject<{
1061
+ timestamp: z.ZodNumber;
1062
+ categories: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1063
+ }, z.core.$strip>>;
1064
+ tool_errors: z.ZodArray<z.ZodObject<{
1065
+ timestamp: z.ZodNumber;
1066
+ categories: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1067
+ }, z.core.$strip>>;
1068
+ mcp_errors: z.ZodArray<z.ZodObject<{
1069
+ timestamp: z.ZodNumber;
1070
+ categories: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1071
+ }, z.core.$strip>>;
1072
+ output_token_mean: z.ZodArray<z.ZodObject<{
1073
+ timestamp: z.ZodNumber;
1074
+ categories: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1075
+ }, z.core.$strip>>;
1076
+ task_count: z.ZodArray<z.ZodObject<{
1077
+ timestamp: z.ZodNumber;
1078
+ categories: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1079
+ }, z.core.$strip>>;
1080
+ }, z.core.$strip>;
1081
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1082
+ NOT_FOUND: {};
1083
+ BAD_REQUEST: {};
1084
+ }>, Record<never, never>>;
1085
+ };
1086
+ };
1087
+ environments: {
1088
+ create: {
1089
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1090
+ projectId: z.ZodString;
1091
+ name: z.ZodString;
1092
+ sourceBranch: z.ZodString;
1093
+ environmentVariables: z.ZodDefault<z.ZodArray<z.ZodObject<{
1094
+ key: z.ZodString;
1095
+ value: z.ZodString;
1096
+ isSecret: z.ZodDefault<z.ZodBoolean>;
1097
+ }, z.core.$strip>>>;
1098
+ }, z.core.$strip>, z.ZodObject<{
1099
+ id: z.ZodString;
1100
+ name: z.ZodString;
1101
+ sourceBranch: z.ZodNullable<z.ZodString>;
1102
+ urls: z.ZodArray<z.ZodURL>;
1103
+ createdAt: z.ZodCoercedDate<unknown>;
1104
+ projectId: z.ZodString;
1105
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1106
+ NOT_FOUND: {};
1107
+ BAD_REQUEST: {};
1108
+ }>, Record<never, never>>;
1109
+ };
1110
+ get: {
1111
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1112
+ environmentId: z.ZodString;
1113
+ }, z.core.$strip>, z.ZodObject<{
1114
+ id: z.ZodString;
1115
+ name: z.ZodString;
1116
+ sourceBranch: z.ZodNullable<z.ZodString>;
1117
+ mcpServerUrl: z.ZodString;
1118
+ domains: z.ZodArray<z.ZodCustomStringFormat<"hostname">>;
1119
+ createdAt: z.ZodCoercedDate<unknown>;
1120
+ projectId: z.ZodString;
1121
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1122
+ NOT_FOUND: {};
1123
+ }>, Record<never, never>>;
1124
+ };
1125
+ deploy: {
1126
+ v1: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1127
+ environmentId: z.ZodString;
1128
+ token: z.ZodOptional<z.ZodString>;
1129
+ settings: z.ZodOptional<z.ZodObject<{
1130
+ installCommand: z.ZodOptional<z.ZodString>;
1131
+ buildCommand: z.ZodOptional<z.ZodString>;
1132
+ buildOutputDir: z.ZodOptional<z.ZodString>;
1133
+ startCommand: z.ZodOptional<z.ZodString>;
1134
+ transport: z.ZodEnum<{
1135
+ stdio: "stdio";
1136
+ sse: "sse";
1137
+ streamablehttp: "streamablehttp";
1138
+ }>;
1139
+ }, z.core.$strip>>;
1140
+ }, z.core.$strip>, z.ZodObject<{
1141
+ id: z.ZodString;
1142
+ status: z.ZodEnum<{
1143
+ ongoing: "ongoing";
1144
+ deployed: "deployed";
1145
+ failed: "failed";
1146
+ canceled: "canceled";
1147
+ }>;
1148
+ sourceRef: z.ZodNullable<z.ZodString>;
1149
+ sourceCommitId: z.ZodNullable<z.ZodString>;
1150
+ sourceCommitMessage: z.ZodNullable<z.ZodString>;
1151
+ authorUsername: z.ZodNullable<z.ZodString>;
1152
+ authorAvatarUrl: z.ZodNullable<z.ZodString>;
1153
+ startedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1154
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1155
+ environmentId: z.ZodString;
1156
+ environmentName: z.ZodString;
1157
+ isCurrent: z.ZodBoolean;
1158
+ deploymentPageUrl: z.ZodNullable<z.ZodURL>;
1159
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1160
+ NOT_FOUND: {};
1161
+ BAD_REQUEST: {};
1162
+ CONFLICT: {};
260
1163
  }>, Record<never, never>>;
261
1164
  };
262
1165
  getLogs: {
@@ -1040,4 +1943,4 @@ declare const serverFieldsSchema: z.ZodObject<{
1040
1943
  }, z.core.$strip>>>;
1041
1944
  }, z.core.$strip>;
1042
1945
  //#endregion
1043
- export { AUTH_SCOPE_ANY, AUTH_SCOPE_USER, ApiContext, AuthScope, PLATFORM_LABELS, type Platform, RouteAuthMeta, RouterInput, RouterOutput, Runtime, Transport, buildSettingsSchema, contract, createEnvironmentContractV1, deploymentStatusSchema, environmentVariableSchema, environmentVariablesSchema, playgroundExamplePromptSchema, playgroundHeaderSchema, runtimeSchema, serverFieldsSchema, transportSchema, updateEnvironmentVariableSchema };
1946
+ export { AUTH_SCOPE_ANY, AUTH_SCOPE_USER, ApiContext, AuthScope, PLATFORM_LABELS, type Platform, RouteAuthMeta, RouterInput, RouterOutput, Runtime, Transport, buildSettingsSchema, contract, contractForDocs, createEnvironmentContractV1, deploymentStatusSchema, environmentVariableSchema, environmentVariablesSchema, playgroundExamplePromptSchema, playgroundHeaderSchema, runtimeSchema, serverFieldsSchema, transportSchema, updateEnvironmentVariableSchema };
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_zod@4.4.3/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js
5
+ //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_supports-color@7.2.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
  */
@@ -283,33 +283,18 @@ const deploymentSummarySchema = z.object({
283
283
  createdAt: z.coerce.date(),
284
284
  updatedAt: z.coerce.date()
285
285
  });
286
- /**
287
- * Public environment
288
- *
289
- * Answers anonymously and exposes no OAuth metadata.
290
- */
286
+ /** Public environment: answers anonymously and exposes no OAuth metadata. */
291
287
  const publicEnvironmentSchema = z.object({
292
288
  allowsAnonymous: z.literal(true),
293
289
  oAuthMetadata: z.strictObject({})
294
290
  });
295
- /**
296
- * Protected environment with an external resource metadata URL
297
- *
298
- * An external resource metadata URL is returned in the WWW-Authenticate header during the first 401 response.
299
- * Everything that follows is handled outside of the MCP server scope.
300
- */
291
+ /** Protected environment whose external resource metadata URL is returned in the WWW-Authenticate header on the first 401; everything after is handled outside the MCP server scope. */
301
292
  const externalResourceMetadataEnvironmentSchema = z.object({
302
293
  allowsAnonymous: z.boolean(),
303
294
  oAuthMetadata: z.object({ externalResourceMetadataUrl: z.url() }),
304
295
  scope: z.string().optional()
305
296
  });
306
- /**
307
- * Protected environment with an external authorization server URL
308
- *
309
- * The server itself exposes the /.well-known/oauth-protected-resource endpoint.
310
- * An external authorization server URL is returned when requesting the endpoint.
311
- * Everything that follows is handled outside of the MCP server scope.
312
- */
297
+ /** Protected environment whose own /.well-known/oauth-protected-resource endpoint points at an external authorization server; everything after is handled outside the MCP server scope. */
313
298
  const externalAuthorizationServerEnvironmentSchema = z.object({
314
299
  allowsAnonymous: z.boolean(),
315
300
  oAuthMetadata: z.object({
@@ -318,12 +303,7 @@ const externalAuthorizationServerEnvironmentSchema = z.object({
318
303
  }),
319
304
  scope: z.string().optional()
320
305
  });
321
- /**
322
- * Standalone protected environment
323
- *
324
- * The server itself exposes the /.well-known/oauth-protected-resource endpoint.
325
- * The server itself exposes the /.well-known/oauth-authorization-server endpoint.
326
- */
306
+ /** Standalone protected environment: the server itself exposes both the /.well-known/oauth-protected-resource and /.well-known/oauth-authorization-server endpoints. */
327
307
  const standaloneEnvironmentSchema = z.object({
328
308
  allowsAnonymous: z.boolean(),
329
309
  oAuthMetadata: z.object({
@@ -332,13 +312,7 @@ const standaloneEnvironmentSchema = z.object({
332
312
  }),
333
313
  scope: z.string().optional()
334
314
  });
335
- /**
336
- * Protected environment without OAuth discovery
337
- *
338
- * The server enforces authentication but exposes no OAuth discovery metadata.
339
- * Neither /.well-known/oauth-protected-resource nor /.well-known/oauth-authorization-server
340
- * are advertised. Clients must obtain credentials out-of-band.
341
- */
315
+ /** Protected environment that enforces authentication but advertises no OAuth discovery metadata; clients must obtain credentials out-of-band. */
342
316
  const protectedWithoutDiscoveryEnvironmentSchema = z.object({
343
317
  allowsAnonymous: z.literal(false),
344
318
  oAuthMetadata: z.strictObject({}),
@@ -425,14 +399,16 @@ z.object({
425
399
  collectRequestPayload: z.boolean(),
426
400
  collectResponsePayload: z.boolean(),
427
401
  collectErrorMessage: z.boolean(),
428
- collectUserData: z.boolean()
402
+ collectUserData: z.boolean(),
403
+ identityTraitKey: z.string().min(1).max(200).nullable()
429
404
  });
430
405
  z.object({
431
406
  id: z.string(),
432
407
  createdAt: z.coerce.date(),
433
408
  environmentId: z.string(),
434
409
  content: z.string(),
435
- source: z.enum(["model", "user"])
410
+ source: z.enum(["model", "user"]),
411
+ clientName: z.string().nullable()
436
412
  });
437
413
  z.object({
438
414
  content: z.string(),
@@ -468,6 +444,7 @@ z.object({
468
444
  environmentId: z.string(),
469
445
  toolName: z.string(),
470
446
  message: z.string(),
447
+ clientName: z.string().nullable(),
471
448
  categories: z.array(intentCategorySchema)
472
449
  });
473
450
  const signalCategorySchema = z.object({
@@ -532,6 +509,246 @@ z.enum([
532
509
  "DEBUG",
533
510
  "ERROR"
534
511
  ]);
512
+ /** Only names a vendor actually ships belong here: lookalikes like `claude-code-test` are customers' own scripts. */
513
+ const MCP_CLIENT_GROUPS = [
514
+ {
515
+ id: "claude_code",
516
+ label: "Claude Code",
517
+ vendor: "anthropic",
518
+ rawNames: ["claude-code", "Anthropic/ClaudeCodeDesktop"]
519
+ },
520
+ {
521
+ id: "claude",
522
+ label: "Claude",
523
+ vendor: "anthropic",
524
+ rawNames: [
525
+ "Anthropic/ClaudeAI",
526
+ "claude-ai",
527
+ "claude",
528
+ "Claude",
529
+ "claude-desktop",
530
+ "claude-desktop-3p"
531
+ ]
532
+ },
533
+ {
534
+ id: "claude_mobile",
535
+ label: "Claude mobile",
536
+ vendor: "anthropic",
537
+ rawNames: ["claude-ios", "ClaudeAndroid"]
538
+ },
539
+ {
540
+ id: "claude_cowork",
541
+ label: "Claude Cowork",
542
+ vendor: "anthropic",
543
+ rawNames: ["Anthropic/Cowork"]
544
+ },
545
+ {
546
+ id: "claude_toolbox",
547
+ label: "Claude Toolbox",
548
+ vendor: "anthropic",
549
+ rawNames: ["Anthropic/Toolbox", "Anthropic/toolbox-bootstrap"]
550
+ },
551
+ {
552
+ id: "anthropic_api",
553
+ label: "Anthropic API",
554
+ vendor: "anthropic",
555
+ rawNames: ["Anthropic/API"]
556
+ },
557
+ {
558
+ id: "anthropic_connector_refresh",
559
+ label: "Anthropic (connector refresh)",
560
+ vendor: "anthropic",
561
+ rawNames: ["Anthropic"]
562
+ },
563
+ {
564
+ id: "codex",
565
+ label: "Codex",
566
+ vendor: "openai",
567
+ rawNames: [
568
+ "codex-mcp-client",
569
+ "codex",
570
+ "Codex",
571
+ "codex-cli",
572
+ "openai-mcp (Codex)"
573
+ ]
574
+ },
575
+ {
576
+ id: "chatgpt",
577
+ label: "ChatGPT",
578
+ vendor: "openai",
579
+ rawNames: ["openai-mcp (ChatGPT)"]
580
+ },
581
+ {
582
+ id: "openai_responses_api",
583
+ label: "OpenAI Responses API",
584
+ vendor: "openai",
585
+ rawNames: ["openai-mcp (Responses API)"]
586
+ },
587
+ {
588
+ id: "openai_agent_builder",
589
+ label: "OpenAI Agent Builder",
590
+ vendor: "openai",
591
+ rawNames: ["openai-mcp (Agent Builder)"]
592
+ },
593
+ {
594
+ id: "openai_other",
595
+ label: "OpenAI Other",
596
+ vendor: "openai",
597
+ rawNames: ["openai-mcp"]
598
+ },
599
+ {
600
+ id: "cursor",
601
+ label: "Cursor",
602
+ vendor: "cursor",
603
+ rawNames: [
604
+ "cursor-vscode",
605
+ "Cursor",
606
+ "cursor"
607
+ ]
608
+ },
609
+ {
610
+ id: "cline",
611
+ label: "Cline",
612
+ vendor: "cline",
613
+ rawNames: [
614
+ "Cline",
615
+ "cline",
616
+ "@cline/core"
617
+ ]
618
+ },
619
+ {
620
+ id: "github_copilot",
621
+ label: "GitHub Copilot",
622
+ vendor: "githubCopilot",
623
+ rawNames: [
624
+ "Copilot",
625
+ "github-copilot-developer",
626
+ "Copilot MCP Gateway",
627
+ "Xcode/copilot-xcode"
628
+ ]
629
+ },
630
+ {
631
+ id: "gemini_cli",
632
+ label: "Gemini CLI",
633
+ vendor: "google",
634
+ rawNames: ["gemini-cli-mcp-client", "gemini-cli"]
635
+ },
636
+ {
637
+ id: "antigravity",
638
+ label: "Antigravity",
639
+ vendor: "google",
640
+ rawNames: ["antigravity-client"]
641
+ },
642
+ {
643
+ id: "gemini",
644
+ label: "Gemini",
645
+ vendor: "google",
646
+ rawNames: ["Gemini", "google-ai-edge-gallery"]
647
+ },
648
+ {
649
+ id: "windsurf",
650
+ label: "Windsurf",
651
+ vendor: "windsurf",
652
+ rawNames: ["Windsurf", "windsurf-client"]
653
+ },
654
+ {
655
+ id: "mistral",
656
+ label: "Mistral / Le Chat",
657
+ vendor: "mistral",
658
+ rawNames: ["Mistral"],
659
+ rawNamePrefixes: ["connector:custom-mcp:"]
660
+ },
661
+ {
662
+ id: "n8n",
663
+ label: "n8n",
664
+ vendor: "n8n",
665
+ rawNames: [
666
+ "@n8n/n8n-nodes-langchain.mcpClient",
667
+ "@n8n/n8n-nodes-langchain.mcpClientTool",
668
+ "n8n"
669
+ ]
670
+ },
671
+ {
672
+ id: "alpic_playground",
673
+ label: "Alpic Playground",
674
+ vendor: "alpic",
675
+ rawNames: ["alpic-playground", "playground"]
676
+ },
677
+ {
678
+ id: "opencode",
679
+ label: "opencode",
680
+ vendor: "opencode",
681
+ rawNames: ["opencode"]
682
+ },
683
+ {
684
+ id: "zed",
685
+ label: "Zed",
686
+ vendor: "zed",
687
+ rawNames: ["Zed", "zed"]
688
+ },
689
+ {
690
+ id: "zapier",
691
+ label: "Zapier",
692
+ vendor: "zapier",
693
+ rawNames: ["Zapier", "zapier"]
694
+ },
695
+ {
696
+ id: "make",
697
+ label: "Make",
698
+ vendor: "make",
699
+ rawNames: ["Make", "make"]
700
+ },
701
+ {
702
+ id: "librechat",
703
+ label: "LibreChat",
704
+ vendor: "mcp",
705
+ rawNames: ["LibreChat", "librechat"]
706
+ },
707
+ {
708
+ id: "jan",
709
+ label: "Jan",
710
+ vendor: "mcp",
711
+ rawNames: ["Jan", "jan"]
712
+ },
713
+ {
714
+ id: "goose",
715
+ label: "goose",
716
+ vendor: "mcp",
717
+ rawNames: ["goose", "Goose"]
718
+ },
719
+ {
720
+ id: "mcphost",
721
+ label: "mcphost",
722
+ vendor: "mcp",
723
+ rawNames: ["mcphost"]
724
+ },
725
+ {
726
+ id: "mcporter",
727
+ label: "mcporter",
728
+ vendor: "mcp",
729
+ rawNames: ["mcporter"]
730
+ },
731
+ {
732
+ id: "rmcp",
733
+ label: "rmcp",
734
+ vendor: "mcp",
735
+ rawNames: ["rmcp"]
736
+ },
737
+ {
738
+ id: "unnamed_client",
739
+ label: "Unnamed client",
740
+ vendor: "mcp",
741
+ rawNames: [
742
+ "mcp",
743
+ "unknown",
744
+ ""
745
+ ]
746
+ }
747
+ ];
748
+ /** A source pattern, not a RegExp, because analytics renders the same rule into ClickHouse RE2, which shares this syntax. */
749
+ const MCP_REMOTE_WRAPPER_SUFFIX = String.raw` \(via mcp-remote [^\n]+?\)$`;
750
+ new RegExp(MCP_REMOTE_WRAPPER_SUFFIX);
751
+ new Map(MCP_CLIENT_GROUPS.map((group) => [group.id, group]));
535
752
  const runtimeSchema = z.enum([
536
753
  "python3.13",
537
754
  "python3.14",
@@ -609,15 +826,7 @@ z.object({
609
826
  serverFields: serverFieldsSchema$1,
610
827
  source: z.enum(["registry", "defaults"])
611
828
  });
612
- /**
613
- * Returns a variant of a `maxLength`-constrained string that clamps (truncates) instead of
614
- * rejecting on overflow — used for AI-generated copy where the model routinely overshoots.
615
- *
616
- * NOTE: this rebuilds the schema from scratch, carrying over only `maxLength` (as a clamp),
617
- * `minLength`, and the description. Any other validators on the source field (`.regex()`,
618
- * `.email()`, custom refinements) are intentionally dropped — this helper is meant for plain
619
- * free-text length caps only. A field with `null` `maxLength` is returned unchanged.
620
- */
829
+ /** Clamps instead of rejecting on max-length overflow (for AI-generated copy that overshoots); intentionally carries over only maxLength, minLength, and description, dropping any other validators. */
621
830
  const clampStringField = (field) => {
622
831
  const max = field.maxLength;
623
832
  if (max === null) return field;
@@ -963,11 +1172,7 @@ const chatgptToolJustificationSchema = z.object({
963
1172
  openWorldJustification: z.string().describe("One sentence on whether the tool reaches external systems beyond your own service."),
964
1173
  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.\"")
965
1174
  }).describe("Per-tool justification of each MCP annotation value (one specific sentence per hint).");
966
- /**
967
- * Base copy fields, defined once and reused by both the submission form and per-locale
968
- * translations so the constraints (tagline ≤ 30 chars) never drift. The translation generation
969
- * path wraps these in {@link clampStringField} since the LLM tends to overshoot the limit.
970
- */
1175
+ /** Defined once and reused by both the submission form and per-locale translations so the tagline ≤ 30 chars constraint never drifts. */
971
1176
  const chatgptTaglineSchema = z.string().max(30);
972
1177
  const chatgptDescriptionSchema = z.string();
973
1178
  const chatgptTranslationSchema = z.object({
@@ -976,10 +1181,7 @@ const chatgptTranslationSchema = z.object({
976
1181
  description: chatgptDescriptionSchema
977
1182
  }).describe("Locale-scoped override for tagline + description. English (US) is the default.");
978
1183
  chatgptTranslationSchema.extend({ tagline: clampStringField(chatgptTaglineSchema) });
979
- /**
980
- * Field order mirrors the ChatGPT (OpenAI) submission spreadsheet, grouped by section.
981
- * When adding/removing/reordering fields, keep this in sync with the sheet.
982
- */
1184
+ /** Field order mirrors the ChatGPT (OpenAI) submission spreadsheet, grouped by section; keep it in sync with the sheet. */
983
1185
  const chatgptSubmissionFormDataSchema = z.object({
984
1186
  logoLight: z.string().describe("Logo icon for light mode. Square PNG, no borders or rounded corners (clients apply circular cropping)."),
985
1187
  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."),
@@ -1076,11 +1278,7 @@ const claudePolicyAcknowledgementSchema = z.enum([
1076
1278
  "My connector does not collect conversation data beyond what is needed for its function.",
1077
1279
  "Public documentation for this connector will be live by the publish date."
1078
1280
  ]);
1079
- /**
1080
- * Field order mirrors the claude.ai directory submission wizard
1081
- * (`claude.ai/admin-settings/directory/submissions/new`), grouped by step.
1082
- * When adding/removing/reordering fields, keep this in sync with the wizard.
1083
- */
1281
+ /** Field order mirrors the claude.ai directory submission wizard (`claude.ai/admin-settings/directory/submissions/new`), grouped by step; keep it in sync with the wizard. */
1084
1282
  const claudeSubmissionFormDataSchema = z.object({
1085
1283
  serverUrl: z.url().describe(`The full https:// URL where your MCP server is hosted and reachable. In the claude.ai wizard this is read live
1086
1284
  from the custom connector you select — the connection is used to verify the URL and the tool list at submission time.
@@ -1172,12 +1370,7 @@ claudeSubmissionFormDataSchema.pick({
1172
1370
  connectionRequirements: claudeSubmissionFormDataSchema.shape.connectionRequirements.optional(),
1173
1371
  testInstructions: claudeSubmissionFormDataSchema.shape.testInstructions.optional()
1174
1372
  });
1175
- /**
1176
- * Narrative fields the LLM-backed generation step produces for Claude submissions.
1177
- * This schema accepts the slightly loose shape returned by AI generation, then normalizes it into
1178
- * the strict form shape. Keep transforms here rather than in callers so generation leniency is
1179
- * colocated with the Claude contract.
1180
- */
1373
+ /** Loose shape returned by AI generation for Claude narrative fields; transforms live here so generation leniency stays colocated with the Claude contract. */
1181
1374
  const claudeAiGeneratedFormDataRawSchema = z.object({
1182
1375
  oneLiner: claudeSubmissionFormDataSchema.shape.oneLiner,
1183
1376
  description: claudeSubmissionFormDataSchema.shape.description,
@@ -1269,7 +1462,10 @@ const RESERVED_KEYS = [
1269
1462
  "BUILD_ARG_START_COMMAND",
1270
1463
  "ALPIC_HOST",
1271
1464
  "ALPIC_CUSTOM_DOMAINS",
1272
- "ALPIC_INTENT_META_KEY"
1465
+ "ALPIC_INTENT_META_KEY",
1466
+ "ALPIC_FEEDBACK_META_KEY",
1467
+ "ALPIC_EVENTS_META_KEY",
1468
+ "ALPIC_IDENTIFY_META_KEY"
1273
1469
  ];
1274
1470
  const environmentVariableSchema = z.object({
1275
1471
  key: z.string().min(2, "Key must be at least 2 characters").regex(/^[a-zA-Z]([a-zA-Z0-9_])+$/, "Key must start with a letter and contain only letters, numbers, and underscores").refine((key) => !RESERVED_KEYS.includes(key), "This key is reserved and cannot be used as an environment variable key"),
@@ -1585,7 +1781,8 @@ const deployEnvironmentContractV1 = oc.route({
1585
1781
  successDescription: "The environment has been deployed successfully"
1586
1782
  }).errors({
1587
1783
  NOT_FOUND: {},
1588
- BAD_REQUEST: {}
1784
+ BAD_REQUEST: {},
1785
+ CONFLICT: {}
1589
1786
  }).input(z.object({
1590
1787
  environmentId: z.string().describe("The ID of the environment to deploy"),
1591
1788
  token: z.string().describe("The token to identify the source archive").optional(),
@@ -1914,5 +2111,10 @@ const contract = {
1914
2111
  get: { v1: getBeaconContractV1 }
1915
2112
  }
1916
2113
  };
2114
+ const { uploadArtifact: _discard, ...deploymentsForDocs } = contract.deployments;
2115
+ const contractForDocs = {
2116
+ ...contract,
2117
+ deployments: deploymentsForDocs
2118
+ };
1917
2119
  //#endregion
1918
- export { AUTH_SCOPE_ANY, AUTH_SCOPE_USER, PLATFORM_LABELS, buildSettingsSchema, contract, createEnvironmentContractV1, deploymentStatusSchema, environmentVariableSchema, environmentVariablesSchema, playgroundExamplePromptSchema, playgroundHeaderSchema, runtimeSchema, serverFieldsSchema, transportSchema, updateEnvironmentVariableSchema };
2120
+ export { AUTH_SCOPE_ANY, AUTH_SCOPE_USER, PLATFORM_LABELS, buildSettingsSchema, contract, contractForDocs, createEnvironmentContractV1, deploymentStatusSchema, environmentVariableSchema, environmentVariablesSchema, playgroundExamplePromptSchema, playgroundHeaderSchema, runtimeSchema, serverFieldsSchema, transportSchema, updateEnvironmentVariableSchema };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alpic-ai/api",
3
- "version": "0.0.0-staging.g0c67562",
3
+ "version": "0.0.0-staging.g0cf1ed0",
4
4
  "description": "Contract for the Alpic API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",
@@ -33,17 +33,17 @@
33
33
  "author": "Alpic",
34
34
  "license": "ISC",
35
35
  "dependencies": {
36
- "@orpc/contract": "^1.14.8",
36
+ "@orpc/contract": "^1.14.13",
37
37
  "ms": "^2.1.3",
38
38
  "zod": "^4.4.3"
39
39
  },
40
40
  "devDependencies": {
41
- "@orpc/openapi": "^1.14.8",
42
- "@orpc/zod": "^1.14.8",
41
+ "@orpc/openapi": "^1.14.13",
42
+ "@orpc/zod": "^1.14.13",
43
43
  "@total-typescript/tsconfig": "^1.0.4",
44
44
  "@types/ms": "^2.1.0",
45
45
  "shx": "^0.4.0",
46
- "tsdown": "^0.22.9",
46
+ "tsdown": "^0.22.14",
47
47
  "typescript": "^6.0.3",
48
48
  "vitest": "^4.1.10",
49
49
  "@alpic-ai/domains": "0.0.0"