@talqing/sdk 0.20.0 → 0.21.1

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.
@@ -3942,7 +3942,7 @@ export type CreateWhatsAppTemplateRequest = {
3942
3942
  /**
3943
3943
  * Integration Id
3944
3944
  *
3945
- * A Twilio WhatsApp sender; the template is account-wide.
3945
+ * A Twilio or Meta WhatsApp sender; the template is account-wide.
3946
3946
  */
3947
3947
  integration_id: string;
3948
3948
  /**
@@ -5794,6 +5794,10 @@ export type IntegrationCapabilities = {
5794
5794
  * Attachable As Mcp
5795
5795
  */
5796
5796
  attachable_as_mcp: boolean;
5797
+ /**
5798
+ * Template Authoring
5799
+ */
5800
+ template_authoring: boolean;
5797
5801
  /**
5798
5802
  * Trigger Types
5799
5803
  */
@@ -6849,6 +6853,83 @@ export type McpSelection = {
6849
6853
  integration_id?: string | null;
6850
6854
  mcp?: InlineMcpServer | null;
6851
6855
  };
6856
+ /**
6857
+ * MetaNumber
6858
+ */
6859
+ export type MetaNumber = {
6860
+ /**
6861
+ * E164
6862
+ */
6863
+ e164: string;
6864
+ /**
6865
+ * Has Payment Method
6866
+ *
6867
+ * False: replies stop after 1,000 a month and templates fail. Null: unknown.
6868
+ */
6869
+ has_payment_method: boolean | null;
6870
+ /**
6871
+ * Messaging Limit
6872
+ */
6873
+ messaging_limit: string | null;
6874
+ /**
6875
+ * Phone Number Id
6876
+ */
6877
+ phone_number_id: string;
6878
+ /**
6879
+ * Platform Type
6880
+ *
6881
+ * Connectable when `CLOUD_API`.
6882
+ */
6883
+ platform_type: string;
6884
+ /**
6885
+ * Status
6886
+ *
6887
+ * Connectable when `CONNECTED`.
6888
+ */
6889
+ status: string;
6890
+ /**
6891
+ * Verified Name
6892
+ */
6893
+ verified_name: string;
6894
+ /**
6895
+ * Waba Id
6896
+ */
6897
+ waba_id: string;
6898
+ };
6899
+ /**
6900
+ * MetaNumbersRequest
6901
+ */
6902
+ export type MetaNumbersRequest = {
6903
+ /**
6904
+ * Access Token
6905
+ *
6906
+ * A system user token.
6907
+ */
6908
+ access_token: string;
6909
+ /**
6910
+ * App Id
6911
+ */
6912
+ app_id: string;
6913
+ /**
6914
+ * App Secret
6915
+ */
6916
+ app_secret: string;
6917
+ /**
6918
+ * Waba Id
6919
+ *
6920
+ * The WhatsApp Business Account ID.
6921
+ */
6922
+ waba_id: string;
6923
+ };
6924
+ /**
6925
+ * MetaNumbersResponse
6926
+ */
6927
+ export type MetaNumbersResponse = {
6928
+ /**
6929
+ * Numbers
6930
+ */
6931
+ numbers: Array<MetaNumber>;
6932
+ };
6852
6933
  /**
6853
6934
  * ModelHostResponse
6854
6935
  *
@@ -10140,10 +10221,12 @@ export type RoutedTTS = {
10140
10221
  /**
10141
10222
  * Routes
10142
10223
  *
10143
- * What a router provider serves. Its entries are not written out: each one
10144
- * is a routed provider's own entry under the model id `<provider>/<model>`,
10145
- * built at load (`Catalog._route_entries`), so voices, languages, speed bounds
10146
- * and the provider's rates can never drift from the provider's entry.
10224
+ * What a router provider serves. Its entries for these providers are not
10225
+ * written out: each one is a routed provider's own entry under the model id
10226
+ * `<provider>/<model>`, built at load (`Catalog._route_entries`), so voices,
10227
+ * languages, speed bounds and the provider's rates can never drift from the
10228
+ * provider's entry. A model only the router serves (tts-cache-router's Maya),
10229
+ * with no provider entry to copy, is written out under the router itself.
10147
10230
  */
10148
10231
  export type Routes = {
10149
10232
  tts: RoutedTTS;
@@ -12539,7 +12622,7 @@ export type TemplateSend = {
12539
12622
  /**
12540
12623
  * Id
12541
12624
  *
12542
- * Twilio Content SID (HX…) or Gupshup template id.
12625
+ * The template's id from GET /v1/whatsapp/templates.
12543
12626
  */
12544
12627
  id: string;
12545
12628
  /**
@@ -13107,6 +13190,25 @@ export type TurnHandlingSpecOverride = {
13107
13190
  */
13108
13191
  preemptive_generation?: PreemptiveGenerationSpecOverride | null;
13109
13192
  };
13193
+ /**
13194
+ * TurnLLMUsage
13195
+ *
13196
+ * Tokens the LLM requests behind one reply used, a tool step's included.
13197
+ */
13198
+ export type TurnLLMUsage = {
13199
+ /**
13200
+ * Input Cached Tokens
13201
+ */
13202
+ input_cached_tokens: number;
13203
+ /**
13204
+ * Input Tokens
13205
+ */
13206
+ input_tokens: number;
13207
+ /**
13208
+ * Output Tokens
13209
+ */
13210
+ output_tokens: number;
13211
+ };
13110
13212
  /**
13111
13213
  * TurnMetrics
13112
13214
  *
@@ -13139,6 +13241,7 @@ export type TurnMetrics = {
13139
13241
  * Llm Tokens Per Second
13140
13242
  */
13141
13243
  llm_tokens_per_second?: number | null;
13244
+ llm_usage?: TurnLLMUsage | null;
13142
13245
  /**
13143
13246
  * On User Turn Completed Delay
13144
13247
  */
@@ -13966,7 +14069,7 @@ export type WhatsAppTemplate = {
13966
14069
  /**
13967
14070
  * Created At
13968
14071
  */
13969
- created_at: string;
14072
+ created_at: string | null;
13970
14073
  /**
13971
14074
  * Examples
13972
14075
  */
@@ -23026,6 +23129,46 @@ export type WhatsappBatchesSendResults = {
23026
23129
  200: WhatsAppBatchResponse;
23027
23130
  };
23028
23131
  export type WhatsappBatchesSendResult = WhatsappBatchesSendResults[keyof WhatsappBatchesSendResults];
23132
+ export type WhatsappMetaNumbersListData = {
23133
+ body: MetaNumbersRequest;
23134
+ path?: never;
23135
+ query?: never;
23136
+ url: '/v1/whatsapp/meta-numbers';
23137
+ };
23138
+ export type WhatsappMetaNumbersListErrors = {
23139
+ /**
23140
+ * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
23141
+ */
23142
+ 400: ErrorResponse;
23143
+ /**
23144
+ * Missing credential, or one that is revoked or no longer a member of this organization.
23145
+ */
23146
+ 401: ErrorResponse;
23147
+ /**
23148
+ * Authenticated, but this organization role may not perform the operation.
23149
+ */
23150
+ 403: ErrorResponse;
23151
+ /**
23152
+ * The resource's current state forbids this — a name already taken, a job already running.
23153
+ */
23154
+ 409: ErrorResponse;
23155
+ /**
23156
+ * The request did not match this operation's schema; `detail.errors` lists each field.
23157
+ */
23158
+ 422: ErrorResponse;
23159
+ /**
23160
+ * Unexpected error. Every error this API returns carries this body.
23161
+ */
23162
+ default: ErrorResponse;
23163
+ };
23164
+ export type WhatsappMetaNumbersListError = WhatsappMetaNumbersListErrors[keyof WhatsappMetaNumbersListErrors];
23165
+ export type WhatsappMetaNumbersListResults = {
23166
+ /**
23167
+ * Successful Response
23168
+ */
23169
+ 200: MetaNumbersResponse;
23170
+ };
23171
+ export type WhatsappMetaNumbersListResult = WhatsappMetaNumbersListResults[keyof WhatsappMetaNumbersListResults];
23029
23172
  export type WhatsappTemplatesListData = {
23030
23173
  body?: never;
23031
23174
  path?: never;