spitch 1.25.0 → 1.26.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/CHANGELOG.md +48 -0
- package/LICENSE +1 -1
- package/README.md +43 -9
- package/client.d.mts +7 -7
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -7
- package/client.d.ts.map +1 -1
- package/client.js +9 -4
- package/client.js.map +1 -1
- package/client.mjs +10 -5
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/files.d.mts +34 -89
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +34 -89
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +6 -53
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +6 -53
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts +1 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -2
- package/resources/index.mjs.map +1 -1
- package/resources/speech.d.mts +51 -17
- package/resources/speech.d.mts.map +1 -1
- package/resources/speech.d.ts +51 -17
- package/resources/speech.d.ts.map +1 -1
- package/resources/speech.js +5 -3
- package/resources/speech.js.map +1 -1
- package/resources/speech.mjs +5 -3
- package/resources/speech.mjs.map +1 -1
- package/resources/text.d.mts +7 -25
- package/resources/text.d.mts.map +1 -1
- package/resources/text.d.ts +7 -25
- package/resources/text.d.ts.map +1 -1
- package/resources/text.js +3 -2
- package/resources/text.js.map +1 -1
- package/resources/text.mjs +3 -2
- package/resources/text.mjs.map +1 -1
- package/src/client.ts +21 -13
- package/src/internal/parse.ts +6 -0
- package/src/resources/files.ts +36 -96
- package/src/resources/index.ts +7 -2
- package/src/resources/speech.ts +55 -19
- package/src/resources/text.ts +7 -29
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/jobs.d.mts +0 -42
- package/resources/jobs.d.mts.map +0 -1
- package/resources/jobs.d.ts +0 -42
- package/resources/jobs.d.ts.map +0 -1
- package/resources/jobs.js +0 -23
- package/resources/jobs.js.map +0 -1
- package/resources/jobs.mjs +0 -19
- package/resources/jobs.mjs.map +0 -1
- package/src/resources/jobs.ts +0 -68
package/resources/jobs.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jobs.d.ts","sourceRoot":"","sources":["../src/resources/jobs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,WAAW,EAAE,KAAK,iBAAiB,EAAE,WAAW,EAAE;OACpD,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,aAAa,GAAG,IAAI,GAAG,SAAc,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,eAAe,EAAE,GAAG,CAAC;IAIpC;;OAEG;IACH,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,GAAG,CAAC;CAG9D;AAED,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC;AAE/C;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,UAAU,EAAE,MAAM,CAAC;IAEnB,QAAQ,EAAE,MAAM,CAAC;IAEjB,MAAM,EAAE,MAAM,CAAC;IAEf,MAAM,EAAE,MAAM,CAAC;IAEf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;GAKG;AACH,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAElB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,MAAM,WAAW,aAAc,SAAQ,iBAAiB;IACtD,MAAM,CAAC,EAAE,QAAQ,GAAG,aAAa,GAAG,UAAU,GAAG,IAAI,CAAC;CACvD;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,GAAG,IAAI,GAAG,EACf,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
|
package/resources/jobs.js
DELETED
|
@@ -1,23 +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.Jobs = void 0;
|
|
5
|
-
const resource_1 = require("../core/resource.js");
|
|
6
|
-
const pagination_1 = require("../core/pagination.js");
|
|
7
|
-
const path_1 = require("../internal/utils/path.js");
|
|
8
|
-
class Jobs extends resource_1.APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Get Jobs
|
|
11
|
-
*/
|
|
12
|
-
list(query = {}, options) {
|
|
13
|
-
return this._client.getAPIList('/v1/jobs', (pagination_1.FilesCursor), { query, ...options });
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Get Job
|
|
17
|
-
*/
|
|
18
|
-
get(jobID, options) {
|
|
19
|
-
return this._client.get((0, path_1.path) `/v1/jobs/${jobID}`, options);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.Jobs = Jobs;
|
|
23
|
-
//# sourceMappingURL=jobs.js.map
|
package/resources/jobs.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jobs.js","sourceRoot":"","sources":["../src/resources/jobs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAsF;AAEtF,oDAA8C;AAE9C,MAAa,IAAK,SAAQ,sBAAW;IACnC;;OAEG;IACH,IAAI,CACF,QAA0C,EAAE,EAC5C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE,CAAA,wBAAgB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,KAAa,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;CACF;AAjBD,oBAiBC"}
|
package/resources/jobs.mjs
DELETED
|
@@ -1,19 +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 { FilesCursor } from "../core/pagination.mjs";
|
|
4
|
-
import { path } from "../internal/utils/path.mjs";
|
|
5
|
-
export class Jobs extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Get Jobs
|
|
8
|
-
*/
|
|
9
|
-
list(query = {}, options) {
|
|
10
|
-
return this._client.getAPIList('/v1/jobs', (FilesCursor), { query, ...options });
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Get Job
|
|
14
|
-
*/
|
|
15
|
-
get(jobID, options) {
|
|
16
|
-
return this._client.get(path `/v1/jobs/${jobID}`, options);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=jobs.mjs.map
|
package/resources/jobs.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jobs.mjs","sourceRoot":"","sources":["../src/resources/jobs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,WAAW,EAAuC;OAEpD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,IAAI,CACF,QAA0C,EAAE,EAC5C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE,CAAA,WAAgB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,KAAa,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;CACF"}
|
package/src/resources/jobs.ts
DELETED
|
@@ -1,68 +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 { FilesCursor, type FilesCursorParams, PagePromise } from '../core/pagination';
|
|
6
|
-
import { RequestOptions } from '../internal/request-options';
|
|
7
|
-
import { path } from '../internal/utils/path';
|
|
8
|
-
|
|
9
|
-
export class Jobs extends APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* Get Jobs
|
|
12
|
-
*/
|
|
13
|
-
list(
|
|
14
|
-
query: JobListParams | null | undefined = {},
|
|
15
|
-
options?: RequestOptions,
|
|
16
|
-
): PagePromise<JobsFilesCursor, Job> {
|
|
17
|
-
return this._client.getAPIList('/v1/jobs', FilesCursor<Job>, { query, ...options });
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Get Job
|
|
22
|
-
*/
|
|
23
|
-
get(jobID: string, options?: RequestOptions): APIPromise<Job> {
|
|
24
|
-
return this._client.get(path`/v1/jobs/${jobID}`, options);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export type JobsFilesCursor = FilesCursor<Job>;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Metadata model for job metadata.
|
|
32
|
-
*/
|
|
33
|
-
export interface Job {
|
|
34
|
-
created_by: string;
|
|
35
|
-
|
|
36
|
-
due_date: string;
|
|
37
|
-
|
|
38
|
-
job_id: string;
|
|
39
|
-
|
|
40
|
-
org_id: string;
|
|
41
|
-
|
|
42
|
-
status: string;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Response model for listing jobs.
|
|
47
|
-
*
|
|
48
|
-
* Attributes: items: list of job metadata responses next_cursor: Optional cursor
|
|
49
|
-
* for pagination to get next page of results
|
|
50
|
-
*/
|
|
51
|
-
export interface Jobs {
|
|
52
|
-
items: Array<Job>;
|
|
53
|
-
|
|
54
|
-
next_cursor?: string | null;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export interface JobListParams extends FilesCursorParams {
|
|
58
|
-
status?: 'queued' | 'in_progress' | 'finished' | null;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export declare namespace Jobs {
|
|
62
|
-
export {
|
|
63
|
-
type Job as Job,
|
|
64
|
-
type Jobs as Jobs,
|
|
65
|
-
type JobsFilesCursor as JobsFilesCursor,
|
|
66
|
-
type JobListParams as JobListParams,
|
|
67
|
-
};
|
|
68
|
-
}
|