generateIntentId()
SIP Protocol API Reference v0.7.0
SIP Protocol API Reference / generateIntentId
Function: generateIntentId()
Section titled “Function: generateIntentId()”generateIntentId():
string
Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:3339
Generate a unique intent identifier
Creates a cryptographically random intent ID with the sip- prefix.
IDs are globally unique with negligible collision probability (128-bit randomness).
Returns
Section titled “Returns”string
Intent ID string in format: sip-<32 hex chars>
Example
Section titled “Example”const intentId = generateIntentId()console.log(intentId) // "sip-a1b2c3d4e5f67890a1b2c3d4e5f67890"