{"version":3,"sources":["../../src/models/agentic-identity.ts"],"names":[],"mappings":"AAwCO,SAAS,4BACd,QAAA,EACkE;AAClE,EAAA,OAAO,OAAO,QAAA,CAAS,aAAA,KAAkB,QAAA,IAAY,QAAA,CAAS,cAAc,MAAA,GAAS,CAAA;AACvF","file":"agentic-identity.mjs","sourcesContent":["/**\n * SDK operation/request scope for the Agent 365 program.\n *\n * An AgenticIdentity encompasses an agentic app blueprint\n * (`agenticAppBlueprintId`), which can instantiate agentic apps\n * (`agenticAppId`), and each app can optionally have associated agentic users\n * (`agenticUserId`).\n */\nexport type AgenticIdentity = {\n  /**\n   * ID of the Agentic App Blueprint that backs the agentic app.\n   */\n  readonly agenticAppBlueprintId: string;\n\n  /**\n   * ID of the agentic app represented by this identity, when available/needed.\n   * Omit or use `null` when the operation has only a blueprint-level scope.\n   */\n  readonly agenticAppId?: string | null;\n\n  /**\n   * Entra object ID of the user-backed agentic identity, when the operation\n   * acts on behalf of a user. Omit or use `null` for app-backed or\n   * blueprint-level operations that do not act as an agentic user.\n   */\n  readonly agenticUserId?: string | null;\n\n  /**\n   * Tenant ID for token acquisition.\n   */\n  readonly tenantId?: string;\n};\n\n/**\n * Returns whether an agentic identity carries user-backed fields.\n *\n * Prefer this guard, or an equivalent `'agenticUserId' in identity` check, when\n * code needs user-specific fields. App-backed identity shapes do not need to\n * carry `agenticUserId`.\n */\nexport function isUserBackedAgenticIdentity(\n  identity: AgenticIdentity\n): identity is AgenticIdentity & { readonly agenticUserId: string } {\n  return typeof identity.agenticUserId === 'string' && identity.agenticUserId.length > 0;\n}\n"]}