@everfur/sdk 0.5.2 → 0.5.3

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.
Files changed (100) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/{Chat-my5aJLz5.d.ts → Chat-CNRZEu92.d.ts} +3 -3
  3. package/dist/{Chat-B43wIXCv.d.cts → Chat-a6If51cF.d.cts} +3 -3
  4. package/dist/{DepthViews-G-7YRtOX.d.ts → DepthViews-Bfv2DTUl.d.ts} +1 -1
  5. package/dist/{DepthViews-BLK0kgza.d.cts → DepthViews-Cl4AoL3X.d.cts} +1 -1
  6. package/dist/{DepthViews-BBTv9VAs.d.cts → DepthViews-kURiusNd.d.cts} +1 -1
  7. package/dist/{DepthViews-CNqAyjne.d.ts → DepthViews-zhn3Rk5Z.d.ts} +1 -1
  8. package/dist/animations/index.d.cts +3 -3
  9. package/dist/animations/index.d.ts +3 -3
  10. package/dist/{attachments-CMNWE6YT.d.ts → attachments-5_p7kE38.d.ts} +2 -2
  11. package/dist/{attachments-CEmT52IA.d.cts → attachments-CHgc11hT.d.cts} +5 -5
  12. package/dist/{attachments-DU1djTNd.d.ts → attachments-TXOhN36S.d.ts} +5 -5
  13. package/dist/{attachments-ZyjWsZdI.d.cts → attachments-affGN_Uv.d.cts} +2 -2
  14. package/dist/{bookingCopy-BVhEt1bj.d.ts → bookingCopy-BQ7Pg7qg.d.ts} +2 -2
  15. package/dist/{bookingCopy-ChZR5mtd.d.cts → bookingCopy-BpZvZO1S.d.cts} +2 -2
  16. package/dist/{casesRepository-C5zrCcaE.d.ts → casesRepository-YCI0OVwl.d.ts} +1 -1
  17. package/dist/{casesRepository-q2ak9AW0.d.cts → casesRepository-z2JAFlKA.d.cts} +1 -1
  18. package/dist/chat/index.d.cts +9 -9
  19. package/dist/chat/index.d.ts +9 -9
  20. package/dist/client/index.cjs +1 -1
  21. package/dist/client/index.d.cts +6 -6
  22. package/dist/client/index.d.ts +6 -6
  23. package/dist/client/index.js +1 -1
  24. package/dist/{config-DBpKJJbg.d.ts → config-BXVgTLCh.d.ts} +1 -1
  25. package/dist/{config-jocy3q66.d.cts → config-Bkbqkjb0.d.cts} +1 -1
  26. package/dist/consent/index.d.cts +5 -5
  27. package/dist/consent/index.d.ts +5 -5
  28. package/dist/{context-C3n9s4aG.d.ts → context-BVpOBDMe.d.ts} +5 -5
  29. package/dist/{context-BfVBRgro.d.cts → context-ChPrlKhy.d.cts} +5 -5
  30. package/dist/{copy-IysFx8yL.d.cts → copy-Be2H2i-D.d.cts} +2 -2
  31. package/dist/{copy-KP91zgtW.d.ts → copy-SxmZ-Eps.d.ts} +2 -2
  32. package/dist/core/index.cjs +1 -1
  33. package/dist/core/index.d.cts +12 -12
  34. package/dist/core/index.d.ts +12 -12
  35. package/dist/core/index.js +1 -1
  36. package/dist/{depth-BsMLLrQo.d.ts → depth-By8dFpLA.d.ts} +2 -2
  37. package/dist/{depth-O9kiVUjs.d.cts → depth-Dne8Qoss.d.cts} +2 -2
  38. package/dist/{entitlementRepository-CHsY2kF3.d.ts → entitlementRepository-Big-K_In.d.ts} +2 -2
  39. package/dist/{entitlementRepository-DIG16pso.d.cts → entitlementRepository-BmghvtGT.d.cts} +2 -2
  40. package/dist/{identity-k8nCQ_qM.d.ts → identity-AuoeDRTh.d.ts} +1 -1
  41. package/dist/{identity-D7GKfOE7.d.cts → identity-Z0yj-fC_.d.cts} +1 -1
  42. package/dist/index.cjs +1 -1
  43. package/dist/index.d.cts +12 -12
  44. package/dist/index.d.ts +12 -12
  45. package/dist/index.js +1 -1
  46. package/dist/notifications/index.d.cts +2 -2
  47. package/dist/notifications/index.d.ts +2 -2
  48. package/dist/{pets-Bod_DDiW.d.cts → pets-DfXGYmMk.d.cts} +1 -1
  49. package/dist/{pets-C_QX8s5f.d.ts → pets-FD-5nMXr.d.ts} +1 -1
  50. package/dist/{petsRepository-DdzgINfF.d.ts → petsRepository-BaTOwJ5L.d.ts} +1 -1
  51. package/dist/{petsRepository-B3vr628I.d.cts → petsRepository-CsvreWlY.d.cts} +1 -1
  52. package/dist/{ports-DHhxhn95.d.ts → ports-DNIvfzBP.d.ts} +4 -4
  53. package/dist/{ports-BSm48zIC.d.cts → ports-Dof7AQjk.d.cts} +4 -4
  54. package/dist/records/depth/index.d.cts +7 -7
  55. package/dist/records/depth/index.d.ts +7 -7
  56. package/dist/records/index.d.cts +9 -9
  57. package/dist/records/index.d.ts +9 -9
  58. package/dist/{requestFunnel-CTG-wNc3.d.ts → requestFunnel-CJC_q4BZ.d.ts} +2 -2
  59. package/dist/{requestFunnel-Dcjyh0j2.d.cts → requestFunnel-DrigK6q_.d.cts} +2 -2
  60. package/dist/{runtimeTypes-CmpdQaE2.d.ts → runtimeTypes-BiqMY6pC.d.ts} +4 -4
  61. package/dist/{runtimeTypes-4qptUulD.d.cts → runtimeTypes-Doj95Gll.d.cts} +4 -4
  62. package/dist/server/events/index.cjs +1 -1
  63. package/dist/server/events/index.d.cts +2 -2
  64. package/dist/server/events/index.d.ts +2 -2
  65. package/dist/server/events/index.js +1 -1
  66. package/dist/server/index.cjs +1 -1
  67. package/dist/server/index.d.cts +3 -3
  68. package/dist/server/index.d.ts +3 -3
  69. package/dist/server/index.js +1 -1
  70. package/dist/televet/booking/index.d.cts +6 -6
  71. package/dist/televet/booking/index.d.ts +6 -6
  72. package/dist/testing/index.d.cts +1 -1
  73. package/dist/testing/index.d.ts +1 -1
  74. package/dist/testing/rn/index.d.cts +7 -7
  75. package/dist/testing/rn/index.d.ts +7 -7
  76. package/dist/testing/web/index.d.cts +7 -7
  77. package/dist/testing/web/index.d.ts +7 -7
  78. package/dist/{timelineRows-Dp4ZSnAo.d.ts → timelineRows-BHA0gIKH.d.ts} +1 -1
  79. package/dist/{timelineRows-BkLhRUDt.d.cts → timelineRows-CHeqZRpM.d.cts} +1 -1
  80. package/dist/{useRecordsDepth-DnDhTaUL.d.ts → useRecordsDepth-CG63cXFZ.d.ts} +1 -1
  81. package/dist/{useRecordsDepth-DRNry1r9.d.cts → useRecordsDepth-ChhS4c6r.d.cts} +1 -1
  82. package/dist/{view-D4VdPKCa.d.cts → view-2pXv8ex7.d.cts} +2 -2
  83. package/dist/{view-CwuOPIJc.d.ts → view-BKy44Q-3.d.ts} +2 -2
  84. package/dist/web/consent/index.d.cts +5 -5
  85. package/dist/web/consent/index.d.ts +5 -5
  86. package/dist/web/index.cjs +1 -1
  87. package/dist/web/index.d.cts +14 -14
  88. package/dist/web/index.d.ts +14 -14
  89. package/dist/web/index.js +1 -1
  90. package/dist/web/notifications/index.d.cts +3 -3
  91. package/dist/web/notifications/index.d.ts +3 -3
  92. package/dist/web/records/depth/index.d.cts +7 -7
  93. package/dist/web/records/depth/index.d.ts +7 -7
  94. package/dist/web/records/index.d.cts +9 -9
  95. package/dist/web/records/index.d.ts +9 -9
  96. package/dist/web/televet/booking/index.cjs +2 -2
  97. package/dist/web/televet/booking/index.d.cts +6 -6
  98. package/dist/web/televet/booking/index.d.ts +6 -6
  99. package/dist/web/televet/booking/index.js +2 -2
  100. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import {z as z$1}from'zod';var yt=Object.defineProperty;var t=(e,r)=>yt(e,"name",{value:r,configurable:true});var Pe=Object.freeze([Object.freeze({wireCode:"AccessDeniedException",envelope:"http_envelope",httpStatus:403,retryable:false}),Object.freeze({wireCode:"AuthorizationException",envelope:"http_envelope",httpStatus:401,retryable:false}),Object.freeze({wireCode:"ConflictException",envelope:"http_envelope",httpStatus:409,retryable:true}),Object.freeze({wireCode:"DAILY_QUOTA_EXCEEDED",envelope:"http_envelope",httpStatus:429,retryable:true}),Object.freeze({wireCode:"FILE_TOO_LARGE",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"IDEMPOTENCY_KEY_IN_FLIGHT",envelope:"http_envelope",httpStatus:409,retryable:true}),Object.freeze({wireCode:"IDEMPOTENCY_KEY_REUSED_DIFFERENT_REQUEST",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"INVALID_CONTENT_TYPE",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"InternalFailureException",envelope:"http_envelope",httpStatus:500,retryable:true}),Object.freeze({wireCode:"MethodNotAllowedException",envelope:"http_envelope",httpStatus:405,retryable:false}),Object.freeze({wireCode:"NotImplementedException",envelope:"http_envelope",httpStatus:501,retryable:false}),Object.freeze({wireCode:"PaymentRequiredException",envelope:"http_envelope",httpStatus:402,retryable:false}),Object.freeze({wireCode:"ResourceNotFoundException",envelope:"http_envelope",httpStatus:404,retryable:false}),Object.freeze({wireCode:"ServiceUnavailableException",envelope:"http_envelope",httpStatus:503,retryable:true}),Object.freeze({wireCode:"TIER_UPGRADE_REQUIRED",envelope:"http_envelope",httpStatus:402,retryable:false}),Object.freeze({wireCode:"ThrottlingException",envelope:"http_envelope",httpStatus:429,retryable:true}),Object.freeze({wireCode:"ValidationException",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"accessDenied",envelope:"http_envelope",httpStatus:403,retryable:false}),Object.freeze({wireCode:"access_denied",envelope:"oauth_error",httpStatus:302,retryable:false}),Object.freeze({wireCode:"attachment_unreadable",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"authExpired",envelope:"http_envelope",httpStatus:401,retryable:true}),Object.freeze({wireCode:"authRejected",envelope:"http_envelope",httpStatus:401,retryable:false}),Object.freeze({wireCode:"consent_invalid",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"consent_required",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"consent_scope_wrong_route",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"device_cipher_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true}),Object.freeze({wireCode:"email_invalid",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"event_cursor_invalid",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"event_filter_invalid",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"event_payload_invalid",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"event_type_not_available",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"event_type_unknown",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"idempotency_key_invalid",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"idempotency_key_required",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"idempotency_key_reused",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"insufficientCapability",envelope:"http_envelope",httpStatus:403,retryable:false}),Object.freeze({wireCode:"insufficient_scope",envelope:"http_envelope",httpStatus:403,retryable:false}),Object.freeze({wireCode:"internal_error",envelope:"sse_frame",httpStatus:200,retryable:false}),Object.freeze({wireCode:"invalidRequest",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"invalid_client",envelope:"oauth_error",httpStatus:401,retryable:false}),Object.freeze({wireCode:"invalid_client_metadata",envelope:"oauth_error",httpStatus:400,retryable:false}),Object.freeze({wireCode:"invalid_grant",envelope:"oauth_error",httpStatus:400,retryable:false}),Object.freeze({wireCode:"invalid_redirect_uri",envelope:"oauth_error",httpStatus:400,retryable:false}),Object.freeze({wireCode:"invalid_request",envelope:"oauth_error",httpStatus:400,retryable:false}),Object.freeze({wireCode:"invalid_scope",envelope:"oauth_error",httpStatus:400,retryable:false}),Object.freeze({wireCode:"invalid_target",envelope:"oauth_error",httpStatus:400,retryable:false}),Object.freeze({wireCode:"mcp_connection_not_found",envelope:"http_envelope",httpStatus:404,retryable:false}),Object.freeze({wireCode:"mcp_request_conflict",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"mcp_request_gone",envelope:"http_envelope",httpStatus:410,retryable:false}),Object.freeze({wireCode:"mcp_request_not_found",envelope:"http_envelope",httpStatus:404,retryable:false}),Object.freeze({wireCode:"not_found",envelope:"sse_frame",httpStatus:200,retryable:false}),Object.freeze({wireCode:"partner_visit_link_conflict",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"partner_visit_owner_only",envelope:"http_envelope",httpStatus:403,retryable:false}),Object.freeze({wireCode:"partner_visit_pet_already_mapped",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"payload_too_large",envelope:"http_envelope",httpStatus:413,retryable:false}),Object.freeze({wireCode:"petRefInUse",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"pet_health_list_removals_unconfirmed",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"pet_health_species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"pet_not_registered",envelope:"http_envelope",httpStatus:404,retryable:false}),Object.freeze({wireCode:"provider_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"rateLimited",envelope:"http_envelope",httpStatus:429,retryable:true}),Object.freeze({wireCode:"record_species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"record_subject_not_found",envelope:"http_envelope",httpStatus:404,retryable:false}),Object.freeze({wireCode:"record_upload_invalid",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"records_consent_required",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"sandbox_only",envelope:"http_envelope",httpStatus:403,retryable:false}),Object.freeze({wireCode:"session_required",envelope:"http_envelope",httpStatus:403,retryable:false}),Object.freeze({wireCode:"share_limit_reached",envelope:"http_envelope",httpStatus:429,retryable:false}),Object.freeze({wireCode:"slow_down",envelope:"oauth_error",httpStatus:429,retryable:true}),Object.freeze({wireCode:"species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"tenant_filter_invalid",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"tenant_has_no_capabilities",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"tenant_resource_not_found",envelope:"http_envelope",httpStatus:404,retryable:false}),Object.freeze({wireCode:"tenant_surface_not_enabled",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"timeout",envelope:"sse_frame",httpStatus:200,retryable:true}),Object.freeze({wireCode:"token_invalid",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"unavailable",envelope:"sse_frame",httpStatus:200,retryable:true}),Object.freeze({wireCode:"unavailable",envelope:"http_envelope",httpStatus:503,retryable:true}),Object.freeze({wireCode:"unsupported_grant_type",envelope:"oauth_error",httpStatus:400,retryable:false}),Object.freeze({wireCode:"unsupported_response_type",envelope:"oauth_error",httpStatus:302,retryable:false}),Object.freeze({wireCode:"verify_mint_rate_limited",envelope:"http_envelope",httpStatus:429,retryable:true}),Object.freeze({wireCode:"verify_mint_refused",envelope:"http_envelope",httpStatus:403,retryable:false}),Object.freeze({wireCode:"verify_mint_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true}),Object.freeze({wireCode:"verify_user_ref_invalid",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"webhook_endpoint_update_empty",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"webhook_endpoint_update_invalid",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"webhook_url_rejected",envelope:"http_envelope",httpStatus:400,retryable:false})]);Object.freeze(Pe.map(e=>e.wireCode));var mt=Object.freeze({ValidationException:"validationFailed",AuthorizationException:"authRejected",PaymentRequiredException:"paymentRequired",AccessDeniedException:"accessDenied",ResourceNotFoundException:"resourceNotFound",ConflictException:"conflict",ThrottlingException:"rateLimited",InternalFailureException:"internalError",NotImplementedException:"notImplemented",ServiceUnavailableException:"serviceUnavailable",MethodNotAllowedException:"validationFailed",authExpired:"authExpired",unavailable:"serviceUnavailable",session_required:"sessionRequired",accessDenied:"accessDenied",invalidRequest:"sdkUpdateRequired",authRejected:"authRejected",rateLimited:"rateLimited",insufficientCapability:"accessDenied",event_cursor_invalid:"validationFailed",event_filter_invalid:"validationFailed",event_payload_invalid:"validationFailed",event_type_unknown:"validationFailed",idempotency_key_invalid:"validationFailed",idempotency_key_required:"validationFailed",idempotency_key_reused:"idempotencyConflict",payload_too_large:"validationFailed",webhook_url_rejected:"validationFailed",webhook_endpoint_update_empty:"validationFailed",webhook_endpoint_update_invalid:"validationFailed",event_type_not_available:"conflict",record_subject_not_found:"resourceNotFound",records_consent_required:"conflict",record_species_unsupported:"validationFailed",record_upload_invalid:"validationFailed",FILE_TOO_LARGE:"validationFailed",INVALID_CONTENT_TYPE:"validationFailed",attachment_unreadable:"validationFailed",provider_unsupported:"validationFailed",token_invalid:"validationFailed",device_cipher_unavailable:"serviceUnavailable",email_invalid:"validationFailed",consent_required:"validationFailed",consent_invalid:"validationFailed",consent_scope_wrong_route:"validationFailed",IDEMPOTENCY_KEY_IN_FLIGHT:"idempotencyInFlight",IDEMPOTENCY_KEY_REUSED_DIFFERENT_REQUEST:"idempotencyConflict",DAILY_QUOTA_EXCEEDED:"quotaExceeded",TIER_UPGRADE_REQUIRED:"paymentRequired",not_found:"conversationNotFound",timeout:"streamTimeout",internal_error:"internalError",invalid_request:"validationFailed",invalid_client:"authRejected",invalid_grant:"authRejected",unsupported_grant_type:"validationFailed",invalid_scope:"validationFailed",invalid_target:"validationFailed",invalid_redirect_uri:"validationFailed",invalid_client_metadata:"validationFailed",unsupported_response_type:"validationFailed",access_denied:"accessDenied",slow_down:"rateLimited",mcp_request_not_found:"resourceNotFound",mcp_request_gone:"resourceNotFound",mcp_connection_not_found:"resourceNotFound",mcp_request_conflict:"conflict",sandbox_only:"accessDenied",tenant_has_no_capabilities:"conflict",verify_mint_refused:"accessDenied",verify_mint_rate_limited:"rateLimited",verify_mint_unavailable:"serviceUnavailable",verify_user_ref_invalid:"validationFailed",insufficient_scope:"accessDenied",tenant_filter_invalid:"validationFailed",tenant_resource_not_found:"resourceNotFound",tenant_surface_not_enabled:"conflict",pet_health_species_unsupported:"validationFailed",pet_health_list_removals_unconfirmed:"validationFailed",petRefInUse:"conflict",share_limit_reached:"conflict",pet_not_registered:"resourceNotFound",species_unsupported:"validationFailed",partner_visit_owner_only:"accessDenied",partner_visit_link_conflict:"conflict",partner_visit_pet_already_mapped:"conflict"}),Sr=Object.freeze(Pe.map(e=>Object.freeze({wireCode:e.wireCode,envelope:e.envelope,retryable:e.retryable,normalized:mt[e.wireCode]}))),gt=new Map(Sr.map(e=>[e.envelope+e.wireCode.toUpperCase(),e])),bt=Object.freeze(["http_envelope",...[...new Set(Sr.map(e=>e.envelope))].filter(e=>e!=="http_envelope").sort()]);function ge(e,r){if(typeof e!="string")return;let n=e.trim().toUpperCase();if(n.length!==0)for(let o of [r??"http_envelope",...bt]){let i=gt.get(o+n);if(i)return i}}t(ge,"contractErrorFor");function ht(e){return e.envelope==="sse_frame"?`/errors#sse-${e.wireCode}`:e.envelope==="oauth_error"?`/errors#oauth-${e.wireCode}`:`/errors#${e.wireCode}`}t(ht,"contractDocUrl");var kr=null;function Fr(e){return null}t(Fr,"publishedDocUrl");var Pa=Object.freeze(["authExpired","authRejected","sessionRequired","accessDenied","paymentRequired","quotaExceeded","rateLimited","validationFailed","sdkUpdateRequired","conflict","idempotencyConflict","idempotencyInFlight","conversationNotFound","petNotFound","resourceNotFound","streamTimeout","mediaUploadFailed","moderationBlocked","upstreamLlmTimeout","internalError","notImplemented","serviceUnavailable","streamIncomplete","unknown"]),Da=Object.freeze(["authentication","authorization","entitlement","rateLimit","invalidRequest","notFound","conflict","connection","server","media","policy","unknown"]),Et=Object.freeze({authExpired:"authentication",authRejected:"authentication",sessionRequired:"authentication",accessDenied:"authorization",paymentRequired:"entitlement",quotaExceeded:"rateLimit",rateLimited:"rateLimit",validationFailed:"invalidRequest",sdkUpdateRequired:"invalidRequest",conversationNotFound:"notFound",petNotFound:"notFound",resourceNotFound:"notFound",conflict:"conflict",idempotencyConflict:"conflict",idempotencyInFlight:"conflict",streamTimeout:"connection",streamIncomplete:"connection",upstreamLlmTimeout:"connection",serviceUnavailable:"connection",internalError:"server",notImplemented:"server",mediaUploadFailed:"media",moderationBlocked:"policy",unknown:"unknown"});function xr(e){return Et[e]}t(xr,"categoryFor");function X(e){let r=ge(e);if(r)return r.normalized;let n=(e??"").trim().toUpperCase(),o=n.replace(/[^A-Z0-9]/g,"");if(o==="AUTHREJECTED")return "authRejected";if(n.startsWith("AUTH"))return "authExpired";switch(o){case "DAILYQUOTAEXCEEDED":case "QUOTAEXCEEDED":return "quotaExceeded";case "RATELIMITED":case "TOOMANYREQUESTS":case "TELEVETRATELIMITED":return "rateLimited";case "IDEMPOTENCYKEYCONFLICT":case "IDEMPOTENCYCONFLICT":return "idempotencyConflict";case "ACCESSDENIED":case "FORBIDDEN":return "accessDenied";case "NOTFOUND":case "CONVERSATIONNOTFOUND":return "conversationNotFound";case "PETNOTFOUND":return "petNotFound";case "TIMEOUT":case "STREAMTIMEOUT":return "streamTimeout";case "MEDIAUPLOADFAILED":case "UNRECOGNIZEDVIDEOFORMAT":case "FILETOOSMALL":return "mediaUploadFailed";case "MODERATIONBLOCKED":return "moderationBlocked";case "UPSTREAMLLMTIMEOUT":return "upstreamLlmTimeout";case "INTERNALERROR":case "INTERNALSERVERERROR":return "internalError";case "STREAMINCOMPLETE":case "CHATSTREAMINCOMPLETE":return "streamIncomplete";case "INVALIDANALYSISTYPE":case "INVALIDUPLOADPURPOSE":return "unknown";default:return "unknown"}}t(X,"fromWire");function wr(e){return e===401?"authExpired":e===403?"accessDenied":e===404?"conversationNotFound":e===409?"idempotencyConflict":e===421?"unknown":e===429?"rateLimited":e===400||e===422?"unknown":e>=500?"internalError":"unknown"}t(wr,"fromHttpStatus");var vt=new Set(["streamTimeout","rateLimited","internalError","upstreamLlmTimeout","streamIncomplete"]);function B(e){return vt.has(e)}t(B,"isAutoRetryable");var _t=new Set(["serviceUnavailable","conflict","idempotencyInFlight"]);function Or(e){return B(e)||_t.has(e)}t(Or,"isRetryableCode");function Ma(e,r=false){return r||B(e)}t(Ma,"shouldRetry");var Rt=500,De=8e3,Ar=4;function Ir(e,r=Math.random){let n=Math.max(0,e),o=Math.min(Rt*2**n,De);return Math.floor(r()*o)}t(Ir,"backoffDelayMs");function La(e){return e==="conversationNotFound"}t(La,"canRecreateOnNotFound");var Ct=Object.freeze({authExpired:"Please sign in again to continue.",authRejected:"Please sign in again to continue.",sessionRequired:"This app needs to be updated to keep using Everfur.",accessDenied:"This feature isn't available on your account right now.",paymentRequired:"This is part of a paid plan.",quotaExceeded:"You have used today's messages. This resets tomorrow.",rateLimited:"You are sending messages quickly. Try again in a few seconds.",validationFailed:"Something in that request was not right. Check the details and try again.",sdkUpdateRequired:"This app needs to be updated to keep using Everfur.",conflict:"That is already running. Wait for it to finish, then try again.",idempotencyConflict:"That message was already delivered.",idempotencyInFlight:"That is still processing. Give it a moment.",conversationNotFound:"This conversation is no longer available.",petNotFound:"We could not find that pet. Please pick a pet and try again.",resourceNotFound:"We could not find that.",streamTimeout:"The response timed out. Tap retry to try again.",mediaUploadFailed:"We could not upload that photo. Please attach it again.",moderationBlocked:"This request cannot be answered here.",upstreamLlmTimeout:"The response timed out. Tap retry to try again.",internalError:"We hit a snag on our end. Please try again.",notImplemented:"That is not available yet.",serviceUnavailable:"That service is briefly unavailable. Try again shortly.",streamIncomplete:"The connection dropped mid-answer. Tap retry to continue.",unknown:"Something went wrong. Please try again."});function Me(e){return Ct[e]}t(Me,"userFacingError");function Pr(e,r,n){Object.defineProperty(e,r,{value:n,enumerable:false,writable:false,configurable:false});}t(Pr,"defineHidden");var Tt=/^[a-z][a-z0-9_]{0,63}$/;function C(e,r){let n=ge(r?.wireCode,r?.wireEnvelope),o={code:e,category:xr(e),retryable:r?.retryable??Or(e),displayMessage:Me(e)};if(r?.httpStatus!==void 0&&(o.httpStatus=r.httpStatus),r?.requestId&&(o.requestId=r.requestId),typeof r?.reasonCode=="string"&&Tt.test(r.reasonCode)&&(o.reasonCode=r.reasonCode),n);return r?.wireMessage&&Pr(o,"wireMessage",r.wireMessage),r?.raw!==void 0&&r.raw!==null&&Pr(o,"raw",r.raw),Object.freeze(o)}t(C,"makeEverfurError");function k(e,r){return Object.freeze(r===void 0?{ok:true,value:e}:{ok:true,value:e,warning:r})}t(k,"ok");function y(e){return Object.freeze({ok:false,error:e})}t(y,"err");function Ha(e){return e.ok}t(Ha,"isOk");function Ka(e){return !e.ok}t(Ka,"isErr");var be=class be extends Error{constructor(r){super(`${r.code}: ${r.displayMessage}`),this.name="EverfurThrownError",this.error=r,this.code=r.code,this.category=r.category,Object.setPrototypeOf(this,be.prototype);}};t(be,"EverfurThrownError");var Le=be;function $a(e){if(e.ok)return e.value;throw new Le(e.error)}t($a,"unwrap");var he=class he extends Error{constructor(r,n){super(n),this.name="EverfurConfigError",this.kind=r,Object.setPrototypeOf(this,he.prototype);}};t(he,"EverfurConfigError");var E=he;var kt="0.5.2",St="react-native",Ft="2026-09-19",Dr="EVERFUR_API_BASE_URL";function ne(e,r){return Object.freeze({ok:false,failure:Object.freeze({reason:e,message:r})})}t(ne,"configFailure");function xt(e){let r=typeof e=="string"?e.trim():"";return r.length===0?{reason:"missing-publishable-key",message:"publishableKey is required"}:/^sk[_-]/i.test(r)?{reason:"secret-key-as-publishable-key",message:"publishableKey looks like a SECRET key (sk_...). A device must never hold a partner secret key: use the pk_ publishable key here, and keep the secret key on your server."}:null}t(xt,"checkPublishableKey");function wt(e,r){let n=xt(e?.publishableKey);if(n!==null)return Object.freeze({ok:false,failure:n});let o=e.publishableKey.trim(),i=Mr(e.apiBaseUrl);if(!i.ok)return i;let a=e.contractVersion?.trim()||Ft;return Object.freeze({ok:true,config:Object.freeze({publishableKey:o,apiBaseUrl:i.value,contractVersion:a,sdkVersion:kt,platform:r?.platform??St,debug:e.debug===true})})}t(wt,"tryResolveClientConfig");function Va(e,r){let n=wt(e,r);if(!n.ok)throw new E("invalid-argument",n.failure.message);return n.config}t(Va,"resolveClientConfig");function Mr(e){let r=e?.trim(),n=r&&r.length>0?r:Nt(Dr);return n?Mt(n):ne("missing-api-base-url",`apiBaseUrl is required: pass config.apiBaseUrl or set ${Dr}. The SDK never ships a hardcoded host.`)}t(Mr,"tryResolveApiBaseUrl");function Xa(e){let r=Mr(e);if(!r.ok)throw new E("invalid-argument",r.failure.message);return r.value}t(Xa,"resolveApiBaseUrl");function Lr(e){return {"X-Everfur-SDK-Version":e.sdkVersion,"X-Everfur-SDK-Platform":e.platform,"X-Everfur-Contract":e.contractVersion}}t(Lr,"buildBaseHeaders");var Ot=/^([A-Za-z][A-Za-z0-9+.-]*):\/\/([^/?#]*)/;function At(e){return e.slice(e.lastIndexOf("@")+1).replace(/:\d+$/,"").toLowerCase()}t(At,"hostOf");function It(e){return e.length===0||e.includes("@")?false:e.startsWith("[")&&e.endsWith("]")?true:!e.includes(":")}t(It,"isPrintableHost");function Pt(e,r){let n=e.indexOf("://");return n<0||e.slice(n+3).includes("@")?false:It(r)}t(Pt,"canEchoOrigin");function Dt(e,r){return `${e}://${r}`}t(Dt,"safeOrigin");function Mt(e){let r=e.trim(),n=Ot.exec(r);if(n===null||n[2]===void 0||n[2].length===0)return ne("malformed-api-base-url","apiBaseUrl is not a valid absolute URL");let o=(n[1]??"").toLowerCase(),i=At(n[2]);if(i.length===0)return ne("malformed-api-base-url","apiBaseUrl is not a valid absolute URL");let a=Pt(r,i)?`: ${Dt(o,i)}`:"";if(o!=="https"){if(!(o==="http"&&Lt(i)))return o==="http"?ne("insecure-api-base-url",`apiBaseUrl must use https (cleartext http is only allowed for localhost)${a}`):ne("unsupported-api-base-url-scheme",`apiBaseUrl must be http(s)${a}`)}let s=r.endsWith("/")?r.slice(0,-1):r;return Object.freeze({ok:true,value:s})}t(Mt,"normalizeBaseUrl");function Lt(e){let r=e.toLowerCase();return r==="localhost"||r==="127.0.0.1"||r==="[::1]"||r==="::1"}t(Lt,"isLoopbackHost");function Nt(e){let n=globalThis.process?.env?.[e];return typeof n=="string"&&n.trim().length>0?n.trim():void 0}t(Nt,"readEnv");function Q(e){for(let r=0;r<e.length;r+=1){let n=e.charCodeAt(r);if(n>=55296&&n<=56319){let o=e.charCodeAt(r+1);if(!(o>=56320&&o<=57343))return true;r+=1;}else if(n>=56320&&n<=57343)return true}return false}t(Q,"hasLoneSurrogate");function j(e){return [...e].length}t(j,"serverLength");var Nr=128,zr=128,Br=/[\u0000-\u001F\u007F]/,zt=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function ts(e){let r=e,n=j(r);if(n===0||n>zr)throw new E("invalid-argument",`petRef must be 1..${zr} characters`);if(Br.test(r))throw new E("invalid-argument","petRef must be printable (no control characters)");return r}t(ts,"petRef");function os(e){let r=e,n=j(r);if(n===0||n>Nr)throw new E("invalid-argument",`userRef must be 1..${Nr} characters`);if(r.includes("@"))throw new E("invalid-argument","userRef must not contain '@'");if(Br.test(r))throw new E("invalid-argument","userRef must be printable (no control characters)");return r}t(os,"userRef");function is(e){if(!zt.test(e))throw new E("invalid-argument","conversationId must be a UUID");return e}t(is,"conversationId");function as(e){return e}t(as,"unsafePetRef");function ss(e){return e}t(ss,"unsafeUserRef");function ls(e){return e}t(ls,"unsafeConversationId");function us(e){return e}t(us,"unsafeResponseId");function ds(e){return e}t(ds,"unsafeClientId");function cs(e){return e}t(cs,"unsafeDocumentId");function fs(e){return e}t(fs,"unsafeJobId");function ps(e){return e}t(ps,"unsafeRecordsRequestId");function hs(e,r,n){let o=null,i=null,a=false,s=t(()=>i||(i=(async()=>{try{let l=await r(),u=typeof l=="string"?l:l?.token;if(typeof u!="string"||u.length===0)throw new E("invalid-argument","TokenProvider returned an empty token");return o=u,n?.(typeof l=="string"?null:Bt(l.expiresAt)),u}finally{i=null;}})(),i),"load");return {userRef:e,async currentToken(l){if(a)throw new E("not-initialized","This identity was cleared (sign-out); mint a new one.");return l?.forceRefresh&&(o=null),o!==null?o:s()},hasToken(){return !a&&o!==null},clear(){a=true,o=null;}}}t(hs,"createIdentityProvider");function Bt(e){if(e===void 0)return null;let r=typeof e=="number"?e<1e11?e*1e3:e:new Date(e).getTime();return Number.isFinite(r)?r:null}t(Bt,"expiryMs");function Es(){let e=new Uint8Array(16),r=globalThis.crypto;if(typeof r?.getRandomValues=="function")r.getRandomValues(e);else for(let o=0;o<e.length;o+=1)e[o]=Math.floor(Math.random()*256);e[6]=e[6]&15|64,e[8]=e[8]&63|128;let n=[];for(let o=0;o<e.length;o+=1)n.push(e[o].toString(16).padStart(2,"0"));return n.slice(0,4).join("")+"-"+n.slice(4,6).join("")+"-"+n.slice(6,8).join("")+"-"+n.slice(8,10).join("")+"-"+n.slice(10,16).join("")}t(Es,"newSessionId");function jt(e){let r={};return e.mode==="personalized"?r.authorization=`Bearer ${e.token}`:r["x-everfur-partner-key"]=e.publishableKey,e.userRef&&(r["x-everfur-user-ref"]=e.userRef),e.sessionId&&(r["x-everfur-session-id"]=e.sessionId),r}t(jt,"authHeaders");function te(e,r){return {...e,headers:{...Ut(e.headers),...jt(r)}}}t(te,"withAuthHeaders");function Ut(e){if(!e)return {};let r={};for(let[n,o]of Object.entries(e)){let i=n.toLowerCase();i==="authorization"||i==="x-everfur-partner-key"||(r[n]=o);}return r}t(Ut,"stripAuthHeaders");async function jr(e,r){if(r.mode==="anonymous")return r.transport.request(te(e,{mode:"anonymous",publishableKey:r.publishableKey,userRef:r.userRef,...r.sessionId?{sessionId:r.sessionId}:{}}));let n;try{n=await r.identity.currentToken();}catch{return y(Ne())}let o=await r.transport.request(te(e,{mode:"personalized",token:n,userRef:r.userRef,...r.sessionId?{sessionId:r.sessionId}:{}}));if(o.ok||o.error.httpStatus!==401)return o;let i;try{i=await r.identity.currentToken({forceRefresh:!0});}catch{return y(Ne())}let a=await r.transport.request(te(e,{mode:"personalized",token:i,userRef:r.userRef,...r.sessionId?{sessionId:r.sessionId}:{}}));return !a.ok&&a.error.httpStatus===401?y(Ne(a.error.httpStatus)):a}t(jr,"authedSend");function Ne(e){return C("authRejected",{retryable:false,...e!==void 0?{httpStatus:e}:{}})}t(Ne,"authRejectedError");function Rs(e){throw new Error(`assertNever: unhandled discriminated-union member ${JSON.stringify(e)}`)}t(Rs,"assertNever");var qt=Object.freeze([]),Ht=Object.freeze([]);function Ur(e,r,n=null){return Object.freeze({kind:"accepted",streamId:e,lastEventId:r,serverRequestId:n,terminal:false})}t(Ur,"acceptedFrame");function qr(e,r=null){return Object.freeze({kind:"heartbeat",lastEventId:e,serverRequestId:r,terminal:false})}t(qr,"heartbeatFrame");function Hr(e,r,n=null){return Object.freeze({kind:"delta",delta:e,lastEventId:r,serverRequestId:n,terminal:false})}t(Hr,"deltaFrame");function Kr(e,r=null){return Object.freeze({kind:"done",terminal:true,conversationId:e.conversationId,messageId:e.messageId,title:e.title,followUpQuestions:Object.freeze([...e.followUpQuestions]),citations:Object.freeze([...e.citations]),citationStatus:e.citationStatus,urgencyLevel:e.urgencyLevel,urgencyReason:e.urgencyReason,urgencyProvided:e.urgencyProvided??e.urgencyLevel!==null,resultId:e.resultId,lastEventId:e.lastEventId,serverRequestId:r})}t(Kr,"doneFrame");function D(e){return Object.freeze({kind:"error",terminal:true,code:e.code,retryable:e.retryable,wireMessage:e.wireMessage,synthesized:e.synthesized,lastEventId:e.lastEventId,serverRequestId:e.serverRequestId??null})}t(D,"errorFrame");function $r(e,r,n=null){return Object.freeze({kind:"analysisStarted",requestId:e,lastEventId:r,serverRequestId:n,terminal:false})}t($r,"analysisStartedFrame");function Wr(e,r=null){return Object.freeze({kind:"analysisComplete",terminal:false,resultId:e.resultId,analysisType:e.analysisType,modelVersion:e.modelVersion,confidence:e.confidence,detections:Object.freeze([...e.detections]),interpretation:e.interpretation,lastEventId:e.lastEventId,serverRequestId:r})}t(Wr,"analysisCompleteFrame");function Gr(e,r,n=null){return Object.freeze({kind:"unknown",raw:{...e},lastEventId:r,serverRequestId:n,terminal:false})}t(Gr,"unknownFrame");var Cs=Object.freeze({strings:qt,maps:Ht});var Yr=`
1
+ import {z as z$1}from'zod';var yt=Object.defineProperty;var t=(e,r)=>yt(e,"name",{value:r,configurable:true});var Pe=Object.freeze([Object.freeze({wireCode:"AccessDeniedException",envelope:"http_envelope",httpStatus:403,retryable:false}),Object.freeze({wireCode:"AuthorizationException",envelope:"http_envelope",httpStatus:401,retryable:false}),Object.freeze({wireCode:"ConflictException",envelope:"http_envelope",httpStatus:409,retryable:true}),Object.freeze({wireCode:"DAILY_QUOTA_EXCEEDED",envelope:"http_envelope",httpStatus:429,retryable:true}),Object.freeze({wireCode:"FILE_TOO_LARGE",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"IDEMPOTENCY_KEY_IN_FLIGHT",envelope:"http_envelope",httpStatus:409,retryable:true}),Object.freeze({wireCode:"IDEMPOTENCY_KEY_REUSED_DIFFERENT_REQUEST",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"INVALID_CONTENT_TYPE",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"InternalFailureException",envelope:"http_envelope",httpStatus:500,retryable:true}),Object.freeze({wireCode:"MethodNotAllowedException",envelope:"http_envelope",httpStatus:405,retryable:false}),Object.freeze({wireCode:"NotImplementedException",envelope:"http_envelope",httpStatus:501,retryable:false}),Object.freeze({wireCode:"PaymentRequiredException",envelope:"http_envelope",httpStatus:402,retryable:false}),Object.freeze({wireCode:"ResourceNotFoundException",envelope:"http_envelope",httpStatus:404,retryable:false}),Object.freeze({wireCode:"ServiceUnavailableException",envelope:"http_envelope",httpStatus:503,retryable:true}),Object.freeze({wireCode:"TIER_UPGRADE_REQUIRED",envelope:"http_envelope",httpStatus:402,retryable:false}),Object.freeze({wireCode:"ThrottlingException",envelope:"http_envelope",httpStatus:429,retryable:true}),Object.freeze({wireCode:"ValidationException",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"accessDenied",envelope:"http_envelope",httpStatus:403,retryable:false}),Object.freeze({wireCode:"access_denied",envelope:"oauth_error",httpStatus:302,retryable:false}),Object.freeze({wireCode:"attachment_unreadable",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"authExpired",envelope:"http_envelope",httpStatus:401,retryable:true}),Object.freeze({wireCode:"authRejected",envelope:"http_envelope",httpStatus:401,retryable:false}),Object.freeze({wireCode:"consent_invalid",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"consent_required",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"consent_scope_wrong_route",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"device_cipher_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true}),Object.freeze({wireCode:"email_invalid",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"event_cursor_invalid",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"event_filter_invalid",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"event_payload_invalid",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"event_type_not_available",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"event_type_unknown",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"idempotency_key_invalid",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"idempotency_key_required",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"idempotency_key_reused",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"insufficientCapability",envelope:"http_envelope",httpStatus:403,retryable:false}),Object.freeze({wireCode:"insufficient_scope",envelope:"http_envelope",httpStatus:403,retryable:false}),Object.freeze({wireCode:"internal_error",envelope:"sse_frame",httpStatus:200,retryable:false}),Object.freeze({wireCode:"invalidRequest",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"invalid_client",envelope:"oauth_error",httpStatus:401,retryable:false}),Object.freeze({wireCode:"invalid_client_metadata",envelope:"oauth_error",httpStatus:400,retryable:false}),Object.freeze({wireCode:"invalid_grant",envelope:"oauth_error",httpStatus:400,retryable:false}),Object.freeze({wireCode:"invalid_redirect_uri",envelope:"oauth_error",httpStatus:400,retryable:false}),Object.freeze({wireCode:"invalid_request",envelope:"oauth_error",httpStatus:400,retryable:false}),Object.freeze({wireCode:"invalid_scope",envelope:"oauth_error",httpStatus:400,retryable:false}),Object.freeze({wireCode:"invalid_target",envelope:"oauth_error",httpStatus:400,retryable:false}),Object.freeze({wireCode:"mcp_connection_not_found",envelope:"http_envelope",httpStatus:404,retryable:false}),Object.freeze({wireCode:"mcp_request_conflict",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"mcp_request_gone",envelope:"http_envelope",httpStatus:410,retryable:false}),Object.freeze({wireCode:"mcp_request_not_found",envelope:"http_envelope",httpStatus:404,retryable:false}),Object.freeze({wireCode:"not_found",envelope:"sse_frame",httpStatus:200,retryable:false}),Object.freeze({wireCode:"partner_visit_link_conflict",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"partner_visit_owner_only",envelope:"http_envelope",httpStatus:403,retryable:false}),Object.freeze({wireCode:"partner_visit_pet_already_mapped",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"payload_too_large",envelope:"http_envelope",httpStatus:413,retryable:false}),Object.freeze({wireCode:"petRefInUse",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"pet_health_list_removals_unconfirmed",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"pet_health_species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"pet_not_registered",envelope:"http_envelope",httpStatus:404,retryable:false}),Object.freeze({wireCode:"provider_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"rateLimited",envelope:"http_envelope",httpStatus:429,retryable:true}),Object.freeze({wireCode:"record_species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"record_subject_not_found",envelope:"http_envelope",httpStatus:404,retryable:false}),Object.freeze({wireCode:"record_upload_invalid",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"records_consent_required",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"sandbox_only",envelope:"http_envelope",httpStatus:403,retryable:false}),Object.freeze({wireCode:"session_required",envelope:"http_envelope",httpStatus:403,retryable:false}),Object.freeze({wireCode:"share_limit_reached",envelope:"http_envelope",httpStatus:429,retryable:false}),Object.freeze({wireCode:"slow_down",envelope:"oauth_error",httpStatus:429,retryable:true}),Object.freeze({wireCode:"species_unsupported",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"tenant_filter_invalid",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"tenant_has_no_capabilities",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"tenant_resource_not_found",envelope:"http_envelope",httpStatus:404,retryable:false}),Object.freeze({wireCode:"tenant_surface_not_enabled",envelope:"http_envelope",httpStatus:409,retryable:false}),Object.freeze({wireCode:"timeout",envelope:"sse_frame",httpStatus:200,retryable:true}),Object.freeze({wireCode:"token_invalid",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"unavailable",envelope:"sse_frame",httpStatus:200,retryable:true}),Object.freeze({wireCode:"unavailable",envelope:"http_envelope",httpStatus:503,retryable:true}),Object.freeze({wireCode:"unsupported_grant_type",envelope:"oauth_error",httpStatus:400,retryable:false}),Object.freeze({wireCode:"unsupported_response_type",envelope:"oauth_error",httpStatus:302,retryable:false}),Object.freeze({wireCode:"verify_mint_rate_limited",envelope:"http_envelope",httpStatus:429,retryable:true}),Object.freeze({wireCode:"verify_mint_refused",envelope:"http_envelope",httpStatus:403,retryable:false}),Object.freeze({wireCode:"verify_mint_unavailable",envelope:"http_envelope",httpStatus:503,retryable:true}),Object.freeze({wireCode:"verify_user_ref_invalid",envelope:"http_envelope",httpStatus:422,retryable:false}),Object.freeze({wireCode:"webhook_endpoint_update_empty",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"webhook_endpoint_update_invalid",envelope:"http_envelope",httpStatus:400,retryable:false}),Object.freeze({wireCode:"webhook_url_rejected",envelope:"http_envelope",httpStatus:400,retryable:false})]);Object.freeze(Pe.map(e=>e.wireCode));var mt=Object.freeze({ValidationException:"validationFailed",AuthorizationException:"authRejected",PaymentRequiredException:"paymentRequired",AccessDeniedException:"accessDenied",ResourceNotFoundException:"resourceNotFound",ConflictException:"conflict",ThrottlingException:"rateLimited",InternalFailureException:"internalError",NotImplementedException:"notImplemented",ServiceUnavailableException:"serviceUnavailable",MethodNotAllowedException:"validationFailed",authExpired:"authExpired",unavailable:"serviceUnavailable",session_required:"sessionRequired",accessDenied:"accessDenied",invalidRequest:"sdkUpdateRequired",authRejected:"authRejected",rateLimited:"rateLimited",insufficientCapability:"accessDenied",event_cursor_invalid:"validationFailed",event_filter_invalid:"validationFailed",event_payload_invalid:"validationFailed",event_type_unknown:"validationFailed",idempotency_key_invalid:"validationFailed",idempotency_key_required:"validationFailed",idempotency_key_reused:"idempotencyConflict",payload_too_large:"validationFailed",webhook_url_rejected:"validationFailed",webhook_endpoint_update_empty:"validationFailed",webhook_endpoint_update_invalid:"validationFailed",event_type_not_available:"conflict",record_subject_not_found:"resourceNotFound",records_consent_required:"conflict",record_species_unsupported:"validationFailed",record_upload_invalid:"validationFailed",FILE_TOO_LARGE:"validationFailed",INVALID_CONTENT_TYPE:"validationFailed",attachment_unreadable:"validationFailed",provider_unsupported:"validationFailed",token_invalid:"validationFailed",device_cipher_unavailable:"serviceUnavailable",email_invalid:"validationFailed",consent_required:"validationFailed",consent_invalid:"validationFailed",consent_scope_wrong_route:"validationFailed",IDEMPOTENCY_KEY_IN_FLIGHT:"idempotencyInFlight",IDEMPOTENCY_KEY_REUSED_DIFFERENT_REQUEST:"idempotencyConflict",DAILY_QUOTA_EXCEEDED:"quotaExceeded",TIER_UPGRADE_REQUIRED:"paymentRequired",not_found:"conversationNotFound",timeout:"streamTimeout",internal_error:"internalError",invalid_request:"validationFailed",invalid_client:"authRejected",invalid_grant:"authRejected",unsupported_grant_type:"validationFailed",invalid_scope:"validationFailed",invalid_target:"validationFailed",invalid_redirect_uri:"validationFailed",invalid_client_metadata:"validationFailed",unsupported_response_type:"validationFailed",access_denied:"accessDenied",slow_down:"rateLimited",mcp_request_not_found:"resourceNotFound",mcp_request_gone:"resourceNotFound",mcp_connection_not_found:"resourceNotFound",mcp_request_conflict:"conflict",sandbox_only:"accessDenied",tenant_has_no_capabilities:"conflict",verify_mint_refused:"accessDenied",verify_mint_rate_limited:"rateLimited",verify_mint_unavailable:"serviceUnavailable",verify_user_ref_invalid:"validationFailed",insufficient_scope:"accessDenied",tenant_filter_invalid:"validationFailed",tenant_resource_not_found:"resourceNotFound",tenant_surface_not_enabled:"conflict",pet_health_species_unsupported:"validationFailed",pet_health_list_removals_unconfirmed:"validationFailed",petRefInUse:"conflict",share_limit_reached:"conflict",pet_not_registered:"resourceNotFound",species_unsupported:"validationFailed",partner_visit_owner_only:"accessDenied",partner_visit_link_conflict:"conflict",partner_visit_pet_already_mapped:"conflict"}),Sr=Object.freeze(Pe.map(e=>Object.freeze({wireCode:e.wireCode,envelope:e.envelope,retryable:e.retryable,normalized:mt[e.wireCode]}))),gt=new Map(Sr.map(e=>[e.envelope+e.wireCode.toUpperCase(),e])),bt=Object.freeze(["http_envelope",...[...new Set(Sr.map(e=>e.envelope))].filter(e=>e!=="http_envelope").sort()]);function ge(e,r){if(typeof e!="string")return;let n=e.trim().toUpperCase();if(n.length!==0)for(let o of [r??"http_envelope",...bt]){let i=gt.get(o+n);if(i)return i}}t(ge,"contractErrorFor");function ht(e){return e.envelope==="sse_frame"?`/errors#sse-${e.wireCode}`:e.envelope==="oauth_error"?`/errors#oauth-${e.wireCode}`:`/errors#${e.wireCode}`}t(ht,"contractDocUrl");var kr=null;function Fr(e){return null}t(Fr,"publishedDocUrl");var Pa=Object.freeze(["authExpired","authRejected","sessionRequired","accessDenied","paymentRequired","quotaExceeded","rateLimited","validationFailed","sdkUpdateRequired","conflict","idempotencyConflict","idempotencyInFlight","conversationNotFound","petNotFound","resourceNotFound","streamTimeout","mediaUploadFailed","moderationBlocked","upstreamLlmTimeout","internalError","notImplemented","serviceUnavailable","streamIncomplete","unknown"]),Da=Object.freeze(["authentication","authorization","entitlement","rateLimit","invalidRequest","notFound","conflict","connection","server","media","policy","unknown"]),Et=Object.freeze({authExpired:"authentication",authRejected:"authentication",sessionRequired:"authentication",accessDenied:"authorization",paymentRequired:"entitlement",quotaExceeded:"rateLimit",rateLimited:"rateLimit",validationFailed:"invalidRequest",sdkUpdateRequired:"invalidRequest",conversationNotFound:"notFound",petNotFound:"notFound",resourceNotFound:"notFound",conflict:"conflict",idempotencyConflict:"conflict",idempotencyInFlight:"conflict",streamTimeout:"connection",streamIncomplete:"connection",upstreamLlmTimeout:"connection",serviceUnavailable:"connection",internalError:"server",notImplemented:"server",mediaUploadFailed:"media",moderationBlocked:"policy",unknown:"unknown"});function xr(e){return Et[e]}t(xr,"categoryFor");function X(e){let r=ge(e);if(r)return r.normalized;let n=(e??"").trim().toUpperCase(),o=n.replace(/[^A-Z0-9]/g,"");if(o==="AUTHREJECTED")return "authRejected";if(n.startsWith("AUTH"))return "authExpired";switch(o){case "DAILYQUOTAEXCEEDED":case "QUOTAEXCEEDED":return "quotaExceeded";case "RATELIMITED":case "TOOMANYREQUESTS":case "TELEVETRATELIMITED":return "rateLimited";case "IDEMPOTENCYKEYCONFLICT":case "IDEMPOTENCYCONFLICT":return "idempotencyConflict";case "ACCESSDENIED":case "FORBIDDEN":return "accessDenied";case "NOTFOUND":case "CONVERSATIONNOTFOUND":return "conversationNotFound";case "PETNOTFOUND":return "petNotFound";case "TIMEOUT":case "STREAMTIMEOUT":return "streamTimeout";case "MEDIAUPLOADFAILED":case "UNRECOGNIZEDVIDEOFORMAT":case "FILETOOSMALL":return "mediaUploadFailed";case "MODERATIONBLOCKED":return "moderationBlocked";case "UPSTREAMLLMTIMEOUT":return "upstreamLlmTimeout";case "INTERNALERROR":case "INTERNALSERVERERROR":return "internalError";case "STREAMINCOMPLETE":case "CHATSTREAMINCOMPLETE":return "streamIncomplete";case "INVALIDANALYSISTYPE":case "INVALIDUPLOADPURPOSE":return "unknown";default:return "unknown"}}t(X,"fromWire");function wr(e){return e===401?"authExpired":e===403?"accessDenied":e===404?"conversationNotFound":e===409?"idempotencyConflict":e===421?"unknown":e===429?"rateLimited":e===400||e===422?"unknown":e>=500?"internalError":"unknown"}t(wr,"fromHttpStatus");var vt=new Set(["streamTimeout","rateLimited","internalError","upstreamLlmTimeout","streamIncomplete"]);function B(e){return vt.has(e)}t(B,"isAutoRetryable");var _t=new Set(["serviceUnavailable","conflict","idempotencyInFlight"]);function Or(e){return B(e)||_t.has(e)}t(Or,"isRetryableCode");function Ma(e,r=false){return r||B(e)}t(Ma,"shouldRetry");var Rt=500,De=8e3,Ar=4;function Ir(e,r=Math.random){let n=Math.max(0,e),o=Math.min(Rt*2**n,De);return Math.floor(r()*o)}t(Ir,"backoffDelayMs");function La(e){return e==="conversationNotFound"}t(La,"canRecreateOnNotFound");var Ct=Object.freeze({authExpired:"Please sign in again to continue.",authRejected:"Please sign in again to continue.",sessionRequired:"This app needs to be updated to keep using Everfur.",accessDenied:"This feature isn't available on your account right now.",paymentRequired:"This is part of a paid plan.",quotaExceeded:"You have used today's messages. This resets tomorrow.",rateLimited:"You are sending messages quickly. Try again in a few seconds.",validationFailed:"Something in that request was not right. Check the details and try again.",sdkUpdateRequired:"This app needs to be updated to keep using Everfur.",conflict:"That is already running. Wait for it to finish, then try again.",idempotencyConflict:"That message was already delivered.",idempotencyInFlight:"That is still processing. Give it a moment.",conversationNotFound:"This conversation is no longer available.",petNotFound:"We could not find that pet. Please pick a pet and try again.",resourceNotFound:"We could not find that.",streamTimeout:"The response timed out. Tap retry to try again.",mediaUploadFailed:"We could not upload that photo. Please attach it again.",moderationBlocked:"This request cannot be answered here.",upstreamLlmTimeout:"The response timed out. Tap retry to try again.",internalError:"We hit a snag on our end. Please try again.",notImplemented:"That is not available yet.",serviceUnavailable:"That service is briefly unavailable. Try again shortly.",streamIncomplete:"The connection dropped mid-answer. Tap retry to continue.",unknown:"Something went wrong. Please try again."});function Me(e){return Ct[e]}t(Me,"userFacingError");function Pr(e,r,n){Object.defineProperty(e,r,{value:n,enumerable:false,writable:false,configurable:false});}t(Pr,"defineHidden");var Tt=/^[a-z][a-z0-9_]{0,63}$/;function C(e,r){let n=ge(r?.wireCode,r?.wireEnvelope),o={code:e,category:xr(e),retryable:r?.retryable??Or(e),displayMessage:Me(e)};if(r?.httpStatus!==void 0&&(o.httpStatus=r.httpStatus),r?.requestId&&(o.requestId=r.requestId),typeof r?.reasonCode=="string"&&Tt.test(r.reasonCode)&&(o.reasonCode=r.reasonCode),n);return r?.wireMessage&&Pr(o,"wireMessage",r.wireMessage),r?.raw!==void 0&&r.raw!==null&&Pr(o,"raw",r.raw),Object.freeze(o)}t(C,"makeEverfurError");function k(e,r){return Object.freeze(r===void 0?{ok:true,value:e}:{ok:true,value:e,warning:r})}t(k,"ok");function y(e){return Object.freeze({ok:false,error:e})}t(y,"err");function Ha(e){return e.ok}t(Ha,"isOk");function Ka(e){return !e.ok}t(Ka,"isErr");var be=class be extends Error{constructor(r){super(`${r.code}: ${r.displayMessage}`),this.name="EverfurThrownError",this.error=r,this.code=r.code,this.category=r.category,Object.setPrototypeOf(this,be.prototype);}};t(be,"EverfurThrownError");var Le=be;function $a(e){if(e.ok)return e.value;throw new Le(e.error)}t($a,"unwrap");var he=class he extends Error{constructor(r,n){super(n),this.name="EverfurConfigError",this.kind=r,Object.setPrototypeOf(this,he.prototype);}};t(he,"EverfurConfigError");var E=he;var kt="0.5.3",St="react-native",Ft="2026-09-19",Dr="EVERFUR_API_BASE_URL";function ne(e,r){return Object.freeze({ok:false,failure:Object.freeze({reason:e,message:r})})}t(ne,"configFailure");function xt(e){let r=typeof e=="string"?e.trim():"";return r.length===0?{reason:"missing-publishable-key",message:"publishableKey is required"}:/^sk[_-]/i.test(r)?{reason:"secret-key-as-publishable-key",message:"publishableKey looks like a SECRET key (sk_...). A device must never hold a partner secret key: use the pk_ publishable key here, and keep the secret key on your server."}:null}t(xt,"checkPublishableKey");function wt(e,r){let n=xt(e?.publishableKey);if(n!==null)return Object.freeze({ok:false,failure:n});let o=e.publishableKey.trim(),i=Mr(e.apiBaseUrl);if(!i.ok)return i;let a=e.contractVersion?.trim()||Ft;return Object.freeze({ok:true,config:Object.freeze({publishableKey:o,apiBaseUrl:i.value,contractVersion:a,sdkVersion:kt,platform:r?.platform??St,debug:e.debug===true})})}t(wt,"tryResolveClientConfig");function Va(e,r){let n=wt(e,r);if(!n.ok)throw new E("invalid-argument",n.failure.message);return n.config}t(Va,"resolveClientConfig");function Mr(e){let r=e?.trim(),n=r&&r.length>0?r:Nt(Dr);return n?Mt(n):ne("missing-api-base-url",`apiBaseUrl is required: pass config.apiBaseUrl or set ${Dr}. The SDK never ships a hardcoded host.`)}t(Mr,"tryResolveApiBaseUrl");function Xa(e){let r=Mr(e);if(!r.ok)throw new E("invalid-argument",r.failure.message);return r.value}t(Xa,"resolveApiBaseUrl");function Lr(e){return {"X-Everfur-SDK-Version":e.sdkVersion,"X-Everfur-SDK-Platform":e.platform,"X-Everfur-Contract":e.contractVersion}}t(Lr,"buildBaseHeaders");var Ot=/^([A-Za-z][A-Za-z0-9+.-]*):\/\/([^/?#]*)/;function At(e){return e.slice(e.lastIndexOf("@")+1).replace(/:\d+$/,"").toLowerCase()}t(At,"hostOf");function It(e){return e.length===0||e.includes("@")?false:e.startsWith("[")&&e.endsWith("]")?true:!e.includes(":")}t(It,"isPrintableHost");function Pt(e,r){let n=e.indexOf("://");return n<0||e.slice(n+3).includes("@")?false:It(r)}t(Pt,"canEchoOrigin");function Dt(e,r){return `${e}://${r}`}t(Dt,"safeOrigin");function Mt(e){let r=e.trim(),n=Ot.exec(r);if(n===null||n[2]===void 0||n[2].length===0)return ne("malformed-api-base-url","apiBaseUrl is not a valid absolute URL");let o=(n[1]??"").toLowerCase(),i=At(n[2]);if(i.length===0)return ne("malformed-api-base-url","apiBaseUrl is not a valid absolute URL");let a=Pt(r,i)?`: ${Dt(o,i)}`:"";if(o!=="https"){if(!(o==="http"&&Lt(i)))return o==="http"?ne("insecure-api-base-url",`apiBaseUrl must use https (cleartext http is only allowed for localhost)${a}`):ne("unsupported-api-base-url-scheme",`apiBaseUrl must be http(s)${a}`)}let s=r.endsWith("/")?r.slice(0,-1):r;return Object.freeze({ok:true,value:s})}t(Mt,"normalizeBaseUrl");function Lt(e){let r=e.toLowerCase();return r==="localhost"||r==="127.0.0.1"||r==="[::1]"||r==="::1"}t(Lt,"isLoopbackHost");function Nt(e){let n=globalThis.process?.env?.[e];return typeof n=="string"&&n.trim().length>0?n.trim():void 0}t(Nt,"readEnv");function Q(e){for(let r=0;r<e.length;r+=1){let n=e.charCodeAt(r);if(n>=55296&&n<=56319){let o=e.charCodeAt(r+1);if(!(o>=56320&&o<=57343))return true;r+=1;}else if(n>=56320&&n<=57343)return true}return false}t(Q,"hasLoneSurrogate");function j(e){return [...e].length}t(j,"serverLength");var Nr=128,zr=128,Br=/[\u0000-\u001F\u007F]/,zt=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function ts(e){let r=e,n=j(r);if(n===0||n>zr)throw new E("invalid-argument",`petRef must be 1..${zr} characters`);if(Br.test(r))throw new E("invalid-argument","petRef must be printable (no control characters)");return r}t(ts,"petRef");function os(e){let r=e,n=j(r);if(n===0||n>Nr)throw new E("invalid-argument",`userRef must be 1..${Nr} characters`);if(r.includes("@"))throw new E("invalid-argument","userRef must not contain '@'");if(Br.test(r))throw new E("invalid-argument","userRef must be printable (no control characters)");return r}t(os,"userRef");function is(e){if(!zt.test(e))throw new E("invalid-argument","conversationId must be a UUID");return e}t(is,"conversationId");function as(e){return e}t(as,"unsafePetRef");function ss(e){return e}t(ss,"unsafeUserRef");function ls(e){return e}t(ls,"unsafeConversationId");function us(e){return e}t(us,"unsafeResponseId");function ds(e){return e}t(ds,"unsafeClientId");function cs(e){return e}t(cs,"unsafeDocumentId");function fs(e){return e}t(fs,"unsafeJobId");function ps(e){return e}t(ps,"unsafeRecordsRequestId");function hs(e,r,n){let o=null,i=null,a=false,s=t(()=>i||(i=(async()=>{try{let l=await r(),u=typeof l=="string"?l:l?.token;if(typeof u!="string"||u.length===0)throw new E("invalid-argument","TokenProvider returned an empty token");return o=u,n?.(typeof l=="string"?null:Bt(l.expiresAt)),u}finally{i=null;}})(),i),"load");return {userRef:e,async currentToken(l){if(a)throw new E("not-initialized","This identity was cleared (sign-out); mint a new one.");return l?.forceRefresh&&(o=null),o!==null?o:s()},hasToken(){return !a&&o!==null},clear(){a=true,o=null;}}}t(hs,"createIdentityProvider");function Bt(e){if(e===void 0)return null;let r=typeof e=="number"?e<1e11?e*1e3:e:new Date(e).getTime();return Number.isFinite(r)?r:null}t(Bt,"expiryMs");function Es(){let e=new Uint8Array(16),r=globalThis.crypto;if(typeof r?.getRandomValues=="function")r.getRandomValues(e);else for(let o=0;o<e.length;o+=1)e[o]=Math.floor(Math.random()*256);e[6]=e[6]&15|64,e[8]=e[8]&63|128;let n=[];for(let o=0;o<e.length;o+=1)n.push(e[o].toString(16).padStart(2,"0"));return n.slice(0,4).join("")+"-"+n.slice(4,6).join("")+"-"+n.slice(6,8).join("")+"-"+n.slice(8,10).join("")+"-"+n.slice(10,16).join("")}t(Es,"newSessionId");function jt(e){let r={};return e.mode==="personalized"?r.authorization=`Bearer ${e.token}`:r["x-everfur-partner-key"]=e.publishableKey,e.userRef&&(r["x-everfur-user-ref"]=e.userRef),e.sessionId&&(r["x-everfur-session-id"]=e.sessionId),r}t(jt,"authHeaders");function te(e,r){return {...e,headers:{...Ut(e.headers),...jt(r)}}}t(te,"withAuthHeaders");function Ut(e){if(!e)return {};let r={};for(let[n,o]of Object.entries(e)){let i=n.toLowerCase();i==="authorization"||i==="x-everfur-partner-key"||(r[n]=o);}return r}t(Ut,"stripAuthHeaders");async function jr(e,r){if(r.mode==="anonymous")return r.transport.request(te(e,{mode:"anonymous",publishableKey:r.publishableKey,userRef:r.userRef,...r.sessionId?{sessionId:r.sessionId}:{}}));let n;try{n=await r.identity.currentToken();}catch{return y(Ne())}let o=await r.transport.request(te(e,{mode:"personalized",token:n,userRef:r.userRef,...r.sessionId?{sessionId:r.sessionId}:{}}));if(o.ok||o.error.httpStatus!==401)return o;let i;try{i=await r.identity.currentToken({forceRefresh:!0});}catch{return y(Ne())}let a=await r.transport.request(te(e,{mode:"personalized",token:i,userRef:r.userRef,...r.sessionId?{sessionId:r.sessionId}:{}}));return !a.ok&&a.error.httpStatus===401?y(Ne(a.error.httpStatus)):a}t(jr,"authedSend");function Ne(e){return C("authRejected",{retryable:false,...e!==void 0?{httpStatus:e}:{}})}t(Ne,"authRejectedError");function Rs(e){throw new Error(`assertNever: unhandled discriminated-union member ${JSON.stringify(e)}`)}t(Rs,"assertNever");var qt=Object.freeze([]),Ht=Object.freeze([]);function Ur(e,r,n=null){return Object.freeze({kind:"accepted",streamId:e,lastEventId:r,serverRequestId:n,terminal:false})}t(Ur,"acceptedFrame");function qr(e,r=null){return Object.freeze({kind:"heartbeat",lastEventId:e,serverRequestId:r,terminal:false})}t(qr,"heartbeatFrame");function Hr(e,r,n=null){return Object.freeze({kind:"delta",delta:e,lastEventId:r,serverRequestId:n,terminal:false})}t(Hr,"deltaFrame");function Kr(e,r=null){return Object.freeze({kind:"done",terminal:true,conversationId:e.conversationId,messageId:e.messageId,title:e.title,followUpQuestions:Object.freeze([...e.followUpQuestions]),citations:Object.freeze([...e.citations]),citationStatus:e.citationStatus,urgencyLevel:e.urgencyLevel,urgencyReason:e.urgencyReason,urgencyProvided:e.urgencyProvided??e.urgencyLevel!==null,resultId:e.resultId,lastEventId:e.lastEventId,serverRequestId:r})}t(Kr,"doneFrame");function D(e){return Object.freeze({kind:"error",terminal:true,code:e.code,retryable:e.retryable,wireMessage:e.wireMessage,synthesized:e.synthesized,lastEventId:e.lastEventId,serverRequestId:e.serverRequestId??null})}t(D,"errorFrame");function $r(e,r,n=null){return Object.freeze({kind:"analysisStarted",requestId:e,lastEventId:r,serverRequestId:n,terminal:false})}t($r,"analysisStartedFrame");function Wr(e,r=null){return Object.freeze({kind:"analysisComplete",terminal:false,resultId:e.resultId,analysisType:e.analysisType,modelVersion:e.modelVersion,confidence:e.confidence,detections:Object.freeze([...e.detections]),interpretation:e.interpretation,lastEventId:e.lastEventId,serverRequestId:r})}t(Wr,"analysisCompleteFrame");function Gr(e,r,n=null){return Object.freeze({kind:"unknown",raw:{...e},lastEventId:r,serverRequestId:n,terminal:false})}t(Gr,"unknownFrame");var Cs=Object.freeze({strings:qt,maps:Ht});var Yr=`
2
2
 
3
3
  `,Kt=1048576,$t=z$1.record(z$1.string(),z$1.unknown()),Wt=["emergency","schedule_soon","home_care"];async function*Ee(e,r=null){let n=null,o=t(()=>(n!==null||(n=typeof r=="function"?r():r),n),"requestIdNow"),i=new TextDecoder("utf-8"),a="",s=0,l=false;for await(let u of e){for(a+=i.decode(u,{stream:true});;){let d=a.indexOf(Yr,s);if(d===-1)break;let f=a.slice(0,d);a=a.slice(d+Yr.length),s=0;let c=Vr(f,o());if(c!==null&&(c.kind==="delta"&&(l=true),yield c,c.terminal))return}if(s=a.length>0?a.length-1:0,a.length>Kt){yield D({code:l?"CHAT_STREAM_INCOMPLETE":"internal_error",retryable:true,wireMessage:null,synthesized:true,lastEventId:null,serverRequestId:o()});return}}if(a+=i.decode(),a.trim().length>0){let u=Vr(a,o());if(u!==null&&(u.kind==="delta"&&(l=true),yield u,u.terminal))return}yield D({code:l?"CHAT_STREAM_INCOMPLETE":"internal_error",retryable:true,wireMessage:null,synthesized:true,lastEventId:null,serverRequestId:o()});}t(Ee,"parseSse");function Vr(e,r){let n=null,o=[];for(let s of e.split(`
4
4
  `)){let l=s.replace(/\s+$/,"");l.length===0||l.startsWith(":")||(l.startsWith("id:")?n=l.slice(3).trim():l.startsWith("data:")&&o.push(l.slice(5).replace(/^ /,"")));}if(o.length===0)return null;let i;try{i=JSON.parse(o.join(`
@@ -409,7 +409,7 @@ declare function getGlobalFetch(): FetchLike;
409
409
  * Package semver, sent as X-Everfur-SDK-Version. MUST track package.json version (release checklist Item 12
410
410
  * keeps the npm semver tag and this constant in lockstep). Set inside the SDK, never by partner code.
411
411
  */
412
- declare const SDK_VERSION = "0.5.2";
412
+ declare const SDK_VERSION = "0.5.3";
413
413
  /**
414
414
  * The platforms this package ships an entry point for, as the wire names them (X-Everfur-SDK-Platform).
415
415
  *
@@ -409,7 +409,7 @@ declare function getGlobalFetch(): FetchLike;
409
409
  * Package semver, sent as X-Everfur-SDK-Version. MUST track package.json version (release checklist Item 12
410
410
  * keeps the npm semver tag and this constant in lockstep). Set inside the SDK, never by partner code.
411
411
  */
412
- declare const SDK_VERSION = "0.5.2";
412
+ declare const SDK_VERSION = "0.5.3";
413
413
  /**
414
414
  * The platforms this package ships an entry point for, as the wire names them (X-Everfur-SDK-Platform).
415
415
  *
@@ -1,15 +1,15 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { StyleProp, ViewStyle } from 'react-native';
3
- import { E as EverfurConsentScope } from '../copy-IysFx8yL.cjs';
4
- export { C as CONSENT_COPY, a as CONSENT_SCOPE_COPY, b as CONSENT_VERSION_MAX, c as ConsentRepository, d as ConsentRepositoryDeps, e as ConsentRowView, f as ConsentRuntime, g as ConsentScopeCopy, h as EVERFUR_CONSENT_SCOPES, i as EverfurConsentDecision, j as EverfurConsentOptions, k as EverfurConsentScopeState, l as EverfurConsentState, m as EverfurConsentStatus, n as EverfurConsentVerdict, o as consentRowView, p as createConsentRepository, q as createConsentRepositoryOver, r as isEverfurConsentScope, u as useEverfurConsent, s as useEverfurConsentRepository } from '../copy-IysFx8yL.cjs';
3
+ import { E as EverfurConsentScope } from '../copy-Be2H2i-D.cjs';
4
+ export { C as CONSENT_COPY, a as CONSENT_SCOPE_COPY, b as CONSENT_VERSION_MAX, c as ConsentRepository, d as ConsentRepositoryDeps, e as ConsentRowView, f as ConsentRuntime, g as ConsentScopeCopy, h as EVERFUR_CONSENT_SCOPES, i as EverfurConsentDecision, j as EverfurConsentOptions, k as EverfurConsentScopeState, l as EverfurConsentState, m as EverfurConsentStatus, n as EverfurConsentVerdict, o as consentRowView, p as createConsentRepository, q as createConsentRepositoryOver, r as isEverfurConsentScope, u as useEverfurConsent, s as useEverfurConsentRepository } from '../copy-Be2H2i-D.cjs';
5
5
  import { E as EverfurError } from '../EverfurError-DmELDpXp.cjs';
6
6
  export { a as EverfurErrorCategory, b as EverfurErrorCode } from '../EverfurError-DmELDpXp.cjs';
7
- export { A as AuthContext, I as IdentityProvider, M as MintedToken, T as TokenProvider } from '../identity-D7GKfOE7.cjs';
8
- export { A as AcceptedFrame, a as AnalysisCompleteFrame, b as AnalysisStartedFrame, D as DeltaFrame, c as DoneFrame, E as ErrorFrame, d as EverfurRequest, e as EverfurRequestBase, F as Frame, f as FrameBase, g as FrameKind, H as HeartbeatFrame, h as HttpMethod, M as MultipartBody, T as TransportPort, U as UnknownFrame, i as UrgencyLevel } from '../config-jocy3q66.cjs';
7
+ export { A as AuthContext, I as IdentityProvider, M as MintedToken, T as TokenProvider } from '../identity-Z0yj-fC_.cjs';
8
+ export { A as AcceptedFrame, a as AnalysisCompleteFrame, b as AnalysisStartedFrame, D as DeltaFrame, c as DoneFrame, E as ErrorFrame, d as EverfurRequest, e as EverfurRequestBase, F as Frame, f as FrameBase, g as FrameKind, H as HeartbeatFrame, h as HttpMethod, M as MultipartBody, T as TransportPort, U as UnknownFrame, i as UrgencyLevel } from '../config-Bkbqkjb0.cjs';
9
9
  export { B as Brand, C as ConversationId, P as PetRef, R as RecordsRequestId, U as UserRef, _ as __brand } from '../ids-B2GAAifq.cjs';
10
10
  export { E as EverfurResult } from '../EverfurResult-ZtH-YV1h.cjs';
11
11
  export { E as ErrorPolicyPort } from '../ErrorPolicyPort-D6CybiqJ.cjs';
12
- import '../requestFunnel-Dcjyh0j2.cjs';
12
+ import '../requestFunnel-DrigK6q_.cjs';
13
13
 
14
14
  interface EverfurConsentToggleProps {
15
15
  /** Which act this row is. One row is one act; two acts are two rows, never one switch. */
@@ -1,15 +1,15 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { StyleProp, ViewStyle } from 'react-native';
3
- import { E as EverfurConsentScope } from '../copy-KP91zgtW.js';
4
- export { C as CONSENT_COPY, a as CONSENT_SCOPE_COPY, b as CONSENT_VERSION_MAX, c as ConsentRepository, d as ConsentRepositoryDeps, e as ConsentRowView, f as ConsentRuntime, g as ConsentScopeCopy, h as EVERFUR_CONSENT_SCOPES, i as EverfurConsentDecision, j as EverfurConsentOptions, k as EverfurConsentScopeState, l as EverfurConsentState, m as EverfurConsentStatus, n as EverfurConsentVerdict, o as consentRowView, p as createConsentRepository, q as createConsentRepositoryOver, r as isEverfurConsentScope, u as useEverfurConsent, s as useEverfurConsentRepository } from '../copy-KP91zgtW.js';
3
+ import { E as EverfurConsentScope } from '../copy-SxmZ-Eps.js';
4
+ export { C as CONSENT_COPY, a as CONSENT_SCOPE_COPY, b as CONSENT_VERSION_MAX, c as ConsentRepository, d as ConsentRepositoryDeps, e as ConsentRowView, f as ConsentRuntime, g as ConsentScopeCopy, h as EVERFUR_CONSENT_SCOPES, i as EverfurConsentDecision, j as EverfurConsentOptions, k as EverfurConsentScopeState, l as EverfurConsentState, m as EverfurConsentStatus, n as EverfurConsentVerdict, o as consentRowView, p as createConsentRepository, q as createConsentRepositoryOver, r as isEverfurConsentScope, u as useEverfurConsent, s as useEverfurConsentRepository } from '../copy-SxmZ-Eps.js';
5
5
  import { E as EverfurError } from '../EverfurError-DmELDpXp.js';
6
6
  export { a as EverfurErrorCategory, b as EverfurErrorCode } from '../EverfurError-DmELDpXp.js';
7
- export { A as AuthContext, I as IdentityProvider, M as MintedToken, T as TokenProvider } from '../identity-k8nCQ_qM.js';
8
- export { A as AcceptedFrame, a as AnalysisCompleteFrame, b as AnalysisStartedFrame, D as DeltaFrame, c as DoneFrame, E as ErrorFrame, d as EverfurRequest, e as EverfurRequestBase, F as Frame, f as FrameBase, g as FrameKind, H as HeartbeatFrame, h as HttpMethod, M as MultipartBody, T as TransportPort, U as UnknownFrame, i as UrgencyLevel } from '../config-DBpKJJbg.js';
7
+ export { A as AuthContext, I as IdentityProvider, M as MintedToken, T as TokenProvider } from '../identity-AuoeDRTh.js';
8
+ export { A as AcceptedFrame, a as AnalysisCompleteFrame, b as AnalysisStartedFrame, D as DeltaFrame, c as DoneFrame, E as ErrorFrame, d as EverfurRequest, e as EverfurRequestBase, F as Frame, f as FrameBase, g as FrameKind, H as HeartbeatFrame, h as HttpMethod, M as MultipartBody, T as TransportPort, U as UnknownFrame, i as UrgencyLevel } from '../config-BXVgTLCh.js';
9
9
  export { B as Brand, C as ConversationId, P as PetRef, R as RecordsRequestId, U as UserRef, _ as __brand } from '../ids-B2GAAifq.js';
10
10
  export { E as EverfurResult } from '../EverfurResult-SGvHKsCB.js';
11
11
  export { E as ErrorPolicyPort } from '../ErrorPolicyPort-D22LUVrK.js';
12
- import '../requestFunnel-CTG-wNc3.js';
12
+ import '../requestFunnel-CJC_q4BZ.js';
13
13
 
14
14
  interface EverfurConsentToggleProps {
15
15
  /** Which act this row is. One row is one act; two acts are two rows, never one switch. */
@@ -1,18 +1,18 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { U as UserRef, P as PetRef } from './ids-B2GAAifq.js';
3
3
  import { C as CapabilityName, a as CapabilityDecision } from './resolve-D4Ywz5OS.js';
4
- import { T as TokenProvider } from './identity-k8nCQ_qM.js';
5
- import { T as TransportPort } from './config-DBpKJJbg.js';
4
+ import { T as TokenProvider } from './identity-AuoeDRTh.js';
5
+ import { T as TransportPort } from './config-BXVgTLCh.js';
6
6
  import { K as KvPort, I as ImageCachePort } from './cacheEpoch-DknKn3S0.js';
7
- import { S as SecureStorePort, b as LogSink, e as EverfurRuntime } from './runtimeTypes-CmpdQaE2.js';
7
+ import { S as SecureStorePort, b as LogSink, e as EverfurRuntime } from './runtimeTypes-BiqMY6pC.js';
8
8
  import { T as TelemetryPort } from './TelemetryPort-BDNr00hu.js';
9
9
  import { E as ErrorPolicyPort } from './ErrorPolicyPort-D22LUVrK.js';
10
10
  import { C as CameraPort } from './CameraPort-Cv31Pz7g.js';
11
11
  import { U as UploadTransport } from './ports-BN6RHF9W.js';
12
- import { U as UploadPort } from './ports-DHhxhn95.js';
12
+ import { U as UploadPort } from './ports-DNIvfzBP.js';
13
13
  import { E as EverfurThemeInput } from './branding-xpQ056sM.js';
14
14
  import { E as EverfurError } from './EverfurError-DmELDpXp.js';
15
- import { b as WidgetPetProfile } from './petsRepository-DdzgINfF.js';
15
+ import { b as WidgetPetProfile } from './petsRepository-BaTOwJ5L.js';
16
16
  import { E as EverfurTheme } from './tokens-CIngRkvt.js';
17
17
 
18
18
  interface EverfurConfig {
@@ -1,18 +1,18 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { U as UserRef, P as PetRef } from './ids-B2GAAifq.cjs';
3
3
  import { C as CapabilityName, a as CapabilityDecision } from './resolve-D4Ywz5OS.cjs';
4
- import { T as TokenProvider } from './identity-D7GKfOE7.cjs';
5
- import { T as TransportPort } from './config-jocy3q66.cjs';
4
+ import { T as TokenProvider } from './identity-Z0yj-fC_.cjs';
5
+ import { T as TransportPort } from './config-Bkbqkjb0.cjs';
6
6
  import { K as KvPort, I as ImageCachePort } from './cacheEpoch-DknKn3S0.cjs';
7
- import { S as SecureStorePort, b as LogSink, e as EverfurRuntime } from './runtimeTypes-4qptUulD.cjs';
7
+ import { S as SecureStorePort, b as LogSink, e as EverfurRuntime } from './runtimeTypes-Doj95Gll.cjs';
8
8
  import { T as TelemetryPort } from './TelemetryPort-BDNr00hu.cjs';
9
9
  import { E as ErrorPolicyPort } from './ErrorPolicyPort-D6CybiqJ.cjs';
10
10
  import { C as CameraPort } from './CameraPort-Cv31Pz7g.cjs';
11
11
  import { U as UploadTransport } from './ports-BN6RHF9W.cjs';
12
- import { U as UploadPort } from './ports-BSm48zIC.cjs';
12
+ import { U as UploadPort } from './ports-Dof7AQjk.cjs';
13
13
  import { E as EverfurThemeInput } from './branding-Xb_wL8N1.cjs';
14
14
  import { E as EverfurError } from './EverfurError-DmELDpXp.cjs';
15
- import { b as WidgetPetProfile } from './petsRepository-B3vr628I.cjs';
15
+ import { b as WidgetPetProfile } from './petsRepository-CsvreWlY.cjs';
16
16
  import { E as EverfurTheme } from './tokens-CIngRkvt.cjs';
17
17
 
18
18
  interface EverfurConfig {
@@ -1,7 +1,7 @@
1
1
  import { E as EverfurError } from './EverfurError-DmELDpXp.cjs';
2
2
  import { E as EverfurResult } from './EverfurResult-ZtH-YV1h.cjs';
3
- import { R as RequestFunnel } from './requestFunnel-Dcjyh0j2.cjs';
4
- import { A as AuthContext } from './identity-D7GKfOE7.cjs';
3
+ import { R as RequestFunnel } from './requestFunnel-DrigK6q_.cjs';
4
+ import { A as AuthContext } from './identity-Z0yj-fC_.cjs';
5
5
  import { U as UserRef } from './ids-B2GAAifq.cjs';
6
6
  import { E as ErrorPolicyPort } from './ErrorPolicyPort-D6CybiqJ.cjs';
7
7
 
@@ -1,7 +1,7 @@
1
1
  import { E as EverfurError } from './EverfurError-DmELDpXp.js';
2
2
  import { E as EverfurResult } from './EverfurResult-SGvHKsCB.js';
3
- import { R as RequestFunnel } from './requestFunnel-CTG-wNc3.js';
4
- import { A as AuthContext } from './identity-k8nCQ_qM.js';
3
+ import { R as RequestFunnel } from './requestFunnel-CJC_q4BZ.js';
4
+ import { A as AuthContext } from './identity-AuoeDRTh.js';
5
5
  import { U as UserRef } from './ids-B2GAAifq.js';
6
6
  import { E as ErrorPolicyPort } from './ErrorPolicyPort-D22LUVrK.js';
7
7
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  `,ki=1048576,Ti=zod.z.record(zod.z.string(),zod.z.unknown()),Pi=["emergency","schedule_soon","home_care"];async function*Ue(e,t=null){let r=null,n=i(()=>(r!==null||(r=typeof t=="function"?t():t),r),"requestIdNow"),o=new TextDecoder("utf-8"),s="",l=0,u=false;for await(let a of e){for(s+=o.decode(a,{stream:true});;){let d=s.indexOf(xr,l);if(d===-1)break;let c=s.slice(0,d);s=s.slice(d+xr.length),l=0;let f=Ir(c,n());if(f!==null&&(f.kind==="delta"&&(u=true),yield f,f.terminal))return}if(l=s.length>0?s.length-1:0,s.length>ki){yield N({code:u?"CHAT_STREAM_INCOMPLETE":"internal_error",retryable:true,wireMessage:null,synthesized:true,lastEventId:null,serverRequestId:n()});return}}if(s+=o.decode(),s.trim().length>0){let a=Ir(s,n());if(a!==null&&(a.kind==="delta"&&(u=true),yield a,a.terminal))return}yield N({code:u?"CHAT_STREAM_INCOMPLETE":"internal_error",retryable:true,wireMessage:null,synthesized:true,lastEventId:null,serverRequestId:n()});}i(Ue,"parseSse");function Ir(e,t){let r=null,n=[];for(let l of e.split(`
4
4
  `)){let u=l.replace(/\s+$/,"");u.length===0||u.startsWith(":")||(u.startsWith("id:")?r=u.slice(3).trim():u.startsWith("data:")&&n.push(u.slice(5).replace(/^ /,"")));}if(n.length===0)return null;let o;try{o=JSON.parse(n.join(`
5
- `));}catch{return null}if(typeof o!="object"||o===null||Array.isArray(o))return null;let s=Ti.safeParse(o);return s.success?xi(s.data,r,t):null}i(Ir,"parseBlock");function xi(e,t,r){let n=e.type,o=e.event;if(n==="error"||"error"in e)return N({code:z(e.code)??"unknown",retryable:e.retryable===true,wireMessage:z(e.error),synthesized:false,lastEventId:t,serverRequestId:r});if(n==="done"||e.done===true)return Er({conversationId:z(e.conversation_id)??"",messageId:z(e.message_id),title:z(e.title),followUpQuestions:Ai(e.follow_up_questions),citations:Or(e.citations),citationStatus:z(e.citation_status),urgencyLevel:Ar(e.urgency_level),urgencyReason:z(e.urgency_reason),urgencyProvided:Oi(e),resultId:z(e.result_id),lastEventId:t},r);if(n==="accepted"||e.status==="reasoning")return vr(z(e.stream_id),t,r);if(n==="heartbeat"||e.heartbeat===true)return _r(t,r);if(n==="text.delta"||"delta"in e||"token"in e){let s=z(e.delta)??z(e.token)??"";return Rr(s,t,r)}return o==="analysis_started"?Cr(z(e.request_id),t,r):o==="analysis_complete"?Sr({resultId:z(e.result_id),analysisType:z(e.analysis_type),modelVersion:z(e.model_version),confidence:Ii(e.confidence),detections:Or(e.detections),interpretation:z(e.interpretation),lastEventId:t},r):wr(e,t,r)}i(xi,"frameFromWire");function z(e){return typeof e=="string"?e:null}i(z,"asString");function Ii(e){return typeof e=="number"&&Number.isFinite(e)?e:null}i(Ii,"asNumber");function Ar(e){return typeof e=="string"&&Pi.includes(e)?e:null}i(Ar,"asUrgency");function Oi(e){if(!Object.prototype.hasOwnProperty.call(e,"urgency_level"))return false;let t=e.urgency_level;return t===null||Ar(t)!==null}i(Oi,"urgencySlotProvided");function Ai(e){return Array.isArray(e)?e.map(t=>typeof t=="string"?t:String(t)):[]}i(Ai,"asStringList");function Fi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}i(Fi,"isPlainObject");function Or(e){return Array.isArray(e)?e.filter(Fi):[]}i(Or,"asMapList");var Mi="0.5.2",Di="react-native",ji="2026-09-19",Fr="EVERFUR_API_BASE_URL";function me(e,t){return Object.freeze({ok:false,failure:Object.freeze({reason:e,message:t})})}i(me,"configFailure");function lt(e){let t=typeof e=="string"?e.trim():"";return t.length===0?{reason:"missing-publishable-key",message:"publishableKey is required"}:/^sk[_-]/i.test(t)?{reason:"secret-key-as-publishable-key",message:"publishableKey looks like a SECRET key (sk_...). A device must never hold a partner secret key: use the pk_ publishable key here, and keep the secret key on your server."}:null}i(lt,"checkPublishableKey");function Mr(e,t){let r=lt(e?.publishableKey);if(r!==null)return Object.freeze({ok:false,failure:r});let n=e.publishableKey.trim(),o=zi(e.apiBaseUrl);if(!o.ok)return o;let s=e.contractVersion?.trim()||ji;return Object.freeze({ok:true,config:Object.freeze({publishableKey:n,apiBaseUrl:o.value,contractVersion:s,sdkVersion:Mi,platform:t?.platform??Di,debug:e.debug===true})})}i(Mr,"tryResolveClientConfig");function zi(e){let t=e?.trim(),r=t&&t.length>0?t:$i(Fr);return r?Hi(r):me("missing-api-base-url",`apiBaseUrl is required: pass config.apiBaseUrl or set ${Fr}. The SDK never ships a hardcoded host.`)}i(zi,"tryResolveApiBaseUrl");function Dr(e){return {"X-Everfur-SDK-Version":e.sdkVersion,"X-Everfur-SDK-Platform":e.platform,"X-Everfur-Contract":e.contractVersion}}i(Dr,"buildBaseHeaders");var Li=/^([A-Za-z][A-Za-z0-9+.-]*):\/\/([^/?#]*)/;function Ui(e){return e.slice(e.lastIndexOf("@")+1).replace(/:\d+$/,"").toLowerCase()}i(Ui,"hostOf");function Ni(e){return e.length===0||e.includes("@")?false:e.startsWith("[")&&e.endsWith("]")?true:!e.includes(":")}i(Ni,"isPrintableHost");function Bi(e,t){let r=e.indexOf("://");return r<0||e.slice(r+3).includes("@")?false:Ni(t)}i(Bi,"canEchoOrigin");function qi(e,t){return `${e}://${t}`}i(qi,"safeOrigin");function Hi(e){let t=e.trim(),r=Li.exec(t);if(r===null||r[2]===void 0||r[2].length===0)return me("malformed-api-base-url","apiBaseUrl is not a valid absolute URL");let n=(r[1]??"").toLowerCase(),o=Ui(r[2]);if(o.length===0)return me("malformed-api-base-url","apiBaseUrl is not a valid absolute URL");let s=Bi(t,o)?`: ${qi(n,o)}`:"";if(n!=="https"){if(!(n==="http"&&Ki(o)))return n==="http"?me("insecure-api-base-url",`apiBaseUrl must use https (cleartext http is only allowed for localhost)${s}`):me("unsupported-api-base-url-scheme",`apiBaseUrl must be http(s)${s}`)}let l=t.endsWith("/")?t.slice(0,-1):t;return Object.freeze({ok:true,value:l})}i(Hi,"normalizeBaseUrl");function Ki(e){let t=e.toLowerCase();return t==="localhost"||t==="127.0.0.1"||t==="[::1]"||t==="::1"}i(Ki,"isLoopbackHost");function $i(e){let r=globalThis.process?.env?.[e];return typeof r=="string"&&r.trim().length>0?r.trim():void 0}i($i,"readEnv");var Vi=3e4,Ur="x-request-id";async function*jr(e){if(!e)return;let t=e.getReader();try{for(;;){let{done:r,value:n}=await t.read();if(r)break;n&&n.length>0&&(yield n);}}finally{await t.cancel?.();}}i(jr,"fetchByteSource");function Wi(e){let t=new TextEncoder,r=Yi(),n=false,o=i(a=>{let d="";a.lastEventId&&(d+=`id: ${a.lastEventId}
5
+ `));}catch{return null}if(typeof o!="object"||o===null||Array.isArray(o))return null;let s=Ti.safeParse(o);return s.success?xi(s.data,r,t):null}i(Ir,"parseBlock");function xi(e,t,r){let n=e.type,o=e.event;if(n==="error"||"error"in e)return N({code:z(e.code)??"unknown",retryable:e.retryable===true,wireMessage:z(e.error),synthesized:false,lastEventId:t,serverRequestId:r});if(n==="done"||e.done===true)return Er({conversationId:z(e.conversation_id)??"",messageId:z(e.message_id),title:z(e.title),followUpQuestions:Ai(e.follow_up_questions),citations:Or(e.citations),citationStatus:z(e.citation_status),urgencyLevel:Ar(e.urgency_level),urgencyReason:z(e.urgency_reason),urgencyProvided:Oi(e),resultId:z(e.result_id),lastEventId:t},r);if(n==="accepted"||e.status==="reasoning")return vr(z(e.stream_id),t,r);if(n==="heartbeat"||e.heartbeat===true)return _r(t,r);if(n==="text.delta"||"delta"in e||"token"in e){let s=z(e.delta)??z(e.token)??"";return Rr(s,t,r)}return o==="analysis_started"?Cr(z(e.request_id),t,r):o==="analysis_complete"?Sr({resultId:z(e.result_id),analysisType:z(e.analysis_type),modelVersion:z(e.model_version),confidence:Ii(e.confidence),detections:Or(e.detections),interpretation:z(e.interpretation),lastEventId:t},r):wr(e,t,r)}i(xi,"frameFromWire");function z(e){return typeof e=="string"?e:null}i(z,"asString");function Ii(e){return typeof e=="number"&&Number.isFinite(e)?e:null}i(Ii,"asNumber");function Ar(e){return typeof e=="string"&&Pi.includes(e)?e:null}i(Ar,"asUrgency");function Oi(e){if(!Object.prototype.hasOwnProperty.call(e,"urgency_level"))return false;let t=e.urgency_level;return t===null||Ar(t)!==null}i(Oi,"urgencySlotProvided");function Ai(e){return Array.isArray(e)?e.map(t=>typeof t=="string"?t:String(t)):[]}i(Ai,"asStringList");function Fi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}i(Fi,"isPlainObject");function Or(e){return Array.isArray(e)?e.filter(Fi):[]}i(Or,"asMapList");var Mi="0.5.3",Di="react-native",ji="2026-09-19",Fr="EVERFUR_API_BASE_URL";function me(e,t){return Object.freeze({ok:false,failure:Object.freeze({reason:e,message:t})})}i(me,"configFailure");function lt(e){let t=typeof e=="string"?e.trim():"";return t.length===0?{reason:"missing-publishable-key",message:"publishableKey is required"}:/^sk[_-]/i.test(t)?{reason:"secret-key-as-publishable-key",message:"publishableKey looks like a SECRET key (sk_...). A device must never hold a partner secret key: use the pk_ publishable key here, and keep the secret key on your server."}:null}i(lt,"checkPublishableKey");function Mr(e,t){let r=lt(e?.publishableKey);if(r!==null)return Object.freeze({ok:false,failure:r});let n=e.publishableKey.trim(),o=zi(e.apiBaseUrl);if(!o.ok)return o;let s=e.contractVersion?.trim()||ji;return Object.freeze({ok:true,config:Object.freeze({publishableKey:n,apiBaseUrl:o.value,contractVersion:s,sdkVersion:Mi,platform:t?.platform??Di,debug:e.debug===true})})}i(Mr,"tryResolveClientConfig");function zi(e){let t=e?.trim(),r=t&&t.length>0?t:$i(Fr);return r?Hi(r):me("missing-api-base-url",`apiBaseUrl is required: pass config.apiBaseUrl or set ${Fr}. The SDK never ships a hardcoded host.`)}i(zi,"tryResolveApiBaseUrl");function Dr(e){return {"X-Everfur-SDK-Version":e.sdkVersion,"X-Everfur-SDK-Platform":e.platform,"X-Everfur-Contract":e.contractVersion}}i(Dr,"buildBaseHeaders");var Li=/^([A-Za-z][A-Za-z0-9+.-]*):\/\/([^/?#]*)/;function Ui(e){return e.slice(e.lastIndexOf("@")+1).replace(/:\d+$/,"").toLowerCase()}i(Ui,"hostOf");function Ni(e){return e.length===0||e.includes("@")?false:e.startsWith("[")&&e.endsWith("]")?true:!e.includes(":")}i(Ni,"isPrintableHost");function Bi(e,t){let r=e.indexOf("://");return r<0||e.slice(r+3).includes("@")?false:Ni(t)}i(Bi,"canEchoOrigin");function qi(e,t){return `${e}://${t}`}i(qi,"safeOrigin");function Hi(e){let t=e.trim(),r=Li.exec(t);if(r===null||r[2]===void 0||r[2].length===0)return me("malformed-api-base-url","apiBaseUrl is not a valid absolute URL");let n=(r[1]??"").toLowerCase(),o=Ui(r[2]);if(o.length===0)return me("malformed-api-base-url","apiBaseUrl is not a valid absolute URL");let s=Bi(t,o)?`: ${qi(n,o)}`:"";if(n!=="https"){if(!(n==="http"&&Ki(o)))return n==="http"?me("insecure-api-base-url",`apiBaseUrl must use https (cleartext http is only allowed for localhost)${s}`):me("unsupported-api-base-url-scheme",`apiBaseUrl must be http(s)${s}`)}let l=t.endsWith("/")?t.slice(0,-1):t;return Object.freeze({ok:true,value:l})}i(Hi,"normalizeBaseUrl");function Ki(e){let t=e.toLowerCase();return t==="localhost"||t==="127.0.0.1"||t==="[::1]"||t==="::1"}i(Ki,"isLoopbackHost");function $i(e){let r=globalThis.process?.env?.[e];return typeof r=="string"&&r.trim().length>0?r.trim():void 0}i($i,"readEnv");var Vi=3e4,Ur="x-request-id";async function*jr(e){if(!e)return;let t=e.getReader();try{for(;;){let{done:r,value:n}=await t.read();if(r)break;n&&n.length>0&&(yield n);}}finally{await t.cancel?.();}}i(jr,"fetchByteSource");function Wi(e){let t=new TextEncoder,r=Yi(),n=false,o=i(a=>{let d="";a.lastEventId&&(d+=`id: ${a.lastEventId}
6
6
  `);let c=a.data??"";for(let f of c.split(`
7
7
  `))d+=`data: ${f}
8
8
  `;d+=`
@@ -1,30 +1,30 @@
1
1
  export { K as KvPort } from '../cacheEpoch-DknKn3S0.cjs';
2
- import { C as CreateEverfurRuntimeInput, e as EverfurRuntime } from '../runtimeTypes-4qptUulD.cjs';
3
- export { B as BeforeLogoutContext, f as BeforeLogoutHook, g as CapabilityKind, h as CapabilityRegistry, i as CapabilityServices, j as ChatControllerRegistry, k as ChatScope, E as EntitlementSnapshot, l as EntitlementStore, m as EverfurRuntimeConfig, L as LogLevel, a as LogRecord, b as LogSink, N as NULL_SECURE_STORE, P as PrepareOptions, c as PrepareResult, d as PrepareStatus, R as RuntimeTheme, n as RuntimeUser, S as SecureStorePort } from '../runtimeTypes-4qptUulD.cjs';
2
+ import { C as CreateEverfurRuntimeInput, e as EverfurRuntime } from '../runtimeTypes-Doj95Gll.cjs';
3
+ export { B as BeforeLogoutContext, f as BeforeLogoutHook, g as CapabilityKind, h as CapabilityRegistry, i as CapabilityServices, j as ChatControllerRegistry, k as ChatScope, E as EntitlementSnapshot, l as EntitlementStore, m as EverfurRuntimeConfig, L as LogLevel, a as LogRecord, b as LogSink, N as NULL_SECURE_STORE, P as PrepareOptions, c as PrepareResult, d as PrepareStatus, R as RuntimeTheme, n as RuntimeUser, S as SecureStorePort } from '../runtimeTypes-Doj95Gll.cjs';
4
4
  import { T as TelemetryPort } from '../TelemetryPort-BDNr00hu.cjs';
5
5
  export { n as noopTelemetry } from '../TelemetryPort-BDNr00hu.cjs';
6
6
  export { E as ErrorPolicyPort, d as defaultErrorPolicy } from '../ErrorPolicyPort-D6CybiqJ.cjs';
7
7
  export { C as CameraPort, a as CaptureOptions, M as MediaSource, u as unavailableCamera } from '../CameraPort-Cv31Pz7g.cjs';
8
8
  export { F as FileHandle, b as FilePort } from '../ports-BN6RHF9W.cjs';
9
9
  export { O as OptionalModule, o as optionalModule } from '../optionalModule-DbJmsq5f.cjs';
10
- import { m as ChatControllerDeps, l as ChatController, n as SuggestedPromptCategory } from '../ports-BSm48zIC.cjs';
11
- export { o as CHAT_FEEDBACK_TYPES, p as CHECKIN_ANSWERABLE_STATUS, C as ChatCheckin, a as ChatCheckinTarget, b as ChatConversation, c as ChatConversationListOptions, d as ChatConversationPage, e as ChatFeedbackReceipt, f as ChatFeedbackType, q as ChatHandlers, g as ChatHistoryOptions, i as ChatMessage, h as ChatMessagePage, r as ChatSnapshot, j as ChatStatus, k as Citation, F as FEEDBACK_NOTES_MAX_CHARS, M as MAX_IMAGE_KEYS_PER_MESSAGE, S as SendOptions, s as Timers, t as isCheckinSettled } from '../ports-BSm48zIC.cjs';
10
+ import { m as ChatControllerDeps, l as ChatController, n as SuggestedPromptCategory } from '../ports-Dof7AQjk.cjs';
11
+ export { o as CHAT_FEEDBACK_TYPES, p as CHECKIN_ANSWERABLE_STATUS, C as ChatCheckin, a as ChatCheckinTarget, b as ChatConversation, c as ChatConversationListOptions, d as ChatConversationPage, e as ChatFeedbackReceipt, f as ChatFeedbackType, q as ChatHandlers, g as ChatHistoryOptions, i as ChatMessage, h as ChatMessagePage, r as ChatSnapshot, j as ChatStatus, k as Citation, F as FEEDBACK_NOTES_MAX_CHARS, M as MAX_IMAGE_KEYS_PER_MESSAGE, S as SendOptions, s as Timers, t as isCheckinSettled } from '../ports-Dof7AQjk.cjs';
12
12
  import { E as EverfurError } from '../EverfurError-DmELDpXp.cjs';
13
13
  import { P as PetRef, C as ConversationId } from '../ids-B2GAAifq.cjs';
14
- export { f as ATTACHMENT_ACCEPT, g as ATTACHMENT_BACKOFF_MS, h as ATTACHMENT_INITIATE_PATH, i as ATTACHMENT_MAX_ATTEMPTS, j as ATTACHMENT_MIME_TYPES, k as ATTACHMENT_QUEUE_CONCURRENCY, A as AttachmentError, a as AttachmentErrorCode, b as AttachmentOutcome, c as AttachmentQueue, l as AttachmentQueueDeps, m as AttachmentQueueSnapshot, d as AttachmentState, e as AttachmentStatus, n as AttachmentUploadPolicy, M as MAX_ATTACHMENTS_PER_MESSAGE, o as MAX_ATTACHMENT_BYTES, p as MAX_FILENAME_LENGTH, V as ValidatedAttachment, q as attachmentSize, r as createAttachmentQueue, s as formatBytes, t as initiateAttachmentUpload, u as isAttachmentMime, v as sanitizeFilename, w as uploadAttachmentBytes, x as validateAttachment } from '../attachments-ZyjWsZdI.cjs';
15
- import { p as EventSourceFactory, G as SdkPlatform } from '../config-jocy3q66.cjs';
16
- import { a as EntitlementResolution, F as FetchEntitlementsArgs } from '../entitlementRepository-DIG16pso.cjs';
14
+ export { f as ATTACHMENT_ACCEPT, g as ATTACHMENT_BACKOFF_MS, h as ATTACHMENT_INITIATE_PATH, i as ATTACHMENT_MAX_ATTEMPTS, j as ATTACHMENT_MIME_TYPES, k as ATTACHMENT_QUEUE_CONCURRENCY, A as AttachmentError, a as AttachmentErrorCode, b as AttachmentOutcome, c as AttachmentQueue, l as AttachmentQueueDeps, m as AttachmentQueueSnapshot, d as AttachmentState, e as AttachmentStatus, n as AttachmentUploadPolicy, M as MAX_ATTACHMENTS_PER_MESSAGE, o as MAX_ATTACHMENT_BYTES, p as MAX_FILENAME_LENGTH, V as ValidatedAttachment, q as attachmentSize, r as createAttachmentQueue, s as formatBytes, t as initiateAttachmentUpload, u as isAttachmentMime, v as sanitizeFilename, w as uploadAttachmentBytes, x as validateAttachment } from '../attachments-affGN_Uv.cjs';
15
+ import { p as EventSourceFactory, G as SdkPlatform } from '../config-Bkbqkjb0.cjs';
16
+ import { a as EntitlementResolution, F as FetchEntitlementsArgs } from '../entitlementRepository-BmghvtGT.cjs';
17
17
  import { E as EntitlementDecision } from '../resolve-D4Ywz5OS.cjs';
18
- import { A as AuthContext } from '../identity-D7GKfOE7.cjs';
18
+ import { A as AuthContext } from '../identity-Z0yj-fC_.cjs';
19
19
  import { C as ClientBranding } from '../branding-Xb_wL8N1.cjs';
20
20
  export { E as EverfurThemeInput } from '../branding-Xb_wL8N1.cjs';
21
- export { C as CreateClinicRequestBatchInput, F as FACT_FIELD_BY_KIND, w as FACT_VALUE_FIELD, x as FactFieldValue, y as FactValueKind, H as HttpRecordsClinicRepositoryDeps, z as HttpRecordsRepositoryDeps, A as RECORDS_CLINIC_BATCH_MAX, R as RecordClinicianNote, a as RecordClinicianNoteSection, b as RecordCompleteness, c as RecordConflict, d as RecordConflictCandidate, e as RecordDepthView, f as RecordDocumentContributionsView, g as RecordEncounter, h as RecordExamSystem, B as RecordFactEditInput, D as RecordFactRemoveInput, i as RecordLabMarker, j as RecordLabPoint, E as RecordMarker, G as RecordMarkerLatest, I as RecordMarkerPoint, J as RecordMarkerSummary, K as RecordMarkersView, L as RecordPdfLink, k as RecordPhysicalExam, M as RecordShare, N as RecordShareLink, O as RecordsAuthorizationSignature, P as RecordsClinicBatch, Q as RecordsClinicBatchClient, S as RecordsClinicBatchItem, T as RecordsClinicBatchResult, U as RecordsClinicTarget, m as RecordsDepthClient, n as RecordsRequestDocument, V as RecordsSignatureSuggestion, o as RecordsTimelineMedication, p as RecordsTimelineVaccine, q as RecordsTimelineView, r as RecordsTimelineVisit, s as RecordsTimelineWeight, W as createRecordsClinicBatchClient, X as createRecordsDepthClient, Y as factCorrectionFor, Z as factValueCorrection, _ as inferFactValueKind, $ as isFactReviewerLocked, t as mapDocumentContributions, u as mapRecordDepth, a0 as mapRecordMarkers, a1 as mapRecordPdfLink, a2 as mapRecordShareLink, a3 as mapRecordShareList, v as mapRecordsTimeline, a4 as mapSignatureSuggestions, a5 as resolveShareUrl } from '../depth-O9kiVUjs.cjs';
21
+ export { C as CreateClinicRequestBatchInput, F as FACT_FIELD_BY_KIND, w as FACT_VALUE_FIELD, x as FactFieldValue, y as FactValueKind, H as HttpRecordsClinicRepositoryDeps, z as HttpRecordsRepositoryDeps, A as RECORDS_CLINIC_BATCH_MAX, R as RecordClinicianNote, a as RecordClinicianNoteSection, b as RecordCompleteness, c as RecordConflict, d as RecordConflictCandidate, e as RecordDepthView, f as RecordDocumentContributionsView, g as RecordEncounter, h as RecordExamSystem, B as RecordFactEditInput, D as RecordFactRemoveInput, i as RecordLabMarker, j as RecordLabPoint, E as RecordMarker, G as RecordMarkerLatest, I as RecordMarkerPoint, J as RecordMarkerSummary, K as RecordMarkersView, L as RecordPdfLink, k as RecordPhysicalExam, M as RecordShare, N as RecordShareLink, O as RecordsAuthorizationSignature, P as RecordsClinicBatch, Q as RecordsClinicBatchClient, S as RecordsClinicBatchItem, T as RecordsClinicBatchResult, U as RecordsClinicTarget, m as RecordsDepthClient, n as RecordsRequestDocument, V as RecordsSignatureSuggestion, o as RecordsTimelineMedication, p as RecordsTimelineVaccine, q as RecordsTimelineView, r as RecordsTimelineVisit, s as RecordsTimelineWeight, W as createRecordsClinicBatchClient, X as createRecordsDepthClient, Y as factCorrectionFor, Z as factValueCorrection, _ as inferFactValueKind, $ as isFactReviewerLocked, t as mapDocumentContributions, u as mapRecordDepth, a0 as mapRecordMarkers, a1 as mapRecordPdfLink, a2 as mapRecordShareLink, a3 as mapRecordShareList, v as mapRecordsTimeline, a4 as mapSignatureSuggestions, a5 as resolveShareUrl } from '../depth-Dne8Qoss.cjs';
22
22
  export { R as RecordDocumentMeta, a as RecordEntity, b as RecordOrigin, f as RecordsRequestGroupView, d as RecordsRequestView } from '../models-Bn2z0NNo.cjs';
23
- export { C as CheckinAnswer, a as CheckinOutcome, W as WatchCase } from '../casesRepository-q2ak9AW0.cjs';
24
- import '../petsRepository-B3vr628I.cjs';
23
+ export { C as CheckinAnswer, a as CheckinOutcome, W as WatchCase } from '../casesRepository-z2JAFlKA.cjs';
24
+ import '../petsRepository-CsvreWlY.cjs';
25
25
  import '../EverfurResult-ZtH-YV1h.cjs';
26
26
  import '../profile-CSs1wlXT.cjs';
27
- import '../requestFunnel-Dcjyh0j2.cjs';
27
+ import '../requestFunnel-DrigK6q_.cjs';
28
28
  import '../tokens-CIngRkvt.cjs';
29
29
 
30
30
  /**
@@ -1,30 +1,30 @@
1
1
  export { K as KvPort } from '../cacheEpoch-DknKn3S0.js';
2
- import { C as CreateEverfurRuntimeInput, e as EverfurRuntime } from '../runtimeTypes-CmpdQaE2.js';
3
- export { B as BeforeLogoutContext, f as BeforeLogoutHook, g as CapabilityKind, h as CapabilityRegistry, i as CapabilityServices, j as ChatControllerRegistry, k as ChatScope, E as EntitlementSnapshot, l as EntitlementStore, m as EverfurRuntimeConfig, L as LogLevel, a as LogRecord, b as LogSink, N as NULL_SECURE_STORE, P as PrepareOptions, c as PrepareResult, d as PrepareStatus, R as RuntimeTheme, n as RuntimeUser, S as SecureStorePort } from '../runtimeTypes-CmpdQaE2.js';
2
+ import { C as CreateEverfurRuntimeInput, e as EverfurRuntime } from '../runtimeTypes-BiqMY6pC.js';
3
+ export { B as BeforeLogoutContext, f as BeforeLogoutHook, g as CapabilityKind, h as CapabilityRegistry, i as CapabilityServices, j as ChatControllerRegistry, k as ChatScope, E as EntitlementSnapshot, l as EntitlementStore, m as EverfurRuntimeConfig, L as LogLevel, a as LogRecord, b as LogSink, N as NULL_SECURE_STORE, P as PrepareOptions, c as PrepareResult, d as PrepareStatus, R as RuntimeTheme, n as RuntimeUser, S as SecureStorePort } from '../runtimeTypes-BiqMY6pC.js';
4
4
  import { T as TelemetryPort } from '../TelemetryPort-BDNr00hu.js';
5
5
  export { n as noopTelemetry } from '../TelemetryPort-BDNr00hu.js';
6
6
  export { E as ErrorPolicyPort, d as defaultErrorPolicy } from '../ErrorPolicyPort-D22LUVrK.js';
7
7
  export { C as CameraPort, a as CaptureOptions, M as MediaSource, u as unavailableCamera } from '../CameraPort-Cv31Pz7g.js';
8
8
  export { F as FileHandle, b as FilePort } from '../ports-BN6RHF9W.js';
9
9
  export { O as OptionalModule, o as optionalModule } from '../optionalModule-DbJmsq5f.js';
10
- import { m as ChatControllerDeps, l as ChatController, n as SuggestedPromptCategory } from '../ports-DHhxhn95.js';
11
- export { o as CHAT_FEEDBACK_TYPES, p as CHECKIN_ANSWERABLE_STATUS, C as ChatCheckin, a as ChatCheckinTarget, b as ChatConversation, c as ChatConversationListOptions, d as ChatConversationPage, e as ChatFeedbackReceipt, f as ChatFeedbackType, q as ChatHandlers, g as ChatHistoryOptions, i as ChatMessage, h as ChatMessagePage, r as ChatSnapshot, j as ChatStatus, k as Citation, F as FEEDBACK_NOTES_MAX_CHARS, M as MAX_IMAGE_KEYS_PER_MESSAGE, S as SendOptions, s as Timers, t as isCheckinSettled } from '../ports-DHhxhn95.js';
10
+ import { m as ChatControllerDeps, l as ChatController, n as SuggestedPromptCategory } from '../ports-DNIvfzBP.js';
11
+ export { o as CHAT_FEEDBACK_TYPES, p as CHECKIN_ANSWERABLE_STATUS, C as ChatCheckin, a as ChatCheckinTarget, b as ChatConversation, c as ChatConversationListOptions, d as ChatConversationPage, e as ChatFeedbackReceipt, f as ChatFeedbackType, q as ChatHandlers, g as ChatHistoryOptions, i as ChatMessage, h as ChatMessagePage, r as ChatSnapshot, j as ChatStatus, k as Citation, F as FEEDBACK_NOTES_MAX_CHARS, M as MAX_IMAGE_KEYS_PER_MESSAGE, S as SendOptions, s as Timers, t as isCheckinSettled } from '../ports-DNIvfzBP.js';
12
12
  import { E as EverfurError } from '../EverfurError-DmELDpXp.js';
13
13
  import { P as PetRef, C as ConversationId } from '../ids-B2GAAifq.js';
14
- export { f as ATTACHMENT_ACCEPT, g as ATTACHMENT_BACKOFF_MS, h as ATTACHMENT_INITIATE_PATH, i as ATTACHMENT_MAX_ATTEMPTS, j as ATTACHMENT_MIME_TYPES, k as ATTACHMENT_QUEUE_CONCURRENCY, A as AttachmentError, a as AttachmentErrorCode, b as AttachmentOutcome, c as AttachmentQueue, l as AttachmentQueueDeps, m as AttachmentQueueSnapshot, d as AttachmentState, e as AttachmentStatus, n as AttachmentUploadPolicy, M as MAX_ATTACHMENTS_PER_MESSAGE, o as MAX_ATTACHMENT_BYTES, p as MAX_FILENAME_LENGTH, V as ValidatedAttachment, q as attachmentSize, r as createAttachmentQueue, s as formatBytes, t as initiateAttachmentUpload, u as isAttachmentMime, v as sanitizeFilename, w as uploadAttachmentBytes, x as validateAttachment } from '../attachments-CMNWE6YT.js';
15
- import { p as EventSourceFactory, G as SdkPlatform } from '../config-DBpKJJbg.js';
16
- import { a as EntitlementResolution, F as FetchEntitlementsArgs } from '../entitlementRepository-CHsY2kF3.js';
14
+ export { f as ATTACHMENT_ACCEPT, g as ATTACHMENT_BACKOFF_MS, h as ATTACHMENT_INITIATE_PATH, i as ATTACHMENT_MAX_ATTEMPTS, j as ATTACHMENT_MIME_TYPES, k as ATTACHMENT_QUEUE_CONCURRENCY, A as AttachmentError, a as AttachmentErrorCode, b as AttachmentOutcome, c as AttachmentQueue, l as AttachmentQueueDeps, m as AttachmentQueueSnapshot, d as AttachmentState, e as AttachmentStatus, n as AttachmentUploadPolicy, M as MAX_ATTACHMENTS_PER_MESSAGE, o as MAX_ATTACHMENT_BYTES, p as MAX_FILENAME_LENGTH, V as ValidatedAttachment, q as attachmentSize, r as createAttachmentQueue, s as formatBytes, t as initiateAttachmentUpload, u as isAttachmentMime, v as sanitizeFilename, w as uploadAttachmentBytes, x as validateAttachment } from '../attachments-5_p7kE38.js';
15
+ import { p as EventSourceFactory, G as SdkPlatform } from '../config-BXVgTLCh.js';
16
+ import { a as EntitlementResolution, F as FetchEntitlementsArgs } from '../entitlementRepository-Big-K_In.js';
17
17
  import { E as EntitlementDecision } from '../resolve-D4Ywz5OS.js';
18
- import { A as AuthContext } from '../identity-k8nCQ_qM.js';
18
+ import { A as AuthContext } from '../identity-AuoeDRTh.js';
19
19
  import { C as ClientBranding } from '../branding-xpQ056sM.js';
20
20
  export { E as EverfurThemeInput } from '../branding-xpQ056sM.js';
21
- export { C as CreateClinicRequestBatchInput, F as FACT_FIELD_BY_KIND, w as FACT_VALUE_FIELD, x as FactFieldValue, y as FactValueKind, H as HttpRecordsClinicRepositoryDeps, z as HttpRecordsRepositoryDeps, A as RECORDS_CLINIC_BATCH_MAX, R as RecordClinicianNote, a as RecordClinicianNoteSection, b as RecordCompleteness, c as RecordConflict, d as RecordConflictCandidate, e as RecordDepthView, f as RecordDocumentContributionsView, g as RecordEncounter, h as RecordExamSystem, B as RecordFactEditInput, D as RecordFactRemoveInput, i as RecordLabMarker, j as RecordLabPoint, E as RecordMarker, G as RecordMarkerLatest, I as RecordMarkerPoint, J as RecordMarkerSummary, K as RecordMarkersView, L as RecordPdfLink, k as RecordPhysicalExam, M as RecordShare, N as RecordShareLink, O as RecordsAuthorizationSignature, P as RecordsClinicBatch, Q as RecordsClinicBatchClient, S as RecordsClinicBatchItem, T as RecordsClinicBatchResult, U as RecordsClinicTarget, m as RecordsDepthClient, n as RecordsRequestDocument, V as RecordsSignatureSuggestion, o as RecordsTimelineMedication, p as RecordsTimelineVaccine, q as RecordsTimelineView, r as RecordsTimelineVisit, s as RecordsTimelineWeight, W as createRecordsClinicBatchClient, X as createRecordsDepthClient, Y as factCorrectionFor, Z as factValueCorrection, _ as inferFactValueKind, $ as isFactReviewerLocked, t as mapDocumentContributions, u as mapRecordDepth, a0 as mapRecordMarkers, a1 as mapRecordPdfLink, a2 as mapRecordShareLink, a3 as mapRecordShareList, v as mapRecordsTimeline, a4 as mapSignatureSuggestions, a5 as resolveShareUrl } from '../depth-BsMLLrQo.js';
21
+ export { C as CreateClinicRequestBatchInput, F as FACT_FIELD_BY_KIND, w as FACT_VALUE_FIELD, x as FactFieldValue, y as FactValueKind, H as HttpRecordsClinicRepositoryDeps, z as HttpRecordsRepositoryDeps, A as RECORDS_CLINIC_BATCH_MAX, R as RecordClinicianNote, a as RecordClinicianNoteSection, b as RecordCompleteness, c as RecordConflict, d as RecordConflictCandidate, e as RecordDepthView, f as RecordDocumentContributionsView, g as RecordEncounter, h as RecordExamSystem, B as RecordFactEditInput, D as RecordFactRemoveInput, i as RecordLabMarker, j as RecordLabPoint, E as RecordMarker, G as RecordMarkerLatest, I as RecordMarkerPoint, J as RecordMarkerSummary, K as RecordMarkersView, L as RecordPdfLink, k as RecordPhysicalExam, M as RecordShare, N as RecordShareLink, O as RecordsAuthorizationSignature, P as RecordsClinicBatch, Q as RecordsClinicBatchClient, S as RecordsClinicBatchItem, T as RecordsClinicBatchResult, U as RecordsClinicTarget, m as RecordsDepthClient, n as RecordsRequestDocument, V as RecordsSignatureSuggestion, o as RecordsTimelineMedication, p as RecordsTimelineVaccine, q as RecordsTimelineView, r as RecordsTimelineVisit, s as RecordsTimelineWeight, W as createRecordsClinicBatchClient, X as createRecordsDepthClient, Y as factCorrectionFor, Z as factValueCorrection, _ as inferFactValueKind, $ as isFactReviewerLocked, t as mapDocumentContributions, u as mapRecordDepth, a0 as mapRecordMarkers, a1 as mapRecordPdfLink, a2 as mapRecordShareLink, a3 as mapRecordShareList, v as mapRecordsTimeline, a4 as mapSignatureSuggestions, a5 as resolveShareUrl } from '../depth-By8dFpLA.js';
22
22
  export { R as RecordDocumentMeta, a as RecordEntity, b as RecordOrigin, f as RecordsRequestGroupView, d as RecordsRequestView } from '../models-DSqA5Ahs.js';
23
- export { C as CheckinAnswer, a as CheckinOutcome, W as WatchCase } from '../casesRepository-C5zrCcaE.js';
24
- import '../petsRepository-DdzgINfF.js';
23
+ export { C as CheckinAnswer, a as CheckinOutcome, W as WatchCase } from '../casesRepository-YCI0OVwl.js';
24
+ import '../petsRepository-BaTOwJ5L.js';
25
25
  import '../EverfurResult-SGvHKsCB.js';
26
26
  import '../profile-CSs1wlXT.js';
27
- import '../requestFunnel-CTG-wNc3.js';
27
+ import '../requestFunnel-CJC_q4BZ.js';
28
28
  import '../tokens-CIngRkvt.js';
29
29
 
30
30
  /**
@@ -2,7 +2,7 @@ import {z as z$1}from'zod';var li=Object.defineProperty;var i=(e,t)=>li(e,"name"
2
2
 
3
3
  `,ki=1048576,Ti=z$1.record(z$1.string(),z$1.unknown()),Pi=["emergency","schedule_soon","home_care"];async function*Ue(e,t=null){let r=null,n=i(()=>(r!==null||(r=typeof t=="function"?t():t),r),"requestIdNow"),o=new TextDecoder("utf-8"),s="",l=0,u=false;for await(let a of e){for(s+=o.decode(a,{stream:true});;){let d=s.indexOf(xr,l);if(d===-1)break;let c=s.slice(0,d);s=s.slice(d+xr.length),l=0;let f=Ir(c,n());if(f!==null&&(f.kind==="delta"&&(u=true),yield f,f.terminal))return}if(l=s.length>0?s.length-1:0,s.length>ki){yield N({code:u?"CHAT_STREAM_INCOMPLETE":"internal_error",retryable:true,wireMessage:null,synthesized:true,lastEventId:null,serverRequestId:n()});return}}if(s+=o.decode(),s.trim().length>0){let a=Ir(s,n());if(a!==null&&(a.kind==="delta"&&(u=true),yield a,a.terminal))return}yield N({code:u?"CHAT_STREAM_INCOMPLETE":"internal_error",retryable:true,wireMessage:null,synthesized:true,lastEventId:null,serverRequestId:n()});}i(Ue,"parseSse");function Ir(e,t){let r=null,n=[];for(let l of e.split(`
4
4
  `)){let u=l.replace(/\s+$/,"");u.length===0||u.startsWith(":")||(u.startsWith("id:")?r=u.slice(3).trim():u.startsWith("data:")&&n.push(u.slice(5).replace(/^ /,"")));}if(n.length===0)return null;let o;try{o=JSON.parse(n.join(`
5
- `));}catch{return null}if(typeof o!="object"||o===null||Array.isArray(o))return null;let s=Ti.safeParse(o);return s.success?xi(s.data,r,t):null}i(Ir,"parseBlock");function xi(e,t,r){let n=e.type,o=e.event;if(n==="error"||"error"in e)return N({code:z(e.code)??"unknown",retryable:e.retryable===true,wireMessage:z(e.error),synthesized:false,lastEventId:t,serverRequestId:r});if(n==="done"||e.done===true)return Er({conversationId:z(e.conversation_id)??"",messageId:z(e.message_id),title:z(e.title),followUpQuestions:Ai(e.follow_up_questions),citations:Or(e.citations),citationStatus:z(e.citation_status),urgencyLevel:Ar(e.urgency_level),urgencyReason:z(e.urgency_reason),urgencyProvided:Oi(e),resultId:z(e.result_id),lastEventId:t},r);if(n==="accepted"||e.status==="reasoning")return vr(z(e.stream_id),t,r);if(n==="heartbeat"||e.heartbeat===true)return _r(t,r);if(n==="text.delta"||"delta"in e||"token"in e){let s=z(e.delta)??z(e.token)??"";return Rr(s,t,r)}return o==="analysis_started"?Cr(z(e.request_id),t,r):o==="analysis_complete"?Sr({resultId:z(e.result_id),analysisType:z(e.analysis_type),modelVersion:z(e.model_version),confidence:Ii(e.confidence),detections:Or(e.detections),interpretation:z(e.interpretation),lastEventId:t},r):wr(e,t,r)}i(xi,"frameFromWire");function z(e){return typeof e=="string"?e:null}i(z,"asString");function Ii(e){return typeof e=="number"&&Number.isFinite(e)?e:null}i(Ii,"asNumber");function Ar(e){return typeof e=="string"&&Pi.includes(e)?e:null}i(Ar,"asUrgency");function Oi(e){if(!Object.prototype.hasOwnProperty.call(e,"urgency_level"))return false;let t=e.urgency_level;return t===null||Ar(t)!==null}i(Oi,"urgencySlotProvided");function Ai(e){return Array.isArray(e)?e.map(t=>typeof t=="string"?t:String(t)):[]}i(Ai,"asStringList");function Fi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}i(Fi,"isPlainObject");function Or(e){return Array.isArray(e)?e.filter(Fi):[]}i(Or,"asMapList");var Mi="0.5.2",Di="react-native",ji="2026-09-19",Fr="EVERFUR_API_BASE_URL";function me(e,t){return Object.freeze({ok:false,failure:Object.freeze({reason:e,message:t})})}i(me,"configFailure");function lt(e){let t=typeof e=="string"?e.trim():"";return t.length===0?{reason:"missing-publishable-key",message:"publishableKey is required"}:/^sk[_-]/i.test(t)?{reason:"secret-key-as-publishable-key",message:"publishableKey looks like a SECRET key (sk_...). A device must never hold a partner secret key: use the pk_ publishable key here, and keep the secret key on your server."}:null}i(lt,"checkPublishableKey");function Mr(e,t){let r=lt(e?.publishableKey);if(r!==null)return Object.freeze({ok:false,failure:r});let n=e.publishableKey.trim(),o=zi(e.apiBaseUrl);if(!o.ok)return o;let s=e.contractVersion?.trim()||ji;return Object.freeze({ok:true,config:Object.freeze({publishableKey:n,apiBaseUrl:o.value,contractVersion:s,sdkVersion:Mi,platform:t?.platform??Di,debug:e.debug===true})})}i(Mr,"tryResolveClientConfig");function zi(e){let t=e?.trim(),r=t&&t.length>0?t:$i(Fr);return r?Hi(r):me("missing-api-base-url",`apiBaseUrl is required: pass config.apiBaseUrl or set ${Fr}. The SDK never ships a hardcoded host.`)}i(zi,"tryResolveApiBaseUrl");function Dr(e){return {"X-Everfur-SDK-Version":e.sdkVersion,"X-Everfur-SDK-Platform":e.platform,"X-Everfur-Contract":e.contractVersion}}i(Dr,"buildBaseHeaders");var Li=/^([A-Za-z][A-Za-z0-9+.-]*):\/\/([^/?#]*)/;function Ui(e){return e.slice(e.lastIndexOf("@")+1).replace(/:\d+$/,"").toLowerCase()}i(Ui,"hostOf");function Ni(e){return e.length===0||e.includes("@")?false:e.startsWith("[")&&e.endsWith("]")?true:!e.includes(":")}i(Ni,"isPrintableHost");function Bi(e,t){let r=e.indexOf("://");return r<0||e.slice(r+3).includes("@")?false:Ni(t)}i(Bi,"canEchoOrigin");function qi(e,t){return `${e}://${t}`}i(qi,"safeOrigin");function Hi(e){let t=e.trim(),r=Li.exec(t);if(r===null||r[2]===void 0||r[2].length===0)return me("malformed-api-base-url","apiBaseUrl is not a valid absolute URL");let n=(r[1]??"").toLowerCase(),o=Ui(r[2]);if(o.length===0)return me("malformed-api-base-url","apiBaseUrl is not a valid absolute URL");let s=Bi(t,o)?`: ${qi(n,o)}`:"";if(n!=="https"){if(!(n==="http"&&Ki(o)))return n==="http"?me("insecure-api-base-url",`apiBaseUrl must use https (cleartext http is only allowed for localhost)${s}`):me("unsupported-api-base-url-scheme",`apiBaseUrl must be http(s)${s}`)}let l=t.endsWith("/")?t.slice(0,-1):t;return Object.freeze({ok:true,value:l})}i(Hi,"normalizeBaseUrl");function Ki(e){let t=e.toLowerCase();return t==="localhost"||t==="127.0.0.1"||t==="[::1]"||t==="::1"}i(Ki,"isLoopbackHost");function $i(e){let r=globalThis.process?.env?.[e];return typeof r=="string"&&r.trim().length>0?r.trim():void 0}i($i,"readEnv");var Vi=3e4,Ur="x-request-id";async function*jr(e){if(!e)return;let t=e.getReader();try{for(;;){let{done:r,value:n}=await t.read();if(r)break;n&&n.length>0&&(yield n);}}finally{await t.cancel?.();}}i(jr,"fetchByteSource");function Wi(e){let t=new TextEncoder,r=Yi(),n=false,o=i(a=>{let d="";a.lastEventId&&(d+=`id: ${a.lastEventId}
5
+ `));}catch{return null}if(typeof o!="object"||o===null||Array.isArray(o))return null;let s=Ti.safeParse(o);return s.success?xi(s.data,r,t):null}i(Ir,"parseBlock");function xi(e,t,r){let n=e.type,o=e.event;if(n==="error"||"error"in e)return N({code:z(e.code)??"unknown",retryable:e.retryable===true,wireMessage:z(e.error),synthesized:false,lastEventId:t,serverRequestId:r});if(n==="done"||e.done===true)return Er({conversationId:z(e.conversation_id)??"",messageId:z(e.message_id),title:z(e.title),followUpQuestions:Ai(e.follow_up_questions),citations:Or(e.citations),citationStatus:z(e.citation_status),urgencyLevel:Ar(e.urgency_level),urgencyReason:z(e.urgency_reason),urgencyProvided:Oi(e),resultId:z(e.result_id),lastEventId:t},r);if(n==="accepted"||e.status==="reasoning")return vr(z(e.stream_id),t,r);if(n==="heartbeat"||e.heartbeat===true)return _r(t,r);if(n==="text.delta"||"delta"in e||"token"in e){let s=z(e.delta)??z(e.token)??"";return Rr(s,t,r)}return o==="analysis_started"?Cr(z(e.request_id),t,r):o==="analysis_complete"?Sr({resultId:z(e.result_id),analysisType:z(e.analysis_type),modelVersion:z(e.model_version),confidence:Ii(e.confidence),detections:Or(e.detections),interpretation:z(e.interpretation),lastEventId:t},r):wr(e,t,r)}i(xi,"frameFromWire");function z(e){return typeof e=="string"?e:null}i(z,"asString");function Ii(e){return typeof e=="number"&&Number.isFinite(e)?e:null}i(Ii,"asNumber");function Ar(e){return typeof e=="string"&&Pi.includes(e)?e:null}i(Ar,"asUrgency");function Oi(e){if(!Object.prototype.hasOwnProperty.call(e,"urgency_level"))return false;let t=e.urgency_level;return t===null||Ar(t)!==null}i(Oi,"urgencySlotProvided");function Ai(e){return Array.isArray(e)?e.map(t=>typeof t=="string"?t:String(t)):[]}i(Ai,"asStringList");function Fi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}i(Fi,"isPlainObject");function Or(e){return Array.isArray(e)?e.filter(Fi):[]}i(Or,"asMapList");var Mi="0.5.3",Di="react-native",ji="2026-09-19",Fr="EVERFUR_API_BASE_URL";function me(e,t){return Object.freeze({ok:false,failure:Object.freeze({reason:e,message:t})})}i(me,"configFailure");function lt(e){let t=typeof e=="string"?e.trim():"";return t.length===0?{reason:"missing-publishable-key",message:"publishableKey is required"}:/^sk[_-]/i.test(t)?{reason:"secret-key-as-publishable-key",message:"publishableKey looks like a SECRET key (sk_...). A device must never hold a partner secret key: use the pk_ publishable key here, and keep the secret key on your server."}:null}i(lt,"checkPublishableKey");function Mr(e,t){let r=lt(e?.publishableKey);if(r!==null)return Object.freeze({ok:false,failure:r});let n=e.publishableKey.trim(),o=zi(e.apiBaseUrl);if(!o.ok)return o;let s=e.contractVersion?.trim()||ji;return Object.freeze({ok:true,config:Object.freeze({publishableKey:n,apiBaseUrl:o.value,contractVersion:s,sdkVersion:Mi,platform:t?.platform??Di,debug:e.debug===true})})}i(Mr,"tryResolveClientConfig");function zi(e){let t=e?.trim(),r=t&&t.length>0?t:$i(Fr);return r?Hi(r):me("missing-api-base-url",`apiBaseUrl is required: pass config.apiBaseUrl or set ${Fr}. The SDK never ships a hardcoded host.`)}i(zi,"tryResolveApiBaseUrl");function Dr(e){return {"X-Everfur-SDK-Version":e.sdkVersion,"X-Everfur-SDK-Platform":e.platform,"X-Everfur-Contract":e.contractVersion}}i(Dr,"buildBaseHeaders");var Li=/^([A-Za-z][A-Za-z0-9+.-]*):\/\/([^/?#]*)/;function Ui(e){return e.slice(e.lastIndexOf("@")+1).replace(/:\d+$/,"").toLowerCase()}i(Ui,"hostOf");function Ni(e){return e.length===0||e.includes("@")?false:e.startsWith("[")&&e.endsWith("]")?true:!e.includes(":")}i(Ni,"isPrintableHost");function Bi(e,t){let r=e.indexOf("://");return r<0||e.slice(r+3).includes("@")?false:Ni(t)}i(Bi,"canEchoOrigin");function qi(e,t){return `${e}://${t}`}i(qi,"safeOrigin");function Hi(e){let t=e.trim(),r=Li.exec(t);if(r===null||r[2]===void 0||r[2].length===0)return me("malformed-api-base-url","apiBaseUrl is not a valid absolute URL");let n=(r[1]??"").toLowerCase(),o=Ui(r[2]);if(o.length===0)return me("malformed-api-base-url","apiBaseUrl is not a valid absolute URL");let s=Bi(t,o)?`: ${qi(n,o)}`:"";if(n!=="https"){if(!(n==="http"&&Ki(o)))return n==="http"?me("insecure-api-base-url",`apiBaseUrl must use https (cleartext http is only allowed for localhost)${s}`):me("unsupported-api-base-url-scheme",`apiBaseUrl must be http(s)${s}`)}let l=t.endsWith("/")?t.slice(0,-1):t;return Object.freeze({ok:true,value:l})}i(Hi,"normalizeBaseUrl");function Ki(e){let t=e.toLowerCase();return t==="localhost"||t==="127.0.0.1"||t==="[::1]"||t==="::1"}i(Ki,"isLoopbackHost");function $i(e){let r=globalThis.process?.env?.[e];return typeof r=="string"&&r.trim().length>0?r.trim():void 0}i($i,"readEnv");var Vi=3e4,Ur="x-request-id";async function*jr(e){if(!e)return;let t=e.getReader();try{for(;;){let{done:r,value:n}=await t.read();if(r)break;n&&n.length>0&&(yield n);}}finally{await t.cancel?.();}}i(jr,"fetchByteSource");function Wi(e){let t=new TextEncoder,r=Yi(),n=false,o=i(a=>{let d="";a.lastEventId&&(d+=`id: ${a.lastEventId}
6
6
  `);let c=a.data??"";for(let f of c.split(`
7
7
  `))d+=`data: ${f}
8
8
  `;d+=`
@@ -1,7 +1,7 @@
1
1
  import { E as EverfurResult } from './EverfurResult-SGvHKsCB.js';
2
2
  import { P as PetRef } from './ids-B2GAAifq.js';
3
- import { R as RequestFunnel } from './requestFunnel-CTG-wNc3.js';
4
- import { A as AuthContext } from './identity-k8nCQ_qM.js';
3
+ import { R as RequestFunnel } from './requestFunnel-CJC_q4BZ.js';
4
+ import { A as AuthContext } from './identity-AuoeDRTh.js';
5
5
  import { E as ErrorPolicyPort } from './ErrorPolicyPort-D22LUVrK.js';
6
6
  import { d as RecordsRequestView, R as RecordDocumentMeta, a as RecordEntity } from './models-DSqA5Ahs.js';
7
7
  import { E as EverfurError } from './EverfurError-DmELDpXp.js';
@@ -1,7 +1,7 @@
1
1
  import { E as EverfurResult } from './EverfurResult-ZtH-YV1h.cjs';
2
2
  import { P as PetRef } from './ids-B2GAAifq.cjs';
3
- import { R as RequestFunnel } from './requestFunnel-Dcjyh0j2.cjs';
4
- import { A as AuthContext } from './identity-D7GKfOE7.cjs';
3
+ import { R as RequestFunnel } from './requestFunnel-DrigK6q_.cjs';
4
+ import { A as AuthContext } from './identity-Z0yj-fC_.cjs';
5
5
  import { E as ErrorPolicyPort } from './ErrorPolicyPort-D6CybiqJ.cjs';
6
6
  import { d as RecordsRequestView, R as RecordDocumentMeta, a as RecordEntity } from './models-Bn2z0NNo.cjs';
7
7
  import { E as EverfurError } from './EverfurError-DmELDpXp.cjs';
@@ -1,6 +1,6 @@
1
1
  import { E as EverfurError } from './EverfurError-DmELDpXp.js';
2
- import { R as RequestFunnel } from './requestFunnel-CTG-wNc3.js';
3
- import { A as AuthContext } from './identity-k8nCQ_qM.js';
2
+ import { R as RequestFunnel } from './requestFunnel-CJC_q4BZ.js';
3
+ import { A as AuthContext } from './identity-AuoeDRTh.js';
4
4
  import { C as ClientBranding } from './branding-xpQ056sM.js';
5
5
  import { E as EntitlementDecision } from './resolve-D4Ywz5OS.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { E as EverfurError } from './EverfurError-DmELDpXp.cjs';
2
- import { R as RequestFunnel } from './requestFunnel-Dcjyh0j2.cjs';
3
- import { A as AuthContext } from './identity-D7GKfOE7.cjs';
2
+ import { R as RequestFunnel } from './requestFunnel-DrigK6q_.cjs';
3
+ import { A as AuthContext } from './identity-Z0yj-fC_.cjs';
4
4
  import { C as ClientBranding } from './branding-Xb_wL8N1.cjs';
5
5
  import { E as EntitlementDecision } from './resolve-D4Ywz5OS.cjs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { E as EverfurResult } from './EverfurResult-SGvHKsCB.js';
2
2
  import { U as UserRef } from './ids-B2GAAifq.js';
3
- import { T as TransportPort, d as EverfurRequest } from './config-DBpKJJbg.js';
3
+ import { T as TransportPort, d as EverfurRequest } from './config-BXVgTLCh.js';
4
4
 
5
5
  /**
6
6
  * A minted session token with the expiry the minter knows. `expiresAt` is what `mintPartnerSession` returns
@@ -1,6 +1,6 @@
1
1
  import { E as EverfurResult } from './EverfurResult-ZtH-YV1h.cjs';
2
2
  import { U as UserRef } from './ids-B2GAAifq.cjs';
3
- import { T as TransportPort, d as EverfurRequest } from './config-jocy3q66.cjs';
3
+ import { T as TransportPort, d as EverfurRequest } from './config-Bkbqkjb0.cjs';
4
4
 
5
5
  /**
6
6
  * A minted session token with the expiry the minter knows. `expiresAt` is what `mintPartnerSession` returns