@periskope/types 0.6.463 → 0.6.464

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.
@@ -13,12 +13,12 @@ export type AddonPackId = SeatAddonPackId | RecurringAddonPackId;
13
13
  export type SeatAddonPackId = 'v2-additional-phone-pro' | 'v2-additional-user-pro' | 'v2-additional-phone-starter' | 'v2-additional-user-starter';
14
14
  /** Shared by v1 and v2 — recurring optional add-ons. */
15
15
  export type RecurringAddonPackId = 'priority-support-pack' | 'automation-pack';
16
- /** Shared by v1 and v2 — one-time charge packs. */
16
+ /** Shared by v1 and v2 — one-time charge packs. `ai-pack`: 1,000 AI credits per quantity unit. */
17
17
  export type ChargesPack = 'ai-pack' | 'bulk-message-credits' | 'guided-onboarding' | 'support-call' | 'support-call-pack';
18
18
  /** Packs with no billing-version prefix — included under both v1 and v2. */
19
19
  export type GenericPackId = RecurringAddonPackId | ChargesPack;
20
20
  export declare const GENERIC_PACK_IDS: readonly GenericPackId[];
21
- export type UsageType = 'ai_credits' | 'automation_rules';
21
+ export type UsageType = 'ai_credits' | 'automation_rules' | 'bm_credits';
22
22
  export type UsageAllowances = Partial<Record<UsageType, number>>;
23
23
  export type UsageConsumption = Partial<Record<UsageType, number>>;
24
24
  /** Recurring add-on flags derived from subscription line items. */
@@ -28,7 +28,10 @@ export type OrgPlanV2 = Merge<OverrideProperties<OrgPlanEnterprise | OrgPlanNonE
28
28
  }>, {
29
29
  billing_version: 'v2';
30
30
  usage_allowances?: UsageAllowances;
31
+ usage_consumption?: UsageConsumption;
31
32
  addon_entitlements?: V2AddonEntitlements;
33
+ /** Paid one-time charge invoice ids already granted — webhook idempotency. */
34
+ processed_charge_invoices?: string[];
32
35
  }>;
33
36
  export type OrgPlanV1 = (OrgPlanEnterprise | OrgPlanNonEnterprise) & {
34
37
  billing_version?: 'v1';
@@ -102,6 +105,7 @@ export type RecurringAddonOption = {
102
105
  unit_price: BillingMoney;
103
106
  /** e.g. "pack" for automation rules. */
104
107
  unit_label?: string;
108
+ /** Automation rules included per pack unit (`automation-pack` — default `25`). */
105
109
  rules_per_pack?: number;
106
110
  };
107
111
  export type GetRecurringAddonsParams = {
@@ -111,7 +115,7 @@ export type GetRecurringAddonsResponse = {
111
115
  automation_pack: RecurringAddonOption;
112
116
  priority_support: RecurringAddonOption;
113
117
  };
114
- export type OrderSummaryItemType = 'plan' | 'addon';
118
+ export type OrderSummaryItemType = 'plan' | 'addon' | 'charge';
115
119
  export type OrderSummaryItem = {
116
120
  type: OrderSummaryItemType;
117
121
  item_price_id: string;
@@ -153,6 +157,25 @@ export type GetOrderSummaryResponse = {
153
157
  /** Next full recurring charge — null when not available on estimate. */
154
158
  next_charge: OrderSummaryNextCharge | null;
155
159
  };
160
+ export type GetChargeOrderSummaryRequestBody = {
161
+ line_items: BillingV2LineItem[];
162
+ /** Chargebee coupon id — resolve via POST /get-coupon-details */
163
+ coupon_id?: string;
164
+ /** Override currency (e.g. INR, USD). Omit to use customer default. */
165
+ currency?: string;
166
+ };
167
+ export type GetChargeOrderSummaryResponse = {
168
+ currency_code: string;
169
+ items: OrderSummaryItem[];
170
+ /** Line items with quantity > 0 */
171
+ item_count: number;
172
+ subtotal: BillingMoney;
173
+ credits_applied: BillingMoney | null;
174
+ coupon: AppliedCouponSummary | null;
175
+ total: BillingMoney;
176
+ /** Amount due now — equals total for one-time charges (no proration). */
177
+ due_today: BillingMoney;
178
+ };
156
179
  export type CouponDiscountType = 'fixed_amount' | 'percentage' | 'offer_quantity';
157
180
  export type GetCouponDetailsRequestBody = {
158
181
  coupon_code: string;
@@ -334,6 +357,12 @@ export type PlanSummaryNextInvoice = {
334
357
  /** e.g. "USD 56.00 on 18 Jul 2026" */
335
358
  label: string;
336
359
  };
360
+ /** Scheduled end-of-term cancellation — null when subscription will renew. */
361
+ export type PlanSummaryCancelsOn = {
362
+ date: number;
363
+ /** e.g. "Cancels on 18 Jul 2026" */
364
+ label: string;
365
+ };
337
366
  export type PlanSummarySection = {
338
367
  current_plan: string;
339
368
  /** null when org_plan is not seeded yet */
@@ -345,8 +374,12 @@ export type PlanSummarySection = {
345
374
  rules_allowance: number | null;
346
375
  /** null on free trial — recurring BM only; free trial has top-up via charge_packs */
347
376
  bm_credits_allowance: number | null;
348
- /** null on free trial or when no upcoming renewal */
377
+ /** null on free trial recurring AI from seats; purchased top-up via charge_packs */
378
+ ai_credits_allowance: number | null;
379
+ /** null on free trial, when scheduled to cancel, or when no upcoming renewal */
349
380
  next_invoice: PlanSummaryNextInvoice | null;
381
+ /** null unless subscription is scheduled to cancel at period end (`non_renewing`) */
382
+ cancels_on: PlanSummaryCancelsOn | null;
350
383
  };
351
384
  export type PlanSummarySubscriptionStatus = 'active' | 'unpaid' | 'inactive';
352
385
  export type PlanSummaryInvoice = ChargebeeInvoiceSummary & {
@@ -354,10 +387,12 @@ export type PlanSummaryInvoice = ChargebeeInvoiceSummary & {
354
387
  payment_url: string | null;
355
388
  };
356
389
  export type PlanSummaryChargePack = {
357
- pack_id: 'bulk-message-credits';
390
+ pack_id: 'bulk-message-credits' | 'ai-pack';
358
391
  lookup_key: string;
359
392
  name: string;
360
- /** Current top-up balance null when zero. */
393
+ /** Total purchased credits granted (from usage_allowances). */
394
+ purchased_credits: number | null;
395
+ /** Remaining after consumption — null when zero. */
361
396
  remaining_credits: number | null;
362
397
  };
363
398
  export type GetPlanSummaryResponse = {
@@ -366,8 +401,14 @@ export type GetPlanSummaryResponse = {
366
401
  subscription_status: PlanSummarySubscriptionStatus;
367
402
  /** Newest first — empty when customer has no invoices. */
368
403
  last_5_invoices: PlanSummaryInvoice[];
369
- /** BM top-up only — empty when top-up balance is zero. */
404
+ /** BM + AI one-time top-ups — empty when no purchased balance. */
370
405
  charge_packs: PlanSummaryChargePack[];
406
+ /** Purchased top-up allowances and consumption from org_plan (V2). */
407
+ usage: {
408
+ allowances: UsageAllowances;
409
+ consumption: UsageConsumption;
410
+ remaining: UsageAllowances;
411
+ } | null;
371
412
  };
372
413
  /** Raw Chargebee webhook POST body. */
373
414
  export type ChargebeeWebhookEventPayload = {
@@ -1 +1 @@
1
- {"version":3,"file":"billing.types.d.ts","sourceRoot":"","sources":["../src/billing.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAEtD,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAIlE,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,IAAI,CAAC;AAEzC,oBAAY,UAAU;IACpB,UAAU,kBAAkB;IAC5B,eAAe,uBAAuB;IACtC,cAAc,sBAAsB;IACpC,WAAW,mBAAmB;IAC9B,UAAU,kBAAkB;CAC7B;AAED,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG,oBAAoB,CAAC;AAEjE,+DAA+D;AAC/D,MAAM,MAAM,eAAe,GACvB,yBAAyB,GACzB,wBAAwB,GACxB,6BAA6B,GAC7B,4BAA4B,CAAC;AAEjC,wDAAwD;AACxD,MAAM,MAAM,oBAAoB,GAAG,uBAAuB,GAAG,iBAAiB,CAAC;AAE/E,mDAAmD;AACnD,MAAM,MAAM,WAAW,GACnB,SAAS,GACT,sBAAsB,GACtB,mBAAmB,GACnB,cAAc,GACd,mBAAmB,CAAC;AAExB,4EAA4E;AAC5E,MAAM,MAAM,aAAa,GAAG,oBAAoB,GAAG,WAAW,CAAC;AAE/D,eAAO,MAAM,gBAAgB,EAAE,SAAS,aAAa,EAQpD,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,kBAAkB,CAAC;AAE1D,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;AACjE,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;AAElE,mEAAmE;AACnE,MAAM,MAAM,mBAAmB,GAAG,OAAO,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AAM,CAAC;IACb,+DAA+D;IAC/D,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,oDAAoD;IACpD,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,eAAe,EAAE,cAAc,CAAC;IAChC,OAAO,EAAE,kBAAkB,CAAC;IAC5B,mBAAmB,EAAE,6BAA6B,CAAC;IACnD,0DAA0D;IAC1D,eAAe,EAAE,kBAAkB,EAAE,CAAC;IACtC,kEAAkE;IAClE,YAAY,EAAE,qBAAqB,EAAE,CAAC;IACtC,sEAAsE;IACtE,KAAK,EAAE;QACL,UAAU,EAAE,eAAe,CAAC;QAC5B,WAAW,EAAE,gBAAgB,CAAC;QAC9B,SAAS,EAAE,eAAe,CAAC;KAC5B,GAAG,IAAI,CAAC;CACV,CAAC;AAIF,uCAAuC;AACvC,MAAM,MAAM,4BAA4B,GAAG;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,EAAE,IAAI,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,cAAc,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -432,31 +432,31 @@ export type Rule = OverrideProperties<Tables<'tbl_automation_rules'>, {
432
432
  export declare const RuleInfoSchemaMap: {
433
433
  message: {
434
434
  triggers: readonly ["message.created", "message.updated", "message.flagged", "message.unflagged", "message.deleted"];
435
- variableMaps: (Record<"message.chat_id" | "message.org_id" | "message.org_phone" | "message.author" | "message.body" | "message.flag_status" | "message.has_quoted_msg" | "message.media" | "message.message_id" | "message.message_ticket_id" | "message.message_type" | "message.performed_by" | "message.sender_phone" | "message.timestamp" | "message.is_last_message", VariableNameValueType> | Record<"sender.org_id" | "sender.contact_id" | "sender.contact_name" | "sender.is_internal" | "sender.is_admin" | "sender.labels", VariableNameValueType> | Record<"chat.chat_id" | "chat.created_at" | "chat.org_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType>)[];
435
+ variableMaps: (Record<"message.org_id" | "message.chat_id" | "message.org_phone" | "message.author" | "message.body" | "message.flag_status" | "message.has_quoted_msg" | "message.media" | "message.message_id" | "message.message_ticket_id" | "message.message_type" | "message.performed_by" | "message.sender_phone" | "message.timestamp" | "message.is_last_message", VariableNameValueType> | Record<"sender.org_id" | "sender.contact_id" | "sender.contact_name" | "sender.is_internal" | "sender.is_admin" | "sender.labels", VariableNameValueType> | Record<"chat.created_at" | "chat.org_id" | "chat.chat_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType>)[];
436
436
  };
437
437
  ticket: {
438
438
  triggers: readonly ["ticket.created", "ticket.updated", "ticket.closed", "ticket.label.updated", "ticket.message.attached"];
439
- variableMaps: (Record<"message.chat_id" | "message.org_id" | "message.org_phone" | "message.author" | "message.body" | "message.flag_status" | "message.has_quoted_msg" | "message.media" | "message.message_id" | "message.message_ticket_id" | "message.message_type" | "message.performed_by" | "message.sender_phone" | "message.timestamp" | "message.is_last_message", VariableNameValueType> | Record<"sender.org_id" | "sender.contact_id" | "sender.contact_name" | "sender.is_internal" | "sender.is_admin" | "sender.labels", VariableNameValueType> | Record<"chat.chat_id" | "chat.created_at" | "chat.org_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType> | Record<"ticket.assignee" | "ticket.chat_id" | "ticket.created_at" | "ticket.due_date" | "ticket.org_id" | "ticket.priority" | "ticket.status" | "ticket.ticket_id" | "ticket.is_deleted" | "ticket.labels" | "ticket.custom_properties" | "ticket.subject" | "ticket.raised_by", VariableNameValueType>)[];
439
+ variableMaps: (Record<"message.org_id" | "message.chat_id" | "message.org_phone" | "message.author" | "message.body" | "message.flag_status" | "message.has_quoted_msg" | "message.media" | "message.message_id" | "message.message_ticket_id" | "message.message_type" | "message.performed_by" | "message.sender_phone" | "message.timestamp" | "message.is_last_message", VariableNameValueType> | Record<"sender.org_id" | "sender.contact_id" | "sender.contact_name" | "sender.is_internal" | "sender.is_admin" | "sender.labels", VariableNameValueType> | Record<"chat.created_at" | "chat.org_id" | "chat.chat_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType> | Record<"ticket.created_at" | "ticket.org_id" | "ticket.chat_id" | "ticket.ticket_id" | "ticket.assignee" | "ticket.due_date" | "ticket.priority" | "ticket.status" | "ticket.is_deleted" | "ticket.labels" | "ticket.custom_properties" | "ticket.subject" | "ticket.raised_by", VariableNameValueType>)[];
440
440
  };
441
441
  chat: {
442
442
  triggers: readonly ["chat.created", "chat.label.updated"];
443
- variableMaps: Record<"chat.chat_id" | "chat.created_at" | "chat.org_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType>[];
443
+ variableMaps: Record<"chat.created_at" | "chat.org_id" | "chat.chat_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType>[];
444
444
  };
445
445
  reaction: {
446
446
  triggers: readonly ["reaction.added"];
447
- variableMaps: (Record<"message.chat_id" | "message.org_id" | "message.org_phone" | "message.author" | "message.body" | "message.flag_status" | "message.has_quoted_msg" | "message.media" | "message.message_id" | "message.message_ticket_id" | "message.message_type" | "message.performed_by" | "message.sender_phone" | "message.timestamp" | "message.is_last_message", VariableNameValueType> | Record<"sender.org_id" | "sender.contact_id" | "sender.contact_name" | "sender.is_internal" | "sender.is_admin" | "sender.labels", VariableNameValueType> | Record<"chat.chat_id" | "chat.created_at" | "chat.org_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType> | Record<"reaction.chat_id" | "reaction.reaction" | "reaction.message_id" | "reaction.sender_id" | "reaction.reaction_id", VariableNameValueType>)[];
447
+ variableMaps: (Record<"message.org_id" | "message.chat_id" | "message.org_phone" | "message.author" | "message.body" | "message.flag_status" | "message.has_quoted_msg" | "message.media" | "message.message_id" | "message.message_ticket_id" | "message.message_type" | "message.performed_by" | "message.sender_phone" | "message.timestamp" | "message.is_last_message", VariableNameValueType> | Record<"sender.org_id" | "sender.contact_id" | "sender.contact_name" | "sender.is_internal" | "sender.is_admin" | "sender.labels", VariableNameValueType> | Record<"chat.created_at" | "chat.org_id" | "chat.chat_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType> | Record<"reaction.chat_id" | "reaction.reaction" | "reaction.message_id" | "reaction.sender_id" | "reaction.reaction_id", VariableNameValueType>)[];
448
448
  };
449
449
  task: {
450
450
  triggers: readonly ["task.created", "task.assignee.updated"];
451
- variableMaps: (Record<"chat.chat_id" | "chat.created_at" | "chat.org_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType> | Record<"task.assignee" | "task.created_at" | "task.due_date" | "task.notes" | "task.org_id" | "task.priority" | "task.status" | "task.task_id" | "task.title", VariableNameValueType>)[];
451
+ variableMaps: (Record<"chat.created_at" | "chat.org_id" | "chat.chat_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType> | Record<"task.created_at" | "task.org_id" | "task.assignee" | "task.due_date" | "task.notes" | "task.priority" | "task.status" | "task.task_id" | "task.title", VariableNameValueType>)[];
452
452
  };
453
453
  call: {
454
454
  triggers: readonly ["call.created"];
455
- variableMaps: (Record<"chat.chat_id" | "chat.created_at" | "chat.org_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType> | Record<"call_notification.chat_id" | "call_notification.org_id" | "call_notification.author" | "call_notification.timestamp" | "call_notification.notification_id" | "call_notification.isVideo" | "call_notification.isOutgoing" | "call_notification.call_result", VariableNameValueType>)[];
455
+ variableMaps: (Record<"chat.created_at" | "chat.org_id" | "chat.chat_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType> | Record<"call_notification.org_id" | "call_notification.chat_id" | "call_notification.author" | "call_notification.timestamp" | "call_notification.notification_id" | "call_notification.isVideo" | "call_notification.isOutgoing" | "call_notification.call_result", VariableNameValueType>)[];
456
456
  };
457
457
  member: {
458
458
  triggers: readonly ["member.joined"];
459
- variableMaps: (Record<"chat.chat_id" | "chat.created_at" | "chat.org_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType> | Record<"member_notification.chat_id" | "member_notification.org_id" | "member_notification.type" | "member_notification.org_phone" | "member_notification.timestamp" | "member_notification.notification_id" | "member_notification.recipientids", VariableNameValueType>)[];
459
+ variableMaps: (Record<"chat.created_at" | "chat.org_id" | "chat.chat_id" | "chat.org_phone" | "chat.labels" | "chat.assigned_to" | "chat.chat_name" | "chat.chat_type" | "chat.group_description" | "chat.info_admins_only" | "chat.chat_org_phones" | "chat.messages_admins_only" | "chat.custom_properties" | "chat.initiated_by" | "chat.has_flagged_messages" | "chat.members" | "chat.assignee_name", VariableNameValueType> | Record<"member_notification.type" | "member_notification.org_id" | "member_notification.chat_id" | "member_notification.org_phone" | "member_notification.timestamp" | "member_notification.notification_id" | "member_notification.recipientids", VariableNameValueType>)[];
460
460
  };
461
461
  };
462
462
  export declare const additionalAssigneeOptions: {
@@ -2352,6 +2352,69 @@ export type Database = {
2352
2352
  }
2353
2353
  ];
2354
2354
  };
2355
+ tbl_mcp_clients: {
2356
+ Row: {
2357
+ client: Json;
2358
+ client_id: string;
2359
+ created_at: string;
2360
+ };
2361
+ Insert: {
2362
+ client: Json;
2363
+ client_id: string;
2364
+ created_at?: string;
2365
+ };
2366
+ Update: {
2367
+ client?: Json;
2368
+ client_id?: string;
2369
+ created_at?: string;
2370
+ };
2371
+ Relationships: [];
2372
+ };
2373
+ tbl_mcp_tokens: {
2374
+ Row: {
2375
+ access_token_expires_at: string;
2376
+ access_token_hash: string;
2377
+ client_id: string;
2378
+ client_name: string | null;
2379
+ created_at: string;
2380
+ id: string;
2381
+ integration_token_id: string;
2382
+ org_id: string;
2383
+ phone_scopes: string[] | null;
2384
+ refresh_token_expires_at: string;
2385
+ refresh_token_hash: string;
2386
+ revoked_at: string | null;
2387
+ };
2388
+ Insert: {
2389
+ access_token_expires_at: string;
2390
+ access_token_hash: string;
2391
+ client_id: string;
2392
+ client_name?: string | null;
2393
+ created_at?: string;
2394
+ id?: string;
2395
+ integration_token_id: string;
2396
+ org_id: string;
2397
+ phone_scopes?: string[] | null;
2398
+ refresh_token_expires_at: string;
2399
+ refresh_token_hash: string;
2400
+ revoked_at?: string | null;
2401
+ };
2402
+ Update: {
2403
+ access_token_expires_at?: string;
2404
+ access_token_hash?: string;
2405
+ client_id?: string;
2406
+ client_name?: string | null;
2407
+ created_at?: string;
2408
+ id?: string;
2409
+ integration_token_id?: string;
2410
+ org_id?: string;
2411
+ phone_scopes?: string[] | null;
2412
+ refresh_token_expires_at?: string;
2413
+ refresh_token_hash?: string;
2414
+ revoked_at?: string | null;
2415
+ };
2416
+ Relationships: [];
2417
+ };
2355
2418
  tbl_org: {
2356
2419
  Row: {
2357
2420
  ai_settings: Json | null;
@@ -3732,6 +3795,12 @@ export type Database = {
3732
3795
  };
3733
3796
  Returns: Json[];
3734
3797
  };
3798
+ get_mcp_connections: {
3799
+ Args: {
3800
+ org_id_input: string;
3801
+ };
3802
+ Returns: Json;
3803
+ };
3735
3804
  get_chat_properties_by_chat_ids: {
3736
3805
  Args: {
3737
3806
  chat_id_input?: string[];
@@ -4065,6 +4134,12 @@ export type Database = {
4065
4134
  };
4066
4135
  Returns: undefined;
4067
4136
  };
4137
+ revoke_mcp_connection: {
4138
+ Args: {
4139
+ id_input: string;
4140
+ };
4141
+ Returns: undefined;
4142
+ };
4068
4143
  update_chat_properties: {
4069
4144
  Args: {
4070
4145
  chat_id_input: string[];