@oya-ai/browser 1.0.301 → 1.0.302

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.cjs CHANGED
@@ -987,6 +987,10 @@ var gateways = (http) => ({
987
987
  whatsAppStatus: (id) => http().request("GET", path(id) + "/whatsapp"),
988
988
  /** Stop handling incoming messages and erase local WhatsApp credentials. */
989
989
  disconnectWhatsApp: (id) => http().request("DELETE", path(id) + "/whatsapp"),
990
+ /** Read the reply policy as a pairing administrator. */
991
+ whatsAppReplyPolicy: (id) => http().request("GET", path(id) + "/whatsapp/reply-policy"),
992
+ /** Replace the reply policy without reconnecting the linked number. */
993
+ setWhatsAppReplyPolicy: (id, policy) => http().request("PUT", path(id) + "/whatsapp/reply-policy", policy),
990
994
  /** Rotate the key accepted by the assistant webhook. */
991
995
  rotateInboundKey: (id) => http().request("POST", path(id) + "/inbound-key")
992
996
  });
package/dist/index.d.cts CHANGED
@@ -1384,6 +1384,11 @@ interface WhatsAppDevice {
1384
1384
  /** Short-lived pairing material. */
1385
1385
  qr: string | null;
1386
1386
  }
1387
+ /** Administrator-owned rules for automatic replies from the linked number. */
1388
+ interface WhatsAppReplyPolicy {
1389
+ /** Who may start a WhatsApp conversation. */ mode: 'all' | 'allowlist' | 'nobody';
1390
+ /** Allowed international phone numbers. */ numbers: string[];
1391
+ }
1387
1392
  /** Reusable instructions owned by a project. */
1388
1393
  interface AssistantSkill {
1389
1394
  /** Assignment identity. */ id: string;
@@ -1828,6 +1833,8 @@ declare class Oya {
1828
1833
  connectWhatsApp: (id: string) => Promise<WhatsAppDevice>;
1829
1834
  whatsAppStatus: (id: string) => Promise<WhatsAppDevice>;
1830
1835
  disconnectWhatsApp: (id: string) => Promise<void>;
1836
+ whatsAppReplyPolicy: (id: string) => Promise<WhatsAppReplyPolicy>;
1837
+ setWhatsAppReplyPolicy: (id: string, policy: WhatsAppReplyPolicy) => Promise<WhatsAppReplyPolicy>;
1831
1838
  rotateInboundKey: (id: string) => Promise<{
1832
1839
  secret: string;
1833
1840
  }>;
@@ -1853,4 +1860,4 @@ declare class Oya {
1853
1860
  }
1854
1861
 
1855
1862
  export { Browser, MAX_FILE_BYTES, Oya, OyaError, Run, Oya as default, file };
1856
- export type { Activity, Analysis, AnalyzeOptions, Assistant, AssistantDefinition, AssistantEvent, AssistantInput, AssistantMessage, AssistantProgram, AssistantProgramRevision, AssistantSampleRequest, AssistantSkill, AssistantTool, AttentionRequest, Block, BrowserDetail, BrowserInfo, CaptchaResult, CaptchaSolver, Config, ConfigUpdate, ControlCredential, ControlEvent, ControlOverview, ControlRole, ControlSession, Cookie, CookieFormat, DesktopOptions, EcsAuth, EcsConfig, Element, FileValue, Fingerprint, Health, HumanInputAction, ImportOptions, LlmCatalogEntry, LlmProvider, MfaConfig, MfaResult, ModelOptions, OyaOptions, PageFormat, PersonaGroup, PersonaInfo, PersonaPrefs, PlayResult, Playbook, PlaybookAnswer, PlaybookExport, PlaybookSummary, ProgramPreview, ProjectSettings, Provider, ProxyCreate, ProxyInfo, RecoverOptions, RunData, RunInfo, RunResult, SandboxRuntime, Signup, SignupOptions, SiteCredentials, StartOptions, StartResult, StopResult, SubmitOptions };
1863
+ export type { Activity, Analysis, AnalyzeOptions, Assistant, AssistantDefinition, AssistantEvent, AssistantInput, AssistantMessage, AssistantProgram, AssistantProgramRevision, AssistantSampleRequest, AssistantSkill, AssistantTool, AttentionRequest, Block, BrowserDetail, BrowserInfo, CaptchaResult, CaptchaSolver, Config, ConfigUpdate, ControlCredential, ControlEvent, ControlOverview, ControlRole, ControlSession, Cookie, CookieFormat, DesktopOptions, EcsAuth, EcsConfig, Element, FileValue, Fingerprint, Health, HumanInputAction, ImportOptions, LlmCatalogEntry, LlmProvider, MfaConfig, MfaResult, ModelOptions, OyaOptions, PageFormat, PersonaGroup, PersonaInfo, PersonaPrefs, PlayResult, Playbook, PlaybookAnswer, PlaybookExport, PlaybookSummary, ProgramPreview, ProjectSettings, Provider, ProxyCreate, ProxyInfo, RecoverOptions, RunData, RunInfo, RunResult, SandboxRuntime, Signup, SignupOptions, SiteCredentials, StartOptions, StartResult, StopResult, SubmitOptions, WhatsAppReplyPolicy };
package/dist/index.d.ts CHANGED
@@ -1384,6 +1384,11 @@ interface WhatsAppDevice {
1384
1384
  /** Short-lived pairing material. */
1385
1385
  qr: string | null;
1386
1386
  }
1387
+ /** Administrator-owned rules for automatic replies from the linked number. */
1388
+ interface WhatsAppReplyPolicy {
1389
+ /** Who may start a WhatsApp conversation. */ mode: 'all' | 'allowlist' | 'nobody';
1390
+ /** Allowed international phone numbers. */ numbers: string[];
1391
+ }
1387
1392
  /** Reusable instructions owned by a project. */
1388
1393
  interface AssistantSkill {
1389
1394
  /** Assignment identity. */ id: string;
@@ -1828,6 +1833,8 @@ declare class Oya {
1828
1833
  connectWhatsApp: (id: string) => Promise<WhatsAppDevice>;
1829
1834
  whatsAppStatus: (id: string) => Promise<WhatsAppDevice>;
1830
1835
  disconnectWhatsApp: (id: string) => Promise<void>;
1836
+ whatsAppReplyPolicy: (id: string) => Promise<WhatsAppReplyPolicy>;
1837
+ setWhatsAppReplyPolicy: (id: string, policy: WhatsAppReplyPolicy) => Promise<WhatsAppReplyPolicy>;
1831
1838
  rotateInboundKey: (id: string) => Promise<{
1832
1839
  secret: string;
1833
1840
  }>;
@@ -1853,4 +1860,4 @@ declare class Oya {
1853
1860
  }
1854
1861
 
1855
1862
  export { Browser, MAX_FILE_BYTES, Oya, OyaError, Run, Oya as default, file };
1856
- export type { Activity, Analysis, AnalyzeOptions, Assistant, AssistantDefinition, AssistantEvent, AssistantInput, AssistantMessage, AssistantProgram, AssistantProgramRevision, AssistantSampleRequest, AssistantSkill, AssistantTool, AttentionRequest, Block, BrowserDetail, BrowserInfo, CaptchaResult, CaptchaSolver, Config, ConfigUpdate, ControlCredential, ControlEvent, ControlOverview, ControlRole, ControlSession, Cookie, CookieFormat, DesktopOptions, EcsAuth, EcsConfig, Element, FileValue, Fingerprint, Health, HumanInputAction, ImportOptions, LlmCatalogEntry, LlmProvider, MfaConfig, MfaResult, ModelOptions, OyaOptions, PageFormat, PersonaGroup, PersonaInfo, PersonaPrefs, PlayResult, Playbook, PlaybookAnswer, PlaybookExport, PlaybookSummary, ProgramPreview, ProjectSettings, Provider, ProxyCreate, ProxyInfo, RecoverOptions, RunData, RunInfo, RunResult, SandboxRuntime, Signup, SignupOptions, SiteCredentials, StartOptions, StartResult, StopResult, SubmitOptions };
1863
+ export type { Activity, Analysis, AnalyzeOptions, Assistant, AssistantDefinition, AssistantEvent, AssistantInput, AssistantMessage, AssistantProgram, AssistantProgramRevision, AssistantSampleRequest, AssistantSkill, AssistantTool, AttentionRequest, Block, BrowserDetail, BrowserInfo, CaptchaResult, CaptchaSolver, Config, ConfigUpdate, ControlCredential, ControlEvent, ControlOverview, ControlRole, ControlSession, Cookie, CookieFormat, DesktopOptions, EcsAuth, EcsConfig, Element, FileValue, Fingerprint, Health, HumanInputAction, ImportOptions, LlmCatalogEntry, LlmProvider, MfaConfig, MfaResult, ModelOptions, OyaOptions, PageFormat, PersonaGroup, PersonaInfo, PersonaPrefs, PlayResult, Playbook, PlaybookAnswer, PlaybookExport, PlaybookSummary, ProgramPreview, ProjectSettings, Provider, ProxyCreate, ProxyInfo, RecoverOptions, RunData, RunInfo, RunResult, SandboxRuntime, Signup, SignupOptions, SiteCredentials, StartOptions, StartResult, StopResult, SubmitOptions, WhatsAppReplyPolicy };
package/dist/index.js CHANGED
@@ -955,6 +955,10 @@ var gateways = (http) => ({
955
955
  whatsAppStatus: (id) => http().request("GET", path(id) + "/whatsapp"),
956
956
  /** Stop handling incoming messages and erase local WhatsApp credentials. */
957
957
  disconnectWhatsApp: (id) => http().request("DELETE", path(id) + "/whatsapp"),
958
+ /** Read the reply policy as a pairing administrator. */
959
+ whatsAppReplyPolicy: (id) => http().request("GET", path(id) + "/whatsapp/reply-policy"),
960
+ /** Replace the reply policy without reconnecting the linked number. */
961
+ setWhatsAppReplyPolicy: (id, policy) => http().request("PUT", path(id) + "/whatsapp/reply-policy", policy),
958
962
  /** Rotate the key accepted by the assistant webhook. */
959
963
  rotateInboundKey: (id) => http().request("POST", path(id) + "/inbound-key")
960
964
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oya-ai/browser",
3
- "version": "1.0.301",
3
+ "version": "1.0.302",
4
4
  "description": "TypeScript SDK for Oya, the HIPAA-compliant agentic browser: start cloud browsers, run playbooks, attach Playwright.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://oyabrowser.com",