@meistrari/tela-sdk-js 1.0.0 → 1.0.1
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/dist/index.cjs +2 -2
- package/dist/index.d.cts +8 -8
- package/dist/index.d.mts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.mjs +2 -2
- package/package.json +3 -4
package/dist/index.cjs
CHANGED
|
@@ -20,7 +20,7 @@ function _interopNamespaceCompat(e) {
|
|
|
20
20
|
const changeCase__namespace = /*#__PURE__*/_interopNamespaceCompat(changeCase);
|
|
21
21
|
const micromatch__default = /*#__PURE__*/_interopDefaultCompat(micromatch);
|
|
22
22
|
|
|
23
|
-
const version = "1.0.
|
|
23
|
+
const version = "1.0.1";
|
|
24
24
|
|
|
25
25
|
var __defProp$5 = Object.defineProperty;
|
|
26
26
|
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -1190,7 +1190,7 @@ class ChatCompletions extends Resource {
|
|
|
1190
1190
|
"Content-Type": contentType,
|
|
1191
1191
|
...file.size ? { "Content-Length": file.size.toString() } : {}
|
|
1192
1192
|
},
|
|
1193
|
-
//
|
|
1193
|
+
// duplex is not supported
|
|
1194
1194
|
duplex: "half"
|
|
1195
1195
|
});
|
|
1196
1196
|
if (!uploadResponse.ok) {
|
package/dist/index.d.cts
CHANGED
|
@@ -238,6 +238,14 @@ declare class TelaFile {
|
|
|
238
238
|
*/
|
|
239
239
|
declare function createTelaFile(file: TelaFileInput, options?: TelaFileOptions): TelaFile;
|
|
240
240
|
|
|
241
|
+
/**
|
|
242
|
+
* Base class for all resources.
|
|
243
|
+
*/
|
|
244
|
+
declare class Resource {
|
|
245
|
+
protected _client: BaseClient;
|
|
246
|
+
constructor(client: BaseClient);
|
|
247
|
+
}
|
|
248
|
+
|
|
241
249
|
/**
|
|
242
250
|
* Represents a stream of items that can be asynchronously iterated over.
|
|
243
251
|
*/
|
|
@@ -294,14 +302,6 @@ declare class Stream<Item> implements AsyncIterable<Item> {
|
|
|
294
302
|
toReadableStream(): ReadableStream;
|
|
295
303
|
}
|
|
296
304
|
|
|
297
|
-
/**
|
|
298
|
-
* Base class for all resources.
|
|
299
|
-
*/
|
|
300
|
-
declare class Resource {
|
|
301
|
-
protected _client: BaseClient;
|
|
302
|
-
constructor(client: BaseClient);
|
|
303
|
-
}
|
|
304
|
-
|
|
305
305
|
/**
|
|
306
306
|
* Manages chat completion operations.
|
|
307
307
|
*
|
package/dist/index.d.mts
CHANGED
|
@@ -238,6 +238,14 @@ declare class TelaFile {
|
|
|
238
238
|
*/
|
|
239
239
|
declare function createTelaFile(file: TelaFileInput, options?: TelaFileOptions): TelaFile;
|
|
240
240
|
|
|
241
|
+
/**
|
|
242
|
+
* Base class for all resources.
|
|
243
|
+
*/
|
|
244
|
+
declare class Resource {
|
|
245
|
+
protected _client: BaseClient;
|
|
246
|
+
constructor(client: BaseClient);
|
|
247
|
+
}
|
|
248
|
+
|
|
241
249
|
/**
|
|
242
250
|
* Represents a stream of items that can be asynchronously iterated over.
|
|
243
251
|
*/
|
|
@@ -294,14 +302,6 @@ declare class Stream<Item> implements AsyncIterable<Item> {
|
|
|
294
302
|
toReadableStream(): ReadableStream;
|
|
295
303
|
}
|
|
296
304
|
|
|
297
|
-
/**
|
|
298
|
-
* Base class for all resources.
|
|
299
|
-
*/
|
|
300
|
-
declare class Resource {
|
|
301
|
-
protected _client: BaseClient;
|
|
302
|
-
constructor(client: BaseClient);
|
|
303
|
-
}
|
|
304
|
-
|
|
305
305
|
/**
|
|
306
306
|
* Manages chat completion operations.
|
|
307
307
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -238,6 +238,14 @@ declare class TelaFile {
|
|
|
238
238
|
*/
|
|
239
239
|
declare function createTelaFile(file: TelaFileInput, options?: TelaFileOptions): TelaFile;
|
|
240
240
|
|
|
241
|
+
/**
|
|
242
|
+
* Base class for all resources.
|
|
243
|
+
*/
|
|
244
|
+
declare class Resource {
|
|
245
|
+
protected _client: BaseClient;
|
|
246
|
+
constructor(client: BaseClient);
|
|
247
|
+
}
|
|
248
|
+
|
|
241
249
|
/**
|
|
242
250
|
* Represents a stream of items that can be asynchronously iterated over.
|
|
243
251
|
*/
|
|
@@ -294,14 +302,6 @@ declare class Stream<Item> implements AsyncIterable<Item> {
|
|
|
294
302
|
toReadableStream(): ReadableStream;
|
|
295
303
|
}
|
|
296
304
|
|
|
297
|
-
/**
|
|
298
|
-
* Base class for all resources.
|
|
299
|
-
*/
|
|
300
|
-
declare class Resource {
|
|
301
|
-
protected _client: BaseClient;
|
|
302
|
-
constructor(client: BaseClient);
|
|
303
|
-
}
|
|
304
|
-
|
|
305
305
|
/**
|
|
306
306
|
* Manages chat completion operations.
|
|
307
307
|
*
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as changeCase from 'change-case';
|
|
2
2
|
import micromatch from 'micromatch';
|
|
3
3
|
|
|
4
|
-
const version = "1.0.
|
|
4
|
+
const version = "1.0.1";
|
|
5
5
|
|
|
6
6
|
var __defProp$5 = Object.defineProperty;
|
|
7
7
|
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -1171,7 +1171,7 @@ class ChatCompletions extends Resource {
|
|
|
1171
1171
|
"Content-Type": contentType,
|
|
1172
1172
|
...file.size ? { "Content-Length": file.size.toString() } : {}
|
|
1173
1173
|
},
|
|
1174
|
-
//
|
|
1174
|
+
// duplex is not supported
|
|
1175
1175
|
duplex: "half"
|
|
1176
1176
|
});
|
|
1177
1177
|
if (!uploadResponse.ok) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meistrari/tela-sdk-js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,8 +33,7 @@
|
|
|
33
33
|
"lint": "eslint . --fix",
|
|
34
34
|
"lint:fix": "eslint . --fix",
|
|
35
35
|
"check": "eslint . --quiet && tsc --noEmit",
|
|
36
|
-
"prepack": "bun run build"
|
|
37
|
-
"postinstall": "bunx playwright install --with-deps chromium"
|
|
36
|
+
"prepack": "bun run build"
|
|
38
37
|
},
|
|
39
38
|
"dependencies": {
|
|
40
39
|
"change-case": "5.4.4",
|
|
@@ -55,7 +54,7 @@
|
|
|
55
54
|
"vitest": "3.0.8"
|
|
56
55
|
},
|
|
57
56
|
"peerDependencies": {
|
|
58
|
-
"typescript": "5.
|
|
57
|
+
"typescript": "5.8.2"
|
|
59
58
|
},
|
|
60
59
|
"lint-staged": {
|
|
61
60
|
"*.{js,ts}": [
|