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.
@@ -168,6 +168,10 @@
168
168
  "type": "string",
169
169
  "format": "uri"
170
170
  },
171
+ "clientMetadataUrl": {
172
+ "type": "string",
173
+ "format": "uri"
174
+ },
171
175
  "clientId": {
172
176
  "type": "string",
173
177
  "minLength": 1
@@ -222,6 +226,10 @@
222
226
  "type": "string",
223
227
  "format": "uri"
224
228
  },
229
+ "clientMetadataUrl": {
230
+ "type": "string",
231
+ "format": "uri"
232
+ },
225
233
  "clientId": {
226
234
  "type": "string",
227
235
  "minLength": 1
@@ -403,6 +411,10 @@
403
411
  "type": "string",
404
412
  "format": "uri"
405
413
  },
414
+ "clientMetadataUrl": {
415
+ "type": "string",
416
+ "format": "uri"
417
+ },
406
418
  "clientId": {
407
419
  "type": "string",
408
420
  "minLength": 1
@@ -457,6 +469,10 @@
457
469
  "type": "string",
458
470
  "format": "uri"
459
471
  },
472
+ "clientMetadataUrl": {
473
+ "type": "string",
474
+ "format": "uri"
475
+ },
460
476
  "clientId": {
461
477
  "type": "string",
462
478
  "minLength": 1
@@ -670,6 +686,10 @@
670
686
  "type": "string",
671
687
  "format": "uri"
672
688
  },
689
+ "clientMetadataUrl": {
690
+ "type": "string",
691
+ "format": "uri"
692
+ },
673
693
  "clientId": {
674
694
  "type": "string",
675
695
  "minLength": 1
@@ -724,6 +744,10 @@
724
744
  "type": "string",
725
745
  "format": "uri"
726
746
  },
747
+ "clientMetadataUrl": {
748
+ "type": "string",
749
+ "format": "uri"
750
+ },
727
751
  "clientId": {
728
752
  "type": "string",
729
753
  "minLength": 1
@@ -788,6 +812,316 @@
788
812
  "required": ["name", "description", "endpointUrl", "auth"],
789
813
  "additionalProperties": false
790
814
  }
815
+ },
816
+ "httpApis": {
817
+ "default": {},
818
+ "description": "HTTP APIs keyed by stable Caplet ID.",
819
+ "type": "object",
820
+ "propertyNames": {
821
+ "type": "string",
822
+ "pattern": "^[a-zA-Z0-9_-]{1,64}$"
823
+ },
824
+ "additionalProperties": {
825
+ "type": "object",
826
+ "properties": {
827
+ "name": {
828
+ "type": "string",
829
+ "minLength": 1,
830
+ "maxLength": 80,
831
+ "description": "Human-readable HTTP API display name."
832
+ },
833
+ "description": {
834
+ "type": "string",
835
+ "description": "Capability description shown to agents before HTTP actions are disclosed."
836
+ },
837
+ "baseUrl": {
838
+ "type": "string",
839
+ "pattern": "^(?![a-zA-Z][a-zA-Z0-9+.-]*:\\/\\/[^/?#]*@)[^?#]*$",
840
+ "description": "Base URL for HTTP action requests.",
841
+ "format": "uri"
842
+ },
843
+ "auth": {
844
+ "oneOf": [
845
+ {
846
+ "type": "object",
847
+ "properties": {
848
+ "type": {
849
+ "type": "string",
850
+ "const": "none"
851
+ }
852
+ },
853
+ "required": ["type"],
854
+ "additionalProperties": false
855
+ },
856
+ {
857
+ "type": "object",
858
+ "properties": {
859
+ "type": {
860
+ "type": "string",
861
+ "const": "bearer"
862
+ },
863
+ "token": {
864
+ "type": "string",
865
+ "minLength": 1
866
+ }
867
+ },
868
+ "required": ["type", "token"],
869
+ "additionalProperties": false
870
+ },
871
+ {
872
+ "type": "object",
873
+ "properties": {
874
+ "type": {
875
+ "type": "string",
876
+ "const": "headers"
877
+ },
878
+ "headers": {
879
+ "type": "object",
880
+ "propertyNames": {
881
+ "type": "string"
882
+ },
883
+ "additionalProperties": {
884
+ "type": "string",
885
+ "minLength": 1
886
+ }
887
+ }
888
+ },
889
+ "required": ["type", "headers"],
890
+ "additionalProperties": false
891
+ },
892
+ {
893
+ "type": "object",
894
+ "properties": {
895
+ "type": {
896
+ "type": "string",
897
+ "const": "oauth2"
898
+ },
899
+ "authorizationUrl": {
900
+ "type": "string",
901
+ "format": "uri"
902
+ },
903
+ "tokenUrl": {
904
+ "type": "string",
905
+ "format": "uri"
906
+ },
907
+ "issuer": {
908
+ "type": "string",
909
+ "format": "uri"
910
+ },
911
+ "resourceMetadataUrl": {
912
+ "type": "string",
913
+ "format": "uri"
914
+ },
915
+ "authorizationServerMetadataUrl": {
916
+ "type": "string",
917
+ "format": "uri"
918
+ },
919
+ "openidConfigurationUrl": {
920
+ "type": "string",
921
+ "format": "uri"
922
+ },
923
+ "clientMetadataUrl": {
924
+ "type": "string",
925
+ "format": "uri"
926
+ },
927
+ "clientId": {
928
+ "type": "string",
929
+ "minLength": 1
930
+ },
931
+ "clientSecret": {
932
+ "type": "string",
933
+ "minLength": 1
934
+ },
935
+ "scopes": {
936
+ "type": "array",
937
+ "items": {
938
+ "type": "string",
939
+ "minLength": 1
940
+ }
941
+ },
942
+ "redirectUri": {
943
+ "type": "string",
944
+ "format": "uri"
945
+ }
946
+ },
947
+ "required": ["type"],
948
+ "additionalProperties": false
949
+ },
950
+ {
951
+ "type": "object",
952
+ "properties": {
953
+ "type": {
954
+ "type": "string",
955
+ "const": "oidc"
956
+ },
957
+ "authorizationUrl": {
958
+ "type": "string",
959
+ "format": "uri"
960
+ },
961
+ "tokenUrl": {
962
+ "type": "string",
963
+ "format": "uri"
964
+ },
965
+ "issuer": {
966
+ "type": "string",
967
+ "format": "uri"
968
+ },
969
+ "resourceMetadataUrl": {
970
+ "type": "string",
971
+ "format": "uri"
972
+ },
973
+ "authorizationServerMetadataUrl": {
974
+ "type": "string",
975
+ "format": "uri"
976
+ },
977
+ "openidConfigurationUrl": {
978
+ "type": "string",
979
+ "format": "uri"
980
+ },
981
+ "clientMetadataUrl": {
982
+ "type": "string",
983
+ "format": "uri"
984
+ },
985
+ "clientId": {
986
+ "type": "string",
987
+ "minLength": 1
988
+ },
989
+ "clientSecret": {
990
+ "type": "string",
991
+ "minLength": 1
992
+ },
993
+ "scopes": {
994
+ "type": "array",
995
+ "items": {
996
+ "type": "string",
997
+ "minLength": 1
998
+ }
999
+ },
1000
+ "redirectUri": {
1001
+ "type": "string",
1002
+ "format": "uri"
1003
+ }
1004
+ },
1005
+ "required": ["type"],
1006
+ "additionalProperties": false
1007
+ }
1008
+ ],
1009
+ "description": "Explicit HTTP API request auth config. Use {\"type\":\"none\"} for public APIs."
1010
+ },
1011
+ "actions": {
1012
+ "type": "object",
1013
+ "propertyNames": {
1014
+ "type": "string",
1015
+ "pattern": "^[a-zA-Z0-9_-]{1,64}$"
1016
+ },
1017
+ "additionalProperties": {
1018
+ "type": "object",
1019
+ "properties": {
1020
+ "method": {
1021
+ "type": "string",
1022
+ "enum": ["GET", "POST", "PUT", "PATCH", "DELETE"],
1023
+ "description": "HTTP method used for this action."
1024
+ },
1025
+ "path": {
1026
+ "type": "string",
1027
+ "minLength": 1,
1028
+ "pattern": "^\\/",
1029
+ "description": "URL path appended to the HTTP API baseUrl."
1030
+ },
1031
+ "description": {
1032
+ "description": "Action capability description.",
1033
+ "type": "string",
1034
+ "minLength": 1
1035
+ },
1036
+ "inputSchema": {
1037
+ "description": "JSON Schema for call_tool arguments.",
1038
+ "type": "object",
1039
+ "propertyNames": {
1040
+ "type": "string"
1041
+ },
1042
+ "additionalProperties": {}
1043
+ },
1044
+ "query": {
1045
+ "description": "Query parameter mapping.",
1046
+ "type": "object",
1047
+ "propertyNames": {
1048
+ "type": "string"
1049
+ },
1050
+ "additionalProperties": {
1051
+ "anyOf": [
1052
+ {
1053
+ "type": "string"
1054
+ },
1055
+ {
1056
+ "type": "number"
1057
+ },
1058
+ {
1059
+ "type": "boolean"
1060
+ }
1061
+ ]
1062
+ }
1063
+ },
1064
+ "headers": {
1065
+ "description": "Request header mapping.",
1066
+ "type": "object",
1067
+ "propertyNames": {
1068
+ "type": "string"
1069
+ },
1070
+ "additionalProperties": {
1071
+ "anyOf": [
1072
+ {
1073
+ "type": "string"
1074
+ },
1075
+ {
1076
+ "type": "number"
1077
+ },
1078
+ {
1079
+ "type": "boolean"
1080
+ }
1081
+ ]
1082
+ }
1083
+ },
1084
+ "jsonBody": {
1085
+ "description": "JSON request body mapping."
1086
+ }
1087
+ },
1088
+ "required": ["method", "path"],
1089
+ "additionalProperties": false
1090
+ },
1091
+ "description": "Configured HTTP actions keyed by stable tool name.",
1092
+ "minProperties": 1
1093
+ },
1094
+ "tags": {
1095
+ "type": "array",
1096
+ "items": {
1097
+ "type": "string",
1098
+ "minLength": 1,
1099
+ "maxLength": 80
1100
+ }
1101
+ },
1102
+ "requestTimeoutMs": {
1103
+ "default": 60000,
1104
+ "description": "Timeout in milliseconds for HTTP action requests.",
1105
+ "type": "integer",
1106
+ "exclusiveMinimum": 0,
1107
+ "maximum": 9007199254740991
1108
+ },
1109
+ "maxResponseBytes": {
1110
+ "default": 1000000,
1111
+ "description": "Maximum HTTP action response body bytes to read.",
1112
+ "type": "integer",
1113
+ "exclusiveMinimum": 0,
1114
+ "maximum": 9007199254740991
1115
+ },
1116
+ "disabled": {
1117
+ "default": false,
1118
+ "description": "When true, omit this HTTP API Caplet.",
1119
+ "type": "boolean"
1120
+ }
1121
+ },
1122
+ "required": ["name", "description", "baseUrl", "auth", "actions"],
1123
+ "additionalProperties": false
1124
+ }
791
1125
  }
792
1126
  },
793
1127
  "additionalProperties": false