@supertone/supertone 0.1.0 → 0.1.2

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 (73) hide show
  1. package/FUNCTIONS.md +2 -2
  2. package/README.md +108 -44
  3. package/custom_test/realtime_tts_player.ts +64 -3
  4. package/custom_test/test_real_api.ts +1040 -105
  5. package/dist/commonjs/lib/config.d.ts +2 -2
  6. package/dist/commonjs/lib/config.d.ts.map +1 -1
  7. package/dist/commonjs/lib/config.js +2 -2
  8. package/dist/commonjs/lib/config.js.map +1 -1
  9. package/dist/commonjs/lib/custom_utils/text_utils.d.ts +8 -1
  10. package/dist/commonjs/lib/custom_utils/text_utils.d.ts.map +1 -1
  11. package/dist/commonjs/lib/custom_utils/text_utils.js +108 -7
  12. package/dist/commonjs/lib/custom_utils/text_utils.js.map +1 -1
  13. package/dist/commonjs/models/apiconverttexttospeechusingcharacterrequest.d.ts +92 -1
  14. package/dist/commonjs/models/apiconverttexttospeechusingcharacterrequest.d.ts.map +1 -1
  15. package/dist/commonjs/models/apiconverttexttospeechusingcharacterrequest.js +48 -3
  16. package/dist/commonjs/models/apiconverttexttospeechusingcharacterrequest.js.map +1 -1
  17. package/dist/commonjs/models/predictttsdurationusingcharacterrequest.d.ts +92 -1
  18. package/dist/commonjs/models/predictttsdurationusingcharacterrequest.d.ts.map +1 -1
  19. package/dist/commonjs/models/predictttsdurationusingcharacterrequest.js +46 -3
  20. package/dist/commonjs/models/predictttsdurationusingcharacterrequest.js.map +1 -1
  21. package/dist/commonjs/sdk/texttospeech.d.ts.map +1 -1
  22. package/dist/commonjs/sdk/texttospeech.js +12 -9
  23. package/dist/commonjs/sdk/texttospeech.js.map +1 -1
  24. package/dist/esm/lib/config.d.ts +2 -2
  25. package/dist/esm/lib/config.d.ts.map +1 -1
  26. package/dist/esm/lib/config.js +2 -2
  27. package/dist/esm/lib/config.js.map +1 -1
  28. package/dist/esm/lib/custom_utils/text_utils.d.ts +8 -1
  29. package/dist/esm/lib/custom_utils/text_utils.d.ts.map +1 -1
  30. package/dist/esm/lib/custom_utils/text_utils.js +108 -7
  31. package/dist/esm/lib/custom_utils/text_utils.js.map +1 -1
  32. package/dist/esm/models/apiconverttexttospeechusingcharacterrequest.d.ts +92 -1
  33. package/dist/esm/models/apiconverttexttospeechusingcharacterrequest.d.ts.map +1 -1
  34. package/dist/esm/models/apiconverttexttospeechusingcharacterrequest.js +47 -2
  35. package/dist/esm/models/apiconverttexttospeechusingcharacterrequest.js.map +1 -1
  36. package/dist/esm/models/predictttsdurationusingcharacterrequest.d.ts +92 -1
  37. package/dist/esm/models/predictttsdurationusingcharacterrequest.d.ts.map +1 -1
  38. package/dist/esm/models/predictttsdurationusingcharacterrequest.js +45 -2
  39. package/dist/esm/models/predictttsdurationusingcharacterrequest.js.map +1 -1
  40. package/dist/esm/sdk/texttospeech.d.ts.map +1 -1
  41. package/dist/esm/sdk/texttospeech.js +12 -9
  42. package/dist/esm/sdk/texttospeech.js.map +1 -1
  43. package/examples/custom_voices/create_cloned_voice.ts +4 -3
  44. package/examples/custom_voices/delete_custom_voice.ts +2 -7
  45. package/examples/custom_voices/edit_custom_voice.ts +2 -6
  46. package/examples/custom_voices/get_custom_voice.ts +2 -7
  47. package/examples/custom_voices/list_custom_voices.ts +2 -7
  48. package/examples/custom_voices/search_custom_voices.ts +2 -6
  49. package/examples/package.json +2 -2
  50. package/examples/textToSpeechCreateSpeech.example.ts +2 -2
  51. package/examples/text_to_speech/create_speech.ts +3 -8
  52. package/examples/text_to_speech/create_speech_long_text.ts +3 -7
  53. package/examples/text_to_speech/create_speech_with_phonemes.ts +3 -7
  54. package/examples/text_to_speech/create_speech_with_voice_settings.ts +3 -8
  55. package/examples/text_to_speech/predict_duration.ts +3 -7
  56. package/examples/text_to_speech/stream_speech.ts +3 -7
  57. package/examples/text_to_speech/stream_speech_long_text.ts +3 -7
  58. package/examples/text_to_speech/stream_speech_with_phonemes.ts +3 -7
  59. package/examples/text_to_speech/stream_speech_with_voice_settings.ts +3 -7
  60. package/examples/usage/get_credit_balance.ts +2 -6
  61. package/examples/usage/get_usage.ts +2 -6
  62. package/examples/usage/get_voice_usage.ts +2 -7
  63. package/examples/voices/get_voice.ts +2 -6
  64. package/examples/voices/list_voices.ts +2 -6
  65. package/examples/voices/search_voices.ts +2 -7
  66. package/jsr.json +2 -2
  67. package/openapi.json +101 -9
  68. package/package.json +26 -10
  69. package/src/lib/config.ts +3 -2
  70. package/src/lib/custom_utils/text_utils.ts +117 -7
  71. package/src/models/apiconverttexttospeechusingcharacterrequest.ts +62 -3
  72. package/src/models/predictttsdurationusingcharacterrequest.ts +64 -3
  73. package/src/sdk/texttospeech.ts +474 -465
@@ -7,17 +7,13 @@
7
7
  * ⚠️ This consumes API credits!
8
8
  */
9
9
 
10
- import { Supertone } from "../../src/index.js";
11
- import * as models from "../../src/models/index.js";
10
+ import { Supertone } from "@supertone/supertone";
11
+ import * as models from "@supertone/supertone/models";
12
12
  import * as fs from "fs";
13
13
  import * as dotenv from "dotenv";
14
- import * as path from "path";
15
- import { fileURLToPath } from "url";
16
14
 
17
15
  // Load environment variables
18
- const __filename = fileURLToPath(import.meta.url);
19
- const __dirname = path.dirname(__filename);
20
- dotenv.config({ path: path.join(__dirname, "../.env") });
16
+ dotenv.config();
21
17
 
22
18
  const API_KEY = process.env.SUPERTONE_API_KEY;
23
19
  const VOICE_ID = process.env.VOICE_ID || "your-voice-id-here";
@@ -7,17 +7,13 @@
7
7
  * ⚠️ This consumes API credits!
8
8
  */
9
9
 
10
- import { Supertone } from "../../src/index.js";
11
- import * as models from "../../src/models/index.js";
10
+ import { Supertone } from "@supertone/supertone";
11
+ import * as models from "@supertone/supertone/models";
12
12
  import * as fs from "fs";
13
13
  import * as dotenv from "dotenv";
14
- import * as path from "path";
15
- import { fileURLToPath } from "url";
16
14
 
17
15
  // Load environment variables
18
- const __filename = fileURLToPath(import.meta.url);
19
- const __dirname = path.dirname(__filename);
20
- dotenv.config({ path: path.join(__dirname, "../.env") });
16
+ dotenv.config();
21
17
 
22
18
  const API_KEY = process.env.SUPERTONE_API_KEY;
23
19
  const VOICE_ID = process.env.VOICE_ID || "your-voice-id-here";
@@ -6,17 +6,13 @@
6
6
  * ⚠️ This consumes API credits!
7
7
  */
8
8
 
9
- import { Supertone } from "../../src/index.js";
10
- import * as models from "../../src/models/index.js";
9
+ import { Supertone } from "@supertone/supertone";
10
+ import * as models from "@supertone/supertone/models";
11
11
  import * as fs from "fs";
12
12
  import * as dotenv from "dotenv";
13
- import * as path from "path";
14
- import { fileURLToPath } from "url";
15
13
 
16
14
  // Load environment variables
17
- const __filename = fileURLToPath(import.meta.url);
18
- const __dirname = path.dirname(__filename);
19
- dotenv.config({ path: path.join(__dirname, "../.env") });
15
+ dotenv.config();
20
16
 
21
17
  const API_KEY = process.env.SUPERTONE_API_KEY;
22
18
  const VOICE_ID = process.env.VOICE_ID || "your-voice-id-here";
@@ -105,4 +101,3 @@ async function main() {
105
101
  }
106
102
 
107
103
  main();
108
-
@@ -6,16 +6,12 @@
6
6
  * Useful for resource planning and UI pre-calculations.
7
7
  */
8
8
 
9
- import { Supertone } from "../../src/index.js";
10
- import * as models from "../../src/models/index.js";
9
+ import { Supertone } from "@supertone/supertone";
10
+ import * as models from "@supertone/supertone/models";
11
11
  import * as dotenv from "dotenv";
12
- import * as path from "path";
13
- import { fileURLToPath } from "url";
14
12
 
15
13
  // Load environment variables
16
- const __filename = fileURLToPath(import.meta.url);
17
- const __dirname = path.dirname(__filename);
18
- dotenv.config({ path: path.join(__dirname, "../.env") });
14
+ dotenv.config();
19
15
 
20
16
  const API_KEY = process.env.SUPERTONE_API_KEY;
21
17
  const VOICE_ID = process.env.VOICE_ID || "your-voice-id-here";
@@ -7,17 +7,13 @@
7
7
  * ⚠️ This consumes API credits!
8
8
  */
9
9
 
10
- import { Supertone } from "../../src/index.js";
11
- import * as models from "../../src/models/index.js";
10
+ import { Supertone } from "@supertone/supertone";
11
+ import * as models from "@supertone/supertone/models";
12
12
  import * as fs from "fs";
13
13
  import * as dotenv from "dotenv";
14
- import * as path from "path";
15
- import { fileURLToPath } from "url";
16
14
 
17
15
  // Load environment variables
18
- const __filename = fileURLToPath(import.meta.url);
19
- const __dirname = path.dirname(__filename);
20
- dotenv.config({ path: path.join(__dirname, "../.env") });
16
+ dotenv.config();
21
17
 
22
18
  const API_KEY = process.env.SUPERTONE_API_KEY;
23
19
  const VOICE_ID = process.env.VOICE_ID || "your-voice-id-here";
@@ -7,17 +7,13 @@
7
7
  * ⚠️ This consumes API credits!
8
8
  */
9
9
 
10
- import { Supertone } from "../../src/index.js";
11
- import * as models from "../../src/models/index.js";
10
+ import { Supertone } from "@supertone/supertone";
11
+ import * as models from "@supertone/supertone/models";
12
12
  import * as fs from "fs";
13
13
  import * as dotenv from "dotenv";
14
- import * as path from "path";
15
- import { fileURLToPath } from "url";
16
14
 
17
15
  // Load environment variables
18
- const __filename = fileURLToPath(import.meta.url);
19
- const __dirname = path.dirname(__filename);
20
- dotenv.config({ path: path.join(__dirname, "../.env") });
16
+ dotenv.config();
21
17
 
22
18
  const API_KEY = process.env.SUPERTONE_API_KEY;
23
19
  const VOICE_ID = process.env.VOICE_ID || "your-voice-id-here";
@@ -7,17 +7,13 @@
7
7
  * ⚠️ This consumes API credits!
8
8
  */
9
9
 
10
- import { Supertone } from "../../src/index.js";
11
- import * as models from "../../src/models/index.js";
10
+ import { Supertone } from "@supertone/supertone";
11
+ import * as models from "@supertone/supertone/models";
12
12
  import * as fs from "fs";
13
13
  import * as dotenv from "dotenv";
14
- import * as path from "path";
15
- import { fileURLToPath } from "url";
16
14
 
17
15
  // Load environment variables
18
- const __filename = fileURLToPath(import.meta.url);
19
- const __dirname = path.dirname(__filename);
20
- dotenv.config({ path: path.join(__dirname, "../.env") });
16
+ dotenv.config();
21
17
 
22
18
  const API_KEY = process.env.SUPERTONE_API_KEY;
23
19
  const VOICE_ID = process.env.VOICE_ID || "your-voice-id-here";
@@ -7,17 +7,13 @@
7
7
  * ⚠️ This consumes API credits!
8
8
  */
9
9
 
10
- import { Supertone } from "../../src/index.js";
11
- import * as models from "../../src/models/index.js";
10
+ import { Supertone } from "@supertone/supertone";
11
+ import * as models from "@supertone/supertone/models";
12
12
  import * as fs from "fs";
13
13
  import * as dotenv from "dotenv";
14
- import * as path from "path";
15
- import { fileURLToPath } from "url";
16
14
 
17
15
  // Load environment variables
18
- const __filename = fileURLToPath(import.meta.url);
19
- const __dirname = path.dirname(__filename);
20
- dotenv.config({ path: path.join(__dirname, "../.env") });
16
+ dotenv.config();
21
17
 
22
18
  const API_KEY = process.env.SUPERTONE_API_KEY;
23
19
  const VOICE_ID = process.env.VOICE_ID || "your-voice-id-here";
@@ -5,15 +5,11 @@
5
5
  * This example demonstrates how to check your remaining credit balance.
6
6
  */
7
7
 
8
- import { Supertone } from "../../src/index.js";
8
+ import { Supertone } from "@supertone/supertone";
9
9
  import * as dotenv from "dotenv";
10
- import * as path from "path";
11
- import { fileURLToPath } from "url";
12
10
 
13
11
  // Load environment variables
14
- const __filename = fileURLToPath(import.meta.url);
15
- const __dirname = path.dirname(__filename);
16
- dotenv.config({ path: path.join(__dirname, "../.env") });
12
+ dotenv.config();
17
13
 
18
14
  const API_KEY = process.env.SUPERTONE_API_KEY;
19
15
 
@@ -5,15 +5,11 @@
5
5
  * This example demonstrates how to retrieve usage analytics for a time period.
6
6
  */
7
7
 
8
- import { Supertone } from "../../src/index.js";
8
+ import { Supertone } from "@supertone/supertone";
9
9
  import * as dotenv from "dotenv";
10
- import * as path from "path";
11
- import { fileURLToPath } from "url";
12
10
 
13
11
  // Load environment variables
14
- const __filename = fileURLToPath(import.meta.url);
15
- const __dirname = path.dirname(__filename);
16
- dotenv.config({ path: path.join(__dirname, "../.env") });
12
+ dotenv.config();
17
13
 
18
14
  const API_KEY = process.env.SUPERTONE_API_KEY;
19
15
 
@@ -5,15 +5,11 @@
5
5
  * This example demonstrates how to retrieve per-voice usage statistics.
6
6
  */
7
7
 
8
- import { Supertone } from "../../src/index.js";
8
+ import { Supertone } from "@supertone/supertone";
9
9
  import * as dotenv from "dotenv";
10
- import * as path from "path";
11
- import { fileURLToPath } from "url";
12
10
 
13
11
  // Load environment variables
14
- const __filename = fileURLToPath(import.meta.url);
15
- const __dirname = path.dirname(__filename);
16
- dotenv.config({ path: path.join(__dirname, "../.env") });
12
+ dotenv.config();
17
13
 
18
14
  const API_KEY = process.env.SUPERTONE_API_KEY;
19
15
 
@@ -72,4 +68,3 @@ async function main() {
72
68
  }
73
69
 
74
70
  main();
75
-
@@ -5,15 +5,11 @@
5
5
  * This example demonstrates how to get detailed information about a specific voice.
6
6
  */
7
7
 
8
- import { Supertone } from "../../src/index.js";
8
+ import { Supertone } from "@supertone/supertone";
9
9
  import * as dotenv from "dotenv";
10
- import * as path from "path";
11
- import { fileURLToPath } from "url";
12
10
 
13
11
  // Load environment variables
14
- const __filename = fileURLToPath(import.meta.url);
15
- const __dirname = path.dirname(__filename);
16
- dotenv.config({ path: path.join(__dirname, "../.env") });
12
+ dotenv.config();
17
13
 
18
14
  const API_KEY = process.env.SUPERTONE_API_KEY;
19
15
 
@@ -5,15 +5,11 @@
5
5
  * This example demonstrates how to list all available voices.
6
6
  */
7
7
 
8
- import { Supertone } from "../../src/index.js";
8
+ import { Supertone } from "@supertone/supertone";
9
9
  import * as dotenv from "dotenv";
10
- import * as path from "path";
11
- import { fileURLToPath } from "url";
12
10
 
13
11
  // Load environment variables
14
- const __filename = fileURLToPath(import.meta.url);
15
- const __dirname = path.dirname(__filename);
16
- dotenv.config({ path: path.join(__dirname, "../.env") });
12
+ dotenv.config();
17
13
 
18
14
  const API_KEY = process.env.SUPERTONE_API_KEY;
19
15
 
@@ -5,15 +5,11 @@
5
5
  * This example demonstrates how to search for voices by language and gender.
6
6
  */
7
7
 
8
- import { Supertone } from "../../src/index.js";
8
+ import { Supertone } from "@supertone/supertone";
9
9
  import * as dotenv from "dotenv";
10
- import * as path from "path";
11
- import { fileURLToPath } from "url";
12
10
 
13
11
  // Load environment variables
14
- const __filename = fileURLToPath(import.meta.url);
15
- const __dirname = path.dirname(__filename);
16
- dotenv.config({ path: path.join(__dirname, "../.env") });
12
+ dotenv.config();
17
13
 
18
14
  const API_KEY = process.env.SUPERTONE_API_KEY;
19
15
 
@@ -58,4 +54,3 @@ async function main() {
58
54
  }
59
55
 
60
56
  main();
61
-
package/jsr.json CHANGED
@@ -1,8 +1,8 @@
1
1
 
2
2
 
3
3
  {
4
- "name": "supertone",
5
- "version": "0.1.0",
4
+ "name": "@supertone/supertone",
5
+ "version": "0.1.2",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/openapi.json CHANGED
@@ -1870,8 +1870,26 @@
1870
1870
  "en",
1871
1871
  "ko",
1872
1872
  "ja",
1873
+ "bg",
1874
+ "cs",
1875
+ "da",
1876
+ "el",
1873
1877
  "es",
1874
- "pt"
1878
+ "et",
1879
+ "fi",
1880
+ "hu",
1881
+ "it",
1882
+ "nl",
1883
+ "pl",
1884
+ "pt",
1885
+ "ro",
1886
+ "ar",
1887
+ "de",
1888
+ "fr",
1889
+ "hi",
1890
+ "id",
1891
+ "ru",
1892
+ "vi"
1875
1893
  ]
1876
1894
  },
1877
1895
  "style": {
@@ -1881,6 +1899,12 @@
1881
1899
  "model": {
1882
1900
  "type": "string",
1883
1901
  "description": "The model type to use for the text-to-speech conversion",
1902
+ "enum": [
1903
+ "sona_speech_1",
1904
+ "sona_speech_2",
1905
+ "sona_speech_2t",
1906
+ "supertonic_api_1"
1907
+ ],
1884
1908
  "default": "sona_speech_1"
1885
1909
  },
1886
1910
  "output_format": {
@@ -1948,8 +1972,26 @@
1948
1972
  "en",
1949
1973
  "ko",
1950
1974
  "ja",
1975
+ "bg",
1976
+ "cs",
1977
+ "da",
1978
+ "el",
1951
1979
  "es",
1952
- "pt"
1980
+ "et",
1981
+ "fi",
1982
+ "hu",
1983
+ "it",
1984
+ "nl",
1985
+ "pl",
1986
+ "pt",
1987
+ "ro",
1988
+ "ar",
1989
+ "de",
1990
+ "fr",
1991
+ "hi",
1992
+ "id",
1993
+ "ru",
1994
+ "vi"
1953
1995
  ]
1954
1996
  },
1955
1997
  "style": {
@@ -1959,6 +2001,12 @@
1959
2001
  "model": {
1960
2002
  "type": "string",
1961
2003
  "description": "The model type to use for the text-to-speech conversion",
2004
+ "enum": [
2005
+ "sona_speech_1",
2006
+ "sona_speech_2",
2007
+ "sona_speech_2t",
2008
+ "supertonic_api_1"
2009
+ ],
1962
2010
  "default": "sona_speech_1"
1963
2011
  },
1964
2012
  "output_format": {
@@ -1995,7 +2043,7 @@
1995
2043
  "model": {
1996
2044
  "type": "string",
1997
2045
  "description": "Model of the sample",
1998
- "example": "sona_speech_1"
2046
+ "example": "supertonic_api_1"
1999
2047
  },
2000
2048
  "url": {
2001
2049
  "type": "string",
@@ -2057,9 +2105,29 @@
2057
2105
  "language": {
2058
2106
  "description": "Languages supported by the voice",
2059
2107
  "example": [
2060
- "ko",
2108
+ "ar",
2109
+ "bg",
2110
+ "cs",
2111
+ "da",
2112
+ "de",
2113
+ "el",
2061
2114
  "en",
2062
- "ja"
2115
+ "es",
2116
+ "et",
2117
+ "fi",
2118
+ "fr",
2119
+ "hi",
2120
+ "hu",
2121
+ "id",
2122
+ "it",
2123
+ "ja",
2124
+ "ko",
2125
+ "nl",
2126
+ "pl",
2127
+ "pt",
2128
+ "ro",
2129
+ "ru",
2130
+ "vi"
2063
2131
  ],
2064
2132
  "type": "array",
2065
2133
  "items": {
@@ -2081,7 +2149,9 @@
2081
2149
  "models": {
2082
2150
  "description": "Models available for the voice",
2083
2151
  "example": [
2084
- "sona_speech_1"
2152
+ "sona_speech_1",
2153
+ "sona_speech_2",
2154
+ "supertonic_api_1"
2085
2155
  ],
2086
2156
  "type": "array",
2087
2157
  "items": {
@@ -2187,9 +2257,29 @@
2187
2257
  "language": {
2188
2258
  "description": "Languages supported by the voice",
2189
2259
  "example": [
2190
- "ko",
2260
+ "ar",
2261
+ "bg",
2262
+ "cs",
2263
+ "da",
2264
+ "de",
2265
+ "el",
2191
2266
  "en",
2192
- "ja"
2267
+ "es",
2268
+ "et",
2269
+ "fi",
2270
+ "fr",
2271
+ "hi",
2272
+ "hu",
2273
+ "id",
2274
+ "it",
2275
+ "ja",
2276
+ "ko",
2277
+ "nl",
2278
+ "pl",
2279
+ "pt",
2280
+ "ro",
2281
+ "ru",
2282
+ "vi"
2193
2283
  ],
2194
2284
  "type": "array",
2195
2285
  "items": {
@@ -2211,7 +2301,9 @@
2211
2301
  "models": {
2212
2302
  "description": "Models available for the voice",
2213
2303
  "example": [
2214
- "sona_speech_1"
2304
+ "sona_speech_1",
2305
+ "sona_speech_2",
2306
+ "supertonic_api_1"
2215
2307
  ],
2216
2308
  "type": "array",
2217
2309
  "items": {
package/package.json CHANGED
@@ -1,7 +1,23 @@
1
1
  {
2
2
  "name": "@supertone/supertone",
3
- "version": "0.1.0",
4
- "author": "Speakeasy",
3
+ "version": "0.1.2",
4
+ "author": "Supertone, Pillip Youn",
5
+ "bugs": {
6
+ "url": "https://github.com/supertone-inc/supertone-ts/issues"
7
+ },
8
+ "description": "TypeScript Client SDK for Supertone API Generated by Supertone.",
9
+ "homepage": "https://supertone.ai",
10
+ "keywords": [
11
+ "tts",
12
+ "text-to-speech",
13
+ "supertone",
14
+ "voice",
15
+ "ai"
16
+ ],
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://github.com/supertone-inc/supertone-ts.git"
20
+ },
5
21
  "scripts": {
6
22
  "lint": "eslint --cache --max-warnings=0 src",
7
23
  "build": "tshy",
@@ -10,7 +26,7 @@
10
26
  "type": "module",
11
27
  "tshy": {
12
28
  "sourceDialects": [
13
- "supertone/source"
29
+ "@supertone/supertone/source"
14
30
  ],
15
31
  "exports": {
16
32
  ".": "./src/index.ts",
@@ -42,7 +58,7 @@
42
58
  "exports": {
43
59
  ".": {
44
60
  "import": {
45
- "supertone/source": "./src/index.ts",
61
+ "@supertone/supertone/source": "./src/index.ts",
46
62
  "types": "./dist/esm/index.d.ts",
47
63
  "default": "./dist/esm/index.js"
48
64
  },
@@ -54,7 +70,7 @@
54
70
  "./package.json": "./package.json",
55
71
  "./types": {
56
72
  "import": {
57
- "supertone/source": "./src/types/index.ts",
73
+ "@supertone/supertone/source": "./src/types/index.ts",
58
74
  "types": "./dist/esm/types/index.d.ts",
59
75
  "default": "./dist/esm/types/index.js"
60
76
  },
@@ -65,7 +81,7 @@
65
81
  },
66
82
  "./models/errors": {
67
83
  "import": {
68
- "supertone/source": "./src/models/errors/index.ts",
84
+ "@supertone/supertone/source": "./src/models/errors/index.ts",
69
85
  "types": "./dist/esm/models/errors/index.d.ts",
70
86
  "default": "./dist/esm/models/errors/index.js"
71
87
  },
@@ -76,7 +92,7 @@
76
92
  },
77
93
  "./models": {
78
94
  "import": {
79
- "supertone/source": "./src/models/index.ts",
95
+ "@supertone/supertone/source": "./src/models/index.ts",
80
96
  "types": "./dist/esm/models/index.d.ts",
81
97
  "default": "./dist/esm/models/index.js"
82
98
  },
@@ -87,7 +103,7 @@
87
103
  },
88
104
  "./models/operations": {
89
105
  "import": {
90
- "supertone/source": "./src/models/operations/index.ts",
106
+ "@supertone/supertone/source": "./src/models/operations/index.ts",
91
107
  "types": "./dist/esm/models/operations/index.d.ts",
92
108
  "default": "./dist/esm/models/operations/index.js"
93
109
  },
@@ -98,7 +114,7 @@
98
114
  },
99
115
  "./*.js": {
100
116
  "import": {
101
- "supertone/source": "./src/*.ts",
117
+ "@supertone/supertone/source": "./src/*.ts",
102
118
  "types": "./dist/esm/*.d.ts",
103
119
  "default": "./dist/esm/*.js"
104
120
  },
@@ -109,7 +125,7 @@
109
125
  },
110
126
  "./*": {
111
127
  "import": {
112
- "supertone/source": "./src/*.ts",
128
+ "@supertone/supertone/source": "./src/*.ts",
113
129
  "types": "./dist/esm/*.d.ts",
114
130
  "default": "./dist/esm/*.js"
115
131
  },
package/src/lib/config.ts CHANGED
@@ -61,7 +61,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
61
61
  export const SDK_METADATA = {
62
62
  language: "typescript",
63
63
  openapiDocVersion: "0.8.69",
64
- sdkVersion: "0.1.0",
64
+ sdkVersion: "0.1.2",
65
65
  genVersion: "2.686.7",
66
- userAgent: "speakeasy-sdk/typescript 0.1.0 2.686.7 0.8.69 supertone",
66
+ userAgent:
67
+ "speakeasy-sdk/typescript 0.1.2 2.686.7 0.8.69 @supertone/supertone",
67
68
  } as const;