@transmitsecurity/platform-web-sdk 2.5.1 → 2.6.0

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/drs.d.ts CHANGED
@@ -98,6 +98,8 @@ interface ConstructorOptions {
98
98
  hasOwnClientId?: boolean;
99
99
  /** Tier mode for the SDK: 'standard' (default) or 'lightweight' (server-to-server) */
100
100
  tier?: 'standard' | 'lightweight';
101
+ /** Agentic mode for CDN-injected integrations: enables agentic identity collection and artificial action triggering. Not supported with the lightweight tier. */
102
+ agenticCollect?: boolean;
101
103
  /** @internal
102
104
  * Optional configuration for crypto-binding key scoping.
103
105
  * Use only when instructed by Transmit Security. */
@@ -195,6 +197,10 @@ interface ActionEventOptions {
195
197
  * Custom attributes matching the schema previously defined in the Admin Portal
196
198
  */
197
199
  customAttributes?: Record<string, string | number | boolean>;
200
+ /** @internal Set only by AgenticManager, never by customer code. @ignore */
201
+ triggerSource?: 'page_load' | 'interaction_interval';
202
+ /** @internal Per-type tally of interactions counted toward this checkpoint. Set only by AgenticManager. @ignore */
203
+ agenticCountedInteractions?: Record<string, number>;
198
204
  /**
199
205
  * The fields below are supported for Enterprise-IAM sdk usage actions, added `ignore` for avoiding preseting this attribute in the docs
200
206
  * @ignore
@@ -226,7 +232,6 @@ interface ActionEventOptions {
226
232
  uploadFile?: Record<string, boolean | string | number>;
227
233
  }
228
234
  declare class TSAccountProtection {
229
- private static initializedInstance;
230
235
  private initializationPromise;
231
236
  private disabledReason;
232
237
  private enableSessionToken;
@@ -234,10 +239,16 @@ declare class TSAccountProtection {
234
239
  private firstPartyMigrationUrl;
235
240
  private hasOwnClientId;
236
241
  private tier;
242
+ private agenticCollect;
243
+ private agenticActive;
244
+ private agenticManager;
245
+ private agenticInitStartedAt;
246
+ private lastCascadePath;
237
247
  private validationManager;
238
248
  private storageManager;
239
249
  private eventsManager;
240
250
  private deviceDataManager;
251
+ private agenticSignalsManager;
241
252
  private configManager;
242
253
  private requestsManager;
243
254
  private identityManager;
@@ -255,6 +266,14 @@ declare class TSAccountProtection {
255
266
  constructor(clientId: string, options: ConstructorOptions);
256
267
  /** @ignore */
257
268
  constructor(serverPath: string, clientId: string);
269
+ private standDownCalled;
270
+ private standDown;
271
+ private runDetectionCascade;
272
+ private standardInitListenerRegistered;
273
+ private trafficWatchStarted;
274
+ private startTrafficWatch;
275
+ private spaRouteHooksRegistered;
276
+ private registerSpaRouteHooks;
258
277
  private generateDisabledToken;
259
278
  /**
260
279
  * @ignore
@@ -278,6 +297,7 @@ declare class TSAccountProtection {
278
297
  * @param deviceId - The JWT deviceId returned from citadel backend
279
298
  */
280
299
  setDeviceId(deviceId: string): void;
300
+ private resolveAgenticActive;
281
301
  /**
282
302
  * Initializes the AccountProtection SDK, which starts automatically tracking and submitting info of the user journey
283
303
  * @param options Init options