@botozap/sdk 0.4.0 → 0.4.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.
package/dist/index.d.cts CHANGED
@@ -2312,11 +2312,12 @@ declare class AiRoutersResource {
2312
2312
  sticky_intent?: string | null;
2313
2313
  }): Promise<AiRouterTest>;
2314
2314
  /** Ativa membro sem criar vínculo direto com canal. */
2315
- activateMember(input: AiRevision & {
2315
+ activateMember(input: AiScope & {
2316
2316
  id: string;
2317
- } & {
2318
2317
  agent_id: string;
2319
2318
  mode: "automatic" | "assisted";
2319
+ /** Revisão atual do agente membro (a API recusa `expected_revision` aqui). */
2320
+ expected_agent_revision: string;
2320
2321
  }): Promise<AiRecord>;
2321
2322
  }
2322
2323
  declare class AiCasesResource {
@@ -2922,6 +2923,8 @@ interface JourneyConfig {
2922
2923
  date_field_key?: string | null;
2923
2924
  stage_id?: string | null;
2924
2925
  demand_status?: "open" | "in_progress" | "waiting_customer" | null;
2926
+ /** Serviço da Agenda que dispara a régua quando `trigger_kind` é `appointment`. */
2927
+ appointment_service_id?: string | null;
2925
2928
  offset_days?: number;
2926
2929
  offset_hours?: number;
2927
2930
  yearly?: boolean;
@@ -2931,7 +2934,8 @@ interface JourneyConfig {
2931
2934
  send_end_hour?: number;
2932
2935
  steps: JourneyStep[];
2933
2936
  }
2934
- interface Journey extends Required<Omit<JourneyConfig, "steps">> {
2937
+ interface Journey extends Required<Omit<JourneyConfig, "steps" | "appointment_service_id">> {
2938
+ appointment_service_id?: string | null;
2935
2939
  id: string;
2936
2940
  version: number;
2937
2941
  archived_at: string | null;
@@ -3048,6 +3052,8 @@ interface ConversationNote {
3048
3052
  conversation_id: string;
3049
3053
  author_user_id: string | null;
3050
3054
  author_api_key_id: string | null;
3055
+ /** Nota registrada por um agente de IA. */
3056
+ author_agent_id?: string | null;
3051
3057
  body: string;
3052
3058
  version: number;
3053
3059
  created_at: string;
@@ -3240,7 +3246,8 @@ interface StageRuleInput {
3240
3246
  require_next_step: boolean;
3241
3247
  }
3242
3248
  interface StageRule extends Omit<StageRuleInput, "expected_version"> {
3243
- account_id: string;
3249
+ /** Presente em `stageRules` (GET); a resposta de `configureStageRule` não o inclui. */
3250
+ account_id?: string;
3244
3251
  stage_id: string;
3245
3252
  version: number;
3246
3253
  updated_at: string;
package/dist/index.d.ts CHANGED
@@ -2312,11 +2312,12 @@ declare class AiRoutersResource {
2312
2312
  sticky_intent?: string | null;
2313
2313
  }): Promise<AiRouterTest>;
2314
2314
  /** Ativa membro sem criar vínculo direto com canal. */
2315
- activateMember(input: AiRevision & {
2315
+ activateMember(input: AiScope & {
2316
2316
  id: string;
2317
- } & {
2318
2317
  agent_id: string;
2319
2318
  mode: "automatic" | "assisted";
2319
+ /** Revisão atual do agente membro (a API recusa `expected_revision` aqui). */
2320
+ expected_agent_revision: string;
2320
2321
  }): Promise<AiRecord>;
2321
2322
  }
2322
2323
  declare class AiCasesResource {
@@ -2922,6 +2923,8 @@ interface JourneyConfig {
2922
2923
  date_field_key?: string | null;
2923
2924
  stage_id?: string | null;
2924
2925
  demand_status?: "open" | "in_progress" | "waiting_customer" | null;
2926
+ /** Serviço da Agenda que dispara a régua quando `trigger_kind` é `appointment`. */
2927
+ appointment_service_id?: string | null;
2925
2928
  offset_days?: number;
2926
2929
  offset_hours?: number;
2927
2930
  yearly?: boolean;
@@ -2931,7 +2934,8 @@ interface JourneyConfig {
2931
2934
  send_end_hour?: number;
2932
2935
  steps: JourneyStep[];
2933
2936
  }
2934
- interface Journey extends Required<Omit<JourneyConfig, "steps">> {
2937
+ interface Journey extends Required<Omit<JourneyConfig, "steps" | "appointment_service_id">> {
2938
+ appointment_service_id?: string | null;
2935
2939
  id: string;
2936
2940
  version: number;
2937
2941
  archived_at: string | null;
@@ -3048,6 +3052,8 @@ interface ConversationNote {
3048
3052
  conversation_id: string;
3049
3053
  author_user_id: string | null;
3050
3054
  author_api_key_id: string | null;
3055
+ /** Nota registrada por um agente de IA. */
3056
+ author_agent_id?: string | null;
3051
3057
  body: string;
3052
3058
  version: number;
3053
3059
  created_at: string;
@@ -3240,7 +3246,8 @@ interface StageRuleInput {
3240
3246
  require_next_step: boolean;
3241
3247
  }
3242
3248
  interface StageRule extends Omit<StageRuleInput, "expected_version"> {
3243
- account_id: string;
3249
+ /** Presente em `stageRules` (GET); a resposta de `configureStageRule` não o inclui. */
3250
+ account_id?: string;
3244
3251
  stage_id: string;
3245
3252
  version: number;
3246
3253
  updated_at: string;