openai 7.27.0 → 7.28.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 (110) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/lib/beta/agents/parse-result.d.mts +2 -2
  3. package/lib/beta/agents/parse-result.d.ts +2 -2
  4. package/package.json +1 -1
  5. package/resources/admin/organization/usage.d.mts +77 -11
  6. package/resources/admin/organization/usage.d.mts.map +1 -1
  7. package/resources/admin/organization/usage.d.ts +77 -11
  8. package/resources/admin/organization/usage.d.ts.map +1 -1
  9. package/resources/audio/audio.d.mts +4 -0
  10. package/resources/audio/audio.d.mts.map +1 -1
  11. package/resources/audio/audio.d.ts +4 -0
  12. package/resources/audio/audio.d.ts.map +1 -1
  13. package/resources/audio/audio.js +4 -0
  14. package/resources/audio/audio.js.map +1 -1
  15. package/resources/audio/audio.mjs +4 -0
  16. package/resources/audio/audio.mjs.map +1 -1
  17. package/resources/audio/index.d.mts +1 -0
  18. package/resources/audio/index.d.mts.map +1 -1
  19. package/resources/audio/index.d.ts +1 -0
  20. package/resources/audio/index.d.ts.map +1 -1
  21. package/resources/audio/index.js +3 -1
  22. package/resources/audio/index.js.map +1 -1
  23. package/resources/audio/index.mjs +1 -0
  24. package/resources/audio/index.mjs.map +1 -1
  25. package/resources/audio/speech.d.mts +2 -0
  26. package/resources/audio/speech.d.mts.map +1 -1
  27. package/resources/audio/speech.d.ts +2 -0
  28. package/resources/audio/speech.d.ts.map +1 -1
  29. package/resources/audio/voices.d.mts +119 -0
  30. package/resources/audio/voices.d.mts.map +1 -0
  31. package/resources/audio/voices.d.ts +119 -0
  32. package/resources/audio/voices.d.ts.map +1 -0
  33. package/resources/audio/voices.js +41 -0
  34. package/resources/audio/voices.js.map +1 -0
  35. package/resources/audio/voices.mjs +37 -0
  36. package/resources/audio/voices.mjs.map +1 -0
  37. package/resources/beta/agents/agents.d.mts +2 -4
  38. package/resources/beta/agents/agents.d.mts.map +1 -1
  39. package/resources/beta/agents/agents.d.ts +2 -4
  40. package/resources/beta/agents/agents.d.ts.map +1 -1
  41. package/resources/beta/agents/agents.js.map +1 -1
  42. package/resources/beta/agents/agents.mjs.map +1 -1
  43. package/resources/beta/agents/sessions/sessions.d.mts +2 -4
  44. package/resources/beta/agents/sessions/sessions.d.mts.map +1 -1
  45. package/resources/beta/agents/sessions/sessions.d.ts +2 -4
  46. package/resources/beta/agents/sessions/sessions.d.ts.map +1 -1
  47. package/resources/beta/agents/sessions/sessions.js.map +1 -1
  48. package/resources/beta/agents/sessions/sessions.mjs.map +1 -1
  49. package/resources/beta/responses/responses.d.mts +1 -3
  50. package/resources/beta/responses/responses.d.mts.map +1 -1
  51. package/resources/beta/responses/responses.d.ts +1 -3
  52. package/resources/beta/responses/responses.d.ts.map +1 -1
  53. package/resources/beta/responses/responses.js.map +1 -1
  54. package/resources/beta/responses/responses.mjs.map +1 -1
  55. package/resources/chat/completions/completions.d.mts +2 -1
  56. package/resources/chat/completions/completions.d.mts.map +1 -1
  57. package/resources/chat/completions/completions.d.ts +2 -1
  58. package/resources/chat/completions/completions.d.ts.map +1 -1
  59. package/resources/chat/completions/completions.js.map +1 -1
  60. package/resources/chat/completions/completions.mjs.map +1 -1
  61. package/resources/images.d.mts +57 -72
  62. package/resources/images.d.mts.map +1 -1
  63. package/resources/images.d.ts +57 -72
  64. package/resources/images.d.ts.map +1 -1
  65. package/resources/images.js +4 -7
  66. package/resources/images.js.map +1 -1
  67. package/resources/images.mjs +4 -7
  68. package/resources/images.mjs.map +1 -1
  69. package/resources/realtime/realtime.d.mts +6 -4
  70. package/resources/realtime/realtime.d.mts.map +1 -1
  71. package/resources/realtime/realtime.d.ts +6 -4
  72. package/resources/realtime/realtime.d.ts.map +1 -1
  73. package/resources/realtime/realtime.js.map +1 -1
  74. package/resources/realtime/realtime.mjs.map +1 -1
  75. package/resources/responses/responses.d.mts +1 -3
  76. package/resources/responses/responses.d.mts.map +1 -1
  77. package/resources/responses/responses.d.ts +1 -3
  78. package/resources/responses/responses.d.ts.map +1 -1
  79. package/resources/responses/responses.js.map +1 -1
  80. package/resources/responses/responses.mjs.map +1 -1
  81. package/resources/shared.d.mts +64 -0
  82. package/resources/shared.d.mts.map +1 -1
  83. package/resources/shared.d.ts +64 -0
  84. package/resources/shared.d.ts.map +1 -1
  85. package/resources/webhooks/webhooks.d.mts +211 -6
  86. package/resources/webhooks/webhooks.d.mts.map +1 -1
  87. package/resources/webhooks/webhooks.d.ts +211 -6
  88. package/resources/webhooks/webhooks.d.ts.map +1 -1
  89. package/resources/webhooks/webhooks.js.map +1 -1
  90. package/resources/webhooks/webhooks.mjs.map +1 -1
  91. package/src/resources/admin/organization/usage.ts +88 -11
  92. package/src/resources/audio/audio.ts +6 -0
  93. package/src/resources/audio/index.ts +1 -0
  94. package/src/resources/audio/speech.ts +2 -0
  95. package/src/resources/audio/voices.ts +152 -0
  96. package/src/resources/beta/agents/agents.ts +2 -4
  97. package/src/resources/beta/agents/sessions/sessions.ts +2 -4
  98. package/src/resources/beta/responses/responses.ts +1 -3
  99. package/src/resources/chat/completions/completions.ts +2 -1
  100. package/src/resources/images.ts +58 -73
  101. package/src/resources/realtime/realtime.ts +6 -4
  102. package/src/resources/responses/responses.ts +1 -3
  103. package/src/resources/shared.ts +64 -0
  104. package/src/resources/webhooks/api.md +5 -0
  105. package/src/resources/webhooks/webhooks.ts +273 -1
  106. package/src/version.ts +1 -1
  107. package/version.d.mts +1 -1
  108. package/version.d.ts +1 -1
  109. package/version.js +1 -1
  110. package/version.mjs +1 -1
@@ -2,4 +2,5 @@ export { Audio, type AudioModel, type AudioResponseFormat } from "./audio.js";
2
2
  export { Speech, type SpeechModel, type SpeechCreateParams } from "./speech.js";
3
3
  export { Transcriptions, type Transcription, type TranscriptionDiarized, type TranscriptionDiarizedSegment, type TranscriptionInclude, type TranscriptionLanguage, type TranscriptionSegment, type TranscriptionStreamEvent, type TranscriptionTextDeltaEvent, type TranscriptionTextDoneEvent, type TranscriptionTextSegmentEvent, type TranscriptionVerbose, type TranscriptionWord, type TranscriptionCreateResponse, type TranscriptionCreateParams, type TranscriptionCreateParamsNonStreaming, type TranscriptionCreateParamsStreaming, } from "./transcriptions.js";
4
4
  export { Translations, type Translation, type TranslationVerbose, type TranslationCreateResponse, type TranslationCreateParams, } from "./translations.js";
5
+ export { Voices, type Voice, type VoiceCreateParams } from "./voices.js";
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/audio/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,KAAK,mBAAmB,EAAE,mBAAgB;AAC3E,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,kBAAkB,EAAE,oBAAiB;AAC7E,OAAO,EACL,cAAc,EACd,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,4BAA4B,EACjC,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,qCAAqC,EAC1C,KAAK,kCAAkC,GACxC,4BAAyB;AAC1B,OAAO,EACL,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,GAC7B,0BAAuB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/audio/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,KAAK,mBAAmB,EAAE,mBAAgB;AAC3E,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,kBAAkB,EAAE,oBAAiB;AAC7E,OAAO,EACL,cAAc,EACd,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,4BAA4B,EACjC,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,qCAAqC,EAC1C,KAAK,kCAAkC,GACxC,4BAAyB;AAC1B,OAAO,EACL,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,GAC7B,0BAAuB;AACxB,OAAO,EAAE,MAAM,EAAE,KAAK,KAAK,EAAE,KAAK,iBAAiB,EAAE,oBAAiB"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Castiron. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Translations = exports.Transcriptions = exports.Speech = exports.Audio = void 0;
4
+ exports.Voices = exports.Translations = exports.Transcriptions = exports.Speech = exports.Audio = void 0;
5
5
  var audio_1 = require("./audio.js");
6
6
  Object.defineProperty(exports, "Audio", { enumerable: true, get: function () { return audio_1.Audio; } });
7
7
  var speech_1 = require("./speech.js");
@@ -10,4 +10,6 @@ var transcriptions_1 = require("./transcriptions.js");
10
10
  Object.defineProperty(exports, "Transcriptions", { enumerable: true, get: function () { return transcriptions_1.Transcriptions; } });
11
11
  var translations_1 = require("./translations.js");
12
12
  Object.defineProperty(exports, "Translations", { enumerable: true, get: function () { return translations_1.Translations; } });
13
+ var voices_1 = require("./voices.js");
14
+ Object.defineProperty(exports, "Voices", { enumerable: true, get: function () { return voices_1.Voices; } });
13
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/audio/index.ts"],"names":[],"mappings":";AAAA,qFAAqF;;;AAErF,oCAA2E;AAAlE,8FAAA,KAAK,OAAA;AACd,sCAA6E;AAApE,gGAAA,MAAM,OAAA;AACf,sDAkB0B;AAjBxB,gHAAA,cAAc,OAAA;AAkBhB,kDAMwB;AALtB,4GAAA,YAAY,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/audio/index.ts"],"names":[],"mappings":";AAAA,qFAAqF;;;AAErF,oCAA2E;AAAlE,8FAAA,KAAK,OAAA;AACd,sCAA6E;AAApE,gGAAA,MAAM,OAAA;AACf,sDAkB0B;AAjBxB,gHAAA,cAAc,OAAA;AAkBhB,kDAMwB;AALtB,4GAAA,YAAY,OAAA;AAMd,sCAAsE;AAA7D,gGAAA,MAAM,OAAA"}
@@ -3,4 +3,5 @@ export { Audio } from "./audio.mjs";
3
3
  export { Speech } from "./speech.mjs";
4
4
  export { Transcriptions, } from "./transcriptions.mjs";
5
5
  export { Translations, } from "./translations.mjs";
6
+ export { Voices } from "./voices.mjs";
6
7
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/audio/index.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAErF,OAAO,EAAE,KAAK,EAA6C,oBAAgB;AAC3E,OAAO,EAAE,MAAM,EAA6C,qBAAiB;AAC7E,OAAO,EACL,cAAc,GAiBf,6BAAyB;AAC1B,OAAO,EACL,YAAY,GAKb,2BAAuB"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/audio/index.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAErF,OAAO,EAAE,KAAK,EAA6C,oBAAgB;AAC3E,OAAO,EAAE,MAAM,EAA6C,qBAAiB;AAC7E,OAAO,EACL,cAAc,GAiBf,6BAAyB;AAC1B,OAAO,EACL,YAAY,GAKb,2BAAuB;AACxB,OAAO,EAAE,MAAM,EAAsC,qBAAiB"}
@@ -43,6 +43,8 @@ export interface SpeechCreateParams {
43
43
  * object with an `id`, for example `{ "id": "voice_1234" }`. Previews of the
44
44
  * voices are available in the
45
45
  * [Text to speech guide](https://developers.openai.com/api/docs/guides/text-to-speech#voice-options).
46
+ * Custom voices must be created from audio samples. Voices created from text
47
+ * prompts are supported only in Live.
46
48
  */
47
49
  voice: string | 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'sage' | 'shimmer' | 'verse' | 'marin' | 'cedar' | 'fable' | 'onyx' | 'nova' | SpeechCreateParams.ID;
48
50
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"speech.d.mts","sourceRoot":"","sources":["../../src/resources/audio/speech.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAShE;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;CAYjF;AAED,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,UAAU,GAAG,iBAAiB,GAAG,4BAA4B,CAAC;AAElG,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,KAAK,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,WAAW,CAAC;IAEnC;;;;;;;OAOG;IACH,KAAK,EACD,MAAM,GACN,OAAO,GACP,KAAK,GACL,QAAQ,GACR,OAAO,GACP,MAAM,GACN,MAAM,GACN,SAAS,GACT,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,MAAM,GACN,MAAM,GACN,kBAAkB,CAAC,EAAE,CAAC;IAE1B;;;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AM,GACN,SAAS,GACT,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,MAAM,GACN,MAAM,GACN,kBAAkB,CAAC,EAAE,CAAC;IAE1B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,eAAe,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;IAElE;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,aAAa,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC;CACjC;AAED,yBAAiB,kBAAkB,CAAC;IAClC;;OAEG;IACH,UAAiB,EAAE;QACjB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,WAAW,IAAI,WAAW,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC3F"}
@@ -43,6 +43,8 @@ export interface SpeechCreateParams {
43
43
  * object with an `id`, for example `{ "id": "voice_1234" }`. Previews of the
44
44
  * voices are available in the
45
45
  * [Text to speech guide](https://developers.openai.com/api/docs/guides/text-to-speech#voice-options).
46
+ * Custom voices must be created from audio samples. Voices created from text
47
+ * prompts are supported only in Live.
46
48
  */
47
49
  voice: string | 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'sage' | 'shimmer' | 'verse' | 'marin' | 'cedar' | 'fable' | 'onyx' | 'nova' | SpeechCreateParams.ID;
48
50
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"speech.d.ts","sourceRoot":"","sources":["../../src/resources/audio/speech.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAShE;;GAEG;AACH,qBAAa,MAAO,SA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AC;CAC3F"}
@@ -0,0 +1,119 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import { APIPromise } from "../../core/api-promise.mjs";
3
+ import { type Uploadable } from "../../core/uploads.mjs";
4
+ import { RequestOptions } from "../../internal/request-options.mjs";
5
+ /**
6
+ * Turn audio into text or text into audio.
7
+ */
8
+ export declare class Voices extends APIResource {
9
+ /**
10
+ * Creates a voice from a text prompt or from a consent recording and an audio
11
+ * sample.
12
+ *
13
+ * For prompt-based creation, send `type: "prompt"` with a `name` and `prompt` as
14
+ * JSON or multipart form data. For creation from an audio sample, send
15
+ * `type: "audio_sample"` with a `name`, `audio_sample`, and `consent` recording ID
16
+ * as multipart form data. The type defaults to `audio_sample` when omitted.
17
+ *
18
+ * Returns the saved voice's metadata. Voices created from text prompts are
19
+ * supported only in Live, not in Realtime or the speech endpoint. The response
20
+ * does not include preview audio.
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * const voice = await client.audio.voices.create({
25
+ * audio_sample: fs.createReadStream('path/to/file'),
26
+ * consent: 'consent',
27
+ * name: 'x',
28
+ * });
29
+ * ```
30
+ */
31
+ create(body: VoiceCreateParams, options?: RequestOptions): APIPromise<Voice>;
32
+ }
33
+ /**
34
+ * A custom voice that can be used for audio output. Voices created from text
35
+ * prompts are supported only in Live.
36
+ */
37
+ export interface Voice {
38
+ /**
39
+ * The voice identifier, which can be referenced in API endpoints.
40
+ */
41
+ id: string;
42
+ /**
43
+ * The Unix timestamp (in seconds) for when the voice was created.
44
+ */
45
+ created_at: number;
46
+ /**
47
+ * The name of the voice.
48
+ */
49
+ name: string;
50
+ /**
51
+ * The object type, which is always `audio.voice`.
52
+ */
53
+ object: 'audio.voice';
54
+ /**
55
+ * How the voice was created. Voices created from text prompts are supported only
56
+ * in Live.
57
+ */
58
+ type: 'audio_sample' | 'prompt';
59
+ }
60
+ export type VoiceCreateParams = VoiceCreateParams.Consent | VoiceCreateParams.Prompt;
61
+ export declare namespace VoiceCreateParams {
62
+ /**
63
+ * Creates a voice from a consent recording and an audio sample. Requires
64
+ * multipart/form-data.
65
+ */
66
+ interface Consent {
67
+ /**
68
+ * The sample audio recording file. Maximum size is 10 MiB.
69
+ *
70
+ * Supported MIME types: `audio/mpeg`, `audio/wav`, `audio/x-wav`, `audio/ogg`,
71
+ * `audio/aac`, `audio/flac`, `audio/webm`, `audio/mp4`.
72
+ */
73
+ audio_sample: Uploadable;
74
+ /**
75
+ * The consent recording ID (for example, `cons_1234`).
76
+ */
77
+ consent: string;
78
+ /**
79
+ * The name of the new voice.
80
+ */
81
+ name: string;
82
+ /**
83
+ * The voice creation method. Defaults to `audio_sample` when omitted.
84
+ */
85
+ type?: 'audio_sample';
86
+ }
87
+ /**
88
+ * Creates a synthetic voice from a text description. Supports application/json or
89
+ * multipart/form-data.
90
+ */
91
+ interface Prompt {
92
+ /**
93
+ * The name of the new voice.
94
+ */
95
+ name: string;
96
+ /**
97
+ * A description of the desired voice. Must not contain only whitespace.
98
+ */
99
+ prompt: string;
100
+ /**
101
+ * Set to `prompt` to create a voice from a text description.
102
+ */
103
+ type: 'prompt';
104
+ /**
105
+ * The voice creation model to use. Defaults to `auto`.
106
+ */
107
+ model?: string | 'auto' | '2026-10-01';
108
+ /**
109
+ * Optional text for the voice to speak during creation. If omitted, a script is
110
+ * generated from the prompt. Must not be blank after trimming whitespace; scripts
111
+ * that are too short are rejected.
112
+ */
113
+ script_hint?: string;
114
+ }
115
+ }
116
+ export declare namespace Voices {
117
+ export { type Voice as Voice, type VoiceCreateParams as VoiceCreateParams };
118
+ }
119
+ //# sourceMappingURL=voices.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"voices.d.mts","sourceRoot":"","sources":["../../src/resources/audio/voices.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,KAAK,UAAU,EAAE,+BAA2B;AACrD,OAAO,EAAE,cAAc,EAAE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E,CAAC;CAC7E"}
@@ -0,0 +1,119 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import { APIPromise } from "../../core/api-promise.js";
3
+ import { type Uploadable } from "../../core/uploads.js";
4
+ import { RequestOptions } from "../../internal/request-options.js";
5
+ /**
6
+ * Turn audio into text or text into audio.
7
+ */
8
+ export declare class Voices extends APIResource {
9
+ /**
10
+ * Creates a voice from a text prompt or from a consent recording and an audio
11
+ * sample.
12
+ *
13
+ * For prompt-based creation, send `type: "prompt"` with a `name` and `prompt` as
14
+ * JSON or multipart form data. For creation from an audio sample, send
15
+ * `type: "audio_sample"` with a `name`, `audio_sample`, and `consent` recording ID
16
+ * as multipart form data. The type defaults to `audio_sample` when omitted.
17
+ *
18
+ * Returns the saved voice's metadata. Voices created from text prompts are
19
+ * supported only in Live, not in Realtime or the speech endpoint. The response
20
+ * does not include preview audio.
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * const voice = await client.audio.voices.create({
25
+ * audio_sample: fs.createReadStream('path/to/file'),
26
+ * consent: 'consent',
27
+ * name: 'x',
28
+ * });
29
+ * ```
30
+ */
31
+ create(body: VoiceCreateParams, options?: RequestOptions): APIPromise<Voice>;
32
+ }
33
+ /**
34
+ * A custom voice that can be used for audio output. Voices created from text
35
+ * prompts are supported only in Live.
36
+ */
37
+ export interface Voice {
38
+ /**
39
+ * The voice identifier, which can be referenced in API endpoints.
40
+ */
41
+ id: string;
42
+ /**
43
+ * The Unix timestamp (in seconds) for when the voice was created.
44
+ */
45
+ created_at: number;
46
+ /**
47
+ * The name of the voice.
48
+ */
49
+ name: string;
50
+ /**
51
+ * The object type, which is always `audio.voice`.
52
+ */
53
+ object: 'audio.voice';
54
+ /**
55
+ * How the voice was created. Voices created from text prompts are supported only
56
+ * in Live.
57
+ */
58
+ type: 'audio_sample' | 'prompt';
59
+ }
60
+ export type VoiceCreateParams = VoiceCreateParams.Consent | VoiceCreateParams.Prompt;
61
+ export declare namespace VoiceCreateParams {
62
+ /**
63
+ * Creates a voice from a consent recording and an audio sample. Requires
64
+ * multipart/form-data.
65
+ */
66
+ interface Consent {
67
+ /**
68
+ * The sample audio recording file. Maximum size is 10 MiB.
69
+ *
70
+ * Supported MIME types: `audio/mpeg`, `audio/wav`, `audio/x-wav`, `audio/ogg`,
71
+ * `audio/aac`, `audio/flac`, `audio/webm`, `audio/mp4`.
72
+ */
73
+ audio_sample: Uploadable;
74
+ /**
75
+ * The consent recording ID (for example, `cons_1234`).
76
+ */
77
+ consent: string;
78
+ /**
79
+ * The name of the new voice.
80
+ */
81
+ name: string;
82
+ /**
83
+ * The voice creation method. Defaults to `audio_sample` when omitted.
84
+ */
85
+ type?: 'audio_sample';
86
+ }
87
+ /**
88
+ * Creates a synthetic voice from a text description. Supports application/json or
89
+ * multipart/form-data.
90
+ */
91
+ interface Prompt {
92
+ /**
93
+ * The name of the new voice.
94
+ */
95
+ name: string;
96
+ /**
97
+ * A description of the desired voice. Must not contain only whitespace.
98
+ */
99
+ prompt: string;
100
+ /**
101
+ * Set to `prompt` to create a voice from a text description.
102
+ */
103
+ type: 'prompt';
104
+ /**
105
+ * The voice creation model to use. Defaults to `auto`.
106
+ */
107
+ model?: string | 'auto' | '2026-10-01';
108
+ /**
109
+ * Optional text for the voice to speak during creation. If omitted, a script is
110
+ * generated from the prompt. Must not be blank after trimming whitespace; scripts
111
+ * that are too short are rejected.
112
+ */
113
+ script_hint?: string;
114
+ }
115
+ }
116
+ export declare namespace Voices {
117
+ export { type Voice as Voice, type VoiceCreateParams as VoiceCreateParams };
118
+ }
119
+ //# sourceMappingURL=voices.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"voices.d.ts","sourceRoot":"","sources":["../../src/resources/audio/voices.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,KAAK,UAAU,EAAE,8BAA2B;AACrD,OAAO,EAAE,cAAc,EAAE,0CA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AC;CAC7E"}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Castiron. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Voices = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const uploads_1 = require("../../internal/uploads.js");
7
+ function resolveResourceRequestOptions(options, buildOptions) {
8
+ return Promise.resolve(options).then(buildOptions);
9
+ }
10
+ /**
11
+ * Turn audio into text or text into audio.
12
+ */
13
+ class Voices extends resource_1.APIResource {
14
+ /**
15
+ * Creates a voice from a text prompt or from a consent recording and an audio
16
+ * sample.
17
+ *
18
+ * For prompt-based creation, send `type: "prompt"` with a `name` and `prompt` as
19
+ * JSON or multipart form data. For creation from an audio sample, send
20
+ * `type: "audio_sample"` with a `name`, `audio_sample`, and `consent` recording ID
21
+ * as multipart form data. The type defaults to `audio_sample` when omitted.
22
+ *
23
+ * Returns the saved voice's metadata. Voices created from text prompts are
24
+ * supported only in Live, not in Realtime or the speech endpoint. The response
25
+ * does not include preview audio.
26
+ *
27
+ * @example
28
+ * ```ts
29
+ * const voice = await client.audio.voices.create({
30
+ * audio_sample: fs.createReadStream('path/to/file'),
31
+ * consent: 'consent',
32
+ * name: 'x',
33
+ * });
34
+ * ```
35
+ */
36
+ create(body, options) {
37
+ return this._client.post('/audio/voices', resolveResourceRequestOptions(options, (options) => (0, uploads_1.multipartFormRequestOptions)({ body, ...options, __security: { bearerAuth: true } }, this._client)));
38
+ }
39
+ }
40
+ exports.Voices = Voices;
41
+ //# sourceMappingURL=voices.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"voices.js","sourceRoot":"","sources":["../../src/resources/audio/voices.ts"],"names":[],"mappings":";AAAA,qFAAqF;;;AAErF,qDAAkD;AAIlD,uDAAqE;AAErE,SAAS,6BAA6B,CACpC,OAAmC,EACnC,YAA+F;IAE/F,OAAO,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;AACrD,CAAC;AAED;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,eAAe,EACf,6BAA6B,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CACjD,IAAA,qCAA2B,EAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAClG,CACF,CAAC;IACJ,CAAC;CACF;AA/BD,wBA+BC"}
@@ -0,0 +1,37 @@
1
+ // File generated from our OpenAPI spec by Castiron. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import { multipartFormRequestOptions } from "../../internal/uploads.mjs";
4
+ function resolveResourceRequestOptions(options, buildOptions) {
5
+ return Promise.resolve(options).then(buildOptions);
6
+ }
7
+ /**
8
+ * Turn audio into text or text into audio.
9
+ */
10
+ export class Voices extends APIResource {
11
+ /**
12
+ * Creates a voice from a text prompt or from a consent recording and an audio
13
+ * sample.
14
+ *
15
+ * For prompt-based creation, send `type: "prompt"` with a `name` and `prompt` as
16
+ * JSON or multipart form data. For creation from an audio sample, send
17
+ * `type: "audio_sample"` with a `name`, `audio_sample`, and `consent` recording ID
18
+ * as multipart form data. The type defaults to `audio_sample` when omitted.
19
+ *
20
+ * Returns the saved voice's metadata. Voices created from text prompts are
21
+ * supported only in Live, not in Realtime or the speech endpoint. The response
22
+ * does not include preview audio.
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * const voice = await client.audio.voices.create({
27
+ * audio_sample: fs.createReadStream('path/to/file'),
28
+ * consent: 'consent',
29
+ * name: 'x',
30
+ * });
31
+ * ```
32
+ */
33
+ create(body, options) {
34
+ return this._client.post('/audio/voices', resolveResourceRequestOptions(options, (options) => multipartFormRequestOptions({ body, ...options, __security: { bearerAuth: true } }, this._client)));
35
+ }
36
+ }
37
+ //# sourceMappingURL=voices.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"voices.mjs","sourceRoot":"","sources":["../../src/resources/audio/voices.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAErF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,2BAA2B,EAAE,mCAA+B;AAErE,SAAS,6BAA6B,CACpC,OAAmC,EACnC,YAA+F;IAE/F,OAAO,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;AACrD,CAAC;AAED;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,eAAe,EACf,6BAA6B,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CACjD,2BAA2B,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAClG,CACF,CAAC;IACJ,CAAC;CACF"}
@@ -4213,9 +4213,8 @@ export interface AgentCreateParams {
4213
4213
  * - `flex` - Uses the flex service tier.
4214
4214
  * - `priority` - Uses the priority service tier.
4215
4215
  * - `fast` - Uses the fast service tier.
4216
- * - `ultrafast` - Uses the ultrafast service tier.
4217
4216
  */
4218
- service_tier?: 'auto' | 'default' | 'flex' | 'priority' | 'fast' | 'ultrafast' | null;
4217
+ service_tier?: 'auto' | 'default' | 'flex' | 'priority' | 'fast' | null;
4219
4218
  /**
4220
4219
  * Configuration for generated text. Defaults to the `text` format and medium
4221
4220
  * verbosity.
@@ -4265,9 +4264,8 @@ export interface AgentUpdateParams {
4265
4264
  * - `flex` - Uses the flex service tier.
4266
4265
  * - `priority` - Uses the priority service tier.
4267
4266
  * - `fast` - Uses the fast service tier.
4268
- * - `ultrafast` - Uses the ultrafast service tier.
4269
4267
  */
4270
- service_tier?: 'auto' | 'default' | 'flex' | 'priority' | 'fast' | 'ultrafast' | null;
4268
+ service_tier?: 'auto' | 'default' | 'flex' | 'priority' | 'fast' | null;
4271
4269
  /**
4272
4270
  * Configuration for text generated by the agent.
4273
4271
  */