@alva-ai/toolkit 0.21.0 → 0.23.0-beta.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.js CHANGED
@@ -527,6 +527,30 @@ var AutomationResource = class {
527
527
  `/api/v1/automation/${encodeURIComponent(String(id))}`
528
528
  );
529
529
  }
530
+ /** Partially update one existing automation by immutable decimal-string id. */
531
+ async update(params) {
532
+ this.client._requireAuth();
533
+ const id = requireAutomationIDString(params.id);
534
+ if (!hasAutomationUpdate(params)) {
535
+ throw new Error(
536
+ "automation update requires at least one field or trigger=true"
537
+ );
538
+ }
539
+ return this.client._request(
540
+ "PATCH",
541
+ `/api/v1/automation/${encodeURIComponent(String(id))}`,
542
+ {
543
+ body: {
544
+ version: params.version,
545
+ cronjob_id: params.cronjob_id,
546
+ description: params.description,
547
+ changelog: params.changelog,
548
+ agent_type: params.agent_type,
549
+ trigger: params.trigger
550
+ }
551
+ }
552
+ );
553
+ }
530
554
  stop(params) {
531
555
  return this.client.feed.stop(params);
532
556
  }
@@ -546,6 +570,15 @@ function requireAutomationID(id) {
546
570
  }
547
571
  return id;
548
572
  }
573
+ function requireAutomationIDString(id) {
574
+ if (!/^[1-9]\d*$/.test(id)) {
575
+ throw new Error("automation id must be a positive integer string");
576
+ }
577
+ return id;
578
+ }
579
+ function hasAutomationUpdate(params) {
580
+ return params.version !== void 0 || params.cronjob_id !== void 0 || params.description !== void 0 || params.changelog !== void 0 || params.agent_type !== void 0 || params.trigger === true;
581
+ }
549
582
 
550
583
  // src/resources/playbooks.ts
551
584
  var PLAYBOOK_VISIBILITIES = [
@@ -590,6 +623,26 @@ var PlaybooksResource = class {
590
623
  query
591
624
  });
592
625
  }
626
+ /**
627
+ * List the authenticated user's OWN playbooks via GET /api/v1/playbook —
628
+ * the owner-scoped surface that INCLUDES drafts. Unlike `listByOwner` (the
629
+ * public discovery view, which requires at least one release and therefore
630
+ * hides drafts), this shows work-in-progress playbooks you created but
631
+ * never released. Requires an API key: the owner is derived from auth, not
632
+ * a username argument. Optional `filter` narrows to draft | running |
633
+ * paused.
634
+ */
635
+ async listOwn(params = {}) {
636
+ const query = {};
637
+ if (params.filter) query.filter = params.filter;
638
+ if (params.limit !== void 0 && params.limit > 0) {
639
+ query.limit = String(params.limit);
640
+ }
641
+ if (params.cursor) query.cursor = params.cursor;
642
+ return await this.client._request("GET", "/api/v1/playbook", {
643
+ query
644
+ });
645
+ }
593
646
  /**
594
647
  * Get one playbook by numeric id or by "owner/name" ref. Returns null when
595
648
  * not found / not visible / deleted.
@@ -777,1181 +830,721 @@ var SdkDocsResource = class {
777
830
  }
778
831
  };
779
832
 
780
- // src/resources/skillTiers.ts
833
+ // src/resources/skillEndpoints.ts
781
834
  var SKILL_ENDPOINT_METADATA = [
782
835
  {
783
836
  skill: "arrays-data-api-crypto-futures-data",
784
837
  file: "binance-perp-usdt-kline",
785
838
  method: "GET",
786
- path: "/api/v1/crypto/binance/perp/usdt/kline",
787
- tier: "public",
788
- required_subscription_tier: "free",
789
- access: "free_and_pro",
790
- pro_required: false
839
+ path: "/api/v1/crypto/binance/perp/usdt/kline"
791
840
  },
792
841
  {
793
842
  skill: "arrays-data-api-spot-market-price-and-volume",
794
843
  file: "binance-spot-usdt-kline",
795
844
  method: "GET",
796
- path: "/api/v1/crypto/binance/spot/usdt/kline",
797
- tier: "public",
798
- required_subscription_tier: "free",
799
- access: "free_and_pro",
800
- pro_required: false
845
+ path: "/api/v1/crypto/binance/spot/usdt/kline"
801
846
  },
802
847
  {
803
848
  skill: "arrays-data-api-crypto-metrics-and-screener",
804
849
  file: "fear-greed-index",
805
850
  method: "GET",
806
- path: "/api/v1/crypto/fear-greed-index",
807
- tier: "public",
808
- required_subscription_tier: "free",
809
- access: "free_and_pro",
810
- pro_required: false
851
+ path: "/api/v1/crypto/fear-greed-index"
811
852
  },
812
853
  {
813
854
  skill: "arrays-data-api-crypto-futures-data",
814
855
  file: "funding-rate",
815
856
  method: "GET",
816
- path: "/api/v1/crypto/funding-rate",
817
- tier: "public",
818
- required_subscription_tier: "free",
819
- access: "free_and_pro",
820
- pro_required: false
857
+ path: "/api/v1/crypto/funding-rate"
821
858
  },
822
859
  {
823
860
  skill: "arrays-data-api-crypto-futures-data",
824
861
  file: "hyperliquid-perp-usdc-kline",
825
862
  method: "GET",
826
- path: "/api/v1/crypto/hyperliquid/perp/usdc/kline",
827
- tier: "public",
828
- required_subscription_tier: "free",
829
- access: "free_and_pro",
830
- pro_required: false
863
+ path: "/api/v1/crypto/hyperliquid/perp/usdc/kline"
831
864
  },
832
865
  {
833
866
  skill: "arrays-data-api-spot-market-price-and-volume",
834
867
  file: "hyperliquid-spot-usdc-kline",
835
868
  method: "GET",
836
- path: "/api/v1/crypto/hyperliquid/spot/usdc/kline",
837
- tier: "public",
838
- required_subscription_tier: "free",
839
- access: "free_and_pro",
840
- pro_required: false
869
+ path: "/api/v1/crypto/hyperliquid/spot/usdc/kline"
841
870
  },
842
871
  {
843
872
  skill: "arrays-data-api-crypto-futures-data",
844
873
  file: "long-short-ratio",
845
874
  method: "GET",
846
- path: "/api/v1/crypto/long-short-ratio",
847
- tier: "public",
848
- required_subscription_tier: "free",
849
- access: "free_and_pro",
850
- pro_required: false
875
+ path: "/api/v1/crypto/long-short-ratio"
851
876
  },
852
877
  {
853
878
  skill: "arrays-data-api-crypto-metrics-and-screener",
854
879
  file: "crypto-market-cap",
855
880
  method: "GET",
856
- path: "/api/v1/crypto/market-cap",
857
- tier: "public",
858
- required_subscription_tier: "free",
859
- access: "free_and_pro",
860
- pro_required: false
881
+ path: "/api/v1/crypto/market-cap"
861
882
  },
862
883
  {
863
884
  skill: "arrays-data-api-crypto-metrics-and-screener",
864
885
  file: "market-metrics",
865
886
  method: "GET",
866
- path: "/api/v1/crypto/market-metrics",
867
- tier: "public",
868
- required_subscription_tier: "free",
869
- access: "free_and_pro",
870
- pro_required: false
887
+ path: "/api/v1/crypto/market-metrics"
871
888
  },
872
889
  {
873
890
  skill: "arrays-data-api-crypto-futures-data",
874
891
  file: "open-interest",
875
892
  method: "GET",
876
- path: "/api/v1/crypto/open-interest",
877
- tier: "public",
878
- required_subscription_tier: "free",
879
- access: "free_and_pro",
880
- pro_required: false
893
+ path: "/api/v1/crypto/open-interest"
881
894
  },
882
895
  {
883
896
  skill: "arrays-data-api-crypto-metrics-and-screener",
884
897
  file: "screener-metrics",
885
898
  method: "GET",
886
- path: "/api/v1/crypto/screener/metrics",
887
- tier: "public",
888
- required_subscription_tier: "free",
889
- access: "free_and_pro",
890
- pro_required: false
899
+ path: "/api/v1/crypto/screener/metrics"
891
900
  },
892
901
  {
893
902
  skill: "arrays-data-api-crypto-metrics-and-screener",
894
903
  file: "screener-metrics-timerange",
895
904
  method: "GET",
896
- path: "/api/v1/crypto/screener/metrics/timerange",
897
- tier: "public",
898
- required_subscription_tier: "free",
899
- access: "free_and_pro",
900
- pro_required: false
905
+ path: "/api/v1/crypto/screener/metrics/timerange"
901
906
  },
902
907
  {
903
908
  skill: "arrays-data-api-crypto-metrics-and-screener",
904
909
  file: "crypto-detail",
905
910
  method: "GET",
906
- path: "/api/v1/crypto/detail",
907
- tier: "public",
908
- required_subscription_tier: "free",
909
- access: "free_and_pro",
910
- pro_required: false
911
+ path: "/api/v1/crypto/detail"
911
912
  },
912
913
  {
913
914
  skill: "arrays-data-api-etf-fundamentals",
914
915
  file: "country-weightings",
915
916
  method: "GET",
916
- path: "/api/v1/etf/country-weightings",
917
- tier: "public",
918
- required_subscription_tier: "free",
919
- access: "free_and_pro",
920
- pro_required: false
917
+ path: "/api/v1/etf/country-weightings"
921
918
  },
922
919
  {
923
920
  skill: "arrays-data-api-etf-fundamentals",
924
921
  file: "holdings",
925
922
  method: "GET",
926
- path: "/api/v1/etf/holdings",
927
- tier: "public",
928
- required_subscription_tier: "free",
929
- access: "free_and_pro",
930
- pro_required: false
923
+ path: "/api/v1/etf/holdings"
931
924
  },
932
925
  {
933
926
  skill: "arrays-data-api-etf-fundamentals",
934
927
  file: "info",
935
928
  method: "GET",
936
- path: "/api/v1/etf/info",
937
- tier: "public",
938
- required_subscription_tier: "free",
939
- access: "free_and_pro",
940
- pro_required: false
929
+ path: "/api/v1/etf/info"
941
930
  },
942
931
  {
943
932
  skill: "arrays-data-api-etf-fundamentals",
944
933
  file: "sector-weightings",
945
934
  method: "GET",
946
- path: "/api/v1/etf/sector-weightings",
947
- tier: "public",
948
- required_subscription_tier: "free",
949
- access: "free_and_pro",
950
- pro_required: false
935
+ path: "/api/v1/etf/sector-weightings"
951
936
  },
952
937
  {
953
938
  skill: "arrays-data-api-macro-and-economics",
954
939
  file: "macro-commodity-historical",
955
940
  method: "GET",
956
- path: "/api/v1/macro/commodity/historical",
957
- tier: "public",
958
- required_subscription_tier: "free",
959
- access: "free_and_pro",
960
- pro_required: false
941
+ path: "/api/v1/macro/commodity/historical"
961
942
  },
962
943
  {
963
944
  skill: "arrays-data-api-macro-and-economics",
964
945
  file: "macro-commodity-real-time",
965
946
  method: "GET",
966
- path: "/api/v1/macro/commodity/real-time",
967
- tier: "public",
968
- required_subscription_tier: "free",
969
- access: "free_and_pro",
970
- pro_required: false
947
+ path: "/api/v1/macro/commodity/real-time"
971
948
  },
972
949
  {
973
950
  skill: "arrays-data-api-macro-and-economics",
974
951
  file: "macro-commodity-symbol-list",
975
952
  method: "GET",
976
- path: "/api/v1/macro/commodity/symbols",
977
- tier: "public",
978
- required_subscription_tier: "free",
979
- access: "free_and_pro",
980
- pro_required: false
953
+ path: "/api/v1/macro/commodity/symbols"
981
954
  },
982
955
  {
983
956
  skill: "arrays-data-api-macro-and-economics",
984
957
  file: "economic-indicators",
985
958
  method: "GET",
986
- path: "/api/v1/macro/economic-indicators",
987
- tier: "public",
988
- required_subscription_tier: "free",
989
- access: "free_and_pro",
990
- pro_required: false
959
+ path: "/api/v1/macro/economic-indicators"
991
960
  },
992
961
  {
993
962
  skill: "arrays-data-api-macro-and-economics",
994
963
  file: "macro-forex-historical",
995
964
  method: "GET",
996
- path: "/api/v1/macro/forex/historical",
997
- tier: "public",
998
- required_subscription_tier: "free",
999
- access: "free_and_pro",
1000
- pro_required: false
965
+ path: "/api/v1/macro/forex/historical"
1001
966
  },
1002
967
  {
1003
968
  skill: "arrays-data-api-macro-and-economics",
1004
969
  file: "macro-forex-real-time",
1005
970
  method: "GET",
1006
- path: "/api/v1/macro/forex/real-time",
1007
- tier: "public",
1008
- required_subscription_tier: "free",
1009
- access: "free_and_pro",
1010
- pro_required: false
971
+ path: "/api/v1/macro/forex/real-time"
1011
972
  },
1012
973
  {
1013
974
  skill: "arrays-data-api-macro-and-economics",
1014
975
  file: "macro-forex-symbol-list",
1015
976
  method: "GET",
1016
- path: "/api/v1/macro/forex/symbols",
1017
- tier: "public",
1018
- required_subscription_tier: "free",
1019
- access: "free_and_pro",
1020
- pro_required: false
977
+ path: "/api/v1/macro/forex/symbols"
1021
978
  },
1022
979
  {
1023
980
  skill: "arrays-data-api-macro-and-economics",
1024
981
  file: "macro-index-historical",
1025
982
  method: "GET",
1026
- path: "/api/v1/macro/index/historical",
1027
- tier: "public",
1028
- required_subscription_tier: "free",
1029
- access: "free_and_pro",
1030
- pro_required: false
983
+ path: "/api/v1/macro/index/historical"
1031
984
  },
1032
985
  {
1033
986
  skill: "arrays-data-api-macro-and-economics",
1034
987
  file: "macro-index-real-time",
1035
988
  method: "GET",
1036
- path: "/api/v1/macro/index/real-time",
1037
- tier: "public",
1038
- required_subscription_tier: "free",
1039
- access: "free_and_pro",
1040
- pro_required: false
989
+ path: "/api/v1/macro/index/real-time"
1041
990
  },
1042
991
  {
1043
992
  skill: "arrays-data-api-macro-and-economics",
1044
993
  file: "rates",
1045
994
  method: "GET",
1046
- path: "/api/v1/macro/treasury-rates",
1047
- tier: "public",
1048
- required_subscription_tier: "free",
1049
- access: "free_and_pro",
1050
- pro_required: false
995
+ path: "/api/v1/macro/treasury-rates"
1051
996
  },
1052
997
  {
1053
998
  skill: "arrays-data-api-equity-fundamentals",
1054
999
  file: "company-balance-sheets",
1055
1000
  method: "GET",
1056
- path: "/api/v1/stocks/company/balance-sheets",
1057
- tier: "public",
1058
- required_subscription_tier: "free",
1059
- access: "free_and_pro",
1060
- pro_required: false
1001
+ path: "/api/v1/stocks/company/balance-sheets"
1061
1002
  },
1062
1003
  {
1063
1004
  skill: "arrays-data-api-equity-fundamentals",
1064
1005
  file: "company-cashflow-statements",
1065
1006
  method: "GET",
1066
- path: "/api/v1/stocks/company/cashflow-statements",
1067
- tier: "public",
1068
- required_subscription_tier: "free",
1069
- access: "free_and_pro",
1070
- pro_required: false
1007
+ path: "/api/v1/stocks/company/cashflow-statements"
1071
1008
  },
1072
1009
  {
1073
1010
  skill: "arrays-data-api-equity-fundamentals",
1074
1011
  file: "company-detail",
1075
1012
  method: "GET",
1076
- path: "/api/v1/stocks/company/detail",
1077
- tier: "public",
1078
- required_subscription_tier: "free",
1079
- access: "free_and_pro",
1080
- pro_required: false
1013
+ path: "/api/v1/stocks/company/detail"
1081
1014
  },
1082
1015
  {
1083
1016
  skill: "arrays-data-api-equity-fundamentals",
1084
1017
  file: "company-income-statements",
1085
1018
  method: "GET",
1086
- path: "/api/v1/stocks/company/income-statements",
1087
- tier: "public",
1088
- required_subscription_tier: "free",
1089
- access: "free_and_pro",
1090
- pro_required: false
1019
+ path: "/api/v1/stocks/company/income-statements"
1091
1020
  },
1092
1021
  {
1093
1022
  skill: "arrays-data-api-equity-fundamentals",
1094
1023
  file: "company-kpi",
1095
1024
  method: "GET",
1096
- path: "/api/v1/stocks/company/kpi",
1097
- tier: "public",
1098
- required_subscription_tier: "free",
1099
- access: "free_and_pro",
1100
- pro_required: false
1025
+ path: "/api/v1/stocks/company/kpi"
1101
1026
  },
1102
1027
  {
1103
1028
  skill: "arrays-data-api-equity-events",
1104
1029
  file: "crowdfunding-offerings",
1105
1030
  method: "GET",
1106
- path: "/api/v1/stocks/crowdfunding/offerings",
1107
- tier: "public",
1108
- required_subscription_tier: "free",
1109
- access: "free_and_pro",
1110
- pro_required: false
1031
+ path: "/api/v1/stocks/crowdfunding/offerings"
1111
1032
  },
1112
1033
  {
1113
1034
  skill: "arrays-data-api-equity-events",
1114
1035
  file: "dividends",
1115
1036
  method: "GET",
1116
- path: "/api/v1/stocks/dividends",
1117
- tier: "public",
1118
- required_subscription_tier: "free",
1119
- access: "free_and_pro",
1120
- pro_required: false
1037
+ path: "/api/v1/stocks/dividends"
1121
1038
  },
1122
1039
  {
1123
1040
  skill: "arrays-data-api-equity-events",
1124
1041
  file: "earnings-calendar",
1125
1042
  method: "GET",
1126
- path: "/api/v1/stocks/earnings-calendar",
1127
- tier: "public",
1128
- required_subscription_tier: "free",
1129
- access: "free_and_pro",
1130
- pro_required: false
1043
+ path: "/api/v1/stocks/earnings-calendar"
1131
1044
  },
1132
1045
  {
1133
1046
  skill: "arrays-data-api-equity-events",
1134
1047
  file: "equity-offering",
1135
1048
  method: "GET",
1136
- path: "/api/v1/stocks/equity-offering",
1137
- tier: "public",
1138
- required_subscription_tier: "free",
1139
- access: "free_and_pro",
1140
- pro_required: false
1049
+ path: "/api/v1/stocks/equity-offering"
1141
1050
  },
1142
1051
  {
1143
1052
  skill: "arrays-data-api-stock-metrics",
1144
1053
  file: "financial-metrics",
1145
1054
  method: "GET",
1146
- path: "/api/v1/stocks/financial-metrics",
1147
- tier: "public",
1148
- required_subscription_tier: "free",
1149
- access: "free_and_pro",
1150
- pro_required: false
1055
+ path: "/api/v1/stocks/financial-metrics"
1151
1056
  },
1152
1057
  {
1153
1058
  skill: "arrays-data-api-equity-fundamentals",
1154
1059
  file: "fiscal-dates",
1155
1060
  method: "GET",
1156
- path: "/api/v1/stocks/fiscal-dates",
1157
- tier: "public",
1158
- required_subscription_tier: "free",
1159
- access: "free_and_pro",
1160
- pro_required: false
1061
+ path: "/api/v1/stocks/fiscal-dates"
1161
1062
  },
1162
1063
  {
1163
1064
  skill: "arrays-data-api-equity-fundamentals",
1164
1065
  file: "fiscal-dates-range",
1165
1066
  method: "GET",
1166
- path: "/api/v1/stocks/fiscal-dates/range",
1167
- tier: "public",
1168
- required_subscription_tier: "free",
1169
- access: "free_and_pro",
1170
- pro_required: false
1067
+ path: "/api/v1/stocks/fiscal-dates/range"
1171
1068
  },
1172
1069
  {
1173
1070
  skill: "arrays-data-api-equity-events",
1174
1071
  file: "ipo-calendar",
1175
1072
  method: "GET",
1176
- path: "/api/v1/stocks/ipo-calendar",
1177
- tier: "public",
1178
- required_subscription_tier: "free",
1179
- access: "free_and_pro",
1180
- pro_required: false
1073
+ path: "/api/v1/stocks/ipo-calendar"
1181
1074
  },
1182
1075
  {
1183
1076
  skill: "arrays-data-api-equity-events",
1184
1077
  file: "ipo-confirmed-calendar",
1185
1078
  method: "GET",
1186
- path: "/api/v1/stocks/ipo-confirmed-calendar",
1187
- tier: "public",
1188
- required_subscription_tier: "free",
1189
- access: "free_and_pro",
1190
- pro_required: false
1079
+ path: "/api/v1/stocks/ipo-confirmed-calendar"
1191
1080
  },
1192
1081
  {
1193
1082
  skill: "arrays-data-api-spot-market-price-and-volume",
1194
1083
  file: "stocks-kline",
1195
1084
  method: "GET",
1196
- path: "/api/v1/stocks/kline",
1197
- tier: "public",
1198
- required_subscription_tier: "free",
1199
- access: "free_and_pro",
1200
- pro_required: false
1085
+ path: "/api/v1/stocks/kline"
1201
1086
  },
1202
1087
  {
1203
1088
  skill: "arrays-data-api-stock-metrics",
1204
1089
  file: "market-metrics",
1205
1090
  method: "GET",
1206
- path: "/api/v1/stocks/market-metrics",
1207
- tier: "public",
1208
- required_subscription_tier: "free",
1209
- access: "free_and_pro",
1210
- pro_required: false
1091
+ path: "/api/v1/stocks/market-metrics"
1211
1092
  },
1212
1093
  {
1213
1094
  skill: "arrays-data-api-equity-events",
1214
1095
  file: "mergers-acquisitions",
1215
1096
  method: "GET",
1216
- path: "/api/v1/stocks/mergers-acquisitions",
1217
- tier: "public",
1218
- required_subscription_tier: "free",
1219
- access: "free_and_pro",
1220
- pro_required: false
1097
+ path: "/api/v1/stocks/mergers-acquisitions"
1221
1098
  },
1222
1099
  {
1223
1100
  skill: "arrays-data-api-equity-fundamentals",
1224
1101
  file: "outstanding-shares",
1225
1102
  method: "GET",
1226
- path: "/api/v1/stocks/outstanding-shares",
1227
- tier: "public",
1228
- required_subscription_tier: "free",
1229
- access: "free_and_pro",
1230
- pro_required: false
1103
+ path: "/api/v1/stocks/outstanding-shares"
1231
1104
  },
1232
1105
  {
1233
1106
  skill: "arrays-data-api-stock-metrics",
1234
1107
  file: "ratings",
1235
1108
  method: "GET",
1236
- path: "/api/v1/stocks/ratings",
1237
- tier: "public",
1238
- required_subscription_tier: "free",
1239
- access: "free_and_pro",
1240
- pro_required: false
1109
+ path: "/api/v1/stocks/ratings"
1241
1110
  },
1242
1111
  {
1243
1112
  skill: "arrays-data-api-stock-screener",
1244
1113
  file: "basic-info-screener",
1245
1114
  method: "GET",
1246
- path: "/api/v1/stocks/screener/basic-info/{sub}",
1247
- tier: "public",
1248
- required_subscription_tier: "free",
1249
- access: "free_and_pro",
1250
- pro_required: false
1115
+ path: "/api/v1/stocks/screener/basic-info/{sub}"
1251
1116
  },
1252
1117
  {
1253
1118
  skill: "arrays-data-api-stock-screener",
1254
1119
  file: "event-screener",
1255
1120
  method: "GET",
1256
- path: "/api/v1/stocks/screener/events",
1257
- tier: "public",
1258
- required_subscription_tier: "free",
1259
- access: "free_and_pro",
1260
- pro_required: false
1121
+ path: "/api/v1/stocks/screener/events"
1261
1122
  },
1262
1123
  {
1263
1124
  skill: "arrays-data-api-stock-screener",
1264
1125
  file: "screener-financial-metrics",
1265
1126
  method: "GET",
1266
- path: "/api/v1/stocks/screener/financial-metrics",
1267
- tier: "public",
1268
- required_subscription_tier: "free",
1269
- access: "free_and_pro",
1270
- pro_required: false
1127
+ path: "/api/v1/stocks/screener/financial-metrics"
1271
1128
  },
1272
1129
  {
1273
1130
  skill: "arrays-data-api-stock-screener",
1274
1131
  file: "screener-financial-metrics-timerange",
1275
1132
  method: "GET",
1276
- path: "/api/v1/stocks/screener/financial-metrics/timerange",
1277
- tier: "public",
1278
- required_subscription_tier: "free",
1279
- access: "free_and_pro",
1280
- pro_required: false
1133
+ path: "/api/v1/stocks/screener/financial-metrics/timerange"
1281
1134
  },
1282
1135
  {
1283
1136
  skill: "arrays-data-api-stock-screener",
1284
1137
  file: "screener-technical-metrics",
1285
1138
  method: "GET",
1286
- path: "/api/v1/stocks/screener/technical-metrics",
1287
- tier: "public",
1288
- required_subscription_tier: "free",
1289
- access: "free_and_pro",
1290
- pro_required: false
1139
+ path: "/api/v1/stocks/screener/technical-metrics"
1291
1140
  },
1292
1141
  {
1293
1142
  skill: "arrays-data-api-stock-screener",
1294
1143
  file: "screener-technical-metrics-timerange",
1295
1144
  method: "GET",
1296
- path: "/api/v1/stocks/screener/technical-metrics/timerange",
1297
- tier: "public",
1298
- required_subscription_tier: "free",
1299
- access: "free_and_pro",
1300
- pro_required: false
1145
+ path: "/api/v1/stocks/screener/technical-metrics/timerange"
1301
1146
  },
1302
1147
  {
1303
1148
  skill: "arrays-data-api-equity-events",
1304
1149
  file: "sec-earnings-release",
1305
1150
  method: "GET",
1306
- path: "/api/v1/stocks/sec-earnings-release",
1307
- tier: "public",
1308
- required_subscription_tier: "free",
1309
- access: "free_and_pro",
1310
- pro_required: false
1151
+ path: "/api/v1/stocks/sec-earnings-release"
1311
1152
  },
1312
1153
  {
1313
1154
  skill: "arrays-data-api-equity-fundamentals",
1314
1155
  file: "shares-float",
1315
1156
  method: "GET",
1316
- path: "/api/v1/stocks/shares-float",
1317
- tier: "public",
1318
- required_subscription_tier: "free",
1319
- access: "free_and_pro",
1320
- pro_required: false
1157
+ path: "/api/v1/stocks/shares-float"
1321
1158
  },
1322
1159
  {
1323
1160
  skill: "arrays-data-api-equity-events",
1324
1161
  file: "splits",
1325
1162
  method: "GET",
1326
- path: "/api/v1/stocks/splits",
1327
- tier: "public",
1328
- required_subscription_tier: "free",
1329
- access: "free_and_pro",
1330
- pro_required: false
1163
+ path: "/api/v1/stocks/splits"
1331
1164
  },
1332
1165
  {
1333
1166
  skill: "arrays-data-api-crypto-exchange-flow",
1334
1167
  file: "exchange-flows",
1335
1168
  method: "GET",
1336
- path: "/api/v1/crypto/exchange-flows",
1337
- tier: "alternative",
1338
- required_subscription_tier: "pro",
1339
- access: "pro_only",
1340
- pro_required: true
1169
+ path: "/api/v1/crypto/exchange-flows"
1341
1170
  },
1342
1171
  {
1343
1172
  skill: "arrays-data-api-company-crypto-holdings",
1344
1173
  file: "crypto-holdings",
1345
1174
  method: "GET",
1346
- path: "/api/v1/crypto/holdings",
1347
- tier: "alternative",
1348
- required_subscription_tier: "pro",
1349
- access: "pro_only",
1350
- pro_required: true
1175
+ path: "/api/v1/crypto/holdings"
1351
1176
  },
1352
1177
  {
1353
1178
  skill: "arrays-data-api-crypto-metrics-and-screener",
1354
1179
  file: "metrics-inflow-cdd",
1355
1180
  method: "GET",
1356
- path: "/api/v1/crypto/metrics/inflow-cdd",
1357
- tier: "alternative",
1358
- required_subscription_tier: "pro",
1359
- access: "pro_only",
1360
- pro_required: true
1181
+ path: "/api/v1/crypto/metrics/inflow-cdd"
1361
1182
  },
1362
1183
  {
1363
1184
  skill: "arrays-data-api-crypto-metrics-and-screener",
1364
1185
  file: "metrics-leverage-ratio",
1365
1186
  method: "GET",
1366
- path: "/api/v1/crypto/metrics/leverage-ratio",
1367
- tier: "alternative",
1368
- required_subscription_tier: "pro",
1369
- access: "pro_only",
1370
- pro_required: true
1187
+ path: "/api/v1/crypto/metrics/leverage-ratio"
1371
1188
  },
1372
1189
  {
1373
1190
  skill: "arrays-data-api-crypto-metrics-and-screener",
1374
1191
  file: "metrics-miner-to-exchange",
1375
1192
  method: "GET",
1376
- path: "/api/v1/crypto/metrics/miner-to-exchange",
1377
- tier: "alternative",
1378
- required_subscription_tier: "pro",
1379
- access: "pro_only",
1380
- pro_required: true
1193
+ path: "/api/v1/crypto/metrics/miner-to-exchange"
1381
1194
  },
1382
1195
  {
1383
1196
  skill: "arrays-data-api-crypto-metrics-and-screener",
1384
1197
  file: "metrics-mvrv",
1385
1198
  method: "GET",
1386
- path: "/api/v1/crypto/metrics/mvrv",
1387
- tier: "alternative",
1388
- required_subscription_tier: "pro",
1389
- access: "pro_only",
1390
- pro_required: true
1199
+ path: "/api/v1/crypto/metrics/mvrv"
1391
1200
  },
1392
1201
  {
1393
1202
  skill: "arrays-data-api-crypto-metrics-and-screener",
1394
1203
  file: "metrics-nupl",
1395
1204
  method: "GET",
1396
- path: "/api/v1/crypto/metrics/nupl",
1397
- tier: "alternative",
1398
- required_subscription_tier: "pro",
1399
- access: "pro_only",
1400
- pro_required: true
1205
+ path: "/api/v1/crypto/metrics/nupl"
1401
1206
  },
1402
1207
  {
1403
1208
  skill: "arrays-data-api-crypto-metrics-and-screener",
1404
1209
  file: "metrics-puell-multiple",
1405
1210
  method: "GET",
1406
- path: "/api/v1/crypto/metrics/puell-multiple",
1407
- tier: "alternative",
1408
- required_subscription_tier: "pro",
1409
- access: "pro_only",
1410
- pro_required: true
1211
+ path: "/api/v1/crypto/metrics/puell-multiple"
1411
1212
  },
1412
1213
  {
1413
1214
  skill: "arrays-data-api-crypto-metrics-and-screener",
1414
1215
  file: "metrics-realized-price",
1415
1216
  method: "GET",
1416
- path: "/api/v1/crypto/metrics/realized-price",
1417
- tier: "alternative",
1418
- required_subscription_tier: "pro",
1419
- access: "pro_only",
1420
- pro_required: true
1217
+ path: "/api/v1/crypto/metrics/realized-price"
1421
1218
  },
1422
1219
  {
1423
1220
  skill: "arrays-data-api-crypto-metrics-and-screener",
1424
1221
  file: "metrics-sopr",
1425
1222
  method: "GET",
1426
- path: "/api/v1/crypto/metrics/sopr",
1427
- tier: "alternative",
1428
- required_subscription_tier: "pro",
1429
- access: "pro_only",
1430
- pro_required: true
1223
+ path: "/api/v1/crypto/metrics/sopr"
1431
1224
  },
1432
1225
  {
1433
1226
  skill: "arrays-data-api-crypto-metrics-and-screener",
1434
1227
  file: "metrics-ssr",
1435
1228
  method: "GET",
1436
- path: "/api/v1/crypto/metrics/ssr",
1437
- tier: "alternative",
1438
- required_subscription_tier: "pro",
1439
- access: "pro_only",
1440
- pro_required: true
1229
+ path: "/api/v1/crypto/metrics/ssr"
1441
1230
  },
1442
1231
  {
1443
1232
  skill: "arrays-data-api-crypto-metrics-and-screener",
1444
1233
  file: "metrics-whale-ratio",
1445
1234
  method: "GET",
1446
- path: "/api/v1/crypto/metrics/whale-ratio",
1447
- tier: "alternative",
1448
- required_subscription_tier: "pro",
1449
- access: "pro_only",
1450
- pro_required: true
1235
+ path: "/api/v1/crypto/metrics/whale-ratio"
1451
1236
  },
1452
1237
  {
1453
1238
  skill: "arrays-data-api-crypto-metrics-and-screener",
1454
1239
  file: "crypto-supply",
1455
1240
  method: "GET",
1456
- path: "/api/v1/crypto/supply",
1457
- tier: "alternative",
1458
- required_subscription_tier: "pro",
1459
- access: "pro_only",
1460
- pro_required: true
1241
+ path: "/api/v1/crypto/supply"
1461
1242
  },
1462
1243
  {
1463
1244
  skill: "arrays-data-api-crypto-futures-data",
1464
1245
  file: "taker-buy-sell-volume",
1465
1246
  method: "GET",
1466
- path: "/api/v1/crypto/taker-buy-sell-volume",
1467
- tier: "alternative",
1468
- required_subscription_tier: "pro",
1469
- access: "pro_only",
1470
- pro_required: true
1247
+ path: "/api/v1/crypto/taker-buy-sell-volume"
1471
1248
  },
1472
1249
  {
1473
1250
  skill: "arrays-data-api-crypto-metrics-and-screener",
1474
1251
  file: "unlock-events",
1475
1252
  method: "GET",
1476
- path: "/api/v1/crypto/unlock-events",
1477
- tier: "alternative",
1478
- required_subscription_tier: "pro",
1479
- access: "pro_only",
1480
- pro_required: true
1253
+ path: "/api/v1/crypto/unlock-events"
1481
1254
  },
1482
1255
  {
1483
1256
  skill: "arrays-data-api-etf-fundamentals",
1484
1257
  file: "flow",
1485
1258
  method: "GET",
1486
- path: "/api/v1/etf/flow",
1487
- tier: "alternative",
1488
- required_subscription_tier: "pro",
1489
- access: "pro_only",
1490
- pro_required: true
1259
+ path: "/api/v1/etf/flow"
1491
1260
  },
1492
1261
  {
1493
1262
  skill: "arrays-data-api-options",
1494
1263
  file: "contracts",
1495
1264
  method: "GET",
1496
- path: "/api/v1/options/contracts",
1497
- tier: "public",
1498
- required_subscription_tier: "free",
1499
- access: "free_and_pro",
1500
- pro_required: false
1265
+ path: "/api/v1/options/contracts"
1501
1266
  },
1502
1267
  {
1503
1268
  skill: "arrays-data-api-options",
1504
1269
  file: "kline",
1505
1270
  method: "GET",
1506
- path: "/api/v1/options/kline",
1507
- tier: "public",
1508
- required_subscription_tier: "free",
1509
- access: "free_and_pro",
1510
- pro_required: false
1271
+ path: "/api/v1/options/kline"
1511
1272
  },
1512
1273
  {
1513
1274
  skill: "arrays-data-api-options",
1514
1275
  file: "greeks",
1515
1276
  method: "GET",
1516
- path: "/api/v1/options/greeks",
1517
- tier: "public",
1518
- required_subscription_tier: "free",
1519
- access: "free_and_pro",
1520
- pro_required: false
1277
+ path: "/api/v1/options/greeks"
1521
1278
  },
1522
1279
  {
1523
1280
  skill: "arrays-data-api-options",
1524
1281
  file: "chain",
1525
1282
  method: "GET",
1526
- path: "/api/v1/options/chain",
1527
- tier: "public",
1528
- required_subscription_tier: "free",
1529
- access: "free_and_pro",
1530
- pro_required: false
1283
+ path: "/api/v1/options/chain"
1531
1284
  },
1532
1285
  {
1533
1286
  skill: "arrays-data-api-equity-fundamentals",
1534
1287
  file: "company-executives",
1535
1288
  method: "GET",
1536
- path: "/api/v1/stocks/company/executives",
1537
- tier: "alternative",
1538
- required_subscription_tier: "pro",
1539
- access: "pro_only",
1540
- pro_required: true
1289
+ path: "/api/v1/stocks/company/executives"
1541
1290
  },
1542
1291
  {
1543
1292
  skill: "arrays-data-api-equity-estimates-and-targets",
1544
1293
  file: "company-price-target-consensus",
1545
1294
  method: "GET",
1546
- path: "/api/v1/stocks/company/price-target-consensus",
1547
- tier: "alternative",
1548
- required_subscription_tier: "pro",
1549
- access: "pro_only",
1550
- pro_required: true
1295
+ path: "/api/v1/stocks/company/price-target-consensus"
1551
1296
  },
1552
1297
  {
1553
1298
  skill: "arrays-data-api-equity-estimates-and-targets",
1554
1299
  file: "company-price-target-news",
1555
1300
  method: "GET",
1556
- path: "/api/v1/stocks/company/price-target-news",
1557
- tier: "alternative",
1558
- required_subscription_tier: "pro",
1559
- access: "pro_only",
1560
- pro_required: true
1301
+ path: "/api/v1/stocks/company/price-target-news"
1561
1302
  },
1562
1303
  {
1563
1304
  skill: "arrays-data-api-equity-estimates-and-targets",
1564
1305
  file: "company-price-target-summary",
1565
1306
  method: "GET",
1566
- path: "/api/v1/stocks/company/price-target-summary",
1567
- tier: "alternative",
1568
- required_subscription_tier: "pro",
1569
- access: "pro_only",
1570
- pro_required: true
1307
+ path: "/api/v1/stocks/company/price-target-summary"
1571
1308
  },
1572
1309
  {
1573
1310
  skill: "arrays-data-api-equity-ownership-and-flow",
1574
1311
  file: "congress-recent-trades",
1575
1312
  method: "GET",
1576
- path: "/api/v1/stocks/congress/recent-trades",
1577
- tier: "alternative",
1578
- required_subscription_tier: "pro",
1579
- access: "pro_only",
1580
- pro_required: true
1313
+ path: "/api/v1/stocks/congress/recent-trades"
1581
1314
  },
1582
1315
  {
1583
1316
  skill: "arrays-data-api-stock-metrics",
1584
1317
  file: "darkpool",
1585
1318
  method: "GET",
1586
- path: "/api/v1/stocks/darkpool",
1587
- tier: "alternative",
1588
- required_subscription_tier: "pro",
1589
- access: "pro_only",
1590
- pro_required: true
1319
+ path: "/api/v1/stocks/darkpool"
1591
1320
  },
1592
1321
  {
1593
1322
  skill: "arrays-data-api-equity-estimates-and-targets",
1594
1323
  file: "estimates-guidance",
1595
1324
  method: "GET",
1596
- path: "/api/v1/stocks/estimates-guidance",
1597
- tier: "alternative",
1598
- required_subscription_tier: "pro",
1599
- access: "pro_only",
1600
- pro_required: true
1325
+ path: "/api/v1/stocks/estimates-guidance"
1601
1326
  },
1602
1327
  {
1603
1328
  skill: "arrays-data-api-equity-ownership-and-flow",
1604
1329
  file: "insider-transactions",
1605
1330
  method: "GET",
1606
- path: "/api/v1/stocks/insider/transactions",
1607
- tier: "alternative",
1608
- required_subscription_tier: "pro",
1609
- access: "pro_only",
1610
- pro_required: true
1331
+ path: "/api/v1/stocks/insider/transactions"
1611
1332
  },
1612
1333
  {
1613
1334
  skill: "arrays-data-api-equity-ownership-and-flow",
1614
1335
  file: "institution-holder",
1615
1336
  method: "GET",
1616
- path: "/api/v1/stocks/institution-holder",
1617
- tier: "alternative",
1618
- required_subscription_tier: "pro",
1619
- access: "pro_only",
1620
- pro_required: true
1337
+ path: "/api/v1/stocks/institution-holder"
1621
1338
  },
1622
1339
  {
1623
1340
  skill: "arrays-data-api-polymarket",
1624
1341
  file: "activity",
1625
1342
  method: "GET",
1626
- path: "polymarket:/activity",
1627
- tier: "alternative",
1628
- required_subscription_tier: "pro",
1629
- access: "pro_only",
1630
- pro_required: true
1343
+ path: "polymarket:/activity"
1631
1344
  },
1632
1345
  {
1633
1346
  skill: "arrays-data-api-polymarket",
1634
1347
  file: "book",
1635
1348
  method: "GET",
1636
- path: "polymarket:/book",
1637
- tier: "alternative",
1638
- required_subscription_tier: "pro",
1639
- access: "pro_only",
1640
- pro_required: true
1349
+ path: "polymarket:/book"
1641
1350
  },
1642
1351
  {
1643
1352
  skill: "arrays-data-api-polymarket",
1644
1353
  file: "closed-positions",
1645
1354
  method: "GET",
1646
- path: "polymarket:/closed-positions",
1647
- tier: "alternative",
1648
- required_subscription_tier: "pro",
1649
- access: "pro_only",
1650
- pro_required: true
1355
+ path: "polymarket:/closed-positions"
1651
1356
  },
1652
1357
  {
1653
1358
  skill: "arrays-data-api-polymarket",
1654
1359
  file: "events",
1655
1360
  method: "GET",
1656
- path: "polymarket:/events",
1657
- tier: "alternative",
1658
- required_subscription_tier: "pro",
1659
- access: "pro_only",
1660
- pro_required: true
1361
+ path: "polymarket:/events"
1661
1362
  },
1662
1363
  {
1663
1364
  skill: "arrays-data-api-polymarket",
1664
1365
  file: "holders",
1665
1366
  method: "GET",
1666
- path: "polymarket:/holders",
1667
- tier: "alternative",
1668
- required_subscription_tier: "pro",
1669
- access: "pro_only",
1670
- pro_required: true
1367
+ path: "polymarket:/holders"
1671
1368
  },
1672
1369
  {
1673
1370
  skill: "arrays-data-api-polymarket",
1674
1371
  file: "markets",
1675
1372
  method: "GET",
1676
- path: "polymarket:/markets",
1677
- tier: "alternative",
1678
- required_subscription_tier: "pro",
1679
- access: "pro_only",
1680
- pro_required: true
1373
+ path: "polymarket:/markets"
1681
1374
  },
1682
1375
  {
1683
1376
  skill: "arrays-data-api-polymarket",
1684
1377
  file: "midpoint",
1685
1378
  method: "GET",
1686
- path: "polymarket:/midpoint",
1687
- tier: "alternative",
1688
- required_subscription_tier: "pro",
1689
- access: "pro_only",
1690
- pro_required: true
1379
+ path: "polymarket:/midpoint"
1691
1380
  },
1692
1381
  {
1693
1382
  skill: "arrays-data-api-polymarket",
1694
1383
  file: "oi",
1695
1384
  method: "GET",
1696
- path: "polymarket:/oi",
1697
- tier: "alternative",
1698
- required_subscription_tier: "pro",
1699
- access: "pro_only",
1700
- pro_required: true
1385
+ path: "polymarket:/oi"
1701
1386
  },
1702
1387
  {
1703
1388
  skill: "arrays-data-api-polymarket",
1704
1389
  file: "positions",
1705
1390
  method: "GET",
1706
- path: "polymarket:/positions",
1707
- tier: "alternative",
1708
- required_subscription_tier: "pro",
1709
- access: "pro_only",
1710
- pro_required: true
1391
+ path: "polymarket:/positions"
1711
1392
  },
1712
1393
  {
1713
1394
  skill: "arrays-data-api-polymarket",
1714
1395
  file: "price",
1715
1396
  method: "GET",
1716
- path: "polymarket:/price",
1717
- tier: "alternative",
1718
- required_subscription_tier: "pro",
1719
- access: "pro_only",
1720
- pro_required: true
1397
+ path: "polymarket:/price"
1721
1398
  },
1722
1399
  {
1723
1400
  skill: "arrays-data-api-polymarket",
1724
1401
  file: "prices-history",
1725
1402
  method: "GET",
1726
- path: "polymarket:/prices-history",
1727
- tier: "alternative",
1728
- required_subscription_tier: "pro",
1729
- access: "pro_only",
1730
- pro_required: true
1403
+ path: "polymarket:/prices-history"
1731
1404
  },
1732
1405
  {
1733
1406
  skill: "arrays-data-api-polymarket",
1734
1407
  file: "public-search",
1735
1408
  method: "GET",
1736
- path: "polymarket:/public-search",
1737
- tier: "alternative",
1738
- required_subscription_tier: "pro",
1739
- access: "pro_only",
1740
- pro_required: true
1409
+ path: "polymarket:/public-search"
1741
1410
  },
1742
1411
  {
1743
1412
  skill: "arrays-data-api-polymarket",
1744
1413
  file: "series",
1745
1414
  method: "GET",
1746
- path: "polymarket:/series",
1747
- tier: "alternative",
1748
- required_subscription_tier: "pro",
1749
- access: "pro_only",
1750
- pro_required: true
1415
+ path: "polymarket:/series"
1751
1416
  },
1752
1417
  {
1753
1418
  skill: "arrays-data-api-polymarket",
1754
1419
  file: "sports",
1755
1420
  method: "GET",
1756
- path: "polymarket:/sports",
1757
- tier: "alternative",
1758
- required_subscription_tier: "pro",
1759
- access: "pro_only",
1760
- pro_required: true
1421
+ path: "polymarket:/sports"
1761
1422
  },
1762
1423
  {
1763
1424
  skill: "arrays-data-api-polymarket",
1764
1425
  file: "spread",
1765
1426
  method: "GET",
1766
- path: "polymarket:/spread",
1767
- tier: "alternative",
1768
- required_subscription_tier: "pro",
1769
- access: "pro_only",
1770
- pro_required: true
1427
+ path: "polymarket:/spread"
1771
1428
  },
1772
1429
  {
1773
1430
  skill: "arrays-data-api-polymarket",
1774
1431
  file: "tags",
1775
1432
  method: "GET",
1776
- path: "polymarket:/tags",
1777
- tier: "alternative",
1778
- required_subscription_tier: "pro",
1779
- access: "pro_only",
1780
- pro_required: true
1433
+ path: "polymarket:/tags"
1781
1434
  },
1782
1435
  {
1783
1436
  skill: "arrays-data-api-polymarket",
1784
1437
  file: "trades",
1785
1438
  method: "GET",
1786
- path: "polymarket:/trades",
1787
- tier: "alternative",
1788
- required_subscription_tier: "pro",
1789
- access: "pro_only",
1790
- pro_required: true
1439
+ path: "polymarket:/trades"
1791
1440
  },
1792
1441
  {
1793
1442
  skill: "arrays-data-api-polymarket",
1794
1443
  file: "value",
1795
1444
  method: "GET",
1796
- path: "polymarket:/value",
1797
- tier: "alternative",
1798
- required_subscription_tier: "pro",
1799
- access: "pro_only",
1800
- pro_required: true
1445
+ path: "polymarket:/value"
1801
1446
  },
1802
1447
  {
1803
1448
  skill: "arrays-data-api-equity-events",
1804
1449
  file: "earnings-transcript",
1805
1450
  method: "GET",
1806
- path: "/api/v1/stocks/earnings-transcript",
1807
- tier: "unstructured",
1808
- required_subscription_tier: "pro",
1809
- access: "pro_only",
1810
- pro_required: true
1451
+ path: "/api/v1/stocks/earnings-transcript"
1811
1452
  },
1812
1453
  {
1813
1454
  skill: "arrays-data-api-news",
1814
1455
  file: "market-news",
1815
1456
  method: "GET",
1816
- path: "/api/v1/stocks/market-news",
1817
- tier: "unstructured",
1818
- required_subscription_tier: "pro",
1819
- access: "pro_only",
1820
- pro_required: true
1457
+ path: "/api/v1/stocks/market-news"
1821
1458
  },
1822
1459
  {
1823
- // TODO(audit): verify tier — auto-defaulted to pro
1824
1460
  skill: "arrays-data-api-social-feeds",
1825
1461
  file: "x-by-handle",
1826
1462
  method: "GET",
1827
- path: "/api/v1/social-feeds/x/by-handle",
1828
- tier: "alternative",
1829
- required_subscription_tier: "pro",
1830
- access: "pro_only",
1831
- pro_required: true
1463
+ path: "/api/v1/social-feeds/x/by-handle"
1832
1464
  },
1833
1465
  {
1834
- // TODO(audit): verify tier — auto-defaulted to pro
1835
1466
  skill: "arrays-data-api-social-feeds",
1836
1467
  file: "x-by-url",
1837
1468
  method: "GET",
1838
- path: "/api/v1/social-feeds/x/by-url",
1839
- tier: "alternative",
1840
- required_subscription_tier: "pro",
1841
- access: "pro_only",
1842
- pro_required: true
1469
+ path: "/api/v1/social-feeds/x/by-url"
1843
1470
  },
1844
1471
  {
1845
- // TODO(audit): verify tier — auto-defaulted to pro
1846
1472
  skill: "arrays-data-api-social-feeds",
1847
1473
  file: "x-entities-handle",
1848
1474
  method: "GET",
1849
- path: "/api/v1/social-feeds/x/entities/handle/{twitter_handle}",
1850
- tier: "alternative",
1851
- required_subscription_tier: "pro",
1852
- access: "pro_only",
1853
- pro_required: true
1475
+ path: "/api/v1/social-feeds/x/entities/handle/{twitter_handle}"
1854
1476
  },
1855
1477
  {
1856
- // TODO(audit): verify tier — auto-defaulted to pro
1857
1478
  skill: "arrays-data-api-social-feeds",
1858
1479
  file: "x-entities-handles",
1859
1480
  method: "GET",
1860
- path: "/api/v1/social-feeds/x/entities/handles",
1861
- tier: "alternative",
1862
- required_subscription_tier: "pro",
1863
- access: "pro_only",
1864
- pro_required: true
1481
+ path: "/api/v1/social-feeds/x/entities/handles"
1865
1482
  },
1866
1483
  {
1867
1484
  skill: "arrays-data-api-equity-fundamentals",
1868
1485
  file: "company-detail-non-us",
1869
1486
  method: "GET",
1870
- path: "/api/v1/stocks/non-us/company/detail",
1871
- tier: "public",
1872
- required_subscription_tier: "free",
1873
- access: "free_and_pro",
1874
- pro_required: false
1487
+ path: "/api/v1/stocks/non-us/company/detail"
1875
1488
  },
1876
1489
  {
1877
1490
  skill: "arrays-data-api-social-feeds",
1878
1491
  file: "x-search",
1879
1492
  method: "GET",
1880
- path: "/api/v1/social-feeds/x/search",
1881
- tier: "alternative",
1882
- required_subscription_tier: "pro",
1883
- access: "pro_only",
1884
- pro_required: true
1493
+ path: "/api/v1/social-feeds/x/search"
1885
1494
  },
1886
1495
  {
1887
1496
  skill: "arrays-data-api-spot-market-price-and-volume",
1888
1497
  file: "stocks-non-us-kline",
1889
1498
  method: "GET",
1890
- path: "/api/v1/stocks/non-us/kline",
1891
- tier: "public",
1892
- required_subscription_tier: "free",
1893
- access: "free_and_pro",
1894
- pro_required: false
1499
+ path: "/api/v1/stocks/non-us/kline"
1895
1500
  },
1896
1501
  {
1897
1502
  skill: "arrays-data-api-semiconductor-price",
1898
1503
  file: "dram-spot-price",
1899
1504
  method: "GET",
1900
- path: "/api/v1/other/semiconductor/dram-spot-price",
1901
- tier: "alternative",
1902
- required_subscription_tier: "pro",
1903
- access: "pro_only",
1904
- pro_required: true
1505
+ path: "/api/v1/other/semiconductor/dram-spot-price"
1905
1506
  },
1906
1507
  {
1907
1508
  skill: "arrays-data-api-semiconductor-price",
1908
1509
  file: "dram-contract-price",
1909
1510
  method: "GET",
1910
- path: "/api/v1/other/semiconductor/dram-contract-price",
1911
- tier: "alternative",
1912
- required_subscription_tier: "pro",
1913
- access: "pro_only",
1914
- pro_required: true
1511
+ path: "/api/v1/other/semiconductor/dram-contract-price"
1915
1512
  },
1916
1513
  {
1917
1514
  skill: "arrays-data-api-semiconductor-price",
1918
1515
  file: "nand-flash-spot-price",
1919
1516
  method: "GET",
1920
- path: "/api/v1/other/semiconductor/nand-flash-spot-price",
1921
- tier: "alternative",
1922
- required_subscription_tier: "pro",
1923
- access: "pro_only",
1924
- pro_required: true
1517
+ path: "/api/v1/other/semiconductor/nand-flash-spot-price"
1925
1518
  },
1926
1519
  {
1927
1520
  skill: "arrays-data-api-semiconductor-price",
1928
1521
  file: "nand-flash-contract-price",
1929
1522
  method: "GET",
1930
- path: "/api/v1/other/semiconductor/nand-flash-contract-price",
1931
- tier: "alternative",
1932
- required_subscription_tier: "pro",
1933
- access: "pro_only",
1934
- pro_required: true
1523
+ path: "/api/v1/other/semiconductor/nand-flash-contract-price"
1935
1524
  },
1936
1525
  {
1937
1526
  skill: "arrays-data-api-semiconductor-price",
1938
1527
  file: "memory-card-price",
1939
1528
  method: "GET",
1940
- path: "/api/v1/other/semiconductor/memory-card-price",
1941
- tier: "alternative",
1942
- required_subscription_tier: "pro",
1943
- access: "pro_only",
1944
- pro_required: true
1529
+ path: "/api/v1/other/semiconductor/memory-card-price"
1945
1530
  },
1946
1531
  {
1947
1532
  skill: "arrays-data-api-semiconductor-price",
1948
1533
  file: "dxi-index",
1949
1534
  method: "GET",
1950
- path: "/api/v1/other/semiconductor/dxi-index",
1951
- tier: "alternative",
1952
- required_subscription_tier: "pro",
1953
- access: "pro_only",
1954
- pro_required: true
1535
+ path: "/api/v1/other/semiconductor/dxi-index"
1536
+ },
1537
+ {
1538
+ skill: "arrays-data-api-equity-ownership-and-flow",
1539
+ file: "short-interest",
1540
+ method: "GET",
1541
+ path: "/api/v1/stocks/short-interest"
1542
+ },
1543
+ {
1544
+ skill: "arrays-data-api-social-feeds",
1545
+ file: "x-handles",
1546
+ method: "POST",
1547
+ path: "/api/v1/social-feeds/x/handles"
1955
1548
  }
1956
1549
  ];
1957
1550
  function getSkillEndpointMetadata(skill, file) {
@@ -2026,24 +1619,9 @@ var DataSkillsResource = class {
2026
1619
  }
2027
1620
  };
2028
1621
  function metadataSummaryForSkill(skill) {
2029
- const endpointMetadata = listSkillEndpointMetadata(skill);
2030
- if (endpointMetadata.length === 0) {
2031
- return {};
2032
- }
2033
- const counts = {};
2034
- let proCount = 0;
2035
- for (const endpoint of endpointMetadata) {
2036
- counts[endpoint.tier] = (counts[endpoint.tier] ?? 0) + 1;
2037
- if (endpoint.pro_required) proCount += 1;
2038
- }
2039
- return {
2040
- endpoint_tier_counts: counts,
2041
- metadata: {
2042
- endpoint_count: endpointMetadata.length,
2043
- endpoint_tier_counts: counts,
2044
- pro_count: proCount
2045
- }
2046
- };
1622
+ const endpointCount = listSkillEndpointMetadata(skill).length;
1623
+ if (endpointCount === 0) return {};
1624
+ return { metadata: { endpoint_count: endpointCount } };
2047
1625
  }
2048
1626
 
2049
1627
  // src/resources/playbookSkills.ts
@@ -2927,6 +2505,319 @@ var CreditsResource = class {
2927
2505
  }
2928
2506
  };
2929
2507
 
2508
+ // src/resources/markets.ts
2509
+ var FISCAL_QUARTERS = [
2510
+ "Q1",
2511
+ "Q2",
2512
+ "Q3",
2513
+ "Q4"
2514
+ ];
2515
+ var EARNINGS_EVENTS = [
2516
+ "latest-completed",
2517
+ "next-confirmed"
2518
+ ];
2519
+ var NARRATIVE_QUERY = `
2520
+ query ToolkitCompanyNarrative($ticker: String!) {
2521
+ market {
2522
+ entity(input: { ticker: $ticker, kind: STOCK }) {
2523
+ ticker
2524
+ companyInsight {
2525
+ asOf
2526
+ generatedAtMs
2527
+ narrative
2528
+ peers
2529
+ }
2530
+ companyInsightHistory {
2531
+ snapshots {
2532
+ asOf
2533
+ generatedAtMs
2534
+ narrative
2535
+ }
2536
+ changeLog {
2537
+ asOf
2538
+ generatedAtMs
2539
+ narrativeChangeLog
2540
+ }
2541
+ }
2542
+ }
2543
+ }
2544
+ }
2545
+ `.trim();
2546
+ var EARNINGS_CATALOG_QUERY = `
2547
+ query ToolkitCompanyEarningsCatalog($ticker: String!) {
2548
+ market {
2549
+ entity(input: { ticker: $ticker, kind: STOCK }) {
2550
+ ticker
2551
+ earningsPeriods {
2552
+ unresolvedEventCount
2553
+ defaultPeriod {
2554
+ fiscalYear
2555
+ fiscalQuarter
2556
+ label
2557
+ fiscalDateEnding
2558
+ earningsDate
2559
+ session
2560
+ status
2561
+ isDefault
2562
+ }
2563
+ periods {
2564
+ fiscalYear
2565
+ fiscalQuarter
2566
+ label
2567
+ fiscalDateEnding
2568
+ earningsDate
2569
+ session
2570
+ status
2571
+ isDefault
2572
+ }
2573
+ }
2574
+ }
2575
+ }
2576
+ }
2577
+ `.trim();
2578
+ var EARNINGS_QUERY = `
2579
+ query ToolkitCompanyEarnings($ticker: String!, $input: CompanyEarningsInput) {
2580
+ market {
2581
+ entity(input: { ticker: $ticker, kind: STOCK }) {
2582
+ ticker
2583
+ earnings(input: $input) {
2584
+ period {
2585
+ fiscalYear
2586
+ fiscalQuarter
2587
+ label
2588
+ fiscalDateEnding
2589
+ earningsDate
2590
+ session
2591
+ status
2592
+ isDefault
2593
+ }
2594
+ preEarningsAnalysis {
2595
+ status
2596
+ asOf
2597
+ summary
2598
+ whatWouldChangeView
2599
+ mainQuestion
2600
+ investorFocus
2601
+ consensusAndGuidance
2602
+ stockSetup
2603
+ eventRisk
2604
+ whatWouldDriveUpside
2605
+ bullCase
2606
+ baseCase
2607
+ bearCase
2608
+ keyAsymmetry
2609
+ consensusN
2610
+ consensusObservedAt
2611
+ }
2612
+ earningsRelease {
2613
+ status
2614
+ releaseDate
2615
+ url
2616
+ }
2617
+ earningsTranscript {
2618
+ status
2619
+ date
2620
+ publishedAtMs
2621
+ sections {
2622
+ name
2623
+ entries {
2624
+ speaker
2625
+ title
2626
+ content
2627
+ }
2628
+ }
2629
+ }
2630
+ postEarningsSummary {
2631
+ status
2632
+ asOf
2633
+ reportedCurrency
2634
+ evidenceState
2635
+ openingQuote
2636
+ openingQuoteSpeaker
2637
+ openingQuoteTitle
2638
+ openingQuoteNote
2639
+ buriedSignals
2640
+ whatYouShouldKnow
2641
+ consensusN
2642
+ consensusObservedAt
2643
+ }
2644
+ }
2645
+ }
2646
+ }
2647
+ }
2648
+ `.trim();
2649
+ function graphQLErrorMessage2(errors) {
2650
+ const messages = errors.map(
2651
+ (error) => typeof error.message === "string" && error.message ? error.message : void 0
2652
+ ).filter((message) => Boolean(message));
2653
+ return messages.length > 0 ? messages.join("; ") : "GraphQL request failed";
2654
+ }
2655
+ function normalizedTicker(ticker) {
2656
+ const normalized = ticker.trim().toUpperCase();
2657
+ if (!normalized) {
2658
+ throw new AlvaError("INVALID_ARGUMENT", "ticker is required", 400);
2659
+ }
2660
+ return normalized;
2661
+ }
2662
+ var MarketsResource = class {
2663
+ constructor(client) {
2664
+ this.client = client;
2665
+ }
2666
+ client;
2667
+ async narrative(ticker) {
2668
+ this.client._requireAuth();
2669
+ const requestedTicker = normalizedTicker(ticker);
2670
+ const data = await this.graphql(NARRATIVE_QUERY, {
2671
+ ticker: requestedTicker
2672
+ });
2673
+ const entity = data.market?.entity;
2674
+ if (!entity) {
2675
+ throw this.notFound(requestedTicker);
2676
+ }
2677
+ return {
2678
+ ticker: entity.ticker,
2679
+ current: entity.companyInsight,
2680
+ history: entity.companyInsightHistory
2681
+ };
2682
+ }
2683
+ async earningsPeriods(ticker) {
2684
+ this.client._requireAuth();
2685
+ const requestedTicker = normalizedTicker(ticker);
2686
+ const data = await this.graphql(
2687
+ EARNINGS_CATALOG_QUERY,
2688
+ { ticker: requestedTicker }
2689
+ );
2690
+ const entity = data.market?.entity;
2691
+ if (!entity) {
2692
+ throw this.notFound(requestedTicker);
2693
+ }
2694
+ if (!entity.earningsPeriods) {
2695
+ throw new AlvaError(
2696
+ "MARKETS_EARNINGS_NOT_COVERED",
2697
+ `No earnings periods are available for ${entity.ticker}`,
2698
+ 404,
2699
+ { ticker: entity.ticker }
2700
+ );
2701
+ }
2702
+ return entity.earningsPeriods;
2703
+ }
2704
+ async earnings(params) {
2705
+ this.client._requireAuth();
2706
+ const ticker = normalizedTicker(params.ticker);
2707
+ const requestedEvent = params.event;
2708
+ const requestedFiscalYear = params.fiscalYear;
2709
+ const requestedFiscalQuarter = params.fiscalQuarter;
2710
+ const hasExplicitPeriod = requestedFiscalYear !== void 0 || requestedFiscalQuarter !== void 0;
2711
+ if (requestedEvent !== void 0 && hasExplicitPeriod) {
2712
+ throw new AlvaError(
2713
+ "INVALID_ARGUMENT",
2714
+ "event cannot be combined with fiscalYear or fiscalQuarter",
2715
+ 400
2716
+ );
2717
+ }
2718
+ if (requestedFiscalYear === void 0 !== (requestedFiscalQuarter === void 0)) {
2719
+ throw new AlvaError(
2720
+ "INVALID_ARGUMENT",
2721
+ "fiscalYear and fiscalQuarter must be provided together",
2722
+ 400
2723
+ );
2724
+ }
2725
+ if (requestedEvent !== void 0 && !EARNINGS_EVENTS.includes(requestedEvent)) {
2726
+ throw new AlvaError(
2727
+ "INVALID_ARGUMENT",
2728
+ `Unknown earnings event selector: ${requestedEvent}`,
2729
+ 400
2730
+ );
2731
+ }
2732
+ if (requestedFiscalYear !== void 0 && (!Number.isInteger(requestedFiscalYear) || requestedFiscalYear < 1900 || requestedFiscalYear > 9999)) {
2733
+ throw new AlvaError(
2734
+ "INVALID_ARGUMENT",
2735
+ "fiscalYear must be an integer between 1900 and 9999",
2736
+ 400
2737
+ );
2738
+ }
2739
+ if (requestedFiscalQuarter !== void 0 && !FISCAL_QUARTERS.includes(requestedFiscalQuarter)) {
2740
+ throw new AlvaError(
2741
+ "INVALID_ARGUMENT",
2742
+ "fiscalQuarter must be Q1, Q2, Q3, or Q4",
2743
+ 400
2744
+ );
2745
+ }
2746
+ let fiscalYear;
2747
+ let fiscalQuarter;
2748
+ if (requestedFiscalYear !== void 0 && requestedFiscalQuarter !== void 0) {
2749
+ fiscalYear = requestedFiscalYear;
2750
+ fiscalQuarter = requestedFiscalQuarter;
2751
+ } else {
2752
+ const event = requestedEvent ?? "latest-completed";
2753
+ const catalog = await this.earningsPeriods(ticker);
2754
+ const period = this.selectPeriod(catalog, event, ticker);
2755
+ fiscalYear = period.fiscalYear;
2756
+ fiscalQuarter = period.fiscalQuarter;
2757
+ }
2758
+ const data = await this.graphql(EARNINGS_QUERY, {
2759
+ ticker,
2760
+ input: { fiscalYear, fiscalQuarter }
2761
+ });
2762
+ const entity = data.market?.entity;
2763
+ if (!entity) {
2764
+ throw this.notFound(ticker);
2765
+ }
2766
+ if (!entity.earnings) {
2767
+ throw new AlvaError(
2768
+ "MARKETS_EARNINGS_NOT_COVERED",
2769
+ `No earnings content is available for ${entity.ticker} FY${fiscalYear} ${fiscalQuarter}`,
2770
+ 404,
2771
+ { ticker: entity.ticker, fiscalYear, fiscalQuarter }
2772
+ );
2773
+ }
2774
+ return { ticker: entity.ticker, ...entity.earnings };
2775
+ }
2776
+ selectPeriod(catalog, event, ticker) {
2777
+ if (event === "latest-completed") {
2778
+ if (catalog.defaultPeriod) return catalog.defaultPeriod;
2779
+ } else {
2780
+ const upcoming = catalog.periods.filter((period) => period.status === "UPCOMING").sort((a, b) => a.earningsDate.localeCompare(b.earningsDate));
2781
+ if (upcoming.length > 0) return upcoming[0];
2782
+ }
2783
+ throw new AlvaError(
2784
+ "MARKETS_EARNINGS_EVENT_NOT_FOUND",
2785
+ `No ${event} earnings event is available for ${ticker}`,
2786
+ 404,
2787
+ { ticker, event }
2788
+ );
2789
+ }
2790
+ notFound(ticker) {
2791
+ return new AlvaError(
2792
+ "MARKETS_ENTITY_NOT_FOUND",
2793
+ `No stock entity was found for ${ticker}`,
2794
+ 404,
2795
+ { ticker }
2796
+ );
2797
+ }
2798
+ async graphql(query, variables) {
2799
+ const response = await this.client._request("POST", "/query", {
2800
+ body: { query, variables }
2801
+ });
2802
+ if (response.errors && response.errors.length > 0) {
2803
+ throw new AlvaError(
2804
+ "GRAPHQL_ERROR",
2805
+ graphQLErrorMessage2(response.errors),
2806
+ 400,
2807
+ { errors: response.errors }
2808
+ );
2809
+ }
2810
+ if (!response.data) {
2811
+ throw new AlvaError(
2812
+ "GRAPHQL_EMPTY_RESPONSE",
2813
+ "GraphQL response did not include data",
2814
+ 502
2815
+ );
2816
+ }
2817
+ return response.data;
2818
+ }
2819
+ };
2820
+
2930
2821
  // src/client.ts
2931
2822
  var DEFAULT_BASE_URL = "https://api-llm.prd.alva.ai";
2932
2823
  var DEFAULT_ARRAYS_BASE_URL = "https://data-tools.prd.space.id";
@@ -3034,6 +2925,7 @@ var AlvaClient = class {
3034
2925
  _feedback;
3035
2926
  _functions;
3036
2927
  _credits;
2928
+ _markets;
3037
2929
  constructor(config) {
3038
2930
  this.baseUrl = config.baseUrl ?? DEFAULT_BASE_URL;
3039
2931
  this.arraysBaseUrl = config.arraysBaseUrl ?? DEFAULT_ARRAYS_BASE_URL;
@@ -3128,6 +3020,9 @@ var AlvaClient = class {
3128
3020
  get credits() {
3129
3021
  return this._credits ??= new CreditsResource(this);
3130
3022
  }
3023
+ get markets() {
3024
+ return this._markets ??= new MarketsResource(this);
3025
+ }
3131
3026
  _requireAuth() {
3132
3027
  if (!this.pbsvToken && !this.viewer_token && !this.apiKey) {
3133
3028
  throw new AlvaError(
@@ -3729,13 +3624,14 @@ var installPlaybookRuntime = (targetWindow) => {
3729
3624
  };
3730
3625
 
3731
3626
  // src/index.ts
3732
- var VERSION = true ? "0.21.0" : "dev";
3627
+ var VERSION = true ? "0.23.0-beta.0" : "dev";
3733
3628
  export {
3734
3629
  AlertsResource,
3735
3630
  AlvaClient,
3736
3631
  AlvaError,
3737
3632
  AutomationResource,
3738
3633
  CliUsageError,
3634
+ MarketsResource,
3739
3635
  PBSV_UPDATE_MESSAGE,
3740
3636
  SUBSCRIBE_PROPOSE_MESSAGE,
3741
3637
  SUBSCRIBE_RESULT_MESSAGE,