@dvina/sdk 5.0.85 → 5.0.90

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.
@@ -0,0 +1,31 @@
1
+ import {g,d,c,a,l,e}from'./chunk-XBOJ7CCU.js';function F(e){return typeof e=="object"&&e!==null&&e.name==="AbortError"}var x=new WeakMap;async function R(e,n){let t=x.get(e);if(!t){let a=e({forceRefresh:true}).finally(()=>{x.get(e)===a&&x.delete(e);});x.set(e,a),t=a;}let i=await t;if(n&&i===n)throw new d("Token refresh did not produce a new token",n);return i}var je=1e3,K=1e3,He=3,Ge=3e4;function Ye(e,n=Math.random){return Math.floor(n()*e)}function B(){return Date.now()}var C=class{constructor(n){this.options=n;}abortController;abortReason;attemptPromise;closed=false;consecutiveAuthFailures=0;forceRefreshNext=false;lastActivityAt=null;lastConnectedAt=null;lastError;reconnectAttempt=0;reconnectTimer;restartAfterCurrentAttempt=false;state="idle";staleTimer;shouldRun=false;get snapshot(){return {consecutiveAuthFailures:this.consecutiveAuthFailures,id:this.options.id,kind:this.options.kind,lastActivityAt:this.lastActivityAt,lastConnectedAt:this.lastConnectedAt,lastError:this.lastError,reconnectAttempt:this.reconnectAttempt,state:this.state}}async start(){if(this.closed)throw new Error(`Connection '${this.options.kind}:${this.options.id}' is closed`);return this.shouldRun=true,this.clearReconnectTimer(),this.attemptPromise&&this.abortReason&&(this.restartAfterCurrentAttempt=true),this.ensureAttempt()}stop(){this.shouldRun=false,this.restartAfterCurrentAttempt=false,this.clearReconnectTimer(),this.clearStaleTimer(),this.abort("manual"),this.setState("idle");}close(){this.closed=true,this.shouldRun=false,this.restartAfterCurrentAttempt=false,this.clearReconnectTimer(),this.clearStaleTimer(),this.abort("manual"),this.setState("closed");}reconnect(){if(!(this.closed||this.isHealthy()||this.state==="connecting")){if(this.shouldRun=true,this.clearReconnectTimer(),this.clearStaleTimer(),this.abortController){this.restartAfterCurrentAttempt=true,this.abort("restart");return}this.ensureAttempt();}}ensureAttempt(){if(!this.shouldRun||this.closed)return Promise.resolve();if(!this.attemptPromise){let n=this.runAttempt().finally(()=>{this.attemptPromise===n&&(this.attemptPromise=void 0),this.restartAfterCurrentAttempt&&this.shouldRun&&!this.closed&&(this.restartAfterCurrentAttempt=false,this.ensureAttempt());});this.attemptPromise=n;}return this.attemptPromise}async runAttempt(){if(!this.shouldRun||this.closed)return;let n=this.lastConnectedAt!==null||this.reconnectAttempt>0;this.setState("connecting"),this.lastError=void 0,this.abortReason=void 0;let t=new AbortController;this.abortController=t;try{let i=this.forceRefreshNext?await R(this.options.getToken):await this.options.getToken(void 0);if(this.forceRefreshNext=!1,await this.options.dial({isReconnect:n,markActivity:()=>this.markActivity(),markConnected:()=>this.markConnected(),requestTokenRefresh:()=>{this.forceRefreshNext=!0;},signal:t.signal,token:i}),!this.shouldRun||this.closed)return;this.scheduleReconnect("end");}catch(i){if(F(i)){this.abortReason==="stale"&&this.shouldRun&&!this.closed&&this.scheduleReconnect("end");return}if(!this.shouldRun||this.closed)return;this.handleFailure(i);}finally{this.abortController===t&&(this.abortController=void 0),this.abortReason=void 0;}}handleFailure(n){if(this.lastError=n,n instanceof d||this.options.isFatalError?.(n)){this.shouldRun=false,this.clearReconnectTimer(),this.clearStaleTimer(),this.setState("failed"),this.options.onFatalError?.(n);return}if(this.options.isAuthError?.(n)??false){if(this.consecutiveAuthFailures+=1,this.forceRefreshNext=true,this.setState("reconnecting"),this.consecutiveAuthFailures>=(this.options.maxConsecutiveAuthFailures??He)){this.shouldRun=false,this.clearReconnectTimer(),this.clearStaleTimer(),this.setState("failed"),this.options.onFatalError?.(n);return}this.scheduleReconnect("auth");return}this.consecutiveAuthFailures=0,typeof navigator<"u"&&"onLine"in navigator&&navigator.onLine===false?this.setState("offline"):this.setState("reconnecting"),this.scheduleReconnect("failure");}scheduleReconnect(n){if(!this.shouldRun||this.closed)return;this.clearReconnectTimer(),this.clearStaleTimer();let t=n==="auth"?this.options.authRetryDelayMs??je:n==="failure"?this.nextReconnectDelay():this.options.baseReconnectDelayMs??K;this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=void 0,this.ensureAttempt();},t);}nextReconnectDelay(){let n=this.options.baseReconnectDelayMs??K,t=this.options.maxReconnectDelayMs??Ge,i=Math.min(n*Math.pow(2,this.reconnectAttempt),t);return this.reconnectAttempt+=1,this.options.jitter==="full"?Ye(i):i}isHealthy(){if(this.state!=="connected"||!this.abortController)return false;let n=this.options.staleTimeoutMs;return !n||n<=0?true:this.lastActivityAt!==null&&B()-this.lastActivityAt<n}markConnected(){this.consecutiveAuthFailures=0,this.reconnectAttempt=0,this.lastConnectedAt=B(),this.setState("connected"),this.markActivity();}markActivity(){this.lastActivityAt=B(),this.armStaleTimer();}armStaleTimer(){this.clearStaleTimer();let n=this.options.staleTimeoutMs;!n||n<=0||this.state!=="connected"||(this.staleTimer=setTimeout(()=>{!this.shouldRun||this.closed||!this.abortController||(this.setState("stale"),this.abort("stale"));},n));}clearReconnectTimer(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=void 0);}clearStaleTimer(){this.staleTimer&&(clearTimeout(this.staleTimer),this.staleTimer=void 0);}abort(n){this.abortController&&(this.abortReason=n,this.abortController.abort(),this.abortController=void 0);}setState(n){this.state!==n&&(this.state=n,this.options.onStateChange?.(this.snapshot));}};var We=(c=>(c.HitLimits="HIT_LIMITS",c.MissingFeature="MISSING_FEATURE",c.NotUsing="NOT_USING",c.Other="OTHER",c.Quality="QUALITY",c.Switching="SWITCHING",c.TooExpensive="TOO_EXPENSIVE",c))(We||{}),ze=(o=>(o.Enterprise="enterprise",o.Free="free",o.Max="max",o.Plus="plus",o.Pro="pro",o))(ze||{}),Xe=(a=>(a.Daily="DAILY",a.Monthly="MONTHLY",a.Weekly="WEEKLY",a.Yearly="YEARLY",a))(Xe||{}),Je=(t=>(t.Revcat="REVCAT",t.Stripe="STRIPE",t))(Je||{});var ee={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Plans"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"plans"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PlanFragment"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"PlanFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Plan"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"tier"}},{kind:"Field",name:{kind:"Name",value:"prices"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"currency"}},{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"interval"}},{kind:"Field",name:{kind:"Name",value:"campaign"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"originalAmount"}},{kind:"Field",name:{kind:"Name",value:"discountedAmount"}},{kind:"Field",name:{kind:"Name",value:"percentOff"}},{kind:"Field",name:{kind:"Name",value:"expiresAt"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"entitlements"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"canAddUser"}},{kind:"Field",name:{kind:"Name",value:"minUsers"}},{kind:"Field",name:{kind:"Name",value:"team"}},{kind:"Field",name:{kind:"Name",value:"capacity"}},{kind:"Field",name:{kind:"Name",value:"sourceTypes"}},{kind:"Field",name:{kind:"Name",value:"softTokenUsageLimit"}},{kind:"Field",name:{kind:"Name",value:"hardTokenUsageLimit"}},{kind:"Field",name:{kind:"Name",value:"canAddReport"}},{kind:"Field",name:{kind:"Name",value:"canUseApi"}},{kind:"Field",name:{kind:"Name",value:"maxStructuredSize"}},{kind:"Field",name:{kind:"Name",value:"maxUnstructuredSize"}}]}},{kind:"Field",name:{kind:"Name",value:"features"}}]}}]},ne={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Plan"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"plan"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PlanFragment"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"PlanFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Plan"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"tier"}},{kind:"Field",name:{kind:"Name",value:"prices"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"currency"}},{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"interval"}},{kind:"Field",name:{kind:"Name",value:"campaign"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"originalAmount"}},{kind:"Field",name:{kind:"Name",value:"discountedAmount"}},{kind:"Field",name:{kind:"Name",value:"percentOff"}},{kind:"Field",name:{kind:"Name",value:"expiresAt"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"entitlements"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"canAddUser"}},{kind:"Field",name:{kind:"Name",value:"minUsers"}},{kind:"Field",name:{kind:"Name",value:"team"}},{kind:"Field",name:{kind:"Name",value:"capacity"}},{kind:"Field",name:{kind:"Name",value:"sourceTypes"}},{kind:"Field",name:{kind:"Name",value:"softTokenUsageLimit"}},{kind:"Field",name:{kind:"Name",value:"hardTokenUsageLimit"}},{kind:"Field",name:{kind:"Name",value:"canAddReport"}},{kind:"Field",name:{kind:"Name",value:"canUseApi"}},{kind:"Field",name:{kind:"Name",value:"maxStructuredSize"}},{kind:"Field",name:{kind:"Name",value:"maxUnstructuredSize"}}]}},{kind:"Field",name:{kind:"Name",value:"features"}}]}}]},te={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"TierOrders"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tierOrders"}}]}}]},ie={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Entitlements"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"entitlements"}}]}}]},ae={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Subscription"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"subscription"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tier"}},{kind:"Field",name:{kind:"Name",value:"provider"}},{kind:"Field",name:{kind:"Name",value:"cycle"}},{kind:"Field",name:{kind:"Name",value:"seats"}},{kind:"Field",name:{kind:"Name",value:"cancelAtPeriodEnd"}},{kind:"Field",name:{kind:"Name",value:"currentPeriodStart"}},{kind:"Field",name:{kind:"Name",value:"currentPeriodEnd"}},{kind:"Field",name:{kind:"Name",value:"pausedUntil"}},{kind:"Field",name:{kind:"Name",value:"scheduledChange"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"effectiveDate"}},{kind:"Field",name:{kind:"Name",value:"newTier"}},{kind:"Field",name:{kind:"Name",value:"newSeats"}},{kind:"Field",name:{kind:"Name",value:"newCycle"}}]}}]}}]}}]},re={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SubscriptionForManager"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"subscriptionForManager"},arguments:[{kind:"Argument",name:{kind:"Name",value:"workspaceId"},value:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tier"}},{kind:"Field",name:{kind:"Name",value:"provider"}},{kind:"Field",name:{kind:"Name",value:"cycle"}},{kind:"Field",name:{kind:"Name",value:"seats"}},{kind:"Field",name:{kind:"Name",value:"cancelAtPeriodEnd"}},{kind:"Field",name:{kind:"Name",value:"currentPeriodStart"}},{kind:"Field",name:{kind:"Name",value:"currentPeriodEnd"}},{kind:"Field",name:{kind:"Name",value:"scheduledChange"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"effectiveDate"}},{kind:"Field",name:{kind:"Name",value:"newTier"}},{kind:"Field",name:{kind:"Name",value:"newSeats"}},{kind:"Field",name:{kind:"Name",value:"newCycle"}}]}}]}}]}}]},oe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SubscriptionEntitlements"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"subscriptionEntitlements"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"canAddUser"}},{kind:"Field",name:{kind:"Name",value:"minUsers"}},{kind:"Field",name:{kind:"Name",value:"team"}},{kind:"Field",name:{kind:"Name",value:"capacity"}},{kind:"Field",name:{kind:"Name",value:"sourceTypes"}},{kind:"Field",name:{kind:"Name",value:"softTokenUsageLimit"}},{kind:"Field",name:{kind:"Name",value:"hardTokenUsageLimit"}},{kind:"Field",name:{kind:"Name",value:"canAddReport"}},{kind:"Field",name:{kind:"Name",value:"canUseApi"}},{kind:"Field",name:{kind:"Name",value:"maxStructuredSize"}},{kind:"Field",name:{kind:"Name",value:"maxUnstructuredSize"}}]}}]}}]},se={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SubscriptionEntitlementsForManager"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"subscriptionEntitlementsForManager"},arguments:[{kind:"Argument",name:{kind:"Name",value:"workspaceId"},value:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"canAddUser"}},{kind:"Field",name:{kind:"Name",value:"minUsers"}},{kind:"Field",name:{kind:"Name",value:"team"}},{kind:"Field",name:{kind:"Name",value:"capacity"}},{kind:"Field",name:{kind:"Name",value:"sourceTypes"}},{kind:"Field",name:{kind:"Name",value:"softTokenUsageLimit"}},{kind:"Field",name:{kind:"Name",value:"hardTokenUsageLimit"}},{kind:"Field",name:{kind:"Name",value:"canAddReport"}},{kind:"Field",name:{kind:"Name",value:"canUseApi"}},{kind:"Field",name:{kind:"Name",value:"maxStructuredSize"}},{kind:"Field",name:{kind:"Name",value:"maxUnstructuredSize"}}]}}]}}]},le={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ProrationAmount"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"targetPriceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"prorationAmount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"targetPriceId"},value:{kind:"Variable",name:{kind:"Name",value:"targetPriceId"}}}]}]}}]},ue={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpgradePlan"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"targetPriceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"upgradePlan"},arguments:[{kind:"Argument",name:{kind:"Name",value:"targetPriceId"},value:{kind:"Variable",name:{kind:"Name",value:"targetPriceId"}}}]}]}}]},ce={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DowngradePlan"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"targetPriceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"downgradePlan"},arguments:[{kind:"Argument",name:{kind:"Name",value:"targetPriceId"},value:{kind:"Variable",name:{kind:"Name",value:"targetPriceId"}}}]}]}}]},de={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddSeats"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"additionalSeats"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addSeats"},arguments:[{kind:"Argument",name:{kind:"Name",value:"additionalSeats"},value:{kind:"Variable",name:{kind:"Name",value:"additionalSeats"}}}]}]}}]},me={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ChangeBillingCycle"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"targetPriceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"changeBillingCycle"},arguments:[{kind:"Argument",name:{kind:"Name",value:"targetPriceId"},value:{kind:"Variable",name:{kind:"Name",value:"targetPriceId"}}}]}]}}]},pe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RemoveSeats"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"seatsToRemove"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"removeSeats"},arguments:[{kind:"Argument",name:{kind:"Name",value:"seatsToRemove"},value:{kind:"Variable",name:{kind:"Name",value:"seatsToRemove"}}}]}]}}]},ke={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CancelSubscription"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"reason"}},type:{kind:"NamedType",name:{kind:"Name",value:"CancelReason"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"comment"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cancelSubscription"},arguments:[{kind:"Argument",name:{kind:"Name",value:"reason"},value:{kind:"Variable",name:{kind:"Name",value:"reason"}}},{kind:"Argument",name:{kind:"Name",value:"comment"},value:{kind:"Variable",name:{kind:"Name",value:"comment"}}}]}]}}]},Se={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"RetentionOffers"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"retentionOffers"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pauseDays"}},{kind:"Field",name:{kind:"Name",value:"discountPercent"}},{kind:"Field",name:{kind:"Name",value:"discountMonths"}}]}}]}}]},fe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"PauseSubscription"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pauseSubscription"}}]}}]},ye={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ApplyRetentionDiscount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"applyRetentionDiscount"}}]}}]},ve={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ReactivateSubscription"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reactivateSubscription"}}]}}]},be={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CancelSubscriptionForManager"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cancelSubscriptionForManager"},arguments:[{kind:"Argument",name:{kind:"Name",value:"workspaceId"},value:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}}}]}]}}]},he={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ReactivateSubscriptionForManager"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reactivateSubscriptionForManager"},arguments:[{kind:"Argument",name:{kind:"Name",value:"workspaceId"},value:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}}}]}]}}]},ge={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateCustomer"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createCustomer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}},{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"workspaceId"},value:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}}},{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}}]}]}}]},Ne={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ReleaseSchedule"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"releaseSchedule"}}]}}]},Te={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateCheckoutSession"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"priceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"successUrl"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"cancelUrl"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createCheckoutSession"},arguments:[{kind:"Argument",name:{kind:"Name",value:"priceId"},value:{kind:"Variable",name:{kind:"Name",value:"priceId"}}},{kind:"Argument",name:{kind:"Name",value:"successUrl"},value:{kind:"Variable",name:{kind:"Name",value:"successUrl"}}},{kind:"Argument",name:{kind:"Name",value:"cancelUrl"},value:{kind:"Variable",name:{kind:"Name",value:"cancelUrl"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"}}]}}]}}]},De={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateCustomerPortalSession"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"returnUrl"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createCustomerPortalSession"},arguments:[{kind:"Argument",name:{kind:"Name",value:"returnUrl"},value:{kind:"Variable",name:{kind:"Name",value:"returnUrl"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"}}]}}]}}]},Ee={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"CheckoutTrial"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"checkoutTrial"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tier"}},{kind:"Field",name:{kind:"Name",value:"days"}}]}}]}}]};function Ae(e,n){throw new Error(n)}var j={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},$e=new Set(Object.keys(j));function H(e){let n=e?.kind;return typeof n=="string"&&$e.has(n)}var q;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription";})(q||(q={}));var N;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension";})(N||(N={}));function G(e){return e===9||e===32}function Fe(e,n){let t=e.replace(/"""/g,'\\"""'),i=t.split(/\r\n|[\n\r]/g),a=i.length===1,o=i.length>1&&i.slice(1).every(k=>k.length===0||G(k.charCodeAt(0))),s=t.endsWith('\\"""'),c=e.endsWith('"')&&!s,m=e.endsWith("\\"),l=c||m,d=(!a||e.length>70||l||o||s),p="",S=a&&G(e.charCodeAt(0));return (d&&!S||o)&&(p+=`
2
+ `),p+=t,(d||l)&&(p+=`
3
+ `),'"""'+p+'"""'}function xe(e){return I(e,[])}function I(e,n){switch(typeof e){case "string":return JSON.stringify(e);case "function":return e.name?`[function ${e.name}]`:"[function]";case "object":return Ze(e,n);default:return String(e)}}function Ze(e,n){if(e===null)return "null";if(n.includes(e))return "[Circular]";let t=[...n,e];if(Ke(e)){let i=e.toJSON();if(i!==e)return typeof i=="string"?i:I(i,t)}else if(Array.isArray(e))return nn(e,t);return en(e,t)}function Ke(e){return typeof e.toJSON=="function"}function en(e,n){let t=Object.entries(e);return t.length===0?"{}":n.length>2?"["+tn(e)+"]":"{ "+t.map(([a,o])=>a+": "+I(o,n)).join(", ")+" }"}function nn(e,n){if(e.length===0)return "[]";if(n.length>2)return "[Array]";let t=Math.min(10,e.length),i=e.length-t,a=[];for(let o=0;o<t;++o)a.push(I(e[o],n));return i===1?a.push("... 1 more item"):i>1&&a.push(`... ${i} more items`),"["+a.join(", ")+"]"}function tn(e){let n=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(n==="Object"&&typeof e.constructor=="function"){let t=e.constructor.name;if(typeof t=="string"&&t!=="")return t}return n}function Re(e){return `"${e.replace(an,rn)}"`}var an=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function rn(e){return on[e.charCodeAt(0)]}var on=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var Y=Object.freeze({});function M(e,n,t=j){let i=new Map;for(let v of Object.values(N))i.set(v,W(n,v));let a,o=Array.isArray(e),s=[e],c=-1,m=[],l=e,d,p,S=[],k=[];do{c++;let v=c===s.length,X=v&&m.length!==0;if(v){if(d=k.length===0?void 0:S[S.length-1],l=p,p=k.pop(),X)if(o){l=l.slice();let g=0;for(let[_,J]of m){let $=_-g;J===null?(l.splice($,1),g++):l[$]=J;}}else {l=Object.defineProperties({},Object.getOwnPropertyDescriptors(l));for(let[g,_]of m)l[g]=_;}c=a.index,s=a.keys,m=a.edits,o=a.inArray,a=a.prev;}else if(p){if(d=o?c:s[c],l=p[d],l==null)continue;S.push(d);}let h;if(!Array.isArray(l)){var P,U;H(l)||Ae(false,`Invalid AST Node: ${xe(l)}.`);let g=v?(P=i.get(l.kind))===null||P===void 0?void 0:P.leave:(U=i.get(l.kind))===null||U===void 0?void 0:U.enter;if(h=g?.call(n,l,d,p,S,k),h===Y)break;if(h===false){if(!v){S.pop();continue}}else if(h!==void 0&&(m.push([d,h]),!v))if(H(h))l=h;else {S.pop();continue}}if(h===void 0&&X&&m.push([d,l]),v)S.pop();else {var L;a={inArray:o,index:c,keys:s,edits:m,prev:a},o=Array.isArray(l),s=o?l:(L=t[l.kind])!==null&&L!==void 0?L:[],c=-1,m=[],p&&k.push(p),p=l;}}while(a!==void 0);return m.length!==0?m[m.length-1][1]:e}function W(e,n){let t=e[n];return typeof t=="object"?t:typeof t=="function"?{enter:t,leave:void 0}:{enter:e.enter,leave:e.leave}}function w(e){return M(e,ln)}var sn=80,ln={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>r(e.definitions,`
4
+
5
+ `)},OperationDefinition:{leave(e){let n=u("(",r(e.variableDefinitions,", "),")"),t=r([e.operation,r([e.name,n]),r(e.directives," ")]," ");return (t==="query"?"":t+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:n,defaultValue:t,directives:i})=>e+": "+n+u(" = ",t)+u(" ",r(i," "))},SelectionSet:{leave:({selections:e})=>y(e)},Field:{leave({alias:e,name:n,arguments:t,directives:i,selectionSet:a}){let o=u("",e,": ")+n,s=o+u("(",r(t,", "),")");return s.length>sn&&(s=o+u(`(
6
+ `,O(r(t,`
7
+ `)),`
8
+ )`)),r([s,r(i," "),a]," ")}},Argument:{leave:({name:e,value:n})=>e+": "+n},FragmentSpread:{leave:({name:e,directives:n})=>"..."+e+u(" ",r(n," "))},InlineFragment:{leave:({typeCondition:e,directives:n,selectionSet:t})=>r(["...",u("on ",e),r(n," "),t]," ")},FragmentDefinition:{leave:({name:e,typeCondition:n,variableDefinitions:t,directives:i,selectionSet:a})=>`fragment ${e}${u("(",r(t,", "),")")} on ${n} ${u("",r(i," ")," ")}`+a},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:n})=>n?Fe(e):Re(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+r(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+r(e,", ")+"}"},ObjectField:{leave:({name:e,value:n})=>e+": "+n},Directive:{leave:({name:e,arguments:n})=>"@"+e+u("(",r(n,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:n,operationTypes:t})=>u("",e,`
9
+ `)+r(["schema",r(n," "),y(t)]," ")},OperationTypeDefinition:{leave:({operation:e,type:n})=>e+": "+n},ScalarTypeDefinition:{leave:({description:e,name:n,directives:t})=>u("",e,`
10
+ `)+r(["scalar",n,r(t," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:n,interfaces:t,directives:i,fields:a})=>u("",e,`
11
+ `)+r(["type",n,u("implements ",r(t," & ")),r(i," "),y(a)]," ")},FieldDefinition:{leave:({description:e,name:n,arguments:t,type:i,directives:a})=>u("",e,`
12
+ `)+n+(Ce(t)?u(`(
13
+ `,O(r(t,`
14
+ `)),`
15
+ )`):u("(",r(t,", "),")"))+": "+i+u(" ",r(a," "))},InputValueDefinition:{leave:({description:e,name:n,type:t,defaultValue:i,directives:a})=>u("",e,`
16
+ `)+r([n+": "+t,u("= ",i),r(a," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:n,interfaces:t,directives:i,fields:a})=>u("",e,`
17
+ `)+r(["interface",n,u("implements ",r(t," & ")),r(i," "),y(a)]," ")},UnionTypeDefinition:{leave:({description:e,name:n,directives:t,types:i})=>u("",e,`
18
+ `)+r(["union",n,r(t," "),u("= ",r(i," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:n,directives:t,values:i})=>u("",e,`
19
+ `)+r(["enum",n,r(t," "),y(i)]," ")},EnumValueDefinition:{leave:({description:e,name:n,directives:t})=>u("",e,`
20
+ `)+r([n,r(t," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:n,directives:t,fields:i})=>u("",e,`
21
+ `)+r(["input",n,r(t," "),y(i)]," ")},DirectiveDefinition:{leave:({description:e,name:n,arguments:t,repeatable:i,locations:a})=>u("",e,`
22
+ `)+"directive @"+n+(Ce(t)?u(`(
23
+ `,O(r(t,`
24
+ `)),`
25
+ )`):u("(",r(t,", "),")"))+(i?" repeatable":"")+" on "+r(a," | ")},SchemaExtension:{leave:({directives:e,operationTypes:n})=>r(["extend schema",r(e," "),y(n)]," ")},ScalarTypeExtension:{leave:({name:e,directives:n})=>r(["extend scalar",e,r(n," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:n,directives:t,fields:i})=>r(["extend type",e,u("implements ",r(n," & ")),r(t," "),y(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:n,directives:t,fields:i})=>r(["extend interface",e,u("implements ",r(n," & ")),r(t," "),y(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:n,types:t})=>r(["extend union",e,r(n," "),u("= ",r(t," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:n,values:t})=>r(["extend enum",e,r(n," "),y(t)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:n,fields:t})=>r(["extend input",e,r(n," "),y(t)]," ")}};function r(e,n=""){var t;return (t=e?.filter(i=>i).join(n))!==null&&t!==void 0?t:""}function y(e){return u(`{
26
+ `,O(r(e,`
27
+ `)),`
28
+ }`)}function u(e,n,t=""){return n!=null&&n!==""?e+n+t:""}function O(e){return u(" ",e.replace(/\n/g,`
29
+ `))}function Ce(e){var n;return (n=e?.some(t=>t.includes(`
30
+ `)))!==null&&n!==void 0?n:false}var Ie=new WeakMap;function V(e){let n=Ie.get(e);return n||(n=w(e),Ie.set(e,n)),n}var dn=new Set([g.SESSION_TOKEN_LIMIT_REACHED,g.STORAGE_LIMIT_REACHED,g.DEEP_ANALYSIS_LIMIT_EXCEEDED,g.PLAN_DETAIL_RESTRICTION,g.RESOURCE_NOT_FOUND]);function we(e,n){if(e)for(let t of e){let i=t.extensions?.code;if(i==null)continue;if(i===4401||i==="4401")return true;let a=String(i).toUpperCase();if(dn.has(a))return false;if(a==="UNAUTHORIZED"||a==="UNAUTHENTICATED"||t.message==="Unauthorized")return true}return false}var Ve="SERVICE_UNAVAILABLE";function mn(e){return e.data?false:(e.errors??[]).some(n=>String(n.extensions?.code??"").toUpperCase()===Ve)}function pn(){return new c(`HTTP 503: Service unavailable (${Ve})`,503)}async function Pe(e$1,n,t){let i=await e$1.getToken(),a=e$1.getLanguage(),o=e$1.getPlatform?.(),s=e$1.getUserTimezone?.(),c$1={"Content-Type":"application/json",Authorization:`Bearer ${i}`};a&&(c$1["x-preferred-language"]=a),o&&(c$1["x-platform"]=o),s&&(c$1["x-user-timezone"]=s);let m=JSON.stringify({query:V(n),variables:t}),l=kn(n)?new AbortController:void 0,d$1=l&&setTimeout(()=>l.abort(),Ue);try{let p;try{p=await fetch(e$1.url,{method:"POST",headers:c$1,body:m,...l&&{signal:l.signal}});}catch(k){throw l?.signal.aborted?Me():F(k)?k:new c(k instanceof Error?k.message:"Network request failed before reaching the server",0)}if(!p.ok)throw p.status===401?new d(`Authentication failed with status ${p.status}`,i):p.status===403?new e("Request refused with status 403"):new c(`HTTP ${p.status}: ${p.statusText}`,p.status);let S;try{S=await p.json();}catch(k){throw l?.signal.aborted?Me():k}if(mn(S))throw pn();return {response:S,usedToken:i}}finally{clearTimeout(d$1);}}var Ue=3e4;function Me(){return new c(`No answer within ${Ue/1e3} s`,0)}function kn(e){let n=e.definitions.filter(t=>t.kind==="OperationDefinition");return n.length>0&&n.every(t=>t.operation==="query")}var Sn=4,fn=1e3;function Le(e){async function n(t,i,a$1=0,o=true,s=e){let c$1;try{c$1=await Pe(s,t,i);}catch(d$1){if(d$1 instanceof d)return Oe(t,i,s,d$1.failedToken,o);if(d$1 instanceof c&&d$1.status===0&&a$1<Sn)return await hn(fn*(a$1+1)),n(t,i,a$1+1,o,s);throw o&&d$1 instanceof a&&T(s,t,d$1),d$1}let{response:m,usedToken:l$1}=c$1;if(we(m.errors))return Oe(t,i,s,l$1,o);if(m.errors?.length&&!m.data){let d=l(m.errors,V(t),i);throw o&&T(s,t,d),d}if(!m.data){let d=l([{message:"No data returned from server"}],V(t),i);throw o&&T(s,t,d),d}return m.data}return {request:(t,i,a)=>n(t,i,0,a?.reportErrors??true,a?.watched?vn(e):e)}}async function Oe(e,n,t,i,a=true){try{await R(t.getToken,i);}catch{let o=new d("Token refresh failed");throw T(t,e,o),o}return yn(t,e,n,a)}async function yn(e,n,t,i=true){let a$1;try{a$1=await Pe(e,n,t);}catch(s){if(s instanceof d){let c=new d("Authentication failed after token refresh");throw T(e,n,c),c}throw i&&s instanceof a&&T(e,n,s),s}let{response:o}=a$1;if(we(o.errors)){let s=new d("Authentication failed after token refresh");throw T(e,n,s),s}if(o.errors?.length&&!o.data){let s=l(o.errors,V(n),t);throw i&&T(e,n,s),s}return o.data}function vn(e){let{onError:n}=e;return n?{...e,onError:t=>{t.watched=true,n(t);}}:e}function T(e,n,t){t.operation??=bn(n),e.onError?.(t);}function bn(e){for(let n of e.definitions)if(n.kind===N.OPERATION_DEFINITION)return n.operation}function hn(e){return new Promise(n=>setTimeout(n,e))}async function _e(e,n,t){let i=e.getReader(),a=new TextDecoder,o="";try{for(;!n.aborted;){let{done:s,value:c}=await i.read();if(s)break;t.onChunk?.(),o+=a.decode(c,{stream:!0});let m=o.split(/(?:\r\n|\r|\n){2}/);o=m.pop()??"",await t.onEventBlocks(m.map(l=>l.trim()));}}finally{i.releaseLock();}}var Qe=1e3,gn=3e4,Nn=3,Tn=35e3,E=class extends Error{constructor(t){super(`Billing SSE auth failed: ${t}`);this.status=t;this.name="BillingAuthStreamError";}};function Be(e){let n=e instanceof c?e.status:void 0;return n!==void 0&&n>=400&&n<500&&n!==408&&n!==429}var z=class{constructor(n,t){this.options=n;this.onClose=t;this.supervisor=new C({authRetryDelayMs:Qe,baseReconnectDelayMs:Qe,getToken:n.getToken,id:`billing-${crypto.randomUUID()}`,isAuthError:i=>i instanceof E,isFatalError:Be,kind:"billing-sse",maxConsecutiveAuthFailures:Nn,maxReconnectDelayMs:gn,onFatalError:i=>{this.options.onError?.(Be(i)?i:new d("Billing SSE stream authentication failed permanently")),this.close();},staleTimeoutMs:Tn,dial:async i=>{let a=await fetch(this.options.billingSseUrl,{method:"GET",headers:{Authorization:`Bearer ${i.token}`,Accept:"text/event-stream","Cache-Control":"no-cache"},signal:i.signal});if(!a.ok)throw a.status===401||a.status===403?new E(a.status):new c(`Billing SSE failed: ${a.status} ${a.statusText}`,a.status);if(!a.body)throw new Error("Billing SSE response has no body");i.markConnected(),await _e(a.body,i.signal,{onChunk:()=>i.markActivity(),onEventBlocks:o=>{for(let s of o)this.processEventBlock(s,i.requestTokenRefresh);}});}});}abortFinished=false;queue=[];pendingResolve=null;supervisor;start(){this.supervisor.start();}reconnect(){this.abortFinished||this.supervisor.reconnect();}next(){return this.queue.length>0?Promise.resolve({value:this.queue.shift(),done:false}):this.abortFinished?Promise.resolve({value:void 0,done:true}):new Promise(n=>{this.pendingResolve=n;})}return(){return this.close(),Promise.resolve({value:void 0,done:true})}[Symbol.asyncIterator](){return this}close(){this.abortFinished||(this.abortFinished=true,this.supervisor.close(),this.pendingResolve&&(this.pendingResolve({value:void 0,done:true}),this.pendingResolve=null),this.onClose(this));}push(n){if(!this.abortFinished){if(this.pendingResolve){this.pendingResolve({value:n,done:false}),this.pendingResolve=null;return}this.queue.length=0,this.queue.push(n);}}processEventBlock(n,t){if(!n||n.startsWith(":"))return;let i,a=[];for(let o of n.split(/\r\n|\r|\n/))o.startsWith("event: ")?i=o.slice(7).trim():o.startsWith("data: ")&&a.push(o.slice(6));if(i==="token-expired")throw t(),new E(401);if(!(i!=="subscription"||a.length===0))try{let o=JSON.parse(a.join(`
31
+ `));this.push(o);}catch{}}},qe=class{http;options;activeUpdateStreams=new Set;constructor(n){this.options=n,this.http=Le({url:n.billingHttpUrl,getToken:n.getToken,getLanguage:()=>{},onError:n.onError});}destroy(){for(let n of Array.from(this.activeUpdateStreams))n.close();this.activeUpdateStreams.clear();}reconnectAll(){for(let n of this.activeUpdateStreams)n.reconnect();}get plans(){return {list:async()=>(await this.request(ee)).plans,get:async n=>(await this.request(ne,n)).plan,entitlements:async()=>(await this.request(ie)).entitlements,tierOrders:async()=>(await this.request(te)).tierOrders}}get subscription(){return {get:async()=>(await this.request(ae)).subscription,entitlements:async()=>(await this.request(oe)).subscriptionEntitlements,checkoutTrial:async()=>(await this.request(Ee)).checkoutTrial??null,upgrade:async n=>(await this.request(ue,n)).upgradePlan,prorationAmount:async n=>(await this.request(le,n)).prorationAmount,downgrade:async n=>(await this.request(ce,n)).downgradePlan,changeBillingCycle:async n=>(await this.request(me,n)).changeBillingCycle,cancel:async(n={})=>(await this.request(ke,n)).cancelSubscription,retentionOffers:async()=>(await this.request(Se)).retentionOffers??null,pause:async()=>(await this.request(fe)).pauseSubscription,applyRetentionDiscount:async()=>(await this.request(ye)).applyRetentionDiscount,reactivate:async()=>(await this.request(ve)).reactivateSubscription,releaseSchedule:async()=>(await this.request(Ne)).releaseSchedule,updates:()=>{let n=new z(this.options,t=>{this.activeUpdateStreams.delete(t);});return this.activeUpdateStreams.add(n),n.start(),n}}}get seats(){return {add:async n=>(await this.request(de,n)).addSeats,remove:async n=>(await this.request(pe,n)).removeSeats}}get session(){return {createSession:async n=>(await this.request(Te,n)).createCheckoutSession,createCustomerPortalSession:async n=>(await this.request(De,n)).createCustomerPortalSession}}get management(){return {subscription:async n=>(await this.request(re,n)).subscriptionForManager,entitlements:async n=>(await this.request(se,n)).subscriptionEntitlementsForManager,cancel:async n=>(await this.request(be,n)).cancelSubscriptionForManager,reactivate:async n=>(await this.request(he,n)).reactivateSubscriptionForManager,createCustomer:async n=>(await this.request(ge,n)).createCustomer}}request(n,t){return this.http.request(n,t)}};export{N as a,M as b,F as c,R as d,Le as e,Ye as f,_e as g,We as h,ze as i,Xe as j,Je as k,qe as l};
@@ -1,6 +1,5 @@
1
- import { D as DvinaQueryRef, M as MutationOptions, b as DvinaRequest, P as PageInfoData, C as ConnectionVariables, F as FetchOptions } from './types-DlNXHZQK.js';
1
+ import { D as DvinaQueryRef, M as MutationOptions, a as DvinaRequest, P as PageInfoData, C as ConnectionVariables, F as FetchOptions } from './types-qFfDxUXY.js';
2
2
  import { DocumentNode } from 'graphql';
3
- import * as dexie from 'dexie';
4
3
  import { Dexie, Table } from 'dexie';
5
4
  import { D as DvinaError, a as DvinaAuthenticationError, b as DvinaForbiddenError, c as DvinaNetworkError, d as DvinaSyncApplyError } from './error-CuX-RKTE.js';
6
5
 
@@ -121,11 +120,21 @@ declare class DvinaDatabase {
121
120
  table<T = unknown, TKey = unknown>(tableName: string): Table<T, TKey>;
122
121
  /** Access all tables */
123
122
  get allTables(): Table[];
124
- /** Run a read-write transaction across specified tables */
125
- /** Dexie's transaction; `scope` gets it, so it can abort it (IndexedDB `IDBTransaction.abort()`). */
123
+ /** Which connection to the database is open: one more each time a lost one is reopened. */
124
+ private _connection;
125
+ /**
126
+ * Dexie's transaction; `scope` gets it, so it can abort it (IndexedDB `IDBTransaction.abort()`). One that fails
127
+ * because the connection under it was lost (isLostConnection) is run again, once, on a reopened connection: none of
128
+ * it was written, and nothing after it would be either until the connection is reopened.
129
+ */
126
130
  transaction<U>(mode: 'rw' | 'r', tables: Table[], scope: (transaction: {
127
131
  abort(): void;
128
- }) => PromiseLike<U> | U): dexie.PromiseExtended<U>;
132
+ }) => PromiseLike<U> | U): Promise<U>;
133
+ /**
134
+ * Closes a lost connection so the next use opens a new one (Dexie opens it again on its own). Only once per lost
135
+ * connection: transactions that failed together must not close the one already reopened for them.
136
+ */
137
+ private _reopen;
129
138
  /** Counts the deletes applied here (optimistic or the sync's); a read notes it as it starts (readMark). */
130
139
  private _deleteClock;
131
140
  /** The latest deletes applied here, by `table:key`, at their clock; the oldest go past DELETES_KEPT. */
@@ -280,6 +289,13 @@ interface SseSyncEvent {
280
289
  entityId: string;
281
290
  payload: Record<string, unknown> | null;
282
291
  }
292
+ /** The API's sync policy, sent as each stream's first event. */
293
+ interface SseCachePolicy {
294
+ /** Raised when every device's local store must be read again; a store kept under a lower one is cleared. */
295
+ cacheEpoch: number;
296
+ /** Whether the stream says `synced` once caught up. */
297
+ syncedMarker: boolean;
298
+ }
283
299
  interface SseQueryEvent {
284
300
  /**
285
301
  * `add`/`remove`: an entity entered or left the subscription's set; `resync`: read the list again; `count`: how many
@@ -293,7 +309,7 @@ interface SseQueryEvent {
293
309
  /** On a catch-up's `count`: the cursor the list is now current to, which its next catch-up starts from. */
294
310
  querySyncId?: string;
295
311
  }
296
- declare const REALTIME_EVENT_TOPICS: readonly ["active-chats", "billing-subscription", "desktop-device-presence", "mcp-auth", "token-usage-status", "user-notification"];
312
+ declare const REALTIME_EVENT_TOPICS: readonly ["active-chats", "billing-subscription", "chat-state", "desktop-device-presence", "mcp-auth", "token-usage-status", "user-notification"];
297
313
  type RealtimeEventTopic = (typeof REALTIME_EVENT_TOPICS)[number];
298
314
  interface SseRealtimeEvent {
299
315
  topic: RealtimeEventTopic;
@@ -336,6 +352,11 @@ interface SseTransportOptions {
336
352
  onCursor?: (syncId: string) => void;
337
353
  /** Called when the server signals that the sync gap is unrecoverable and a full resync is needed */
338
354
  onFullResync?: () => void;
355
+ /**
356
+ * Called with the stream's cache policy, its first event (the API's `cache-policy` answer), before any other event
357
+ * of the stream is processed. Processing is awaited to preserve stream order.
358
+ */
359
+ onCachePolicy?: (policy: SseCachePolicy) => void | Promise<void>;
339
360
  /**
340
361
  * Called once a connection has caught up: the missed events before it are applied, and every later event is live.
341
362
  * A server too old to send it never calls it.
@@ -534,6 +555,13 @@ declare class SyncEngine {
534
555
  * watched in many places registers once, so a client does not run into the server's per-user limit.
535
556
  */
536
557
  private _serverSubscriptions;
558
+ /**
559
+ * Watched queries whose last read the server answered with not found (a record deleted, or no longer shared): a
560
+ * reconnect does not read them again, as it would every time (their answer was dropped, so they keep no cursor);
561
+ * one the server adds again reaches them as a sync change (prod 2026-11-17: a deleted document's watch asked
562
+ * `document` on each of a user's reconnects, 13 not-founds in two hours).
563
+ */
564
+ private _notFound;
537
565
  /**
538
566
  * The device's cursor each server subscription was registered with while its query kept none (its first read had
539
567
  * not landed, or found nothing to keep): the server catches it up from there, so a record made while the read and
@@ -809,4 +837,4 @@ declare class Connection<Node> extends AbstractConnection<Node> {
809
837
  fetchPrevious(options?: FetchOptions): Promise<this>;
810
838
  }
811
839
 
812
- export { AbstractConnection as A, Connection as C, DvinaDatabase as D, PageInfo as P, type RealtimeEventTopic as R, SyncEngine as S, Request as a, type SseRealtimeEvent as b, createHttpTransport as c, type CacheRule as d, type CacheRuleCreate as e, type CacheRuleDelete as f, type CacheRuleUpdate as g, type SseQueryEvent as h, type SseSyncEvent as i, type SseTransport as j, type SseTransportOptions as k, type SubscriptionDescriptor as l, type SyncState as m, type SyncStatus as n, type SyncStatusSource as o, closeDatabase as p, createSseTransport as q, defaultConnection as r, deleteDatabase as s, deleteLeftWorkspaceData as t, deleteUserLocalData as u, getOrCreateDatabase as v };
840
+ export { AbstractConnection as A, type CacheRule as C, DvinaDatabase as D, PageInfo as P, type RealtimeEventTopic as R, type SseRealtimeEvent as S, SyncEngine as a, type CacheRuleCreate as b, createHttpTransport as c, type CacheRuleDelete as d, type CacheRuleUpdate as e, Connection as f, Request as g, type SseQueryEvent as h, type SseSyncEvent as i, type SseTransport as j, type SseTransportOptions as k, type SubscriptionDescriptor as l, type SyncState as m, type SyncStatus as n, type SyncStatusSource as o, closeDatabase as p, createSseTransport as q, defaultConnection as r, deleteDatabase as s, deleteLeftWorkspaceData as t, deleteUserLocalData as u, getOrCreateDatabase as v };
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { D as DvinaQueryRef } from './types-DlNXHZQK.js';
2
- export { C as ConnectionVariables, c as ConnectionWithNodes, a as DvinaAsyncRef, b as DvinaRequest, F as FetchOptions, M as MutationOptions, P as PageInfoData, W as WithIncludes } from './types-DlNXHZQK.js';
3
- import { I as IncludeDirective } from './_generated_sdk-CnHdM8Xm.js';
4
- export { A as ActiveChatsEvent, b as ActiveChatsSnapshot, c as ActiveWindowType, d as AddBrowserFavoriteMutation, e as AddIntegrationAccountMutation, f as AddMcpServerMutation, g as Agent, h as AgentActionRule, i as AgentConnection, j as AgentMemory, k as AgentOrderByRelevanceFieldEnum, l as AgentQuery, m as AgentSubBuilder, n as AgentWorkflow, o as AgentWorkflowOutput, p as AgentWorkflowQuery, q as AgentWorkflowResource, r as AgentWorkflowStep, s as AgentWorkflow_OutputQuery, t as AgentWorkflow_Output_ResourceQuery, u as AgentWorkflow_StepsQuery, v as Agent_ChatsQuery, w as Agent_ScheduledMessagesQuery, x as AgentsQuery, y as AiProviderSettingQuery, z as AiResourceType, B as AnswerChatQuestionMutation, E as AnswerChatToolCallMutation, F as AppSuggestions, G as AppSuggestionsQuery, H as ApplyArtifactDataMutation, J as AreaRetention, K as ArtifactDataChangedDoc, L as ArtifactDataOpKind, M as ArtifactDataQuery, N as ArtifactDataResult, O as ArtifactDataSnapshot, P as AssignUsagePolicyMutation, Q as AttentionEntry, R as AttentionQuery, S as AuditActorKind, T as AuditDeliveryStatus, U as AuditDestination, V as AuditDestinationCreated, W as AuditDestinationKind, X as AuditDestinationsQuery, Y as AuditExportFormat, Z as AuditLogEntry, _ as AuditLogExport, $ as AuditLogPage, a0 as AuditLogQuery, a1 as AuditLog_EntriesQuery, a2 as AuditPayloadFormat, a3 as BillingConnection, a4 as BillingConnectionQuery, a5 as BillingConnectionState, a6 as BillingSubscriptionEvent, a7 as BillingSubscriptionSnapshot, a8 as BriefWorldLessQuery, a9 as BrowserFavorite, aa as BrowserFavoriteConnection, ab as BrowserFavoriteOrderByRelevanceFieldEnum, ac as BrowserFavoritesQuery, ad as BrowserLoginSync, ae as BrowserLoginSyncQuery, af as BrowserProfile, ag as BrowserSettings, ah as BrowserSettingsQuery, ai as BrowserSettings_SitesQuery, aj as BrowserSite, ak as BrowserTab, al as BrowserTabConnection, am as BrowserTabOrderByRelevanceFieldEnum, an as BrowserTabState, ao as BrowserTabsQuery, ap as BrowserVisit, aq as BrowserVisitConnection, ar as BrowserVisitOrderByRelevanceFieldEnum, as as BrowserVisitsQuery, at as CancelDataActionMutation, au as CancelImportReminderMutation, av as CancelOauthFlowMutation, aw as CancelScheduledMessageMutation, ax as CancelWorkspaceDeletionMutation, ay as Canvas, az as CanvasConnection, aA as CanvasEditOrigin, aB as CanvasKind, aC as CanvasOrderByRelevanceFieldEnum, aD as CanvasQuery, aE as CanvasSubBuilder, aF as CanvasVersion, aG as CanvasVersionsQuery, aH as CanvasView, aI as CanvasViewQuery, aJ as Canvas_ThumbnailFileQuery, aK as Canvas_VersionsQuery, aL as CanvasesQuery, aM as CapabilityType, aN as CertificateInfo, aO as ChangePersonObjectMutation, aP as Chat, aQ as ChatConnection, aR as ChatDay, aS as ChatDaysQuery, aT as ChatIdleOutcome, aU as ChatImportExecuteOutput, aV as ChatImportPreviewOutput, C as ChatMessage, a as ChatMessageConnection, aW as ChatMessageOrderByRelevanceFieldEnum, aX as ChatMessageQuery, aY as ChatMessageRoleEnum, aZ as ChatMessageSubBuilder, a_ as ChatMessageToolOutputQuery, a$ as ChatMessage_ChatQuery, b0 as ChatMessage_Chat_DesktopDeviceQuery, b1 as ChatMessage_Chat_InsightQuery, b2 as ChatMessage_Chat_ProjectQuery, b3 as ChatMessage_FeedbackQuery, b4 as ChatMessage_ReferencedChatQuery, b5 as ChatMessage_ReferencedChat_DesktopDeviceQuery, b6 as ChatMessage_ReferencedChat_InsightQuery, b7 as ChatMessage_ReferencedChat_ProjectQuery, b8 as ChatMessage_RepliesQuery, b9 as ChatMessage_ThreadQuery, ba as ChatMessagesAroundQuery, bb as ChatMessagesQuery, bc as ChatNextPromptMutation, bd as ChatOrderByRelevanceFieldEnum, be as ChatQuery, bf as ChatReadState, bg as ChatSourceImportFidelityEnum, bh as ChatSourceImportModeEnum, bi as ChatSourceProviderEnum, bj as ChatSubBuilder, bk as ChatThread, bl as ChatThreadOrderByRelevanceFieldEnum, bm as ChatWaitingOn, bn as ChatWorkspaceMode, bo as Chat_AgentsQuery, bp as Chat_DesktopDeviceQuery, bq as Chat_DesktopDevice_DesktopBindingsQuery, br as Chat_InsightQuery, bs as Chat_Insight_ThumbnailFileQuery, bt as Chat_MessagesQuery, bu as Chat_ProjectQuery, bv as Chat_Project_DesktopBindingQuery, bw as Chat_ScheduledMessagesQuery, bx as ChatsQuery, by as CheckDatabaseConnectionMutation, bz as ClearImageEditContextMutation, bA as ClearMemoryMutation, bB as CloseBrowserTabMutation, bC as CloseShareLinkMutation, bD as CommitMessageSuggestion, bE as ComputerActivity, bF as ComputerActivityQuery, bG as ComputerActivitySubBuilder, bH as ComputerActivity_RunsQuery, bI as ComputerRunFile, bJ as ComputerRunMessage, bK as ConfirmDatabaseRelationshipsMutation, bL as ConfirmTableRelationshipMutation, bM as ConnectIntegrationMutation, bN as ConnectLocalModelMutation, bO as ConsumePulseEventsMutation, bP as ContextAnalysis, bQ as ContextAnalysisQuery, bR as ContextAnalysisStatus, bS as ContextArea, bT as ContextAreaConnection, bU as ContextAreaOrderByRelevanceFieldEnum, bV as ContextAreaQuery, bW as ContextAreasQuery, bX as ContextTopic, bY as ContextTopicConnection, bZ as ContextTopicKind, b_ as ContextTopicOrderByRelevanceFieldEnum, b$ as ContextTopicQuery, c0 as ContextTopicSubBuilder, c1 as ContextTopic_FactsQuery, c2 as ContextTopic_OpenLoopsQuery, c3 as ContextTopicsQuery, c4 as ContinueInterpretationMutation, c5 as CopiedSharedItem, c6 as CopySharedItemMutation, c7 as CorrectContextTopicMutation, c8 as CreateAgentMutation, c9 as CreateAuditDestinationMutation, ca as CreateCanvasMutation, cb as CreateChatMutation, cc as CreateDatabaseMutation, cd as CreateDlpDictionaryMutation, ce as CreateDlpProviderMutation, cf as CreateDlpRuleMutation, cg as CreateDocumentMutation, ch as CreateFolderMutation, ci as CreateInsightMutation, cj as CreateIntegrationMutation, ck as CreateIntegrationOutput, cl as CreateProjectMutation, cm as CreateRetentionPolicyMutation, cn as CreateTableMutation, co as CreateUsagePolicyMutation, cp as CreateUserSkillFileMutation, cq as CreateUserSkillFolderMutation, cr as CreateWebhookEndpointMutation, cs as CreateWorkspaceAiModelSettingMutation, ct as CubeModel, cu as CubeModelRevisionsQuery, cv as DataAction, cw as DataActionConnection, cx as DataActionKind, cy as DataActionOrderByRelevanceFieldEnum, cz as DataActionPreview, cA as DataActionPreviewQuery, cB as DataActionQuery, cC as DataActionStatus, cD as DataActionsQuery, cE as DataPurge, cF as DataPurgeKind, cG as DataPurgeStatus, cH as Database, cI as DatabaseCatalog, cJ as DatabaseCatalogConnection, cK as DatabaseCatalogOrderByRelevanceFieldEnum, cL as DatabaseCatalogQuery, cM as DatabaseCatalogSubBuilder, cN as DatabaseCatalog_EngineQuery, cO as DatabaseCatalogsQuery, cP as DatabaseConnection, cQ as DatabaseConnectionInfo, cR as DatabaseConnectionStatus, cS as DatabaseEngine, cT as DatabaseOrderByRelevanceFieldEnum, cU as DatabasePreparationQuery, cV as DatabasePreparationTable, cW as DatabaseQuery, cX as DatabaseReachability, cY as DatabaseRelationship, cZ as DatabaseRelationshipDetectionProgressQuery, c_ as DatabaseRelationshipDetectionQuery, c$ as DatabaseRelationshipEvidence, d0 as DatabaseRelationshipSource, d1 as DatabaseRelationshipsQuery, d2 as DatabaseSchemaQuery, d3 as DatabaseSourceColumn, d4 as DatabaseSourceTable, d5 as DatabaseSubBuilder, d6 as DatabaseSuggestedQuestionsQuery, d7 as Database_ConnectionInfoQuery, d8 as Database_ConnectionStatusQuery, d9 as Database_EngineQuery, da as Database_Engine_CatalogQuery, db as Database_SourceTablesQuery, dc as Database_TablesQuery, dd as DatabasesQuery, de as DecideTaskGoalMutation, df as DeleteAgentMutation, dg as DeleteAiProviderSettingMutation, dh as DeleteAuditDestinationMutation, di as DeleteCanvasIfEmptyMutation, dj as DeleteCanvasMutation, dk as DeleteChatMutation, dl as DeleteDatabaseMutation, dm as DeleteDlpDictionaryMutation, dn as DeleteDlpProviderMutation, dp as DeleteDlpRuleMutation, dq as DeleteDocumentMutation, dr as DeleteEarlierConversationMutation, ds as DeleteFolderMutation, dt as DeleteInsightMutation, du as DeleteInsightsMutation, dv as DeleteIntegrationMutation, dw as DeleteMemoryFileMutation, dx as DeleteModelConnectionMutation, dy as DeleteProjectMutation, dz as DeleteSavedAiProviderModelMutation, dA as DeleteTableAccessRuleMutation, dB as DeleteTableMutation, dC as DeleteUsagePolicyMutation, dD as DeleteUserSkillFileMutation, dE as DeleteUserSkillFolderMutation, dF as DeleteWebhookEndpointMutation, dG as DeletedItem, dH as DeletedItemConnection, dI as DeletedItemKind, dJ as DeletedItemOrderByRelevanceFieldEnum, dK as DeletedItemsQuery, dL as DesktopDevice, dM as DesktopDeviceConnection, dN as DesktopDeviceOrderByRelevanceFieldEnum, dO as DesktopDeviceQuery, dP as DesktopDeviceSubBuilder, dQ as DesktopDevice_ChatsQuery, dR as DesktopDevice_DesktopBindingsQuery, dS as DesktopDevicesQuery, dT as DetectDatabaseRelationshipsMutation, dU as DetectImageEditItemsMutation, dV as DevAccessTokenOutput, dW as DeviceIdentityKey, dX as DeviceIdentityKind, dY as DevicePresenceEvent, dZ as DevicePresenceSnapshot, d_ as Digest, d$ as DigestConnection, e0 as DigestOrderByRelevanceFieldEnum, e1 as DigestPeriod, e2 as DigestQuery, e3 as DigestStatus, e4 as DigestsQuery, e5 as DisconnectIntegrationAccountMutation, e6 as DisconnectIntegrationMutation, e7 as DisconnectLocalModelMutation, e8 as DismissNpsMutation, e9 as DismissProactiveItemMutation, ea as DismissPulseEventMutation, eb as DismissTableRelationshipMutation, ec as DismissedDatabaseRelationshipsQuery, ed as DlpAction, ee as DlpDictionariesQuery, ef as DlpDictionary, eg as DlpDictionaryView, eh as DlpFailMode, ei as DlpHit, ej as DlpProvider, ek as DlpProviderKind, el as DlpProviderSetting, em as DlpProviderTestResult, en as DlpProviderView, eo as DlpProvidersQuery, ep as DlpReportQuery, eq as DlpRule, er as DlpRuleKind, es as DlpRuleView, et as DlpRulesQuery, eu as DlpScope, ev as DlpTriggerCount, ew as Document, ex as DocumentAttachmentsQuery, ey as DocumentCatalog, ez as DocumentCatalogConnection, eA as DocumentCatalogOrderByRelevanceFieldEnum, eB as DocumentCatalogQuery, eC as DocumentCatalogSubBuilder, eD as DocumentCatalog_FormatQuery, eE as DocumentCatalogsQuery, eF as DocumentConnection, eG as DocumentContent, eH as DocumentFormat, eI as DocumentOrderByRelevanceFieldEnum, eJ as DocumentQuery, eK as DocumentReadStatus, eL as DocumentSubBuilder, eM as DocumentVersion, eN as Document_ContentsQuery, eO as Document_FileQuery, eP as Document_FormatQuery, eQ as Document_Format_CatalogQuery, eR as Document_TablesQuery, eS as Document_VersionsQuery, eT as DocumentsQuery, eU as DvinaEventRef, eV as DvinaEventTopic, eW as DvinaEvents, eX as DvinaModel, eY as DvinaRealtimeEvent, D as DvinaSdk, eZ as DvinaSdkBaseOptions, e_ as DvinaSdkCallbackOptions, e$ as DvinaSdkLifecycle, f0 as DvinaSdkLifecycleHint, f1 as DvinaSdkOptions, f2 as DvinaSdkTokenOptions, f3 as EarlierConversation, f4 as EarlierConversationConnection, f5 as EarlierConversationsQuery, f6 as EnterpriseFeaturesAllPlansQuery, f7 as EntitlementTier, f8 as EntityOpen, f9 as ExecuteChatImportMutation, fa as Expectation, fb as ExportAuditLogMutation, fc as ExportQuery, fd as ExportUsageReportQuery, fe as ExportWithInsightIdQuery, ff as Fact, fg as FactConnection, fh as FactKind, fi as FactOrderByRelevanceFieldEnum, fj as FactOwner, fk as FactStatus, fl as FactTimePrecision, fm as FactsQuery, fn as FeaturePersonLessMutation, fo as FeedActionType, fp as FeedAgentData, fq as FeedCanvasData, fr as FeedConnection, fs as FeedDatabaseData, ft as FeedDocumentData, fu as FeedInsightData, fv as FeedIntegrationData, fw as FeedItem, fx as FeedItemGenerated, fy as FeedItemKind, fz as FeedItemOrderByRelevanceFieldEnum, fA as FeedItemQuery, fB as FeedItemSubBuilder, fC as FeedItem_ActionQuery, fD as FeedItem_DataQuery, fE as FeedItemsQuery, fF as FeedKeptData, fG as FeedMediaData, fH as FeedProjectData, fI as FeedPulseData, fJ as FeedSendMessageAction, fK as FeedSkillData, fL as Feedback, fM as FeedbackCategory, fN as FeedbackOrderByRelevanceFieldEnum, fO as FeedbackReason, fP as FeedbackType, fQ as File, fR as FileArchiveUrl, fS as FileArchiveUrlQuery, fT as FileMetaQuery, fU as FileModel, fV as FileQuery, fW as FileUrlVariant, fX as FileUrlsQuery, fY as FindFitTierQuery, fZ as FocusBrowserTabMutation, f_ as Folder, f$ as FolderConnection, g0 as FolderOrderByRelevanceFieldEnum, g1 as FolderQuery, g2 as FoldersQuery, g3 as ForgetBrowserLoginsMutation, g4 as ForgetContextTopicMutation, g5 as ForgetKeptItemsMutation, g6 as ForgetPersonMutation, g7 as ForgetPersonResult, g8 as GeneralAccess, g9 as GenerateUploadUriMutation, ga as GetCapabilityQuery, gb as GetDevAccessTokenQuery, gc as GetLimitQuery, gd as GetRemainingQuery, ge as GetTokenUsageByModelQuery, gf as GetTokenUsageHistoryQuery, gg as GetUsageQuery, gh as GrantAgentApprovalMutation, gi as HasLegalHoldsQuery, gj as HideSharedItemMutation, gk as ImageEditContextQuery, gl as ImageEditItem, gm as ImageEditItemShape, gn as ImportReminderQuery, go as ImportUserSkillMutation, gp as Insight, gq as InsightConnection, gr as InsightOrderByRelevanceFieldEnum, gs as InsightQuery, gt as InsightSubBuilder, gu as Insight_ChatQuery, gv as Insight_Chat_DesktopDeviceQuery, gw as Insight_Chat_ProjectQuery, gx as Insight_ThumbnailFileQuery, gy as InsightsQuery, gz as InstallLocalModelMutation, gA as Integration, gB as IntegrationCatalog, gC as IntegrationCatalogConnection, gD as IntegrationCatalogOrderByRelevanceFieldEnum, gE as IntegrationCatalogQuery, gF as IntegrationCatalogSubBuilder, gG as IntegrationCatalogToolsQuery, gH as IntegrationCatalog_ProviderQuery, gI as IntegrationCatalogsQuery, gJ as IntegrationConnection, gK as IntegrationOrderByRelevanceFieldEnum, gL as IntegrationProvider, gM as IntegrationQuery, gN as IntegrationStatus, gO as IntegrationSubBuilder, gP as Integration_ProviderQuery, gQ as Integration_Provider_CatalogQuery, gR as IntegrationsQuery, gS as Interpretation, gT as InterpretationConnection, gU as InterpretationOrderByRelevanceFieldEnum, gV as InterpretationType, gW as InterpretationsQuery, gX as KeepMutation, gY as KeptItem, gZ as KeptItemsListQuery, g_ as KeptItemsQuery, g$ as KeptKind, h0 as KeptSource, h1 as LegalHold, h2 as LegalHoldAreasQuery, h3 as LegalHoldConnection, h4 as LegalHoldOrderByRelevanceFieldEnum, h5 as LegalHoldsConnectionQuery, h6 as LimitType, h7 as LiveActivityTarget, h8 as LocalModelCatalogView, h9 as LocalModelConnectionView, ha as LocalModelDeviceView, hb as LocalModelEngineView, hc as LocalModelInstallView, hd as LocalModelServerView, he as LocalModelSettings, hf as LocalModelSettingsQuery, hg as LocalModelSettings_ConnectionsQuery, hh as LocalModelSettings_DevicesQuery, hi as LocalModelView, hj as MainChatQuery, hk as MainChat_AgentsQuery, hl as MainChat_DesktopDeviceQuery, hm as MainChat_DesktopDevice_DesktopBindingsQuery, hn as MainChat_InsightQuery, ho as MainChat_Insight_ThumbnailFileQuery, hp as MainChat_MessagesQuery, hq as MainChat_ProjectQuery, hr as MainChat_Project_DesktopBindingQuery, hs as MainChat_ScheduledMessagesQuery, ht as ManagedChatModelsQuery, hu as MarkBriefSeenMutation, hv as MarkBriefWorldLessMutation, hw as MarkChatSeenMutation, hx as MarkOpenedMutation, hy as MarkProactiveItemActedMutation, hz as MarkProactiveItemSeenMutation, hA as MarkSharedItemSeenMutation, hB as McpAuthEvent, hC as McpAuthRequest, hD as McpAuthSnapshot, hE as McpClientInformation, hF as McpCodeVerifier, hG as McpServer, hH as McpServerConnection, hI as McpServerOrderByRelevanceFieldEnum, hJ as McpServerTestOutput, hK as McpTokens, hL as MemberAttributeKeysQuery, hM as MemberAttributesQuery, hN as MemberHandoverPlan, hO as MemberIntegration, hP as MemberIntegrationKind, hQ as MemberIntegrationsQuery, hR as MemoryFile, hS as MemoryFilesQuery, hT as MemorySettingQuery, hU as MemorySettings, hV as MergePeopleMutation, hW as ModelChoice, hX as ModelConnection, hY as ModelConnectionAddress, hZ as ModelConnectionAddressView, h_ as ModelConnectionView, h$ as ModelHealthView, i0 as ModelRoleView, i1 as ModelSettings, i2 as ModelSettingsQuery, i3 as ModelSettings_ChoicesQuery, i4 as ModelSettings_ConnectionsQuery, i5 as ModelSettings_PolicyQuery, i6 as ModelSettings_RolesQuery, i7 as ModelTokenUsage, i8 as MySharedLinksQuery, i9 as MySharedLinks_LinksQuery, ia as MySharedLinks_PeopleQuery, ib as Notification, ic as NotificationCategory, id as NotificationConnection, ie as NotificationOrderByRelevanceFieldEnum, ig as NotificationPreference, ih as NotificationPreferenceConnection, ii as NotificationPreferenceOrderByRelevanceFieldEnum, ij as NotificationPreferenceOutput, ik as NotificationPreferencesConnectionQuery, il as NotificationPriority, im as NotificationQuery, io as NotificationStatus, ip as NotificationsByReferenceQuery, iq as NotificationsQuery, ir as NotifyInvitationMutation, is as NpsResponse, it as NpsStatus, iu as NpsStatusQuery, iv as NullsOrder, iw as OpenLoopSide, ix as OpenLoopsQuery, iy as Origin, iz as OutsideLink, iA as OutsideShare, iB as OutsideSharesQuery, iC as OutsideShares_LinksQuery, iD as OutsideShares_PeopleQuery, iE as OutsideSharing, iF as PauseLocalModelInstallMutation, iG as PauseScheduledMessageMutation, iH as PeopleQuery, iI as Person, iJ as PersonConnection, iK as PersonFact, iL as PersonFactConnection, iM as PersonFactOrderByRelevanceFieldEnum, iN as PersonFactsQuery, iO as PersonImage, iP as PersonImageKind, iQ as PersonKind, iR as PersonKnownFact, iS as PersonMeeting, iT as PersonMoment, iU as PersonObject, iV as PersonObjectOrderByRelevanceFieldEnum, iW as PersonObjectStatus, iX as PersonOrderByRelevanceFieldEnum, iY as PersonPhoto, iZ as PersonPhotoSource, i_ as PersonQuery, i$ as PersonSubBuilder, j0 as Person_FactsQuery, j1 as Person_ImageQuery, j2 as Person_MomentsQuery, j3 as Person_NextMeetingQuery, j4 as Person_NextMeeting_PlaceQuery, j5 as Person_ObjectQuery, j6 as Person_ObjectsQuery, j7 as Person_PhotoQuery, j8 as Person_PlaceQuery, j9 as Place, ja as PlaceConnection, jb as PlaceLegalHoldMutation, jc as PlaceOrderByRelevanceFieldEnum, jd as PlacePointSource, je as PlacePrecision, jf as PlacesQuery, jg as PlanMemberHandoverMutation, jh as PrepareProactiveItemMutation, ji as Presentation, jj as PreviewChatImportMutation, jk as PreviewUserSkillImportMutation, jl as PrivacyStats, jm as PrivacyStatsQuery, jn as PrivateMcpServersConnectionQuery, jo as ProactiveAgentProposal, jp as ProactiveBudget, jq as ProactiveBudgetQuery, jr as ProactiveBudget_ByDetectorQuery, js as ProactiveBudget_GateByDetectorQuery, jt as ProactiveCardValue, ju as ProactiveDetectorSpend, jv as ProactiveGateDecisions, jw as ProactiveItem, jx as ProactiveItemConnection, jy as ProactiveItemOrderByRelevanceFieldEnum, jz as ProactiveItemQuery, jA as ProactiveItemSubBuilder, jB as ProactiveItem_ValueQuery, jC as ProactiveItemsConnectionQuery, jD as ProactiveLevel, jE as ProactiveNotUsefulReason, jF as ProactiveRun, jG as ProactiveSetting, jH as ProactiveSettingQuery, jI as ProactiveSettings, jJ as Project, jK as ProjectConnection, jL as ProjectDesktopBinding, jM as ProjectDesktopBindingOrderByRelevanceFieldEnum, jN as ProjectDesktopContextKind, jO as ProjectOrderByRelevanceFieldEnum, jP as ProjectQuery, jQ as ProjectSource, jR as ProjectSubBuilder, jS as Project_ChatsQuery, jT as Project_DesktopBindingQuery, jU as Project_DesktopBinding_DeviceQuery, jV as ProjectsQuery, jW as ProposeProactiveAgentMutation, jX as PulseAppSummaryModel, jY as PulseAppSummaryQuery, jZ as PulseEvent, j_ as PulseEventConnection, j$ as PulseEventKind, k0 as PulseEventOrderByRelevanceFieldEnum, k1 as PulseEventPriority, k2 as PulseEventQuery, k3 as PulseEventSubBuilder, k4 as PulseEvent_IntegrationQuery, k5 as PulseEvent_Integration_ProviderQuery, k6 as PulseEventsQuery, k7 as PulseTriggerSettingModel, k8 as PulseTriggerSettingsQuery, k9 as PushTarget, ka as QueryMode, kb as QueryQuery, kc as QueryWithInsightIdQuery, kd as RateProactiveItemNotUsefulMutation, ke as RealtimeSnapshotCache, kf as RealtimeTopicData, kg as ReanalyzeDocumentMutation, kh as ReasoningEffort, ki as ReconnectIntegrationAccountMutation, kj as RefineAgentInstructionMutation, kk as RefineSkillInstructionMutation, kl as RefreshDatabaseSchemaMutation, km as RefreshInsightMutation, kn as RegisterDesktopDeviceMutation, ko as RegisterLiveActivityTargetMutation, kp as RegisterPushTargetMutation, kq as ReinterpretSourceMutation, kr as ReinterpretSourcesOfuserMutation, ks as RejectTopicFactMutation, kt as Relation, ku as RelationType, kv as RelationshipDetectionProgress, kw as RelationshipDetectionStatus, kx as ReleaseLegalHoldMutation, ky as RemindImportMutation, kz as RemindWhenUsageResetsMutation, kA as RemoveBriefWorldLessMutation, kB as RemoveBrowserFavoriteMutation, kC as RemoveChatMessagesMutation, kD as RemoveLocalModelMutation, kE as RemoveMcpServerMutation, kF as RemovePersonPhotoMutation, kG as RenameCanvasMutation, kH as RenameContextAreaMutation, kI as RenameIntegrationAccountMutation, kJ as RenamePersonMutation, kK as RenewShareLinkMutation, kL as RepairUserSkillManifestMutation, kM as ReplaceDlpDictionaryMutation, kN as ReplaceUserSkillFileContentMutation, kO as ReportMessageMutation, kP as RequestDataActionMutation, kQ as RequestWorkspaceExportMutation, kR as ResetWorkspaceMutation, kS as ResolvePulseEventMutation, kT as ResolvedFileUrl, kU as RespondChatApprovalMutation, kV as RestoreCanvasVersionMutation, kW as RestoreCubeModelRevisionMutation, kX as RestoreDocumentVersionMutation, kY as RestoreItemMutation, kZ as RestorePlacement, k_ as RestoreTableRelationshipMutation, k$ as RestoredItem, l0 as ResumeDatabasePreparationMutation, l1 as ResumeScheduledMessageMutation, l2 as RetentionArea, l3 as RetentionPoliciesConnectionQuery, l4 as RetentionPolicy, l5 as RetentionPolicyConnection, l6 as RetentionPolicyOrderByRelevanceFieldEnum, l7 as ReviewContextTopicMutation, l8 as RevokeMemberIntegrationMutation, l9 as RevokeOutsideSharesMutation, la as RotateModelConnectionKeyMutation, lb as RotateWebhookEndpointSecretMutation, lc as SaveCanvasViewMutation, ld as SaveTableAccessRuleMutation, le as SaveWidgetMutation, lf as ScheduleMessageMutation, lg as ScheduleWorkspaceDeletionMutation, lh as ScheduledAgentRun, li as ScheduledAgentRunConnection, lj as ScheduledDelivery, lk as ScheduledMessage, ll as ScheduledMessageAuthor, lm as ScheduledMessageConnection, ln as ScheduledMessageOrderByRelevanceFieldEnum, lo as ScheduledMessageQuery, lp as ScheduledMessageRun, lq as ScheduledMessageStatus, lr as ScheduledMessageSubBuilder, ls as ScheduledMessage_AgentQuery, lt as ScheduledMessage_ChatQuery, lu as ScheduledMessage_Chat_DesktopDeviceQuery, lv as ScheduledMessage_Chat_InsightQuery, lw as ScheduledMessage_Chat_ProjectQuery, lx as ScheduledMessage_RecentRunsQuery, ly as ScheduledMessagesQuery, lz as ScheduledRunTrigger, lA as SendAgentCopyMutation, lB as SendAuditDestinationNowMutation, lC as SendChatMessageWhileRunningMutation, lD as SendFeedbackMutation, lE as SendScheduledMessageNowMutation, lF as SendTestPushMutation, lG as SetAuditDestinationPausedMutation, lH as SetBrowserLoginSyncExcludedMutation, lI as SetBrowserLoginSyncMutation, lJ as SetDatabasePrimaryKeyMutation, lK as SetDefaultIntegrationAccountMutation, lL as SetDlpBuiltinRuleMutation, lM as SetGeneralAccessMutation, lN as SetImageEditContextMutation, lO as SetMemberAttributeKeysMutation, lP as SetMemberAttributesMutation, lQ as SetMemoryEnabledMutation, lR as SetShareLinkExpiryMutation, lS as SetTableColumnTypeMutation, lT as SetUserSkillEnabledMutation, lU as SetWorkspaceModelPolicyMutation, lV as SetWorkspaceModelRoleMutation, lW as SetupInterest, lX as ShareAccess, lY as ShareAccessQuery, lZ as ShareAccess_SharedByQuery, l_ as ShareAccess_SharedBy_InheritedFromQuery, l$ as ShareAction, m0 as ShareCandidates, m1 as ShareCandidatesQuery, m2 as ShareCandidates_MembersQuery, m3 as ShareCheck, m4 as ShareCheckQuery, m5 as ShareCheckStatus, m6 as ShareCheck_NarrowingsQuery, m7 as ShareEvent, m8 as ShareInheritance, m9 as ShareLink, ma as ShareLinkExpiry, mb as ShareLinkInfo, mc as ShareMember, md as ShareMutation, me as ShareNarrowedTable, mf as ShareNarrowing, mg as ShareRecipientKind, mh as ShareRole, mi as ShareState, mj as ShareStateQuery, mk as ShareState_LinkQuery, ml as ShareState_MembersQuery, mm as ShareState_OwnerQuery, mn as ShareState_Owner_InheritedFromQuery, mo as ShareableKind, mp as SharedByMeQuery, mq as SharedContainerKind, mr as SharedContent, ms as SharedContentsQuery, mt as SharedItem, mu as SharedItemConnection, mv as SharedItemView, mw as SharedMark, mx as SharedPreview, my as SharedWithMeQuery, mz as SharingEnabledQuery, mA as SkillCatalogItem, mB as SkillCatalogQuery, mC as SkillCatalogSource, mD as SkillUsage, mE as SnoozeProactiveItemMutation, mF as SortOrder, mG as StartChatDayMutation, mH as StopChatMutation, mI as StopDatabaseRelationshipDetectionMutation, mJ as SubmitNpsMutation, mK as SuggestCommitMessageMutation, mL as SurfaceSnapshotQuery, mM as SyncEvent, mN as SyncEventCursor, mO as SyncProjectDesktopBindingMutation, mP as Table, mQ as TableAccess, mR as TableAccessLogQuery, mS as TableAccessLog_EntriesQuery, mT as TableAccessPrincipal, mU as TableAccessQuery, mV as TableAccessRule, mW as TableAccessRuleSaved, mX as TableAccessSubBuilder, mY as TableAccess_RulesQuery, mZ as TableConnection, m_ as TableOrderByRelevanceFieldEnum, m$ as TableQuery, n0 as TableStatus, n1 as TableSubBuilder, n2 as TableSuggestedQuestionsQuery, n3 as Table_DatabaseQuery, n4 as Table_Database_ConnectionInfoQuery, n5 as Table_Database_ConnectionStatusQuery, n6 as Table_Database_EngineQuery, n7 as Table_Database_SourceTablesQuery, n8 as Table_DocumentQuery, n9 as Table_Document_ContentsQuery, na as Table_Document_FileQuery, nb as Table_Document_FormatQuery, nc as Table_Document_VersionsQuery, nd as Table_FromRelationsQuery, ne as Table_ModelQuery, nf as Table_ToRelationsQuery, ng as TablesQuery, nh as TaskGoalDecision, ni as TaskJob, nj as TaskJobConnection, nk as TaskJobOrderByRelevanceFieldEnum, nl as TaskJobStatus, nm as TaskJobsQuery, nn as TestDlpProviderMutation, no as TestDlpRulesQuery, np as TestLocalModelMutation, nq as TestMcpServerConnectionMutation, nr as TestMcpServerMutation, ns as TestModelConnectionMutation, nt as TestScheduledMessageMutation, nu as TokenUsage, nv as TokenUsageConnection, nw as TokenUsageLimitState, nx as TokenUsageOrderByRelevanceFieldEnum, ny as TokenUsageStatusEvent, nz as TokenUsageStatusSnapshot, nA as TokenUsageWindowSnapshot, nB as TokenUsagesQuery, nC as ToolApprovalMode, nD as ToolApprovalSetting, nE as TopicActivitiesQuery, nF as TopicActivity, nG as TopicActivityConnection, nH as TopicActivityOrderByRelevanceFieldEnum, nI as TopicFact, nJ as TopicFactSource, nK as TopicLink, nL as Trip, nM as TripConnection, nN as TripOrderByRelevanceFieldEnum, nO as TripsQuery, nP as UndoCanvasTurnMutation, nQ as UnlinkPersonFactMutation, nR as UnregisterLiveActivityTargetMutation, nS as UnregisterPushTargetMutation, nT as UnsendWaitingChatMessageMutation, nU as UnshareMutation, nV as UpdateAgentMutation, nW as UpdateBrowserSettingsMutation, nX as UpdateCanvasMutation, nY as UpdateChatMutation, nZ as UpdateDatabaseMutation, n_ as UpdateDlpProviderMutation, n$ as UpdateDlpRuleMutation, o0 as UpdateDocumentMutation, o1 as UpdateFolderMutation, o2 as UpdateInsightMutation, o3 as UpdateInsightThumbnailMutation, o4 as UpdateInterpMutation, o5 as UpdateMemoryFileMutation, o6 as UpdateNotificationPreferenceMutation, o7 as UpdateNotificationPreferencesMutation, o8 as UpdateProactiveSettingMutation, o9 as UpdateProjectMutation, oa as UpdatePulseTriggerMutation, ob as UpdateRetentionPolicyMutation, oc as UpdateScheduledMessageMutation, od as UpdateShareRoleMutation, oe as UpdateTableMutation, of as UpdateUsagePolicyMutation, og as UpdateUserSetupMutation, oh as UpdateUserSkillFileMutation, oi as UpdateUserSkillFolderMutation, oj as UpdateWebhookEndpointMutation, ok as UpdateWorkspaceAiModelSettingMutation, ol as UpdateWorkspacePolicyMutation, om as UpdateWorkspaceUsageSettingsMutation, on as UpgradeCubeModelSemanticsMutation, oo as UploadFormatKind, op as UploadOptions, oq as UploadProgressEvent, or as UploadResult, os as UpsertAiProviderSettingMutation, ot as UpsertModelConnectionMutation, ou as UsageHistoryGranularity, ov as UsageLimitHit, ow as UsageLimitHitConnection, ox as UsageLimitHitOrderByRelevanceFieldEnum, oy as UsageLimitHitsQuery, oz as UsagePlan, oA as UsagePlansQuery, oB as UsagePoliciesConnectionQuery, oC as UsagePolicy, oD as UsagePolicyAssignee, oE as UsagePolicyAssignment, oF as UsagePolicyAssignmentConnection, oG as UsagePolicyAssignmentOrderByRelevanceFieldEnum, oH as UsagePolicyAssignmentsConnectionQuery, oI as UsagePolicyConnection, oJ as UsagePolicyEntry, oK as UsagePolicyOrderByRelevanceFieldEnum, oL as UsagePolicySubject, oM as UsagePool, oN as UsagePoolExhausted, oO as UsageReport, oP as UsageReportExport, oQ as UsageReportLine, oR as UsageReportQuery, oS as UsageReport_ModelsQuery, oT as UsageReport_PeopleQuery, oU as UsageReport_TeamsQuery, oV as UsageSettingsQuery, oW as UsageWindowsStatusType, oX as UsePersonPhotoMutation, oY as UserAiProviderSetting, oZ as UserFeedback, o_ as UserMemorySetting, o$ as UserNotification, p0 as UserNotificationEvent, p1 as UserNotificationSnapshot, p2 as UserSetup, p3 as UserSetupQuery, p4 as UserSetupState, p5 as UserSkillFile, p6 as UserSkillFileModel, p7 as UserSkillFileQuery, p8 as UserSkillFilesQuery, p9 as UserSkillFolder, pa as UserSkillFolderModel, pb as UserSkillFolderQuery, pc as UserSkillFolderSubBuilder, pd as UserSkillFolder_ManifestErrorQuery, pe as UserSkillFoldersQuery, pf as UserSkillImportItemModel, pg as UserSkillImportPreviewModel, ph as UserSkillIssueModel, pi as WatchContextTopicMutation, pj as WebhookEndpoint, pk as WebhookEndpointCreated, pl as WebhookEndpointsQuery, pm as WeeklyObjectQuery, pn as WindowDetailType, po as WorkspaceAiModelSetting, pp as WorkspaceAiModelSettingQuery, pq as WorkspaceDeleteSchedule, pr as WorkspaceDeletionScheduleQuery, ps as WorkspaceMembership, pt as WorkspaceMembershipsQuery, pu as WorkspaceModelPolicy, pv as WorkspaceModelRole, pw as WorkspacePolicy, px as WorkspacePolicyQuery, py as WorkspaceSeats, pz as WorkspaceSeatsQuery, pA as WorkspaceUsage, pB as WorkspaceUsageSettings, pC as WorkspaceUsageSettingsQuery, pD as WorkspaceUsageSettings_PoolQuery, pE as createDvinaClient, pF as createDvinaEvents, pG as uploadFile } from './_generated_sdk-CnHdM8Xm.js';
1
+ import { D as DvinaQueryRef } from './types-qFfDxUXY.js';
2
+ export { C as ConnectionVariables, b as ConnectionWithNodes, c as DvinaAsyncRef, a as DvinaRequest, F as FetchOptions, M as MutationOptions, P as PageInfoData, W as WithIncludes } from './types-qFfDxUXY.js';
3
+ import { I as IncludeDirective } from './_generated_sdk-D8w-01tO.js';
4
+ export { A as ActiveChatsEvent, c as ActiveChatsSnapshot, d as ActiveWindowType, e as AddBrowserFavoriteMutation, f as AddIntegrationAccountMutation, g as AddMcpServerMutation, h as Agent, i as AgentActionRule, j as AgentConnection, k as AgentMemory, l as AgentOrderByRelevanceFieldEnum, m as AgentQuery, n as AgentSubBuilder, o as AgentWorkflow, p as AgentWorkflowOutput, q as AgentWorkflowQuery, r as AgentWorkflowResource, s as AgentWorkflowStep, u as AgentWorkflow_OutputQuery, v as AgentWorkflow_Output_ResourceQuery, w as AgentWorkflow_StepsQuery, x as Agent_ChatsQuery, y as Agent_ScheduledMessagesQuery, z as AgentsQuery, B as AiProviderSettingQuery, E as AiResourceType, F as AnswerChatQuestionMutation, G as AnswerChatToolCallMutation, H as AppSuggestions, J as AppSuggestionsQuery, K as ApplyArtifactDataMutation, L as AreaRetention, M as ArtifactDataChangedDoc, N as ArtifactDataOpKind, O as ArtifactDataQuery, P as ArtifactDataResult, Q as ArtifactDataSnapshot, R as AskEntry, S as AskKind, T as AssignUsagePolicyMutation, U as AttentionEntry, V as AttentionQuery, W as AuditActorKind, X as AuditDeliveryStatus, Y as AuditDestination, Z as AuditDestinationCreated, _ as AuditDestinationKind, $ as AuditDestinationsQuery, a0 as AuditExportFormat, a1 as AuditLogEntry, a2 as AuditLogExport, a3 as AuditLogPage, a4 as AuditLogQuery, a5 as AuditLog_EntriesQuery, a6 as AuditPayloadFormat, a7 as BillingConnection, a8 as BillingConnectionQuery, a9 as BillingConnectionState, aa as BillingSubscriptionEvent, ab as BillingSubscriptionSnapshot, ac as BriefWorldLessQuery, ad as BrowserCookieMode, ae as BrowserFavorite, af as BrowserFavoriteConnection, ag as BrowserFavoriteOrderByRelevanceFieldEnum, ah as BrowserFavoritesQuery, ai as BrowserLoginSync, aj as BrowserLoginSyncQuery, ak as BrowserProfile, al as BrowserSettings, am as BrowserSettingsQuery, an as BrowserSettings_SitesQuery, ao as BrowserSite, ap as BrowserTab, aq as BrowserTabConnection, ar as BrowserTabOrderByRelevanceFieldEnum, as as BrowserTabState, at as BrowserTabsQuery, au as BrowserVisit, av as BrowserVisitConnection, aw as BrowserVisitOrderByRelevanceFieldEnum, ax as BrowserVisitsQuery, ay as CHAT_PHASES, az as CHAT_STATE_SNAPSHOT_LIMIT, aA as CHAT_WAITS, aB as CancelDataActionMutation, aC as CancelImportReminderMutation, aD as CancelOauthFlowMutation, aE as CancelScheduledMessageMutation, aF as CancelWorkspaceDeletionMutation, aG as Canvas, aH as CanvasConnection, aI as CanvasEditOrigin, aJ as CanvasKind, aK as CanvasOrderByRelevanceFieldEnum, aL as CanvasQuery, aM as CanvasSubBuilder, aN as CanvasVersion, aO as CanvasVersionsQuery, aP as CanvasView, aQ as CanvasViewQuery, aR as Canvas_ThumbnailFileQuery, aS as Canvas_VersionsQuery, aT as CanvasesQuery, aU as CapabilityType, aV as CertificateInfo, aW as Chat, aX as ChatConnection, aY as ChatDay, aZ as ChatDaysQuery, a_ as ChatIdleOutcome, a$ as ChatImportExecuteOutput, b0 as ChatImportPreviewOutput, b1 as ChatMachine, C as ChatMessage, a as ChatMessageConnection, b2 as ChatMessageOrderByRelevanceFieldEnum, b3 as ChatMessageQuery, b4 as ChatMessageRoleEnum, b5 as ChatMessageSubBuilder, b6 as ChatMessageToolOutputQuery, b7 as ChatMessage_ChatQuery, b8 as ChatMessage_Chat_DesktopDeviceQuery, b9 as ChatMessage_Chat_InsightQuery, ba as ChatMessage_Chat_ProjectQuery, bb as ChatMessage_FeedbackQuery, bc as ChatMessage_ReferencedChatQuery, bd as ChatMessage_ReferencedChat_DesktopDeviceQuery, be as ChatMessage_ReferencedChat_InsightQuery, bf as ChatMessage_ReferencedChat_ProjectQuery, bg as ChatMessage_RepliesQuery, bh as ChatMessage_ThreadQuery, bi as ChatMessagesAroundQuery, bj as ChatMessagesQuery, bk as ChatNextPromptMutation, bl as ChatOrderByRelevanceFieldEnum, bm as ChatOutcome, bn as ChatPhase, bo as ChatPlan, bp as ChatQuery, bq as ChatReadState, br as ChatRun, bs as ChatSourceImportFidelityEnum, bt as ChatSourceImportModeEnum, bu as ChatSourceProviderEnum, bv as ChatStateSnapshot, bw as ChatStateView, bx as ChatStates, by as ChatSubBuilder, b as ChatTaskState, bz as ChatThread, bA as ChatThreadOrderByRelevanceFieldEnum, bB as ChatWaitingOn, bC as ChatWorkspaceMode, bD as Chat_AgentsQuery, bE as Chat_DesktopDeviceQuery, bF as Chat_DesktopDevice_DesktopBindingsQuery, bG as Chat_InsightQuery, bH as Chat_Insight_ThumbnailFileQuery, bI as Chat_MessagesQuery, bJ as Chat_ProjectQuery, bK as Chat_Project_DesktopBindingQuery, bL as Chat_ScheduledMessagesQuery, bM as ChatsQuery, bN as CheckDatabaseConnectionMutation, bO as ClearImageEditContextMutation, bP as ClearMemoryMutation, bQ as ClientChatState, bR as CloseBrowserTabMutation, bS as CloseShareLinkMutation, bT as CommitMessageSuggestion, bU as ComputerActivity, bV as ComputerActivityQuery, bW as ComputerActivitySubBuilder, bX as ComputerActivity_RunsQuery, bY as ComputerRunFile, bZ as ComputerRunMessage, b_ as ConfirmDatabaseRelationshipsMutation, b$ as ConfirmTableRelationshipMutation, c0 as ConnectIntegrationMutation, c1 as ConnectLocalModelMutation, c2 as ConsumePulseEventsMutation, c3 as ContextAnalysis, c4 as ContextAnalysisQuery, c5 as ContextAnalysisStatus, c6 as ContextArea, c7 as ContextAreaConnection, c8 as ContextAreaOrderByRelevanceFieldEnum, c9 as ContextTopic, ca as ContextTopicConnection, cb as ContextTopicKind, cc as ContextTopicOrderByRelevanceFieldEnum, cd as ContextTopicQuery, ce as ContextTopicSubBuilder, cf as ContextTopic_FactsQuery, cg as ContextTopic_OpenLoopsQuery, ch as ContextTopicsQuery, ci as ContinueInterpretationMutation, cj as CopiedSharedItem, ck as CopySharedItemMutation, cl as CorrectContextTopicMutation, cm as CreateAgentMutation, cn as CreateAuditDestinationMutation, co as CreateCanvasMutation, cp as CreateChatMutation, cq as CreateDatabaseMutation, cr as CreateDlpDictionaryMutation, cs as CreateDlpProviderMutation, ct as CreateDlpRuleMutation, cu as CreateDocumentMutation, cv as CreateFolderMutation, cw as CreateInsightMutation, cx as CreateIntegrationMutation, cy as CreateIntegrationOutput, cz as CreateProjectMutation, cA as CreateRetentionPolicyMutation, cB as CreateTableMutation, cC as CreateUsagePolicyMutation, cD as CreateUserSkillFileMutation, cE as CreateUserSkillFolderMutation, cF as CreateWebhookEndpointMutation, cG as CreateWorkspaceAiModelSettingMutation, cH as CubeModel, cI as CubeModelRevisionsQuery, cJ as DataAction, cK as DataActionConnection, cL as DataActionKind, cM as DataActionOrderByRelevanceFieldEnum, cN as DataActionPreview, cO as DataActionPreviewQuery, cP as DataActionQuery, cQ as DataActionStatus, cR as DataActionsQuery, cS as DataPurge, cT as DataPurgeKind, cU as DataPurgeStatus, cV as Database, cW as DatabaseCatalog, cX as DatabaseCatalogConnection, cY as DatabaseCatalogOrderByRelevanceFieldEnum, cZ as DatabaseCatalogQuery, c_ as DatabaseCatalogSubBuilder, c$ as DatabaseCatalog_EngineQuery, d0 as DatabaseCatalogsQuery, d1 as DatabaseConnection, d2 as DatabaseConnectionInfo, d3 as DatabaseConnectionStatus, d4 as DatabaseEngine, d5 as DatabaseOrderByRelevanceFieldEnum, d6 as DatabasePreparationQuery, d7 as DatabasePreparationTable, d8 as DatabaseQuery, d9 as DatabaseReachability, da as DatabaseRelationship, db as DatabaseRelationshipDetectionProgressQuery, dc as DatabaseRelationshipDetectionQuery, dd as DatabaseRelationshipEvidence, de as DatabaseRelationshipSource, df as DatabaseRelationshipsQuery, dg as DatabaseSchemaQuery, dh as DatabaseSourceColumn, di as DatabaseSourceTable, dj as DatabaseSubBuilder, dk as DatabaseSuggestedQuestionsQuery, dl as Database_ConnectionInfoQuery, dm as Database_ConnectionStatusQuery, dn as Database_EngineQuery, dp as Database_Engine_CatalogQuery, dq as Database_SourceTablesQuery, dr as Database_TablesQuery, ds as DatabasesQuery, dt as DecideTaskGoalMutation, du as DeleteAgentMutation, dv as DeleteAiProviderSettingMutation, dw as DeleteAuditDestinationMutation, dx as DeleteCanvasIfEmptyMutation, dy as DeleteCanvasMutation, dz as DeleteChatMutation, dA as DeleteDatabaseMutation, dB as DeleteDlpDictionaryMutation, dC as DeleteDlpProviderMutation, dD as DeleteDlpRuleMutation, dE as DeleteDocumentMutation, dF as DeleteEarlierConversationMutation, dG as DeleteFolderMutation, dH as DeleteInsightMutation, dI as DeleteInsightsMutation, dJ as DeleteIntegrationMutation, dK as DeleteMemoryFileMutation, dL as DeleteModelConnectionMutation, dM as DeleteProjectMutation, dN as DeleteSavedAiProviderModelMutation, dO as DeleteTableAccessRuleMutation, dP as DeleteTableMutation, dQ as DeleteUsagePolicyMutation, dR as DeleteUserSkillFileMutation, dS as DeleteUserSkillFolderMutation, dT as DeleteWebhookEndpointMutation, dU as DeletedItem, dV as DeletedItemConnection, dW as DeletedItemKind, dX as DeletedItemOrderByRelevanceFieldEnum, dY as DeletedItemsQuery, dZ as DesktopDevice, d_ as DesktopDeviceConnection, d$ as DesktopDeviceOrderByRelevanceFieldEnum, e0 as DesktopDeviceQuery, e1 as DesktopDeviceSubBuilder, e2 as DesktopDevice_ChatsQuery, e3 as DesktopDevice_DesktopBindingsQuery, e4 as DesktopDevicesQuery, e5 as DetectDatabaseRelationshipsMutation, e6 as DetectImageEditItemsMutation, e7 as DevAccessTokenOutput, e8 as DeviceIdentityKey, e9 as DeviceIdentityKind, ea as DevicePresenceEvent, eb as DevicePresenceSnapshot, ec as Digest, ed as DigestConnection, ee as DigestOrderByRelevanceFieldEnum, ef as DigestPeriod, eg as DigestQuery, eh as DigestStatus, ei as DigestsQuery, ej as DisconnectIntegrationAccountMutation, ek as DisconnectIntegrationMutation, el as DisconnectLocalModelMutation, em as DismissNpsMutation, en as DismissProactiveItemMutation, eo as DismissPulseEventMutation, ep as DismissTableRelationshipMutation, eq as DismissedDatabaseRelationshipsQuery, er as DlpAction, es as DlpDictionariesQuery, et as DlpDictionary, eu as DlpDictionaryView, ev as DlpFailMode, ew as DlpHit, ex as DlpProvider, ey as DlpProviderKind, ez as DlpProviderSetting, eA as DlpProviderTestResult, eB as DlpProviderView, eC as DlpProvidersQuery, eD as DlpReportQuery, eE as DlpRule, eF as DlpRuleKind, eG as DlpRuleView, eH as DlpRulesQuery, eI as DlpScope, eJ as DlpTriggerCount, eK as Document, eL as DocumentAttachmentsQuery, eM as DocumentCatalog, eN as DocumentCatalogConnection, eO as DocumentCatalogOrderByRelevanceFieldEnum, eP as DocumentCatalogQuery, eQ as DocumentCatalogSubBuilder, eR as DocumentCatalog_FormatQuery, eS as DocumentCatalogsQuery, eT as DocumentConnection, eU as DocumentContent, eV as DocumentFormat, eW as DocumentOrderByRelevanceFieldEnum, eX as DocumentQuery, eY as DocumentReadStatus, eZ as DocumentSubBuilder, e_ as DocumentVersion, e$ as Document_ContentsQuery, f0 as Document_FileQuery, f1 as Document_FormatQuery, f2 as Document_Format_CatalogQuery, f3 as Document_TablesQuery, f4 as Document_VersionsQuery, f5 as DocumentsQuery, f6 as DvinaEventRef, f7 as DvinaEventTopic, f8 as DvinaEvents, f9 as DvinaModel, fa as DvinaRealtimeEvent, D as DvinaSdk, fb as DvinaSdkBaseOptions, fc as DvinaSdkCallbackOptions, fd as DvinaSdkLifecycle, fe as DvinaSdkLifecycleHint, ff as DvinaSdkOptions, fg as DvinaSdkTokenOptions, fh as EarlierConversation, fi as EarlierConversationConnection, fj as EarlierConversationsQuery, fk as EnterpriseFeaturesAllPlansQuery, fl as EntitlementTier, fm as EntityOpen, fn as ExecuteChatImportMutation, fo as Expectation, fp as ExportAuditLogMutation, fq as ExportQuery, fr as ExportUsageReportQuery, fs as ExportWithInsightIdQuery, ft as Fact, fu as FactConnection, fv as FactKind, fw as FactOrderByRelevanceFieldEnum, fx as FactOwner, fy as FactStatus, fz as FactTimePrecision, fA as FactsQuery, fB as FeaturePersonLessMutation, fC as FeedActionType, fD as FeedAgentData, fE as FeedCanvasData, fF as FeedConnection, fG as FeedDatabaseData, fH as FeedDocumentData, fI as FeedInsightData, fJ as FeedIntegrationData, fK as FeedItem, fL as FeedItemGenerated, fM as FeedItemKind, fN as FeedItemOrderByRelevanceFieldEnum, fO as FeedItemQuery, fP as FeedItemSubBuilder, fQ as FeedItem_ActionQuery, fR as FeedItem_DataQuery, fS as FeedItemsQuery, fT as FeedKeptData, fU as FeedMediaData, fV as FeedProjectData, fW as FeedPulseData, fX as FeedSendMessageAction, fY as FeedSkillData, fZ as Feedback, f_ as FeedbackCategory, f$ as FeedbackOrderByRelevanceFieldEnum, g0 as FeedbackReason, g1 as FeedbackType, g2 as File, g3 as FileArchiveUrl, g4 as FileArchiveUrlQuery, g5 as FileMetaQuery, g6 as FileModel, g7 as FileQuery, g8 as FileUrlVariant, g9 as FileUrlsQuery, ga as FindFitTierQuery, gb as FocusBrowserTabMutation, gc as Folder, gd as FolderConnection, ge as FolderOrderByRelevanceFieldEnum, gf as FolderQuery, gg as FoldersQuery, gh as ForgetBrowserLoginsMutation, gi as ForgetContextTopicMutation, gj as ForgetKeptItemsMutation, gk as ForgetPersonMutation, gl as ForgetPersonResult, gm as GeneralAccess, gn as GenerateUploadUriMutation, go as GetCapabilityQuery, gp as GetDevAccessTokenQuery, gq as GetLimitQuery, gr as GetRemainingQuery, gs as GetTokenUsageByModelQuery, gt as GetTokenUsageHistoryQuery, gu as GetUsageQuery, gv as GrantAgentApprovalMutation, gw as HasLegalHoldsQuery, gx as HideSharedItemMutation, gy as ImageEditContextQuery, gz as ImageEditItem, gA as ImageEditItemShape, gB as ImportReminderQuery, gC as ImportUserSkillMutation, gD as Insight, gE as InsightConnection, gF as InsightOrderByRelevanceFieldEnum, gG as InsightQuery, gH as InsightSubBuilder, gI as Insight_ChatQuery, gJ as Insight_Chat_DesktopDeviceQuery, gK as Insight_Chat_ProjectQuery, gL as Insight_ThumbnailFileQuery, gM as InsightsQuery, gN as InstallLocalModelMutation, gO as Integration, gP as IntegrationCatalog, gQ as IntegrationCatalogConnection, gR as IntegrationCatalogOrderByRelevanceFieldEnum, gS as IntegrationCatalogQuery, gT as IntegrationCatalogSubBuilder, gU as IntegrationCatalogToolsQuery, gV as IntegrationCatalog_ProviderQuery, gW as IntegrationCatalogsQuery, gX as IntegrationConnection, gY as IntegrationOrderByRelevanceFieldEnum, gZ as IntegrationProvider, g_ as IntegrationQuery, g$ as IntegrationStatus, h0 as IntegrationSubBuilder, h1 as Integration_ProviderQuery, h2 as Integration_Provider_CatalogQuery, h3 as IntegrationsQuery, h4 as Interpretation, h5 as InterpretationConnection, h6 as InterpretationOrderByRelevanceFieldEnum, h7 as InterpretationType, h8 as InterpretationsQuery, h9 as KeepMutation, ha as KeptItem, hb as KeptItemsListQuery, hc as KeptItemsQuery, hd as KeptKind, he as KeptSource, hf as LegalHold, hg as LegalHoldAreasQuery, hh as LegalHoldConnection, hi as LegalHoldOrderByRelevanceFieldEnum, hj as LegalHoldsConnectionQuery, hk as LimitType, hl as LiveActivityTarget, hm as LocalModelCatalogView, hn as LocalModelConnectionView, ho as LocalModelDeviceView, hp as LocalModelEngineView, hq as LocalModelInstallView, hr as LocalModelServerView, hs as LocalModelSettings, ht as LocalModelSettingsQuery, hu as LocalModelSettings_ConnectionsQuery, hv as LocalModelSettings_DevicesQuery, hw as LocalModelView, hx as MainChatQuery, hy as MainChat_AgentsQuery, hz as MainChat_DesktopDeviceQuery, hA as MainChat_DesktopDevice_DesktopBindingsQuery, hB as MainChat_InsightQuery, hC as MainChat_Insight_ThumbnailFileQuery, hD as MainChat_MessagesQuery, hE as MainChat_ProjectQuery, hF as MainChat_Project_DesktopBindingQuery, hG as MainChat_ScheduledMessagesQuery, hH as ManagedChatModelsQuery, hI as MarkBriefSeenMutation, hJ as MarkBriefWorldLessMutation, hK as MarkChatSeenMutation, hL as MarkOpenedMutation, hM as MarkProactiveItemActedMutation, hN as MarkProactiveItemSeenMutation, hO as MarkSharedItemSeenMutation, hP as McpAuthEvent, hQ as McpAuthRequest, hR as McpAuthSnapshot, hS as McpClientInformation, hT as McpCodeVerifier, hU as McpServer, hV as McpServerConnection, hW as McpServerOrderByRelevanceFieldEnum, hX as McpServerTestOutput, hY as McpTokens, hZ as MemberAttributeKeysQuery, h_ as MemberAttributesQuery, h$ as MemberHandoverPlan, i0 as MemberIntegration, i1 as MemberIntegrationKind, i2 as MemberIntegrationsQuery, i3 as MemoryFile, i4 as MemoryFilesQuery, i5 as MemorySettingQuery, i6 as MemorySettings, i7 as MergePeopleMutation, i8 as ModelChoice, i9 as ModelConnection, ia as ModelConnectionAddress, ib as ModelConnectionAddressView, ic as ModelConnectionView, id as ModelHealthView, ie as ModelRoleView, ig as ModelSettings, ih as ModelSettingsQuery, ii as ModelSettings_ChoicesQuery, ij as ModelSettings_ConnectionsQuery, ik as ModelSettings_PolicyQuery, il as ModelSettings_RolesQuery, im as ModelTokenUsage, io as MySharedLinksQuery, ip as MySharedLinks_LinksQuery, iq as MySharedLinks_PeopleQuery, ir as Notification, is as NotificationCategory, it as NotificationConnection, iu as NotificationOrderByRelevanceFieldEnum, iv as NotificationPreference, iw as NotificationPreferenceConnection, ix as NotificationPreferenceOrderByRelevanceFieldEnum, iy as NotificationPreferenceOutput, iz as NotificationPreferencesConnectionQuery, iA as NotificationPriority, iB as NotificationQuery, iC as NotificationStatus, iD as NotificationsByReferenceQuery, iE as NotificationsQuery, iF as NotifyInvitationMutation, iG as NpsResponse, iH as NpsStatus, iI as NpsStatusQuery, iJ as NullsOrder, iK as OpenLoopSide, iL as OpenLoopsQuery, iM as Origin, iN as OutsideLink, iO as OutsideShare, iP as OutsideSharesQuery, iQ as OutsideShares_LinksQuery, iR as OutsideShares_PeopleQuery, iS as OutsideSharing, iT as PauseLocalModelInstallMutation, iU as PauseScheduledMessageMutation, iV as PeopleQuery, iW as Person, iX as PersonConnection, iY as PersonFact, iZ as PersonFactConnection, i_ as PersonFactOrderByRelevanceFieldEnum, i$ as PersonFactsQuery, j0 as PersonImage, j1 as PersonImageKind, j2 as PersonKind, j3 as PersonKnownFact, j4 as PersonMeeting, j5 as PersonMoment, j6 as PersonObject, j7 as PersonObjectOrderByRelevanceFieldEnum, j8 as PersonObjectStatus, j9 as PersonOrderByRelevanceFieldEnum, ja as PersonPhoto, jb as PersonPhotoSource, jc as PersonQuery, jd as PersonSubBuilder, je as Person_FactsQuery, jf as Person_ImageQuery, jg as Person_MomentsQuery, jh as Person_NextMeetingQuery, ji as Person_NextMeeting_PlaceQuery, jj as Person_PhotoQuery, jk as Person_PlaceQuery, jl as Place, jm as PlaceConnection, jn as PlaceLegalHoldMutation, jo as PlaceOrderByRelevanceFieldEnum, jp as PlacePointSource, jq as PlacePrecision, jr as PlacesQuery, js as PlanMemberHandoverMutation, jt as PlanStepStatus, ju as PrepareProactiveItemMutation, jv as Presentation, jw as PreviewChatImportMutation, jx as PreviewUserSkillImportMutation, jy as PrivacyStats, jz as PrivacyStatsQuery, jA as PrivateMcpServersConnectionQuery, jB as ProactiveAgentProposal, jC as ProactiveBudget, jD as ProactiveBudgetQuery, jE as ProactiveBudget_ByDetectorQuery, jF as ProactiveBudget_GateByDetectorQuery, jG as ProactiveCardValue, jH as ProactiveDetectorSpend, jI as ProactiveGateDecisions, jJ as ProactiveItem, jK as ProactiveItemConnection, jL as ProactiveItemOrderByRelevanceFieldEnum, jM as ProactiveItemQuery, jN as ProactiveItemSubBuilder, jO as ProactiveItem_ValueQuery, jP as ProactiveItemsConnectionQuery, jQ as ProactiveLevel, jR as ProactiveNotUsefulReason, jS as ProactiveRun, jT as ProactiveSetting, jU as ProactiveSettingQuery, jV as ProactiveSettings, jW as Project, jX as ProjectConnection, jY as ProjectDesktopBinding, jZ as ProjectDesktopBindingOrderByRelevanceFieldEnum, j_ as ProjectDesktopContextKind, j$ as ProjectOrderByRelevanceFieldEnum, k0 as ProjectQuery, k1 as ProjectSource, k2 as ProjectSubBuilder, k3 as Project_ChatsQuery, k4 as Project_DesktopBindingQuery, k5 as Project_DesktopBinding_DeviceQuery, k6 as ProjectsQuery, k7 as ProposeProactiveAgentMutation, k8 as PulseAppSummaryModel, k9 as PulseAppSummaryQuery, ka as PulseEvent, kb as PulseEventConnection, kc as PulseEventKind, kd as PulseEventOrderByRelevanceFieldEnum, ke as PulseEventPriority, kf as PulseEventQuery, kg as PulseEventSubBuilder, kh as PulseEvent_IntegrationQuery, ki as PulseEvent_Integration_ProviderQuery, kj as PulseEventsQuery, kk as PulseTriggerSettingModel, kl as PulseTriggerSettingsQuery, km as PushTarget, kn as QueryMode, ko as QueryQuery, kp as QueryWithInsightIdQuery, kq as RECHECKED_WAITS, kr as RateProactiveItemNotUsefulMutation, ks as RealtimeSnapshotCache, kt as RealtimeTopicData, ku as ReanalyzeDocumentMutation, kv as ReasoningEffort, kw as ReconnectIntegrationAccountMutation, kx as RefineAgentInstructionMutation, ky as RefineSkillInstructionMutation, kz as RefreshDatabaseSchemaMutation, kA as RefreshInsightMutation, kB as RegisterDesktopDeviceMutation, kC as RegisterLiveActivityTargetMutation, kD as RegisterPushTargetMutation, kE as ReinterpretSourceMutation, kF as ReinterpretSourcesOfuserMutation, kG as RejectTopicFactMutation, kH as Relation, kI as RelationType, kJ as RelationshipDetectionProgress, kK as RelationshipDetectionStatus, kL as ReleaseLegalHoldMutation, kM as RemindImportMutation, kN as RemindWhenUsageResetsMutation, kO as RemoveBriefWorldLessMutation, kP as RemoveBrowserFavoriteMutation, kQ as RemoveChatMessagesMutation, kR as RemoveLocalModelMutation, kS as RemoveMcpServerMutation, kT as RemovePersonPhotoMutation, kU as RenameCanvasMutation, kV as RenameIntegrationAccountMutation, kW as RenamePersonMutation, kX as RenewShareLinkMutation, kY as RepairUserSkillManifestMutation, kZ as ReplaceDlpDictionaryMutation, k_ as ReplaceUserSkillFileContentMutation, k$ as ReportMessageMutation, l0 as RequestDataActionMutation, l1 as RequestWorkspaceExportMutation, l2 as ResetWorkspaceMutation, l3 as ResolvePulseEventMutation, l4 as ResolvedFileUrl, l5 as RespondChatApprovalMutation, l6 as RestoreCanvasVersionMutation, l7 as RestoreCubeModelRevisionMutation, l8 as RestoreDocumentVersionMutation, l9 as RestoreItemMutation, la as RestorePlacement, lb as RestoreTableRelationshipMutation, lc as RestoredItem, ld as ResumeDatabasePreparationMutation, le as ResumeScheduledMessageMutation, lf as RetentionArea, lg as RetentionPoliciesConnectionQuery, lh as RetentionPolicy, li as RetentionPolicyConnection, lj as RetentionPolicyOrderByRelevanceFieldEnum, lk as ReviewContextTopicMutation, ll as RevokeMemberIntegrationMutation, lm as RevokeOutsideSharesMutation, ln as RotateModelConnectionKeyMutation, lo as RotateWebhookEndpointSecretMutation, lp as SaveCanvasViewMutation, lq as SaveTableAccessRuleMutation, lr as SaveWidgetMutation, ls as ScheduleMessageMutation, lt as ScheduleWorkspaceDeletionMutation, lu as ScheduledAgentRun, lv as ScheduledAgentRunConnection, lw as ScheduledDelivery, lx as ScheduledMessage, ly as ScheduledMessageAuthor, lz as ScheduledMessageConnection, lA as ScheduledMessageOrderByRelevanceFieldEnum, lB as ScheduledMessageQuery, lC as ScheduledMessageRun, lD as ScheduledMessageStatus, lE as ScheduledMessageSubBuilder, lF as ScheduledMessage_AgentQuery, lG as ScheduledMessage_ChatQuery, lH as ScheduledMessage_Chat_DesktopDeviceQuery, lI as ScheduledMessage_Chat_InsightQuery, lJ as ScheduledMessage_Chat_ProjectQuery, lK as ScheduledMessage_RecentRunsQuery, lL as ScheduledMessagesQuery, lM as ScheduledRunTrigger, lN as SendAgentCopyMutation, lO as SendAuditDestinationNowMutation, lP as SendChatMessageWhileRunningMutation, lQ as SendFeedbackMutation, lR as SendScheduledMessageNowMutation, lS as SendTestPushMutation, lT as SetAuditDestinationPausedMutation, lU as SetBrowserLoginSyncExcludedMutation, lV as SetBrowserLoginSyncMutation, lW as SetDatabasePrimaryKeyMutation, lX as SetDefaultIntegrationAccountMutation, lY as SetDlpBuiltinRuleMutation, lZ as SetGeneralAccessMutation, l_ as SetImageEditContextMutation, l$ as SetMemberAttributeKeysMutation, m0 as SetMemberAttributesMutation, m1 as SetMemoryEnabledMutation, m2 as SetShareLinkExpiryMutation, m3 as SetTableColumnTypeMutation, m4 as SetUserSkillEnabledMutation, m5 as SetWorkspaceModelPolicyMutation, m6 as SetWorkspaceModelRoleMutation, m7 as SetupInterest, m8 as ShareAccess, m9 as ShareAccessQuery, ma as ShareAccess_SharedByQuery, mb as ShareAccess_SharedBy_InheritedFromQuery, mc as ShareAction, md as ShareCandidates, me as ShareCandidatesQuery, mf as ShareCandidates_MembersQuery, mg as ShareCheck, mh as ShareCheckQuery, mi as ShareCheckStatus, mj as ShareCheck_NarrowingsQuery, mk as ShareEvent, ml as ShareInheritance, mm as ShareLink, mn as ShareLinkExpiry, mo as ShareLinkInfo, mp as ShareMember, mq as ShareMutation, mr as ShareNarrowedTable, ms as ShareNarrowing, mt as ShareRecipientKind, mu as ShareRole, mv as ShareState, mw as ShareStateQuery, mx as ShareState_LinkQuery, my as ShareState_MembersQuery, mz as ShareState_OwnerQuery, mA as ShareState_Owner_InheritedFromQuery, mB as ShareableKind, mC as SharedByMeQuery, mD as SharedContainerKind, mE as SharedContent, mF as SharedContentsQuery, mG as SharedItem, mH as SharedItemConnection, mI as SharedItemView, mJ as SharedMark, mK as SharedPreview, mL as SharedWithMeQuery, mM as SharingEnabledQuery, mN as SkillCatalogItem, mO as SkillCatalogQuery, mP as SkillCatalogSource, mQ as SkillUsage, mR as SnoozeProactiveItemMutation, mS as SortOrder, mT as StartChatDayMutation, mU as StopChatMutation, mV as StopDatabaseRelationshipDetectionMutation, mW as SubmitNpsMutation, mX as SuggestCommitMessageMutation, mY as SurfaceSnapshotQuery, mZ as SyncEvent, m_ as SyncEventCursor, m$ as SyncProjectDesktopBindingMutation, n0 as Table, n1 as TableAccess, n2 as TableAccessLogQuery, n3 as TableAccessLog_EntriesQuery, n4 as TableAccessPrincipal, n5 as TableAccessQuery, n6 as TableAccessRule, n7 as TableAccessRuleSaved, n8 as TableAccessSubBuilder, n9 as TableAccess_RulesQuery, na as TableConnection, nb as TableOrderByRelevanceFieldEnum, nc as TableQuery, nd as TableStatus, ne as TableSubBuilder, nf as TableSuggestedQuestionsQuery, ng as Table_DatabaseQuery, nh as Table_Database_ConnectionInfoQuery, ni as Table_Database_ConnectionStatusQuery, nj as Table_Database_EngineQuery, nk as Table_Database_SourceTablesQuery, nl as Table_DocumentQuery, nm as Table_Document_ContentsQuery, nn as Table_Document_FileQuery, no as Table_Document_FormatQuery, np as Table_Document_VersionsQuery, nq as Table_FromRelationsQuery, nr as Table_ModelQuery, ns as Table_ToRelationsQuery, nt as TablesQuery, nu as TaskGoalDecision, nv as TaskJob, nw as TaskJobConnection, nx as TaskJobOrderByRelevanceFieldEnum, ny as TaskJobStatus, nz as TaskJobsQuery, nA as TestDlpProviderMutation, nB as TestDlpRulesQuery, nC as TestLocalModelMutation, nD as TestMcpServerConnectionMutation, nE as TestMcpServerMutation, nF as TestModelConnectionMutation, nG as TestScheduledMessageMutation, nH as TokenUsage, nI as TokenUsageConnection, nJ as TokenUsageLimitState, nK as TokenUsageOrderByRelevanceFieldEnum, nL as TokenUsageStatusEvent, nM as TokenUsageStatusSnapshot, nN as TokenUsageWindowSnapshot, nO as TokenUsagesQuery, nP as ToolApprovalMode, nQ as ToolApprovalSetting, nR as TopicActivitiesQuery, nS as TopicActivity, nT as TopicActivityConnection, nU as TopicActivityOrderByRelevanceFieldEnum, nV as TopicFact, nW as TopicFactSource, nX as TopicLink, nY as Trip, nZ as TripConnection, n_ as TripOrderByRelevanceFieldEnum, n$ as TripsQuery, o0 as USER_WAITS, o1 as UndoCanvasTurnMutation, o2 as UnlinkPersonFactMutation, o3 as UnregisterLiveActivityTargetMutation, o4 as UnregisterPushTargetMutation, o5 as UnsendWaitingChatMessageMutation, o6 as UnshareMutation, o7 as UpdateAgentMutation, o8 as UpdateBrowserSettingsMutation, o9 as UpdateCanvasMutation, oa as UpdateChatMutation, ob as UpdateDatabaseMutation, oc as UpdateDlpProviderMutation, od as UpdateDlpRuleMutation, oe as UpdateDocumentMutation, of as UpdateFolderMutation, og as UpdateInsightMutation, oh as UpdateInsightThumbnailMutation, oi as UpdateInterpMutation, oj as UpdateMemoryFileMutation, ok as UpdateNotificationPreferenceMutation, ol as UpdateNotificationPreferencesMutation, om as UpdateProactiveSettingMutation, on as UpdateProjectMutation, oo as UpdatePulseTriggerMutation, op as UpdateRetentionPolicyMutation, oq as UpdateScheduledMessageMutation, or as UpdateShareRoleMutation, os as UpdateTableMutation, ot as UpdateUsagePolicyMutation, ou as UpdateUserSetupMutation, ov as UpdateUserSkillFileMutation, ow as UpdateUserSkillFolderMutation, ox as UpdateWebhookEndpointMutation, oy as UpdateWorkspaceAiModelSettingMutation, oz as UpdateWorkspacePolicyMutation, oA as UpdateWorkspaceUsageSettingsMutation, oB as UpgradeCubeModelSemanticsMutation, oC as UploadFormatKind, oD as UploadOptions, oE as UploadProgressEvent, oF as UploadResult, oG as UpsertAiProviderSettingMutation, oH as UpsertModelConnectionMutation, oI as UsageHistoryGranularity, oJ as UsageLimitHit, oK as UsageLimitHitConnection, oL as UsageLimitHitOrderByRelevanceFieldEnum, oM as UsageLimitHitsQuery, oN as UsagePlan, oO as UsagePlansQuery, oP as UsagePoliciesConnectionQuery, oQ as UsagePolicy, oR as UsagePolicyAssignee, oS as UsagePolicyAssignment, oT as UsagePolicyAssignmentConnection, oU as UsagePolicyAssignmentOrderByRelevanceFieldEnum, oV as UsagePolicyAssignmentsConnectionQuery, oW as UsagePolicyConnection, oX as UsagePolicyEntry, oY as UsagePolicyOrderByRelevanceFieldEnum, oZ as UsagePolicySubject, o_ as UsagePool, o$ as UsagePoolExhausted, p0 as UsageReport, p1 as UsageReportExport, p2 as UsageReportLine, p3 as UsageReportQuery, p4 as UsageReport_ModelsQuery, p5 as UsageReport_PeopleQuery, p6 as UsageReport_TeamsQuery, p7 as UsageSettingsQuery, p8 as UsageWindowsStatusType, p9 as UsePersonPhotoMutation, pa as UserAiProviderSetting, pb as UserFeedback, pc as UserMemorySetting, pd as UserNotification, pe as UserNotificationEvent, pf as UserNotificationSnapshot, pg as UserSetup, ph as UserSetupQuery, pi as UserSetupState, pj as UserSkillFile, pk as UserSkillFileModel, pl as UserSkillFileQuery, pm as UserSkillFilesQuery, pn as UserSkillFolder, po as UserSkillFolderModel, pp as UserSkillFolderQuery, pq as UserSkillFolderSubBuilder, pr as UserSkillFolder_ManifestErrorQuery, ps as UserSkillFoldersQuery, pt as UserSkillImportItemModel, pu as UserSkillImportPreviewModel, pv as UserSkillIssueModel, pw as WatchContextTopicMutation, px as WebhookEndpoint, py as WebhookEndpointCreated, pz as WebhookEndpointsQuery, pA as WindowDetailType, pB as WorkspaceAiModelSetting, pC as WorkspaceAiModelSettingQuery, pD as WorkspaceDeleteSchedule, pE as WorkspaceDeletionScheduleQuery, pF as WorkspaceMembership, pG as WorkspaceMembershipsQuery, pH as WorkspaceModelPolicy, pI as WorkspaceModelRole, pJ as WorkspacePolicy, pK as WorkspacePolicyQuery, pL as WorkspaceSeats, pM as WorkspaceSeatsQuery, pN as WorkspaceUsage, pO as WorkspaceUsageSettings, pP as WorkspaceUsageSettingsQuery, pQ as WorkspaceUsageSettings_PoolQuery, pR as asksUser, t as chatTaskStateOf, pS as createDvinaClient, pT as createDvinaEvents, pU as isBusy, pV as isHeld, pW as uploadFile } from './_generated_sdk-D8w-01tO.js';
5
5
  import { D as DvinaError } from './error-CuX-RKTE.js';
6
6
  export { a as DvinaAuthenticationError, b as DvinaForbiddenError, e as DvinaGraphQLError, c as DvinaNetworkError, f as DvinaNotFoundError, g as DvinaOperationKind, h as DvinaPlanRestrictionError, d as DvinaSyncApplyError, i as DvinaTokenLimitError, G as GRAPHQL_ERROR_CODES, j as GraphQLErrorEntry, k as createGraphQLError, l as extractErrorCode } from './error-CuX-RKTE.js';
7
- import { c as createHttpTransport, D as DvinaDatabase, b as SseRealtimeEvent, S as SyncEngine, d as CacheRule } from './connection-BSL5UyZp.js';
8
- export { A as AbstractConnection, e as CacheRuleCreate, f as CacheRuleDelete, g as CacheRuleUpdate, C as Connection, P as PageInfo, R as RealtimeEventTopic, a as Request, h as SseQueryEvent, i as SseSyncEvent, j as SseTransport, k as SseTransportOptions, l as SubscriptionDescriptor, m as SyncState, n as SyncStatus, o as SyncStatusSource, p as closeDatabase, q as createSseTransport, r as defaultConnection, s as deleteDatabase, t as deleteLeftWorkspaceData, u as deleteUserLocalData, v as getOrCreateDatabase } from './connection-BSL5UyZp.js';
7
+ import { c as createHttpTransport, D as DvinaDatabase, S as SseRealtimeEvent, a as SyncEngine, C as CacheRule } from './connection-DsqFEUbC.js';
8
+ export { A as AbstractConnection, b as CacheRuleCreate, d as CacheRuleDelete, e as CacheRuleUpdate, f as Connection, P as PageInfo, R as RealtimeEventTopic, g as Request, h as SseQueryEvent, i as SseSyncEvent, j as SseTransport, k as SseTransportOptions, l as SubscriptionDescriptor, m as SyncState, n as SyncStatus, o as SyncStatusSource, p as closeDatabase, q as createSseTransport, r as defaultConnection, s as deleteDatabase, t as deleteLeftWorkspaceData, u as deleteUserLocalData, v as getOrCreateDatabase } from './connection-DsqFEUbC.js';
9
9
  export { extractNodes, mergeConnections } from './pagination/index.js';
10
10
  import 'graphql';
11
11
  import './billing/index.js';
@@ -16,7 +16,7 @@ import 'dexie';
16
16
  * The DB is created on first use when the token becomes available.
17
17
  * SSE transport is created for browser environments to enable delta sync.
18
18
  */
19
- declare function createLazySyncEngine(httpTransport: ReturnType<typeof createHttpTransport>, sseUrl: string, syncPolicyUrl: string, getToken: (options?: {
19
+ declare function createLazySyncEngine(httpTransport: ReturnType<typeof createHttpTransport>, sseUrl: string, getToken: (options?: {
20
20
  forceRefresh?: boolean;
21
21
  }) => Promise<string>, getDb: () => Promise<DvinaDatabase>, onError?: (error: DvinaError) => void, onRealtimeEvent?: (event: SseRealtimeEvent) => void | Promise<void>,
22
22
  /** False for an API key: queries and mutations only, no live sync (it needs a signed-in session). */