@mixedbread/sdk 0.1.0-alpha.14 → 0.1.0-alpha.15
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 +8 -0
- package/package.json +1 -1
- package/resources/embeddings.d.ts +8 -49
- package/resources/embeddings.d.ts.map +1 -1
- package/resources/extractions/content.d.ts +2 -2
- package/resources/extractions/content.d.ts.map +1 -1
- package/resources/extractions/jobs.d.ts +3 -3
- 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/top-level.d.ts +9 -47
- package/resources/top-level.d.ts.map +1 -1
- package/src/resources/embeddings.ts +8 -54
- package/src/resources/extractions/content.ts +2 -2
- package/src/resources/extractions/jobs.ts +3 -3
- package/src/resources/extractions/schema.ts +5 -5
- package/src/resources/top-level.ts +9 -62
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.1.0-alpha.15 (2025-03-29)
|
4
|
+
|
5
|
+
Full Changelog: [v0.1.0-alpha.14...v0.1.0-alpha.15](https://github.com/mixedbread-ai/mixedbread-ts/compare/v0.1.0-alpha.14...v0.1.0-alpha.15)
|
6
|
+
|
7
|
+
### Features
|
8
|
+
|
9
|
+
* **api:** update via SDK Studio ([#127](https://github.com/mixedbread-ai/mixedbread-ts/issues/127)) ([ee0b498](https://github.com/mixedbread-ai/mixedbread-ts/commit/ee0b4984abb7423e9932c113c2672bcf8a0c83b7))
|
10
|
+
|
3
11
|
## 0.1.0-alpha.14 (2025-03-28)
|
4
12
|
|
5
13
|
Full Changelog: [v0.1.0-alpha.13...v0.1.0-alpha.14](https://github.com/mixedbread-ai/mixedbread-ts/compare/v0.1.0-alpha.13...v0.1.0-alpha.14)
|
package/package.json
CHANGED
@@ -23,7 +23,7 @@ export interface Embedding {
|
|
23
23
|
/**
|
24
24
|
* The object type of the embedding.
|
25
25
|
*/
|
26
|
-
object
|
26
|
+
object?: 'embedding';
|
27
27
|
}
|
28
28
|
export interface EmbeddingCreateResponse {
|
29
29
|
/**
|
@@ -41,13 +41,13 @@ export interface EmbeddingCreateResponse {
|
|
41
41
|
/**
|
42
42
|
* The object type of the response
|
43
43
|
*/
|
44
|
-
object?: 'list' | 'parsing_job' | 'job' | 'embedding' | 'embedding_dict' | '
|
44
|
+
object?: 'list' | 'parsing_job' | 'job' | 'embedding' | 'embedding_dict' | 'rank_result' | 'file' | 'vector_store' | 'vector_store.file' | 'api_key';
|
45
45
|
/**
|
46
46
|
* Whether the embeddings are normalized.
|
47
47
|
*/
|
48
48
|
normalized: boolean;
|
49
49
|
/**
|
50
|
-
* The encoding
|
50
|
+
* The encoding formats of the embeddings.
|
51
51
|
*/
|
52
52
|
encoding_format: 'float' | 'float16' | 'base64' | 'binary' | 'ubinary' | 'int8' | 'uint8' | Array<'float' | 'float16' | 'base64' | 'binary' | 'ubinary' | 'int8' | 'uint8'>;
|
53
53
|
/**
|
@@ -86,7 +86,7 @@ export declare namespace EmbeddingCreateResponse {
|
|
86
86
|
/**
|
87
87
|
* The object type of the embedding.
|
88
88
|
*/
|
89
|
-
object
|
89
|
+
object?: 'embedding_dict';
|
90
90
|
}
|
91
91
|
namespace UnionMember1 {
|
92
92
|
/**
|
@@ -99,7 +99,7 @@ export declare namespace EmbeddingCreateResponse {
|
|
99
99
|
uint8?: Array<number>;
|
100
100
|
binary?: Array<number>;
|
101
101
|
ubinary?: Array<number>;
|
102
|
-
base64?:
|
102
|
+
base64?: string;
|
103
103
|
}
|
104
104
|
}
|
105
105
|
}
|
@@ -111,7 +111,7 @@ export interface EmbeddingCreateParams {
|
|
111
111
|
/**
|
112
112
|
* The input to create embeddings for.
|
113
113
|
*/
|
114
|
-
input: string
|
114
|
+
input: Array<string>;
|
115
115
|
/**
|
116
116
|
* The number of dimensions to use for the embeddings.
|
117
117
|
*/
|
@@ -125,52 +125,11 @@ export interface EmbeddingCreateParams {
|
|
125
125
|
*/
|
126
126
|
normalized?: boolean;
|
127
127
|
/**
|
128
|
-
* The encoding format of the embeddings.
|
128
|
+
* The encoding format(s) of the embeddings. Can be a single format or a list of
|
129
|
+
* formats.
|
129
130
|
*/
|
130
131
|
encoding_format?: 'float' | 'float16' | 'base64' | 'binary' | 'ubinary' | 'int8' | 'uint8' | Array<'float' | 'float16' | 'base64' | 'binary' | 'ubinary' | 'int8' | 'uint8'>;
|
131
132
|
}
|
132
|
-
export declare namespace EmbeddingCreateParams {
|
133
|
-
/**
|
134
|
-
* Model for image input validation.
|
135
|
-
*/
|
136
|
-
interface ImageURLInput {
|
137
|
-
/**
|
138
|
-
* Input type identifier
|
139
|
-
*/
|
140
|
-
type?: 'image_url';
|
141
|
-
/**
|
142
|
-
* The image input specification.
|
143
|
-
*/
|
144
|
-
image: ImageURLInput.Image;
|
145
|
-
}
|
146
|
-
namespace ImageURLInput {
|
147
|
-
/**
|
148
|
-
* The image input specification.
|
149
|
-
*/
|
150
|
-
interface Image {
|
151
|
-
/**
|
152
|
-
* The image URL. Can be either a URL or a Data URI.
|
153
|
-
*/
|
154
|
-
url: string;
|
155
|
-
}
|
156
|
-
}
|
157
|
-
/**
|
158
|
-
* Model for text input validation.
|
159
|
-
*
|
160
|
-
* Attributes: type: Input type identifier, always "text" text: The actual text
|
161
|
-
* content, with length and whitespace constraints
|
162
|
-
*/
|
163
|
-
interface TextInput {
|
164
|
-
/**
|
165
|
-
* Input type identifier
|
166
|
-
*/
|
167
|
-
type?: 'text';
|
168
|
-
/**
|
169
|
-
* Text content to process
|
170
|
-
*/
|
171
|
-
text: string;
|
172
|
-
}
|
173
|
-
}
|
174
133
|
export declare namespace Embeddings {
|
175
134
|
export { type Embedding as Embedding, type EmbeddingCreateResponse as EmbeddingCreateResponse, type EmbeddingCreateParams as EmbeddingCreateParams, };
|
176
135
|
}
|
@@ -1 +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;AAEhC,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;OAOG;IACH,MAAM,CACJ,IAAI,EAAE,qBAAqB,EAC3B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,uBAAuB,CAAC;CAG5C;AAED,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;IAElD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,WAAW,CAAC;
|
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;AAEhC,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;OAOG;IACH,MAAM,CACJ,IAAI,EAAE,qBAAqB,EAC3B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,uBAAuB,CAAC;CAG5C;AAED,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;IAElD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,KAAK,EAAE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C,MAAM,CAAC,CAAC;YAEtB,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;YAEvB,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;YAExB,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB;KACF;CACF;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,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
@@ -14,7 +14,7 @@ export declare class Content extends APIResource {
|
|
14
14
|
* The result of an extraction job.
|
15
15
|
*/
|
16
16
|
export interface ExtractionResult {
|
17
|
-
data: unknown
|
17
|
+
data: Record<string, unknown>;
|
18
18
|
warnings: Array<string>;
|
19
19
|
}
|
20
20
|
export interface ContentCreateParams {
|
@@ -25,7 +25,7 @@ export interface ContentCreateParams {
|
|
25
25
|
/**
|
26
26
|
* The JSON schema to use for extraction
|
27
27
|
*/
|
28
|
-
json_schema: unknown
|
28
|
+
json_schema: Record<string, unknown>;
|
29
29
|
}
|
30
30
|
export declare namespace Content {
|
31
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,IAAI,EAAE,OAAO,CAAC;
|
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"}
|
@@ -62,11 +62,11 @@ export interface ExtractionJob {
|
|
62
62
|
/**
|
63
63
|
* Error information if failed
|
64
64
|
*/
|
65
|
-
error: unknown | null;
|
65
|
+
error: Record<string, unknown> | null;
|
66
66
|
/**
|
67
67
|
* The JSON schema used for extraction
|
68
68
|
*/
|
69
|
-
json_schema: unknown
|
69
|
+
json_schema: Record<string, unknown>;
|
70
70
|
}
|
71
71
|
export interface JobCreateParams {
|
72
72
|
/**
|
@@ -76,7 +76,7 @@ export interface JobCreateParams {
|
|
76
76
|
/**
|
77
77
|
* The JSON schema to use for extraction
|
78
78
|
*/
|
79
|
-
json_schema: unknown
|
79
|
+
json_schema: Record<string, unknown>;
|
80
80
|
}
|
81
81
|
export declare namespace Jobs {
|
82
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,EAAE,E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ACH,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,UAAU,CAAC,kBAAkB,CAAC;IAItG;;;;;;OAMG;IACH,QAAQ,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,IAA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AC;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"}
|
package/resources/top-level.d.ts
CHANGED
@@ -21,7 +21,7 @@ export interface RerankResponse {
|
|
21
21
|
/**
|
22
22
|
* The object type of the response
|
23
23
|
*/
|
24
|
-
object?: 'list' | 'parsing_job' | 'job' | 'embedding' | 'embedding_dict' | '
|
24
|
+
object?: 'list' | 'parsing_job' | 'job' | 'embedding' | 'embedding_dict' | 'rank_result' | 'file' | 'vector_store' | 'vector_store.file' | 'api_key';
|
25
25
|
/**
|
26
26
|
* The number of documents to return.
|
27
27
|
*/
|
@@ -50,6 +50,9 @@ export declare namespace RerankResponse {
|
|
50
50
|
completion_tokens?: number | null;
|
51
51
|
}
|
52
52
|
interface Data {
|
53
|
+
/**
|
54
|
+
* The index of the document.
|
55
|
+
*/
|
53
56
|
index: number;
|
54
57
|
/**
|
55
58
|
* The score of the document.
|
@@ -58,11 +61,11 @@ export declare namespace RerankResponse {
|
|
58
61
|
/**
|
59
62
|
* The input document.
|
60
63
|
*/
|
61
|
-
input
|
64
|
+
input?: unknown;
|
62
65
|
/**
|
63
66
|
* The object type.
|
64
67
|
*/
|
65
|
-
object?: '
|
68
|
+
object?: 'rank_result';
|
66
69
|
}
|
67
70
|
}
|
68
71
|
export interface EmbedParams {
|
@@ -73,7 +76,7 @@ export interface EmbedParams {
|
|
73
76
|
/**
|
74
77
|
* The input to create embeddings for.
|
75
78
|
*/
|
76
|
-
input: string
|
79
|
+
input: Array<string>;
|
77
80
|
/**
|
78
81
|
* The number of dimensions to use for the embeddings.
|
79
82
|
*/
|
@@ -87,52 +90,11 @@ export interface EmbedParams {
|
|
87
90
|
*/
|
88
91
|
normalized?: boolean;
|
89
92
|
/**
|
90
|
-
* The encoding format of the embeddings.
|
93
|
+
* The encoding format(s) of the embeddings. Can be a single format or a list of
|
94
|
+
* formats.
|
91
95
|
*/
|
92
96
|
encoding_format?: 'float' | 'float16' | 'base64' | 'binary' | 'ubinary' | 'int8' | 'uint8' | Array<'float' | 'float16' | 'base64' | 'binary' | 'ubinary' | 'int8' | 'uint8'>;
|
93
97
|
}
|
94
|
-
export declare namespace EmbedParams {
|
95
|
-
/**
|
96
|
-
* Model for image input validation.
|
97
|
-
*/
|
98
|
-
interface ImageURLInput {
|
99
|
-
/**
|
100
|
-
* Input type identifier
|
101
|
-
*/
|
102
|
-
type?: 'image_url';
|
103
|
-
/**
|
104
|
-
* The image input specification.
|
105
|
-
*/
|
106
|
-
image: ImageURLInput.Image;
|
107
|
-
}
|
108
|
-
namespace ImageURLInput {
|
109
|
-
/**
|
110
|
-
* The image input specification.
|
111
|
-
*/
|
112
|
-
interface Image {
|
113
|
-
/**
|
114
|
-
* The image URL. Can be either a URL or a Data URI.
|
115
|
-
*/
|
116
|
-
url: string;
|
117
|
-
}
|
118
|
-
}
|
119
|
-
/**
|
120
|
-
* Model for text input validation.
|
121
|
-
*
|
122
|
-
* Attributes: type: Input type identifier, always "text" text: The actual text
|
123
|
-
* content, with length and whitespace constraints
|
124
|
-
*/
|
125
|
-
interface TextInput {
|
126
|
-
/**
|
127
|
-
* Input type identifier
|
128
|
-
*/
|
129
|
-
type?: 'text';
|
130
|
-
/**
|
131
|
-
* Text content to process
|
132
|
-
*/
|
133
|
-
text: string;
|
134
|
-
}
|
135
|
-
}
|
136
98
|
export interface RerankParams {
|
137
99
|
/**
|
138
100
|
* The model to use for reranking documents.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"top-level.d.ts","sourceRoot":"","sources":["../src/resources/top-level.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC;IAE5B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;IAEjC;;OAEG;IACH,MAAM,CAAC,EACH,MAAM,GACN,aAAa,GACb,KAAK,GACL,WAAW,GACX,gBAAgB,GAChB,
|
1
|
+
{"version":3,"file":"top-level.d.ts","sourceRoot":"","sources":["../src/resources/top-level.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC;IAE5B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;IAEjC;;OAEG;IACH,MAAM,CAAC,EACH,MAAM,GACN,aAAa,GACb,KAAK,GACL,WAAW,GACX,gBAAgB,GAChB,aAAa,GACb,MAAM,GACN,cAAc,GACd,mBAAmB,GACnB,SAAS,CAAC;IAEd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG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AG,IAAI,CAAC;IAEnC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,YAAY,IAAI,YAAY,GAClC,CAAC;CACH"}
|
@@ -34,7 +34,7 @@ export interface Embedding {
|
|
34
34
|
/**
|
35
35
|
* The object type of the embedding.
|
36
36
|
*/
|
37
|
-
object
|
37
|
+
object?: 'embedding';
|
38
38
|
}
|
39
39
|
|
40
40
|
export interface EmbeddingCreateResponse {
|
@@ -62,7 +62,7 @@ export interface EmbeddingCreateResponse {
|
|
62
62
|
| 'job'
|
63
63
|
| 'embedding'
|
64
64
|
| 'embedding_dict'
|
65
|
-
| '
|
65
|
+
| 'rank_result'
|
66
66
|
| 'file'
|
67
67
|
| 'vector_store'
|
68
68
|
| 'vector_store.file'
|
@@ -74,7 +74,7 @@ export interface EmbeddingCreateResponse {
|
|
74
74
|
normalized: boolean;
|
75
75
|
|
76
76
|
/**
|
77
|
-
* The encoding
|
77
|
+
* The encoding formats of the embeddings.
|
78
78
|
*/
|
79
79
|
encoding_format:
|
80
80
|
| 'float'
|
@@ -128,7 +128,7 @@ export namespace EmbeddingCreateResponse {
|
|
128
128
|
/**
|
129
129
|
* The object type of the embedding.
|
130
130
|
*/
|
131
|
-
object
|
131
|
+
object?: 'embedding_dict';
|
132
132
|
}
|
133
133
|
|
134
134
|
export namespace UnionMember1 {
|
@@ -147,7 +147,7 @@ export namespace EmbeddingCreateResponse {
|
|
147
147
|
|
148
148
|
ubinary?: Array<number>;
|
149
149
|
|
150
|
-
base64?:
|
150
|
+
base64?: string;
|
151
151
|
}
|
152
152
|
}
|
153
153
|
}
|
@@ -161,7 +161,7 @@ export interface EmbeddingCreateParams {
|
|
161
161
|
/**
|
162
162
|
* The input to create embeddings for.
|
163
163
|
*/
|
164
|
-
input: string
|
164
|
+
input: Array<string>;
|
165
165
|
|
166
166
|
/**
|
167
167
|
* The number of dimensions to use for the embeddings.
|
@@ -179,7 +179,8 @@ export interface EmbeddingCreateParams {
|
|
179
179
|
normalized?: boolean;
|
180
180
|
|
181
181
|
/**
|
182
|
-
* The encoding format of the embeddings.
|
182
|
+
* The encoding format(s) of the embeddings. Can be a single format or a list of
|
183
|
+
* formats.
|
183
184
|
*/
|
184
185
|
encoding_format?:
|
185
186
|
| 'float'
|
@@ -192,53 +193,6 @@ export interface EmbeddingCreateParams {
|
|
192
193
|
| Array<'float' | 'float16' | 'base64' | 'binary' | 'ubinary' | 'int8' | 'uint8'>;
|
193
194
|
}
|
194
195
|
|
195
|
-
export namespace EmbeddingCreateParams {
|
196
|
-
/**
|
197
|
-
* Model for image input validation.
|
198
|
-
*/
|
199
|
-
export interface ImageURLInput {
|
200
|
-
/**
|
201
|
-
* Input type identifier
|
202
|
-
*/
|
203
|
-
type?: 'image_url';
|
204
|
-
|
205
|
-
/**
|
206
|
-
* The image input specification.
|
207
|
-
*/
|
208
|
-
image: ImageURLInput.Image;
|
209
|
-
}
|
210
|
-
|
211
|
-
export namespace ImageURLInput {
|
212
|
-
/**
|
213
|
-
* The image input specification.
|
214
|
-
*/
|
215
|
-
export interface Image {
|
216
|
-
/**
|
217
|
-
* The image URL. Can be either a URL or a Data URI.
|
218
|
-
*/
|
219
|
-
url: string;
|
220
|
-
}
|
221
|
-
}
|
222
|
-
|
223
|
-
/**
|
224
|
-
* Model for text input validation.
|
225
|
-
*
|
226
|
-
* Attributes: type: Input type identifier, always "text" text: The actual text
|
227
|
-
* content, with length and whitespace constraints
|
228
|
-
*/
|
229
|
-
export interface TextInput {
|
230
|
-
/**
|
231
|
-
* Input type identifier
|
232
|
-
*/
|
233
|
-
type?: 'text';
|
234
|
-
|
235
|
-
/**
|
236
|
-
* Text content to process
|
237
|
-
*/
|
238
|
-
text: string;
|
239
|
-
}
|
240
|
-
}
|
241
|
-
|
242
196
|
export declare namespace Embeddings {
|
243
197
|
export {
|
244
198
|
type Embedding as Embedding,
|
@@ -20,7 +20,7 @@ export class Content extends APIResource {
|
|
20
20
|
* The result of an extraction job.
|
21
21
|
*/
|
22
22
|
export interface ExtractionResult {
|
23
|
-
data: unknown
|
23
|
+
data: Record<string, unknown>;
|
24
24
|
|
25
25
|
warnings: Array<string>;
|
26
26
|
}
|
@@ -34,7 +34,7 @@ export interface ContentCreateParams {
|
|
34
34
|
/**
|
35
35
|
* The JSON schema to use for extraction
|
36
36
|
*/
|
37
|
-
json_schema: unknown
|
37
|
+
json_schema: Record<string, unknown>;
|
38
38
|
}
|
39
39
|
|
40
40
|
export declare namespace Content {
|
@@ -80,12 +80,12 @@ export interface ExtractionJob {
|
|
80
80
|
/**
|
81
81
|
* Error information if failed
|
82
82
|
*/
|
83
|
-
error: unknown | null;
|
83
|
+
error: Record<string, unknown> | null;
|
84
84
|
|
85
85
|
/**
|
86
86
|
* The JSON schema used for extraction
|
87
87
|
*/
|
88
|
-
json_schema: unknown
|
88
|
+
json_schema: Record<string, unknown>;
|
89
89
|
}
|
90
90
|
|
91
91
|
export interface JobCreateParams {
|
@@ -97,7 +97,7 @@ export interface JobCreateParams {
|
|
97
97
|
/**
|
98
98
|
* The JSON schema to use for extraction
|
99
99
|
*/
|
100
|
-
json_schema: unknown
|
100
|
+
json_schema: Record<string, unknown>;
|
101
101
|
}
|
102
102
|
|
103
103
|
export declare namespace Jobs {
|
@@ -45,7 +45,7 @@ export interface CreatedJsonSchema {
|
|
45
45
|
/**
|
46
46
|
* The created JSON schema
|
47
47
|
*/
|
48
|
-
json_schema: unknown
|
48
|
+
json_schema: Record<string, unknown>;
|
49
49
|
}
|
50
50
|
|
51
51
|
/**
|
@@ -55,7 +55,7 @@ export interface EnhancedJsonSchema {
|
|
55
55
|
/**
|
56
56
|
* The enhanced JSON schema
|
57
57
|
*/
|
58
|
-
json_schema: unknown
|
58
|
+
json_schema: Record<string, unknown>;
|
59
59
|
}
|
60
60
|
|
61
61
|
/**
|
@@ -75,7 +75,7 @@ export interface ValidatedJsonSchema {
|
|
75
75
|
/**
|
76
76
|
* The validated JSON schema
|
77
77
|
*/
|
78
|
-
json_schema: unknown
|
78
|
+
json_schema: Record<string, unknown>;
|
79
79
|
}
|
80
80
|
|
81
81
|
export interface SchemaCreateParams {
|
@@ -89,14 +89,14 @@ export interface SchemaEnhanceParams {
|
|
89
89
|
/**
|
90
90
|
* The JSON schema to enhance
|
91
91
|
*/
|
92
|
-
json_schema: unknown
|
92
|
+
json_schema: Record<string, unknown>;
|
93
93
|
}
|
94
94
|
|
95
95
|
export interface SchemaValidateParams {
|
96
96
|
/**
|
97
97
|
* The JSON schema to validate
|
98
98
|
*/
|
99
|
-
json_schema: unknown
|
99
|
+
json_schema: Record<string, unknown>;
|
100
100
|
}
|
101
101
|
|
102
102
|
export declare namespace Schema {
|
@@ -34,7 +34,7 @@ export interface RerankResponse {
|
|
34
34
|
| 'job'
|
35
35
|
| 'embedding'
|
36
36
|
| 'embedding_dict'
|
37
|
-
| '
|
37
|
+
| 'rank_result'
|
38
38
|
| 'file'
|
39
39
|
| 'vector_store'
|
40
40
|
| 'vector_store.file'
|
@@ -73,6 +73,9 @@ export namespace RerankResponse {
|
|
73
73
|
}
|
74
74
|
|
75
75
|
export interface Data {
|
76
|
+
/**
|
77
|
+
* The index of the document.
|
78
|
+
*/
|
76
79
|
index: number;
|
77
80
|
|
78
81
|
/**
|
@@ -83,22 +86,12 @@ export namespace RerankResponse {
|
|
83
86
|
/**
|
84
87
|
* The input document.
|
85
88
|
*/
|
86
|
-
input
|
89
|
+
input?: unknown;
|
87
90
|
|
88
91
|
/**
|
89
92
|
* The object type.
|
90
93
|
*/
|
91
|
-
object?:
|
92
|
-
| 'list'
|
93
|
-
| 'parsing_job'
|
94
|
-
| 'job'
|
95
|
-
| 'embedding'
|
96
|
-
| 'embedding_dict'
|
97
|
-
| 'text_document'
|
98
|
-
| 'file'
|
99
|
-
| 'vector_store'
|
100
|
-
| 'vector_store.file'
|
101
|
-
| 'api_key';
|
94
|
+
object?: 'rank_result';
|
102
95
|
}
|
103
96
|
}
|
104
97
|
|
@@ -111,7 +104,7 @@ export interface EmbedParams {
|
|
111
104
|
/**
|
112
105
|
* The input to create embeddings for.
|
113
106
|
*/
|
114
|
-
input: string
|
107
|
+
input: Array<string>;
|
115
108
|
|
116
109
|
/**
|
117
110
|
* The number of dimensions to use for the embeddings.
|
@@ -129,7 +122,8 @@ export interface EmbedParams {
|
|
129
122
|
normalized?: boolean;
|
130
123
|
|
131
124
|
/**
|
132
|
-
* The encoding format of the embeddings.
|
125
|
+
* The encoding format(s) of the embeddings. Can be a single format or a list of
|
126
|
+
* formats.
|
133
127
|
*/
|
134
128
|
encoding_format?:
|
135
129
|
| 'float'
|
@@ -142,53 +136,6 @@ export interface EmbedParams {
|
|
142
136
|
| Array<'float' | 'float16' | 'base64' | 'binary' | 'ubinary' | 'int8' | 'uint8'>;
|
143
137
|
}
|
144
138
|
|
145
|
-
export namespace EmbedParams {
|
146
|
-
/**
|
147
|
-
* Model for image input validation.
|
148
|
-
*/
|
149
|
-
export interface ImageURLInput {
|
150
|
-
/**
|
151
|
-
* Input type identifier
|
152
|
-
*/
|
153
|
-
type?: 'image_url';
|
154
|
-
|
155
|
-
/**
|
156
|
-
* The image input specification.
|
157
|
-
*/
|
158
|
-
image: ImageURLInput.Image;
|
159
|
-
}
|
160
|
-
|
161
|
-
export namespace ImageURLInput {
|
162
|
-
/**
|
163
|
-
* The image input specification.
|
164
|
-
*/
|
165
|
-
export interface Image {
|
166
|
-
/**
|
167
|
-
* The image URL. Can be either a URL or a Data URI.
|
168
|
-
*/
|
169
|
-
url: string;
|
170
|
-
}
|
171
|
-
}
|
172
|
-
|
173
|
-
/**
|
174
|
-
* Model for text input validation.
|
175
|
-
*
|
176
|
-
* Attributes: type: Input type identifier, always "text" text: The actual text
|
177
|
-
* content, with length and whitespace constraints
|
178
|
-
*/
|
179
|
-
export interface TextInput {
|
180
|
-
/**
|
181
|
-
* Input type identifier
|
182
|
-
*/
|
183
|
-
type?: 'text';
|
184
|
-
|
185
|
-
/**
|
186
|
-
* Text content to process
|
187
|
-
*/
|
188
|
-
text: string;
|
189
|
-
}
|
190
|
-
}
|
191
|
-
|
192
139
|
export interface RerankParams {
|
193
140
|
/**
|
194
141
|
* The model to use for reranking documents.
|
package/src/version.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
1
|
+
export const VERSION = '0.1.0-alpha.15'; // x-release-please-version
|
package/version.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const VERSION = "0.1.0-alpha.
|
1
|
+
export declare const VERSION = "0.1.0-alpha.15";
|
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.1.0-alpha.
|
4
|
+
exports.VERSION = '0.1.0-alpha.15'; // x-release-please-version
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
1
|
+
export const VERSION = '0.1.0-alpha.15'; // x-release-please-version
|
2
2
|
//# sourceMappingURL=version.mjs.map
|