@dvina/sdk 5.0.65 → 5.0.67

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 as g$1,d,c,a,l,e}from'./chunk-YQD7354H.js';var F=new WeakMap;async function x(e,n){let t=F.get(e);if(!t){let a=e({forceRefresh:true}).finally(()=>{F.get(e)===a&&F.delete(e);});F.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 qe=1e3,Z=1e3,Be=3,je=3e4;function He(e,n=Math.random){return Math.floor(n()*e)}function Ge(e){return e instanceof Error&&e.name==="AbortError"}function Q(){return Date.now()}var R=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 x(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(Ge(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??Be)){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??qe:n==="failure"?this.nextReconnectDelay():this.options.baseReconnectDelayMs??Z;this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=void 0,this.ensureAttempt();},t);}nextReconnectDelay(){let n=this.options.baseReconnectDelayMs??Z,t=this.options.maxReconnectDelayMs??je,i=Math.min(n*Math.pow(2,this.reconnectAttempt),t);return this.reconnectAttempt+=1,this.options.jitter==="full"?He(i):i}isHealthy(){if(this.state!=="connected"||!this.abortController)return false;let n=this.options.staleTimeoutMs;return !n||n<=0?true:this.lastActivityAt!==null&&Q()-this.lastActivityAt<n}markConnected(){this.consecutiveAuthFailures=0,this.reconnectAttempt=0,this.lastConnectedAt=Q(),this.setState("connected"),this.markActivity();}markActivity(){this.lastActivityAt=Q(),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 Ye=(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))(Ye||{}),We=(o=>(o.Enterprise="enterprise",o.Free="free",o.Max="max",o.Plus="plus",o.Pro="pro",o))(We||{}),ze=(a=>(a.Daily="DAILY",a.Monthly="MONTHLY",a.Weekly="WEEKLY",a.Yearly="YEARLY",a))(ze||{}),Xe=(t=>(t.Revcat="REVCAT",t.Stripe="STRIPE",t))(Xe||{});var K={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"}}]}}]},ee={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"}}]}}]},ne={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"TierOrders"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tierOrders"}}]}}]},te={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Entitlements"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"entitlements"}}]}}]},ie={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"}}]}}]}}]}}]},ae={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"}}]}}]}}]}}]},re={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"}}]}}]}}]},oe={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"}}]}}]}}]},se={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"}}}]}]}}]},le={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"}}}]}]}}]},ue={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"}}}]}]}}]},ce={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"}}}]}]}}]},de={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"}}}]}]}}]},me={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"}}}]}]}}]},pe={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"}}}]}]}}]},ke={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"}}]}}]}}]},Se={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"}}]}}]},fe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ReactivateSubscription"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reactivateSubscription"}}]}}]},ve={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"}}}]}]}}]},be={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"}}}]}]}}]},ge={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ReleaseSchedule"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"releaseSchedule"}}]}}]},Ne={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"}}]}}]}}]},Te={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"}}]}}]}}]},De={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 Ee(e,n){throw new Error(n)}var B={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"]},Je=new Set(Object.keys(B));function j(e){let n=e?.kind;return typeof n=="string"&&Je.has(n)}var q;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription";})(q||(q={}));var g;(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";})(g||(g={}));function H(e){return e===9||e===32}function Ae(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(T=>T.length===0||H(T.charCodeAt(0))),l=t.endsWith('\\"""'),c=e.endsWith('"')&&!l,m=e.endsWith("\\"),s=c||m,d=(!a||e.length>70||s||o||l),p="",k=a&&H(e.charCodeAt(0));return (d&&!k||o)&&(p+=`
2
+ `),p+=t,(d||s)&&(p+=`
3
+ `),'"""'+p+'"""'}function Fe(e){return C(e,[])}function C(e,n){switch(typeof e){case "string":return JSON.stringify(e);case "function":return e.name?`[function ${e.name}]`:"[function]";case "object":return $e(e,n);default:return String(e)}}function $e(e,n){if(e===null)return "null";if(n.includes(e))return "[Circular]";let t=[...n,e];if(Ze(e)){let i=e.toJSON();if(i!==e)return typeof i=="string"?i:C(i,t)}else if(Array.isArray(e))return en(e,t);return Ke(e,t)}function Ze(e){return typeof e.toJSON=="function"}function Ke(e,n){let t=Object.entries(e);return t.length===0?"{}":n.length>2?"["+nn(e)+"]":"{ "+t.map(([a,o])=>a+": "+C(o,n)).join(", ")+" }"}function en(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(C(e[o],n));return i===1?a.push("... 1 more item"):i>1&&a.push(`... ${i} more items`),"["+a.join(", ")+"]"}function nn(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 xe(e){return `"${e.replace(tn,an)}"`}var tn=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function an(e){return rn[e.charCodeAt(0)]}var rn=["\\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 G=Object.freeze({});function I(e,n,t=B){let i=new Map;for(let f of Object.values(g))i.set(f,Y(n,f));let a,o=Array.isArray(e),l=[e],c=-1,m=[],s=e,d,p,k=[],T=[];do{c++;let f=c===l.length,z=f&&m.length!==0;if(f){if(d=T.length===0?void 0:k[k.length-1],s=p,p=T.pop(),z)if(o){s=s.slice();let h=0;for(let[L,X]of m){let J=L-h;X===null?(s.splice(J,1),h++):s[J]=X;}}else {s=Object.defineProperties({},Object.getOwnPropertyDescriptors(s));for(let[h,L]of m)s[h]=L;}c=a.index,l=a.keys,m=a.edits,o=a.inArray,a=a.prev;}else if(p){if(d=o?c:l[c],s=p[d],s==null)continue;k.push(d);}let v;if(!Array.isArray(s)){var w,P;j(s)||Ee(false,`Invalid AST Node: ${Fe(s)}.`);let h=f?(w=i.get(s.kind))===null||w===void 0?void 0:w.leave:(P=i.get(s.kind))===null||P===void 0?void 0:P.enter;if(v=h?.call(n,s,d,p,k,T),v===G)break;if(v===false){if(!f){k.pop();continue}}else if(v!==void 0&&(m.push([d,v]),!f))if(j(v))s=v;else {k.pop();continue}}if(v===void 0&&z&&m.push([d,s]),f)k.pop();else {var U;a={inArray:o,index:c,keys:l,edits:m,prev:a},o=Array.isArray(s),l=o?s:(U=t[s.kind])!==null&&U!==void 0?U:[],c=-1,m=[],p&&T.push(p),p=s;}}while(a!==void 0);return m.length!==0?m[m.length-1][1]:e}function Y(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 O(e){return I(e,sn)}var on=80,sn={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,l=o+u("(",r(t,", "),")");return l.length>on&&(l=o+u(`(
6
+ `,M(r(t,`
7
+ `)),`
8
+ )`)),r([l,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?Ae(e):xe(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+(Re(t)?u(`(
13
+ `,M(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+(Re(t)?u(`(
23
+ `,M(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
+ `,M(r(e,`
27
+ `)),`
28
+ }`)}function u(e,n,t=""){return n!=null&&n!==""?e+n+t:""}function M(e){return u(" ",e.replace(/\n/g,`
29
+ `))}function Re(e){var n;return (n=e?.some(t=>t.includes(`
30
+ `)))!==null&&n!==void 0?n:false}var Ce=new WeakMap;function V(e){let n=Ce.get(e);return n||(n=O(e),Ce.set(e,n)),n}var cn=new Set([g$1.SESSION_TOKEN_LIMIT_REACHED,g$1.STORAGE_LIMIT_REACHED,g$1.DEEP_ANALYSIS_LIMIT_EXCEEDED,g$1.PLAN_DETAIL_RESTRICTION,g$1.RESOURCE_NOT_FOUND]);function Oe(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(cn.has(a))return false;if(a==="UNAUTHORIZED"||a==="UNAUTHENTICATED"||t.message==="Unauthorized")return true}return false}async function Ve(e$1,n,t){let i=await e$1.getToken(),a=e$1.getLanguage(),o=e$1.getPlatform?.(),l=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),l&&(c$1["x-user-timezone"]=l);let m=JSON.stringify({query:V(n),variables:t}),s=dn(n)?new AbortController:void 0,d$1=s&&setTimeout(()=>s.abort(),we);try{let p;try{p=await fetch(e$1.url,{method:"POST",headers:c$1,body:m,...s&&{signal:s.signal}});}catch(k){throw s?.signal.aborted?Ie():k instanceof Error&&k.name==="AbortError"?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);try{return {response:await p.json(),usedToken:i}}catch(k){throw s?.signal.aborted?Ie():k}}finally{clearTimeout(d$1);}}var we=3e4;function Ie(){return new c(`No answer within ${we/1e3} s`,0)}function dn(e){let n=e.definitions.filter(t=>t.kind==="OperationDefinition");return n.length>0&&n.every(t=>t.operation==="query")}var mn=4,pn=1e3;function Pe(e){async function n(t,i,a$1=0,o=true,l$1=e){let c$1;try{c$1=await Ve(l$1,t,i);}catch(d$1){if(d$1 instanceof d)return Me(t,i,l$1,d$1.failedToken,o);if(d$1 instanceof c&&d$1.status===0&&a$1<mn)return await fn(pn*(a$1+1)),n(t,i,a$1+1,o,l$1);throw o&&d$1 instanceof a&&N(l$1,t,d$1),d$1}let{response:m,usedToken:s}=c$1;if(Oe(m.errors))return Me(t,i,l$1,s,o);if(m.errors?.length&&!m.data){let d=l(m.errors,V(t),i);throw o&&N(l$1,t,d),d}if(!m.data){let d=l([{message:"No data returned from server"}],V(t),i);throw o&&N(l$1,t,d),d}return m.data}return {request:(t,i,a)=>n(t,i,0,a?.reportErrors??true,a?.watched?Sn(e):e)}}async function Me(e,n,t,i,a=true){try{await x(t.getToken,i);}catch{let o=new d("Token refresh failed");throw N(t,e,o),o}return kn(t,e,n,a)}async function kn(e,n,t,i=true){let a$1;try{a$1=await Ve(e,n,t);}catch(l){if(l instanceof d){let c=new d("Authentication failed after token refresh");throw N(e,n,c),c}throw i&&l instanceof a&&N(e,n,l),l}let{response:o}=a$1;if(Oe(o.errors)){let l=new d("Authentication failed after token refresh");throw N(e,n,l),l}if(o.errors?.length&&!o.data){let l$1=l(o.errors,V(n),t);throw i&&N(e,n,l$1),l$1}return o.data}function Sn(e){let{onError:n}=e;return n?{...e,onError:t=>{t.watched=true,n(t);}}:e}function N(e,n,t){t.operation??=yn(n),e.onError?.(t);}function yn(e){for(let n of e.definitions)if(n.kind===g.OPERATION_DEFINITION)return n.operation}function fn(e){return new Promise(n=>setTimeout(n,e))}async function Ue(e,n,t){let i=e.getReader(),a=new TextDecoder,o="";try{for(;!n.aborted;){let{done:l,value:c}=await i.read();if(l)break;t.onChunk?.(),o+=a.decode(c,{stream:!0});let m=o.split(/(?:\r\n|\r|\n){2}/);o=m.pop()??"";for(let s of m)t.onEventBlock(s.trim());}}finally{i.releaseLock();}}var Le=1e3,vn=3e4,hn=3,bn=35e3,E=class extends Error{constructor(t){super(`Billing SSE auth failed: ${t}`);this.status=t;this.name="BillingAuthStreamError";}};function _e(e){let n=e instanceof c?e.status:void 0;return n!==void 0&&n>=400&&n<500&&n!==408&&n!==429}var W=class{constructor(n,t){this.options=n;this.onClose=t;this.supervisor=new R({authRetryDelayMs:Le,baseReconnectDelayMs:Le,getToken:n.getToken,id:`billing-${Math.random().toString(36).slice(2)}`,isAuthError:i=>i instanceof E,isFatalError:_e,kind:"billing-sse",maxConsecutiveAuthFailures:hn,maxReconnectDelayMs:vn,onFatalError:i=>{this.options.onError?.(_e(i)?i:new d("Billing SSE stream authentication failed permanently")),this.close();},staleTimeoutMs:bn,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 Ue(a.body,i.signal,{onChunk:()=>i.markActivity(),onEventBlock:o=>this.processEventBlock(o,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=Pe({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(K)).plans,get:async n=>(await this.request(ee,n)).plan,entitlements:async()=>(await this.request(te)).entitlements,tierOrders:async()=>(await this.request(ne)).tierOrders}}get subscription(){return {get:async()=>(await this.request(ie)).subscription,entitlements:async()=>(await this.request(re)).subscriptionEntitlements,checkoutTrial:async()=>(await this.request(De)).checkoutTrial??null,upgrade:async n=>(await this.request(le,n)).upgradePlan,prorationAmount:async n=>(await this.request(se,n)).prorationAmount,downgrade:async n=>(await this.request(ue,n)).downgradePlan,changeBillingCycle:async n=>(await this.request(de,n)).changeBillingCycle,cancel:async(n={})=>(await this.request(pe,n)).cancelSubscription,retentionOffers:async()=>(await this.request(ke)).retentionOffers??null,pause:async()=>(await this.request(Se)).pauseSubscription,applyRetentionDiscount:async()=>(await this.request(ye)).applyRetentionDiscount,reactivate:async()=>(await this.request(fe)).reactivateSubscription,releaseSchedule:async()=>(await this.request(ge)).releaseSchedule,updates:()=>{let n=new W(this.options,t=>{this.activeUpdateStreams.delete(t);});return this.activeUpdateStreams.add(n),n.start(),n}}}get seats(){return {add:async n=>(await this.request(ce,n)).addSeats,remove:async n=>(await this.request(me,n)).removeSeats}}get session(){return {createSession:async n=>(await this.request(Ne,n)).createCheckoutSession,createCustomerPortalSession:async n=>(await this.request(Te,n)).createCustomerPortalSession}}get management(){return {subscription:async n=>(await this.request(ae,n)).subscriptionForManager,entitlements:async n=>(await this.request(oe,n)).subscriptionEntitlementsForManager,cancel:async n=>(await this.request(ve,n)).cancelSubscriptionForManager,reactivate:async n=>(await this.request(he,n)).reactivateSubscriptionForManager,createCustomer:async n=>(await this.request(be,n)).createCustomer}}request(n,t){return this.http.request(n,t)}};export{g as a,I as b,x as c,Pe as d,He as e,Ye as f,We as g,ze as h,Xe as i,Qe as j};
@@ -0,0 +1 @@
1
+ var o=class extends Error{cause;operation;watched;constructor(n,r){super(n),this.name="DvinaError",this.cause=r;}},s=class extends o{errors;query;variables;constructor(n,r,t){let E=n.map(a=>a.message).join("; ")||"Unknown GraphQL error";super(E),this.name="DvinaGraphQLError",this.errors=n,this.query=r,this.variables=t;}},p=class extends o{status;constructor(n,r,t){super(n,t),this.name="DvinaNetworkError",this.status=r;}},l=class extends o{failedToken;constructor(n="Authentication failed",r,t){super(n,typeof r=="string"?t:r),this.name="DvinaAuthenticationError",this.failedToken=typeof r=="string"?r:void 0;}},_=class extends o{status=403;constructor(n="Forbidden",r){super(n,r),this.name="DvinaForbiddenError";}},y=class extends o{constructor(r,t,E,a){super(`Sync change ${r==="stalled"?"not yet written":"not written"} (${t.join(", ")})`,a);this.stage=r;this.tables=t;this.visibility=E;this.name="DvinaSyncApplyError";}},i={SESSION_TOKEN_LIMIT_REACHED:"SESSION_TOKEN_LIMIT_REACHED",STORAGE_LIMIT_REACHED:"STORAGE_LIMIT_REACHED",DEEP_ANALYSIS_LIMIT_EXCEEDED:"DEEP_ANALYSIS_LIMIT_EXCEEDED",PLAN_DETAIL_RESTRICTION:"PLAN_DETAIL_RESTRICTION",RESOURCE_NOT_FOUND:"RESOURCE_NOT_FOUND"},I=new Set([i.PLAN_DETAIL_RESTRICTION,i.STORAGE_LIMIT_REACHED,i.DEEP_ANALYSIS_LIMIT_EXCEEDED]),c=class extends s{restrictionCode;constructor(n,r,t,E){super(n,t,E),this.name="DvinaPlanRestrictionError",this.restrictionCode=r;}},u=class extends s{constructor(n,r,t){super(n,r,t),this.name="DvinaTokenLimitError";}},d=class extends s{constructor(n,r,t){super(n,r,t),this.name="DvinaNotFoundError";}};function R(e){for(let n of e){let r=n.extensions?.code;if(r!=null)return String(r).toUpperCase()}}function g(e,n,r){let t=R(e);return t===i.SESSION_TOKEN_LIMIT_REACHED?new u(e,n,r):t===i.RESOURCE_NOT_FOUND?new d(e,n,r):t&&I.has(t)?new c(e,t,n,r):new s(e,n,r)}export{o as a,s as b,p as c,l as d,_ as e,y as f,i as g,c as h,u as i,d as j,R as k,g as l};
@@ -1,8 +1,8 @@
1
- import { D as DvinaQueryRef, M as MutationOptions, b as DvinaRequest, P as PageInfoData, C as ConnectionVariables, F as FetchOptions } from './types-0oS5PBdX.js';
1
+ import { D as DvinaQueryRef, M as MutationOptions, b as DvinaRequest, P as PageInfoData, C as ConnectionVariables, F as FetchOptions } from './types-DlNXHZQK.js';
2
2
  import { DocumentNode } from 'graphql';
3
3
  import * as dexie from 'dexie';
4
4
  import { Dexie, Table } from 'dexie';
5
- import { D as DvinaError, a as DvinaAuthenticationError, b as DvinaForbiddenError, c as DvinaNetworkError } from './error-aFALORBM.js';
5
+ import { D as DvinaError, a as DvinaAuthenticationError, b as DvinaForbiddenError, c as DvinaNetworkError } from './error-B-z8CPkV.js';
6
6
 
7
7
  /** Cached result metadata for a specific query + variables combination */
8
8
  interface QueryResultEntry {
@@ -88,7 +88,7 @@ declare class DvinaDatabase {
88
88
  * handles this automatically.
89
89
  */
90
90
  readonly ready: Promise<void>;
91
- constructor(workspaceId: string, userId: string);
91
+ constructor(workspaceId: string, userId: string, scope?: string);
92
92
  /**
93
93
  * Records this version's database in the registry (first, so it is never taken for a stray one), opens it, and
94
94
  * then removes the workspace+user's stale versions without waiting for that. A long-open tab keeps telling the
@@ -121,6 +121,43 @@ declare class DvinaDatabase {
121
121
  get allTables(): Table[];
122
122
  /** Run a read-write transaction across specified tables */
123
123
  transaction<U>(mode: 'rw' | 'r', tables: Table[], scope: () => PromiseLike<U> | U): dexie.PromiseExtended<U>;
124
+ /** Counts the deletes applied here (optimistic or the sync's); a read notes it as it starts (readMark). */
125
+ private _deleteClock;
126
+ /** The latest deletes applied here, by `table:key`, at their clock; the oldest go past DELETES_KEPT. */
127
+ private readonly _deletedAt;
128
+ /** Deletes made by a query (DvinaDatabase.noteDeletedWhere): the latest DELETE_QUERIES_KEPT, at their clock. */
129
+ private readonly _deletedWhere;
130
+ /** Where the delete clock stands as a read starts: what is deleted after it, its answer must not bring back. */
131
+ readMark(): number;
132
+ /**
133
+ * Records rows deleted here now: the sync's delete, which the server has made, or an optimistic one (`pending`),
134
+ * which no read brings back until the server has taken it (confirmed with a call without `pending`): a read that
135
+ * starts in between still finds the rows on the server.
136
+ */
137
+ noteDeleted(tableName: string, keys: Iterable<string>, pending?: boolean): void;
138
+ /**
139
+ * Records an optimistic delete the server makes by a query (Select All): every row of `tableName` that `match`
140
+ * holds, the device's or not. Until the server has taken it (`confirm`), no read or sync change brings one back; a
141
+ * read that started before then never does. `forget` is its refusal. A row it keeps out is noted by its key too.
142
+ */
143
+ noteDeletedWhere(tableName: string, match: (record: Record<string, unknown>) => boolean): {
144
+ confirm: () => void;
145
+ forget: () => void;
146
+ };
147
+ /** The delete by a query, made after `mark`, that takes the row (noted by its key from now on). */
148
+ private _deletedByQuery;
149
+ /** An optimistic delete the server refused: its rows are back, and a read may bring them again. */
150
+ forgetDeleted(tableName: string, keys: Iterable<string>): void;
151
+ /**
152
+ * Whether an optimistic delete of the row waits for the server: until it has taken it, nothing brings the row back.
153
+ * With the row's `record`, a delete by a query that holds it counts too.
154
+ */
155
+ isDeletePending(tableName: string, key: string, record?: Record<string, unknown>): boolean;
156
+ /**
157
+ * Whether the row was deleted here after a read started at `mark`: that read's copy of it is out of date. With the
158
+ * row's `record`, a delete by a query that holds it counts too.
159
+ */
160
+ deletedSince(tableName: string, key: string, mark: number, record?: Record<string, unknown>): boolean;
124
161
  /** Close the database connection and evict from the module-level cache. */
125
162
  close(): void;
126
163
  /** Get the last processed sync event ID, or '0' if none. */
@@ -145,19 +182,20 @@ declare class DvinaDatabase {
145
182
  * database is guaranteed to match the current codegen schema.
146
183
  *
147
184
  * @param token - A valid JWT from which workspaceId and userId are extracted
185
+ * @param scope - A window's own store (DvinaSdkBaseOptions.storeScope); none: the app's shared one
148
186
  * @returns The DvinaDatabase instance after schema compatibility is ensured
149
187
  */
150
- declare function getOrCreateDatabase(token: string): Promise<DvinaDatabase>;
188
+ declare function getOrCreateDatabase(token: string, scope?: string): Promise<DvinaDatabase>;
151
189
  /**
152
190
  * Close and remove a cached database instance.
153
191
  * Useful for logout / workspace switching.
154
192
  */
155
- declare function closeDatabase(token: string): void;
193
+ declare function closeDatabase(token: string, scope?: string): void;
156
194
  /**
157
195
  * Delete the IndexedDB database entirely.
158
196
  * Use with caution — this wipes all cached data for the workspace+user.
159
197
  */
160
- declare function deleteDatabase(token: string): Promise<void>;
198
+ declare function deleteDatabase(token: string, scope?: string): Promise<void>;
161
199
  /**
162
200
  * Remove everything the user keeps on this device: their databases in every workspace and of every SDK version, and
163
201
  * their registry entries. Call on sign-out and account deletion, so nothing of theirs is left for the next person on
@@ -195,6 +233,8 @@ interface HttpTransportOptions {
195
233
  /** How one request reports: `reportErrors: false` keeps its failure from `onError` (a failed sign-in still goes). */
196
234
  interface HttpRequestOptions {
197
235
  reportErrors?: boolean;
236
+ /** A watch's read, which the SDK reads again by itself after a failure on the way: its reported error says so. */
237
+ watched?: boolean;
198
238
  }
199
239
  interface HttpTransport {
200
240
  /** Execute a GraphQL query or mutation */
@@ -419,6 +459,8 @@ interface CacheCascadeDeleteRule {
419
459
  entityType: string;
420
460
  /** Explicit foreign-key fields to match against the parent ID */
421
461
  relationFields?: string[];
462
+ /** What the field puts before the parent's id (a kept item's Feed card: `kept:<id>`) */
463
+ refPrefix?: string;
422
464
  /** Nested cascade rules for children of this related entity */
423
465
  cascadeDelete?: CacheCascadeDeleteRule[];
424
466
  }
@@ -1,9 +1,18 @@
1
+ /** What kind of request failed: a read (a query, a subscription) or an action (a mutation). */
2
+ type DvinaOperationKind = 'query' | 'mutation' | 'subscription';
1
3
  /**
2
4
  * Base error class for all Dvina SDK errors.
3
5
  */
4
6
  declare class DvinaError extends Error {
5
7
  /** The original error, if any */
6
8
  readonly cause?: Error;
9
+ /** The kind of request that failed, from its document, set where the request is made; none outside a request. */
10
+ operation?: DvinaOperationKind;
11
+ /**
12
+ * A watch's read (a live query), which the SDK reads again by itself after a failure on the way
13
+ * (isTransientWatchError); a one-shot read or an action is not, so its failure stays the caller's.
14
+ */
15
+ watched?: boolean;
7
16
  constructor(message: string, cause?: Error);
8
17
  }
9
18
  /**
@@ -42,6 +51,23 @@ declare class DvinaForbiddenError extends DvinaError {
42
51
  readonly status = 403;
43
52
  constructor(message?: string, cause?: Error);
44
53
  }
54
+ /**
55
+ * A sync change the device could not write to its store: one that failed (`failed`), or one still not written after
56
+ * SYNC_APPLY_STALL_MS (`stalled`: its store write waits, on the device's database, for a transaction that does not end).
57
+ * Nothing the reader is told; the app logs it, with the tables and whether its page was hidden.
58
+ */
59
+ declare class DvinaSyncApplyError extends DvinaError {
60
+ readonly stage: 'failed' | 'stalled';
61
+ /** The tables the change writes to (its models), never its contents. */
62
+ readonly tables: readonly string[];
63
+ /** The page's `document.visibilityState` when it was reported; none outside a browser. */
64
+ readonly visibility: string | undefined;
65
+ constructor(stage: 'failed' | 'stalled',
66
+ /** The tables the change writes to (its models), never its contents. */
67
+ tables: readonly string[],
68
+ /** The page's `document.visibilityState` when it was reported; none outside a browser. */
69
+ visibility: string | undefined, cause?: Error);
70
+ }
45
71
  /**
46
72
  * Known GraphQL error codes returned by the Dvina API in `extensions.code`.
47
73
  * Used for programmatic matching in SDK error detection.
@@ -100,4 +126,4 @@ interface GraphQLErrorEntry {
100
126
  extensions?: Record<string, unknown>;
101
127
  }
102
128
 
103
- export { DvinaError as D, GRAPHQL_ERROR_CODES as G, DvinaAuthenticationError as a, DvinaForbiddenError as b, DvinaNetworkError as c, DvinaGraphQLError as d, DvinaNotFoundError as e, DvinaPlanRestrictionError as f, DvinaTokenLimitError as g, type GraphQLErrorEntry as h, createGraphQLError as i, extractErrorCode as j };
129
+ export { DvinaError as D, GRAPHQL_ERROR_CODES as G, DvinaAuthenticationError as a, DvinaForbiddenError as b, DvinaNetworkError as c, DvinaGraphQLError as d, DvinaNotFoundError as e, type DvinaOperationKind as f, DvinaPlanRestrictionError as g, DvinaSyncApplyError as h, DvinaTokenLimitError as i, type GraphQLErrorEntry as j, createGraphQLError as k, extractErrorCode as l };
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { D as DvinaQueryRef } from './types-0oS5PBdX.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-0oS5PBdX.js';
3
- import { I as IncludeDirective } from './_generated_sdk-CMF68az0.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 ApplyArtifactDataMutation, F as AreaRetention, G as ArtifactDataChangedDoc, H as ArtifactDataOpKind, J as ArtifactDataQuery, K as ArtifactDataResult, L as ArtifactDataSnapshot, M as AssignUsagePolicyMutation, N as AttentionEntry, O as AttentionQuery, P as AuditActorKind, Q as AuditDeliveryStatus, R as AuditDestination, S as AuditDestinationCreated, T as AuditDestinationKind, U as AuditDestinationsQuery, V as AuditExportFormat, W as AuditLogEntry, X as AuditLogExport, Y as AuditLogPage, Z as AuditLogQuery, _ as AuditLog_EntriesQuery, $ as AuditPayloadFormat, a0 as AuthzChange, a1 as BillingConnection, a2 as BillingConnectionQuery, a3 as BillingConnectionState, a4 as BillingSubscriptionEvent, a5 as BillingSubscriptionSnapshot, a6 as BrowserFavorite, a7 as BrowserFavoriteConnection, a8 as BrowserFavoriteOrderByRelevanceFieldEnum, a9 as BrowserFavoritesQuery, aa as BrowserLoginSync, ab as BrowserLoginSyncQuery, ac as BrowserProfile, ad as BrowserSettings, ae as BrowserSettingsQuery, af as BrowserSettings_SitesQuery, ag as BrowserSite, ah as BrowserTab, ai as BrowserTabConnection, aj as BrowserTabOrderByRelevanceFieldEnum, ak as BrowserTabState, al as BrowserTabsQuery, am as BrowserVisit, an as BrowserVisitConnection, ao as BrowserVisitOrderByRelevanceFieldEnum, ap as BrowserVisitsQuery, aq as CancelDataActionMutation, ar as CancelImportReminderMutation, as as CancelOauthFlowMutation, at as CancelScheduledMessageMutation, au as CancelWorkspaceDeletionMutation, av as Canvas, aw as CanvasConnection, ax as CanvasEditOrigin, ay as CanvasKind, az as CanvasOrderByRelevanceFieldEnum, aA as CanvasQuery, aB as CanvasSubBuilder, aC as CanvasVersion, aD as CanvasVersionsQuery, aE as Canvas_ThumbnailFileQuery, aF as Canvas_VersionsQuery, aG as CanvasesQuery, aH as CapabilityType, aI as CertificateInfo, aJ as ChangePersonObjectMutation, aK as Chat, aL as ChatConnection, aM as ChatDay, aN as ChatDaysQuery, aO as ChatIdleOutcome, aP as ChatImportExecuteOutput, aQ as ChatImportPreviewOutput, C as ChatMessage, a as ChatMessageConnection, aR as ChatMessageOrderByRelevanceFieldEnum, aS as ChatMessageQuery, aT as ChatMessageRoleEnum, aU as ChatMessageSubBuilder, aV as ChatMessageToolOutputQuery, aW as ChatMessage_ChatQuery, aX as ChatMessage_Chat_DesktopDeviceQuery, aY as ChatMessage_Chat_InsightQuery, aZ as ChatMessage_Chat_ProjectQuery, a_ as ChatMessage_FeedbackQuery, a$ as ChatMessage_ReferencedChatQuery, b0 as ChatMessage_ReferencedChat_DesktopDeviceQuery, b1 as ChatMessage_ReferencedChat_InsightQuery, b2 as ChatMessage_ReferencedChat_ProjectQuery, b3 as ChatMessage_RepliesQuery, b4 as ChatMessage_ThreadQuery, b5 as ChatMessagesAroundQuery, b6 as ChatMessagesQuery, b7 as ChatNextPromptMutation, b8 as ChatOrderByRelevanceFieldEnum, b9 as ChatQuery, ba as ChatReadState, bb as ChatSourceImportFidelityEnum, bc as ChatSourceImportModeEnum, bd as ChatSourceProviderEnum, be as ChatSubBuilder, bf as ChatThread, bg as ChatThreadOrderByRelevanceFieldEnum, bh as ChatWaitingOn, bi as ChatWorkspaceMode, bj as Chat_AgentsQuery, bk as Chat_DesktopDeviceQuery, bl as Chat_DesktopDevice_DesktopBindingsQuery, bm as Chat_InsightQuery, bn as Chat_Insight_ThumbnailFileQuery, bo as Chat_MessagesQuery, bp as Chat_ProjectQuery, bq as Chat_Project_DesktopBindingQuery, br as Chat_ScheduledMessagesQuery, bs as ChatsQuery, bt as CheckDatabaseConnectionMutation, bu as ClearImageEditContextMutation, bv as ClearMemoryMutation, bw as CloseBrowserTabMutation, bx as CloseShareLinkMutation, by as CommitMessageSuggestion, bz as ComputerActivity, bA as ComputerActivityQuery, bB as ComputerActivitySubBuilder, bC as ComputerActivity_RunsQuery, bD as ComputerRunFile, bE as ComputerRunMessage, bF as ConfirmDatabaseRelationshipsMutation, bG as ConfirmTableRelationshipMutation, bH as ConnectIntegrationMutation, bI as ConnectLocalModelMutation, bJ as ConsumePulseEventsMutation, bK as ContextAnalysis, bL as ContextAnalysisQuery, bM as ContextAnalysisStatus, bN as ContextArea, bO as ContextAreaConnection, bP as ContextAreaOrderByRelevanceFieldEnum, bQ as ContextAreaQuery, bR as ContextAreasQuery, bS as ContextTopic, bT as ContextTopicConnection, bU as ContextTopicKind, bV as ContextTopicOrderByRelevanceFieldEnum, bW as ContextTopicQuery, bX as ContextTopicSubBuilder, bY as ContextTopic_FactsQuery, bZ as ContextTopic_OpenLoopsQuery, b_ as ContextTopicsQuery, b$ as ContinueInterpretationMutation, c0 as CopiedSharedItem, c1 as CopySharedItemMutation, c2 as CorrectContextTopicMutation, c3 as CreateAgentMutation, c4 as CreateAuditDestinationMutation, c5 as CreateCanvasMutation, c6 as CreateChatMutation, c7 as CreateDatabaseMutation, c8 as CreateDlpDictionaryMutation, c9 as CreateDlpProviderMutation, ca as CreateDlpRuleMutation, cb as CreateDocumentMutation, cc as CreateFolderMutation, cd as CreateInsightMutation, ce as CreateIntegrationMutation, cf as CreateIntegrationOutput, cg as CreateProjectMutation, ch as CreateRetentionPolicyMutation, ci as CreateTableMutation, cj as CreateUsagePolicyMutation, ck as CreateUserSkillFileMutation, cl as CreateUserSkillFolderMutation, cm as CreateWebhookEndpointMutation, cn as CreateWorkspaceAiModelSettingMutation, co as CubeModel, cp as CubeModelRevisionsQuery, cq as DataAction, cr as DataActionConnection, cs as DataActionKind, ct as DataActionOrderByRelevanceFieldEnum, cu as DataActionPreview, cv as DataActionPreviewQuery, cw as DataActionQuery, cx as DataActionStatus, cy as DataActionsQuery, cz as DataPurge, cA as DataPurgeKind, cB as DataPurgeStatus, cC as Database, cD as DatabaseCatalog, cE as DatabaseCatalogConnection, cF as DatabaseCatalogOrderByRelevanceFieldEnum, cG as DatabaseCatalogQuery, cH as DatabaseCatalogSubBuilder, cI as DatabaseCatalog_EngineQuery, cJ as DatabaseCatalogsQuery, cK as DatabaseConnection, cL as DatabaseConnectionInfo, cM as DatabaseConnectionStatus, cN as DatabaseEngine, cO as DatabaseOrderByRelevanceFieldEnum, cP as DatabasePreparationQuery, cQ as DatabasePreparationTable, cR as DatabaseQuery, cS as DatabaseReachability, cT as DatabaseRelationship, cU as DatabaseRelationshipDetectionProgressQuery, cV as DatabaseRelationshipDetectionQuery, cW as DatabaseRelationshipEvidence, cX as DatabaseRelationshipSource, cY as DatabaseRelationshipsQuery, cZ as DatabaseSchemaQuery, c_ as DatabaseSourceColumn, c$ as DatabaseSourceTable, d0 as DatabaseSubBuilder, d1 as DatabaseSuggestedQuestionsQuery, d2 as Database_ConnectionInfoQuery, d3 as Database_ConnectionStatusQuery, d4 as Database_EngineQuery, d5 as Database_Engine_CatalogQuery, d6 as Database_SourceTablesQuery, d7 as Database_TablesQuery, d8 as DatabasesQuery, d9 as DecideTaskGoalMutation, da as DeleteAgentMutation, db as DeleteAiProviderSettingMutation, dc as DeleteAuditDestinationMutation, dd as DeleteCanvasIfEmptyMutation, de as DeleteCanvasMutation, df as DeleteChatMutation, dg as DeleteDatabaseMutation, dh as DeleteDlpDictionaryMutation, di as DeleteDlpProviderMutation, dj as DeleteDlpRuleMutation, dk as DeleteDocumentMutation, dl as DeleteEarlierConversationMutation, dm as DeleteFolderMutation, dn as DeleteInsightMutation, dp as DeleteInsightsMutation, dq as DeleteIntegrationMutation, dr as DeleteMemoryFileMutation, ds as DeleteModelConnectionMutation, dt as DeleteProjectMutation, du as DeleteSavedAiProviderModelMutation, dv as DeleteTableAccessRuleMutation, dw as DeleteTableMutation, dx as DeleteUsagePolicyMutation, dy as DeleteUserSkillFileMutation, dz as DeleteUserSkillFolderMutation, dA as DeleteWebhookEndpointMutation, dB as DeletedItem, dC as DeletedItemConnection, dD as DeletedItemKind, dE as DeletedItemOrderByRelevanceFieldEnum, dF as DeletedItemsQuery, dG as DesktopDevice, dH as DesktopDeviceConnection, dI as DesktopDeviceOrderByRelevanceFieldEnum, dJ as DesktopDeviceQuery, dK as DesktopDeviceSubBuilder, dL as DesktopDevice_ChatsQuery, dM as DesktopDevice_DesktopBindingsQuery, dN as DesktopDevicesQuery, dO as DetectDatabaseRelationshipsMutation, dP as DetectImageEditItemsMutation, dQ as DevAccessTokenOutput, dR as DeviceIdentityKey, dS as DeviceIdentityKind, dT as DevicePresenceEvent, dU as DevicePresenceSnapshot, dV as Digest, dW as DigestConnection, dX as DigestOrderByRelevanceFieldEnum, dY as DigestPeriod, dZ as DigestQuery, d_ as DigestStatus, d$ as DigestsQuery, e0 as DisconnectIntegrationAccountMutation, e1 as DisconnectIntegrationMutation, e2 as DisconnectLocalModelMutation, e3 as DismissNpsMutation, e4 as DismissProactiveItemMutation, e5 as DismissPulseEventMutation, e6 as DismissTableRelationshipMutation, e7 as DismissedDatabaseRelationshipsQuery, e8 as DlpAction, e9 as DlpDictionariesQuery, ea as DlpDictionary, eb as DlpDictionaryView, ec as DlpFailMode, ed as DlpHit, ee as DlpProvider, ef as DlpProviderKind, eg as DlpProviderSetting, eh as DlpProviderTestResult, ei as DlpProviderView, ej as DlpProvidersQuery, ek as DlpReportQuery, el as DlpRule, em as DlpRuleKind, en as DlpRuleView, eo as DlpRulesQuery, ep as DlpScope, eq as DlpTriggerCount, er as Document, es as DocumentCatalog, et as DocumentCatalogConnection, eu as DocumentCatalogOrderByRelevanceFieldEnum, ev as DocumentCatalogQuery, ew as DocumentCatalogSubBuilder, ex as DocumentCatalog_FormatQuery, ey as DocumentCatalogsQuery, ez as DocumentConnection, eA as DocumentContent, eB as DocumentFormat, eC as DocumentOrderByRelevanceFieldEnum, eD as DocumentQuery, eE as DocumentReadStatus, eF as DocumentSubBuilder, eG as DocumentVersion, eH as Document_ContentsQuery, eI as Document_FileQuery, eJ as Document_FormatQuery, eK as Document_Format_CatalogQuery, eL as Document_TablesQuery, eM as Document_VersionsQuery, eN as DocumentsQuery, eO as DvinaEventRef, eP as DvinaEventTopic, eQ as DvinaEvents, eR as DvinaModel, eS as DvinaRealtimeEvent, D as DvinaSdk, eT as DvinaSdkBaseOptions, eU as DvinaSdkCallbackOptions, eV as DvinaSdkLifecycle, eW as DvinaSdkLifecycleHint, eX as DvinaSdkOptions, eY as DvinaSdkTokenOptions, eZ as EarlierConversation, e_ as EarlierConversationConnection, e$ as EarlierConversationsQuery, f0 as EnterpriseFeaturesAllPlansQuery, f1 as EntitlementTier, f2 as EntityOpen, f3 as ExecuteChatImportMutation, f4 as Expectation, f5 as ExportAuditLogMutation, f6 as ExportQuery, f7 as ExportUsageReportQuery, f8 as ExportWithInsightIdQuery, f9 as Fact, fa as FactConnection, fb as FactKind, fc as FactOrderByRelevanceFieldEnum, fd as FactOwner, fe as FactStatus, ff as FactTimePrecision, fg as FactsQuery, fh as FeaturePersonLessMutation, fi as FeedActionType, fj as FeedAgentData, fk as FeedCanvasData, fl as FeedConnection, fm as FeedDatabaseData, fn as FeedDocumentData, fo as FeedInsightData, fp as FeedIntegrationData, fq as FeedItem, fr as FeedItemGenerated, fs as FeedItemKind, ft as FeedItemOrderByRelevanceFieldEnum, fu as FeedItemQuery, fv as FeedItemSubBuilder, fw as FeedItem_ActionQuery, fx as FeedItem_DataQuery, fy as FeedItemsQuery, fz as FeedKeptData, fA as FeedMediaData, fB as FeedProjectData, fC as FeedPulseData, fD as FeedSendMessageAction, fE as FeedSkillData, fF as Feedback, fG as FeedbackCategory, fH as FeedbackOrderByRelevanceFieldEnum, fI as FeedbackReason, fJ as FeedbackType, fK as File, fL as FileArchiveUrl, fM as FileArchiveUrlQuery, fN as FileMetaQuery, fO as FileModel, fP as FileQuery, fQ as FileUrlVariant, fR as FileUrlsQuery, fS as FindFitTierQuery, fT as FocusBrowserTabMutation, fU as Folder, fV as FolderConnection, fW as FolderOrderByRelevanceFieldEnum, fX as FolderQuery, fY as FoldersQuery, fZ as ForgetBrowserLoginsMutation, f_ as ForgetContextTopicMutation, f$ as ForgetKeptItemsMutation, g0 as ForgetPersonMutation, g1 as ForgetPersonResult, g2 as GeneralAccess, g3 as GenerateUploadUriMutation, g4 as GetCapabilityQuery, g5 as GetDevAccessTokenQuery, g6 as GetLimitQuery, g7 as GetRemainingQuery, g8 as GetTokenUsageByModelQuery, g9 as GetTokenUsageHistoryQuery, ga as GetUsageQuery, gb as GrantAgentApprovalMutation, gc as GrantChatApprovalMutation, gd as HasLegalHoldsQuery, ge as HideSharedItemMutation, gf as ImageEditContextQuery, gg as ImageEditItem, gh as ImageEditItemShape, gi as ImportReminderQuery, gj as ImportUserSkillMutation, gk as Insight, gl as InsightConnection, gm as InsightOrderByRelevanceFieldEnum, gn as InsightQuery, go as InsightSubBuilder, gp as Insight_ChatQuery, gq as Insight_Chat_DesktopDeviceQuery, gr as Insight_Chat_ProjectQuery, gs as Insight_ThumbnailFileQuery, gt as InsightsQuery, gu as InstallLocalModelMutation, gv as Integration, gw as IntegrationCatalog, gx as IntegrationCatalogConnection, gy as IntegrationCatalogOrderByRelevanceFieldEnum, gz as IntegrationCatalogQuery, gA as IntegrationCatalogSubBuilder, gB as IntegrationCatalogToolsQuery, gC as IntegrationCatalog_ProviderQuery, gD as IntegrationCatalogsQuery, gE as IntegrationConnection, gF as IntegrationOrderByRelevanceFieldEnum, gG as IntegrationProvider, gH as IntegrationQuery, gI as IntegrationStatus, gJ as IntegrationSubBuilder, gK as Integration_ProviderQuery, gL as Integration_Provider_CatalogQuery, gM as IntegrationsQuery, gN as Interpretation, gO as InterpretationConnection, gP as InterpretationOrderByRelevanceFieldEnum, gQ as InterpretationType, gR as InterpretationsQuery, gS as KeepMutation, gT as KeptItem, gU as KeptItemsListQuery, gV as KeptItemsQuery, gW as KeptKind, gX as KeptSource, gY as LegalHold, gZ as LegalHoldAreasQuery, g_ as LegalHoldConnection, g$ as LegalHoldOrderByRelevanceFieldEnum, h0 as LegalHoldsConnectionQuery, h1 as LimitType, h2 as LiveActivityTarget, h3 as LocalModelCatalogView, h4 as LocalModelConnectionView, h5 as LocalModelDeviceView, h6 as LocalModelEngineView, h7 as LocalModelInstallView, h8 as LocalModelServerView, h9 as LocalModelSettings, ha as LocalModelSettingsQuery, hb as LocalModelSettings_ConnectionsQuery, hc as LocalModelSettings_DevicesQuery, hd as LocalModelView, he as MainChatQuery, hf as MainChat_AgentsQuery, hg as MainChat_DesktopDeviceQuery, hh as MainChat_DesktopDevice_DesktopBindingsQuery, hi as MainChat_InsightQuery, hj as MainChat_Insight_ThumbnailFileQuery, hk as MainChat_MessagesQuery, hl as MainChat_ProjectQuery, hm as MainChat_Project_DesktopBindingQuery, hn as MainChat_ScheduledMessagesQuery, ho as ManagedChatModelsQuery, hp as MarkBriefSeenMutation, hq as MarkChatSeenMutation, hr as MarkOpenedMutation, hs as MarkProactiveItemActedMutation, ht as MarkProactiveItemSeenMutation, hu as MarkSharedItemSeenMutation, hv as McpAuthEvent, hw as McpAuthRequest, hx as McpAuthSnapshot, hy as McpClientInformation, hz as McpCodeVerifier, hA as McpServer, hB as McpServerConnection, hC as McpServerOrderByRelevanceFieldEnum, hD as McpServerTestOutput, hE as McpTokens, hF as MemberAttributeKeysQuery, hG as MemberAttributesQuery, hH as MemberHandoverPlan, hI as MemberIntegration, hJ as MemberIntegrationKind, hK as MemberIntegrationsQuery, hL as MemoryFile, hM as MemoryFilesQuery, hN as MemorySettingQuery, hO as MemorySettings, hP as MergePeopleMutation, hQ as ModelChoice, hR as ModelConnection, hS as ModelConnectionAddress, hT as ModelConnectionAddressView, hU as ModelConnectionView, hV as ModelHealthView, hW as ModelRoleView, hX as ModelSettings, hY as ModelSettingsQuery, hZ as ModelSettings_ChoicesQuery, h_ as ModelSettings_ConnectionsQuery, h$ as ModelSettings_PolicyQuery, i0 as ModelSettings_RolesQuery, i1 as ModelTokenUsage, i2 as Notification, i3 as NotificationCategory, i4 as NotificationConnection, i5 as NotificationOrderByRelevanceFieldEnum, i6 as NotificationPreference, i7 as NotificationPreferenceConnection, i8 as NotificationPreferenceOrderByRelevanceFieldEnum, i9 as NotificationPreferenceOutput, ia as NotificationPreferencesConnectionQuery, ib as NotificationPriority, ic as NotificationQuery, id as NotificationStatus, ie as NotificationsByReferenceQuery, ig as NotificationsQuery, ih as NotifyInvitationMutation, ii as NpsResponse, ij as NpsStatus, ik as NpsStatusQuery, il as NullsOrder, im as OpenLoopSide, io as OpenLoopsQuery, ip as Origin, iq as OutsideLink, ir as OutsideShare, is as OutsideSharesQuery, it as OutsideShares_LinksQuery, iu as OutsideShares_PeopleQuery, iv as OutsideSharing, iw as PauseLocalModelInstallMutation, ix as PauseScheduledMessageMutation, iy as PeopleQuery, iz as Person, iA as PersonConnection, iB as PersonFact, iC as PersonFactConnection, iD as PersonFactOrderByRelevanceFieldEnum, iE as PersonFactsQuery, iF as PersonImage, iG as PersonImageKind, iH as PersonKind, iI as PersonKnownFact, iJ as PersonMeeting, iK as PersonMoment, iL as PersonObject, iM as PersonObjectOrderByRelevanceFieldEnum, iN as PersonObjectStatus, iO as PersonOrderByRelevanceFieldEnum, iP as PersonPhoto, iQ as PersonPhotoSource, iR as PersonQuery, iS as PersonSubBuilder, iT as Person_FactsQuery, iU as Person_ImageQuery, iV as Person_MomentsQuery, iW as Person_NextMeetingQuery, iX as Person_NextMeeting_PlaceQuery, iY as Person_ObjectQuery, iZ as Person_ObjectsQuery, i_ as Person_PhotoQuery, i$ as Person_PlaceQuery, j0 as Place, j1 as PlaceConnection, j2 as PlaceLegalHoldMutation, j3 as PlaceOrderByRelevanceFieldEnum, j4 as PlacePointSource, j5 as PlacePrecision, j6 as PlacesQuery, j7 as PlanMemberHandoverMutation, j8 as PrepareProactiveItemMutation, j9 as Presentation, ja as PreviewChatImportMutation, jb as PreviewUserSkillImportMutation, jc as PrivacyStats, jd as PrivacyStatsQuery, je as PrivateMcpServersConnectionQuery, jf as ProactiveAgentProposal, jg as ProactiveBudget, jh as ProactiveBudgetQuery, ji as ProactiveBudget_ByDetectorQuery, jj as ProactiveBudget_GateByDetectorQuery, jk as ProactiveCardValue, jl as ProactiveDetectorSpend, jm as ProactiveGateDecisions, jn as ProactiveItem, jo as ProactiveItemConnection, jp as ProactiveItemOrderByRelevanceFieldEnum, jq as ProactiveItemQuery, jr as ProactiveItemSubBuilder, js as ProactiveItem_ValueQuery, jt as ProactiveItemsConnectionQuery, ju as ProactiveLevel, jv as ProactiveNotUsefulReason, jw as ProactiveRun, jx as ProactiveSetting, jy as ProactiveSettingQuery, jz as ProactiveSettings, jA as Project, jB as ProjectConnection, jC as ProjectDesktopBinding, jD as ProjectDesktopBindingOrderByRelevanceFieldEnum, jE as ProjectDesktopContextKind, jF as ProjectOrderByRelevanceFieldEnum, jG as ProjectQuery, jH as ProjectSource, jI as ProjectSubBuilder, jJ as Project_ChatsQuery, jK as Project_DesktopBindingQuery, jL as Project_DesktopBinding_DeviceQuery, jM as ProjectsQuery, jN as ProposeProactiveAgentMutation, jO as PulseAppSummaryModel, jP as PulseAppSummaryQuery, jQ as PulseEvent, jR as PulseEventConnection, jS as PulseEventKind, jT as PulseEventOrderByRelevanceFieldEnum, jU as PulseEventPriority, jV as PulseEventQuery, jW as PulseEventSubBuilder, jX as PulseEvent_IntegrationQuery, jY as PulseEvent_Integration_ProviderQuery, jZ as PulseEventsQuery, j_ as PulseTriggerSettingModel, j$ as PulseTriggerSettingsQuery, k0 as PushTarget, k1 as QueryMode, k2 as QueryQuery, k3 as QueryWithInsightIdQuery, k4 as RateProactiveItemNotUsefulMutation, k5 as RealtimeSnapshotCache, k6 as RealtimeTopicData, k7 as ReanalyzeDocumentMutation, k8 as ReasoningEffort, k9 as ReconnectIntegrationAccountMutation, ka as RefineAgentInstructionMutation, kb as RefineSkillInstructionMutation, kc as RefreshDatabaseSchemaMutation, kd as RefreshInsightMutation, ke as RegisterDesktopDeviceMutation, kf as RegisterLiveActivityTargetMutation, kg as RegisterPushTargetMutation, kh as ReinterpretSourceMutation, ki as ReinterpretSourcesOfuserMutation, kj as RejectTopicFactMutation, kk as Relation, kl as RelationType, km as RelationshipDetectionProgress, kn as RelationshipDetectionStatus, ko as ReleaseLegalHoldMutation, kp as RemindImportMutation, kq as RemindWhenUsageResetsMutation, kr as RemoveBrowserFavoriteMutation, ks as RemoveChatMessagesMutation, kt as RemoveLocalModelMutation, ku as RemoveMcpServerMutation, kv as RemovePersonPhotoMutation, kw as RenameCanvasMutation, kx as RenameContextAreaMutation, ky as RenameIntegrationAccountMutation, kz as RenamePersonMutation, kA as RenewShareLinkMutation, kB as RepairUserSkillManifestMutation, kC as ReplaceDlpDictionaryMutation, kD as ReplaceUserSkillFileContentMutation, kE as ReportMessageMutation, kF as RequestDataActionMutation, kG as RequestWorkspaceExportMutation, kH as ResetWorkspaceMutation, kI as ResolvePulseEventMutation, kJ as ResolvedFileUrl, kK as RespondChatApprovalMutation, kL as RestoreCanvasVersionMutation, kM as RestoreCubeModelRevisionMutation, kN as RestoreDocumentVersionMutation, kO as RestoreItemMutation, kP as RestorePlacement, kQ as RestoreTableRelationshipMutation, kR as RestoredItem, kS as ResumeDatabasePreparationMutation, kT as ResumeScheduledMessageMutation, kU as RetentionArea, kV as RetentionPoliciesConnectionQuery, kW as RetentionPolicy, kX as RetentionPolicyConnection, kY as RetentionPolicyOrderByRelevanceFieldEnum, kZ as ReviewContextTopicMutation, k_ as RevokeMemberIntegrationMutation, k$ as RevokeOutsideSharesMutation, l0 as RotateModelConnectionKeyMutation, l1 as RotateWebhookEndpointSecretMutation, l2 as SaveTableAccessRuleMutation, l3 as SaveWidgetMutation, l4 as ScheduleMessageMutation, l5 as ScheduleWorkspaceDeletionMutation, l6 as ScheduledAgentRun, l7 as ScheduledAgentRunConnection, l8 as ScheduledDelivery, l9 as ScheduledMessage, la as ScheduledMessageAuthor, lb as ScheduledMessageConnection, lc as ScheduledMessageOrderByRelevanceFieldEnum, ld as ScheduledMessageQuery, le as ScheduledMessageRun, lf as ScheduledMessageStatus, lg as ScheduledMessageSubBuilder, lh as ScheduledMessage_AgentQuery, li as ScheduledMessage_ChatQuery, lj as ScheduledMessage_Chat_DesktopDeviceQuery, lk as ScheduledMessage_Chat_InsightQuery, ll as ScheduledMessage_Chat_ProjectQuery, lm as ScheduledMessage_RecentRunsQuery, ln as ScheduledMessagesQuery, lo as ScheduledRunTrigger, lp as SendAgentCopyMutation, lq as SendAuditDestinationNowMutation, lr as SendChatMessageWhileRunningMutation, ls as SendFeedbackMutation, lt as SendScheduledMessageNowMutation, lu as SendTestPushMutation, lv as SetAuditDestinationPausedMutation, lw as SetBrowserLoginSyncExcludedMutation, lx as SetBrowserLoginSyncMutation, ly as SetDatabasePrimaryKeyMutation, lz as SetDefaultIntegrationAccountMutation, lA as SetDlpBuiltinRuleMutation, lB as SetGeneralAccessMutation, lC as SetImageEditContextMutation, lD as SetMemberAttributeKeysMutation, lE as SetMemberAttributesMutation, lF as SetMemoryEnabledMutation, lG as SetShareLinkExpiryMutation, lH as SetTableColumnTypeMutation, lI as SetToolApprovalModeMutation, lJ as SetUserSkillEnabledMutation, lK as SetWorkspaceModelPolicyMutation, lL as SetWorkspaceModelRoleMutation, lM as SetupInterest, lN as ShareAccess, lO as ShareAccessQuery, lP as ShareAccess_SharedByQuery, lQ as ShareAccess_SharedBy_InheritedFromQuery, lR as ShareAction, lS as ShareCandidates, lT as ShareCandidatesQuery, lU as ShareCandidates_MembersQuery, lV as ShareCheck, lW as ShareCheckQuery, lX as ShareCheckStatus, lY as ShareCheck_NarrowingsQuery, lZ as ShareEvent, l_ as ShareInheritance, l$ as ShareLink, m0 as ShareLinkExpiry, m1 as ShareLinkInfo, m2 as ShareMember, m3 as ShareMutation, m4 as ShareNarrowedTable, m5 as ShareNarrowing, m6 as ShareRecipientKind, m7 as ShareRole, m8 as ShareState, m9 as ShareStateQuery, ma as ShareState_LinkQuery, mb as ShareState_MembersQuery, mc as ShareState_OwnerQuery, md as ShareState_Owner_InheritedFromQuery, me as ShareableKind, mf as SharedByMeQuery, mg as SharedContainerKind, mh as SharedContent, mi as SharedContentsQuery, mj as SharedItem, mk as SharedItemConnection, ml as SharedItemView, mm as SharedMark, mn as SharedPreview, mo as SharedWithMeQuery, mp as SharingEnabledQuery, mq as SkillCatalogItem, mr as SkillCatalogQuery, ms as SkillCatalogSource, mt as SkillUsage, mu as SnoozeProactiveItemMutation, mv as SortOrder, mw as StartChatDayMutation, mx as StopChatMutation, my as StopDatabaseRelationshipDetectionMutation, mz as SubmitNpsMutation, mA as SuggestCommitMessageMutation, mB as SurfaceSnapshotQuery, mC as SyncEvent, mD as SyncEventCursor, mE as SyncProjectDesktopBindingMutation, mF as Table, mG as TableAccess, mH as TableAccessLogQuery, mI as TableAccessLog_EntriesQuery, mJ as TableAccessPrincipal, mK as TableAccessQuery, mL as TableAccessRule, mM as TableAccessRuleSaved, mN as TableAccessSubBuilder, mO as TableAccess_RulesQuery, mP as TableConnection, mQ as TableOrderByRelevanceFieldEnum, mR as TableQuery, mS as TableStatus, mT as TableSubBuilder, mU as TableSuggestedQuestionsQuery, mV as Table_DatabaseQuery, mW as Table_Database_ConnectionInfoQuery, mX as Table_Database_ConnectionStatusQuery, mY as Table_Database_EngineQuery, mZ as Table_Database_SourceTablesQuery, m_ as Table_DocumentQuery, m$ as Table_Document_ContentsQuery, n0 as Table_Document_FileQuery, n1 as Table_Document_FormatQuery, n2 as Table_Document_VersionsQuery, n3 as Table_FromRelationsQuery, n4 as Table_ModelQuery, n5 as Table_ToRelationsQuery, n6 as TablesQuery, n7 as TaskGoalDecision, n8 as TaskJob, n9 as TaskJobConnection, na as TaskJobOrderByRelevanceFieldEnum, nb as TaskJobStatus, nc as TaskJobsQuery, nd as TestDlpProviderMutation, ne as TestDlpRulesQuery, nf as TestLocalModelMutation, ng as TestMcpServerConnectionMutation, nh as TestMcpServerMutation, ni as TestModelConnectionMutation, nj as TestScheduledMessageMutation, nk as TokenUsage, nl as TokenUsageConnection, nm as TokenUsageLimitState, nn as TokenUsageOrderByRelevanceFieldEnum, no as TokenUsageStatusEvent, np as TokenUsageStatusSnapshot, nq as TokenUsageWindowSnapshot, nr as TokenUsagesQuery, ns as ToolApprovalMode, nt as ToolApprovalModeQuery, nu as ToolApprovalSetting, nv as TopicActivitiesQuery, nw as TopicActivity, nx as TopicActivityConnection, ny as TopicActivityOrderByRelevanceFieldEnum, nz as TopicFact, nA as TopicFactSource, nB as TopicLink, nC as Trip, nD as TripConnection, nE as TripOrderByRelevanceFieldEnum, nF as TripsQuery, nG as UndoCanvasTurnMutation, nH as UnlinkPersonFactMutation, nI as UnregisterLiveActivityTargetMutation, nJ as UnregisterPushTargetMutation, nK as UnsendWaitingChatMessageMutation, nL as UnshareMutation, nM as UpdateAgentMutation, nN as UpdateBrowserSettingsMutation, nO as UpdateCanvasMutation, nP as UpdateChatMutation, nQ as UpdateDatabaseMutation, nR as UpdateDlpProviderMutation, nS as UpdateDlpRuleMutation, nT as UpdateDocumentMutation, nU as UpdateFolderMutation, nV as UpdateInsightMutation, nW as UpdateInsightThumbnailMutation, nX as UpdateInterpMutation, nY as UpdateMemoryFileMutation, nZ as UpdateNotificationPreferenceMutation, n_ as UpdateNotificationPreferencesMutation, n$ as UpdateProactiveSettingMutation, o0 as UpdateProjectMutation, o1 as UpdatePulseTriggerMutation, o2 as UpdateRetentionPolicyMutation, o3 as UpdateScheduledMessageMutation, o4 as UpdateShareRoleMutation, o5 as UpdateTableMutation, o6 as UpdateUsagePolicyMutation, o7 as UpdateUserSetupMutation, o8 as UpdateUserSkillFileMutation, o9 as UpdateUserSkillFolderMutation, oa as UpdateWebhookEndpointMutation, ob as UpdateWorkspaceAiModelSettingMutation, oc as UpdateWorkspacePolicyMutation, od as UpdateWorkspaceUsageSettingsMutation, oe as UpgradeCubeModelSemanticsMutation, of as UploadFormat, og as UploadFormatKind, oh as UploadFormatsQuery, oi as UploadOptions, oj as UploadProgressEvent, ok as UploadResult, ol as UpsertAiProviderSettingMutation, om as UpsertModelConnectionMutation, on as UsageHistoryGranularity, oo as UsageLimitHit, op as UsageLimitHitConnection, oq as UsageLimitHitOrderByRelevanceFieldEnum, or as UsageLimitHitsQuery, os as UsagePlan, ot as UsagePlansQuery, ou as UsagePoliciesConnectionQuery, ov as UsagePolicy, ow as UsagePolicyAssignee, ox as UsagePolicyAssignment, oy as UsagePolicyAssignmentConnection, oz as UsagePolicyAssignmentOrderByRelevanceFieldEnum, oA as UsagePolicyAssignmentsConnectionQuery, oB as UsagePolicyConnection, oC as UsagePolicyEntry, oD as UsagePolicyOrderByRelevanceFieldEnum, oE as UsagePolicySubject, oF as UsagePool, oG as UsagePoolExhausted, oH as UsageReport, oI as UsageReportExport, oJ as UsageReportLine, oK as UsageReportQuery, oL as UsageReport_ModelsQuery, oM as UsageReport_PeopleQuery, oN as UsageReport_TeamsQuery, oO as UsageSettingsQuery, oP as UsageWindowsStatusType, oQ as UsePersonPhotoMutation, oR as UserAiProviderSetting, oS as UserFeedback, oT as UserMemorySetting, oU as UserNotification, oV as UserNotificationEvent, oW as UserNotificationSnapshot, oX as UserSetup, oY as UserSetupQuery, oZ as UserSetupState, o_ as UserSkillFile, o$ as UserSkillFileModel, p0 as UserSkillFileQuery, p1 as UserSkillFilesQuery, p2 as UserSkillFolder, p3 as UserSkillFolderModel, p4 as UserSkillFolderQuery, p5 as UserSkillFolderSubBuilder, p6 as UserSkillFolder_ManifestErrorQuery, p7 as UserSkillFoldersQuery, p8 as UserSkillImportItemModel, p9 as UserSkillImportPreviewModel, pa as UserSkillIssueModel, pb as WatchContextTopicMutation, pc as WebhookEndpoint, pd as WebhookEndpointCreated, pe as WebhookEndpointsQuery, pf as WeeklyObjectQuery, pg as WindowDetailType, ph as WorkspaceAiModelSetting, pi as WorkspaceAiModelSettingQuery, pj as WorkspaceDeleteSchedule, pk as WorkspaceDeletionScheduleQuery, pl as WorkspaceMembership, pm as WorkspaceMembershipsQuery, pn as WorkspaceModelPolicy, po as WorkspaceModelRole, pp as WorkspacePolicy, pq as WorkspacePolicyQuery, pr as WorkspaceSeats, ps as WorkspaceSeatsQuery, pt as WorkspaceUsage, pu as WorkspaceUsageSettings, pv as WorkspaceUsageSettingsQuery, pw as WorkspaceUsageSettings_PoolQuery, px as createDvinaClient, py as createDvinaEvents, pz as uploadFile } from './_generated_sdk-CMF68az0.js';
5
- import { a as DvinaAuthenticationError, b as DvinaForbiddenError } from './error-aFALORBM.js';
6
- export { D as DvinaError, d as DvinaGraphQLError, c as DvinaNetworkError, e as DvinaNotFoundError, f as DvinaPlanRestrictionError, g as DvinaTokenLimitError, G as GRAPHQL_ERROR_CODES, h as GraphQLErrorEntry, i as createGraphQLError, j as extractErrorCode } from './error-aFALORBM.js';
7
- import { c as createHttpTransport, D as DvinaDatabase, b as SseRealtimeEvent, S as SyncEngine, d as CacheRule } from './connection-DkvWhViN.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 deleteUserLocalData, u as getOrCreateDatabase } from './connection-DkvWhViN.js';
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-CEEffwAc.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 AppSuggestions, F as AppSuggestionsQuery, G as ApplyArtifactDataMutation, H as AreaRetention, J as ArtifactDataChangedDoc, K as ArtifactDataOpKind, L as ArtifactDataQuery, M as ArtifactDataResult, N as ArtifactDataSnapshot, O as AssignUsagePolicyMutation, P as AttentionEntry, Q as AttentionQuery, R as AuditActorKind, S as AuditDeliveryStatus, T as AuditDestination, U as AuditDestinationCreated, V as AuditDestinationKind, W as AuditDestinationsQuery, X as AuditExportFormat, Y as AuditLogEntry, Z as AuditLogExport, _ as AuditLogPage, $ as AuditLogQuery, a0 as AuditLog_EntriesQuery, a1 as AuditPayloadFormat, a2 as AuthzChange, a3 as BillingConnection, a4 as BillingConnectionQuery, a5 as BillingConnectionState, a6 as BillingSubscriptionEvent, a7 as BillingSubscriptionSnapshot, a8 as BrowserFavorite, a9 as BrowserFavoriteConnection, aa as BrowserFavoriteOrderByRelevanceFieldEnum, ab as BrowserFavoritesQuery, ac as BrowserLoginSync, ad as BrowserLoginSyncQuery, ae as BrowserProfile, af as BrowserSettings, ag as BrowserSettingsQuery, ah as BrowserSettings_SitesQuery, ai as BrowserSite, aj as BrowserTab, ak as BrowserTabConnection, al as BrowserTabOrderByRelevanceFieldEnum, am as BrowserTabState, an as BrowserTabsQuery, ao as BrowserVisit, ap as BrowserVisitConnection, aq as BrowserVisitOrderByRelevanceFieldEnum, ar as BrowserVisitsQuery, as as CancelDataActionMutation, at as CancelImportReminderMutation, au as CancelOauthFlowMutation, av as CancelScheduledMessageMutation, aw as CancelWorkspaceDeletionMutation, ax as Canvas, ay as CanvasConnection, az as CanvasEditOrigin, aA as CanvasKind, aB as CanvasOrderByRelevanceFieldEnum, aC as CanvasQuery, aD as CanvasSubBuilder, aE as CanvasVersion, aF as CanvasVersionsQuery, aG as Canvas_ThumbnailFileQuery, aH as Canvas_VersionsQuery, aI as CanvasesQuery, aJ as CapabilityType, aK as CertificateInfo, aL as ChangePersonObjectMutation, aM as Chat, aN as ChatConnection, aO as ChatDay, aP as ChatDaysQuery, aQ as ChatIdleOutcome, aR as ChatImportExecuteOutput, aS as ChatImportPreviewOutput, C as ChatMessage, a as ChatMessageConnection, aT as ChatMessageOrderByRelevanceFieldEnum, aU as ChatMessageQuery, aV as ChatMessageRoleEnum, aW as ChatMessageSubBuilder, aX as ChatMessageToolOutputQuery, aY as ChatMessage_ChatQuery, aZ as ChatMessage_Chat_DesktopDeviceQuery, a_ as ChatMessage_Chat_InsightQuery, a$ as ChatMessage_Chat_ProjectQuery, b0 as ChatMessage_FeedbackQuery, b1 as ChatMessage_ReferencedChatQuery, b2 as ChatMessage_ReferencedChat_DesktopDeviceQuery, b3 as ChatMessage_ReferencedChat_InsightQuery, b4 as ChatMessage_ReferencedChat_ProjectQuery, b5 as ChatMessage_RepliesQuery, b6 as ChatMessage_ThreadQuery, b7 as ChatMessagesAroundQuery, b8 as ChatMessagesQuery, b9 as ChatNextPromptMutation, ba as ChatOrderByRelevanceFieldEnum, bb as ChatQuery, bc as ChatReadState, bd as ChatSourceImportFidelityEnum, be as ChatSourceImportModeEnum, bf as ChatSourceProviderEnum, bg as ChatSubBuilder, bh as ChatThread, bi as ChatThreadOrderByRelevanceFieldEnum, bj as ChatWaitingOn, bk as ChatWorkspaceMode, bl as Chat_AgentsQuery, bm as Chat_DesktopDeviceQuery, bn as Chat_DesktopDevice_DesktopBindingsQuery, bo as Chat_InsightQuery, bp as Chat_Insight_ThumbnailFileQuery, bq as Chat_MessagesQuery, br as Chat_ProjectQuery, bs as Chat_Project_DesktopBindingQuery, bt as Chat_ScheduledMessagesQuery, bu as ChatsQuery, bv as CheckDatabaseConnectionMutation, bw as ClearImageEditContextMutation, bx as ClearMemoryMutation, by as CloseBrowserTabMutation, bz as CloseShareLinkMutation, bA as CommitMessageSuggestion, bB as ComputerActivity, bC as ComputerActivityQuery, bD as ComputerActivitySubBuilder, bE as ComputerActivity_RunsQuery, bF as ComputerRunFile, bG as ComputerRunMessage, bH as ConfirmDatabaseRelationshipsMutation, bI as ConfirmTableRelationshipMutation, bJ as ConnectIntegrationMutation, bK as ConnectLocalModelMutation, bL as ConsumePulseEventsMutation, bM as ContextAnalysis, bN as ContextAnalysisQuery, bO as ContextAnalysisStatus, bP as ContextArea, bQ as ContextAreaConnection, bR as ContextAreaOrderByRelevanceFieldEnum, bS as ContextAreaQuery, bT as ContextAreasQuery, bU as ContextTopic, bV as ContextTopicConnection, bW as ContextTopicKind, bX as ContextTopicOrderByRelevanceFieldEnum, bY as ContextTopicQuery, bZ as ContextTopicSubBuilder, b_ as ContextTopic_FactsQuery, b$ as ContextTopic_OpenLoopsQuery, c0 as ContextTopicsQuery, c1 as ContinueInterpretationMutation, c2 as CopiedSharedItem, c3 as CopySharedItemMutation, c4 as CorrectContextTopicMutation, c5 as CreateAgentMutation, c6 as CreateAuditDestinationMutation, c7 as CreateCanvasMutation, c8 as CreateChatMutation, c9 as CreateDatabaseMutation, ca as CreateDlpDictionaryMutation, cb as CreateDlpProviderMutation, cc as CreateDlpRuleMutation, cd as CreateDocumentMutation, ce as CreateFolderMutation, cf as CreateInsightMutation, cg as CreateIntegrationMutation, ch as CreateIntegrationOutput, ci as CreateProjectMutation, cj as CreateRetentionPolicyMutation, ck as CreateTableMutation, cl as CreateUsagePolicyMutation, cm as CreateUserSkillFileMutation, cn as CreateUserSkillFolderMutation, co as CreateWebhookEndpointMutation, cp as CreateWorkspaceAiModelSettingMutation, cq as CubeModel, cr as CubeModelRevisionsQuery, cs as DataAction, ct as DataActionConnection, cu as DataActionKind, cv as DataActionOrderByRelevanceFieldEnum, cw as DataActionPreview, cx as DataActionPreviewQuery, cy as DataActionQuery, cz as DataActionStatus, cA as DataActionsQuery, cB as DataPurge, cC as DataPurgeKind, cD as DataPurgeStatus, cE as Database, cF as DatabaseCatalog, cG as DatabaseCatalogConnection, cH as DatabaseCatalogOrderByRelevanceFieldEnum, cI as DatabaseCatalogQuery, cJ as DatabaseCatalogSubBuilder, cK as DatabaseCatalog_EngineQuery, cL as DatabaseCatalogsQuery, cM as DatabaseConnection, cN as DatabaseConnectionInfo, cO as DatabaseConnectionStatus, cP as DatabaseEngine, cQ as DatabaseOrderByRelevanceFieldEnum, cR as DatabasePreparationQuery, cS as DatabasePreparationTable, cT as DatabaseQuery, cU as DatabaseReachability, cV as DatabaseRelationship, cW as DatabaseRelationshipDetectionProgressQuery, cX as DatabaseRelationshipDetectionQuery, cY as DatabaseRelationshipEvidence, cZ as DatabaseRelationshipSource, c_ as DatabaseRelationshipsQuery, c$ as DatabaseSchemaQuery, d0 as DatabaseSourceColumn, d1 as DatabaseSourceTable, d2 as DatabaseSubBuilder, d3 as DatabaseSuggestedQuestionsQuery, d4 as Database_ConnectionInfoQuery, d5 as Database_ConnectionStatusQuery, d6 as Database_EngineQuery, d7 as Database_Engine_CatalogQuery, d8 as Database_SourceTablesQuery, d9 as Database_TablesQuery, da as DatabasesQuery, db as DecideTaskGoalMutation, dc as DeleteAgentMutation, dd as DeleteAiProviderSettingMutation, de as DeleteAuditDestinationMutation, df as DeleteCanvasIfEmptyMutation, dg as DeleteCanvasMutation, dh as DeleteChatMutation, di as DeleteDatabaseMutation, dj as DeleteDlpDictionaryMutation, dk as DeleteDlpProviderMutation, dl as DeleteDlpRuleMutation, dm as DeleteDocumentMutation, dn as DeleteEarlierConversationMutation, dp as DeleteFolderMutation, dq as DeleteInsightMutation, dr as DeleteInsightsMutation, ds as DeleteIntegrationMutation, dt as DeleteMemoryFileMutation, du as DeleteModelConnectionMutation, dv as DeleteProjectMutation, dw as DeleteSavedAiProviderModelMutation, dx as DeleteTableAccessRuleMutation, dy as DeleteTableMutation, dz as DeleteUsagePolicyMutation, dA as DeleteUserSkillFileMutation, dB as DeleteUserSkillFolderMutation, dC as DeleteWebhookEndpointMutation, dD as DeletedItem, dE as DeletedItemConnection, dF as DeletedItemKind, dG as DeletedItemOrderByRelevanceFieldEnum, dH as DeletedItemsQuery, dI as DesktopDevice, dJ as DesktopDeviceConnection, dK as DesktopDeviceOrderByRelevanceFieldEnum, dL as DesktopDeviceQuery, dM as DesktopDeviceSubBuilder, dN as DesktopDevice_ChatsQuery, dO as DesktopDevice_DesktopBindingsQuery, dP as DesktopDevicesQuery, dQ as DetectDatabaseRelationshipsMutation, dR as DetectImageEditItemsMutation, dS as DevAccessTokenOutput, dT as DeviceIdentityKey, dU as DeviceIdentityKind, dV as DevicePresenceEvent, dW as DevicePresenceSnapshot, dX as Digest, dY as DigestConnection, dZ as DigestOrderByRelevanceFieldEnum, d_ as DigestPeriod, d$ as DigestQuery, e0 as DigestStatus, e1 as DigestsQuery, e2 as DisconnectIntegrationAccountMutation, e3 as DisconnectIntegrationMutation, e4 as DisconnectLocalModelMutation, e5 as DismissNpsMutation, e6 as DismissProactiveItemMutation, e7 as DismissPulseEventMutation, e8 as DismissTableRelationshipMutation, e9 as DismissedDatabaseRelationshipsQuery, ea as DlpAction, eb as DlpDictionariesQuery, ec as DlpDictionary, ed as DlpDictionaryView, ee as DlpFailMode, ef as DlpHit, eg as DlpProvider, eh as DlpProviderKind, ei as DlpProviderSetting, ej as DlpProviderTestResult, ek as DlpProviderView, el as DlpProvidersQuery, em as DlpReportQuery, en as DlpRule, eo as DlpRuleKind, ep as DlpRuleView, eq as DlpRulesQuery, er as DlpScope, es as DlpTriggerCount, et as Document, eu as DocumentCatalog, ev as DocumentCatalogConnection, ew as DocumentCatalogOrderByRelevanceFieldEnum, ex as DocumentCatalogQuery, ey as DocumentCatalogSubBuilder, ez as DocumentCatalog_FormatQuery, eA as DocumentCatalogsQuery, eB as DocumentConnection, eC as DocumentContent, eD as DocumentFormat, eE as DocumentOrderByRelevanceFieldEnum, eF as DocumentQuery, eG as DocumentReadStatus, eH as DocumentSubBuilder, eI as DocumentVersion, eJ as Document_ContentsQuery, eK as Document_FileQuery, eL as Document_FormatQuery, eM as Document_Format_CatalogQuery, eN as Document_TablesQuery, eO as Document_VersionsQuery, eP as DocumentsQuery, eQ as DvinaEventRef, eR as DvinaEventTopic, eS as DvinaEvents, eT as DvinaModel, eU as DvinaRealtimeEvent, D as DvinaSdk, eV as DvinaSdkBaseOptions, eW as DvinaSdkCallbackOptions, eX as DvinaSdkLifecycle, eY as DvinaSdkLifecycleHint, eZ as DvinaSdkOptions, e_ as DvinaSdkTokenOptions, e$ as EarlierConversation, f0 as EarlierConversationConnection, f1 as EarlierConversationsQuery, f2 as EnterpriseFeaturesAllPlansQuery, f3 as EntitlementTier, f4 as EntityOpen, f5 as ExecuteChatImportMutation, f6 as Expectation, f7 as ExportAuditLogMutation, f8 as ExportQuery, f9 as ExportUsageReportQuery, fa as ExportWithInsightIdQuery, fb as Fact, fc as FactConnection, fd as FactKind, fe as FactOrderByRelevanceFieldEnum, ff as FactOwner, fg as FactStatus, fh as FactTimePrecision, fi as FactsQuery, fj as FeaturePersonLessMutation, fk as FeedActionType, fl as FeedAgentData, fm as FeedCanvasData, fn as FeedConnection, fo as FeedDatabaseData, fp as FeedDocumentData, fq as FeedInsightData, fr as FeedIntegrationData, fs as FeedItem, ft as FeedItemGenerated, fu as FeedItemKind, fv as FeedItemOrderByRelevanceFieldEnum, fw as FeedItemQuery, fx as FeedItemSubBuilder, fy as FeedItem_ActionQuery, fz as FeedItem_DataQuery, fA as FeedItemsQuery, fB as FeedKeptData, fC as FeedMediaData, fD as FeedProjectData, fE as FeedPulseData, fF as FeedSendMessageAction, fG as FeedSkillData, fH as Feedback, fI as FeedbackCategory, fJ as FeedbackOrderByRelevanceFieldEnum, fK as FeedbackReason, fL as FeedbackType, fM as File, fN as FileArchiveUrl, fO as FileArchiveUrlQuery, fP as FileMetaQuery, fQ as FileModel, fR as FileQuery, fS as FileUrlVariant, fT as FileUrlsQuery, fU as FindFitTierQuery, fV as FocusBrowserTabMutation, fW as Folder, fX as FolderConnection, fY as FolderOrderByRelevanceFieldEnum, fZ as FolderQuery, f_ as FoldersQuery, f$ as ForgetBrowserLoginsMutation, g0 as ForgetContextTopicMutation, g1 as ForgetKeptItemsMutation, g2 as ForgetPersonMutation, g3 as ForgetPersonResult, g4 as GeneralAccess, g5 as GenerateUploadUriMutation, g6 as GetCapabilityQuery, g7 as GetDevAccessTokenQuery, g8 as GetLimitQuery, g9 as GetRemainingQuery, ga as GetTokenUsageByModelQuery, gb as GetTokenUsageHistoryQuery, gc as GetUsageQuery, gd as GrantAgentApprovalMutation, ge as HasLegalHoldsQuery, gf as HideSharedItemMutation, gg as ImageEditContextQuery, gh as ImageEditItem, gi as ImageEditItemShape, gj as ImportReminderQuery, gk as ImportUserSkillMutation, gl as Insight, gm as InsightConnection, gn as InsightOrderByRelevanceFieldEnum, go as InsightQuery, gp as InsightSubBuilder, gq as Insight_ChatQuery, gr as Insight_Chat_DesktopDeviceQuery, gs as Insight_Chat_ProjectQuery, gt as Insight_ThumbnailFileQuery, gu as InsightsQuery, gv as InstallLocalModelMutation, gw as Integration, gx as IntegrationCatalog, gy as IntegrationCatalogConnection, gz as IntegrationCatalogOrderByRelevanceFieldEnum, gA as IntegrationCatalogQuery, gB as IntegrationCatalogSubBuilder, gC as IntegrationCatalogToolsQuery, gD as IntegrationCatalog_ProviderQuery, gE as IntegrationCatalogsQuery, gF as IntegrationConnection, gG as IntegrationOrderByRelevanceFieldEnum, gH as IntegrationProvider, gI as IntegrationQuery, gJ as IntegrationStatus, gK as IntegrationSubBuilder, gL as Integration_ProviderQuery, gM as Integration_Provider_CatalogQuery, gN as IntegrationsQuery, gO as Interpretation, gP as InterpretationConnection, gQ as InterpretationOrderByRelevanceFieldEnum, gR as InterpretationType, gS as InterpretationsQuery, gT as KeepMutation, gU as KeptItem, gV as KeptItemsListQuery, gW as KeptItemsQuery, gX as KeptKind, gY as KeptSource, gZ as LegalHold, g_ as LegalHoldAreasQuery, g$ as LegalHoldConnection, h0 as LegalHoldOrderByRelevanceFieldEnum, h1 as LegalHoldsConnectionQuery, h2 as LimitType, h3 as LiveActivityTarget, h4 as LocalModelCatalogView, h5 as LocalModelConnectionView, h6 as LocalModelDeviceView, h7 as LocalModelEngineView, h8 as LocalModelInstallView, h9 as LocalModelServerView, ha as LocalModelSettings, hb as LocalModelSettingsQuery, hc as LocalModelSettings_ConnectionsQuery, hd as LocalModelSettings_DevicesQuery, he as LocalModelView, hf as MainChatQuery, hg as MainChat_AgentsQuery, hh as MainChat_DesktopDeviceQuery, hi as MainChat_DesktopDevice_DesktopBindingsQuery, hj as MainChat_InsightQuery, hk as MainChat_Insight_ThumbnailFileQuery, hl as MainChat_MessagesQuery, hm as MainChat_ProjectQuery, hn as MainChat_Project_DesktopBindingQuery, ho as MainChat_ScheduledMessagesQuery, hp as ManagedChatModelsQuery, hq as MarkBriefSeenMutation, hr as MarkChatSeenMutation, hs as MarkOpenedMutation, ht as MarkProactiveItemActedMutation, hu as MarkProactiveItemSeenMutation, hv as MarkSharedItemSeenMutation, hw as McpAuthEvent, hx as McpAuthRequest, hy as McpAuthSnapshot, hz as McpClientInformation, hA as McpCodeVerifier, hB as McpServer, hC as McpServerConnection, hD as McpServerOrderByRelevanceFieldEnum, hE as McpServerTestOutput, hF as McpTokens, hG as MemberAttributeKeysQuery, hH as MemberAttributesQuery, hI as MemberHandoverPlan, hJ as MemberIntegration, hK as MemberIntegrationKind, hL as MemberIntegrationsQuery, hM as MemoryFile, hN as MemoryFilesQuery, hO as MemorySettingQuery, hP as MemorySettings, hQ as MergePeopleMutation, hR as ModelChoice, hS as ModelConnection, hT as ModelConnectionAddress, hU as ModelConnectionAddressView, hV as ModelConnectionView, hW as ModelHealthView, hX as ModelRoleView, hY as ModelSettings, hZ as ModelSettingsQuery, h_ as ModelSettings_ChoicesQuery, h$ as ModelSettings_ConnectionsQuery, i0 as ModelSettings_PolicyQuery, i1 as ModelSettings_RolesQuery, i2 as ModelTokenUsage, i3 as Notification, i4 as NotificationCategory, i5 as NotificationConnection, i6 as NotificationOrderByRelevanceFieldEnum, i7 as NotificationPreference, i8 as NotificationPreferenceConnection, i9 as NotificationPreferenceOrderByRelevanceFieldEnum, ia as NotificationPreferenceOutput, ib as NotificationPreferencesConnectionQuery, ic as NotificationPriority, id as NotificationQuery, ie as NotificationStatus, ig as NotificationsByReferenceQuery, ih as NotificationsQuery, ii as NotifyInvitationMutation, ij as NpsResponse, ik as NpsStatus, il as NpsStatusQuery, im as NullsOrder, io as OpenLoopSide, ip as OpenLoopsQuery, iq as Origin, ir as OutsideLink, is as OutsideShare, it as OutsideSharesQuery, iu as OutsideShares_LinksQuery, iv as OutsideShares_PeopleQuery, iw as OutsideSharing, ix as PauseLocalModelInstallMutation, iy as PauseScheduledMessageMutation, iz as PeopleQuery, iA as Person, iB as PersonConnection, iC as PersonFact, iD as PersonFactConnection, iE as PersonFactOrderByRelevanceFieldEnum, iF as PersonFactsQuery, iG as PersonImage, iH as PersonImageKind, iI as PersonKind, iJ as PersonKnownFact, iK as PersonMeeting, iL as PersonMoment, iM as PersonObject, iN as PersonObjectOrderByRelevanceFieldEnum, iO as PersonObjectStatus, iP as PersonOrderByRelevanceFieldEnum, iQ as PersonPhoto, iR as PersonPhotoSource, iS as PersonQuery, iT as PersonSubBuilder, iU as Person_FactsQuery, iV as Person_ImageQuery, iW as Person_MomentsQuery, iX as Person_NextMeetingQuery, iY as Person_NextMeeting_PlaceQuery, iZ as Person_ObjectQuery, i_ as Person_ObjectsQuery, i$ as Person_PhotoQuery, j0 as Person_PlaceQuery, j1 as Place, j2 as PlaceConnection, j3 as PlaceLegalHoldMutation, j4 as PlaceOrderByRelevanceFieldEnum, j5 as PlacePointSource, j6 as PlacePrecision, j7 as PlacesQuery, j8 as PlanMemberHandoverMutation, j9 as PrepareProactiveItemMutation, ja as Presentation, jb as PreviewChatImportMutation, jc as PreviewUserSkillImportMutation, jd as PrivacyStats, je as PrivacyStatsQuery, jf as PrivateMcpServersConnectionQuery, jg as ProactiveAgentProposal, jh as ProactiveBudget, ji as ProactiveBudgetQuery, jj as ProactiveBudget_ByDetectorQuery, jk as ProactiveBudget_GateByDetectorQuery, jl as ProactiveCardValue, jm as ProactiveDetectorSpend, jn as ProactiveGateDecisions, jo as ProactiveItem, jp as ProactiveItemConnection, jq as ProactiveItemOrderByRelevanceFieldEnum, jr as ProactiveItemQuery, js as ProactiveItemSubBuilder, jt as ProactiveItem_ValueQuery, ju as ProactiveItemsConnectionQuery, jv as ProactiveLevel, jw as ProactiveNotUsefulReason, jx as ProactiveRun, jy as ProactiveSetting, jz as ProactiveSettingQuery, jA as ProactiveSettings, jB as Project, jC as ProjectConnection, jD as ProjectDesktopBinding, jE as ProjectDesktopBindingOrderByRelevanceFieldEnum, jF as ProjectDesktopContextKind, jG as ProjectOrderByRelevanceFieldEnum, jH as ProjectQuery, jI as ProjectSource, jJ as ProjectSubBuilder, jK as Project_ChatsQuery, jL as Project_DesktopBindingQuery, jM as Project_DesktopBinding_DeviceQuery, jN as ProjectsQuery, jO as ProposeProactiveAgentMutation, jP as PulseAppSummaryModel, jQ as PulseAppSummaryQuery, jR as PulseEvent, jS as PulseEventConnection, jT as PulseEventKind, jU as PulseEventOrderByRelevanceFieldEnum, jV as PulseEventPriority, jW as PulseEventQuery, jX as PulseEventSubBuilder, jY as PulseEvent_IntegrationQuery, jZ as PulseEvent_Integration_ProviderQuery, j_ as PulseEventsQuery, j$ as PulseTriggerSettingModel, k0 as PulseTriggerSettingsQuery, k1 as PushTarget, k2 as QueryMode, k3 as QueryQuery, k4 as QueryWithInsightIdQuery, k5 as RateProactiveItemNotUsefulMutation, k6 as RealtimeSnapshotCache, k7 as RealtimeTopicData, k8 as ReanalyzeDocumentMutation, k9 as ReasoningEffort, ka as ReconnectIntegrationAccountMutation, kb as RefineAgentInstructionMutation, kc as RefineSkillInstructionMutation, kd as RefreshDatabaseSchemaMutation, ke as RefreshInsightMutation, kf as RegisterDesktopDeviceMutation, kg as RegisterLiveActivityTargetMutation, kh as RegisterPushTargetMutation, ki as ReinterpretSourceMutation, kj as ReinterpretSourcesOfuserMutation, kk as RejectTopicFactMutation, kl as Relation, km as RelationType, kn as RelationshipDetectionProgress, ko as RelationshipDetectionStatus, kp as ReleaseLegalHoldMutation, kq as RemindImportMutation, kr as RemindWhenUsageResetsMutation, ks as RemoveBrowserFavoriteMutation, kt as RemoveChatMessagesMutation, ku as RemoveLocalModelMutation, kv as RemoveMcpServerMutation, kw as RemovePersonPhotoMutation, kx as RenameCanvasMutation, ky as RenameContextAreaMutation, kz as RenameIntegrationAccountMutation, kA as RenamePersonMutation, kB as RenewShareLinkMutation, kC as RepairUserSkillManifestMutation, kD as ReplaceDlpDictionaryMutation, kE as ReplaceUserSkillFileContentMutation, kF as ReportMessageMutation, kG as RequestDataActionMutation, kH as RequestWorkspaceExportMutation, kI as ResetWorkspaceMutation, kJ as ResolvePulseEventMutation, kK as ResolvedFileUrl, kL as RespondChatApprovalMutation, kM as RestoreCanvasVersionMutation, kN as RestoreCubeModelRevisionMutation, kO as RestoreDocumentVersionMutation, kP as RestoreItemMutation, kQ as RestorePlacement, kR as RestoreTableRelationshipMutation, kS as RestoredItem, kT as ResumeDatabasePreparationMutation, kU as ResumeScheduledMessageMutation, kV as RetentionArea, kW as RetentionPoliciesConnectionQuery, kX as RetentionPolicy, kY as RetentionPolicyConnection, kZ as RetentionPolicyOrderByRelevanceFieldEnum, k_ as ReviewContextTopicMutation, k$ as RevokeMemberIntegrationMutation, l0 as RevokeOutsideSharesMutation, l1 as RotateModelConnectionKeyMutation, l2 as RotateWebhookEndpointSecretMutation, l3 as SaveTableAccessRuleMutation, l4 as SaveWidgetMutation, l5 as ScheduleMessageMutation, l6 as ScheduleWorkspaceDeletionMutation, l7 as ScheduledAgentRun, l8 as ScheduledAgentRunConnection, l9 as ScheduledDelivery, la as ScheduledMessage, lb as ScheduledMessageAuthor, lc as ScheduledMessageConnection, ld as ScheduledMessageOrderByRelevanceFieldEnum, le as ScheduledMessageQuery, lf as ScheduledMessageRun, lg as ScheduledMessageStatus, lh as ScheduledMessageSubBuilder, li as ScheduledMessage_AgentQuery, lj as ScheduledMessage_ChatQuery, lk as ScheduledMessage_Chat_DesktopDeviceQuery, ll as ScheduledMessage_Chat_InsightQuery, lm as ScheduledMessage_Chat_ProjectQuery, ln as ScheduledMessage_RecentRunsQuery, lo as ScheduledMessagesQuery, lp as ScheduledRunTrigger, lq as SendAgentCopyMutation, lr as SendAuditDestinationNowMutation, ls as SendChatMessageWhileRunningMutation, lt as SendFeedbackMutation, lu as SendScheduledMessageNowMutation, lv as SendTestPushMutation, lw as SetAuditDestinationPausedMutation, lx as SetBrowserLoginSyncExcludedMutation, ly as SetBrowserLoginSyncMutation, lz as SetDatabasePrimaryKeyMutation, lA as SetDefaultIntegrationAccountMutation, lB as SetDlpBuiltinRuleMutation, lC as SetGeneralAccessMutation, lD as SetImageEditContextMutation, lE as SetMemberAttributeKeysMutation, lF as SetMemberAttributesMutation, lG as SetMemoryEnabledMutation, lH as SetShareLinkExpiryMutation, lI as SetTableColumnTypeMutation, lJ as SetUserSkillEnabledMutation, lK as SetWorkspaceModelPolicyMutation, lL as SetWorkspaceModelRoleMutation, lM as SetupInterest, lN as ShareAccess, lO as ShareAccessQuery, lP as ShareAccess_SharedByQuery, lQ as ShareAccess_SharedBy_InheritedFromQuery, lR as ShareAction, lS as ShareCandidates, lT as ShareCandidatesQuery, lU as ShareCandidates_MembersQuery, lV as ShareCheck, lW as ShareCheckQuery, lX as ShareCheckStatus, lY as ShareCheck_NarrowingsQuery, lZ as ShareEvent, l_ as ShareInheritance, l$ as ShareLink, m0 as ShareLinkExpiry, m1 as ShareLinkInfo, m2 as ShareMember, m3 as ShareMutation, m4 as ShareNarrowedTable, m5 as ShareNarrowing, m6 as ShareRecipientKind, m7 as ShareRole, m8 as ShareState, m9 as ShareStateQuery, ma as ShareState_LinkQuery, mb as ShareState_MembersQuery, mc as ShareState_OwnerQuery, md as ShareState_Owner_InheritedFromQuery, me as ShareableKind, mf as SharedByMeQuery, mg as SharedContainerKind, mh as SharedContent, mi as SharedContentsQuery, mj as SharedItem, mk as SharedItemConnection, ml as SharedItemView, mm as SharedMark, mn as SharedPreview, mo as SharedWithMeQuery, mp as SharingEnabledQuery, mq as SkillCatalogItem, mr as SkillCatalogQuery, ms as SkillCatalogSource, mt as SkillUsage, mu as SnoozeProactiveItemMutation, mv as SortOrder, mw as StartChatDayMutation, mx as StopChatMutation, my as StopDatabaseRelationshipDetectionMutation, mz as SubmitNpsMutation, mA as SuggestCommitMessageMutation, mB as SurfaceSnapshotQuery, mC as SyncEvent, mD as SyncEventCursor, mE as SyncProjectDesktopBindingMutation, mF as Table, mG as TableAccess, mH as TableAccessLogQuery, mI as TableAccessLog_EntriesQuery, mJ as TableAccessPrincipal, mK as TableAccessQuery, mL as TableAccessRule, mM as TableAccessRuleSaved, mN as TableAccessSubBuilder, mO as TableAccess_RulesQuery, mP as TableConnection, mQ as TableOrderByRelevanceFieldEnum, mR as TableQuery, mS as TableStatus, mT as TableSubBuilder, mU as TableSuggestedQuestionsQuery, mV as Table_DatabaseQuery, mW as Table_Database_ConnectionInfoQuery, mX as Table_Database_ConnectionStatusQuery, mY as Table_Database_EngineQuery, mZ as Table_Database_SourceTablesQuery, m_ as Table_DocumentQuery, m$ as Table_Document_ContentsQuery, n0 as Table_Document_FileQuery, n1 as Table_Document_FormatQuery, n2 as Table_Document_VersionsQuery, n3 as Table_FromRelationsQuery, n4 as Table_ModelQuery, n5 as Table_ToRelationsQuery, n6 as TablesQuery, n7 as TaskGoalDecision, n8 as TaskJob, n9 as TaskJobConnection, na as TaskJobOrderByRelevanceFieldEnum, nb as TaskJobStatus, nc as TaskJobsQuery, nd as TestDlpProviderMutation, ne as TestDlpRulesQuery, nf as TestLocalModelMutation, ng as TestMcpServerConnectionMutation, nh as TestMcpServerMutation, ni as TestModelConnectionMutation, nj as TestScheduledMessageMutation, nk as TokenUsage, nl as TokenUsageConnection, nm as TokenUsageLimitState, nn as TokenUsageOrderByRelevanceFieldEnum, no as TokenUsageStatusEvent, np as TokenUsageStatusSnapshot, nq as TokenUsageWindowSnapshot, nr as TokenUsagesQuery, ns as ToolApprovalMode, nt as ToolApprovalSetting, nu as TopicActivitiesQuery, nv as TopicActivity, nw as TopicActivityConnection, nx as TopicActivityOrderByRelevanceFieldEnum, ny as TopicFact, nz as TopicFactSource, nA as TopicLink, nB as Trip, nC as TripConnection, nD as TripOrderByRelevanceFieldEnum, nE as TripsQuery, nF as UndoCanvasTurnMutation, nG as UnlinkPersonFactMutation, nH as UnregisterLiveActivityTargetMutation, nI as UnregisterPushTargetMutation, nJ as UnsendWaitingChatMessageMutation, nK as UnshareMutation, nL as UpdateAgentMutation, nM as UpdateBrowserSettingsMutation, nN as UpdateCanvasMutation, nO as UpdateChatMutation, nP as UpdateDatabaseMutation, nQ as UpdateDlpProviderMutation, nR as UpdateDlpRuleMutation, nS as UpdateDocumentMutation, nT as UpdateFolderMutation, nU as UpdateInsightMutation, nV as UpdateInsightThumbnailMutation, nW as UpdateInterpMutation, nX as UpdateMemoryFileMutation, nY as UpdateNotificationPreferenceMutation, nZ as UpdateNotificationPreferencesMutation, n_ as UpdateProactiveSettingMutation, n$ as UpdateProjectMutation, o0 as UpdatePulseTriggerMutation, o1 as UpdateRetentionPolicyMutation, o2 as UpdateScheduledMessageMutation, o3 as UpdateShareRoleMutation, o4 as UpdateTableMutation, o5 as UpdateUsagePolicyMutation, o6 as UpdateUserSetupMutation, o7 as UpdateUserSkillFileMutation, o8 as UpdateUserSkillFolderMutation, o9 as UpdateWebhookEndpointMutation, oa as UpdateWorkspaceAiModelSettingMutation, ob as UpdateWorkspacePolicyMutation, oc as UpdateWorkspaceUsageSettingsMutation, od as UpgradeCubeModelSemanticsMutation, oe as UploadFormat, of as UploadFormatKind, og as UploadFormatsQuery, oh as UploadOptions, oi as UploadProgressEvent, oj as UploadResult, ok as UpsertAiProviderSettingMutation, ol as UpsertModelConnectionMutation, om as UsageHistoryGranularity, on as UsageLimitHit, oo as UsageLimitHitConnection, op as UsageLimitHitOrderByRelevanceFieldEnum, oq as UsageLimitHitsQuery, or as UsagePlan, os as UsagePlansQuery, ot as UsagePoliciesConnectionQuery, ou as UsagePolicy, ov as UsagePolicyAssignee, ow as UsagePolicyAssignment, ox as UsagePolicyAssignmentConnection, oy as UsagePolicyAssignmentOrderByRelevanceFieldEnum, oz as UsagePolicyAssignmentsConnectionQuery, oA as UsagePolicyConnection, oB as UsagePolicyEntry, oC as UsagePolicyOrderByRelevanceFieldEnum, oD as UsagePolicySubject, oE as UsagePool, oF as UsagePoolExhausted, oG as UsageReport, oH as UsageReportExport, oI as UsageReportLine, oJ as UsageReportQuery, oK as UsageReport_ModelsQuery, oL as UsageReport_PeopleQuery, oM as UsageReport_TeamsQuery, oN as UsageSettingsQuery, oO as UsageWindowsStatusType, oP as UsePersonPhotoMutation, oQ as UserAiProviderSetting, oR as UserFeedback, oS as UserMemorySetting, oT as UserNotification, oU as UserNotificationEvent, oV as UserNotificationSnapshot, oW as UserSetup, oX as UserSetupQuery, oY as UserSetupState, oZ as UserSkillFile, o_ as UserSkillFileModel, o$ as UserSkillFileQuery, p0 as UserSkillFilesQuery, p1 as UserSkillFolder, p2 as UserSkillFolderModel, p3 as UserSkillFolderQuery, p4 as UserSkillFolderSubBuilder, p5 as UserSkillFolder_ManifestErrorQuery, p6 as UserSkillFoldersQuery, p7 as UserSkillImportItemModel, p8 as UserSkillImportPreviewModel, p9 as UserSkillIssueModel, pa as WatchContextTopicMutation, pb as WebhookEndpoint, pc as WebhookEndpointCreated, pd as WebhookEndpointsQuery, pe as WeeklyObjectQuery, pf as WindowDetailType, pg as WorkspaceAiModelSetting, ph as WorkspaceAiModelSettingQuery, pi as WorkspaceDeleteSchedule, pj as WorkspaceDeletionScheduleQuery, pk as WorkspaceMembership, pl as WorkspaceMembershipsQuery, pm as WorkspaceModelPolicy, pn as WorkspaceModelRole, po as WorkspacePolicy, pp as WorkspacePolicyQuery, pq as WorkspaceSeats, pr as WorkspaceSeatsQuery, ps as WorkspaceUsage, pt as WorkspaceUsageSettings, pu as WorkspaceUsageSettingsQuery, pv as WorkspaceUsageSettings_PoolQuery, pw as createDvinaClient, px as createDvinaEvents, py as uploadFile } from './_generated_sdk-CEEffwAc.js';
5
+ import { D as DvinaError } from './error-B-z8CPkV.js';
6
+ export { a as DvinaAuthenticationError, b as DvinaForbiddenError, d as DvinaGraphQLError, c as DvinaNetworkError, e as DvinaNotFoundError, f as DvinaOperationKind, g as DvinaPlanRestrictionError, h as DvinaSyncApplyError, i as DvinaTokenLimitError, G as GRAPHQL_ERROR_CODES, j as GraphQLErrorEntry, k as createGraphQLError, l as extractErrorCode } from './error-B-z8CPkV.js';
7
+ import { c as createHttpTransport, D as DvinaDatabase, b as SseRealtimeEvent, S as SyncEngine, d as CacheRule } from './connection-CcX51iG3.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 deleteUserLocalData, u as getOrCreateDatabase } from './connection-CcX51iG3.js';
9
9
  export { extractNodes, mergeConnections } from './pagination/index.js';
10
10
  import 'graphql';
11
11
  import './billing/index.js';
@@ -18,7 +18,7 @@ import 'dexie';
18
18
  */
19
19
  declare function createLazySyncEngine(httpTransport: ReturnType<typeof createHttpTransport>, sseUrl: string, syncPolicyUrl: string, getToken: (options?: {
20
20
  forceRefresh?: boolean;
21
- }) => Promise<string>, getDb: () => Promise<DvinaDatabase>, onError?: (error: DvinaAuthenticationError | DvinaForbiddenError) => void, onRealtimeEvent?: (event: SseRealtimeEvent) => void | Promise<void>,
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). */
23
23
  liveSync?: boolean): SyncEngine;
24
24
 
@@ -210,6 +210,12 @@ declare function reconstructConnectionNodes(db: DvinaDatabase, entityTable: stri
210
210
  */
211
211
  declare function fullJitter(cap: number, random?: () => number): number;
212
212
 
213
+ /**
214
+ * Whether a watch's first read failed on the way rather than on the request: no connection, a timeout, the server
215
+ * failing or restarting (408, 429, 5xx), a sign-in still being renewed (after a long idle, say). Such a watch is
216
+ * read again once it can be, instead of failing for good; anything else (a missing record, a refusal, a bug) fails.
217
+ */
218
+ declare function isTransientWatchError(error: unknown): boolean;
213
219
  /**
214
220
  * Ends every wait before a next try now: the reader asked to try again, or the app came back (a wake from sleep, a
215
221
  * resume) and its reads should not wait out their backoff.
@@ -249,4 +255,4 @@ declare const PRIMARY_KEY_CONFIG: Record<string, string | string[]>;
249
255
  */
250
256
  declare const MUTATION_CACHE_RULES: Record<string, CacheRule>;
251
257
 
252
- export { CacheRule, DB_ENTITY_SCHEMA, DeferredDvinaQueryRef, DexieLiveQueryRef, DvinaAuthenticationError, DvinaDatabase, DvinaForbiddenError, DvinaQueryRef, MUTATION_CACHE_RULES, MappedDvinaQueryRef, PRIMARY_KEY_CONFIG, SseRealtimeEvent, SyncEngine, TABLE_TO_TYPENAME, TYPENAME_TO_TABLE, createLazySyncEngine, fullJitter, onLocalStoreReplaced, reconstructConnectionNodes, reconstructEntity, retryWaitingReads };
258
+ export { CacheRule, DB_ENTITY_SCHEMA, DeferredDvinaQueryRef, DexieLiveQueryRef, DvinaDatabase, DvinaError, DvinaQueryRef, MUTATION_CACHE_RULES, MappedDvinaQueryRef, PRIMARY_KEY_CONFIG, SseRealtimeEvent, SyncEngine, TABLE_TO_TYPENAME, TYPENAME_TO_TABLE, createLazySyncEngine, fullJitter, isTransientWatchError, onLocalStoreReplaced, reconstructConnectionNodes, reconstructEntity, retryWaitingReads };