caplets 0.7.0 → 0.9.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/README.md +120 -19
- package/dist/index.js +589 -78
- package/package.json +1 -1
- package/schemas/caplet.schema.json +306 -0
- package/schemas/caplets-config.schema.json +334 -0
package/package.json
CHANGED
|
@@ -149,6 +149,10 @@
|
|
|
149
149
|
"type": "string",
|
|
150
150
|
"minLength": 1
|
|
151
151
|
},
|
|
152
|
+
"clientMetadataUrl": {
|
|
153
|
+
"type": "string",
|
|
154
|
+
"minLength": 1
|
|
155
|
+
},
|
|
152
156
|
"clientId": {
|
|
153
157
|
"type": "string",
|
|
154
158
|
"minLength": 1
|
|
@@ -203,6 +207,10 @@
|
|
|
203
207
|
"type": "string",
|
|
204
208
|
"minLength": 1
|
|
205
209
|
},
|
|
210
|
+
"clientMetadataUrl": {
|
|
211
|
+
"type": "string",
|
|
212
|
+
"minLength": 1
|
|
213
|
+
},
|
|
206
214
|
"clientId": {
|
|
207
215
|
"type": "string",
|
|
208
216
|
"minLength": 1
|
|
@@ -353,6 +361,10 @@
|
|
|
353
361
|
"type": "string",
|
|
354
362
|
"minLength": 1
|
|
355
363
|
},
|
|
364
|
+
"clientMetadataUrl": {
|
|
365
|
+
"type": "string",
|
|
366
|
+
"minLength": 1
|
|
367
|
+
},
|
|
356
368
|
"clientId": {
|
|
357
369
|
"type": "string",
|
|
358
370
|
"minLength": 1
|
|
@@ -407,6 +419,10 @@
|
|
|
407
419
|
"type": "string",
|
|
408
420
|
"minLength": 1
|
|
409
421
|
},
|
|
422
|
+
"clientMetadataUrl": {
|
|
423
|
+
"type": "string",
|
|
424
|
+
"minLength": 1
|
|
425
|
+
},
|
|
410
426
|
"clientId": {
|
|
411
427
|
"type": "string",
|
|
412
428
|
"minLength": 1
|
|
@@ -591,6 +607,10 @@
|
|
|
591
607
|
"type": "string",
|
|
592
608
|
"minLength": 1
|
|
593
609
|
},
|
|
610
|
+
"clientMetadataUrl": {
|
|
611
|
+
"type": "string",
|
|
612
|
+
"minLength": 1
|
|
613
|
+
},
|
|
594
614
|
"clientId": {
|
|
595
615
|
"type": "string",
|
|
596
616
|
"minLength": 1
|
|
@@ -645,6 +665,10 @@
|
|
|
645
665
|
"type": "string",
|
|
646
666
|
"minLength": 1
|
|
647
667
|
},
|
|
668
|
+
"clientMetadataUrl": {
|
|
669
|
+
"type": "string",
|
|
670
|
+
"minLength": 1
|
|
671
|
+
},
|
|
648
672
|
"clientId": {
|
|
649
673
|
"type": "string",
|
|
650
674
|
"minLength": 1
|
|
@@ -697,6 +721,288 @@
|
|
|
697
721
|
"required": ["endpointUrl", "auth"],
|
|
698
722
|
"additionalProperties": false,
|
|
699
723
|
"description": "GraphQL endpoint backend configuration for this Caplet."
|
|
724
|
+
},
|
|
725
|
+
"httpApi": {
|
|
726
|
+
"type": "object",
|
|
727
|
+
"properties": {
|
|
728
|
+
"baseUrl": {
|
|
729
|
+
"type": "string",
|
|
730
|
+
"minLength": 1,
|
|
731
|
+
"pattern": "^(?![a-zA-Z][a-zA-Z0-9+.-]*:\\/\\/[^/?#]*@)[^?#]*$",
|
|
732
|
+
"description": "Base URL for HTTP action requests.",
|
|
733
|
+
"format": "uri"
|
|
734
|
+
},
|
|
735
|
+
"auth": {
|
|
736
|
+
"oneOf": [
|
|
737
|
+
{
|
|
738
|
+
"type": "object",
|
|
739
|
+
"properties": {
|
|
740
|
+
"type": {
|
|
741
|
+
"type": "string",
|
|
742
|
+
"const": "none"
|
|
743
|
+
}
|
|
744
|
+
},
|
|
745
|
+
"required": ["type"],
|
|
746
|
+
"additionalProperties": false
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
"type": "object",
|
|
750
|
+
"properties": {
|
|
751
|
+
"type": {
|
|
752
|
+
"type": "string",
|
|
753
|
+
"const": "bearer"
|
|
754
|
+
},
|
|
755
|
+
"token": {
|
|
756
|
+
"type": "string",
|
|
757
|
+
"minLength": 1
|
|
758
|
+
}
|
|
759
|
+
},
|
|
760
|
+
"required": ["type", "token"],
|
|
761
|
+
"additionalProperties": false
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
"type": "object",
|
|
765
|
+
"properties": {
|
|
766
|
+
"type": {
|
|
767
|
+
"type": "string",
|
|
768
|
+
"const": "headers"
|
|
769
|
+
},
|
|
770
|
+
"headers": {
|
|
771
|
+
"type": "object",
|
|
772
|
+
"propertyNames": {
|
|
773
|
+
"type": "string"
|
|
774
|
+
},
|
|
775
|
+
"additionalProperties": {
|
|
776
|
+
"type": "string",
|
|
777
|
+
"minLength": 1
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
},
|
|
781
|
+
"required": ["type", "headers"],
|
|
782
|
+
"additionalProperties": false
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
"type": "object",
|
|
786
|
+
"properties": {
|
|
787
|
+
"type": {
|
|
788
|
+
"type": "string",
|
|
789
|
+
"const": "oauth2"
|
|
790
|
+
},
|
|
791
|
+
"authorizationUrl": {
|
|
792
|
+
"type": "string",
|
|
793
|
+
"minLength": 1
|
|
794
|
+
},
|
|
795
|
+
"tokenUrl": {
|
|
796
|
+
"type": "string",
|
|
797
|
+
"minLength": 1
|
|
798
|
+
},
|
|
799
|
+
"issuer": {
|
|
800
|
+
"type": "string",
|
|
801
|
+
"minLength": 1
|
|
802
|
+
},
|
|
803
|
+
"resourceMetadataUrl": {
|
|
804
|
+
"type": "string",
|
|
805
|
+
"minLength": 1
|
|
806
|
+
},
|
|
807
|
+
"authorizationServerMetadataUrl": {
|
|
808
|
+
"type": "string",
|
|
809
|
+
"minLength": 1
|
|
810
|
+
},
|
|
811
|
+
"openidConfigurationUrl": {
|
|
812
|
+
"type": "string",
|
|
813
|
+
"minLength": 1
|
|
814
|
+
},
|
|
815
|
+
"clientMetadataUrl": {
|
|
816
|
+
"type": "string",
|
|
817
|
+
"minLength": 1
|
|
818
|
+
},
|
|
819
|
+
"clientId": {
|
|
820
|
+
"type": "string",
|
|
821
|
+
"minLength": 1
|
|
822
|
+
},
|
|
823
|
+
"clientSecret": {
|
|
824
|
+
"type": "string",
|
|
825
|
+
"minLength": 1
|
|
826
|
+
},
|
|
827
|
+
"scopes": {
|
|
828
|
+
"type": "array",
|
|
829
|
+
"items": {
|
|
830
|
+
"type": "string",
|
|
831
|
+
"minLength": 1
|
|
832
|
+
}
|
|
833
|
+
},
|
|
834
|
+
"redirectUri": {
|
|
835
|
+
"type": "string",
|
|
836
|
+
"minLength": 1
|
|
837
|
+
}
|
|
838
|
+
},
|
|
839
|
+
"required": ["type"],
|
|
840
|
+
"additionalProperties": false
|
|
841
|
+
},
|
|
842
|
+
{
|
|
843
|
+
"type": "object",
|
|
844
|
+
"properties": {
|
|
845
|
+
"type": {
|
|
846
|
+
"type": "string",
|
|
847
|
+
"const": "oidc"
|
|
848
|
+
},
|
|
849
|
+
"authorizationUrl": {
|
|
850
|
+
"type": "string",
|
|
851
|
+
"minLength": 1
|
|
852
|
+
},
|
|
853
|
+
"tokenUrl": {
|
|
854
|
+
"type": "string",
|
|
855
|
+
"minLength": 1
|
|
856
|
+
},
|
|
857
|
+
"issuer": {
|
|
858
|
+
"type": "string",
|
|
859
|
+
"minLength": 1
|
|
860
|
+
},
|
|
861
|
+
"resourceMetadataUrl": {
|
|
862
|
+
"type": "string",
|
|
863
|
+
"minLength": 1
|
|
864
|
+
},
|
|
865
|
+
"authorizationServerMetadataUrl": {
|
|
866
|
+
"type": "string",
|
|
867
|
+
"minLength": 1
|
|
868
|
+
},
|
|
869
|
+
"openidConfigurationUrl": {
|
|
870
|
+
"type": "string",
|
|
871
|
+
"minLength": 1
|
|
872
|
+
},
|
|
873
|
+
"clientMetadataUrl": {
|
|
874
|
+
"type": "string",
|
|
875
|
+
"minLength": 1
|
|
876
|
+
},
|
|
877
|
+
"clientId": {
|
|
878
|
+
"type": "string",
|
|
879
|
+
"minLength": 1
|
|
880
|
+
},
|
|
881
|
+
"clientSecret": {
|
|
882
|
+
"type": "string",
|
|
883
|
+
"minLength": 1
|
|
884
|
+
},
|
|
885
|
+
"scopes": {
|
|
886
|
+
"type": "array",
|
|
887
|
+
"items": {
|
|
888
|
+
"type": "string",
|
|
889
|
+
"minLength": 1
|
|
890
|
+
}
|
|
891
|
+
},
|
|
892
|
+
"redirectUri": {
|
|
893
|
+
"type": "string",
|
|
894
|
+
"minLength": 1
|
|
895
|
+
}
|
|
896
|
+
},
|
|
897
|
+
"required": ["type"],
|
|
898
|
+
"additionalProperties": false
|
|
899
|
+
}
|
|
900
|
+
],
|
|
901
|
+
"description": "Explicit HTTP API request auth config. Use {\"type\":\"none\"} for public APIs."
|
|
902
|
+
},
|
|
903
|
+
"actions": {
|
|
904
|
+
"type": "object",
|
|
905
|
+
"propertyNames": {
|
|
906
|
+
"type": "string",
|
|
907
|
+
"pattern": "^[a-zA-Z0-9_-]{1,64}$"
|
|
908
|
+
},
|
|
909
|
+
"additionalProperties": {
|
|
910
|
+
"type": "object",
|
|
911
|
+
"properties": {
|
|
912
|
+
"method": {
|
|
913
|
+
"type": "string",
|
|
914
|
+
"enum": ["GET", "POST", "PUT", "PATCH", "DELETE"],
|
|
915
|
+
"description": "HTTP method used for this action."
|
|
916
|
+
},
|
|
917
|
+
"path": {
|
|
918
|
+
"type": "string",
|
|
919
|
+
"minLength": 1,
|
|
920
|
+
"pattern": "^\\/",
|
|
921
|
+
"description": "URL path appended to the HTTP API baseUrl."
|
|
922
|
+
},
|
|
923
|
+
"description": {
|
|
924
|
+
"description": "Action capability description.",
|
|
925
|
+
"type": "string",
|
|
926
|
+
"minLength": 1
|
|
927
|
+
},
|
|
928
|
+
"inputSchema": {
|
|
929
|
+
"description": "JSON Schema for call_tool arguments.",
|
|
930
|
+
"type": "object",
|
|
931
|
+
"propertyNames": {
|
|
932
|
+
"type": "string"
|
|
933
|
+
},
|
|
934
|
+
"additionalProperties": {}
|
|
935
|
+
},
|
|
936
|
+
"query": {
|
|
937
|
+
"description": "Query parameter mapping.",
|
|
938
|
+
"type": "object",
|
|
939
|
+
"propertyNames": {
|
|
940
|
+
"type": "string"
|
|
941
|
+
},
|
|
942
|
+
"additionalProperties": {
|
|
943
|
+
"anyOf": [
|
|
944
|
+
{
|
|
945
|
+
"type": "string"
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
"type": "number"
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
"type": "boolean"
|
|
952
|
+
}
|
|
953
|
+
]
|
|
954
|
+
}
|
|
955
|
+
},
|
|
956
|
+
"headers": {
|
|
957
|
+
"description": "Request header mapping.",
|
|
958
|
+
"type": "object",
|
|
959
|
+
"propertyNames": {
|
|
960
|
+
"type": "string"
|
|
961
|
+
},
|
|
962
|
+
"additionalProperties": {
|
|
963
|
+
"anyOf": [
|
|
964
|
+
{
|
|
965
|
+
"type": "string"
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
"type": "number"
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
"type": "boolean"
|
|
972
|
+
}
|
|
973
|
+
]
|
|
974
|
+
}
|
|
975
|
+
},
|
|
976
|
+
"jsonBody": {
|
|
977
|
+
"description": "JSON request body mapping."
|
|
978
|
+
}
|
|
979
|
+
},
|
|
980
|
+
"required": ["method", "path"],
|
|
981
|
+
"additionalProperties": false
|
|
982
|
+
},
|
|
983
|
+
"description": "Configured HTTP actions keyed by stable tool name.",
|
|
984
|
+
"minProperties": 1
|
|
985
|
+
},
|
|
986
|
+
"requestTimeoutMs": {
|
|
987
|
+
"description": "Timeout in milliseconds for HTTP action requests.",
|
|
988
|
+
"type": "integer",
|
|
989
|
+
"exclusiveMinimum": 0,
|
|
990
|
+
"maximum": 9007199254740991
|
|
991
|
+
},
|
|
992
|
+
"maxResponseBytes": {
|
|
993
|
+
"description": "Maximum HTTP action response body bytes to read.",
|
|
994
|
+
"type": "integer",
|
|
995
|
+
"exclusiveMinimum": 0,
|
|
996
|
+
"maximum": 9007199254740991
|
|
997
|
+
},
|
|
998
|
+
"disabled": {
|
|
999
|
+
"description": "When true, omit this Caplet from discovery.",
|
|
1000
|
+
"type": "boolean"
|
|
1001
|
+
}
|
|
1002
|
+
},
|
|
1003
|
+
"required": ["baseUrl", "auth", "actions"],
|
|
1004
|
+
"additionalProperties": false,
|
|
1005
|
+
"description": "HTTP API backend configuration for this Caplet."
|
|
700
1006
|
}
|
|
701
1007
|
},
|
|
702
1008
|
"required": ["name", "description"],
|