@talqing/sdk 0.20.0 → 0.21.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.
@@ -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;
@@ -13966,7 +14049,7 @@ export type WhatsAppTemplate = {
13966
14049
  /**
13967
14050
  * Created At
13968
14051
  */
13969
- created_at: string;
14052
+ created_at: string | null;
13970
14053
  /**
13971
14054
  * Examples
13972
14055
  */
@@ -23026,6 +23109,46 @@ export type WhatsappBatchesSendResults = {
23026
23109
  200: WhatsAppBatchResponse;
23027
23110
  };
23028
23111
  export type WhatsappBatchesSendResult = WhatsappBatchesSendResults[keyof WhatsappBatchesSendResults];
23112
+ export type WhatsappMetaNumbersListData = {
23113
+ body: MetaNumbersRequest;
23114
+ path?: never;
23115
+ query?: never;
23116
+ url: '/v1/whatsapp/meta-numbers';
23117
+ };
23118
+ export type WhatsappMetaNumbersListErrors = {
23119
+ /**
23120
+ * Well-formed, but rejected by a rule; `detail.errors` lists each problem.
23121
+ */
23122
+ 400: ErrorResponse;
23123
+ /**
23124
+ * Missing credential, or one that is revoked or no longer a member of this organization.
23125
+ */
23126
+ 401: ErrorResponse;
23127
+ /**
23128
+ * Authenticated, but this organization role may not perform the operation.
23129
+ */
23130
+ 403: ErrorResponse;
23131
+ /**
23132
+ * The resource's current state forbids this — a name already taken, a job already running.
23133
+ */
23134
+ 409: ErrorResponse;
23135
+ /**
23136
+ * The request did not match this operation's schema; `detail.errors` lists each field.
23137
+ */
23138
+ 422: ErrorResponse;
23139
+ /**
23140
+ * Unexpected error. Every error this API returns carries this body.
23141
+ */
23142
+ default: ErrorResponse;
23143
+ };
23144
+ export type WhatsappMetaNumbersListError = WhatsappMetaNumbersListErrors[keyof WhatsappMetaNumbersListErrors];
23145
+ export type WhatsappMetaNumbersListResults = {
23146
+ /**
23147
+ * Successful Response
23148
+ */
23149
+ 200: MetaNumbersResponse;
23150
+ };
23151
+ export type WhatsappMetaNumbersListResult = WhatsappMetaNumbersListResults[keyof WhatsappMetaNumbersListResults];
23029
23152
  export type WhatsappTemplatesListData = {
23030
23153
  body?: never;
23031
23154
  path?: never;