playttm 0.0.7 → 0.0.9

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/lib.d.ts CHANGED
@@ -92,12 +92,15 @@ export declare class ThaiTicketMajor {
92
92
  */
93
93
  static syncCookiesToChrome(cookieString: string, domainUrl?: string): Promise<void>;
94
94
  /**
95
- * Setup declarativeNetRequest session rules in Chrome Extension to set Referer header for API requests only.
95
+ * Setup declarativeNetRequest session rules for Chrome Extension environment.
96
+ * Overrides forbidden headers (Referer, Origin) to bypass TTM and Kasikorn referrer checks.
97
+ * Uses excludedInitiatorDomains to NEVER alter requests made directly by tabs on thaiticketmajor.com.
96
98
  */
97
- /**
98
- * Setup declarativeNetRequest session rules in Chrome Extension to set Referer headers accurately for each endpoint.
99
- */
100
- static setupExtensionRules(): Promise<void>;
99
+ static setupExtensionRules(context?: {
100
+ k?: string;
101
+ zone?: string;
102
+ roundId?: string;
103
+ }): Promise<void>;
101
104
  syncCookies(domainUrl?: string): Promise<void>;
102
105
  private emitProgress;
103
106
  /**