@talqing/sdk 0.10.2 → 0.11.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.
- package/dist/cjs/gen/index.d.ts +1 -1
- package/dist/cjs/gen/index.d.ts.map +1 -1
- package/dist/cjs/gen/sdk.gen.d.ts +14 -4
- package/dist/cjs/gen/sdk.gen.d.ts.map +1 -1
- package/dist/cjs/gen/sdk.gen.js +19 -7
- package/dist/cjs/gen/sdk.gen.js.map +1 -1
- package/dist/cjs/gen/types.gen.d.ts +133 -3
- package/dist/cjs/gen/types.gen.d.ts.map +1 -1
- package/dist/esm/gen/index.d.ts +1 -1
- package/dist/esm/gen/index.d.ts.map +1 -1
- package/dist/esm/gen/sdk.gen.d.ts +14 -4
- package/dist/esm/gen/sdk.gen.d.ts.map +1 -1
- package/dist/esm/gen/sdk.gen.js +19 -7
- package/dist/esm/gen/sdk.gen.js.map +1 -1
- package/dist/esm/gen/types.gen.d.ts +133 -3
- package/dist/esm/gen/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/gen/index.ts +1 -1
- package/src/gen/sdk.gen.ts +23 -8
- package/src/gen/types.gen.ts +137 -3
|
@@ -1503,6 +1503,10 @@ export type CallSessionResponse = {
|
|
|
1503
1503
|
*/
|
|
1504
1504
|
phone_number_id: string | null;
|
|
1505
1505
|
recording: RecordingResponse;
|
|
1506
|
+
/**
|
|
1507
|
+
* Region
|
|
1508
|
+
*/
|
|
1509
|
+
region: 'us' | 'in';
|
|
1506
1510
|
/**
|
|
1507
1511
|
* Resumed From Call Id
|
|
1508
1512
|
*/
|
|
@@ -1636,6 +1640,10 @@ export type CallSummaryResponse = {
|
|
|
1636
1640
|
outcome?: 'success' | 'failure' | 'unknown' | null;
|
|
1637
1641
|
plan?: CallPlanSummary | null;
|
|
1638
1642
|
recording: RecordingResponse;
|
|
1643
|
+
/**
|
|
1644
|
+
* Region
|
|
1645
|
+
*/
|
|
1646
|
+
region: 'us' | 'in';
|
|
1639
1647
|
/**
|
|
1640
1648
|
* Resumed From Call Id
|
|
1641
1649
|
*/
|
|
@@ -1786,6 +1794,10 @@ export type CatalogResponse = {
|
|
|
1786
1794
|
* Realtime
|
|
1787
1795
|
*/
|
|
1788
1796
|
realtime: Array<RealtimeCatalogEntryResponse>;
|
|
1797
|
+
/**
|
|
1798
|
+
* Regions
|
|
1799
|
+
*/
|
|
1800
|
+
regions: Array<RegionOption>;
|
|
1789
1801
|
/**
|
|
1790
1802
|
* Stt
|
|
1791
1803
|
*/
|
|
@@ -3247,6 +3259,12 @@ export type CreateStreamConnectionRequest = {
|
|
|
3247
3259
|
* What this partner integration is called in the dashboard.
|
|
3248
3260
|
*/
|
|
3249
3261
|
name: string;
|
|
3262
|
+
/**
|
|
3263
|
+
* Region
|
|
3264
|
+
*
|
|
3265
|
+
* Where calls are hosted; it decides the URL.
|
|
3266
|
+
*/
|
|
3267
|
+
region?: 'us' | 'in';
|
|
3250
3268
|
};
|
|
3251
3269
|
/**
|
|
3252
3270
|
* CreateTaskRequest
|
|
@@ -4908,6 +4926,10 @@ export type ImportPhoneNumbersRequest = {
|
|
|
4908
4926
|
* Provision
|
|
4909
4927
|
*/
|
|
4910
4928
|
provision?: boolean;
|
|
4929
|
+
/**
|
|
4930
|
+
* Region
|
|
4931
|
+
*/
|
|
4932
|
+
region?: 'us' | 'in' | null;
|
|
4911
4933
|
/**
|
|
4912
4934
|
* Telephony Account Id
|
|
4913
4935
|
*/
|
|
@@ -7885,6 +7907,10 @@ export type PatchPhoneNumberRequest = {
|
|
|
7885
7907
|
* Label
|
|
7886
7908
|
*/
|
|
7887
7909
|
label?: string | null;
|
|
7910
|
+
/**
|
|
7911
|
+
* Region
|
|
7912
|
+
*/
|
|
7913
|
+
region?: 'us' | 'in' | null;
|
|
7888
7914
|
/**
|
|
7889
7915
|
* Status
|
|
7890
7916
|
*/
|
|
@@ -7902,6 +7928,10 @@ export type PatchStreamConnectionRequest = {
|
|
|
7902
7928
|
* Name
|
|
7903
7929
|
*/
|
|
7904
7930
|
name?: string | null;
|
|
7931
|
+
/**
|
|
7932
|
+
* Region
|
|
7933
|
+
*/
|
|
7934
|
+
region?: 'us' | 'in' | null;
|
|
7905
7935
|
/**
|
|
7906
7936
|
* Status
|
|
7907
7937
|
*/
|
|
@@ -7930,6 +7960,10 @@ export type PatchTelephonyAccountRequest = {
|
|
|
7930
7960
|
* Console Setup Confirmed
|
|
7931
7961
|
*/
|
|
7932
7962
|
console_setup_confirmed?: boolean | null;
|
|
7963
|
+
/**
|
|
7964
|
+
* Console Setup Region
|
|
7965
|
+
*/
|
|
7966
|
+
console_setup_region?: 'us' | 'in' | null;
|
|
7933
7967
|
/**
|
|
7934
7968
|
* Credentials
|
|
7935
7969
|
*/
|
|
@@ -8122,6 +8156,10 @@ export type PhoneNumberResponse = {
|
|
|
8122
8156
|
* Readiness
|
|
8123
8157
|
*/
|
|
8124
8158
|
readiness: 'live' | 'needs_agent' | 'needs_carrier_setup' | 'setting_up' | 'error' | 'disabled';
|
|
8159
|
+
/**
|
|
8160
|
+
* Region
|
|
8161
|
+
*/
|
|
8162
|
+
region: 'us' | 'in';
|
|
8125
8163
|
/**
|
|
8126
8164
|
* Status
|
|
8127
8165
|
*/
|
|
@@ -8359,6 +8397,7 @@ export type ProviderEntryResponse = {
|
|
|
8359
8397
|
* Logo Url
|
|
8360
8398
|
*/
|
|
8361
8399
|
logo_url: string;
|
|
8400
|
+
routes: Routes | null;
|
|
8362
8401
|
/**
|
|
8363
8402
|
* Searched Kinds
|
|
8364
8403
|
*/
|
|
@@ -9049,6 +9088,19 @@ export type RedraftRequest = {
|
|
|
9049
9088
|
*/
|
|
9050
9089
|
selection?: 'all' | 'failed' | 'not_sent' | 'stale_version' | null;
|
|
9051
9090
|
};
|
|
9091
|
+
/**
|
|
9092
|
+
* RegionOption
|
|
9093
|
+
*/
|
|
9094
|
+
export type RegionOption = {
|
|
9095
|
+
/**
|
|
9096
|
+
* Id
|
|
9097
|
+
*/
|
|
9098
|
+
id: 'us' | 'in';
|
|
9099
|
+
/**
|
|
9100
|
+
* Name
|
|
9101
|
+
*/
|
|
9102
|
+
name: string;
|
|
9103
|
+
};
|
|
9052
9104
|
/**
|
|
9053
9105
|
* RejectedRecipient
|
|
9054
9106
|
*/
|
|
@@ -9106,6 +9158,42 @@ export type ReplyLatency = {
|
|
|
9106
9158
|
*/
|
|
9107
9159
|
total_ms: number;
|
|
9108
9160
|
};
|
|
9161
|
+
/**
|
|
9162
|
+
* ResumeCallRequest
|
|
9163
|
+
*/
|
|
9164
|
+
export type ResumeCallRequest = {
|
|
9165
|
+
/**
|
|
9166
|
+
* Region
|
|
9167
|
+
*/
|
|
9168
|
+
region?: 'us' | 'in';
|
|
9169
|
+
};
|
|
9170
|
+
/**
|
|
9171
|
+
* RoutedTTS
|
|
9172
|
+
*
|
|
9173
|
+
* The text-to-speech a router serves: other providers' TTS entries, reached
|
|
9174
|
+
* through it, plus the rate it bills for what it serves from its cache.
|
|
9175
|
+
*/
|
|
9176
|
+
export type RoutedTTS = {
|
|
9177
|
+
/**
|
|
9178
|
+
* Cached Per Character
|
|
9179
|
+
*/
|
|
9180
|
+
cached_per_character: number;
|
|
9181
|
+
/**
|
|
9182
|
+
* Providers
|
|
9183
|
+
*/
|
|
9184
|
+
providers: Array<string>;
|
|
9185
|
+
};
|
|
9186
|
+
/**
|
|
9187
|
+
* Routes
|
|
9188
|
+
*
|
|
9189
|
+
* What a router provider serves. Its entries are not written out: each one
|
|
9190
|
+
* is a routed provider's own entry under the model id `<provider>/<model>`,
|
|
9191
|
+
* built at load (`Catalog._route_entries`), so voices, languages, speed bounds
|
|
9192
|
+
* and the provider's rates can never drift from the provider's entry.
|
|
9193
|
+
*/
|
|
9194
|
+
export type Routes = {
|
|
9195
|
+
tts: RoutedTTS;
|
|
9196
|
+
};
|
|
9109
9197
|
/**
|
|
9110
9198
|
* RunStepResponse
|
|
9111
9199
|
*
|
|
@@ -9984,6 +10072,10 @@ export type StreamConnectionResponse = {
|
|
|
9984
10072
|
* Readiness
|
|
9985
10073
|
*/
|
|
9986
10074
|
readiness: 'live' | 'needs_agent' | 'disabled';
|
|
10075
|
+
/**
|
|
10076
|
+
* Region
|
|
10077
|
+
*/
|
|
10078
|
+
region: 'us' | 'in';
|
|
9987
10079
|
/**
|
|
9988
10080
|
* Status
|
|
9989
10081
|
*/
|
|
@@ -10217,6 +10309,10 @@ export type TTSPriceLine = {
|
|
|
10217
10309
|
* Audio Duration
|
|
10218
10310
|
*/
|
|
10219
10311
|
audio_duration: number | null;
|
|
10312
|
+
/**
|
|
10313
|
+
* Cached Characters
|
|
10314
|
+
*/
|
|
10315
|
+
cached_characters: number | null;
|
|
10220
10316
|
/**
|
|
10221
10317
|
* Characters Count
|
|
10222
10318
|
*/
|
|
@@ -10251,6 +10347,10 @@ export type TTSPriceLine = {
|
|
|
10251
10347
|
* TTSPricing
|
|
10252
10348
|
*/
|
|
10253
10349
|
export type TTSPricing = {
|
|
10350
|
+
/**
|
|
10351
|
+
* Cached Per Character
|
|
10352
|
+
*/
|
|
10353
|
+
cached_per_character?: number | null;
|
|
10254
10354
|
/**
|
|
10255
10355
|
* Input Per 1M
|
|
10256
10356
|
*/
|
|
@@ -10358,6 +10458,10 @@ export type TTSUsage = {
|
|
|
10358
10458
|
* Audio Duration
|
|
10359
10459
|
*/
|
|
10360
10460
|
audio_duration: number;
|
|
10461
|
+
/**
|
|
10462
|
+
* Cached Characters
|
|
10463
|
+
*/
|
|
10464
|
+
cached_characters: number;
|
|
10361
10465
|
/**
|
|
10362
10466
|
* Characters Count
|
|
10363
10467
|
*/
|
|
@@ -10387,6 +10491,10 @@ export type TTSUsageResponse = {
|
|
|
10387
10491
|
* Audio Duration
|
|
10388
10492
|
*/
|
|
10389
10493
|
audio_duration: number;
|
|
10494
|
+
/**
|
|
10495
|
+
* Cached Characters
|
|
10496
|
+
*/
|
|
10497
|
+
cached_characters: number;
|
|
10390
10498
|
/**
|
|
10391
10499
|
* Characters Count
|
|
10392
10500
|
*/
|
|
@@ -11066,6 +11174,10 @@ export type TelephonySetupStep = {
|
|
|
11066
11174
|
* Key
|
|
11067
11175
|
*/
|
|
11068
11176
|
key: string;
|
|
11177
|
+
/**
|
|
11178
|
+
* Region
|
|
11179
|
+
*/
|
|
11180
|
+
region: 'us' | 'in' | null;
|
|
11069
11181
|
/**
|
|
11070
11182
|
* Title
|
|
11071
11183
|
*/
|
|
@@ -11143,6 +11255,10 @@ export type TokenRequest = {
|
|
|
11143
11255
|
* Contact Key
|
|
11144
11256
|
*/
|
|
11145
11257
|
contact_key?: string | null;
|
|
11258
|
+
/**
|
|
11259
|
+
* Region
|
|
11260
|
+
*/
|
|
11261
|
+
region?: 'us' | 'in';
|
|
11146
11262
|
/**
|
|
11147
11263
|
* Userdata
|
|
11148
11264
|
*/
|
|
@@ -14073,7 +14189,7 @@ export type CallsRecordingGetResults = {
|
|
|
14073
14189
|
};
|
|
14074
14190
|
export type CallsRecordingGetResult = CallsRecordingGetResults[keyof CallsRecordingGetResults];
|
|
14075
14191
|
export type CallsResumeData = {
|
|
14076
|
-
body?:
|
|
14192
|
+
body?: ResumeCallRequest;
|
|
14077
14193
|
path: {
|
|
14078
14194
|
/**
|
|
14079
14195
|
* Session Id
|
|
@@ -14386,7 +14502,14 @@ export type CatalogVoicesListResult = CatalogVoicesListResults[keyof CatalogVoic
|
|
|
14386
14502
|
export type CatalogVoicesElevenlabsAddData = {
|
|
14387
14503
|
body: AddVoiceRequest;
|
|
14388
14504
|
path?: never;
|
|
14389
|
-
query?:
|
|
14505
|
+
query?: {
|
|
14506
|
+
/**
|
|
14507
|
+
* Provider
|
|
14508
|
+
*
|
|
14509
|
+
* The agent's tts.provider.
|
|
14510
|
+
*/
|
|
14511
|
+
provider?: 'elevenlabs' | 'tts_cache_router';
|
|
14512
|
+
};
|
|
14390
14513
|
url: '/v1/catalog/voices/elevenlabs/add';
|
|
14391
14514
|
};
|
|
14392
14515
|
export type CatalogVoicesElevenlabsAddErrors = {
|
|
@@ -14427,7 +14550,14 @@ export type CatalogVoicesElevenlabsSettingsData = {
|
|
|
14427
14550
|
*/
|
|
14428
14551
|
voice_id: string;
|
|
14429
14552
|
};
|
|
14430
|
-
query?:
|
|
14553
|
+
query?: {
|
|
14554
|
+
/**
|
|
14555
|
+
* Provider
|
|
14556
|
+
*
|
|
14557
|
+
* The agent's tts.provider.
|
|
14558
|
+
*/
|
|
14559
|
+
provider?: 'elevenlabs' | 'tts_cache_router';
|
|
14560
|
+
};
|
|
14431
14561
|
url: '/v1/catalog/voices/elevenlabs/{voice_id}/settings';
|
|
14432
14562
|
};
|
|
14433
14563
|
export type CatalogVoicesElevenlabsSettingsErrors = {
|