casedev 0.71.0 → 0.73.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/CHANGELOG.md +14 -0
- package/package.json +1 -1
- package/resources/connectors/connectors.d.mts +2 -2
- package/resources/connectors/connectors.d.mts.map +1 -1
- package/resources/connectors/connectors.d.ts +2 -2
- package/resources/connectors/connectors.d.ts.map +1 -1
- package/resources/connectors/connectors.js.map +1 -1
- package/resources/connectors/connectors.mjs.map +1 -1
- package/resources/connectors/index.d.mts +1 -1
- package/resources/connectors/index.d.mts.map +1 -1
- package/resources/connectors/index.d.ts +1 -1
- package/resources/connectors/index.d.ts.map +1 -1
- package/resources/connectors/index.js.map +1 -1
- package/resources/connectors/index.mjs.map +1 -1
- package/resources/connectors/v1/connections.d.mts +343 -9
- package/resources/connectors/v1/connections.d.mts.map +1 -1
- package/resources/connectors/v1/connections.d.ts +343 -9
- package/resources/connectors/v1/connections.d.ts.map +1 -1
- package/resources/connectors/v1/connections.js +124 -1
- package/resources/connectors/v1/connections.js.map +1 -1
- package/resources/connectors/v1/connections.mjs +124 -1
- package/resources/connectors/v1/connections.mjs.map +1 -1
- package/resources/connectors/v1/index.d.mts +3 -3
- package/resources/connectors/v1/index.d.mts.map +1 -1
- package/resources/connectors/v1/index.d.ts +3 -3
- package/resources/connectors/v1/index.d.ts.map +1 -1
- package/resources/connectors/v1/index.js.map +1 -1
- package/resources/connectors/v1/index.mjs.map +1 -1
- package/resources/connectors/v1/links.d.mts +30 -1
- package/resources/connectors/v1/links.d.mts.map +1 -1
- package/resources/connectors/v1/links.d.ts +30 -1
- package/resources/connectors/v1/links.d.ts.map +1 -1
- package/resources/connectors/v1/links.js +19 -0
- package/resources/connectors/v1/links.js.map +1 -1
- package/resources/connectors/v1/links.mjs +19 -0
- package/resources/connectors/v1/links.mjs.map +1 -1
- package/resources/connectors/v1/v1.d.mts +141 -10
- package/resources/connectors/v1/v1.d.mts.map +1 -1
- package/resources/connectors/v1/v1.d.ts +141 -10
- package/resources/connectors/v1/v1.d.ts.map +1 -1
- package/resources/connectors/v1/v1.js +29 -5
- package/resources/connectors/v1/v1.js.map +1 -1
- package/resources/connectors/v1/v1.mjs +29 -5
- package/resources/connectors/v1/v1.mjs.map +1 -1
- package/resources/legal/index.d.mts +1 -1
- package/resources/legal/index.d.mts.map +1 -1
- package/resources/legal/index.d.ts +1 -1
- package/resources/legal/index.d.ts.map +1 -1
- package/resources/legal/index.js.map +1 -1
- package/resources/legal/index.mjs.map +1 -1
- package/resources/legal/legal.d.mts +2 -2
- package/resources/legal/legal.d.mts.map +1 -1
- package/resources/legal/legal.d.ts +2 -2
- package/resources/legal/legal.d.ts.map +1 -1
- package/resources/legal/legal.js.map +1 -1
- package/resources/legal/legal.mjs.map +1 -1
- package/resources/legal/v1.d.mts +228 -1
- package/resources/legal/v1.d.mts.map +1 -1
- package/resources/legal/v1.d.ts +228 -1
- package/resources/legal/v1.d.ts.map +1 -1
- package/resources/legal/v1.js +17 -0
- package/resources/legal/v1.js.map +1 -1
- package/resources/legal/v1.mjs +17 -0
- package/resources/legal/v1.mjs.map +1 -1
- package/resources/linc/v1/sessions.d.mts +22 -8
- package/resources/linc/v1/sessions.d.mts.map +1 -1
- package/resources/linc/v1/sessions.d.ts +22 -8
- package/resources/linc/v1/sessions.d.ts.map +1 -1
- package/resources/linc/v1/sessions.js +3 -3
- package/resources/linc/v1/sessions.mjs +3 -3
- package/resources/ocr/v1.d.mts +2 -1
- package/resources/ocr/v1.d.mts.map +1 -1
- package/resources/ocr/v1.d.ts +2 -1
- package/resources/ocr/v1.d.ts.map +1 -1
- package/resources/skills/skills.d.mts +18 -2
- package/resources/skills/skills.d.mts.map +1 -1
- package/resources/skills/skills.d.ts +18 -2
- package/resources/skills/skills.d.ts.map +1 -1
- package/resources/skills/skills.js +7 -2
- package/resources/skills/skills.js.map +1 -1
- package/resources/skills/skills.mjs +7 -2
- package/resources/skills/skills.mjs.map +1 -1
- package/resources/vault/assemblies.d.mts +293 -0
- package/resources/vault/assemblies.d.mts.map +1 -0
- package/resources/vault/assemblies.d.ts +293 -0
- package/resources/vault/assemblies.d.ts.map +1 -0
- package/resources/vault/assemblies.js +70 -0
- package/resources/vault/assemblies.js.map +1 -0
- package/resources/vault/assemblies.mjs +66 -0
- package/resources/vault/assemblies.mjs.map +1 -0
- package/resources/vault/index.d.mts +1 -0
- package/resources/vault/index.d.mts.map +1 -1
- package/resources/vault/index.d.ts +1 -0
- package/resources/vault/index.d.ts.map +1 -1
- package/resources/vault/index.js +3 -1
- package/resources/vault/index.js.map +1 -1
- package/resources/vault/index.mjs +1 -0
- package/resources/vault/index.mjs.map +1 -1
- package/resources/vault/vault.d.mts +9 -0
- package/resources/vault/vault.d.mts.map +1 -1
- package/resources/vault/vault.d.ts +9 -0
- package/resources/vault/vault.d.ts.map +1 -1
- package/resources/vault/vault.js +4 -0
- package/resources/vault/vault.js.map +1 -1
- package/resources/vault/vault.mjs +4 -0
- package/resources/vault/vault.mjs.map +1 -1
- package/resources/voice/boost-list.d.mts +5 -4
- package/resources/voice/boost-list.d.mts.map +1 -1
- package/resources/voice/boost-list.d.ts +5 -4
- package/resources/voice/boost-list.d.ts.map +1 -1
- package/resources/voice/boost-list.js +5 -4
- package/resources/voice/boost-list.js.map +1 -1
- package/resources/voice/boost-list.mjs +5 -4
- package/resources/voice/boost-list.mjs.map +1 -1
- package/resources/voice/transcription.d.mts +9 -2
- package/resources/voice/transcription.d.mts.map +1 -1
- package/resources/voice/transcription.d.ts +9 -2
- package/resources/voice/transcription.d.ts.map +1 -1
- package/src/resources/connectors/connectors.ts +2 -0
- package/src/resources/connectors/index.ts +1 -0
- package/src/resources/connectors/v1/connections.ts +534 -9
- package/src/resources/connectors/v1/index.ts +12 -0
- package/src/resources/connectors/v1/links.ts +53 -0
- package/src/resources/connectors/v1/v1.ts +187 -5
- package/src/resources/legal/index.ts +2 -0
- package/src/resources/legal/legal.ts +4 -0
- package/src/resources/legal/v1.ts +313 -0
- package/src/resources/linc/v1/sessions.ts +24 -9
- package/src/resources/ocr/v1.ts +2 -1
- package/src/resources/skills/skills.ts +20 -2
- package/src/resources/vault/assemblies.ts +403 -0
- package/src/resources/vault/index.ts +7 -0
- package/src/resources/vault/vault.ts +24 -0
- package/src/resources/voice/boost-list.ts +5 -4
- package/src/resources/voice/transcription.ts +10 -2
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- 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,
|
|
@@ -11,9 +11,9 @@ import { path } from '../../../internal/utils/path';
|
|
|
11
11
|
*/
|
|
12
12
|
export class Sessions extends APIResource {
|
|
13
13
|
/**
|
|
14
|
-
* Creates a
|
|
15
|
-
* This endpoint starts the sandbox actor only; messages and event
|
|
16
|
-
* separate endpoints.
|
|
14
|
+
* Creates a native Linc session in a sandboxed runtime with scoped Case.dev
|
|
15
|
+
* credentials. This endpoint starts the sandbox actor only; messages and event
|
|
16
|
+
* replay use separate endpoints.
|
|
17
17
|
*/
|
|
18
18
|
create(params: SessionCreateParams | null | undefined = {}, options?: RequestOptions): APIPromise<void> {
|
|
19
19
|
const {
|
|
@@ -192,12 +192,6 @@ export interface SessionCreateParams {
|
|
|
192
192
|
*/
|
|
193
193
|
includeDocumentTemplates?: boolean | null;
|
|
194
194
|
|
|
195
|
-
/**
|
|
196
|
-
* Body param: Privileged C3-only hidden app instructions to append to the sandbox
|
|
197
|
-
* AGENTS.md.
|
|
198
|
-
*/
|
|
199
|
-
instructions?: string | null;
|
|
200
|
-
|
|
201
195
|
/**
|
|
202
196
|
* Body param
|
|
203
197
|
*/
|
|
@@ -211,6 +205,27 @@ export interface SessionCreateParams {
|
|
|
211
205
|
*/
|
|
212
206
|
modelFallbacks?: Array<string>;
|
|
213
207
|
|
|
208
|
+
/**
|
|
209
|
+
* Body param: indefinite keeps the runtime and its saved state until the session
|
|
210
|
+
* (or, in workspace mode, its last conversation) is deleted, so a chat can resume
|
|
211
|
+
* after any idle gap. The default in workspace mode; standalone chats opt in with
|
|
212
|
+
* it, one-off runs leave it unset. Raises an existing workspace to indefinite.
|
|
213
|
+
* Mutually exclusive with runtimeRetentionDays.
|
|
214
|
+
*/
|
|
215
|
+
runtimeRetention?: 'indefinite';
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Body param: Days the runtime and its saved state are kept after the last
|
|
219
|
+
* activity. Defaults to 1 for standalone sessions; workspace-mode conversations
|
|
220
|
+
* (workspaceKey) and the C3 system key default to indefinite (see
|
|
221
|
+
* runtimeRetention). Once they are deleted, commands to the session answer 410
|
|
222
|
+
* linc_runtime_expired; its events stay readable. A workspace keeps the value it
|
|
223
|
+
* was created with; a larger value on a later conversation raises it. Applies to
|
|
224
|
+
* Vercel Sandbox runtimes; accepted and stored on Daytona, where it has no effect.
|
|
225
|
+
* Mutually exclusive with runtimeRetention.
|
|
226
|
+
*/
|
|
227
|
+
runtimeRetentionDays?: number;
|
|
228
|
+
|
|
214
229
|
/**
|
|
215
230
|
* Body param: Optional caller-provided scoped Case.dev API key for the runtime.
|
|
216
231
|
*/
|
package/src/resources/ocr/v1.ts
CHANGED
|
@@ -230,7 +230,8 @@ export interface V1DownloadParams {
|
|
|
230
230
|
|
|
231
231
|
export interface V1ProcessParams {
|
|
232
232
|
/**
|
|
233
|
-
* URL
|
|
233
|
+
* HTTP(S) URL of the document to process, or the s3:// path of a vault object in
|
|
234
|
+
* your organization
|
|
234
235
|
*/
|
|
235
236
|
document_url: string;
|
|
236
237
|
|
|
@@ -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
|
*/
|