Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

1.2 KB
Raw Blame
/**
 * Generated by orval v7.21.0 🍺
 * Do not edit manually.
 * document_storage_service
 * OpenAPI spec version: 0.1.0
 */

import type { WhatsAppPairingState } from './whatsAppPairingState';
import type { WhatsAppPairStateChallenge } from './whatsAppPairStateChallenge';
import type { WhatsAppPairStateCode } from './whatsAppPairStateCode';
import type { WhatsAppPairStateIdentityJid } from './whatsAppPairStateIdentityJid';
import type { WhatsAppPairStateQr } from './whatsAppPairStateQr';

/**
 * Owner-only pairing status. Deliberately has no `Debug` implementation: the
QR and pairing code are secrets for the duration of the transaction.
 */
export interface WhatsAppPairState {
  /** WhatsApp's WebAuthn request options while the state is `passkey`; the
native authenticator answers through the passkey route. */
  challenge?: WhatsAppPairStateChallenge;
  /** Pairing code to type on the phone, when phone-number pairing is used. */
  code?: WhatsAppPairStateCode;
  /** Same owner-bound deadline. */
  expiresAt: string;
  /** Verified identity once paired. */
  identityJid?: WhatsAppPairStateIdentityJid;
  /** Current QR content; rotates while the transaction waits. */
  qr?: WhatsAppPairStateQr;
  /** Current state. */
  state: WhatsAppPairingState;
}