@mistralai/mistralai 1.7.4 → 1.7.5

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 (172) hide show
  1. package/README.md +10 -0
  2. package/docs/sdks/audio/README.md +6 -0
  3. package/docs/sdks/transcriptions/README.md +167 -0
  4. package/examples/src/async_audio_transcription_stream.ts +17 -0
  5. package/funcs/audioTranscriptionsComplete.d.ts +13 -0
  6. package/funcs/audioTranscriptionsComplete.d.ts.map +1 -0
  7. package/funcs/audioTranscriptionsComplete.js +133 -0
  8. package/funcs/audioTranscriptionsComplete.js.map +1 -0
  9. package/funcs/audioTranscriptionsStream.d.ts +14 -0
  10. package/funcs/audioTranscriptionsStream.d.ts.map +1 -0
  11. package/funcs/audioTranscriptionsStream.js +143 -0
  12. package/funcs/audioTranscriptionsStream.js.map +1 -0
  13. package/funcs/batchJobsList.js +1 -0
  14. package/funcs/batchJobsList.js.map +1 -1
  15. package/jsr.json +1 -1
  16. package/lib/config.d.ts +2 -2
  17. package/lib/config.js +2 -2
  18. package/models/components/audiochunk.d.ts +54 -0
  19. package/models/components/audiochunk.d.ts.map +1 -0
  20. package/models/components/audiochunk.js +88 -0
  21. package/models/components/audiochunk.js.map +1 -0
  22. package/models/components/audiotranscriptionrequest.d.ts +57 -0
  23. package/models/components/audiotranscriptionrequest.d.ts.map +1 -0
  24. package/models/components/audiotranscriptionrequest.js +91 -0
  25. package/models/components/audiotranscriptionrequest.js.map +1 -0
  26. package/models/components/audiotranscriptionrequeststream.d.ts +57 -0
  27. package/models/components/audiotranscriptionrequeststream.d.ts.map +1 -0
  28. package/models/components/audiotranscriptionrequeststream.js +91 -0
  29. package/models/components/audiotranscriptionrequeststream.js.map +1 -0
  30. package/models/components/basemodelcard.d.ts +7 -7
  31. package/models/components/basemodelcard.d.ts.map +1 -1
  32. package/models/components/basemodelcard.js +11 -11
  33. package/models/components/basemodelcard.js.map +1 -1
  34. package/models/components/batchjobin.d.ts +4 -2
  35. package/models/components/batchjobin.d.ts.map +1 -1
  36. package/models/components/batchjobin.js +6 -2
  37. package/models/components/batchjobin.js.map +1 -1
  38. package/models/components/batchjobout.d.ts +4 -2
  39. package/models/components/batchjobout.d.ts.map +1 -1
  40. package/models/components/batchjobout.js +6 -2
  41. package/models/components/batchjobout.js.map +1 -1
  42. package/models/components/classifierftmodelout.d.ts +4 -0
  43. package/models/components/classifierftmodelout.d.ts.map +1 -1
  44. package/models/components/classifierftmodelout.js +8 -0
  45. package/models/components/classifierftmodelout.js.map +1 -1
  46. package/models/components/completionargs.d.ts +2 -2
  47. package/models/components/completionargs.d.ts.map +1 -1
  48. package/models/components/completionargs.js +2 -2
  49. package/models/components/completionargs.js.map +1 -1
  50. package/models/components/completionftmodelout.d.ts +4 -0
  51. package/models/components/completionftmodelout.d.ts.map +1 -1
  52. package/models/components/completionftmodelout.js +8 -0
  53. package/models/components/completionftmodelout.js.map +1 -1
  54. package/models/components/contentchunk.d.ts +10 -0
  55. package/models/components/contentchunk.d.ts.map +1 -1
  56. package/models/components/contentchunk.js +14 -0
  57. package/models/components/contentchunk.js.map +1 -1
  58. package/models/components/fileschema.d.ts +4 -0
  59. package/models/components/fileschema.d.ts.map +1 -1
  60. package/models/components/fileschema.js +4 -0
  61. package/models/components/fileschema.js.map +1 -1
  62. package/models/components/index.d.ts +13 -0
  63. package/models/components/index.d.ts.map +1 -1
  64. package/models/components/index.js +13 -0
  65. package/models/components/index.js.map +1 -1
  66. package/models/components/retrievefileout.d.ts +4 -0
  67. package/models/components/retrievefileout.d.ts.map +1 -1
  68. package/models/components/retrievefileout.js +4 -0
  69. package/models/components/retrievefileout.js.map +1 -1
  70. package/models/components/thinkchunk.d.ts +82 -0
  71. package/models/components/thinkchunk.d.ts.map +1 -0
  72. package/models/components/thinkchunk.js +106 -0
  73. package/models/components/thinkchunk.js.map +1 -0
  74. package/models/components/timestampgranularity.d.ts +25 -0
  75. package/models/components/timestampgranularity.d.ts.map +1 -0
  76. package/models/components/timestampgranularity.js +49 -0
  77. package/models/components/timestampgranularity.js.map +1 -0
  78. package/models/components/toolcall.d.ts +23 -0
  79. package/models/components/toolcall.d.ts.map +1 -1
  80. package/models/components/toolcall.js +26 -1
  81. package/models/components/toolcall.js.map +1 -1
  82. package/models/components/transcriptionresponse.d.ts +43 -0
  83. package/models/components/transcriptionresponse.d.ts.map +1 -0
  84. package/models/components/transcriptionresponse.js +78 -0
  85. package/models/components/transcriptionresponse.js.map +1 -0
  86. package/models/components/transcriptionsegmentchunk.d.ts +62 -0
  87. package/models/components/transcriptionsegmentchunk.d.ts.map +1 -0
  88. package/models/components/transcriptionsegmentchunk.js +92 -0
  89. package/models/components/transcriptionsegmentchunk.js.map +1 -0
  90. package/models/components/transcriptionstreamdone.d.ts +68 -0
  91. package/models/components/transcriptionstreamdone.d.ts.map +1 -0
  92. package/models/components/transcriptionstreamdone.js +98 -0
  93. package/models/components/transcriptionstreamdone.js.map +1 -0
  94. package/models/components/transcriptionstreamevents.d.ts +89 -0
  95. package/models/components/transcriptionstreamevents.d.ts.map +1 -0
  96. package/models/components/transcriptionstreamevents.js +138 -0
  97. package/models/components/transcriptionstreamevents.js.map +1 -0
  98. package/models/components/transcriptionstreameventtypes.d.ts +34 -0
  99. package/models/components/transcriptionstreameventtypes.d.ts.map +1 -0
  100. package/models/components/transcriptionstreameventtypes.js +52 -0
  101. package/models/components/transcriptionstreameventtypes.js.map +1 -0
  102. package/models/components/transcriptionstreamlanguage.d.ts +58 -0
  103. package/models/components/transcriptionstreamlanguage.d.ts.map +1 -0
  104. package/models/components/transcriptionstreamlanguage.js +93 -0
  105. package/models/components/transcriptionstreamlanguage.js.map +1 -0
  106. package/models/components/transcriptionstreamsegmentdelta.d.ts +62 -0
  107. package/models/components/transcriptionstreamsegmentdelta.d.ts.map +1 -0
  108. package/models/components/transcriptionstreamsegmentdelta.js +92 -0
  109. package/models/components/transcriptionstreamsegmentdelta.js.map +1 -0
  110. package/models/components/transcriptionstreamtextdelta.d.ts +58 -0
  111. package/models/components/transcriptionstreamtextdelta.d.ts.map +1 -0
  112. package/models/components/transcriptionstreamtextdelta.js +88 -0
  113. package/models/components/transcriptionstreamtextdelta.js.map +1 -0
  114. package/models/components/uploadfileout.d.ts +4 -0
  115. package/models/components/uploadfileout.d.ts.map +1 -1
  116. package/models/components/uploadfileout.js +4 -0
  117. package/models/components/uploadfileout.js.map +1 -1
  118. package/models/components/usageinfo.d.ts +9 -3
  119. package/models/components/usageinfo.d.ts.map +1 -1
  120. package/models/components/usageinfo.js +22 -13
  121. package/models/components/usageinfo.js.map +1 -1
  122. package/models/operations/jobsapiroutesbatchgetbatchjobs.d.ts +2 -0
  123. package/models/operations/jobsapiroutesbatchgetbatchjobs.d.ts.map +1 -1
  124. package/models/operations/jobsapiroutesbatchgetbatchjobs.js +4 -0
  125. package/models/operations/jobsapiroutesbatchgetbatchjobs.js.map +1 -1
  126. package/package.json +1 -1
  127. package/sdk/audio.d.ts +7 -0
  128. package/sdk/audio.d.ts.map +1 -0
  129. package/sdk/audio.js +15 -0
  130. package/sdk/audio.js.map +1 -0
  131. package/sdk/sdk.d.ts +3 -0
  132. package/sdk/sdk.d.ts.map +1 -1
  133. package/sdk/sdk.js +4 -0
  134. package/sdk/sdk.js.map +1 -1
  135. package/sdk/transcriptions.d.ts +14 -0
  136. package/sdk/transcriptions.d.ts.map +1 -0
  137. package/sdk/transcriptions.js +26 -0
  138. package/sdk/transcriptions.js.map +1 -0
  139. package/src/funcs/audioTranscriptionsComplete.ts +193 -0
  140. package/src/funcs/audioTranscriptionsStream.ts +207 -0
  141. package/src/funcs/batchJobsList.ts +1 -0
  142. package/src/lib/config.ts +2 -2
  143. package/src/models/components/audiochunk.ts +102 -0
  144. package/src/models/components/audiotranscriptionrequest.ts +133 -0
  145. package/src/models/components/audiotranscriptionrequeststream.ts +135 -0
  146. package/src/models/components/basemodelcard.ts +13 -12
  147. package/src/models/components/batchjobin.ts +10 -4
  148. package/src/models/components/batchjobout.ts +10 -4
  149. package/src/models/components/classifierftmodelout.ts +12 -0
  150. package/src/models/components/completionargs.ts +4 -4
  151. package/src/models/components/completionftmodelout.ts +12 -0
  152. package/src/models/components/contentchunk.ts +38 -2
  153. package/src/models/components/fileschema.ts +8 -0
  154. package/src/models/components/index.ts +13 -0
  155. package/src/models/components/retrievefileout.ts +8 -0
  156. package/src/models/components/thinkchunk.ts +162 -0
  157. package/src/models/components/timestampgranularity.ts +32 -0
  158. package/src/models/components/toolcall.ts +50 -0
  159. package/src/models/components/transcriptionresponse.ts +112 -0
  160. package/src/models/components/transcriptionsegmentchunk.ts +122 -0
  161. package/src/models/components/transcriptionstreamdone.ts +149 -0
  162. package/src/models/components/transcriptionstreamevents.ts +273 -0
  163. package/src/models/components/transcriptionstreameventtypes.ts +37 -0
  164. package/src/models/components/transcriptionstreamlanguage.ts +128 -0
  165. package/src/models/components/transcriptionstreamsegmentdelta.ts +133 -0
  166. package/src/models/components/transcriptionstreamtextdelta.ts +123 -0
  167. package/src/models/components/uploadfileout.ts +8 -0
  168. package/src/models/components/usageinfo.ts +37 -17
  169. package/src/models/operations/jobsapiroutesbatchgetbatchjobs.ts +6 -0
  170. package/src/sdk/audio.ts +13 -0
  171. package/src/sdk/sdk.ts +6 -0
  172. package/src/sdk/transcriptions.ts +40 -0
@@ -0,0 +1,138 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.TranscriptionStreamEvents$ = exports.TranscriptionStreamEvents$outboundSchema = exports.TranscriptionStreamEvents$inboundSchema = exports.TranscriptionStreamEventsData$ = exports.TranscriptionStreamEventsData$outboundSchema = exports.TranscriptionStreamEventsData$inboundSchema = void 0;
30
+ exports.transcriptionStreamEventsDataToJSON = transcriptionStreamEventsDataToJSON;
31
+ exports.transcriptionStreamEventsDataFromJSON = transcriptionStreamEventsDataFromJSON;
32
+ exports.transcriptionStreamEventsToJSON = transcriptionStreamEventsToJSON;
33
+ exports.transcriptionStreamEventsFromJSON = transcriptionStreamEventsFromJSON;
34
+ const z = __importStar(require("zod"));
35
+ const schemas_js_1 = require("../../lib/schemas.js");
36
+ const transcriptionstreamdone_js_1 = require("./transcriptionstreamdone.js");
37
+ const transcriptionstreameventtypes_js_1 = require("./transcriptionstreameventtypes.js");
38
+ const transcriptionstreamlanguage_js_1 = require("./transcriptionstreamlanguage.js");
39
+ const transcriptionstreamsegmentdelta_js_1 = require("./transcriptionstreamsegmentdelta.js");
40
+ const transcriptionstreamtextdelta_js_1 = require("./transcriptionstreamtextdelta.js");
41
+ /** @internal */
42
+ exports.TranscriptionStreamEventsData$inboundSchema = z.union([
43
+ transcriptionstreamlanguage_js_1.TranscriptionStreamLanguage$inboundSchema.and(z.object({ type: z.literal("transcription.language") }).transform((v) => ({
44
+ type: v.type,
45
+ }))),
46
+ transcriptionstreamtextdelta_js_1.TranscriptionStreamTextDelta$inboundSchema.and(z.object({ type: z.literal("transcription.text.delta") }).transform((v) => ({ type: v.type }))),
47
+ transcriptionstreamsegmentdelta_js_1.TranscriptionStreamSegmentDelta$inboundSchema.and(z.object({ type: z.literal("transcription.segment") }).transform((v) => ({
48
+ type: v.type,
49
+ }))),
50
+ transcriptionstreamdone_js_1.TranscriptionStreamDone$inboundSchema.and(z.object({ type: z.literal("transcription.done") }).transform((v) => ({
51
+ type: v.type,
52
+ }))),
53
+ ]);
54
+ /** @internal */
55
+ exports.TranscriptionStreamEventsData$outboundSchema = z.union([
56
+ transcriptionstreamlanguage_js_1.TranscriptionStreamLanguage$outboundSchema.and(z.object({ type: z.literal("transcription.language") }).transform((v) => ({
57
+ type: v.type,
58
+ }))),
59
+ transcriptionstreamtextdelta_js_1.TranscriptionStreamTextDelta$outboundSchema.and(z.object({ type: z.literal("transcription.text.delta") }).transform((v) => ({ type: v.type }))),
60
+ transcriptionstreamsegmentdelta_js_1.TranscriptionStreamSegmentDelta$outboundSchema.and(z.object({ type: z.literal("transcription.segment") }).transform((v) => ({
61
+ type: v.type,
62
+ }))),
63
+ transcriptionstreamdone_js_1.TranscriptionStreamDone$outboundSchema.and(z.object({ type: z.literal("transcription.done") }).transform((v) => ({
64
+ type: v.type,
65
+ }))),
66
+ ]);
67
+ /**
68
+ * @internal
69
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
70
+ */
71
+ var TranscriptionStreamEventsData$;
72
+ (function (TranscriptionStreamEventsData$) {
73
+ /** @deprecated use `TranscriptionStreamEventsData$inboundSchema` instead. */
74
+ TranscriptionStreamEventsData$.inboundSchema = exports.TranscriptionStreamEventsData$inboundSchema;
75
+ /** @deprecated use `TranscriptionStreamEventsData$outboundSchema` instead. */
76
+ TranscriptionStreamEventsData$.outboundSchema = exports.TranscriptionStreamEventsData$outboundSchema;
77
+ })(TranscriptionStreamEventsData$ || (exports.TranscriptionStreamEventsData$ = TranscriptionStreamEventsData$ = {}));
78
+ function transcriptionStreamEventsDataToJSON(transcriptionStreamEventsData) {
79
+ return JSON.stringify(exports.TranscriptionStreamEventsData$outboundSchema.parse(transcriptionStreamEventsData));
80
+ }
81
+ function transcriptionStreamEventsDataFromJSON(jsonString) {
82
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TranscriptionStreamEventsData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TranscriptionStreamEventsData' from JSON`);
83
+ }
84
+ /** @internal */
85
+ exports.TranscriptionStreamEvents$inboundSchema = z.object({
86
+ event: transcriptionstreameventtypes_js_1.TranscriptionStreamEventTypes$inboundSchema,
87
+ data: z.string().transform((v, ctx) => {
88
+ try {
89
+ return JSON.parse(v);
90
+ }
91
+ catch (err) {
92
+ ctx.addIssue({
93
+ code: z.ZodIssueCode.custom,
94
+ message: `malformed json: ${err}`,
95
+ });
96
+ return z.NEVER;
97
+ }
98
+ }).pipe(z.union([
99
+ transcriptionstreamlanguage_js_1.TranscriptionStreamLanguage$inboundSchema.and(z.object({ type: z.literal("transcription.language") }).transform((v) => ({ type: v.type }))),
100
+ transcriptionstreamtextdelta_js_1.TranscriptionStreamTextDelta$inboundSchema.and(z.object({ type: z.literal("transcription.text.delta") }).transform((v) => ({ type: v.type }))),
101
+ transcriptionstreamsegmentdelta_js_1.TranscriptionStreamSegmentDelta$inboundSchema.and(z.object({ type: z.literal("transcription.segment") }).transform((v) => ({ type: v.type }))),
102
+ transcriptionstreamdone_js_1.TranscriptionStreamDone$inboundSchema.and(z.object({ type: z.literal("transcription.done") }).transform((v) => ({
103
+ type: v.type,
104
+ }))),
105
+ ])),
106
+ });
107
+ /** @internal */
108
+ exports.TranscriptionStreamEvents$outboundSchema = z.object({
109
+ event: transcriptionstreameventtypes_js_1.TranscriptionStreamEventTypes$outboundSchema,
110
+ data: z.union([
111
+ transcriptionstreamlanguage_js_1.TranscriptionStreamLanguage$outboundSchema.and(z.object({ type: z.literal("transcription.language") }).transform((v) => ({ type: v.type }))),
112
+ transcriptionstreamtextdelta_js_1.TranscriptionStreamTextDelta$outboundSchema.and(z.object({ type: z.literal("transcription.text.delta") }).transform((v) => ({ type: v.type }))),
113
+ transcriptionstreamsegmentdelta_js_1.TranscriptionStreamSegmentDelta$outboundSchema.and(z.object({ type: z.literal("transcription.segment") }).transform((v) => ({
114
+ type: v.type,
115
+ }))),
116
+ transcriptionstreamdone_js_1.TranscriptionStreamDone$outboundSchema.and(z.object({ type: z.literal("transcription.done") }).transform((v) => ({
117
+ type: v.type,
118
+ }))),
119
+ ]),
120
+ });
121
+ /**
122
+ * @internal
123
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
124
+ */
125
+ var TranscriptionStreamEvents$;
126
+ (function (TranscriptionStreamEvents$) {
127
+ /** @deprecated use `TranscriptionStreamEvents$inboundSchema` instead. */
128
+ TranscriptionStreamEvents$.inboundSchema = exports.TranscriptionStreamEvents$inboundSchema;
129
+ /** @deprecated use `TranscriptionStreamEvents$outboundSchema` instead. */
130
+ TranscriptionStreamEvents$.outboundSchema = exports.TranscriptionStreamEvents$outboundSchema;
131
+ })(TranscriptionStreamEvents$ || (exports.TranscriptionStreamEvents$ = TranscriptionStreamEvents$ = {}));
132
+ function transcriptionStreamEventsToJSON(transcriptionStreamEvents) {
133
+ return JSON.stringify(exports.TranscriptionStreamEvents$outboundSchema.parse(transcriptionStreamEvents));
134
+ }
135
+ function transcriptionStreamEventsFromJSON(jsonString) {
136
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TranscriptionStreamEvents$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TranscriptionStreamEvents' from JSON`);
137
+ }
138
+ //# sourceMappingURL=transcriptionstreamevents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transcriptionstreamevents.js","sourceRoot":"","sources":["../../src/models/components/transcriptionstreamevents.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAmIH,kFAQC;AAED,sFAQC;AAyGD,0EAMC;AAED,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AAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YACvE,IAAI,EAAE,CAAC,CAAC,IAAI;SACb,CAAC,CAAC,CACJ;QACD,mEAAsC,CAAC,GAAG,CACxC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YACpE,IAAI,EAAE,CAAC,CAAC,IAAI;SACb,CAAC,CAAC,CACJ;KACF,CAAC;CACH,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,0BAA0B,CAO1C;AAPD,WAAiB,0BAA0B;IACzC,yEAAyE;IAC5D,wCAAa,GAAG,+CAAuC,CAAC;IACrE,0EAA0E;IAC7D,yCAAc,GAAG,gDAAwC,CAAC;AAGzE,CAAC,EAPgB,0BAA0B,0CAA1B,0BAA0B,QAO1C;AAED,SAAgB,+BAA+B,CAC7C,yBAAoD;IAEpD,OAAO,IAAI,CAAC,SAAS,CACnB,gDAAwC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAC1E,CAAC;AACJ,CAAC;AAED,SAAgB,iCAAiC,CAC/C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,+CAAuC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnE,uDAAuD,CACxD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,34 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ export declare const TranscriptionStreamEventTypes: {
4
+ readonly TranscriptionLanguage: "transcription.language";
5
+ readonly TranscriptionSegment: "transcription.segment";
6
+ readonly TranscriptionTextDelta: "transcription.text.delta";
7
+ readonly TranscriptionDone: "transcription.done";
8
+ };
9
+ export type TranscriptionStreamEventTypes = ClosedEnum<typeof TranscriptionStreamEventTypes>;
10
+ /** @internal */
11
+ export declare const TranscriptionStreamEventTypes$inboundSchema: z.ZodNativeEnum<typeof TranscriptionStreamEventTypes>;
12
+ /** @internal */
13
+ export declare const TranscriptionStreamEventTypes$outboundSchema: z.ZodNativeEnum<typeof TranscriptionStreamEventTypes>;
14
+ /**
15
+ * @internal
16
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
17
+ */
18
+ export declare namespace TranscriptionStreamEventTypes$ {
19
+ /** @deprecated use `TranscriptionStreamEventTypes$inboundSchema` instead. */
20
+ const inboundSchema: z.ZodNativeEnum<{
21
+ readonly TranscriptionLanguage: "transcription.language";
22
+ readonly TranscriptionSegment: "transcription.segment";
23
+ readonly TranscriptionTextDelta: "transcription.text.delta";
24
+ readonly TranscriptionDone: "transcription.done";
25
+ }>;
26
+ /** @deprecated use `TranscriptionStreamEventTypes$outboundSchema` instead. */
27
+ const outboundSchema: z.ZodNativeEnum<{
28
+ readonly TranscriptionLanguage: "transcription.language";
29
+ readonly TranscriptionSegment: "transcription.segment";
30
+ readonly TranscriptionTextDelta: "transcription.text.delta";
31
+ readonly TranscriptionDone: "transcription.done";
32
+ }>;
33
+ }
34
+ //# sourceMappingURL=transcriptionstreameventtypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transcriptionstreameventtypes.d.ts","sourceRoot":"","sources":["../../src/models/components/transcriptionstreameventtypes.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,6BAA6B;;;;;CAKhC,CAAC;AACX,MAAM,MAAM,6BAA6B,GAAG,UAAU,CACpD,OAAO,6BAA6B,CACrC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,aAAa,CACvE,OAAO,6BAA6B,CACS,CAAC;AAEhD,gBAAgB;AAChB,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,aAAa,CACxE,OAAO,6BAA6B,CACS,CAAC;AAEhD;;;GAGG;AACH,yBAAiB,8BAA8B,CAAC;IAC9C,6EAA6E;IACtE,MAAM,aAAa;;;;;MAA8C,CAAC;IACzE,8EAA8E;IACvE,MAAM,cAAc;;;;;MAA+C,CAAC;CAC5E"}
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.TranscriptionStreamEventTypes$ = exports.TranscriptionStreamEventTypes$outboundSchema = exports.TranscriptionStreamEventTypes$inboundSchema = exports.TranscriptionStreamEventTypes = void 0;
30
+ const z = __importStar(require("zod"));
31
+ exports.TranscriptionStreamEventTypes = {
32
+ TranscriptionLanguage: "transcription.language",
33
+ TranscriptionSegment: "transcription.segment",
34
+ TranscriptionTextDelta: "transcription.text.delta",
35
+ TranscriptionDone: "transcription.done",
36
+ };
37
+ /** @internal */
38
+ exports.TranscriptionStreamEventTypes$inboundSchema = z.nativeEnum(exports.TranscriptionStreamEventTypes);
39
+ /** @internal */
40
+ exports.TranscriptionStreamEventTypes$outboundSchema = exports.TranscriptionStreamEventTypes$inboundSchema;
41
+ /**
42
+ * @internal
43
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
44
+ */
45
+ var TranscriptionStreamEventTypes$;
46
+ (function (TranscriptionStreamEventTypes$) {
47
+ /** @deprecated use `TranscriptionStreamEventTypes$inboundSchema` instead. */
48
+ TranscriptionStreamEventTypes$.inboundSchema = exports.TranscriptionStreamEventTypes$inboundSchema;
49
+ /** @deprecated use `TranscriptionStreamEventTypes$outboundSchema` instead. */
50
+ TranscriptionStreamEventTypes$.outboundSchema = exports.TranscriptionStreamEventTypes$outboundSchema;
51
+ })(TranscriptionStreamEventTypes$ || (exports.TranscriptionStreamEventTypes$ = TranscriptionStreamEventTypes$ = {}));
52
+ //# sourceMappingURL=transcriptionstreameventtypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transcriptionstreameventtypes.js","sourceRoot":"","sources":["../../src/models/components/transcriptionstreameventtypes.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,6BAA6B,GAAG;IAC3C,qBAAqB,EAAE,wBAAwB;IAC/C,oBAAoB,EAAE,uBAAuB;IAC7C,sBAAsB,EAAE,0BAA0B;IAClD,iBAAiB,EAAE,oBAAoB;CAC/B,CAAC;AAKX,gBAAgB;AACH,QAAA,2CAA2C,GAEpD,CAAC,CAAC,UAAU,CAAC,qCAA6B,CAAC,CAAC;AAEhD,gBAAgB;AACH,QAAA,4CAA4C,GAErD,mDAA2C,CAAC;AAEhD;;;GAGG;AACH,IAAiB,8BAA8B,CAK9C;AALD,WAAiB,8BAA8B;IAC7C,6EAA6E;IAChE,4CAAa,GAAG,mDAA2C,CAAC;IACzE,8EAA8E;IACjE,6CAAc,GAAG,oDAA4C,CAAC;AAC7E,CAAC,EALgB,8BAA8B,8CAA9B,8BAA8B,QAK9C"}
@@ -0,0 +1,58 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ export declare const TranscriptionStreamLanguageType: {
6
+ readonly TranscriptionLanguage: "transcription.language";
7
+ };
8
+ export type TranscriptionStreamLanguageType = ClosedEnum<typeof TranscriptionStreamLanguageType>;
9
+ export type TranscriptionStreamLanguage = {
10
+ type?: TranscriptionStreamLanguageType | undefined;
11
+ audioLanguage: string;
12
+ additionalProperties?: {
13
+ [k: string]: any;
14
+ };
15
+ };
16
+ /** @internal */
17
+ export declare const TranscriptionStreamLanguageType$inboundSchema: z.ZodNativeEnum<typeof TranscriptionStreamLanguageType>;
18
+ /** @internal */
19
+ export declare const TranscriptionStreamLanguageType$outboundSchema: z.ZodNativeEnum<typeof TranscriptionStreamLanguageType>;
20
+ /**
21
+ * @internal
22
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
23
+ */
24
+ export declare namespace TranscriptionStreamLanguageType$ {
25
+ /** @deprecated use `TranscriptionStreamLanguageType$inboundSchema` instead. */
26
+ const inboundSchema: z.ZodNativeEnum<{
27
+ readonly TranscriptionLanguage: "transcription.language";
28
+ }>;
29
+ /** @deprecated use `TranscriptionStreamLanguageType$outboundSchema` instead. */
30
+ const outboundSchema: z.ZodNativeEnum<{
31
+ readonly TranscriptionLanguage: "transcription.language";
32
+ }>;
33
+ }
34
+ /** @internal */
35
+ export declare const TranscriptionStreamLanguage$inboundSchema: z.ZodType<TranscriptionStreamLanguage, z.ZodTypeDef, unknown>;
36
+ /** @internal */
37
+ export type TranscriptionStreamLanguage$Outbound = {
38
+ type: string;
39
+ audio_language: string;
40
+ [additionalProperties: string]: unknown;
41
+ };
42
+ /** @internal */
43
+ export declare const TranscriptionStreamLanguage$outboundSchema: z.ZodType<TranscriptionStreamLanguage$Outbound, z.ZodTypeDef, TranscriptionStreamLanguage>;
44
+ /**
45
+ * @internal
46
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
47
+ */
48
+ export declare namespace TranscriptionStreamLanguage$ {
49
+ /** @deprecated use `TranscriptionStreamLanguage$inboundSchema` instead. */
50
+ const inboundSchema: z.ZodType<TranscriptionStreamLanguage, z.ZodTypeDef, unknown>;
51
+ /** @deprecated use `TranscriptionStreamLanguage$outboundSchema` instead. */
52
+ const outboundSchema: z.ZodType<TranscriptionStreamLanguage$Outbound, z.ZodTypeDef, TranscriptionStreamLanguage>;
53
+ /** @deprecated use `TranscriptionStreamLanguage$Outbound` instead. */
54
+ type Outbound = TranscriptionStreamLanguage$Outbound;
55
+ }
56
+ export declare function transcriptionStreamLanguageToJSON(transcriptionStreamLanguage: TranscriptionStreamLanguage): string;
57
+ export declare function transcriptionStreamLanguageFromJSON(jsonString: string): SafeParseResult<TranscriptionStreamLanguage, SDKValidationError>;
58
+ //# sourceMappingURL=transcriptionstreamlanguage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transcriptionstreamlanguage.d.ts","sourceRoot":"","sources":["../../src/models/components/transcriptionstreamlanguage.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAMzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,+BAA+B;;CAElC,CAAC;AACX,MAAM,MAAM,+BAA+B,GAAG,UAAU,CACtD,OAAO,+BAA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AAE,2BAA2B,GACvD,MAAM,CAMR;AAED,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,CAMlE"}
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.TranscriptionStreamLanguage$ = exports.TranscriptionStreamLanguage$outboundSchema = exports.TranscriptionStreamLanguage$inboundSchema = exports.TranscriptionStreamLanguageType$ = exports.TranscriptionStreamLanguageType$outboundSchema = exports.TranscriptionStreamLanguageType$inboundSchema = exports.TranscriptionStreamLanguageType = void 0;
30
+ exports.transcriptionStreamLanguageToJSON = transcriptionStreamLanguageToJSON;
31
+ exports.transcriptionStreamLanguageFromJSON = transcriptionStreamLanguageFromJSON;
32
+ const z = __importStar(require("zod"));
33
+ const primitives_js_1 = require("../../lib/primitives.js");
34
+ const schemas_js_1 = require("../../lib/schemas.js");
35
+ exports.TranscriptionStreamLanguageType = {
36
+ TranscriptionLanguage: "transcription.language",
37
+ };
38
+ /** @internal */
39
+ exports.TranscriptionStreamLanguageType$inboundSchema = z.nativeEnum(exports.TranscriptionStreamLanguageType);
40
+ /** @internal */
41
+ exports.TranscriptionStreamLanguageType$outboundSchema = exports.TranscriptionStreamLanguageType$inboundSchema;
42
+ /**
43
+ * @internal
44
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
45
+ */
46
+ var TranscriptionStreamLanguageType$;
47
+ (function (TranscriptionStreamLanguageType$) {
48
+ /** @deprecated use `TranscriptionStreamLanguageType$inboundSchema` instead. */
49
+ TranscriptionStreamLanguageType$.inboundSchema = exports.TranscriptionStreamLanguageType$inboundSchema;
50
+ /** @deprecated use `TranscriptionStreamLanguageType$outboundSchema` instead. */
51
+ TranscriptionStreamLanguageType$.outboundSchema = exports.TranscriptionStreamLanguageType$outboundSchema;
52
+ })(TranscriptionStreamLanguageType$ || (exports.TranscriptionStreamLanguageType$ = TranscriptionStreamLanguageType$ = {}));
53
+ /** @internal */
54
+ exports.TranscriptionStreamLanguage$inboundSchema = (0, schemas_js_1.collectExtraKeys)(z.object({
55
+ type: exports.TranscriptionStreamLanguageType$inboundSchema.default("transcription.language"),
56
+ audio_language: z.string(),
57
+ }).catchall(z.any()), "additionalProperties", true).transform((v) => {
58
+ return (0, primitives_js_1.remap)(v, {
59
+ "audio_language": "audioLanguage",
60
+ });
61
+ });
62
+ /** @internal */
63
+ exports.TranscriptionStreamLanguage$outboundSchema = z.object({
64
+ type: exports.TranscriptionStreamLanguageType$outboundSchema.default("transcription.language"),
65
+ audioLanguage: z.string(),
66
+ additionalProperties: z.record(z.any()),
67
+ }).transform((v) => {
68
+ return {
69
+ ...v.additionalProperties,
70
+ ...(0, primitives_js_1.remap)(v, {
71
+ audioLanguage: "audio_language",
72
+ additionalProperties: null,
73
+ }),
74
+ };
75
+ });
76
+ /**
77
+ * @internal
78
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
79
+ */
80
+ var TranscriptionStreamLanguage$;
81
+ (function (TranscriptionStreamLanguage$) {
82
+ /** @deprecated use `TranscriptionStreamLanguage$inboundSchema` instead. */
83
+ TranscriptionStreamLanguage$.inboundSchema = exports.TranscriptionStreamLanguage$inboundSchema;
84
+ /** @deprecated use `TranscriptionStreamLanguage$outboundSchema` instead. */
85
+ TranscriptionStreamLanguage$.outboundSchema = exports.TranscriptionStreamLanguage$outboundSchema;
86
+ })(TranscriptionStreamLanguage$ || (exports.TranscriptionStreamLanguage$ = TranscriptionStreamLanguage$ = {}));
87
+ function transcriptionStreamLanguageToJSON(transcriptionStreamLanguage) {
88
+ return JSON.stringify(exports.TranscriptionStreamLanguage$outboundSchema.parse(transcriptionStreamLanguage));
89
+ }
90
+ function transcriptionStreamLanguageFromJSON(jsonString) {
91
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TranscriptionStreamLanguage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TranscriptionStreamLanguage' from JSON`);
92
+ }
93
+ //# sourceMappingURL=transcriptionstreamlanguage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transcriptionstreamlanguage.js","sourceRoot":"","sources":["../../src/models/components/transcriptionstreamlanguage.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AA2GH,8EAQC;AAED,kFAQC;AA3HD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAG8B;AAKjB,QAAA,+BAA+B,GAAG;IAC7C,qBAAqB,EAAE,wBAAwB;CACvC,CAAC;AAWX,gBAAgB;AACH,QAAA,6CAA6C,GAEtD,CAAC,CAAC,UAAU,CAAC,uCAA+B,CAAC,CAAC;AAElD,gBAAgB;AACH,QAAA,8CAA8C,GAEvD,qDAA6C,CAAC;AAElD;;;GAGG;AACH,IAAiB,gCAAgC,CAKhD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A0C,CAAC;AAG3E,CAAC,EAPgB,4BAA4B,4CAA5B,4BAA4B,QAO5C;AAED,SAAgB,iCAAiC,CAC/C,2BAAwD;IAExD,OAAO,IAAI,CAAC,SAAS,CACnB,kDAA0C,CAAC,KAAK,CAC9C,2BAA2B,CAC5B,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,mCAAmC,CACjD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iDAAyC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrE,yDAAyD,CAC1D,CAAC;AACJ,CAAC"}
@@ -0,0 +1,62 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ export declare const TranscriptionStreamSegmentDeltaType: {
6
+ readonly TranscriptionSegment: "transcription.segment";
7
+ };
8
+ export type TranscriptionStreamSegmentDeltaType = ClosedEnum<typeof TranscriptionStreamSegmentDeltaType>;
9
+ export type TranscriptionStreamSegmentDelta = {
10
+ text: string;
11
+ start: number;
12
+ end: number;
13
+ type?: TranscriptionStreamSegmentDeltaType | undefined;
14
+ additionalProperties?: {
15
+ [k: string]: any;
16
+ };
17
+ };
18
+ /** @internal */
19
+ export declare const TranscriptionStreamSegmentDeltaType$inboundSchema: z.ZodNativeEnum<typeof TranscriptionStreamSegmentDeltaType>;
20
+ /** @internal */
21
+ export declare const TranscriptionStreamSegmentDeltaType$outboundSchema: z.ZodNativeEnum<typeof TranscriptionStreamSegmentDeltaType>;
22
+ /**
23
+ * @internal
24
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
25
+ */
26
+ export declare namespace TranscriptionStreamSegmentDeltaType$ {
27
+ /** @deprecated use `TranscriptionStreamSegmentDeltaType$inboundSchema` instead. */
28
+ const inboundSchema: z.ZodNativeEnum<{
29
+ readonly TranscriptionSegment: "transcription.segment";
30
+ }>;
31
+ /** @deprecated use `TranscriptionStreamSegmentDeltaType$outboundSchema` instead. */
32
+ const outboundSchema: z.ZodNativeEnum<{
33
+ readonly TranscriptionSegment: "transcription.segment";
34
+ }>;
35
+ }
36
+ /** @internal */
37
+ export declare const TranscriptionStreamSegmentDelta$inboundSchema: z.ZodType<TranscriptionStreamSegmentDelta, z.ZodTypeDef, unknown>;
38
+ /** @internal */
39
+ export type TranscriptionStreamSegmentDelta$Outbound = {
40
+ text: string;
41
+ start: number;
42
+ end: number;
43
+ type: string;
44
+ [additionalProperties: string]: unknown;
45
+ };
46
+ /** @internal */
47
+ export declare const TranscriptionStreamSegmentDelta$outboundSchema: z.ZodType<TranscriptionStreamSegmentDelta$Outbound, z.ZodTypeDef, TranscriptionStreamSegmentDelta>;
48
+ /**
49
+ * @internal
50
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
51
+ */
52
+ export declare namespace TranscriptionStreamSegmentDelta$ {
53
+ /** @deprecated use `TranscriptionStreamSegmentDelta$inboundSchema` instead. */
54
+ const inboundSchema: z.ZodType<TranscriptionStreamSegmentDelta, z.ZodTypeDef, unknown>;
55
+ /** @deprecated use `TranscriptionStreamSegmentDelta$outboundSchema` instead. */
56
+ const outboundSchema: z.ZodType<TranscriptionStreamSegmentDelta$Outbound, z.ZodTypeDef, TranscriptionStreamSegmentDelta>;
57
+ /** @deprecated use `TranscriptionStreamSegmentDelta$Outbound` instead. */
58
+ type Outbound = TranscriptionStreamSegmentDelta$Outbound;
59
+ }
60
+ export declare function transcriptionStreamSegmentDeltaToJSON(transcriptionStreamSegmentDelta: TranscriptionStreamSegmentDelta): string;
61
+ export declare function transcriptionStreamSegmentDeltaFromJSON(jsonString: string): SafeParseResult<TranscriptionStreamSegmentDelta, SDKValidationError>;
62
+ //# sourceMappingURL=transcriptionstreamsegmentdelta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transcriptionstreamsegmentdelta.d.ts","sourceRoot":"","sources":["../../src/models/components/transcriptionstreamsegmentdelta.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAMzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,mCAAmC;;CAEtC,CAAC;AACX,MAAM,MAAM,mCAAmC,GAAG,UAAU,CAC1D,OAAO,mCAAmC,CAC3C,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,mCAAmC,GAAG,SAAS,CAAC;IACvD,oBAAoB,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CAC7C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iDAAiD,EAAE,CAAC,CAAC,aAAa,CAC7E,OAAO,mCAAmC,CACS,CAAC;AAEtD,gBAAgB;AAChB,eAAO,MAAM,kDAAkD,EAC7D,CAAC,CAAC,aAAa,CAAC,OAAO,mCAAmC,CACP,CAAC;AAEtD;;;GAGG;AACH,yBAAiB,oCAAoC,CAAC;IACpD,mFAAmF;IAC5E,MAAM,aAAa;;MACyB,CAAC;IACpD,oFAAoF;IAC7E,MAAM,cAAc;;MACyB,CAAC;CACtD;AAED,gBAAgB;AAChB,eAAO,MAAM,6CAA6C,EAAE,CAAC,CAAC,OAAO,CACnE,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,OAAO,CAYR,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,wCAAwC,GAAG;IACrD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,oBAAoB,EAAE,MAAM,GAAG,OAAO,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,wCAAwC,EACxC,CAAC,CAAC,UAAU,EACZ,+BAA+B,CAgB/B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,gCAAgC,CAAC;IAChD,+EAA+E;IACxE,MAAM,aAAa,mEAAgD,CAAC;IAC3E,gFAAgF;IACzE,MAAM,cAAc,oGAAiD,CAAC;IAC7E,0EAA0E;IAC1E,KAAY,QAAQ,GAAG,wCAAwC,CAAC;CACjE;AAED,wBAAgB,qCAAqC,CACnD,+BAA+B,EAAE,+BAA+B,GAC/D,MAAM,CAMR;AAED,wBAAgB,uCAAuC,CACrD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,+BAA+B,EAAE,kBAAkB,CAAC,CAMtE"}
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.TranscriptionStreamSegmentDelta$ = exports.TranscriptionStreamSegmentDelta$outboundSchema = exports.TranscriptionStreamSegmentDelta$inboundSchema = exports.TranscriptionStreamSegmentDeltaType$ = exports.TranscriptionStreamSegmentDeltaType$outboundSchema = exports.TranscriptionStreamSegmentDeltaType$inboundSchema = exports.TranscriptionStreamSegmentDeltaType = void 0;
30
+ exports.transcriptionStreamSegmentDeltaToJSON = transcriptionStreamSegmentDeltaToJSON;
31
+ exports.transcriptionStreamSegmentDeltaFromJSON = transcriptionStreamSegmentDeltaFromJSON;
32
+ const z = __importStar(require("zod"));
33
+ const primitives_js_1 = require("../../lib/primitives.js");
34
+ const schemas_js_1 = require("../../lib/schemas.js");
35
+ exports.TranscriptionStreamSegmentDeltaType = {
36
+ TranscriptionSegment: "transcription.segment",
37
+ };
38
+ /** @internal */
39
+ exports.TranscriptionStreamSegmentDeltaType$inboundSchema = z.nativeEnum(exports.TranscriptionStreamSegmentDeltaType);
40
+ /** @internal */
41
+ exports.TranscriptionStreamSegmentDeltaType$outboundSchema = exports.TranscriptionStreamSegmentDeltaType$inboundSchema;
42
+ /**
43
+ * @internal
44
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
45
+ */
46
+ var TranscriptionStreamSegmentDeltaType$;
47
+ (function (TranscriptionStreamSegmentDeltaType$) {
48
+ /** @deprecated use `TranscriptionStreamSegmentDeltaType$inboundSchema` instead. */
49
+ TranscriptionStreamSegmentDeltaType$.inboundSchema = exports.TranscriptionStreamSegmentDeltaType$inboundSchema;
50
+ /** @deprecated use `TranscriptionStreamSegmentDeltaType$outboundSchema` instead. */
51
+ TranscriptionStreamSegmentDeltaType$.outboundSchema = exports.TranscriptionStreamSegmentDeltaType$outboundSchema;
52
+ })(TranscriptionStreamSegmentDeltaType$ || (exports.TranscriptionStreamSegmentDeltaType$ = TranscriptionStreamSegmentDeltaType$ = {}));
53
+ /** @internal */
54
+ exports.TranscriptionStreamSegmentDelta$inboundSchema = (0, schemas_js_1.collectExtraKeys)(z.object({
55
+ text: z.string(),
56
+ start: z.number(),
57
+ end: z.number(),
58
+ type: exports.TranscriptionStreamSegmentDeltaType$inboundSchema.default("transcription.segment"),
59
+ }).catchall(z.any()), "additionalProperties", true);
60
+ /** @internal */
61
+ exports.TranscriptionStreamSegmentDelta$outboundSchema = z.object({
62
+ text: z.string(),
63
+ start: z.number(),
64
+ end: z.number(),
65
+ type: exports.TranscriptionStreamSegmentDeltaType$outboundSchema.default("transcription.segment"),
66
+ additionalProperties: z.record(z.any()),
67
+ }).transform((v) => {
68
+ return {
69
+ ...v.additionalProperties,
70
+ ...(0, primitives_js_1.remap)(v, {
71
+ additionalProperties: null,
72
+ }),
73
+ };
74
+ });
75
+ /**
76
+ * @internal
77
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
78
+ */
79
+ var TranscriptionStreamSegmentDelta$;
80
+ (function (TranscriptionStreamSegmentDelta$) {
81
+ /** @deprecated use `TranscriptionStreamSegmentDelta$inboundSchema` instead. */
82
+ TranscriptionStreamSegmentDelta$.inboundSchema = exports.TranscriptionStreamSegmentDelta$inboundSchema;
83
+ /** @deprecated use `TranscriptionStreamSegmentDelta$outboundSchema` instead. */
84
+ TranscriptionStreamSegmentDelta$.outboundSchema = exports.TranscriptionStreamSegmentDelta$outboundSchema;
85
+ })(TranscriptionStreamSegmentDelta$ || (exports.TranscriptionStreamSegmentDelta$ = TranscriptionStreamSegmentDelta$ = {}));
86
+ function transcriptionStreamSegmentDeltaToJSON(transcriptionStreamSegmentDelta) {
87
+ return JSON.stringify(exports.TranscriptionStreamSegmentDelta$outboundSchema.parse(transcriptionStreamSegmentDelta));
88
+ }
89
+ function transcriptionStreamSegmentDeltaFromJSON(jsonString) {
90
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TranscriptionStreamSegmentDelta$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TranscriptionStreamSegmentDelta' from JSON`);
91
+ }
92
+ //# sourceMappingURL=transcriptionstreamsegmentdelta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transcriptionstreamsegmentdelta.js","sourceRoot":"","sources":["../../src/models/components/transcriptionstreamsegmentdelta.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAgHH,sFAQC;AAED,0FAQC;AAhID,uCAAyB;AACzB,2DAA0D;AAC1D,qDAG8B;AAKjB,QAAA,mCAAmC,GAAG;IACjD,oBAAoB,EAAE,uBAAuB;CACrC,CAAC;AAaX,gBAAgB;AACH,QAAA,iDAAiD,GAE1D,CAAC,CAAC,UAAU,CAAC,2CAAmC,CAAC,CAAC;AAEtD,gBAAgB;AACH,QAAA,kDAAkD,GAE3D,yDAAiD,CAAC;AAEtD;;;GAGG;AACH,IAAiB,oCAAoC,CAOpD;AAPD,WAAiB,oCAAoC;IACnD,mFAAmF;IACtE,kDAAa,GACxB,yDAAiD,CAAC;IACpD,oFAAoF;IACvE,mDAAc,GACzB,0DAAkD,CAAC;AACvD,CAAC,EAPgB,oCAAoC,oDAApC,oCAAoC,QAOpD;AAED,gBAAgB;AACH,QAAA,6CAA6C,GAItD,IAAA,6BAAiB,EACnB,CAAC,CAAC,MAAM,CAAC;IACP,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,yDAAiD,CAAC,OAAO,CAC7D,uBAAuB,CACxB;CACF,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,EACpB,sBAAsB,EACtB,IAAI,CACL,CAAC;AAWF,gBAAgB;AACH,QAAA,8CAA8C,GAIvD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,0DAAkD,CAAC,OAAO,CAC9D,uBAAuB,CACxB;IACD,oBAAoB,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;CACxC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO;QACL,GAAG,CAAC,CAAC,oBAAoB;QACzB,GAAG,IAAA,qBAAM,EAAC,CAAC,EAAE;YACX,oBAAoB,EAAE,IAAI;SAC3B,CAAC;KACH,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,gCAAgC,CAOhD;AAPD,WAAiB,gCAAgC;IAC/C,+EAA+E;IAClE,8CAAa,GAAG,qDAA6C,CAAC;IAC3E,gFAAgF;IACnE,+CAAc,GAAG,sDAA8C,CAAC;AAG/E,CAAC,EAPgB,gCAAgC,gDAAhC,gCAAgC,QAOhD;AAED,SAAgB,qCAAqC,CACnD,+BAAgE;IAEhE,OAAO,IAAI,CAAC,SAAS,CACnB,sDAA8C,CAAC,KAAK,CAClD,+BAA+B,CAChC,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,uCAAuC,CACrD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qDAA6C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzE,6DAA6D,CAC9D,CAAC;AACJ,CAAC"}
@@ -0,0 +1,58 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ export declare const TranscriptionStreamTextDeltaType: {
6
+ readonly TranscriptionTextDelta: "transcription.text.delta";
7
+ };
8
+ export type TranscriptionStreamTextDeltaType = ClosedEnum<typeof TranscriptionStreamTextDeltaType>;
9
+ export type TranscriptionStreamTextDelta = {
10
+ text: string;
11
+ type?: TranscriptionStreamTextDeltaType | undefined;
12
+ additionalProperties?: {
13
+ [k: string]: any;
14
+ };
15
+ };
16
+ /** @internal */
17
+ export declare const TranscriptionStreamTextDeltaType$inboundSchema: z.ZodNativeEnum<typeof TranscriptionStreamTextDeltaType>;
18
+ /** @internal */
19
+ export declare const TranscriptionStreamTextDeltaType$outboundSchema: z.ZodNativeEnum<typeof TranscriptionStreamTextDeltaType>;
20
+ /**
21
+ * @internal
22
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
23
+ */
24
+ export declare namespace TranscriptionStreamTextDeltaType$ {
25
+ /** @deprecated use `TranscriptionStreamTextDeltaType$inboundSchema` instead. */
26
+ const inboundSchema: z.ZodNativeEnum<{
27
+ readonly TranscriptionTextDelta: "transcription.text.delta";
28
+ }>;
29
+ /** @deprecated use `TranscriptionStreamTextDeltaType$outboundSchema` instead. */
30
+ const outboundSchema: z.ZodNativeEnum<{
31
+ readonly TranscriptionTextDelta: "transcription.text.delta";
32
+ }>;
33
+ }
34
+ /** @internal */
35
+ export declare const TranscriptionStreamTextDelta$inboundSchema: z.ZodType<TranscriptionStreamTextDelta, z.ZodTypeDef, unknown>;
36
+ /** @internal */
37
+ export type TranscriptionStreamTextDelta$Outbound = {
38
+ text: string;
39
+ type: string;
40
+ [additionalProperties: string]: unknown;
41
+ };
42
+ /** @internal */
43
+ export declare const TranscriptionStreamTextDelta$outboundSchema: z.ZodType<TranscriptionStreamTextDelta$Outbound, z.ZodTypeDef, TranscriptionStreamTextDelta>;
44
+ /**
45
+ * @internal
46
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
47
+ */
48
+ export declare namespace TranscriptionStreamTextDelta$ {
49
+ /** @deprecated use `TranscriptionStreamTextDelta$inboundSchema` instead. */
50
+ const inboundSchema: z.ZodType<TranscriptionStreamTextDelta, z.ZodTypeDef, unknown>;
51
+ /** @deprecated use `TranscriptionStreamTextDelta$outboundSchema` instead. */
52
+ const outboundSchema: z.ZodType<TranscriptionStreamTextDelta$Outbound, z.ZodTypeDef, TranscriptionStreamTextDelta>;
53
+ /** @deprecated use `TranscriptionStreamTextDelta$Outbound` instead. */
54
+ type Outbound = TranscriptionStreamTextDelta$Outbound;
55
+ }
56
+ export declare function transcriptionStreamTextDeltaToJSON(transcriptionStreamTextDelta: TranscriptionStreamTextDelta): string;
57
+ export declare function transcriptionStreamTextDeltaFromJSON(jsonString: string): SafeParseResult<TranscriptionStreamTextDelta, SDKValidationError>;
58
+ //# sourceMappingURL=transcriptionstreamtextdelta.d.ts.map