@botozap/sdk 0.9.0 → 0.10.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/index.d.cts CHANGED
@@ -141,6 +141,8 @@ interface ConversationReferral {
141
141
  }
142
142
  interface Conversation {
143
143
  id: string;
144
+ /** Pausa do agente aguardando humano (ISO 8601); null quando não pausado. */
145
+ agent_paused_at?: string | null;
144
146
  /** UUID interno do Número da própria Conversa. */
145
147
  phone_number_id?: string;
146
148
  contact?: {
@@ -1569,6 +1571,10 @@ type AiCatalogModel = {
1569
1571
  cache_read_usd_per_million: number | null;
1570
1572
  cache_write_usd_per_million: number | null;
1571
1573
  notes: ("request_fee" | "long_context" | "image_input" | "variable")[];
1574
+ /** Absent: reported by the credential's own provider. `"openrouter"`: the provider's own list
1575
+ * price read from OpenRouter's public catalog, for providers whose model list has no prices
1576
+ * (OpenAI, Anthropic, Google, DeepSeek). */
1577
+ source?: "openrouter";
1572
1578
  } | null;
1573
1579
  };
1574
1580
  type AiModelCatalogSnapshot = {
@@ -3870,6 +3876,10 @@ declare class Contacts {
3870
3876
  }
3871
3877
 
3872
3878
  interface ListConversationsParams extends CursorParams {
3879
+ /** Recorta as conversas pelos canais do negócio autorizado. */
3880
+ customer_id?: string;
3881
+ /** true: somente conversas com agente pausado aguardando humano. */
3882
+ agent_paused?: boolean;
3873
3883
  /** id da Meta OU uuid interno do número. */
3874
3884
  phone_number_id?: string;
3875
3885
  /** "active" | "ended" — derivado da janela de 24h. */
@@ -4226,6 +4236,9 @@ declare class WebhookDeliveries {
4226
4236
  interface Me {
4227
4237
  /** UUID da Conta derivado pela API a partir da chave autenticada. */
4228
4238
  account_id: string;
4239
+ /** Nome da Conta (#629). Ausente em versões anteriores da API — opcional
4240
+ * para continuar compatível com um servidor sem o campo. */
4241
+ account_name?: string;
4229
4242
  /** Ambiente ao qual a chave pertence. */
4230
4243
  environment: "live" | "sandbox";
4231
4244
  /** Scopes efetivos concedidos à chave. */
package/dist/index.d.ts CHANGED
@@ -141,6 +141,8 @@ interface ConversationReferral {
141
141
  }
142
142
  interface Conversation {
143
143
  id: string;
144
+ /** Pausa do agente aguardando humano (ISO 8601); null quando não pausado. */
145
+ agent_paused_at?: string | null;
144
146
  /** UUID interno do Número da própria Conversa. */
145
147
  phone_number_id?: string;
146
148
  contact?: {
@@ -1569,6 +1571,10 @@ type AiCatalogModel = {
1569
1571
  cache_read_usd_per_million: number | null;
1570
1572
  cache_write_usd_per_million: number | null;
1571
1573
  notes: ("request_fee" | "long_context" | "image_input" | "variable")[];
1574
+ /** Absent: reported by the credential's own provider. `"openrouter"`: the provider's own list
1575
+ * price read from OpenRouter's public catalog, for providers whose model list has no prices
1576
+ * (OpenAI, Anthropic, Google, DeepSeek). */
1577
+ source?: "openrouter";
1572
1578
  } | null;
1573
1579
  };
1574
1580
  type AiModelCatalogSnapshot = {
@@ -3870,6 +3876,10 @@ declare class Contacts {
3870
3876
  }
3871
3877
 
3872
3878
  interface ListConversationsParams extends CursorParams {
3879
+ /** Recorta as conversas pelos canais do negócio autorizado. */
3880
+ customer_id?: string;
3881
+ /** true: somente conversas com agente pausado aguardando humano. */
3882
+ agent_paused?: boolean;
3873
3883
  /** id da Meta OU uuid interno do número. */
3874
3884
  phone_number_id?: string;
3875
3885
  /** "active" | "ended" — derivado da janela de 24h. */
@@ -4226,6 +4236,9 @@ declare class WebhookDeliveries {
4226
4236
  interface Me {
4227
4237
  /** UUID da Conta derivado pela API a partir da chave autenticada. */
4228
4238
  account_id: string;
4239
+ /** Nome da Conta (#629). Ausente em versões anteriores da API — opcional
4240
+ * para continuar compatível com um servidor sem o campo. */
4241
+ account_name?: string;
4229
4242
  /** Ambiente ao qual a chave pertence. */
4230
4243
  environment: "live" | "sandbox";
4231
4244
  /** Scopes efetivos concedidos à chave. */
package/dist/index.js CHANGED
@@ -5480,6 +5480,8 @@ var Conversations = class {
5480
5480
  {
5481
5481
  query: {
5482
5482
  limit: params.limit,
5483
+ customer_id: params.customer_id,
5484
+ agent_paused: params.agent_paused === void 0 ? void 0 : String(params.agent_paused),
5483
5485
  after: params.after,
5484
5486
  before: params.before,
5485
5487
  phone_number_id: params.phone_number_id,