@entros/pulse-sdk 3.0.0 → 3.1.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/index.d.mts CHANGED
@@ -3,7 +3,7 @@ declare const DEFAULT_THRESHOLD = 96;
3
3
  declare const DEFAULT_MIN_DISTANCE = 3;
4
4
  declare const MIN_CAPTURE_MS = 2000;
5
5
  declare const MAX_CAPTURE_MS = 60000;
6
- declare const DEFAULT_CAPTURE_MS = 7000;
6
+ declare const DEFAULT_CAPTURE_MS = 12000;
7
7
  declare const PROGRAM_IDS: {
8
8
  readonly entrosAnchor: "GZYwTp2ozeuRA5Gof9vs4ya961aANcJBdUzB7LN6q4b2";
9
9
  readonly entrosVerifier: "4F97jNoxQzT2qRbkWpW3ztC3Nz2TtKj3rnKG8ExgnrfV";
@@ -383,6 +383,8 @@ declare function extractSpeakerFeaturesDetailed(audio: AudioCapture): Promise<{
383
383
  */
384
384
  declare function extractSpeakerFeatures(audio: AudioCapture): Promise<number[]>;
385
385
 
386
+ declare const MOTION_FEATURE_COUNT: number;
387
+ declare const TOUCH_FEATURE_COUNT: number;
386
388
  /**
387
389
  * Compute per-sample acceleration magnitude |a| = √(ax² + ay² + az²) and
388
390
  * linearly resample to a target frame count. Surfaced for server-side
@@ -785,4 +787,4 @@ declare function fetchChallenge(executorUrl: string, walletAddress: string, apiK
785
787
  */
786
788
  declare function encodeAudioAsBase64(samples: Float32Array): string;
787
789
 
788
- export { type AgentHumanOperator, type AudioCapture, type CaptureOptions, type CaptureStage, type ChallengeResponse, type CircuitInput, DEFAULT_CAPTURE_MS, DEFAULT_MIN_DISTANCE, DEFAULT_THRESHOLD, type EntrosAttestation, FINGERPRINT_BITS, type FeatureVector, type FusedFeatureVector, type IdentityState, type LissajousParams, MAX_CAPTURE_MS, MIN_AUDIO_SAMPLES, MIN_CAPTURE_MS, MIN_MOTION_SAMPLES, MIN_TOUCH_SAMPLES, type MotionSample, PROGRAM_IDS, type PackedFingerprint, type Point2D, type ProofResult, type PulseConfig, PulseSDK, PulseSession, SPEAKER_FEATURE_COUNT, type SensorData, type SolanaProof, type StageState, type StatsSummary, type StoredVerificationData, type SubmissionResult, type TBH, type TemporalFingerprint, type TouchSample, type VerificationResult, attestAgentOperator, autocorrelation, bigintToBytes32, computeCommitment, condense, encodeAudioAsBase64, entropy, extractAccelerationMagnitude, extractMotionFeatures, extractMouseDynamics, extractSpeakerFeatures, extractSpeakerFeaturesDetailed, extractTouchFeatures, fetchChallenge, fetchIdentityState, fuseFeatures, fuseRawFeatures, generateLissajousPoints, generateLissajousSequence, generatePhrase, generatePhraseSequence, generateProof, generateSalt, generateSolanaProof, generateTBH, getAgentHumanOperator, hammingDistance, kurtosis, loadVerificationData, mean, packBits, prepareCircuitInput, randomLissajousParams, serializeProof, simhash, skewness, storeVerificationData, submitResetViaWallet, submitViaRelayer, submitViaWallet, toBigEndian32, variance, verifyEntrosAttestation };
790
+ export { type AgentHumanOperator, type AudioCapture, type CaptureOptions, type CaptureStage, type ChallengeResponse, type CircuitInput, DEFAULT_CAPTURE_MS, DEFAULT_MIN_DISTANCE, DEFAULT_THRESHOLD, type EntrosAttestation, FINGERPRINT_BITS, type FeatureVector, type FusedFeatureVector, type IdentityState, type LissajousParams, MAX_CAPTURE_MS, MIN_AUDIO_SAMPLES, MIN_CAPTURE_MS, MIN_MOTION_SAMPLES, MIN_TOUCH_SAMPLES, MOTION_FEATURE_COUNT, type MotionSample, PROGRAM_IDS, type PackedFingerprint, type Point2D, type ProofResult, type PulseConfig, PulseSDK, PulseSession, SPEAKER_FEATURE_COUNT, type SensorData, type SolanaProof, type StageState, type StatsSummary, type StoredVerificationData, type SubmissionResult, type TBH, TOUCH_FEATURE_COUNT, type TemporalFingerprint, type TouchSample, type VerificationResult, attestAgentOperator, autocorrelation, bigintToBytes32, computeCommitment, condense, encodeAudioAsBase64, entropy, extractAccelerationMagnitude, extractMotionFeatures, extractMouseDynamics, extractSpeakerFeatures, extractSpeakerFeaturesDetailed, extractTouchFeatures, fetchChallenge, fetchIdentityState, fuseFeatures, fuseRawFeatures, generateLissajousPoints, generateLissajousSequence, generatePhrase, generatePhraseSequence, generateProof, generateSalt, generateSolanaProof, generateTBH, getAgentHumanOperator, hammingDistance, kurtosis, loadVerificationData, mean, packBits, prepareCircuitInput, randomLissajousParams, serializeProof, simhash, skewness, storeVerificationData, submitResetViaWallet, submitViaRelayer, submitViaWallet, toBigEndian32, variance, verifyEntrosAttestation };
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ declare const DEFAULT_THRESHOLD = 96;
3
3
  declare const DEFAULT_MIN_DISTANCE = 3;
4
4
  declare const MIN_CAPTURE_MS = 2000;
5
5
  declare const MAX_CAPTURE_MS = 60000;
6
- declare const DEFAULT_CAPTURE_MS = 7000;
6
+ declare const DEFAULT_CAPTURE_MS = 12000;
7
7
  declare const PROGRAM_IDS: {
8
8
  readonly entrosAnchor: "GZYwTp2ozeuRA5Gof9vs4ya961aANcJBdUzB7LN6q4b2";
9
9
  readonly entrosVerifier: "4F97jNoxQzT2qRbkWpW3ztC3Nz2TtKj3rnKG8ExgnrfV";
@@ -383,6 +383,8 @@ declare function extractSpeakerFeaturesDetailed(audio: AudioCapture): Promise<{
383
383
  */
384
384
  declare function extractSpeakerFeatures(audio: AudioCapture): Promise<number[]>;
385
385
 
386
+ declare const MOTION_FEATURE_COUNT: number;
387
+ declare const TOUCH_FEATURE_COUNT: number;
386
388
  /**
387
389
  * Compute per-sample acceleration magnitude |a| = √(ax² + ay² + az²) and
388
390
  * linearly resample to a target frame count. Surfaced for server-side
@@ -785,4 +787,4 @@ declare function fetchChallenge(executorUrl: string, walletAddress: string, apiK
785
787
  */
786
788
  declare function encodeAudioAsBase64(samples: Float32Array): string;
787
789
 
788
- export { type AgentHumanOperator, type AudioCapture, type CaptureOptions, type CaptureStage, type ChallengeResponse, type CircuitInput, DEFAULT_CAPTURE_MS, DEFAULT_MIN_DISTANCE, DEFAULT_THRESHOLD, type EntrosAttestation, FINGERPRINT_BITS, type FeatureVector, type FusedFeatureVector, type IdentityState, type LissajousParams, MAX_CAPTURE_MS, MIN_AUDIO_SAMPLES, MIN_CAPTURE_MS, MIN_MOTION_SAMPLES, MIN_TOUCH_SAMPLES, type MotionSample, PROGRAM_IDS, type PackedFingerprint, type Point2D, type ProofResult, type PulseConfig, PulseSDK, PulseSession, SPEAKER_FEATURE_COUNT, type SensorData, type SolanaProof, type StageState, type StatsSummary, type StoredVerificationData, type SubmissionResult, type TBH, type TemporalFingerprint, type TouchSample, type VerificationResult, attestAgentOperator, autocorrelation, bigintToBytes32, computeCommitment, condense, encodeAudioAsBase64, entropy, extractAccelerationMagnitude, extractMotionFeatures, extractMouseDynamics, extractSpeakerFeatures, extractSpeakerFeaturesDetailed, extractTouchFeatures, fetchChallenge, fetchIdentityState, fuseFeatures, fuseRawFeatures, generateLissajousPoints, generateLissajousSequence, generatePhrase, generatePhraseSequence, generateProof, generateSalt, generateSolanaProof, generateTBH, getAgentHumanOperator, hammingDistance, kurtosis, loadVerificationData, mean, packBits, prepareCircuitInput, randomLissajousParams, serializeProof, simhash, skewness, storeVerificationData, submitResetViaWallet, submitViaRelayer, submitViaWallet, toBigEndian32, variance, verifyEntrosAttestation };
790
+ export { type AgentHumanOperator, type AudioCapture, type CaptureOptions, type CaptureStage, type ChallengeResponse, type CircuitInput, DEFAULT_CAPTURE_MS, DEFAULT_MIN_DISTANCE, DEFAULT_THRESHOLD, type EntrosAttestation, FINGERPRINT_BITS, type FeatureVector, type FusedFeatureVector, type IdentityState, type LissajousParams, MAX_CAPTURE_MS, MIN_AUDIO_SAMPLES, MIN_CAPTURE_MS, MIN_MOTION_SAMPLES, MIN_TOUCH_SAMPLES, MOTION_FEATURE_COUNT, type MotionSample, PROGRAM_IDS, type PackedFingerprint, type Point2D, type ProofResult, type PulseConfig, PulseSDK, PulseSession, SPEAKER_FEATURE_COUNT, type SensorData, type SolanaProof, type StageState, type StatsSummary, type StoredVerificationData, type SubmissionResult, type TBH, TOUCH_FEATURE_COUNT, type TemporalFingerprint, type TouchSample, type VerificationResult, attestAgentOperator, autocorrelation, bigintToBytes32, computeCommitment, condense, encodeAudioAsBase64, entropy, extractAccelerationMagnitude, extractMotionFeatures, extractMouseDynamics, extractSpeakerFeatures, extractSpeakerFeaturesDetailed, extractTouchFeatures, fetchChallenge, fetchIdentityState, fuseFeatures, fuseRawFeatures, generateLissajousPoints, generateLissajousSequence, generatePhrase, generatePhraseSequence, generateProof, generateSalt, generateSolanaProof, generateTBH, getAgentHumanOperator, hammingDistance, kurtosis, loadVerificationData, mean, packBits, prepareCircuitInput, randomLissajousParams, serializeProof, simhash, skewness, storeVerificationData, submitResetViaWallet, submitViaRelayer, submitViaWallet, toBigEndian32, variance, verifyEntrosAttestation };
package/dist/index.js CHANGED
@@ -39,10 +39,12 @@ __export(index_exports, {
39
39
  MIN_CAPTURE_MS: () => MIN_CAPTURE_MS,
40
40
  MIN_MOTION_SAMPLES: () => MIN_MOTION_SAMPLES,
41
41
  MIN_TOUCH_SAMPLES: () => MIN_TOUCH_SAMPLES,
42
+ MOTION_FEATURE_COUNT: () => MOTION_FEATURE_COUNT,
42
43
  PROGRAM_IDS: () => PROGRAM_IDS,
43
44
  PulseSDK: () => PulseSDK,
44
45
  PulseSession: () => PulseSession,
45
46
  SPEAKER_FEATURE_COUNT: () => SPEAKER_FEATURE_COUNT,
47
+ TOUCH_FEATURE_COUNT: () => TOUCH_FEATURE_COUNT,
46
48
  attestAgentOperator: () => attestAgentOperator,
47
49
  autocorrelation: () => autocorrelation,
48
50
  bigintToBytes32: () => bigintToBytes32,
@@ -107,7 +109,7 @@ var TOTAL_PROOF_SIZE = 256;
107
109
  var SIMHASH_SEED = "IAM-PROTOCOL-SIMHASH-V1";
108
110
  var MIN_CAPTURE_MS = 2e3;
109
111
  var MAX_CAPTURE_MS = 6e4;
110
- var DEFAULT_CAPTURE_MS = 7e3;
112
+ var DEFAULT_CAPTURE_MS = 12e3;
111
113
  var PROGRAM_IDS = {
112
114
  entrosAnchor: "GZYwTp2ozeuRA5Gof9vs4ya961aANcJBdUzB7LN6q4b2",
113
115
  entrosVerifier: "4F97jNoxQzT2qRbkWpW3ztC3Nz2TtKj3rnKG8ExgnrfV",
@@ -6433,10 +6435,12 @@ async function fetchChallenge(executorUrl, walletAddress, apiKey) {
6433
6435
  MIN_CAPTURE_MS,
6434
6436
  MIN_MOTION_SAMPLES,
6435
6437
  MIN_TOUCH_SAMPLES,
6438
+ MOTION_FEATURE_COUNT,
6436
6439
  PROGRAM_IDS,
6437
6440
  PulseSDK,
6438
6441
  PulseSession,
6439
6442
  SPEAKER_FEATURE_COUNT,
6443
+ TOUCH_FEATURE_COUNT,
6440
6444
  attestAgentOperator,
6441
6445
  autocorrelation,
6442
6446
  bigintToBytes32,