@talqing/sdk 0.10.1 → 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.
@@ -167,6 +167,12 @@ export type AgentConfig = {
167
167
  */
168
168
  channel?: 'voice' | 'video' | 'text';
169
169
  conversation?: ConversationSpec;
170
+ /**
171
+ * Elapsed Time
172
+ *
173
+ * Start every user message the model reads with the time since the session began, e.g. [12:34]. Not available on realtime models.
174
+ */
175
+ elapsed_time?: boolean;
170
176
  /**
171
177
  * Faqs
172
178
  *
@@ -297,6 +303,12 @@ export type AgentOverride = {
297
303
  */
298
304
  channel?: 'voice' | 'video' | 'text' | null;
299
305
  conversation?: ConversationSpecOverride | null;
306
+ /**
307
+ * Elapsed Time
308
+ *
309
+ * Start every user message the model reads with the time since the session began, e.g. [12:34]. Not available on realtime models.
310
+ */
311
+ elapsed_time?: boolean | null;
300
312
  /**
301
313
  * Faqs
302
314
  *
@@ -1491,6 +1503,10 @@ export type CallSessionResponse = {
1491
1503
  */
1492
1504
  phone_number_id: string | null;
1493
1505
  recording: RecordingResponse;
1506
+ /**
1507
+ * Region
1508
+ */
1509
+ region: 'us' | 'in';
1494
1510
  /**
1495
1511
  * Resumed From Call Id
1496
1512
  */
@@ -1624,6 +1640,10 @@ export type CallSummaryResponse = {
1624
1640
  outcome?: 'success' | 'failure' | 'unknown' | null;
1625
1641
  plan?: CallPlanSummary | null;
1626
1642
  recording: RecordingResponse;
1643
+ /**
1644
+ * Region
1645
+ */
1646
+ region: 'us' | 'in';
1627
1647
  /**
1628
1648
  * Resumed From Call Id
1629
1649
  */
@@ -1774,6 +1794,10 @@ export type CatalogResponse = {
1774
1794
  * Realtime
1775
1795
  */
1776
1796
  realtime: Array<RealtimeCatalogEntryResponse>;
1797
+ /**
1798
+ * Regions
1799
+ */
1800
+ regions: Array<RegionOption>;
1777
1801
  /**
1778
1802
  * Stt
1779
1803
  */
@@ -2137,6 +2161,10 @@ export type ConversationItemResponse = {
2137
2161
  * Direction
2138
2162
  */
2139
2163
  direction: 'inbound' | 'outbound' | 'internal';
2164
+ /**
2165
+ * Elapsed
2166
+ */
2167
+ elapsed: string | null;
2140
2168
  /**
2141
2169
  * Id
2142
2170
  */
@@ -3231,6 +3259,12 @@ export type CreateStreamConnectionRequest = {
3231
3259
  * What this partner integration is called in the dashboard.
3232
3260
  */
3233
3261
  name: string;
3262
+ /**
3263
+ * Region
3264
+ *
3265
+ * Where calls are hosted; it decides the URL.
3266
+ */
3267
+ region?: 'us' | 'in';
3234
3268
  };
3235
3269
  /**
3236
3270
  * CreateTaskRequest
@@ -4892,6 +4926,10 @@ export type ImportPhoneNumbersRequest = {
4892
4926
  * Provision
4893
4927
  */
4894
4928
  provision?: boolean;
4929
+ /**
4930
+ * Region
4931
+ */
4932
+ region?: 'us' | 'in' | null;
4895
4933
  /**
4896
4934
  * Telephony Account Id
4897
4935
  */
@@ -5466,6 +5504,10 @@ export type ItemCreatedEvent = {
5466
5504
  * Direction
5467
5505
  */
5468
5506
  direction: 'inbound' | 'outbound' | 'internal';
5507
+ /**
5508
+ * Elapsed
5509
+ */
5510
+ elapsed: string | null;
5469
5511
  /**
5470
5512
  * Event
5471
5513
  */
@@ -7865,6 +7907,10 @@ export type PatchPhoneNumberRequest = {
7865
7907
  * Label
7866
7908
  */
7867
7909
  label?: string | null;
7910
+ /**
7911
+ * Region
7912
+ */
7913
+ region?: 'us' | 'in' | null;
7868
7914
  /**
7869
7915
  * Status
7870
7916
  */
@@ -7882,6 +7928,10 @@ export type PatchStreamConnectionRequest = {
7882
7928
  * Name
7883
7929
  */
7884
7930
  name?: string | null;
7931
+ /**
7932
+ * Region
7933
+ */
7934
+ region?: 'us' | 'in' | null;
7885
7935
  /**
7886
7936
  * Status
7887
7937
  */
@@ -7910,6 +7960,10 @@ export type PatchTelephonyAccountRequest = {
7910
7960
  * Console Setup Confirmed
7911
7961
  */
7912
7962
  console_setup_confirmed?: boolean | null;
7963
+ /**
7964
+ * Console Setup Region
7965
+ */
7966
+ console_setup_region?: 'us' | 'in' | null;
7913
7967
  /**
7914
7968
  * Credentials
7915
7969
  */
@@ -8102,6 +8156,10 @@ export type PhoneNumberResponse = {
8102
8156
  * Readiness
8103
8157
  */
8104
8158
  readiness: 'live' | 'needs_agent' | 'needs_carrier_setup' | 'setting_up' | 'error' | 'disabled';
8159
+ /**
8160
+ * Region
8161
+ */
8162
+ region: 'us' | 'in';
8105
8163
  /**
8106
8164
  * Status
8107
8165
  */
@@ -8339,6 +8397,7 @@ export type ProviderEntryResponse = {
8339
8397
  * Logo Url
8340
8398
  */
8341
8399
  logo_url: string;
8400
+ routes: Routes | null;
8342
8401
  /**
8343
8402
  * Searched Kinds
8344
8403
  */
@@ -9029,6 +9088,19 @@ export type RedraftRequest = {
9029
9088
  */
9030
9089
  selection?: 'all' | 'failed' | 'not_sent' | 'stale_version' | null;
9031
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
+ };
9032
9104
  /**
9033
9105
  * RejectedRecipient
9034
9106
  */
@@ -9086,6 +9158,42 @@ export type ReplyLatency = {
9086
9158
  */
9087
9159
  total_ms: number;
9088
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
+ };
9089
9197
  /**
9090
9198
  * RunStepResponse
9091
9199
  *
@@ -9964,6 +10072,10 @@ export type StreamConnectionResponse = {
9964
10072
  * Readiness
9965
10073
  */
9966
10074
  readiness: 'live' | 'needs_agent' | 'disabled';
10075
+ /**
10076
+ * Region
10077
+ */
10078
+ region: 'us' | 'in';
9967
10079
  /**
9968
10080
  * Status
9969
10081
  */
@@ -10197,6 +10309,10 @@ export type TTSPriceLine = {
10197
10309
  * Audio Duration
10198
10310
  */
10199
10311
  audio_duration: number | null;
10312
+ /**
10313
+ * Cached Characters
10314
+ */
10315
+ cached_characters: number | null;
10200
10316
  /**
10201
10317
  * Characters Count
10202
10318
  */
@@ -10231,6 +10347,10 @@ export type TTSPriceLine = {
10231
10347
  * TTSPricing
10232
10348
  */
10233
10349
  export type TTSPricing = {
10350
+ /**
10351
+ * Cached Per Character
10352
+ */
10353
+ cached_per_character?: number | null;
10234
10354
  /**
10235
10355
  * Input Per 1M
10236
10356
  */
@@ -10338,6 +10458,10 @@ export type TTSUsage = {
10338
10458
  * Audio Duration
10339
10459
  */
10340
10460
  audio_duration: number;
10461
+ /**
10462
+ * Cached Characters
10463
+ */
10464
+ cached_characters: number;
10341
10465
  /**
10342
10466
  * Characters Count
10343
10467
  */
@@ -10367,6 +10491,10 @@ export type TTSUsageResponse = {
10367
10491
  * Audio Duration
10368
10492
  */
10369
10493
  audio_duration: number;
10494
+ /**
10495
+ * Cached Characters
10496
+ */
10497
+ cached_characters: number;
10370
10498
  /**
10371
10499
  * Characters Count
10372
10500
  */
@@ -11046,6 +11174,10 @@ export type TelephonySetupStep = {
11046
11174
  * Key
11047
11175
  */
11048
11176
  key: string;
11177
+ /**
11178
+ * Region
11179
+ */
11180
+ region: 'us' | 'in' | null;
11049
11181
  /**
11050
11182
  * Title
11051
11183
  */
@@ -11123,6 +11255,10 @@ export type TokenRequest = {
11123
11255
  * Contact Key
11124
11256
  */
11125
11257
  contact_key?: string | null;
11258
+ /**
11259
+ * Region
11260
+ */
11261
+ region?: 'us' | 'in';
11126
11262
  /**
11127
11263
  * Userdata
11128
11264
  */
@@ -14053,7 +14189,7 @@ export type CallsRecordingGetResults = {
14053
14189
  };
14054
14190
  export type CallsRecordingGetResult = CallsRecordingGetResults[keyof CallsRecordingGetResults];
14055
14191
  export type CallsResumeData = {
14056
- body?: never;
14192
+ body?: ResumeCallRequest;
14057
14193
  path: {
14058
14194
  /**
14059
14195
  * Session Id
@@ -14366,7 +14502,14 @@ export type CatalogVoicesListResult = CatalogVoicesListResults[keyof CatalogVoic
14366
14502
  export type CatalogVoicesElevenlabsAddData = {
14367
14503
  body: AddVoiceRequest;
14368
14504
  path?: never;
14369
- query?: never;
14505
+ query?: {
14506
+ /**
14507
+ * Provider
14508
+ *
14509
+ * The agent's tts.provider.
14510
+ */
14511
+ provider?: 'elevenlabs' | 'tts_cache_router';
14512
+ };
14370
14513
  url: '/v1/catalog/voices/elevenlabs/add';
14371
14514
  };
14372
14515
  export type CatalogVoicesElevenlabsAddErrors = {
@@ -14407,7 +14550,14 @@ export type CatalogVoicesElevenlabsSettingsData = {
14407
14550
  */
14408
14551
  voice_id: string;
14409
14552
  };
14410
- query?: never;
14553
+ query?: {
14554
+ /**
14555
+ * Provider
14556
+ *
14557
+ * The agent's tts.provider.
14558
+ */
14559
+ provider?: 'elevenlabs' | 'tts_cache_router';
14560
+ };
14411
14561
  url: '/v1/catalog/voices/elevenlabs/{voice_id}/settings';
14412
14562
  };
14413
14563
  export type CatalogVoicesElevenlabsSettingsErrors = {