@alpic-ai/api 1.101.0 → 1.102.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +261 -15
- package/dist/index.mjs +98 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -11,9 +11,9 @@ type ApiContext = {
|
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
declare const deploymentStatusSchema: z.ZodEnum<{
|
|
14
|
+
failed: "failed";
|
|
14
15
|
ongoing: "ongoing";
|
|
15
16
|
deployed: "deployed";
|
|
16
|
-
failed: "failed";
|
|
17
17
|
canceled: "canceled";
|
|
18
18
|
}>;
|
|
19
19
|
declare const createEnvironmentContractV1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
@@ -103,18 +103,18 @@ declare const contract: {
|
|
|
103
103
|
v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
104
104
|
projectId: z.ZodString;
|
|
105
105
|
status: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
106
|
+
failed: "failed";
|
|
106
107
|
ongoing: "ongoing";
|
|
107
108
|
deployed: "deployed";
|
|
108
|
-
failed: "failed";
|
|
109
109
|
canceled: "canceled";
|
|
110
110
|
}>>>;
|
|
111
111
|
environmentId: z.ZodOptional<z.ZodString>;
|
|
112
112
|
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
113
113
|
id: z.ZodString;
|
|
114
114
|
status: z.ZodEnum<{
|
|
115
|
+
failed: "failed";
|
|
115
116
|
ongoing: "ongoing";
|
|
116
117
|
deployed: "deployed";
|
|
117
|
-
failed: "failed";
|
|
118
118
|
canceled: "canceled";
|
|
119
119
|
}>;
|
|
120
120
|
sourceRef: z.ZodNullable<z.ZodString>;
|
|
@@ -138,9 +138,9 @@ declare const contract: {
|
|
|
138
138
|
}, z.core.$strip>, z.ZodObject<{
|
|
139
139
|
id: z.ZodString;
|
|
140
140
|
status: z.ZodEnum<{
|
|
141
|
+
failed: "failed";
|
|
141
142
|
ongoing: "ongoing";
|
|
142
143
|
deployed: "deployed";
|
|
143
|
-
failed: "failed";
|
|
144
144
|
canceled: "canceled";
|
|
145
145
|
}>;
|
|
146
146
|
sourceRef: z.ZodNullable<z.ZodString>;
|
|
@@ -226,9 +226,9 @@ declare const contract: {
|
|
|
226
226
|
}, z.core.$strip>, z.ZodObject<{
|
|
227
227
|
id: z.ZodString;
|
|
228
228
|
status: z.ZodEnum<{
|
|
229
|
+
failed: "failed";
|
|
229
230
|
ongoing: "ongoing";
|
|
230
231
|
deployed: "deployed";
|
|
231
|
-
failed: "failed";
|
|
232
232
|
canceled: "canceled";
|
|
233
233
|
}>;
|
|
234
234
|
sourceRef: z.ZodNullable<z.ZodString>;
|
|
@@ -371,18 +371,18 @@ declare const contract: {
|
|
|
371
371
|
domains: z.ZodArray<z.ZodObject<{
|
|
372
372
|
domain: z.ZodString;
|
|
373
373
|
status: z.ZodEnum<{
|
|
374
|
+
failed: "failed";
|
|
374
375
|
ongoing: "ongoing";
|
|
375
376
|
deployed: "deployed";
|
|
376
|
-
failed: "failed";
|
|
377
377
|
}>;
|
|
378
378
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
379
379
|
}, z.core.$strip>>;
|
|
380
380
|
latestDeployment: z.ZodNullable<z.ZodObject<{
|
|
381
381
|
id: z.ZodString;
|
|
382
382
|
status: z.ZodEnum<{
|
|
383
|
+
failed: "failed";
|
|
383
384
|
ongoing: "ongoing";
|
|
384
385
|
deployed: "deployed";
|
|
385
|
-
failed: "failed";
|
|
386
386
|
canceled: "canceled";
|
|
387
387
|
}>;
|
|
388
388
|
sourceCommitId: z.ZodNullable<z.ZodString>;
|
|
@@ -400,9 +400,9 @@ declare const contract: {
|
|
|
400
400
|
latestDeployment: z.ZodNullable<z.ZodObject<{
|
|
401
401
|
id: z.ZodString;
|
|
402
402
|
status: z.ZodEnum<{
|
|
403
|
+
failed: "failed";
|
|
403
404
|
ongoing: "ongoing";
|
|
404
405
|
deployed: "deployed";
|
|
405
|
-
failed: "failed";
|
|
406
406
|
canceled: "canceled";
|
|
407
407
|
}>;
|
|
408
408
|
sourceCommitId: z.ZodNullable<z.ZodString>;
|
|
@@ -447,18 +447,18 @@ declare const contract: {
|
|
|
447
447
|
domains: z.ZodArray<z.ZodObject<{
|
|
448
448
|
domain: z.ZodString;
|
|
449
449
|
status: z.ZodEnum<{
|
|
450
|
+
failed: "failed";
|
|
450
451
|
ongoing: "ongoing";
|
|
451
452
|
deployed: "deployed";
|
|
452
|
-
failed: "failed";
|
|
453
453
|
}>;
|
|
454
454
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
455
455
|
}, z.core.$strip>>;
|
|
456
456
|
latestDeployment: z.ZodNullable<z.ZodObject<{
|
|
457
457
|
id: z.ZodString;
|
|
458
458
|
status: z.ZodEnum<{
|
|
459
|
+
failed: "failed";
|
|
459
460
|
ongoing: "ongoing";
|
|
460
461
|
deployed: "deployed";
|
|
461
|
-
failed: "failed";
|
|
462
462
|
canceled: "canceled";
|
|
463
463
|
}>;
|
|
464
464
|
sourceCommitId: z.ZodNullable<z.ZodString>;
|
|
@@ -476,9 +476,9 @@ declare const contract: {
|
|
|
476
476
|
latestDeployment: z.ZodNullable<z.ZodObject<{
|
|
477
477
|
id: z.ZodString;
|
|
478
478
|
status: z.ZodEnum<{
|
|
479
|
+
failed: "failed";
|
|
479
480
|
ongoing: "ongoing";
|
|
480
481
|
deployed: "deployed";
|
|
481
|
-
failed: "failed";
|
|
482
482
|
canceled: "canceled";
|
|
483
483
|
}>;
|
|
484
484
|
sourceCommitId: z.ZodNullable<z.ZodString>;
|
|
@@ -522,18 +522,18 @@ declare const contract: {
|
|
|
522
522
|
domains: z.ZodArray<z.ZodObject<{
|
|
523
523
|
domain: z.ZodString;
|
|
524
524
|
status: z.ZodEnum<{
|
|
525
|
+
failed: "failed";
|
|
525
526
|
ongoing: "ongoing";
|
|
526
527
|
deployed: "deployed";
|
|
527
|
-
failed: "failed";
|
|
528
528
|
}>;
|
|
529
529
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
530
530
|
}, z.core.$strip>>;
|
|
531
531
|
latestDeployment: z.ZodNullable<z.ZodObject<{
|
|
532
532
|
id: z.ZodString;
|
|
533
533
|
status: z.ZodEnum<{
|
|
534
|
+
failed: "failed";
|
|
534
535
|
ongoing: "ongoing";
|
|
535
536
|
deployed: "deployed";
|
|
536
|
-
failed: "failed";
|
|
537
537
|
canceled: "canceled";
|
|
538
538
|
}>;
|
|
539
539
|
sourceCommitId: z.ZodNullable<z.ZodString>;
|
|
@@ -551,9 +551,9 @@ declare const contract: {
|
|
|
551
551
|
latestDeployment: z.ZodNullable<z.ZodObject<{
|
|
552
552
|
id: z.ZodString;
|
|
553
553
|
status: z.ZodEnum<{
|
|
554
|
+
failed: "failed";
|
|
554
555
|
ongoing: "ongoing";
|
|
555
556
|
deployed: "deployed";
|
|
556
|
-
failed: "failed";
|
|
557
557
|
canceled: "canceled";
|
|
558
558
|
}>;
|
|
559
559
|
sourceCommitId: z.ZodNullable<z.ZodString>;
|
|
@@ -719,6 +719,107 @@ declare const contract: {
|
|
|
719
719
|
}>, Record<never, never>>;
|
|
720
720
|
};
|
|
721
721
|
};
|
|
722
|
+
beacon: {
|
|
723
|
+
create: {
|
|
724
|
+
v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
725
|
+
targetUrl: z.ZodString;
|
|
726
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
727
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
728
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
729
|
+
id: z.ZodString;
|
|
730
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
731
|
+
NOT_FOUND: {};
|
|
732
|
+
BAD_REQUEST: {};
|
|
733
|
+
}>, Record<never, never>>;
|
|
734
|
+
};
|
|
735
|
+
get: {
|
|
736
|
+
v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
737
|
+
analysisId: z.ZodString;
|
|
738
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
739
|
+
id: z.ZodString;
|
|
740
|
+
targetUrl: z.ZodString;
|
|
741
|
+
status: z.ZodEnum<{
|
|
742
|
+
pending: "pending";
|
|
743
|
+
partial: "partial";
|
|
744
|
+
completed: "completed";
|
|
745
|
+
failed: "failed";
|
|
746
|
+
}>;
|
|
747
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
748
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
749
|
+
report: z.ZodNullable<z.ZodObject<{
|
|
750
|
+
schemaVersion: z.ZodString;
|
|
751
|
+
auditId: z.ZodString;
|
|
752
|
+
targetUrl: z.ZodString;
|
|
753
|
+
startedAt: z.ZodString;
|
|
754
|
+
completedAt: z.ZodString;
|
|
755
|
+
durationMs: z.ZodNumber;
|
|
756
|
+
results: z.ZodArray<z.ZodObject<{
|
|
757
|
+
checkId: z.ZodString;
|
|
758
|
+
status: z.ZodEnum<{
|
|
759
|
+
pending: "pending";
|
|
760
|
+
pass: "pass";
|
|
761
|
+
fail: "fail";
|
|
762
|
+
skip: "skip";
|
|
763
|
+
}>;
|
|
764
|
+
message: z.ZodString;
|
|
765
|
+
skipReason: z.ZodOptional<z.ZodString>;
|
|
766
|
+
severity: z.ZodEnum<{
|
|
767
|
+
error: "error";
|
|
768
|
+
warning: "warning";
|
|
769
|
+
info: "info";
|
|
770
|
+
}>;
|
|
771
|
+
category: z.ZodEnum<{
|
|
772
|
+
connectivity: "connectivity";
|
|
773
|
+
"tool-metadata": "tool-metadata";
|
|
774
|
+
"resource-metadata": "resource-metadata";
|
|
775
|
+
performance: "performance";
|
|
776
|
+
e2e: "e2e";
|
|
777
|
+
}>;
|
|
778
|
+
scope: z.ZodEnum<{
|
|
779
|
+
server: "server";
|
|
780
|
+
view: "view";
|
|
781
|
+
}>;
|
|
782
|
+
platforms: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
783
|
+
chatgpt: "chatgpt";
|
|
784
|
+
claudeai: "claudeai";
|
|
785
|
+
}>>>>;
|
|
786
|
+
durationMs: z.ZodNumber;
|
|
787
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
788
|
+
label: z.ZodString;
|
|
789
|
+
value: z.ZodOptional<z.ZodString>;
|
|
790
|
+
}, z.core.$strip>>>;
|
|
791
|
+
hint: z.ZodOptional<z.ZodObject<{
|
|
792
|
+
text: z.ZodString;
|
|
793
|
+
}, z.core.$strip>>;
|
|
794
|
+
}, z.core.$strip>>;
|
|
795
|
+
requiresAuth: z.ZodBoolean;
|
|
796
|
+
hasViewSupport: z.ZodBoolean;
|
|
797
|
+
viewPlatforms: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
798
|
+
chatgpt: "chatgpt";
|
|
799
|
+
claudeai: "claudeai";
|
|
800
|
+
}>>>>;
|
|
801
|
+
isReadyForPlatform: z.ZodRecord<z.ZodEnum<{
|
|
802
|
+
chatgpt: "chatgpt";
|
|
803
|
+
claudeai: "claudeai";
|
|
804
|
+
}>, z.ZodBoolean>;
|
|
805
|
+
widgetScreenshotKeys: z.ZodOptional<z.ZodObject<{
|
|
806
|
+
chatgpt: z.ZodOptional<z.ZodString>;
|
|
807
|
+
claudeai: z.ZodOptional<z.ZodString>;
|
|
808
|
+
}, z.core.$strip>>;
|
|
809
|
+
widgetScreenshots: z.ZodOptional<z.ZodObject<{
|
|
810
|
+
chatgpt: z.ZodOptional<z.ZodObject<{
|
|
811
|
+
url: z.ZodString;
|
|
812
|
+
}, z.core.$strip>>;
|
|
813
|
+
claudeai: z.ZodOptional<z.ZodObject<{
|
|
814
|
+
url: z.ZodString;
|
|
815
|
+
}, z.core.$strip>>;
|
|
816
|
+
}, z.core.$strip>>;
|
|
817
|
+
}, z.core.$strip>>;
|
|
818
|
+
}, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
819
|
+
NOT_FOUND: {};
|
|
820
|
+
}>, Record<never, never>>;
|
|
821
|
+
};
|
|
822
|
+
};
|
|
722
823
|
};
|
|
723
824
|
type RouterInput = InferContractRouterInputs<typeof contract>;
|
|
724
825
|
type RouterOutput = InferContractRouterOutputs<typeof contract>;
|
|
@@ -753,6 +854,151 @@ declare const transportSchema: z.ZodEnum<{
|
|
|
753
854
|
streamablehttp: "streamablehttp";
|
|
754
855
|
}>;
|
|
755
856
|
type Transport = z.infer<typeof transportSchema>;
|
|
857
|
+
declare const analysisStatusSchema: z.ZodEnum<{
|
|
858
|
+
pending: "pending";
|
|
859
|
+
partial: "partial";
|
|
860
|
+
completed: "completed";
|
|
861
|
+
failed: "failed";
|
|
862
|
+
}>;
|
|
863
|
+
declare const platformSchema: z.ZodEnum<{
|
|
864
|
+
chatgpt: "chatgpt";
|
|
865
|
+
claudeai: "claudeai";
|
|
866
|
+
}>;
|
|
867
|
+
type Platform = z.infer<typeof platformSchema>;
|
|
868
|
+
declare const checkSeveritySchema: z.ZodEnum<{
|
|
869
|
+
error: "error";
|
|
870
|
+
warning: "warning";
|
|
871
|
+
info: "info";
|
|
872
|
+
}>;
|
|
873
|
+
type CheckSeverity = z.infer<typeof checkSeveritySchema>;
|
|
874
|
+
declare const checkCategorySchema: z.ZodEnum<{
|
|
875
|
+
connectivity: "connectivity";
|
|
876
|
+
"tool-metadata": "tool-metadata";
|
|
877
|
+
"resource-metadata": "resource-metadata";
|
|
878
|
+
performance: "performance";
|
|
879
|
+
e2e: "e2e";
|
|
880
|
+
}>;
|
|
881
|
+
type CheckCategory = z.infer<typeof checkCategorySchema>;
|
|
882
|
+
declare const checkScopeSchema: z.ZodEnum<{
|
|
883
|
+
server: "server";
|
|
884
|
+
view: "view";
|
|
885
|
+
}>;
|
|
886
|
+
type CheckScope = z.infer<typeof checkScopeSchema>;
|
|
887
|
+
declare const checkDetailSchema: z.ZodObject<{
|
|
888
|
+
label: z.ZodString;
|
|
889
|
+
value: z.ZodOptional<z.ZodString>;
|
|
890
|
+
}, z.core.$strip>;
|
|
891
|
+
type CheckDetail = z.infer<typeof checkDetailSchema>;
|
|
892
|
+
declare const checkResultSchema: z.ZodObject<{
|
|
893
|
+
checkId: z.ZodString;
|
|
894
|
+
status: z.ZodEnum<{
|
|
895
|
+
pending: "pending";
|
|
896
|
+
pass: "pass";
|
|
897
|
+
fail: "fail";
|
|
898
|
+
skip: "skip";
|
|
899
|
+
}>;
|
|
900
|
+
message: z.ZodString;
|
|
901
|
+
skipReason: z.ZodOptional<z.ZodString>;
|
|
902
|
+
severity: z.ZodEnum<{
|
|
903
|
+
error: "error";
|
|
904
|
+
warning: "warning";
|
|
905
|
+
info: "info";
|
|
906
|
+
}>;
|
|
907
|
+
category: z.ZodEnum<{
|
|
908
|
+
connectivity: "connectivity";
|
|
909
|
+
"tool-metadata": "tool-metadata";
|
|
910
|
+
"resource-metadata": "resource-metadata";
|
|
911
|
+
performance: "performance";
|
|
912
|
+
e2e: "e2e";
|
|
913
|
+
}>;
|
|
914
|
+
scope: z.ZodEnum<{
|
|
915
|
+
server: "server";
|
|
916
|
+
view: "view";
|
|
917
|
+
}>;
|
|
918
|
+
platforms: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
919
|
+
chatgpt: "chatgpt";
|
|
920
|
+
claudeai: "claudeai";
|
|
921
|
+
}>>>>;
|
|
922
|
+
durationMs: z.ZodNumber;
|
|
923
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
924
|
+
label: z.ZodString;
|
|
925
|
+
value: z.ZodOptional<z.ZodString>;
|
|
926
|
+
}, z.core.$strip>>>;
|
|
927
|
+
hint: z.ZodOptional<z.ZodObject<{
|
|
928
|
+
text: z.ZodString;
|
|
929
|
+
}, z.core.$strip>>;
|
|
930
|
+
}, z.core.$strip>;
|
|
931
|
+
type CheckResult = z.infer<typeof checkResultSchema>;
|
|
932
|
+
declare const auditReportSchema: z.ZodObject<{
|
|
933
|
+
schemaVersion: z.ZodString;
|
|
934
|
+
auditId: z.ZodString;
|
|
935
|
+
targetUrl: z.ZodString;
|
|
936
|
+
startedAt: z.ZodString;
|
|
937
|
+
completedAt: z.ZodString;
|
|
938
|
+
durationMs: z.ZodNumber;
|
|
939
|
+
results: z.ZodArray<z.ZodObject<{
|
|
940
|
+
checkId: z.ZodString;
|
|
941
|
+
status: z.ZodEnum<{
|
|
942
|
+
pending: "pending";
|
|
943
|
+
pass: "pass";
|
|
944
|
+
fail: "fail";
|
|
945
|
+
skip: "skip";
|
|
946
|
+
}>;
|
|
947
|
+
message: z.ZodString;
|
|
948
|
+
skipReason: z.ZodOptional<z.ZodString>;
|
|
949
|
+
severity: z.ZodEnum<{
|
|
950
|
+
error: "error";
|
|
951
|
+
warning: "warning";
|
|
952
|
+
info: "info";
|
|
953
|
+
}>;
|
|
954
|
+
category: z.ZodEnum<{
|
|
955
|
+
connectivity: "connectivity";
|
|
956
|
+
"tool-metadata": "tool-metadata";
|
|
957
|
+
"resource-metadata": "resource-metadata";
|
|
958
|
+
performance: "performance";
|
|
959
|
+
e2e: "e2e";
|
|
960
|
+
}>;
|
|
961
|
+
scope: z.ZodEnum<{
|
|
962
|
+
server: "server";
|
|
963
|
+
view: "view";
|
|
964
|
+
}>;
|
|
965
|
+
platforms: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
966
|
+
chatgpt: "chatgpt";
|
|
967
|
+
claudeai: "claudeai";
|
|
968
|
+
}>>>>;
|
|
969
|
+
durationMs: z.ZodNumber;
|
|
970
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
971
|
+
label: z.ZodString;
|
|
972
|
+
value: z.ZodOptional<z.ZodString>;
|
|
973
|
+
}, z.core.$strip>>>;
|
|
974
|
+
hint: z.ZodOptional<z.ZodObject<{
|
|
975
|
+
text: z.ZodString;
|
|
976
|
+
}, z.core.$strip>>;
|
|
977
|
+
}, z.core.$strip>>;
|
|
978
|
+
requiresAuth: z.ZodBoolean;
|
|
979
|
+
hasViewSupport: z.ZodBoolean;
|
|
980
|
+
viewPlatforms: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
981
|
+
chatgpt: "chatgpt";
|
|
982
|
+
claudeai: "claudeai";
|
|
983
|
+
}>>>>;
|
|
984
|
+
isReadyForPlatform: z.ZodRecord<z.ZodEnum<{
|
|
985
|
+
chatgpt: "chatgpt";
|
|
986
|
+
claudeai: "claudeai";
|
|
987
|
+
}>, z.ZodBoolean>;
|
|
988
|
+
widgetScreenshotKeys: z.ZodOptional<z.ZodObject<{
|
|
989
|
+
chatgpt: z.ZodOptional<z.ZodString>;
|
|
990
|
+
claudeai: z.ZodOptional<z.ZodString>;
|
|
991
|
+
}, z.core.$strip>>;
|
|
992
|
+
widgetScreenshots: z.ZodOptional<z.ZodObject<{
|
|
993
|
+
chatgpt: z.ZodOptional<z.ZodObject<{
|
|
994
|
+
url: z.ZodString;
|
|
995
|
+
}, z.core.$strip>>;
|
|
996
|
+
claudeai: z.ZodOptional<z.ZodObject<{
|
|
997
|
+
url: z.ZodString;
|
|
998
|
+
}, z.core.$strip>>;
|
|
999
|
+
}, z.core.$strip>>;
|
|
1000
|
+
}, z.core.$strip>;
|
|
1001
|
+
type AuditReport = z.infer<typeof auditReportSchema>;
|
|
756
1002
|
declare const serverFieldsSchema: z.ZodObject<{
|
|
757
1003
|
$schema: z.ZodString;
|
|
758
1004
|
name: z.ZodString;
|
|
@@ -777,4 +1023,4 @@ declare const serverFieldsSchema: z.ZodObject<{
|
|
|
777
1023
|
}, z.core.$strip>>>;
|
|
778
1024
|
}, z.core.$strip>;
|
|
779
1025
|
//#endregion
|
|
780
|
-
export { ApiContext, RouterInput, RouterOutput, Runtime, Transport, buildSettingsSchema, contract, createEnvironmentContractV1, deploymentStatusSchema, environmentVariableSchema, environmentVariablesSchema, runtimeSchema, serverFieldsSchema, transportSchema };
|
|
1026
|
+
export { ApiContext, AuditReport, CheckCategory, CheckDetail, CheckResult, CheckScope, CheckSeverity, Platform, RouterInput, RouterOutput, Runtime, Transport, analysisStatusSchema, auditReportSchema, buildSettingsSchema, checkDetailSchema, checkResultSchema, contract, createEnvironmentContractV1, deploymentStatusSchema, environmentVariableSchema, environmentVariablesSchema, platformSchema, runtimeSchema, serverFieldsSchema, transportSchema };
|
package/dist/index.mjs
CHANGED
|
@@ -60,6 +60,69 @@ const transportSchema = z.enum([
|
|
|
60
60
|
"sse",
|
|
61
61
|
"streamablehttp"
|
|
62
62
|
]);
|
|
63
|
+
const analysisStatusSchema = z.enum([
|
|
64
|
+
"pending",
|
|
65
|
+
"partial",
|
|
66
|
+
"completed",
|
|
67
|
+
"failed"
|
|
68
|
+
]);
|
|
69
|
+
const platformSchema = z.enum(["chatgpt", "claudeai"]);
|
|
70
|
+
const checkSeveritySchema = z.enum([
|
|
71
|
+
"error",
|
|
72
|
+
"warning",
|
|
73
|
+
"info"
|
|
74
|
+
]);
|
|
75
|
+
const checkCategorySchema = z.enum([
|
|
76
|
+
"connectivity",
|
|
77
|
+
"tool-metadata",
|
|
78
|
+
"resource-metadata",
|
|
79
|
+
"performance",
|
|
80
|
+
"e2e"
|
|
81
|
+
]);
|
|
82
|
+
const checkScopeSchema = z.enum(["server", "view"]);
|
|
83
|
+
const checkDetailSchema = z.object({
|
|
84
|
+
label: z.string(),
|
|
85
|
+
value: z.string().optional()
|
|
86
|
+
});
|
|
87
|
+
const checkResultSchema = z.object({
|
|
88
|
+
checkId: z.string(),
|
|
89
|
+
status: z.enum([
|
|
90
|
+
"pass",
|
|
91
|
+
"fail",
|
|
92
|
+
"skip",
|
|
93
|
+
"pending"
|
|
94
|
+
]),
|
|
95
|
+
message: z.string(),
|
|
96
|
+
skipReason: z.string().optional(),
|
|
97
|
+
severity: checkSeveritySchema,
|
|
98
|
+
category: checkCategorySchema,
|
|
99
|
+
scope: checkScopeSchema,
|
|
100
|
+
platforms: z.array(platformSchema).readonly().optional(),
|
|
101
|
+
durationMs: z.number(),
|
|
102
|
+
details: z.array(checkDetailSchema).optional(),
|
|
103
|
+
hint: z.object({ text: z.string() }).optional()
|
|
104
|
+
});
|
|
105
|
+
const auditReportSchema = z.object({
|
|
106
|
+
schemaVersion: z.string(),
|
|
107
|
+
auditId: z.string(),
|
|
108
|
+
targetUrl: z.string(),
|
|
109
|
+
startedAt: z.string(),
|
|
110
|
+
completedAt: z.string(),
|
|
111
|
+
durationMs: z.number(),
|
|
112
|
+
results: z.array(checkResultSchema),
|
|
113
|
+
requiresAuth: z.boolean(),
|
|
114
|
+
hasViewSupport: z.boolean(),
|
|
115
|
+
viewPlatforms: z.array(platformSchema).readonly().optional(),
|
|
116
|
+
isReadyForPlatform: z.record(platformSchema, z.boolean()),
|
|
117
|
+
widgetScreenshotKeys: z.object({
|
|
118
|
+
chatgpt: z.string().optional(),
|
|
119
|
+
claudeai: z.string().optional()
|
|
120
|
+
}).optional(),
|
|
121
|
+
widgetScreenshots: z.object({
|
|
122
|
+
chatgpt: z.object({ url: z.string() }).optional(),
|
|
123
|
+
claudeai: z.object({ url: z.string() }).optional()
|
|
124
|
+
}).optional()
|
|
125
|
+
});
|
|
63
126
|
const serverFieldsSchema = z.object({
|
|
64
127
|
$schema: z.string(),
|
|
65
128
|
name: z.string(),
|
|
@@ -527,6 +590,36 @@ const getServerInfoContractV1 = oc.route({
|
|
|
527
590
|
projectId: z.string(),
|
|
528
591
|
domain: z.string()
|
|
529
592
|
})).output(z.object({ serverFields: serverFieldsSchema }));
|
|
593
|
+
const createBeaconContractV1 = oc.route({
|
|
594
|
+
path: "/v1/beacon/analyses",
|
|
595
|
+
method: "POST",
|
|
596
|
+
summary: "Create a beacon analysis",
|
|
597
|
+
description: "Analyze an MCP server for spec compliance and AI client compatibility",
|
|
598
|
+
tags: ["beacon"],
|
|
599
|
+
successDescription: "The analysis has been created"
|
|
600
|
+
}).errors({
|
|
601
|
+
NOT_FOUND: {},
|
|
602
|
+
BAD_REQUEST: {}
|
|
603
|
+
}).input(z.object({
|
|
604
|
+
targetUrl: z.string().url().describe("The HTTPS URL of the MCP server to analyze"),
|
|
605
|
+
teamId: z.string().optional().describe("The team ID to associate the analysis with"),
|
|
606
|
+
projectId: z.string().optional().describe("The project ID to associate the analysis with")
|
|
607
|
+
})).output(z.object({ id: z.string() }));
|
|
608
|
+
const getBeaconContractV1 = oc.route({
|
|
609
|
+
path: "/v1/beacon/analyses/{analysisId}",
|
|
610
|
+
method: "GET",
|
|
611
|
+
summary: "Get a beacon analysis",
|
|
612
|
+
description: "Get a beacon analysis by ID, including the report if completed",
|
|
613
|
+
tags: ["beacon"],
|
|
614
|
+
successDescription: "The analysis details"
|
|
615
|
+
}).errors({ NOT_FOUND: {} }).input(z.object({ analysisId: z.string().describe("The ID of the analysis") })).output(z.object({
|
|
616
|
+
id: z.string(),
|
|
617
|
+
targetUrl: z.string(),
|
|
618
|
+
status: analysisStatusSchema,
|
|
619
|
+
durationMs: z.number().nullable(),
|
|
620
|
+
createdAt: z.coerce.date(),
|
|
621
|
+
report: auditReportSchema.nullable()
|
|
622
|
+
}));
|
|
530
623
|
const contract = {
|
|
531
624
|
teams: { list: { v1: listTeamsContractV1 } },
|
|
532
625
|
analytics: { get: { v1: getProjectAnalyticsContractV1 } },
|
|
@@ -559,7 +652,11 @@ const contract = {
|
|
|
559
652
|
distribution: {
|
|
560
653
|
publish: { v1: publishServerContractV1 },
|
|
561
654
|
get: { v1: getServerInfoContractV1 }
|
|
655
|
+
},
|
|
656
|
+
beacon: {
|
|
657
|
+
create: { v1: createBeaconContractV1 },
|
|
658
|
+
get: { v1: getBeaconContractV1 }
|
|
562
659
|
}
|
|
563
660
|
};
|
|
564
661
|
//#endregion
|
|
565
|
-
export { buildSettingsSchema, contract, createEnvironmentContractV1, deploymentStatusSchema, environmentVariableSchema, environmentVariablesSchema, runtimeSchema, serverFieldsSchema, transportSchema };
|
|
662
|
+
export { analysisStatusSchema, auditReportSchema, buildSettingsSchema, checkDetailSchema, checkResultSchema, contract, createEnvironmentContractV1, deploymentStatusSchema, environmentVariableSchema, environmentVariablesSchema, platformSchema, runtimeSchema, serverFieldsSchema, transportSchema };
|