@mixedbread/sdk 0.1.0-alpha.8 → 0.1.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 +392 -0
- package/README.md +4 -4
- package/_shims/index.d.ts +2 -0
- package/_shims/index.js +5 -1
- package/_shims/index.mjs +5 -1
- package/core.d.ts +11 -0
- package/core.d.ts.map +1 -1
- package/core.js +5 -2
- package/core.js.map +1 -1
- package/core.mjs +6 -3
- package/core.mjs.map +1 -1
- package/index.d.mts +29 -8
- package/index.d.ts +29 -8
- package/index.d.ts.map +1 -1
- package/index.js +32 -8
- package/index.js.map +1 -1
- package/index.mjs +32 -8
- package/index.mjs.map +1 -1
- package/package.json +8 -29
- package/resources/embeddings.d.ts +45 -0
- package/resources/embeddings.d.ts.map +1 -0
- package/resources/embeddings.js +20 -0
- package/resources/embeddings.js.map +1 -0
- package/resources/embeddings.mjs +16 -0
- package/resources/embeddings.mjs.map +1 -0
- package/resources/extractions/content.d.ts +4 -6
- package/resources/extractions/content.d.ts.map +1 -1
- package/resources/extractions/jobs.d.ts +42 -2
- package/resources/extractions/jobs.d.ts.map +1 -1
- package/resources/extractions/schema.d.ts +5 -5
- package/resources/extractions/schema.d.ts.map +1 -1
- package/resources/extractions.d.ts +2 -0
- package/resources/extractions.d.ts.map +1 -0
- package/resources/extractions.js +19 -0
- package/resources/extractions.js.map +1 -0
- package/resources/extractions.mjs +3 -0
- package/resources/extractions.mjs.map +1 -0
- package/resources/index.d.ts +3 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/parsing/jobs.d.ts +12 -0
- package/resources/parsing/jobs.d.ts.map +1 -1
- package/resources/parsing/jobs.js.map +1 -1
- package/resources/parsing/jobs.mjs.map +1 -1
- package/resources/parsing.d.ts +2 -0
- package/resources/parsing.d.ts.map +1 -0
- package/resources/parsing.js +19 -0
- package/resources/parsing.js.map +1 -0
- package/resources/parsing.mjs +3 -0
- package/resources/parsing.mjs.map +1 -0
- package/resources/shared.d.ts +14 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/top-level.d.ts +174 -1
- package/resources/top-level.d.ts.map +1 -1
- package/resources/vector-stores/files.d.ts +14 -2
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/resources/vector-stores/files.js.map +1 -1
- package/resources/vector-stores/files.mjs.map +1 -1
- package/resources/vector-stores/index.d.ts +1 -1
- package/resources/vector-stores/index.d.ts.map +1 -1
- package/resources/vector-stores/index.js.map +1 -1
- package/resources/vector-stores/index.mjs.map +1 -1
- package/resources/vector-stores/vector-stores.d.ts +38 -9
- package/resources/vector-stores/vector-stores.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.js.map +1 -1
- package/resources/vector-stores/vector-stores.mjs.map +1 -1
- package/resources/vector-stores.d.ts +2 -0
- package/resources/vector-stores.d.ts.map +1 -0
- package/resources/vector-stores.js +19 -0
- package/resources/vector-stores.js.map +1 -0
- package/resources/vector-stores.mjs +3 -0
- package/resources/vector-stores.mjs.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +18 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/_shims/index.d.ts +2 -0
- package/src/_shims/index.js +5 -1
- package/src/_shims/index.mjs +5 -1
- package/src/core.ts +23 -4
- package/src/index.ts +76 -23
- package/src/resources/embeddings.ts +67 -0
- package/src/resources/extractions/content.ts +5 -6
- package/src/resources/extractions/jobs.ts +52 -2
- package/src/resources/extractions/schema.ts +5 -5
- package/src/resources/extractions.ts +3 -0
- package/src/resources/index.ts +12 -2
- package/src/resources/parsing/jobs.ts +15 -0
- package/src/resources/parsing.ts +3 -0
- package/src/resources/shared.ts +17 -0
- package/src/resources/top-level.ts +260 -1
- package/src/resources/vector-stores/files.ts +17 -2
- package/src/resources/vector-stores/index.ts +2 -1
- package/src/resources/vector-stores/vector-stores.ts +45 -9
- package/src/resources/vector-stores.ts +3 -0
- package/src/resources.ts +1 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
package/index.js
CHANGED
@@ -31,12 +31,13 @@ const Errors = __importStar(require("./error.js"));
|
|
31
31
|
const Pagination = __importStar(require("./pagination.js"));
|
32
32
|
const Uploads = __importStar(require("./uploads.js"));
|
33
33
|
const API = __importStar(require("./resources/index.js"));
|
34
|
+
const embeddings_1 = require("./resources/embeddings.js");
|
34
35
|
const files_1 = require("./resources/files.js");
|
35
36
|
const extractions_1 = require("./resources/extractions/extractions.js");
|
36
37
|
const parsing_1 = require("./resources/parsing/parsing.js");
|
37
38
|
const vector_stores_1 = require("./resources/vector-stores/vector-stores.js");
|
38
39
|
const environments = {
|
39
|
-
production: 'https://api.mixedbread.
|
40
|
+
production: 'https://api.mixedbread.com',
|
40
41
|
local: 'http://127.0.0.1:8000',
|
41
42
|
};
|
42
43
|
/**
|
@@ -46,9 +47,9 @@ class Mixedbread extends Core.APIClient {
|
|
46
47
|
/**
|
47
48
|
* API Client for interfacing with the Mixedbread API.
|
48
49
|
*
|
49
|
-
* @param {string | undefined} [opts.apiKey=process.env['
|
50
|
+
* @param {string | undefined} [opts.apiKey=process.env['MIXEDBREAD_API_KEY'] ?? undefined]
|
50
51
|
* @param {Environment} [opts.environment=production] - Specifies the environment URL to use for the API.
|
51
|
-
* @param {string} [opts.baseURL=process.env['MIXEDBREAD_BASE_URL'] ?? https://api.mixedbread.
|
52
|
+
* @param {string} [opts.baseURL=process.env['MIXEDBREAD_BASE_URL'] ?? https://api.mixedbread.com] - Override the default base URL for the API.
|
52
53
|
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
53
54
|
* @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
|
54
55
|
* @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
@@ -56,9 +57,9 @@ class Mixedbread extends Core.APIClient {
|
|
56
57
|
* @param {Core.Headers} opts.defaultHeaders - Default headers to include with every request to the API.
|
57
58
|
* @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
|
58
59
|
*/
|
59
|
-
constructor({ baseURL = Core.readEnv('MIXEDBREAD_BASE_URL'), apiKey = Core.readEnv('
|
60
|
+
constructor({ baseURL = Core.readEnv('MIXEDBREAD_BASE_URL'), apiKey = Core.readEnv('MIXEDBREAD_API_KEY'), ...opts } = {}) {
|
60
61
|
if (apiKey === undefined) {
|
61
|
-
throw new Errors.MixedbreadError("The
|
62
|
+
throw new Errors.MixedbreadError("The MIXEDBREAD_API_KEY environment variable is missing or empty; either provide it, or instantiate the Mixedbread client with an apiKey option, like new Mixedbread({ apiKey: 'My API Key' }).");
|
62
63
|
}
|
63
64
|
const options = {
|
64
65
|
apiKey,
|
@@ -76,13 +77,25 @@ class Mixedbread extends Core.APIClient {
|
|
76
77
|
maxRetries: options.maxRetries,
|
77
78
|
fetch: options.fetch,
|
78
79
|
});
|
80
|
+
this.vectorStores = new API.VectorStores(this);
|
79
81
|
this.parsing = new API.Parsing(this);
|
80
82
|
this.files = new API.Files(this);
|
81
|
-
this.vectorStores = new API.VectorStores(this);
|
82
83
|
this.extractions = new API.Extractions(this);
|
84
|
+
this.embeddings = new API.Embeddings(this);
|
83
85
|
this._options = options;
|
84
86
|
this.apiKey = apiKey;
|
85
87
|
}
|
88
|
+
/**
|
89
|
+
* Create embeddings for text or images using the specified model, encoding format,
|
90
|
+
* and normalization.
|
91
|
+
*
|
92
|
+
* Args: params: The parameters for creating embeddings.
|
93
|
+
*
|
94
|
+
* Returns: EmbeddingCreateResponse: The response containing the embeddings.
|
95
|
+
*/
|
96
|
+
embed(body, options) {
|
97
|
+
return this.post('/v1/embeddings', { body, ...options });
|
98
|
+
}
|
86
99
|
/**
|
87
100
|
* Returns service information, including name and version.
|
88
101
|
*
|
@@ -91,6 +104,16 @@ class Mixedbread extends Core.APIClient {
|
|
91
104
|
info(options) {
|
92
105
|
return this.get('/', options);
|
93
106
|
}
|
107
|
+
/**
|
108
|
+
* Rerank different kind of documents for a given query.
|
109
|
+
*
|
110
|
+
* Args: params: RerankParams: The parameters for reranking.
|
111
|
+
*
|
112
|
+
* Returns: RerankResponse: The reranked documents for the input query.
|
113
|
+
*/
|
114
|
+
rerank(body, options) {
|
115
|
+
return this.post('/v1/reranking', { body, ...options });
|
116
|
+
}
|
94
117
|
defaultQuery() {
|
95
118
|
return this._options.defaultQuery;
|
96
119
|
}
|
@@ -123,12 +146,13 @@ Mixedbread.PermissionDeniedError = Errors.PermissionDeniedError;
|
|
123
146
|
Mixedbread.UnprocessableEntityError = Errors.UnprocessableEntityError;
|
124
147
|
Mixedbread.toFile = Uploads.toFile;
|
125
148
|
Mixedbread.fileFromPath = Uploads.fileFromPath;
|
149
|
+
Mixedbread.VectorStores = vector_stores_1.VectorStores;
|
150
|
+
Mixedbread.VectorStoresLimitOffset = vector_stores_1.VectorStoresLimitOffset;
|
126
151
|
Mixedbread.Parsing = parsing_1.Parsing;
|
127
152
|
Mixedbread.Files = files_1.Files;
|
128
153
|
Mixedbread.FileObjectsLimitOffset = files_1.FileObjectsLimitOffset;
|
129
|
-
Mixedbread.VectorStores = vector_stores_1.VectorStores;
|
130
|
-
Mixedbread.VectorStoresLimitOffset = vector_stores_1.VectorStoresLimitOffset;
|
131
154
|
Mixedbread.Extractions = extractions_1.Extractions;
|
155
|
+
Mixedbread.Embeddings = embeddings_1.Embeddings;
|
132
156
|
var uploads_1 = require("./uploads.js");
|
133
157
|
Object.defineProperty(exports, "toFile", { enumerable: true, get: function () { return uploads_1.toFile; } });
|
134
158
|
Object.defineProperty(exports, "fileFromPath", { enumerable: true, get: function () { return uploads_1.fileFromPath; } });
|
package/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtF,gDAA+B;AAC/B,mDAAkC;AAClC,4DAA2C;AAE3C,sDAAqC;AACrC,0DAAyC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtF,gDAA+B;AAC/B,mDAAkC;AAClC,4DAA2C;AAE3C,sDAAqC;AACrC,0DAAyC;AAWzC,0DAA2E;AAC3E,gDAQ2B;AAC3B,wEAAkE;AAClE,4DAAsD;AACtD,8EAiBiD;AAEjD,MAAM,YAAY,GAAG;IACnB,UAAU,EAAE,4BAA4B;IACxC,KAAK,EAAE,uBAAuB;CAC/B,CAAC;AA2EF;;GAEG;AACH,MAAa,UAAW,SAAQ,IAAI,CAAC,SAAS;IAK5C;;;;;;;;;;;;OAYG;IACH,YAAY,EACV,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,qBAAqB,CAAC,EAC7C,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,EAC3C,GAAG,IAAI,KACU,EAAE;QACnB,IAAI,MAAM,KAAK,SAAS,EAAE;YACxB,MAAM,IAAI,MAAM,CAAC,eAAe,CAC9B,gMAAgM,CACjM,CAAC;SACH;QAED,MAAM,OAAO,GAAkB;YAC7B,MAAM;YACN,GAAG,IAAI;YACP,OAAO;YACP,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,YAAY;SAC9C,CAAC;QAEF,IAAI,OAAO,IAAI,IAAI,CAAC,WAAW,EAAE;YAC/B,MAAM,IAAI,MAAM,CAAC,eAAe,CAC9B,6KAA6K,CAC9K,CAAC;SACH;QAED,KAAK,CAAC;YACJ,OAAO,EAAE,OAAO,CAAC,OAAO,IAAI,YAAY,CAAC,OAAO,CAAC,WAAW,IAAI,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W,GAAG,yBAAW,CAAC;AACrC,UAAU,CAAC,UAAU,GAAG,uBAAU,CAAC;AAyDnC,wCAAiD;AAAxC,iGAAA,MAAM,OAAA;AAAE,uGAAA,YAAY,OAAA;AAC7B,oCAciB;AAbf,wGAAA,eAAe,OAAA;AACf,iGAAA,QAAQ,OAAA;AACR,2GAAA,kBAAkB,OAAA;AAClB,kHAAA,yBAAyB,OAAA;AACzB,0GAAA,iBAAiB,OAAA;AACjB,sGAAA,aAAa,OAAA;AACb,sGAAA,aAAa,OAAA;AACb,uGAAA,cAAc,OAAA;AACd,wGAAA,eAAe,OAAA;AACf,4GAAA,mBAAmB,OAAA;AACnB,4GAAA,mBAAmB,OAAA;AACnB,8GAAA,qBAAqB,OAAA;AACrB,iHAAA,wBAAwB,OAAA;AAG1B,kBAAe,UAAU,CAAC"}
|
package/index.mjs
CHANGED
@@ -5,12 +5,13 @@ import * as Errors from "./error.mjs";
|
|
5
5
|
import * as Pagination from "./pagination.mjs";
|
6
6
|
import * as Uploads from "./uploads.mjs";
|
7
7
|
import * as API from "./resources/index.mjs";
|
8
|
+
import { Embeddings } from "./resources/embeddings.mjs";
|
8
9
|
import { FileObjectsLimitOffset, Files, } from "./resources/files.mjs";
|
9
10
|
import { Extractions } from "./resources/extractions/extractions.mjs";
|
10
11
|
import { Parsing } from "./resources/parsing/parsing.mjs";
|
11
12
|
import { VectorStores, VectorStoresLimitOffset, } from "./resources/vector-stores/vector-stores.mjs";
|
12
13
|
const environments = {
|
13
|
-
production: 'https://api.mixedbread.
|
14
|
+
production: 'https://api.mixedbread.com',
|
14
15
|
local: 'http://127.0.0.1:8000',
|
15
16
|
};
|
16
17
|
/**
|
@@ -20,9 +21,9 @@ export class Mixedbread extends Core.APIClient {
|
|
20
21
|
/**
|
21
22
|
* API Client for interfacing with the Mixedbread API.
|
22
23
|
*
|
23
|
-
* @param {string | undefined} [opts.apiKey=process.env['
|
24
|
+
* @param {string | undefined} [opts.apiKey=process.env['MIXEDBREAD_API_KEY'] ?? undefined]
|
24
25
|
* @param {Environment} [opts.environment=production] - Specifies the environment URL to use for the API.
|
25
|
-
* @param {string} [opts.baseURL=process.env['MIXEDBREAD_BASE_URL'] ?? https://api.mixedbread.
|
26
|
+
* @param {string} [opts.baseURL=process.env['MIXEDBREAD_BASE_URL'] ?? https://api.mixedbread.com] - Override the default base URL for the API.
|
26
27
|
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
27
28
|
* @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
|
28
29
|
* @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
@@ -30,9 +31,9 @@ export class Mixedbread extends Core.APIClient {
|
|
30
31
|
* @param {Core.Headers} opts.defaultHeaders - Default headers to include with every request to the API.
|
31
32
|
* @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
|
32
33
|
*/
|
33
|
-
constructor({ baseURL = Core.readEnv('MIXEDBREAD_BASE_URL'), apiKey = Core.readEnv('
|
34
|
+
constructor({ baseURL = Core.readEnv('MIXEDBREAD_BASE_URL'), apiKey = Core.readEnv('MIXEDBREAD_API_KEY'), ...opts } = {}) {
|
34
35
|
if (apiKey === undefined) {
|
35
|
-
throw new Errors.MixedbreadError("The
|
36
|
+
throw new Errors.MixedbreadError("The MIXEDBREAD_API_KEY environment variable is missing or empty; either provide it, or instantiate the Mixedbread client with an apiKey option, like new Mixedbread({ apiKey: 'My API Key' }).");
|
36
37
|
}
|
37
38
|
const options = {
|
38
39
|
apiKey,
|
@@ -50,13 +51,25 @@ export class Mixedbread extends Core.APIClient {
|
|
50
51
|
maxRetries: options.maxRetries,
|
51
52
|
fetch: options.fetch,
|
52
53
|
});
|
54
|
+
this.vectorStores = new API.VectorStores(this);
|
53
55
|
this.parsing = new API.Parsing(this);
|
54
56
|
this.files = new API.Files(this);
|
55
|
-
this.vectorStores = new API.VectorStores(this);
|
56
57
|
this.extractions = new API.Extractions(this);
|
58
|
+
this.embeddings = new API.Embeddings(this);
|
57
59
|
this._options = options;
|
58
60
|
this.apiKey = apiKey;
|
59
61
|
}
|
62
|
+
/**
|
63
|
+
* Create embeddings for text or images using the specified model, encoding format,
|
64
|
+
* and normalization.
|
65
|
+
*
|
66
|
+
* Args: params: The parameters for creating embeddings.
|
67
|
+
*
|
68
|
+
* Returns: EmbeddingCreateResponse: The response containing the embeddings.
|
69
|
+
*/
|
70
|
+
embed(body, options) {
|
71
|
+
return this.post('/v1/embeddings', { body, ...options });
|
72
|
+
}
|
60
73
|
/**
|
61
74
|
* Returns service information, including name and version.
|
62
75
|
*
|
@@ -65,6 +78,16 @@ export class Mixedbread extends Core.APIClient {
|
|
65
78
|
info(options) {
|
66
79
|
return this.get('/', options);
|
67
80
|
}
|
81
|
+
/**
|
82
|
+
* Rerank different kind of documents for a given query.
|
83
|
+
*
|
84
|
+
* Args: params: RerankParams: The parameters for reranking.
|
85
|
+
*
|
86
|
+
* Returns: RerankResponse: The reranked documents for the input query.
|
87
|
+
*/
|
88
|
+
rerank(body, options) {
|
89
|
+
return this.post('/v1/reranking', { body, ...options });
|
90
|
+
}
|
68
91
|
defaultQuery() {
|
69
92
|
return this._options.defaultQuery;
|
70
93
|
}
|
@@ -96,12 +119,13 @@ Mixedbread.PermissionDeniedError = Errors.PermissionDeniedError;
|
|
96
119
|
Mixedbread.UnprocessableEntityError = Errors.UnprocessableEntityError;
|
97
120
|
Mixedbread.toFile = Uploads.toFile;
|
98
121
|
Mixedbread.fileFromPath = Uploads.fileFromPath;
|
122
|
+
Mixedbread.VectorStores = VectorStores;
|
123
|
+
Mixedbread.VectorStoresLimitOffset = VectorStoresLimitOffset;
|
99
124
|
Mixedbread.Parsing = Parsing;
|
100
125
|
Mixedbread.Files = Files;
|
101
126
|
Mixedbread.FileObjectsLimitOffset = FileObjectsLimitOffset;
|
102
|
-
Mixedbread.VectorStores = VectorStores;
|
103
|
-
Mixedbread.VectorStoresLimitOffset = VectorStoresLimitOffset;
|
104
127
|
Mixedbread.Extractions = Extractions;
|
128
|
+
Mixedbread.Embeddings = Embeddings;
|
105
129
|
export { toFile, fileFromPath } from "./uploads.mjs";
|
106
130
|
export { MixedbreadError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./error.mjs";
|
107
131
|
export default Mixedbread;
|
package/index.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,KAAK,IAAI;OACT,KAAK,MAAM;OACX,KAAK,UAAU;OAEf,KAAK,OAAO;OACZ,KAAK,GAAG;
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,KAAK,IAAI;OACT,KAAK,MAAM;OACX,KAAK,UAAU;OAEf,KAAK,OAAO;OACZ,KAAK,GAAG;OAWR,EAAyB,UAAU,EAAE;OACrC,EAKL,sBAAsB,EAEtB,KAAK,GACN;OACM,EAAE,WAAW,EAAE;OACf,EAAE,OAAO,EAAE;OACX,EAeL,YAAY,EACZ,uBAAuB,GACxB;AAED,MAAM,YAAY,GAAG;IACnB,UAAU,EAAE,4BAA4B;IACxC,KAAK,EAAE,uBAAuB;CAC/B,CAAC;AA2EF;;GAEG;AACH,MAAM,OAAO,UAAW,SAAQ,IAAI,CAAC,SAAS;IAK5C;;;;;;;;;;;;OAYG;IACH,YAAY,EACV,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,qBAAqB,CAAC,EAC7C,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,EAC3C,GAAG,IAAI,KACU,EAAE;QACnB,IAAI,MAAM,KAAK,SAAS,EAAE;YACxB,MAAM,IAAI,MAAM,CAAC,eAAe,CAC9B,gMAAg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AC;AAE3D,iBAAM,GAAG,OAAO,CAAC,MAAM,CAAC;AACxB,uBAAY,GAAG,OAAO,CAAC,YAAY,CAAC;AAG7C,UAAU,CAAC,YAAY,GAAG,YAAY,CAAC;AACvC,UAAU,CAAC,uBAAuB,GAAG,uBAAuB,CAAC;AAC7D,UAAU,CAAC,OAAO,GAAG,OAAO,CAAC;AAC7B,UAAU,CAAC,KAAK,GAAG,KAAK,CAAC;AACzB,UAAU,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;AAC3D,UAAU,CAAC,WAAW,GAAG,WAAW,CAAC;AACrC,UAAU,CAAC,UAAU,GAAG,UAAU,CAAC;OAyD5B,EAAE,MAAM,EAAE,YAAY,EAAE;OACxB,EACL,eAAe,EACf,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB;AAED,eAAe,UAAU,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@mixedbread/sdk",
|
3
|
-
"version": "0.1.0
|
3
|
+
"version": "0.1.0",
|
4
4
|
"description": "The official TypeScript library for the Mixedbread API",
|
5
5
|
"author": "Mixedbread <support@mixedbread.com>",
|
6
6
|
"types": "./index.d.ts",
|
@@ -87,38 +87,17 @@
|
|
87
87
|
"default": "./index.mjs"
|
88
88
|
},
|
89
89
|
"./*.mjs": {
|
90
|
-
"types":
|
91
|
-
|
92
|
-
"./*/index.d.ts"
|
93
|
-
],
|
94
|
-
"default": [
|
95
|
-
"./*.mjs",
|
96
|
-
"./*/index.mjs"
|
97
|
-
]
|
90
|
+
"types": "./*.d.ts",
|
91
|
+
"default": "./*.mjs"
|
98
92
|
},
|
99
93
|
"./*.js": {
|
100
|
-
"types":
|
101
|
-
|
102
|
-
"./*/index.d.ts"
|
103
|
-
],
|
104
|
-
"default": [
|
105
|
-
"./*.js",
|
106
|
-
"./*/index.js"
|
107
|
-
]
|
94
|
+
"types": "./*.d.ts",
|
95
|
+
"default": "./*.js"
|
108
96
|
},
|
109
97
|
"./*": {
|
110
|
-
"types":
|
111
|
-
|
112
|
-
|
113
|
-
],
|
114
|
-
"require": [
|
115
|
-
"./*.js",
|
116
|
-
"./*/index.js"
|
117
|
-
],
|
118
|
-
"default": [
|
119
|
-
"./*.mjs",
|
120
|
-
"./*/index.mjs"
|
121
|
-
]
|
98
|
+
"types": "./*.d.ts",
|
99
|
+
"require": "./*.js",
|
100
|
+
"default": "./*.mjs"
|
122
101
|
}
|
123
102
|
}
|
124
103
|
}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import { APIResource } from "../resource.js";
|
2
|
+
import * as Core from "../core.js";
|
3
|
+
import * as TopLevelAPI from "./top-level.js";
|
4
|
+
export declare class Embeddings extends APIResource {
|
5
|
+
/**
|
6
|
+
* Create embeddings for text or images using the specified model, encoding format,
|
7
|
+
* and normalization.
|
8
|
+
*
|
9
|
+
* Args: params: The parameters for creating embeddings.
|
10
|
+
*
|
11
|
+
* Returns: EmbeddingCreateResponse: The response containing the embeddings.
|
12
|
+
*/
|
13
|
+
create(body: EmbeddingCreateParams, options?: Core.RequestOptions): Core.APIPromise<TopLevelAPI.EmbeddingCreateResponse>;
|
14
|
+
}
|
15
|
+
export interface EmbeddingCreateParams {
|
16
|
+
/**
|
17
|
+
* The model to use for creating embeddings.
|
18
|
+
*/
|
19
|
+
model: string;
|
20
|
+
/**
|
21
|
+
* The input to create embeddings for.
|
22
|
+
*/
|
23
|
+
input: Array<string>;
|
24
|
+
/**
|
25
|
+
* The number of dimensions to use for the embeddings.
|
26
|
+
*/
|
27
|
+
dimensions?: number | null;
|
28
|
+
/**
|
29
|
+
* The prompt to use for the embedding creation.
|
30
|
+
*/
|
31
|
+
prompt?: string | null;
|
32
|
+
/**
|
33
|
+
* Whether to normalize the embeddings.
|
34
|
+
*/
|
35
|
+
normalized?: boolean;
|
36
|
+
/**
|
37
|
+
* The encoding format(s) of the embeddings. Can be a single format or a list of
|
38
|
+
* formats.
|
39
|
+
*/
|
40
|
+
encoding_format?: 'float' | 'float16' | 'base64' | 'binary' | 'ubinary' | 'int8' | 'uint8' | Array<'float' | 'float16' | 'base64' | 'binary' | 'ubinary' | 'int8' | 'uint8'>;
|
41
|
+
}
|
42
|
+
export declare namespace Embeddings {
|
43
|
+
export { type EmbeddingCreateParams as EmbeddingCreateParams };
|
44
|
+
}
|
45
|
+
//# sourceMappingURL=embeddings.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"embeddings.d.ts","sourceRoot":"","sources":["../src/resources/embeddings.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAE3C,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;OAOG;IACH,MAAM,CACJ,IAAI,EAAE,qBAAqB,EAC3B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,uBAAuB,CAAC;CAGxD;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAErB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,eAAe,CAAC,EACZ,OAAO,GACP,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,MAAM,GACN,OAAO,GACP,KAAK,CAAC,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;CACrF;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EAAE,KAAK,qBAAqB,IAAI,qBAAqB,EAAE,CAAC;CAChE"}
|
@@ -0,0 +1,20 @@
|
|
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.Embeddings = void 0;
|
5
|
+
const resource_1 = require("../resource.js");
|
6
|
+
class Embeddings extends resource_1.APIResource {
|
7
|
+
/**
|
8
|
+
* Create embeddings for text or images using the specified model, encoding format,
|
9
|
+
* and normalization.
|
10
|
+
*
|
11
|
+
* Args: params: The parameters for creating embeddings.
|
12
|
+
*
|
13
|
+
* Returns: EmbeddingCreateResponse: The response containing the embeddings.
|
14
|
+
*/
|
15
|
+
create(body, options) {
|
16
|
+
return this._client.post('/v1/embeddings', { body, ...options });
|
17
|
+
}
|
18
|
+
}
|
19
|
+
exports.Embeddings = Embeddings;
|
20
|
+
//# sourceMappingURL=embeddings.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"embeddings.js","sourceRoot":"","sources":["../src/resources/embeddings.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAI1C,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;OAOG;IACH,MAAM,CACJ,IAA2B,EAC3B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF;AAfD,gCAeC"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
|
+
import { APIResource } from "../resource.mjs";
|
3
|
+
export class Embeddings extends APIResource {
|
4
|
+
/**
|
5
|
+
* Create embeddings for text or images using the specified model, encoding format,
|
6
|
+
* and normalization.
|
7
|
+
*
|
8
|
+
* Args: params: The parameters for creating embeddings.
|
9
|
+
*
|
10
|
+
* Returns: EmbeddingCreateResponse: The response containing the embeddings.
|
11
|
+
*/
|
12
|
+
create(body, options) {
|
13
|
+
return this._client.post('/v1/embeddings', { body, ...options });
|
14
|
+
}
|
15
|
+
}
|
16
|
+
//# sourceMappingURL=embeddings.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"embeddings.mjs","sourceRoot":"","sources":["../src/resources/embeddings.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;OAOG;IACH,MAAM,CACJ,IAA2B,EAC3B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF"}
|
@@ -11,13 +11,11 @@ export declare class Content extends APIResource {
|
|
11
11
|
create(body: ContentCreateParams, options?: Core.RequestOptions): Core.APIPromise<ExtractionResult>;
|
12
12
|
}
|
13
13
|
/**
|
14
|
-
*
|
14
|
+
* The result of an extraction job.
|
15
15
|
*/
|
16
16
|
export interface ExtractionResult {
|
17
|
-
|
18
|
-
|
19
|
-
*/
|
20
|
-
data: unknown;
|
17
|
+
data: Record<string, unknown>;
|
18
|
+
warnings: Array<string>;
|
21
19
|
}
|
22
20
|
export interface ContentCreateParams {
|
23
21
|
/**
|
@@ -27,7 +25,7 @@ export interface ContentCreateParams {
|
|
27
25
|
/**
|
28
26
|
* The JSON schema to use for extraction
|
29
27
|
*/
|
30
|
-
json_schema: unknown
|
28
|
+
json_schema: Record<string, unknown>;
|
31
29
|
}
|
32
30
|
export declare namespace Content {
|
33
31
|
export { type ExtractionResult as ExtractionResult, type ContentCreateParams as ContentCreateParams };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../src/resources/extractions/content.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;OAMG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC;CAGpG;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B
|
1
|
+
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../src/resources/extractions/content.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;OAMG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC;CAGpG;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE9B,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;CACvG"}
|
@@ -24,9 +24,49 @@ export declare class Jobs extends APIResource {
|
|
24
24
|
*/
|
25
25
|
export interface ExtractionJob {
|
26
26
|
/**
|
27
|
-
*
|
27
|
+
* Unique identifier for the extraction job
|
28
|
+
*/
|
29
|
+
id: string;
|
30
|
+
/**
|
31
|
+
* ID of the organization that owns this job
|
32
|
+
*/
|
33
|
+
organization_id: string;
|
34
|
+
/**
|
35
|
+
* ID of the file being extracted
|
36
|
+
*/
|
37
|
+
file_id: string;
|
38
|
+
/**
|
39
|
+
* When the job was created
|
40
|
+
*/
|
41
|
+
created_at: string;
|
42
|
+
/**
|
43
|
+
* When the job was last updated
|
44
|
+
*/
|
45
|
+
updated_at: string;
|
46
|
+
/**
|
47
|
+
* When the job started processing
|
48
|
+
*/
|
49
|
+
started_at: string | null;
|
50
|
+
/**
|
51
|
+
* When the job finished processing
|
52
|
+
*/
|
53
|
+
finished_at: string | null;
|
54
|
+
/**
|
55
|
+
* Current status of the job
|
56
|
+
*/
|
57
|
+
status: 'pending' | 'in_progress' | 'cancelled' | 'completed' | 'failed';
|
58
|
+
/**
|
59
|
+
* The result of an extraction job.
|
28
60
|
*/
|
29
61
|
result: ContentAPI.ExtractionResult | null;
|
62
|
+
/**
|
63
|
+
* Error information if failed
|
64
|
+
*/
|
65
|
+
error: Record<string, unknown> | null;
|
66
|
+
/**
|
67
|
+
* The JSON schema used for extraction
|
68
|
+
*/
|
69
|
+
json_schema: Record<string, unknown>;
|
30
70
|
}
|
31
71
|
export interface JobCreateParams {
|
32
72
|
/**
|
@@ -36,7 +76,7 @@ export interface JobCreateParams {
|
|
36
76
|
/**
|
37
77
|
* The JSON schema to use for extraction
|
38
78
|
*/
|
39
|
-
json_schema: unknown
|
79
|
+
json_schema: Record<string, unknown>;
|
40
80
|
}
|
41
81
|
export declare namespace Jobs {
|
42
82
|
export { type ExtractionJob as ExtractionJob, type JobCreateParams as JobCreateParams };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"jobs.d.ts","sourceRoot":"","sources":["../../src/resources/extractions/jobs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,UAAU,MAAM,WAAW,CAAC;AAExC,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;OAMG;IACH,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;IAI5F;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;CAGvF;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,MAAM,EAAE,UAAU,CAAC,gBAAgB,GAAG,IAAI,CAAC;
|
1
|
+
{"version":3,"file":"jobs.d.ts","sourceRoot":"","sources":["../../src/resources/extractions/jobs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,UAAU,MAAM,WAAW,CAAC;AAExC,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;OAMG;IACH,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;IAI5F;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;CAGvF;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,MAAM,EAAE,SAAS,GAAG,aAAa,GAAG,WAAW,GAAG,WAAW,GAAG,QAAQ,CAAC;IAEzE;;OAEG;IACH,MAAM,EAAE,UAAU,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAE3C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAEtC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,aAAa,IAAI,aAAa,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACzF"}
|
@@ -33,7 +33,7 @@ export interface CreatedJsonSchema {
|
|
33
33
|
/**
|
34
34
|
* The created JSON schema
|
35
35
|
*/
|
36
|
-
json_schema: unknown
|
36
|
+
json_schema: Record<string, unknown>;
|
37
37
|
}
|
38
38
|
/**
|
39
39
|
* Result of enhancing a JSON schema.
|
@@ -42,7 +42,7 @@ export interface EnhancedJsonSchema {
|
|
42
42
|
/**
|
43
43
|
* The enhanced JSON schema
|
44
44
|
*/
|
45
|
-
json_schema: unknown
|
45
|
+
json_schema: Record<string, unknown>;
|
46
46
|
}
|
47
47
|
/**
|
48
48
|
* Result of validating a JSON schema.
|
@@ -59,7 +59,7 @@ export interface ValidatedJsonSchema {
|
|
59
59
|
/**
|
60
60
|
* The validated JSON schema
|
61
61
|
*/
|
62
|
-
json_schema: unknown
|
62
|
+
json_schema: Record<string, unknown>;
|
63
63
|
}
|
64
64
|
export interface SchemaCreateParams {
|
65
65
|
/**
|
@@ -71,13 +71,13 @@ export interface SchemaEnhanceParams {
|
|
71
71
|
/**
|
72
72
|
* The JSON schema to enhance
|
73
73
|
*/
|
74
|
-
json_schema: unknown
|
74
|
+
json_schema: Record<string, unknown>;
|
75
75
|
}
|
76
76
|
export interface SchemaValidateParams {
|
77
77
|
/**
|
78
78
|
* The JSON schema to validate
|
79
79
|
*/
|
80
|
-
json_schema: unknown
|
80
|
+
json_schema: Record<string, unknown>;
|
81
81
|
}
|
82
82
|
export declare namespace Schema {
|
83
83
|
export { type CreatedJsonSchema as CreatedJsonSchema, type EnhancedJsonSchema as EnhancedJsonSchema, type ValidatedJsonSchema as ValidatedJsonSchema, type SchemaCreateParams as SchemaCreateParams, type SchemaEnhanceParams as SchemaEnhanceParams, type SchemaValidateParams as SchemaValidateParams, };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/resources/extractions/schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;OAMG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC;IAInG;;;;;;OAMG;IACH,OAAO,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC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MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEtB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"extractions.d.ts","sourceRoot":"","sources":["../src/resources/extractions.ts"],"names":[],"mappings":"AAEA,cAAc,qBAAqB,CAAC"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
4
|
+
if (k2 === undefined) k2 = k;
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
8
|
+
}
|
9
|
+
Object.defineProperty(o, k2, desc);
|
10
|
+
}) : (function(o, m, k, k2) {
|
11
|
+
if (k2 === undefined) k2 = k;
|
12
|
+
o[k2] = m[k];
|
13
|
+
}));
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
16
|
+
};
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
18
|
+
__exportStar(require("./extractions/index.js"), exports);
|
19
|
+
//# sourceMappingURL=extractions.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"extractions.js","sourceRoot":"","sources":["../src/resources/extractions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;AAEtF,yDAAoC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"extractions.mjs","sourceRoot":"","sources":["../src/resources/extractions.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
package/resources/index.d.ts
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
export * from "./shared.js";
|
2
|
+
export { Embeddings, type EmbeddingCreateParams } from "./embeddings.js";
|
2
3
|
export { Extractions } from "./extractions/extractions.js";
|
3
4
|
export { FileObjectsLimitOffset, Files, type FileObject, type FileDeleteResponse, type FileCreateParams, type FileUpdateParams, type FileListParams, } from "./files.js";
|
4
5
|
export { Parsing } from "./parsing/parsing.js";
|
5
|
-
export { VectorStoresLimitOffset, VectorStores, type ExpiresAfter, type FileCounts, type ScoredVectorStoreChunk, type VectorStore, type
|
6
|
-
export { type InfoResponse } from "./top-level.js";
|
6
|
+
export { VectorStoresLimitOffset, VectorStores, type ExpiresAfter, type FileCounts, type ScoredVectorStoreChunk, type VectorStore, type VectorStoreChunkSearchOptions, type VectorStoreFileSearchOptions, type VectorStoreDeleteResponse, type VectorStoreQuestionAnsweringResponse, type VectorStoreSearchResponse, type VectorStoreCreateParams, type VectorStoreUpdateParams, type VectorStoreListParams, type VectorStoreQuestionAnsweringParams, type VectorStoreSearchParams, } from "./vector-stores/vector-stores.js";
|
7
|
+
export { type Embedding, type EmbeddingCreateResponse, type MultiEncodingEmbedding, type InfoResponse, type RerankResponse, type EmbedParams, type RerankParams, } from "./top-level.js";
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EACL,sBAAsB,EACtB,KAAK,EACL,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,GACpB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EACL,uBAAuB,EACvB,YAAY,EACZ,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,sBAAsB,EAC3B,KAAK,WAAW,EAChB,KAAK,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,KAAK,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EACL,sBAAsB,EACtB,KAAK,EACL,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,GACpB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EACL,uBAAuB,EACvB,YAAY,EACZ,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,sBAAsB,EAC3B,KAAK,WAAW,EAChB,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,oCAAoC,EACzC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,GAC7B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,KAAK,SAAS,EACd,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,YAAY,GAClB,MAAM,aAAa,CAAC"}
|
package/resources/index.js
CHANGED
@@ -15,8 +15,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
16
16
|
};
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
18
|
-
exports.VectorStores = exports.VectorStoresLimitOffset = exports.Parsing = exports.Files = exports.FileObjectsLimitOffset = exports.Extractions = void 0;
|
18
|
+
exports.VectorStores = exports.VectorStoresLimitOffset = exports.Parsing = exports.Files = exports.FileObjectsLimitOffset = exports.Extractions = exports.Embeddings = void 0;
|
19
19
|
__exportStar(require("./shared.js"), exports);
|
20
|
+
var embeddings_1 = require("./embeddings.js");
|
21
|
+
Object.defineProperty(exports, "Embeddings", { enumerable: true, get: function () { return embeddings_1.Embeddings; } });
|
20
22
|
var extractions_1 = require("./extractions/extractions.js");
|
21
23
|
Object.defineProperty(exports, "Extractions", { enumerable: true, get: function () { return extractions_1.Extractions; } });
|
22
24
|
var files_1 = require("./files.js");
|
package/resources/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;AAEtF,8CAAyB;AACzB,4DAAwD;AAA/C,0GAAA,WAAW,OAAA;AACpB,oCAQiB;AAPf,+GAAA,sBAAsB,OAAA;AACtB,8FAAA,KAAK,OAAA;AAOP,gDAA4C;AAAnC,kGAAA,OAAO,OAAA;AAChB,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;AAEtF,8CAAyB;AACzB,8CAAsE;AAA7D,wGAAA,UAAU,OAAA;AACnB,4DAAwD;AAA/C,0GAAA,WAAW,OAAA;AACpB,oCAQiB;AAPf,+GAAA,sBAAsB,OAAA;AACtB,8FAAA,KAAK,OAAA;AAOP,gDAA4C;AAAnC,kGAAA,OAAO,OAAA;AAChB,kEAiBuC;AAhBrC,wHAAA,uBAAuB,OAAA;AACvB,6GAAA,YAAY,OAAA"}
|
package/resources/index.mjs
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
2
|
export * from "./shared.mjs";
|
3
|
+
export { Embeddings } from "./embeddings.mjs";
|
3
4
|
export { Extractions } from "./extractions/extractions.mjs";
|
4
5
|
export { FileObjectsLimitOffset, Files, } from "./files.mjs";
|
5
6
|
export { Parsing } from "./parsing/parsing.mjs";
|
package/resources/index.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EAAE,WAAW,EAAE;OACf,EACL,sBAAsB,EACtB,KAAK,GAMN;OACM,EAAE,OAAO,EAAE;OACX,EACL,uBAAuB,EACvB,YAAY,
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EAAE,UAAU,EAA8B;OAC1C,EAAE,WAAW,EAAE;OACf,EACL,sBAAsB,EACtB,KAAK,GAMN;OACM,EAAE,OAAO,EAAE;OACX,EACL,uBAAuB,EACvB,YAAY,GAeb"}
|