@alva-ai/toolkit 0.15.1-beta.0 → 0.16.1-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.cjs CHANGED
@@ -276,7 +276,8 @@ var DeployResource = class {
276
276
  args: params.args,
277
277
  push_notify: params.push_notify,
278
278
  max_heap_size_mb: params.max_heap_size_mb,
279
- run_as_user_id: params.run_as_user_id
279
+ run_as_user_id: params.run_as_user_id,
280
+ end_at: params.end_at
280
281
  }
281
282
  });
282
283
  }
@@ -510,6 +511,29 @@ var FeedResource = class {
510
511
  `/api/v1/feed/${encodeURIComponent(String(id))}`
511
512
  );
512
513
  }
514
+ /**
515
+ * Publish or unpublish a feed. Backed by POST /api/v1/feed/:id/visibility.
516
+ *
517
+ * Setting visibility to 'public' publishes the feed (the backend sets
518
+ * feeds.is_public and projects the ALFS public read grant in the same
519
+ * transaction); 'private' unpublishes it. Prefer this over granting the
520
+ * ALFS public read subject directly (e.g. `alva fs grant`), which bypasses
521
+ * the is_public flag and causes drift.
522
+ *
523
+ * Auth: caller must own the feed (uid match), enforced by the backend.
524
+ */
525
+ async setVisibility(params) {
526
+ this.client._requireAuth();
527
+ const id = requireFeedID(params.id);
528
+ if (params.visibility !== "public" && params.visibility !== "private") {
529
+ throw new Error("visibility must be 'public' or 'private'");
530
+ }
531
+ return this.client._request(
532
+ "POST",
533
+ `/api/v1/feed/${encodeURIComponent(String(id))}/visibility`,
534
+ { body: { visibility: params.visibility } }
535
+ );
536
+ }
513
537
  };
514
538
  function requireFeedID(id) {
515
539
  if (!Number.isInteger(id) || id <= 0) {
@@ -810,16 +834,6 @@ var SKILL_ENDPOINT_METADATA = [
810
834
  access: "free_and_pro",
811
835
  pro_required: false
812
836
  },
813
- {
814
- skill: "arrays-data-api-spot-market-price-and-volume",
815
- file: "crypto-detail",
816
- method: "GET",
817
- path: "/api/v1/crypto/detail",
818
- tier: "public",
819
- required_subscription_tier: "free",
820
- access: "free_and_pro",
821
- pro_required: false
822
- },
823
837
  {
824
838
  skill: "arrays-data-api-crypto-metrics-and-screener",
825
839
  file: "fear-greed-index",
@@ -860,16 +874,6 @@ var SKILL_ENDPOINT_METADATA = [
860
874
  access: "free_and_pro",
861
875
  pro_required: false
862
876
  },
863
- {
864
- skill: "arrays-data-api-crypto-metrics-and-screener",
865
- file: "list",
866
- method: "GET",
867
- path: "/api/v1/crypto/list",
868
- tier: "public",
869
- required_subscription_tier: "free",
870
- access: "free_and_pro",
871
- pro_required: false
872
- },
873
877
  {
874
878
  skill: "arrays-data-api-crypto-futures-data",
875
879
  file: "long-short-ratio",
@@ -932,9 +936,9 @@ var SKILL_ENDPOINT_METADATA = [
932
936
  },
933
937
  {
934
938
  skill: "arrays-data-api-crypto-metrics-and-screener",
935
- file: "trading-pair",
939
+ file: "crypto-detail",
936
940
  method: "GET",
937
- path: "/api/v1/crypto/trading-pair",
941
+ path: "/api/v1/crypto/detail",
938
942
  tier: "public",
939
943
  required_subscription_tier: "free",
940
944
  access: "free_and_pro",
@@ -1540,6 +1544,26 @@ var SKILL_ENDPOINT_METADATA = [
1540
1544
  access: "pro_only",
1541
1545
  pro_required: true
1542
1546
  },
1547
+ {
1548
+ skill: "arrays-data-api-options",
1549
+ file: "greeks",
1550
+ method: "GET",
1551
+ path: "/api/v1/options/greeks",
1552
+ tier: "alternative",
1553
+ required_subscription_tier: "pro",
1554
+ access: "pro_only",
1555
+ pro_required: true
1556
+ },
1557
+ {
1558
+ skill: "arrays-data-api-options",
1559
+ file: "chain",
1560
+ method: "GET",
1561
+ path: "/api/v1/options/chain",
1562
+ tier: "alternative",
1563
+ required_subscription_tier: "pro",
1564
+ access: "pro_only",
1565
+ pro_required: true
1566
+ },
1543
1567
  {
1544
1568
  skill: "arrays-data-api-equity-fundamentals",
1545
1569
  file: "company-executives",
@@ -1903,6 +1927,66 @@ var SKILL_ENDPOINT_METADATA = [
1903
1927
  required_subscription_tier: "free",
1904
1928
  access: "free_and_pro",
1905
1929
  pro_required: false
1930
+ },
1931
+ {
1932
+ skill: "arrays-data-api-semiconductor-price",
1933
+ file: "dram-spot-price",
1934
+ method: "GET",
1935
+ path: "/api/v1/other/semiconductor/dram-spot-price",
1936
+ tier: "alternative",
1937
+ required_subscription_tier: "pro",
1938
+ access: "pro_only",
1939
+ pro_required: true
1940
+ },
1941
+ {
1942
+ skill: "arrays-data-api-semiconductor-price",
1943
+ file: "dram-contract-price",
1944
+ method: "GET",
1945
+ path: "/api/v1/other/semiconductor/dram-contract-price",
1946
+ tier: "alternative",
1947
+ required_subscription_tier: "pro",
1948
+ access: "pro_only",
1949
+ pro_required: true
1950
+ },
1951
+ {
1952
+ skill: "arrays-data-api-semiconductor-price",
1953
+ file: "nand-flash-spot-price",
1954
+ method: "GET",
1955
+ path: "/api/v1/other/semiconductor/nand-flash-spot-price",
1956
+ tier: "alternative",
1957
+ required_subscription_tier: "pro",
1958
+ access: "pro_only",
1959
+ pro_required: true
1960
+ },
1961
+ {
1962
+ skill: "arrays-data-api-semiconductor-price",
1963
+ file: "nand-flash-contract-price",
1964
+ method: "GET",
1965
+ path: "/api/v1/other/semiconductor/nand-flash-contract-price",
1966
+ tier: "alternative",
1967
+ required_subscription_tier: "pro",
1968
+ access: "pro_only",
1969
+ pro_required: true
1970
+ },
1971
+ {
1972
+ skill: "arrays-data-api-semiconductor-price",
1973
+ file: "memory-card-price",
1974
+ method: "GET",
1975
+ path: "/api/v1/other/semiconductor/memory-card-price",
1976
+ tier: "alternative",
1977
+ required_subscription_tier: "pro",
1978
+ access: "pro_only",
1979
+ pro_required: true
1980
+ },
1981
+ {
1982
+ skill: "arrays-data-api-semiconductor-price",
1983
+ file: "dxi-index",
1984
+ method: "GET",
1985
+ path: "/api/v1/other/semiconductor/dxi-index",
1986
+ tier: "alternative",
1987
+ required_subscription_tier: "pro",
1988
+ access: "pro_only",
1989
+ pro_required: true
1906
1990
  }
1907
1991
  ];
1908
1992
  function getSkillEndpointMetadata(skill, file) {
@@ -2481,6 +2565,9 @@ var AlertsResource = class {
2481
2565
  list(params = {}) {
2482
2566
  return this.client.subscriptions.list(params);
2483
2567
  }
2568
+ follows(params = {}) {
2569
+ return this.client.subscriptions.follows(params);
2570
+ }
2484
2571
  enableAutomation(params) {
2485
2572
  return this.client.subscriptions.subscribeFeed(params);
2486
2573
  }
@@ -2548,6 +2635,24 @@ var ChannelGroupSubscriptionsResource = class {
2548
2635
  }
2549
2636
  );
2550
2637
  }
2638
+ /**
2639
+ * Read a group's buffered chat messages in a time window, for the group-chat
2640
+ * digest automation. Admin-gated: the authenticated caller must be that
2641
+ * group's Alva admin (a digest feed runs as that admin). Each message carries
2642
+ * a `permalink` deep-link back to the original message for "jump to original".
2643
+ * `from_micros`/`to_micros` are message-origin timestamps in microseconds.
2644
+ */
2645
+ async getGroupChatHistory(params) {
2646
+ this.client._requireAuth();
2647
+ return this.client._request("GET", "/api/v1/channel/group-history", {
2648
+ query: {
2649
+ channel: params.channel,
2650
+ remote_chat_id: params.remote_chat_id,
2651
+ from_micros: String(params.from_micros),
2652
+ to_micros: String(params.to_micros)
2653
+ }
2654
+ });
2655
+ }
2551
2656
  };
2552
2657
  function mutationBody(params) {
2553
2658
  return `{"session_id":${idLiteral(params.session_id)},"target_type":${JSON.stringify(params.target_type)},"target_id":${idLiteral(params.target_id)}}`;
@@ -3657,7 +3762,7 @@ var installPlaybookRuntime = (targetWindow) => {
3657
3762
  };
3658
3763
 
3659
3764
  // src/index.ts
3660
- var VERSION = true ? "0.15.1-beta.0" : "dev";
3765
+ var VERSION = true ? "0.16.1-beta.0" : "dev";
3661
3766
  // Annotate the CommonJS export names for ESM import in node:
3662
3767
  0 && (module.exports = {
3663
3768
  AlertsResource,