casedev 0.71.0 → 0.72.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.
Files changed (62) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/package.json +1 -1
  3. package/resources/connectors/v1/index.d.mts +1 -1
  4. package/resources/connectors/v1/index.d.mts.map +1 -1
  5. package/resources/connectors/v1/index.d.ts +1 -1
  6. package/resources/connectors/v1/index.d.ts.map +1 -1
  7. package/resources/connectors/v1/index.js.map +1 -1
  8. package/resources/connectors/v1/index.mjs.map +1 -1
  9. package/resources/connectors/v1/links.d.mts +30 -1
  10. package/resources/connectors/v1/links.d.mts.map +1 -1
  11. package/resources/connectors/v1/links.d.ts +30 -1
  12. package/resources/connectors/v1/links.d.ts.map +1 -1
  13. package/resources/connectors/v1/links.js +19 -0
  14. package/resources/connectors/v1/links.js.map +1 -1
  15. package/resources/connectors/v1/links.mjs +19 -0
  16. package/resources/connectors/v1/links.mjs.map +1 -1
  17. package/resources/connectors/v1/v1.d.mts +2 -2
  18. package/resources/connectors/v1/v1.d.mts.map +1 -1
  19. package/resources/connectors/v1/v1.d.ts +2 -2
  20. package/resources/connectors/v1/v1.d.ts.map +1 -1
  21. package/resources/connectors/v1/v1.js.map +1 -1
  22. package/resources/connectors/v1/v1.mjs.map +1 -1
  23. package/resources/legal/index.d.mts +1 -1
  24. package/resources/legal/index.d.mts.map +1 -1
  25. package/resources/legal/index.d.ts +1 -1
  26. package/resources/legal/index.d.ts.map +1 -1
  27. package/resources/legal/index.js.map +1 -1
  28. package/resources/legal/index.mjs.map +1 -1
  29. package/resources/legal/legal.d.mts +2 -2
  30. package/resources/legal/legal.d.mts.map +1 -1
  31. package/resources/legal/legal.d.ts +2 -2
  32. package/resources/legal/legal.d.ts.map +1 -1
  33. package/resources/legal/legal.js.map +1 -1
  34. package/resources/legal/legal.mjs.map +1 -1
  35. package/resources/legal/v1.d.mts +228 -1
  36. package/resources/legal/v1.d.mts.map +1 -1
  37. package/resources/legal/v1.d.ts +228 -1
  38. package/resources/legal/v1.d.ts.map +1 -1
  39. package/resources/legal/v1.js +17 -0
  40. package/resources/legal/v1.js.map +1 -1
  41. package/resources/legal/v1.mjs +17 -0
  42. package/resources/legal/v1.mjs.map +1 -1
  43. package/resources/skills/skills.d.mts +18 -2
  44. package/resources/skills/skills.d.mts.map +1 -1
  45. package/resources/skills/skills.d.ts +18 -2
  46. package/resources/skills/skills.d.ts.map +1 -1
  47. package/resources/skills/skills.js +7 -2
  48. package/resources/skills/skills.js.map +1 -1
  49. package/resources/skills/skills.mjs +7 -2
  50. package/resources/skills/skills.mjs.map +1 -1
  51. package/src/resources/connectors/v1/index.ts +1 -0
  52. package/src/resources/connectors/v1/links.ts +53 -0
  53. package/src/resources/connectors/v1/v1.ts +2 -0
  54. package/src/resources/legal/index.ts +2 -0
  55. package/src/resources/legal/legal.ts +4 -0
  56. package/src/resources/legal/v1.ts +313 -0
  57. package/src/resources/skills/skills.ts +20 -2
  58. package/src/version.ts +1 -1
  59. package/version.d.mts +1 -1
  60. package/version.d.ts +1 -1
  61. package/version.js +1 -1
  62. package/version.mjs +1 -1
@@ -105,6 +105,24 @@ export class V1 extends APIResource {
105
105
  return this._client.post('/legal/v1/sec-filing', { body, ...options });
106
106
  }
107
107
 
108
+ /**
109
+ * Retrieve structured financial values reported to the SEC in XBRL, via
110
+ * data.sec.gov. Use this endpoint when you need numbers (net income, assets,
111
+ * shares outstanding, and so on); use sec-filing to find filing documents. Three
112
+ * types: "concept" returns one line item for one company over time; "facts"
113
+ * returns a catalog of every concept a company reports (or normalized facts for
114
+ * the concepts you name); "frames" returns one concept across all reporting
115
+ * companies for one calendar period. Each fact links back to its EDGAR filing
116
+ * index via secUrl. The same value is re-reported in later filings as a
117
+ * prior-period comparative, so by default (dedupe: true) only facts the SEC
118
+ * assigned a calendar frame are returned; set dedupe to false for every reported
119
+ * fact. Free.
120
+ */
121
+ secXbrl(params: V1SecXbrlParams, options?: RequestOptions): APIPromise<V1SecXbrlResponse> {
122
+ const { ciks, tickers, ...body } = params;
123
+ return this._client.post('/legal/v1/sec-xbrl', { body: { ciks, tickers, ...body }, ...options });
124
+ }
125
+
108
126
  /**
109
127
  * Find cases and documents similar to a given legal source. Useful for finding
110
128
  * citing cases, related precedents, or similar statutes.
@@ -878,6 +896,197 @@ export namespace V1SecFilingResponse {
878
896
  }
879
897
  }
880
898
 
899
+ export interface V1SecXbrlResponse {
900
+ /**
901
+ * Padded CIK (concept and facts)
902
+ */
903
+ cik?: string;
904
+
905
+ /**
906
+ * facts without concepts: the catalog of concepts the company reports
907
+ */
908
+ concepts?: Array<V1SecXbrlResponse.Concept>;
909
+
910
+ /**
911
+ * frames: one row per reporting company
912
+ */
913
+ data?: Array<V1SecXbrlResponse.Data>;
914
+
915
+ dateAfter?: string | null;
916
+
917
+ dateBefore?: string | null;
918
+
919
+ /**
920
+ * concept and facts with concepts
921
+ */
922
+ dedupe?: boolean;
923
+
924
+ description?: string | null;
925
+
926
+ entityName?: string | null;
927
+
928
+ /**
929
+ * concept, and facts when concepts is provided
930
+ */
931
+ facts?: Array<V1SecXbrlResponse.Fact>;
932
+
933
+ fiscalPeriods?: Array<string>;
934
+
935
+ formTypes?: Array<string>;
936
+
937
+ label?: string | null;
938
+
939
+ limit?: number;
940
+
941
+ offset?: number;
942
+
943
+ /**
944
+ * frames only
945
+ */
946
+ period?: string;
947
+
948
+ /**
949
+ * frames only
950
+ */
951
+ sort?: string;
952
+
953
+ /**
954
+ * concept and frames
955
+ */
956
+ tag?: string;
957
+
958
+ taxonomy?: string | null;
959
+
960
+ ticker?: string | null;
961
+
962
+ /**
963
+ * Rows matching before pagination
964
+ */
965
+ total?: number;
966
+
967
+ type?: 'concept' | 'facts' | 'frames';
968
+
969
+ unit?: string | null;
970
+ }
971
+
972
+ export namespace V1SecXbrlResponse {
973
+ export interface Concept {
974
+ factCount?: number;
975
+
976
+ label?: string | null;
977
+
978
+ latestPeriodEnd?: string | null;
979
+
980
+ tag?: string;
981
+
982
+ taxonomy?: string;
983
+
984
+ units?: Array<string>;
985
+ }
986
+
987
+ export interface Data {
988
+ accessionNumber?: string | null;
989
+
990
+ cik?: string;
991
+
992
+ end?: string;
993
+
994
+ entityName?: string | null;
995
+
996
+ filed?: string | null;
997
+
998
+ fiscalPeriod?: string | null;
999
+
1000
+ fiscalYear?: number | null;
1001
+
1002
+ form?: string | null;
1003
+
1004
+ /**
1005
+ * SEC calendar frame, null if not assigned
1006
+ */
1007
+ frame?: string | null;
1008
+
1009
+ label?: string | null;
1010
+
1011
+ /**
1012
+ * frames only. Reporting company location code
1013
+ */
1014
+ loc?: string | null;
1015
+
1016
+ /**
1017
+ * EDGAR filing index URL
1018
+ */
1019
+ secUrl?: string | null;
1020
+
1021
+ /**
1022
+ * Null for instantaneous facts
1023
+ */
1024
+ start?: string | null;
1025
+
1026
+ tag?: string;
1027
+
1028
+ taxonomy?: string;
1029
+
1030
+ /**
1031
+ * For example USD, shares, or USD/shares
1032
+ */
1033
+ unit?: string;
1034
+
1035
+ value?: number;
1036
+ }
1037
+
1038
+ export interface Fact {
1039
+ accessionNumber?: string | null;
1040
+
1041
+ cik?: string;
1042
+
1043
+ end?: string;
1044
+
1045
+ entityName?: string | null;
1046
+
1047
+ filed?: string | null;
1048
+
1049
+ fiscalPeriod?: string | null;
1050
+
1051
+ fiscalYear?: number | null;
1052
+
1053
+ form?: string | null;
1054
+
1055
+ /**
1056
+ * SEC calendar frame, null if not assigned
1057
+ */
1058
+ frame?: string | null;
1059
+
1060
+ label?: string | null;
1061
+
1062
+ /**
1063
+ * frames only. Reporting company location code
1064
+ */
1065
+ loc?: string | null;
1066
+
1067
+ /**
1068
+ * EDGAR filing index URL
1069
+ */
1070
+ secUrl?: string | null;
1071
+
1072
+ /**
1073
+ * Null for instantaneous facts
1074
+ */
1075
+ start?: string | null;
1076
+
1077
+ tag?: string;
1078
+
1079
+ taxonomy?: string;
1080
+
1081
+ /**
1082
+ * For example USD, shares, or USD/shares
1083
+ */
1084
+ unit?: string;
1085
+
1086
+ value?: number;
1087
+ }
1088
+ }
1089
+
881
1090
  export interface V1SimilarResponse {
882
1091
  /**
883
1092
  * Number of similar sources found
@@ -1423,6 +1632,108 @@ export interface V1SecFilingParams {
1423
1632
  ticker?: string;
1424
1633
  }
1425
1634
 
1635
+ export interface V1SecXbrlParams {
1636
+ /**
1637
+ * concept: one line item for one company over time. facts: all concepts for one
1638
+ * company (catalog, or values for the concepts you list). frames: one concept
1639
+ * across all companies for one period.
1640
+ */
1641
+ type: 'concept' | 'facts' | 'frames';
1642
+
1643
+ /**
1644
+ * Company CIK, padded or unpadded (concept and facts). Provide exactly one of cik
1645
+ * or ticker.
1646
+ */
1647
+ cik?: string;
1648
+
1649
+ /**
1650
+ * frames only. Restrict results to these CIKs (peer set).
1651
+ */
1652
+ ciks?: Array<string>;
1653
+
1654
+ /**
1655
+ * facts only. "taxonomy:tag" strings or bare tags (default us-gaap). Omit to get
1656
+ * the concept catalog, which has no values.
1657
+ */
1658
+ concepts?: Array<string>;
1659
+
1660
+ /**
1661
+ * concept and facts. Only facts whose period end date is on or after this date
1662
+ * (YYYY-MM-DD).
1663
+ */
1664
+ dateAfter?: string;
1665
+
1666
+ /**
1667
+ * concept and facts. Only facts whose period end date is on or before this date
1668
+ * (YYYY-MM-DD).
1669
+ */
1670
+ dateBefore?: string;
1671
+
1672
+ /**
1673
+ * concept and facts. When true, keep only facts the SEC assigned a calendar frame
1674
+ * (its canonical fact per period), dropping prior-period comparatives re-reported
1675
+ * in later filings. When false, return every reported fact.
1676
+ */
1677
+ dedupe?: boolean;
1678
+
1679
+ /**
1680
+ * concept and facts. Filter by fiscal period.
1681
+ */
1682
+ fiscalPeriods?: Array<'FY' | 'Q1' | 'Q2' | 'Q3'>;
1683
+
1684
+ /**
1685
+ * concept and facts. Filter by SEC form type such as 10-K or 10-Q.
1686
+ */
1687
+ formTypes?: Array<string>;
1688
+
1689
+ /**
1690
+ * Maximum rows to return
1691
+ */
1692
+ limit?: number;
1693
+
1694
+ /**
1695
+ * Result offset for pagination
1696
+ */
1697
+ offset?: number;
1698
+
1699
+ /**
1700
+ * frames only, required. CY2024 = annual duration, CY2024Q1 = quarterly duration,
1701
+ * CY2024Q1I = instantaneous (balance sheet items).
1702
+ */
1703
+ period?: string;
1704
+
1705
+ /**
1706
+ * frames only. Sort order by value.
1707
+ */
1708
+ sort?: 'value_desc' | 'value_asc';
1709
+
1710
+ /**
1711
+ * XBRL element name such as NetIncomeLoss (required for concept and frames)
1712
+ */
1713
+ tag?: string;
1714
+
1715
+ /**
1716
+ * XBRL taxonomy. For facts it only filters the catalog and has no default.
1717
+ */
1718
+ taxonomy?: 'us-gaap' | 'ifrs-full' | 'dei' | 'srt';
1719
+
1720
+ /**
1721
+ * Company ticker (concept and facts). Provide exactly one of cik or ticker.
1722
+ */
1723
+ ticker?: string;
1724
+
1725
+ /**
1726
+ * frames only. Restrict results to these tickers (peer set).
1727
+ */
1728
+ tickers?: Array<string>;
1729
+
1730
+ /**
1731
+ * Unit such as USD, shares, or USD/shares. Optional filter for concept; defaults
1732
+ * to USD for frames (the SEC URL form USD-per-shares is also accepted).
1733
+ */
1734
+ unit?: string;
1735
+ }
1736
+
1426
1737
  export interface V1SimilarParams {
1427
1738
  /**
1428
1739
  * URL of a legal document to find similar sources for
@@ -1481,6 +1792,7 @@ export declare namespace V1 {
1481
1792
  type V1PatentSearchResponse as V1PatentSearchResponse,
1482
1793
  type V1ResearchResponse as V1ResearchResponse,
1483
1794
  type V1SecFilingResponse as V1SecFilingResponse,
1795
+ type V1SecXbrlResponse as V1SecXbrlResponse,
1484
1796
  type V1SimilarResponse as V1SimilarResponse,
1485
1797
  type V1TrademarkSearchResponse as V1TrademarkSearchResponse,
1486
1798
  type V1VerifyResponse as V1VerifyResponse,
@@ -1494,6 +1806,7 @@ export declare namespace V1 {
1494
1806
  type V1PatentSearchParams as V1PatentSearchParams,
1495
1807
  type V1ResearchParams as V1ResearchParams,
1496
1808
  type V1SecFilingParams as V1SecFilingParams,
1809
+ type V1SecXbrlParams as V1SecXbrlParams,
1497
1810
  type V1SimilarParams as V1SimilarParams,
1498
1811
  type V1TrademarkSearchParams as V1TrademarkSearchParams,
1499
1812
  type V1VerifyParams as V1VerifyParams,
@@ -50,7 +50,10 @@ export class Skills extends APIResource {
50
50
 
51
51
  /**
52
52
  * Export a skill as an installable filesystem tree for sandbox runtimes.
53
- * Authenticated org-scoped custom skills are resolved before curated skills.
53
+ * Authenticated org-scoped custom skills are resolved before curated skills. Slugs
54
+ * of merged skills are permanent aliases: they export the surviving skill (slug,
55
+ * root and files describe the target) with `redirected_from` set to the requested
56
+ * slug.
54
57
  */
55
58
  export(
56
59
  slug: string,
@@ -62,7 +65,9 @@ export class Skills extends APIResource {
62
65
 
63
66
  /**
64
67
  * Read the full content of a legal skill by its slug. Returns markdown content,
65
- * tags, and metadata.
68
+ * tags, and metadata. Slugs of merged skills are permanent aliases: they return
69
+ * the surviving skill with `redirected_from` set to the requested slug instead of
70
+ * an error.
66
71
  */
67
72
  read(slug: string, options?: RequestOptions): APIPromise<SkillReadResponse> {
68
73
  return this._client.get(path`/skills/${slug}`, options);
@@ -196,6 +201,12 @@ export namespace SkillCatalogResponse {
196
201
  export interface SkillExportResponse {
197
202
  files?: Array<SkillExportResponse.File>;
198
203
 
204
+ /**
205
+ * Present only when the requested slug is a permanent alias of a merged skill.
206
+ * Holds the requested slug; slug, root and files describe the target skill.
207
+ */
208
+ redirected_from?: string;
209
+
199
210
  root?: string;
200
211
 
201
212
  slug?: string;
@@ -255,6 +266,13 @@ export interface SkillReadResponse {
255
266
  */
256
267
  name?: string;
257
268
 
269
+ /**
270
+ * Present only when the requested slug is a permanent alias of a merged skill.
271
+ * Holds the slug that was requested; every other field (including slug) describes
272
+ * the target skill. Omitted for non-alias reads.
273
+ */
274
+ redirected_from?: string;
275
+
258
276
  /**
259
277
  * Unique skill identifier
260
278
  */
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.71.0'; // x-release-please-version
1
+ export const VERSION = '0.72.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.71.0";
1
+ export declare const VERSION = "0.72.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.71.0";
1
+ export declare const VERSION = "0.72.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.71.0'; // x-release-please-version
4
+ exports.VERSION = '0.72.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.71.0'; // x-release-please-version
1
+ export const VERSION = '0.72.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map