casedev 0.28.1 → 0.29.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 (84) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/client.d.mts +0 -3
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +0 -3
  5. package/client.d.ts.map +1 -1
  6. package/client.js +0 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +0 -3
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/index.d.mts +0 -1
  12. package/resources/index.d.mts.map +1 -1
  13. package/resources/index.d.ts +0 -1
  14. package/resources/index.d.ts.map +1 -1
  15. package/resources/index.js +1 -3
  16. package/resources/index.js.map +1 -1
  17. package/resources/index.mjs +0 -1
  18. package/resources/index.mjs.map +1 -1
  19. package/resources/legal/index.d.mts +1 -1
  20. package/resources/legal/index.d.mts.map +1 -1
  21. package/resources/legal/index.d.ts +1 -1
  22. package/resources/legal/index.d.ts.map +1 -1
  23. package/resources/legal/index.js.map +1 -1
  24. package/resources/legal/index.mjs.map +1 -1
  25. package/resources/legal/legal.d.mts +2 -2
  26. package/resources/legal/legal.d.mts.map +1 -1
  27. package/resources/legal/legal.d.ts +2 -2
  28. package/resources/legal/legal.d.ts.map +1 -1
  29. package/resources/legal/legal.js.map +1 -1
  30. package/resources/legal/legal.mjs.map +1 -1
  31. package/resources/legal/v1.d.mts +92 -1
  32. package/resources/legal/v1.d.mts.map +1 -1
  33. package/resources/legal/v1.d.ts +92 -1
  34. package/resources/legal/v1.d.ts.map +1 -1
  35. package/resources/legal/v1.js +8 -0
  36. package/resources/legal/v1.js.map +1 -1
  37. package/resources/legal/v1.mjs +8 -0
  38. package/resources/legal/v1.mjs.map +1 -1
  39. package/src/client.ts +0 -5
  40. package/src/resources/index.ts +0 -1
  41. package/src/resources/legal/index.ts +2 -0
  42. package/src/resources/legal/legal.ts +4 -0
  43. package/src/resources/legal/v1.ts +137 -0
  44. package/src/version.ts +1 -1
  45. package/version.d.mts +1 -1
  46. package/version.d.ts +1 -1
  47. package/version.js +1 -1
  48. package/version.mjs +1 -1
  49. package/resources/operator/index.d.mts +0 -3
  50. package/resources/operator/index.d.mts.map +0 -1
  51. package/resources/operator/index.d.ts +0 -3
  52. package/resources/operator/index.d.ts.map +0 -1
  53. package/resources/operator/index.js +0 -9
  54. package/resources/operator/index.js.map +0 -1
  55. package/resources/operator/index.mjs +0 -4
  56. package/resources/operator/index.mjs.map +0 -1
  57. package/resources/operator/operator.d.mts +0 -10
  58. package/resources/operator/operator.d.mts.map +0 -1
  59. package/resources/operator/operator.d.ts +0 -10
  60. package/resources/operator/operator.d.ts.map +0 -1
  61. package/resources/operator/operator.js +0 -17
  62. package/resources/operator/operator.js.map +0 -1
  63. package/resources/operator/operator.mjs +0 -12
  64. package/resources/operator/operator.mjs.map +0 -1
  65. package/resources/operator/v1.d.mts +0 -39
  66. package/resources/operator/v1.d.mts.map +0 -1
  67. package/resources/operator/v1.d.ts +0 -39
  68. package/resources/operator/v1.d.ts.map +0 -1
  69. package/resources/operator/v1.js +0 -47
  70. package/resources/operator/v1.js.map +0 -1
  71. package/resources/operator/v1.mjs +0 -43
  72. package/resources/operator/v1.mjs.map +0 -1
  73. package/resources/operator.d.mts +0 -2
  74. package/resources/operator.d.mts.map +0 -1
  75. package/resources/operator.d.ts +0 -2
  76. package/resources/operator.d.ts.map +0 -1
  77. package/resources/operator.js +0 -6
  78. package/resources/operator.js.map +0 -1
  79. package/resources/operator.mjs +0 -3
  80. package/resources/operator.mjs.map +0 -1
  81. package/src/resources/operator/index.ts +0 -4
  82. package/src/resources/operator/operator.ts +0 -15
  83. package/src/resources/operator/v1.ts +0 -70
  84. package/src/resources/operator.ts +0 -3
@@ -105,6 +105,15 @@ export class V1 extends APIResource {
105
105
  return this._client.post('/legal/v1/research', { body, ...options });
106
106
  }
107
107
 
108
+ /**
109
+ * Search SEC EDGAR full-text filings via efts.sec.gov or fetch a filer's
110
+ * structured filing history via data.sec.gov. Returns direct SEC archive URLs with
111
+ * filing metadata and match snippets when available.
112
+ */
113
+ secFiling(body: V1SecFilingParams, options?: RequestOptions): APIPromise<V1SecFilingResponse> {
114
+ return this._client.post('/legal/v1/sec-filing', { body, ...options });
115
+ }
116
+
108
117
  /**
109
118
  * Find cases and documents similar to a given legal source. Useful for finding
110
119
  * citing cases, related precedents, or similar statutes.
@@ -820,6 +829,80 @@ export namespace V1ResearchResponse {
820
829
  }
821
830
  }
822
831
 
832
+ export interface V1SecFilingResponse {
833
+ cik?: string | null;
834
+
835
+ dateAfter?: string | null;
836
+
837
+ dateBefore?: string | null;
838
+
839
+ entity?: string | null;
840
+
841
+ filings?: Array<V1SecFilingResponse.Filing>;
842
+
843
+ formTypes?: Array<string>;
844
+
845
+ limit?: number;
846
+
847
+ offset?: number;
848
+
849
+ query?: string | null;
850
+
851
+ ticker?: string | null;
852
+
853
+ total?: number;
854
+
855
+ type?: 'search' | 'entity';
856
+ }
857
+
858
+ export namespace V1SecFilingResponse {
859
+ export interface Filing {
860
+ accessionNumber?: string;
861
+
862
+ description?: string | null;
863
+
864
+ documents?: Array<Filing.Document>;
865
+
866
+ entity?: Filing.Entity;
867
+
868
+ filedAt?: string;
869
+
870
+ formType?: string;
871
+
872
+ periodOfReport?: string | null;
873
+
874
+ secUrl?: string;
875
+
876
+ snippet?: string | null;
877
+ }
878
+
879
+ export namespace Filing {
880
+ export interface Document {
881
+ description?: string;
882
+
883
+ type?: string;
884
+
885
+ url?: string;
886
+ }
887
+
888
+ export interface Entity {
889
+ cik?: string;
890
+
891
+ entityType?: string | null;
892
+
893
+ name?: string | null;
894
+
895
+ sic?: string | null;
896
+
897
+ sicDescription?: string | null;
898
+
899
+ stateOfIncorporation?: string | null;
900
+
901
+ ticker?: string | null;
902
+ }
903
+ }
904
+ }
905
+
823
906
  export interface V1SimilarResponse {
824
907
  /**
825
908
  * Number of similar sources found
@@ -1385,6 +1468,58 @@ export interface V1ResearchParams {
1385
1468
  numResults?: number;
1386
1469
  }
1387
1470
 
1471
+ export interface V1SecFilingParams {
1472
+ /**
1473
+ * Run a full-text search or fetch a single entity filing history
1474
+ */
1475
+ type: 'search' | 'entity';
1476
+
1477
+ /**
1478
+ * CIK for entity lookups. Accepts padded or unpadded digits.
1479
+ */
1480
+ cik?: string;
1481
+
1482
+ /**
1483
+ * Optional lower filing date bound (YYYY-MM-DD)
1484
+ */
1485
+ dateAfter?: string;
1486
+
1487
+ /**
1488
+ * Optional upper filing date bound (YYYY-MM-DD)
1489
+ */
1490
+ dateBefore?: string;
1491
+
1492
+ /**
1493
+ * Optional entity filter passed through to EDGAR full-text search
1494
+ */
1495
+ entity?: string;
1496
+
1497
+ /**
1498
+ * Optional SEC form type filter such as 10-K, 10-Q, 8-K, or 4
1499
+ */
1500
+ formTypes?: Array<string>;
1501
+
1502
+ /**
1503
+ * Maximum filings to return
1504
+ */
1505
+ limit?: number;
1506
+
1507
+ /**
1508
+ * Result offset for pagination
1509
+ */
1510
+ offset?: number;
1511
+
1512
+ /**
1513
+ * Full-text SEC search query (required for type: search)
1514
+ */
1515
+ query?: string;
1516
+
1517
+ /**
1518
+ * Optional company ticker. Valid for both search and entity lookups.
1519
+ */
1520
+ ticker?: string;
1521
+ }
1522
+
1388
1523
  export interface V1SimilarParams {
1389
1524
  /**
1390
1525
  * URL of a legal document to find similar sources for
@@ -1443,6 +1578,7 @@ export declare namespace V1 {
1443
1578
  type V1ListJurisdictionsResponse as V1ListJurisdictionsResponse,
1444
1579
  type V1PatentSearchResponse as V1PatentSearchResponse,
1445
1580
  type V1ResearchResponse as V1ResearchResponse,
1581
+ type V1SecFilingResponse as V1SecFilingResponse,
1446
1582
  type V1SimilarResponse as V1SimilarResponse,
1447
1583
  type V1TrademarkSearchResponse as V1TrademarkSearchResponse,
1448
1584
  type V1VerifyResponse as V1VerifyResponse,
@@ -1456,6 +1592,7 @@ export declare namespace V1 {
1456
1592
  type V1ListJurisdictionsParams as V1ListJurisdictionsParams,
1457
1593
  type V1PatentSearchParams as V1PatentSearchParams,
1458
1594
  type V1ResearchParams as V1ResearchParams,
1595
+ type V1SecFilingParams as V1SecFilingParams,
1459
1596
  type V1SimilarParams as V1SimilarParams,
1460
1597
  type V1TrademarkSearchParams as V1TrademarkSearchParams,
1461
1598
  type V1VerifyParams as V1VerifyParams,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.28.1'; // x-release-please-version
1
+ export const VERSION = '0.29.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.28.1";
1
+ export declare const VERSION = "0.29.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.28.1";
1
+ export declare const VERSION = "0.29.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.28.1'; // x-release-please-version
4
+ exports.VERSION = '0.29.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.28.1'; // x-release-please-version
1
+ export const VERSION = '0.29.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1,3 +0,0 @@
1
- export { Operator } from "./operator.mjs";
2
- export { V1, type V1CreateParams } from "./v1.mjs";
3
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/operator/index.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAE;OACZ,EAAE,EAAE,EAAE,KAAK,cAAc,EAAE"}
@@ -1,3 +0,0 @@
1
- export { Operator } from "./operator.js";
2
- export { V1, type V1CreateParams } from "./v1.js";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/operator/index.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAE;OACZ,EAAE,EAAE,EAAE,KAAK,cAAc,EAAE"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.V1 = exports.Operator = void 0;
5
- var operator_1 = require("./operator.js");
6
- Object.defineProperty(exports, "Operator", { enumerable: true, get: function () { return operator_1.Operator; } });
7
- var v1_1 = require("./v1.js");
8
- Object.defineProperty(exports, "V1", { enumerable: true, get: function () { return v1_1.V1; } });
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/operator/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,8BAA+C;AAAtC,wFAAA,EAAE,OAAA"}
@@ -1,4 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export { Operator } from "./operator.mjs";
3
- export { V1 } from "./v1.mjs";
4
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/operator/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,QAAQ,EAAE;OACZ,EAAE,EAAE,EAAuB"}
@@ -1,10 +0,0 @@
1
- import { APIResource } from "../../core/resource.mjs";
2
- import * as V1API from "./v1.mjs";
3
- import { V1, V1CreateParams } from "./v1.mjs";
4
- export declare class Operator extends APIResource {
5
- v1: V1API.V1;
6
- }
7
- export declare namespace Operator {
8
- export { V1 as V1, type V1CreateParams as V1CreateParams };
9
- }
10
- //# sourceMappingURL=operator.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operator.d.mts","sourceRoot":"","sources":["../../src/resources/operator/operator.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EAAE,EAAE,EAAE,cAAc,EAAE;AAE7B,qBAAa,QAAS,SAAQ,WAAW;IACvC,EAAE,EAAE,KAAK,CAAC,EAAE,CAA8B;CAC3C;AAID,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,KAAK,cAAc,IAAI,cAAc,EAAE,CAAC;CAC5D"}
@@ -1,10 +0,0 @@
1
- import { APIResource } from "../../core/resource.js";
2
- import * as V1API from "./v1.js";
3
- import { V1, V1CreateParams } from "./v1.js";
4
- export declare class Operator extends APIResource {
5
- v1: V1API.V1;
6
- }
7
- export declare namespace Operator {
8
- export { V1 as V1, type V1CreateParams as V1CreateParams };
9
- }
10
- //# sourceMappingURL=operator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operator.d.ts","sourceRoot":"","sources":["../../src/resources/operator/operator.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EAAE,EAAE,EAAE,cAAc,EAAE;AAE7B,qBAAa,QAAS,SAAQ,WAAW;IACvC,EAAE,EAAE,KAAK,CAAC,EAAE,CAA8B;CAC3C;AAID,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,KAAK,cAAc,IAAI,cAAc,EAAE,CAAC;CAC5D"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Operator = void 0;
5
- const tslib_1 = require("../../internal/tslib.js");
6
- const resource_1 = require("../../core/resource.js");
7
- const V1API = tslib_1.__importStar(require("./v1.js"));
8
- const v1_1 = require("./v1.js");
9
- class Operator extends resource_1.APIResource {
10
- constructor() {
11
- super(...arguments);
12
- this.v1 = new V1API.V1(this._client);
13
- }
14
- }
15
- exports.Operator = Operator;
16
- Operator.V1 = v1_1.V1;
17
- //# sourceMappingURL=operator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operator.js","sourceRoot":"","sources":["../../src/resources/operator/operator.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,uDAA8B;AAC9B,gCAA0C;AAE1C,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,OAAE,GAAa,IAAI,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;CAAA;AAFD,4BAEC;AAED,QAAQ,CAAC,EAAE,GAAG,OAAE,CAAC"}
@@ -1,12 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../core/resource.mjs";
3
- import * as V1API from "./v1.mjs";
4
- import { V1 } from "./v1.mjs";
5
- export class Operator extends APIResource {
6
- constructor() {
7
- super(...arguments);
8
- this.v1 = new V1API.V1(this._client);
9
- }
10
- }
11
- Operator.V1 = V1;
12
- //# sourceMappingURL=operator.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operator.mjs","sourceRoot":"","sources":["../../src/resources/operator/operator.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EAAE,EAAE,EAAkB;AAE7B,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,OAAE,GAAa,IAAI,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;CAAA;AAED,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC"}
@@ -1,39 +0,0 @@
1
- import { APIResource } from "../../core/resource.mjs";
2
- import { APIPromise } from "../../core/api-promise.mjs";
3
- import { RequestOptions } from "../../internal/request-options.mjs";
4
- export declare class V1 extends APIResource {
5
- /**
6
- * Provision a new operator instance for the organization.
7
- */
8
- create(body: V1CreateParams, options?: RequestOptions): APIPromise<void>;
9
- /**
10
- * Proxy a chat completion request to the organization's operator instance.
11
- */
12
- createChatCompletion(options?: RequestOptions): APIPromise<void>;
13
- /**
14
- * Proxy a response request to the organization's operator instance.
15
- */
16
- createResponse(options?: RequestOptions): APIPromise<void>;
17
- /**
18
- * Get the status of the organization's operator instance.
19
- */
20
- getStatus(options?: RequestOptions): APIPromise<void>;
21
- }
22
- export interface V1CreateParams {
23
- /**
24
- * Operator name
25
- */
26
- name: string;
27
- /**
28
- * Model to use
29
- */
30
- model?: string;
31
- /**
32
- * Instance size
33
- */
34
- size?: 'small' | 'medium' | 'large';
35
- }
36
- export declare namespace V1 {
37
- export { type V1CreateParams as V1CreateParams };
38
- }
39
- //# sourceMappingURL=v1.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../src/resources/operator/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,EAAG,SAAQ,WAAW;IACjC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQxE;;OAEG;IACH,oBAAoB,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOhE;;OAEG;IACH,cAAc,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAO1D;;OAEG;IACH,SAAS,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAMtD;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;CACrC;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EAAE,KAAK,cAAc,IAAI,cAAc,EAAE,CAAC;CAClD"}
@@ -1,39 +0,0 @@
1
- import { APIResource } from "../../core/resource.js";
2
- import { APIPromise } from "../../core/api-promise.js";
3
- import { RequestOptions } from "../../internal/request-options.js";
4
- export declare class V1 extends APIResource {
5
- /**
6
- * Provision a new operator instance for the organization.
7
- */
8
- create(body: V1CreateParams, options?: RequestOptions): APIPromise<void>;
9
- /**
10
- * Proxy a chat completion request to the organization's operator instance.
11
- */
12
- createChatCompletion(options?: RequestOptions): APIPromise<void>;
13
- /**
14
- * Proxy a response request to the organization's operator instance.
15
- */
16
- createResponse(options?: RequestOptions): APIPromise<void>;
17
- /**
18
- * Get the status of the organization's operator instance.
19
- */
20
- getStatus(options?: RequestOptions): APIPromise<void>;
21
- }
22
- export interface V1CreateParams {
23
- /**
24
- * Operator name
25
- */
26
- name: string;
27
- /**
28
- * Model to use
29
- */
30
- model?: string;
31
- /**
32
- * Instance size
33
- */
34
- size?: 'small' | 'medium' | 'large';
35
- }
36
- export declare namespace V1 {
37
- export { type V1CreateParams as V1CreateParams };
38
- }
39
- //# sourceMappingURL=v1.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../src/resources/operator/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,EAAG,SAAQ,WAAW;IACjC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQxE;;OAEG;IACH,oBAAoB,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOhE;;OAEG;IACH,cAAc,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAO1D;;OAEG;IACH,SAAS,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAMtD;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;CACrC;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EAAE,KAAK,cAAc,IAAI,cAAc,EAAE,CAAC;CAClD"}
@@ -1,47 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.V1 = void 0;
5
- const resource_1 = require("../../core/resource.js");
6
- const headers_1 = require("../../internal/headers.js");
7
- class V1 extends resource_1.APIResource {
8
- /**
9
- * Provision a new operator instance for the organization.
10
- */
11
- create(body, options) {
12
- return this._client.post('/operator/v1/create', {
13
- body,
14
- ...options,
15
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
16
- });
17
- }
18
- /**
19
- * Proxy a chat completion request to the organization's operator instance.
20
- */
21
- createChatCompletion(options) {
22
- return this._client.post('/operator/v1/chat/completions', {
23
- ...options,
24
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
25
- });
26
- }
27
- /**
28
- * Proxy a response request to the organization's operator instance.
29
- */
30
- createResponse(options) {
31
- return this._client.post('/operator/v1/responses', {
32
- ...options,
33
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
34
- });
35
- }
36
- /**
37
- * Get the status of the organization's operator instance.
38
- */
39
- getStatus(options) {
40
- return this._client.get('/operator/v1/status', {
41
- ...options,
42
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
43
- });
44
- }
45
- }
46
- exports.V1 = V1;
47
- //# sourceMappingURL=v1.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/operator/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAGtD,MAAa,EAAG,SAAQ,sBAAW;IACjC;;OAEG;IACH,MAAM,CAAC,IAAoB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE;YAC9C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,oBAAoB,CAAC,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,EAAE;YACxD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,cAAc,CAAC,OAAwB;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE;YACjD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,SAAS,CAAC,OAAwB;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE;YAC7C,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAzCD,gBAyCC"}
@@ -1,43 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../core/resource.mjs";
3
- import { buildHeaders } from "../../internal/headers.mjs";
4
- export class V1 extends APIResource {
5
- /**
6
- * Provision a new operator instance for the organization.
7
- */
8
- create(body, options) {
9
- return this._client.post('/operator/v1/create', {
10
- body,
11
- ...options,
12
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
13
- });
14
- }
15
- /**
16
- * Proxy a chat completion request to the organization's operator instance.
17
- */
18
- createChatCompletion(options) {
19
- return this._client.post('/operator/v1/chat/completions', {
20
- ...options,
21
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
22
- });
23
- }
24
- /**
25
- * Proxy a response request to the organization's operator instance.
26
- */
27
- createResponse(options) {
28
- return this._client.post('/operator/v1/responses', {
29
- ...options,
30
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
31
- });
32
- }
33
- /**
34
- * Get the status of the organization's operator instance.
35
- */
36
- getStatus(options) {
37
- return this._client.get('/operator/v1/status', {
38
- ...options,
39
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
40
- });
41
- }
42
- }
43
- //# sourceMappingURL=v1.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/resources/operator/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;AAGvB,MAAM,OAAO,EAAG,SAAQ,WAAW;IACjC;;OAEG;IACH,MAAM,CAAC,IAAoB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE;YAC9C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,oBAAoB,CAAC,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,EAAE;YACxD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,cAAc,CAAC,OAAwB;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE;YACjD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,SAAS,CAAC,OAAwB;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE;YAC7C,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,2 +0,0 @@
1
- export * from "./operator/index.mjs";
2
- //# sourceMappingURL=operator.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operator.d.mts","sourceRoot":"","sources":["../src/resources/operator.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export * from "./operator/index.js";
2
- //# sourceMappingURL=operator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operator.d.ts","sourceRoot":"","sources":["../src/resources/operator.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- const tslib_1 = require("../internal/tslib.js");
5
- tslib_1.__exportStar(require("./operator/index.js"), exports);
6
- //# sourceMappingURL=operator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operator.js","sourceRoot":"","sources":["../src/resources/operator.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAAiC"}
@@ -1,3 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export * from "./operator/index.mjs";
3
- //# sourceMappingURL=operator.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operator.mjs","sourceRoot":"","sources":["../src/resources/operator.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -1,4 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- export { Operator } from './operator';
4
- export { V1, type V1CreateParams } from './v1';
@@ -1,15 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../../core/resource';
4
- import * as V1API from './v1';
5
- import { V1, V1CreateParams } from './v1';
6
-
7
- export class Operator extends APIResource {
8
- v1: V1API.V1 = new V1API.V1(this._client);
9
- }
10
-
11
- Operator.V1 = V1;
12
-
13
- export declare namespace Operator {
14
- export { V1 as V1, type V1CreateParams as V1CreateParams };
15
- }
@@ -1,70 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../../core/resource';
4
- import { APIPromise } from '../../core/api-promise';
5
- import { buildHeaders } from '../../internal/headers';
6
- import { RequestOptions } from '../../internal/request-options';
7
-
8
- export class V1 extends APIResource {
9
- /**
10
- * Provision a new operator instance for the organization.
11
- */
12
- create(body: V1CreateParams, options?: RequestOptions): APIPromise<void> {
13
- return this._client.post('/operator/v1/create', {
14
- body,
15
- ...options,
16
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
17
- });
18
- }
19
-
20
- /**
21
- * Proxy a chat completion request to the organization's operator instance.
22
- */
23
- createChatCompletion(options?: RequestOptions): APIPromise<void> {
24
- return this._client.post('/operator/v1/chat/completions', {
25
- ...options,
26
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
27
- });
28
- }
29
-
30
- /**
31
- * Proxy a response request to the organization's operator instance.
32
- */
33
- createResponse(options?: RequestOptions): APIPromise<void> {
34
- return this._client.post('/operator/v1/responses', {
35
- ...options,
36
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
37
- });
38
- }
39
-
40
- /**
41
- * Get the status of the organization's operator instance.
42
- */
43
- getStatus(options?: RequestOptions): APIPromise<void> {
44
- return this._client.get('/operator/v1/status', {
45
- ...options,
46
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
47
- });
48
- }
49
- }
50
-
51
- export interface V1CreateParams {
52
- /**
53
- * Operator name
54
- */
55
- name: string;
56
-
57
- /**
58
- * Model to use
59
- */
60
- model?: string;
61
-
62
- /**
63
- * Instance size
64
- */
65
- size?: 'small' | 'medium' | 'large';
66
- }
67
-
68
- export declare namespace V1 {
69
- export { type V1CreateParams as V1CreateParams };
70
- }
@@ -1,3 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- export * from './operator/index';