@dvina/sdk 5.0.70 → 5.0.71

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.
@@ -1,7 +1,7 @@
1
1
  import { a as DvinaAsyncRef, b as DvinaRequest, M as MutationOptions, F as FetchOptions, C as ConnectionVariables, D as DvinaQueryRef, W as WithIncludes, c as ConnectionWithNodes } from './types-DlNXHZQK.js';
2
- import { R as RealtimeEventTopic, S as SyncEngine, a as Request, C as Connection } from './connection-DTiW92Zh.js';
2
+ import { R as RealtimeEventTopic, S as SyncEngine, a as Request, C as Connection } from './connection-DsemtinG.js';
3
3
  import { DocumentNode, VariableDefinitionNode, ArgumentNode } from 'graphql';
4
- import { D as DvinaError } from './error-B-z8CPkV.js';
4
+ import { D as DvinaError } from './error-CuX-RKTE.js';
5
5
  import { WorkspaceSubscription, EntitlementDetail, BillingClient } from './billing/index.js';
6
6
 
7
7
  interface ActiveChatsSnapshot {
@@ -11,6 +11,11 @@ interface ActiveChatsSnapshot {
11
11
  * or a turn a restart cut off is to be continued. Older servers leave it out.
12
12
  */
13
13
  pendingChatIds?: string[];
14
+ /**
15
+ * Chats whose work waits on Dvina's own browser or computer starting: working, with no turn running, and going on by
16
+ * itself once it is up (the API decides it: TurnRuns). Older servers leave it out: nothing waits there.
17
+ */
18
+ startingChatIds?: string[];
14
19
  }
15
20
  interface DevicePresenceSnapshot {
16
21
  devices: Array<{
@@ -1,10 +1,10 @@
1
1
  import { UIMessage, DefaultChatTransport } from 'ai';
2
- import { D as DvinaSdk, C as ChatMessage, a as ChatMessageConnection } from '../_generated_sdk-CuWY4r7U.js';
2
+ import { D as DvinaSdk, C as ChatMessage, a as ChatMessageConnection } from '../_generated_sdk-Dkdq-O9z.js';
3
3
  import '../types-DlNXHZQK.js';
4
4
  import 'graphql';
5
- import '../connection-DTiW92Zh.js';
5
+ import '../connection-DsemtinG.js';
6
6
  import 'dexie';
7
- import '../error-B-z8CPkV.js';
7
+ import '../error-CuX-RKTE.js';
8
8
  import '../billing/index.js';
9
9
 
10
10
  /** Where the supervisor sent a user message: answered itself, relayed it to a task, or started a new task. */
@@ -541,6 +541,26 @@ type DvinaTaskRow = {
541
541
  * ended. A failure reads as done; its note says what happened.
542
542
  */
543
543
  declare function taskStateOf(chat: DvinaTaskRow, jobStatus: string | null | undefined): DvinaTaskState;
544
+ /** A tool call the system answered with a hold (the API's held-call.ts `heldCall`): the model reads `note`. */
545
+ type HeldCallOutput = {
546
+ guarded: 'hold';
547
+ note: string;
548
+ hold: {
549
+ reason: string;
550
+ machine?: string;
551
+ } & Record<string, unknown>;
552
+ };
553
+ /** Whether a tool's output is a hold's answer. */
554
+ declare function isHeldOutput(output: unknown): output is HeldCallOutput;
555
+ /**
556
+ * Where a reply's turn ended held: the first held call of its last step that called tools. The model reads the hold's
557
+ * note and ends its turn (with a line of its own, a step without calls, after it); a later step that called a tool
558
+ * again means the work went on, and nothing is held. -1 when it ended on none. The one rule the API's chat waits by
559
+ * (held-call.ts) and the app reads a reply by.
560
+ */
561
+ declare function endingHoldIndex(reply: Pick<UIMessage, 'parts'>): number;
562
+ /** The hold a reply's turn ended on (endingHoldIndex), or undefined. */
563
+ declare function endingHoldOf(reply: Pick<UIMessage, 'parts'> | undefined): HeldCallOutput['hold'] | undefined;
544
564
 
545
565
  type DvinaChatTransportOptions = {
546
566
  /** API origin including protocol, e.g. `https://api.dvina.ai`. */
@@ -670,4 +690,4 @@ type DvinaLazyToolOutput = {
670
690
  /** The held-back output a tool part carries instead of its output, or `null` for a whole output. */
671
691
  declare function lazyToolOutputOf(output: unknown): DvinaLazyToolOutput | null;
672
692
 
673
- export { type DvinaAnswerOutcome, type DvinaChatActionsSdk, type DvinaChatMessageNode, type DvinaChatTransportOptions, type DvinaDataParts, type DvinaGoal, type DvinaGoalCriterion, type DvinaGoalEvaluation, type DvinaGoalStatus, type DvinaLazyToolOutput, type DvinaMessageLinks, type DvinaMessageMetadata, type DvinaMessagePage, type DvinaMessageRoute, type DvinaTaskRow, type DvinaTaskState, type DvinaToolMetadata, type DvinaUIMessage, LIVE_FILE_FORMATS, MAX_MESSAGE_PAGE, answerDvinaQuestion, answerDvinaToolCall, createDvinaChatTransport, createDvinaTemporaryChatTransport, dvinaMessagePageOf, dvinaUIMessageOf, fetchAllDvinaChatMessages, fetchDvinaNextPrompt, lazyToolOutputOf, postDvinaChatMessage, replyTargetIn, respondDvinaApproval, startDvinaDay, stopDvinaChat, taskStateOf, wasUpdated };
693
+ export { type DvinaAnswerOutcome, type DvinaChatActionsSdk, type DvinaChatMessageNode, type DvinaChatTransportOptions, type DvinaDataParts, type DvinaGoal, type DvinaGoalCriterion, type DvinaGoalEvaluation, type DvinaGoalStatus, type DvinaLazyToolOutput, type DvinaMessageLinks, type DvinaMessageMetadata, type DvinaMessagePage, type DvinaMessageRoute, type DvinaTaskRow, type DvinaTaskState, type DvinaToolMetadata, type DvinaUIMessage, type HeldCallOutput, LIVE_FILE_FORMATS, MAX_MESSAGE_PAGE, answerDvinaQuestion, answerDvinaToolCall, createDvinaChatTransport, createDvinaTemporaryChatTransport, dvinaMessagePageOf, dvinaUIMessageOf, endingHoldIndex, endingHoldOf, fetchAllDvinaChatMessages, fetchDvinaNextPrompt, isHeldOutput, lazyToolOutputOf, postDvinaChatMessage, replyTargetIn, respondDvinaApproval, startDvinaDay, stopDvinaChat, taskStateOf, wasUpdated };
package/dist/ai/index.js CHANGED
@@ -1 +1 @@
1
- import {a}from'../chunk-32KGDH2Q.js';import {b as b$1,c as c$1}from'../chunk-YQD7354H.js';import'../chunk-EK7ODJWE.js';import {DefaultChatTransport}from'ai';var D={html:"html",htm:"html",md:"markdown",markdown:"markdown",csv:"csv",svg:"svg",mmd:"mermaid",mermaid:"mermaid"},S=2;function*E(e,{named:t=true}={}){if(e?.role!=="user")return;if(t&&e.metadata?.inResponseToTaskChatId)return e.metadata.inResponseToTaskChatId;let n=e.metadata?.inResponseToId??void 0;for(let a=0;n&&a<S;a++){let r=yield n;if(r?.referencedChatId)return r.referencedChatId;n=r?.inResponseToId??void 0;}}function y(e,t){let n=E(e),a=n.next();for(;!a.done;)a=n.next(t(a.value));return a.value}function b(e){return e.callProviderMetadata?.dvina?.updated===true}function T(e,t){if(e.waitingOn)return "waiting";let n=t===void 0||t==="running",a=r=>r?new Date(r).getTime():0;return n&&e.busyAt&&(!e.idleAt||a(e.busyAt)>a(e.idleAt))?"working":n&&e.queuedAt?"starting":t&&t!=="running"?"ready":e.idleOutcome==="interrupted"?"stopped":"done"}function _(e){let t=`${e.apiUrl.replace(/\/+$/,"")}/api/chat`;return new DefaultChatTransport({api:t,fetch:M(I(e)),prepareSendMessagesRequest:({id:n,messages:a,trigger:r,messageId:i,body:s})=>({api:`${t}/${encodeURIComponent(n)}`,body:{...s,trigger:r,messageId:i,message:a[a.length-1]}}),prepareReconnectToStreamRequest:({id:n})=>({api:`${t}/${encodeURIComponent(n)}/stream`})})}function O(e){return new DefaultChatTransport({api:`${e.apiUrl.replace(/\/+$/,"")}/api/temporary-chat`,fetch:M(I(e))})}var m=[1e3,2e3,4e3,8e3,15e3,3e4],u=429,P=6e4;function M(e,t=m,n=[503]){return async(a,r)=>{for(let i of t){let s=await e(a,r).catch(d=>{if(r?.signal?.aborted||!(d instanceof TypeError))throw d;return null}),o=s?.status===u;if(s&&!o&&!n.includes(s.status))return s;await s?.body?.cancel().catch(()=>{}),await c(o?U(s,i):i,r?.signal??void 0);}return e(a,r)}}function U(e,t){let n=Number.NaN;return e.headers.forEach((a,r)=>{Number.isNaN(n)&&r.toLowerCase().startsWith("retry-after")&&(n=Number(a));}),Number.isFinite(n)&&n>0?Math.min(Math.max(n*1e3,t),P):t}function c(e,t){return new Promise((n,a)=>{if(t?.aborted)return a(t.reason);let r=setTimeout(()=>{t?.removeEventListener("abort",i),n();},e),i=()=>{clearTimeout(r),a(t?.reason);};t?.addEventListener("abort",i,{once:true});})}var N=a();function I(e){let t=e.fetch??globalThis.fetch.bind(globalThis),n=async(a,r,i)=>{let s=new Headers(r?.headers);s.set("Authorization",`Bearer ${await e.getToken({forceRefresh:i})}`);let o=N();o&&!s.has("x-user-timezone")&&s.set("x-user-timezone",o);let d=e.getLanguage?.();return d&&!s.has("x-preferred-language")&&s.set("x-preferred-language",d),t(a,{...r,headers:s})};return async(a,r)=>{let i=await n(a,r,false);return i.status===401?n(a,r,true):i}}async function L(e,t,n,a){await g(()=>e.sendChatMessageWhileRunning({chatId:t,message:n}),{statuses:V,rateLimited:true,signal:a});}async function G(e,t){let n=await g(()=>e.chatNextPrompt({chatId:t}),{delaysMs:[1e3,3e3]});return typeof n=="string"&&n.trim()?n:null}async function z(e,t){await g(()=>e.stopChat({chatId:t}),{statuses:A});}function j(e,t,n,a){return f(()=>e.respondChatApproval({chatId:t,toolCallId:n,approved:a.approved}))}function F(e,t,n,a){return f(()=>e.answerChatQuestion({chatId:t,toolCallId:n,answers:a}))}function Y(e,t,n,a){return f(()=>e.answerChatToolCall({chatId:t,toolCallId:n,...a}))}async function W(e){return {started:await e.startChatDay()}}async function f(e){try{return await g(e,{statuses:A,signal:AbortSignal.timeout(B)}),"sent"}catch(t){if($(t))return "answered-elsewhere";throw t}}function $(e){return e instanceof b$1&&e.errors.some(t=>t.message===w||t.extensions?.code===w)}var w="NOT_WAITING";function Q(e){return e instanceof c$1?e.status===u:e instanceof b$1&&e.errors.some(t=>/ThrottlerException|Too Many Requests/i.test(t.message)||t.extensions?.code==="TOO_MANY_REQUESTS"||t.extensions?.originalError?.statusCode===u)}var q=[503],V=[500,502,503,504],A=[502,503,504],B=9e4,x=0;async function g(e,{delaysMs:t=m,statuses:n=q,rateLimited:a=false,signal:r}={}){let i=s=>s instanceof c$1&&(s.status===x||n.includes(s.status??x))||a&&Q(s);for(let s of t){try{return await k(e(),r)}catch(o){if(r?.aborted||!i(o))throw o}await c(s,r);}return k(e(),r)}function k(e,t){return t?t.aborted?Promise.reject(t.reason):new Promise((n,a)=>{let r=()=>a(t.reason);t.addEventListener("abort",r,{once:true}),e.then(n,a).finally(()=>t.removeEventListener("abort",r));}):e}function v(e){return {id:e.id,role:e.role,parts:e.parts??[],...e.metadata?{metadata:e.metadata}:{}}}function H(e){let{pageInfo:t}=e;return {messages:e.nodes.map(v),hasOlder:t.hasPreviousPage,hasNewer:t.hasNextPage,...t.startCursor?{startCursor:t.startCursor}:{},...t.endCursor?{endCursor:t.endCursor}:{}}}var R=200;async function X(e,t,{pageSize:n=R}={}){let a=[],r;for(;;){let i=await e.chatMessages({...t,first:n,after:r}).fetch();a.push(...i.nodes.map(v));let s=i.pageInfo.endCursor??void 0;if(!i.pageInfo.hasNextPage||!s||s===r)return a;r=s;}}function K(e){if(!e||typeof e!="object"||!("dvinaLazyOutput"in e))return null;let t=e.dvinaLazyOutput;if(!t||typeof t!="object")return null;let{bytes:n,preview:a,urls:r}=t;return {bytes:typeof n=="number"?n:0,preview:typeof a=="string"?a:"",urls:Array.isArray(r)?r.filter(i=>typeof i=="string"):[]}}export{D as LIVE_FILE_FORMATS,R as MAX_MESSAGE_PAGE,F as answerDvinaQuestion,Y as answerDvinaToolCall,_ as createDvinaChatTransport,O as createDvinaTemporaryChatTransport,H as dvinaMessagePageOf,v as dvinaUIMessageOf,X as fetchAllDvinaChatMessages,G as fetchDvinaNextPrompt,K as lazyToolOutputOf,L as postDvinaChatMessage,y as replyTargetIn,j as respondDvinaApproval,W as startDvinaDay,z as stopDvinaChat,T as taskStateOf,b as wasUpdated};
1
+ import {a}from'../chunk-32KGDH2Q.js';import {b as b$1,c as c$1}from'../chunk-XBOJ7CCU.js';import'../chunk-EK7ODJWE.js';import {DefaultChatTransport}from'ai';var b={html:"html",htm:"html",md:"markdown",markdown:"markdown",csv:"csv",svg:"svg",mmd:"mermaid",mermaid:"mermaid"},P=2;function*_(e,{named:t=true}={}){if(e?.role!=="user")return;if(t&&e.metadata?.inResponseToTaskChatId)return e.metadata.inResponseToTaskChatId;let a=e.metadata?.inResponseToId??void 0;for(let n=0;a&&n<P;n++){let r=yield a;if(r?.referencedChatId)return r.referencedChatId;a=r?.inResponseToId??void 0;}}function T(e,t){let a=_(e),n=a.next();for(;!n.done;)n=a.next(t(n.value));return n.value}function C(e){return e.callProviderMetadata?.dvina?.updated===true}function x(e,t){if(e.waitingOn)return "waiting";let a=t===void 0||t==="running",n=r=>r?new Date(r).getTime():0;return a&&e.busyAt&&(!e.idleAt||n(e.busyAt)>n(e.idleAt))?"working":a&&e.queuedAt?"starting":t&&t!=="running"?"ready":e.idleOutcome==="interrupted"?"stopped":"done"}function c(e){let t=e;return typeof t=="object"&&t!==null&&t.guarded==="hold"&&typeof t.note=="string"&&typeof t.hold?.reason=="string"}function m(e){let t=n=>n.type.startsWith("tool-")||n.type==="dynamic-tool",a=e.parts.flatMap((n,r)=>n.type==="step-start"?[r]:[]);for(let n=a.length-1;n>=-1;n--){let r=n<0?0:a[n]??0,i=e.parts.slice(r,a[n+1]??e.parts.length);if(!i.some(t))continue;let s=i.findIndex(o=>t(o)&&o.state==="output-available"&&c(o.output));return s<0?-1:r+s}return -1}function M(e){if(!e)return;let t=m(e);return t<0?void 0:e.parts[t].output.hold}function U(e){let t=`${e.apiUrl.replace(/\/+$/,"")}/api/chat`;return new DefaultChatTransport({api:t,fetch:k(w(e)),prepareSendMessagesRequest:({id:a,messages:n,trigger:r,messageId:i,body:s})=>({api:`${t}/${encodeURIComponent(a)}`,body:{...s,trigger:r,messageId:i,message:n[n.length-1]}}),prepareReconnectToStreamRequest:({id:a})=>({api:`${t}/${encodeURIComponent(a)}/stream`})})}function N(e){return new DefaultChatTransport({api:`${e.apiUrl.replace(/\/+$/,"")}/api/temporary-chat`,fetch:k(w(e))})}var f=[1e3,2e3,4e3,8e3,15e3,3e4],d=429,L=6e4;function k(e,t=f,a=[503]){return async(n,r)=>{for(let i of t){let s=await e(n,r).catch(u=>{if(r?.signal?.aborted||!(u instanceof TypeError))throw u;return null}),o=s?.status===d;if(s&&!o&&!a.includes(s.status))return s;await s?.body?.cancel().catch(()=>{}),await v(o?G(s,i):i,r?.signal??void 0);}return e(n,r)}}function G(e,t){let a=Number.NaN;return e.headers.forEach((n,r)=>{Number.isNaN(a)&&r.toLowerCase().startsWith("retry-after")&&(a=Number(n));}),Number.isFinite(a)&&a>0?Math.min(Math.max(a*1e3,t),L):t}function v(e,t){return new Promise((a,n)=>{if(t?.aborted)return n(t.reason);let r=setTimeout(()=>{t?.removeEventListener("abort",i),a();},e),i=()=>{clearTimeout(r),n(t?.reason);};t?.addEventListener("abort",i,{once:true});})}var z=a();function w(e){let t=e.fetch??globalThis.fetch.bind(globalThis),a=async(n,r,i)=>{let s=new Headers(r?.headers);s.set("Authorization",`Bearer ${await e.getToken({forceRefresh:i})}`);let o=z();o&&!s.has("x-user-timezone")&&s.set("x-user-timezone",o);let u=e.getLanguage?.();return u&&!s.has("x-preferred-language")&&s.set("x-preferred-language",u),t(n,{...r,headers:s})};return async(n,r)=>{let i=await a(n,r,false);return i.status===401?a(n,r,true):i}}async function H(e,t,a,n){await l(()=>e.sendChatMessageWhileRunning({chatId:t,message:a}),{statuses:X,rateLimited:true,signal:n});}async function j(e,t){let a=await l(()=>e.chatNextPrompt({chatId:t}),{delaysMs:[1e3,3e3]});return typeof a=="string"&&a.trim()?a:null}async function F(e,t){await l(()=>e.stopChat({chatId:t}),{statuses:O});}function W(e,t,a,n){return h(()=>e.respondChatApproval({chatId:t,toolCallId:a,approved:n.approved}))}function Y(e,t,a,n){return h(()=>e.answerChatQuestion({chatId:t,toolCallId:a,answers:n}))}function $(e,t,a,n){return h(()=>e.answerChatToolCall({chatId:t,toolCallId:a,...n}))}async function Q(e){return {started:await e.startChatDay()}}async function h(e){try{return await l(e,{statuses:O,signal:AbortSignal.timeout(K)}),"sent"}catch(t){if(q(t))return "answered-elsewhere";throw t}}function q(e){return e instanceof b$1&&e.errors.some(t=>t.message===A||t.extensions?.code===A)}var A="NOT_WAITING";function V(e){return e instanceof c$1?e.status===d:e instanceof b$1&&e.errors.some(t=>/ThrottlerException|Too Many Requests/i.test(t.message)||t.extensions?.code==="TOO_MANY_REQUESTS"||t.extensions?.originalError?.statusCode===d)}var B=[503],X=[500,502,503,504],O=[502,503,504],K=9e4,R=0;async function l(e,{delaysMs:t=f,statuses:a=B,rateLimited:n=false,signal:r}={}){let i=s=>s instanceof c$1&&(s.status===R||a.includes(s.status??R))||n&&V(s);for(let s of t){try{return await S(e(),r)}catch(o){if(r?.aborted||!i(o))throw o}await v(s,r);}return S(e(),r)}function S(e,t){return t?t.aborted?Promise.reject(t.reason):new Promise((a,n)=>{let r=()=>n(t.reason);t.addEventListener("abort",r,{once:true}),e.then(a,n).finally(()=>t.removeEventListener("abort",r));}):e}function D(e){return {id:e.id,role:e.role,parts:e.parts??[],...e.metadata?{metadata:e.metadata}:{}}}function J(e){let{pageInfo:t}=e;return {messages:e.nodes.map(D),hasOlder:t.hasPreviousPage,hasNewer:t.hasNextPage,...t.startCursor?{startCursor:t.startCursor}:{},...t.endCursor?{endCursor:t.endCursor}:{}}}var E=200;async function Z(e,t,{pageSize:a=E}={}){let n=[],r;for(;;){let i=await e.chatMessages({...t,first:a,after:r}).fetch();n.push(...i.nodes.map(D));let s=i.pageInfo.endCursor??void 0;if(!i.pageInfo.hasNextPage||!s||s===r)return n;r=s;}}function ee(e){if(!e||typeof e!="object"||!("dvinaLazyOutput"in e))return null;let t=e.dvinaLazyOutput;if(!t||typeof t!="object")return null;let{bytes:a,preview:n,urls:r}=t;return {bytes:typeof a=="number"?a:0,preview:typeof n=="string"?n:"",urls:Array.isArray(r)?r.filter(i=>typeof i=="string"):[]}}export{b as LIVE_FILE_FORMATS,E as MAX_MESSAGE_PAGE,Y as answerDvinaQuestion,$ as answerDvinaToolCall,U as createDvinaChatTransport,N as createDvinaTemporaryChatTransport,J as dvinaMessagePageOf,D as dvinaUIMessageOf,m as endingHoldIndex,M as endingHoldOf,Z as fetchAllDvinaChatMessages,j as fetchDvinaNextPrompt,c as isHeldOutput,ee as lazyToolOutputOf,H as postDvinaChatMessage,T as replyTargetIn,W as respondDvinaApproval,Q as startDvinaDay,F as stopDvinaChat,x as taskStateOf,C as wasUpdated};
@@ -1,4 +1,4 @@
1
- import { D as DvinaError } from '../error-B-z8CPkV.js';
1
+ import { D as DvinaError } from '../error-CuX-RKTE.js';
2
2
 
3
3
  type Maybe<T> = T | null;
4
4
  type InputMaybe<T> = Maybe<T>;
@@ -1 +1 @@
1
- export{k as BillingClient,g as CancelReason,h as EntitlementTier,i as SubscriptionCycle,j as SubscriptionProvider}from'../chunk-3AC3GJMQ.js';import'../chunk-YQD7354H.js';import'../chunk-EK7ODJWE.js';
1
+ export{k as BillingClient,g as CancelReason,h as EntitlementTier,i as SubscriptionCycle,j as SubscriptionProvider}from'../chunk-BU3BH2KO.js';import'../chunk-XBOJ7CCU.js';import'../chunk-EK7ODJWE.js';
@@ -1,4 +1,4 @@
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"}}}]}]}}]},be={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"}}}]}]}}]},he={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))),s=t.endsWith('\\"""'),c=e.endsWith('"')&&!s,m=e.endsWith("\\"),l=c||m,d=(!a||e.length>70||l||o||s),p="",k=a&&H(e.charCodeAt(0));return (d&&!k||o)&&(p+=`
1
+ import {g as g$1,d,c,a,l,e}from'./chunk-XBOJ7CCU.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"}}}]}]}}]},be={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"}}}]}]}}]},he={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))),s=t.endsWith('\\"""'),c=e.endsWith('"')&&!s,m=e.endsWith("\\"),l=c||m,d=(!a||e.length>70||l||o||s),p="",k=a&&H(e.charCodeAt(0));return (d&&!k||o)&&(p+=`
2
2
  `),p+=t,(d||l)&&(p+=`
3
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),s=[e],c=-1,m=[],l=e,d,p,k=[],T=[];do{c++;let f=c===s.length,z=f&&m.length!==0;if(f){if(d=T.length===0?void 0:k[k.length-1],l=p,p=T.pop(),z)if(o){l=l.slice();let b=0;for(let[L,X]of m){let J=L-b;X===null?(l.splice(J,1),b++):l[J]=X;}}else {l=Object.defineProperties({},Object.getOwnPropertyDescriptors(l));for(let[b,L]of m)l[b]=L;}c=a.index,s=a.keys,m=a.edits,o=a.inArray,a=a.prev;}else if(p){if(d=o?c:s[c],l=p[d],l==null)continue;k.push(d);}let v;if(!Array.isArray(l)){var w,P;j(l)||Ee(false,`Invalid AST Node: ${Fe(l)}.`);let b=f?(w=i.get(l.kind))===null||w===void 0?void 0:w.leave:(P=i.get(l.kind))===null||P===void 0?void 0:P.enter;if(v=b?.call(n,l,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))l=v;else {k.pop();continue}}if(v===void 0&&z&&m.push([d,l]),f)k.pop();else {var U;a={inArray:o,index:c,keys:s,edits:m,prev:a},o=Array.isArray(l),s=o?l:(U=t[l.kind])!==null&&U!==void 0?U:[],c=-1,m=[],p&&T.push(p),p=l;}}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
4
 
@@ -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={failed:"not written",stalled:"not yet written","given-up":"never written: the store is read again"},g=class extends o{constructor(r,t,E,a){super(`Sync change ${y[r]} (${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 h(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,g as f,i as g,c as h,u as i,d as j,R as k,h as l};
@@ -2,7 +2,7 @@ import { D as DvinaQueryRef, M as MutationOptions, b as DvinaRequest, P as PageI
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-B-z8CPkV.js';
5
+ import { D as DvinaError, a as DvinaAuthenticationError, b as DvinaForbiddenError, c as DvinaNetworkError, d as DvinaSyncApplyError } from './error-CuX-RKTE.js';
6
6
 
7
7
  /** Cached result metadata for a specific query + variables combination */
8
8
  interface QueryResultEntry {
@@ -122,7 +122,10 @@ declare class DvinaDatabase {
122
122
  /** Access all tables */
123
123
  get allTables(): Table[];
124
124
  /** Run a read-write transaction across specified tables */
125
- transaction<U>(mode: 'rw' | 'r', tables: Table[], scope: () => PromiseLike<U> | U): dexie.PromiseExtended<U>;
125
+ /** Dexie's transaction; `scope` gets it, so it can abort it (IndexedDB `IDBTransaction.abort()`). */
126
+ transaction<U>(mode: 'rw' | 'r', tables: Table[], scope: (transaction: {
127
+ abort(): void;
128
+ }) => PromiseLike<U> | U): dexie.PromiseExtended<U>;
126
129
  /** Counts the deletes applied here (optimistic or the sync's); a read notes it as it starts (readMark). */
127
130
  private _deleteClock;
128
131
  /** The latest deletes applied here, by `table:key`, at their clock; the oldest go past DELETES_KEPT. */
@@ -348,7 +351,7 @@ interface SseTransportOptions {
348
351
  * Called when auth recovery fails permanently, when the API refuses the stream (403), and when the token is
349
352
  * another cell's (421 WRONG_CELL: a DvinaNetworkError with status 421; the stream keeps retrying meanwhile).
350
353
  */
351
- onError?: (error: DvinaAuthenticationError | DvinaForbiddenError | DvinaNetworkError) => void;
354
+ onError?: (error: DvinaAuthenticationError | DvinaForbiddenError | DvinaNetworkError | DvinaSyncApplyError) => void;
352
355
  }
353
356
  interface SseTransport {
354
357
  /** Start the SSE connection */
@@ -525,6 +528,12 @@ declare class SyncEngine {
525
528
  * watched in many places registers once, so a client does not run into the server's per-user limit.
526
529
  */
527
530
  private _serverSubscriptions;
531
+ /**
532
+ * The device's cursor each server subscription was registered with while its query kept none (its first read had
533
+ * not landed, or found nothing to keep): the server catches it up from there, so a record made while the read and
534
+ * the registration crossed still reaches it. The query's own cursor takes over once its read keeps one.
535
+ */
536
+ private _registeredCursors;
528
537
  /** Last per-query revalidation timestamp to avoid refetch storms. */
529
538
  private _lastRevalidatedAt;
530
539
  /** Retry timers for recovery refetches that failed and need another attempt. */
@@ -600,7 +609,12 @@ declare class SyncEngine {
600
609
  * it has committed. A read awaited inside it (a fetch, not the store's) let it commit while it waited, and the
601
610
  * batch's next write failed (prod 2026-11-13: TransactionInactiveError on Document / FeedItem changes).
602
611
  */
603
- processSyncEvents(events: SseSyncEvent[]): Promise<void>;
612
+ processSyncEvents(events: SseSyncEvent[], signal?: AbortSignal): Promise<void>;
613
+ /**
614
+ * Reads a watched list again from the server: a list change (query event) the store did not take, which the stream
615
+ * does not send again. Its revalidation tries again on failure (revalidation-retry).
616
+ */
617
+ readSubscriptionAgain(subscriptionId: string): Promise<void>;
604
618
  /** Writes the change and the cursor to the store; returns the watched lists to read again once it is written. */
605
619
  private _processSyncEvent;
606
620
  /**
@@ -51,18 +51,13 @@ declare class DvinaForbiddenError extends DvinaError {
51
51
  readonly status = 403;
52
52
  constructor(message?: string, cause?: Error);
53
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
54
  declare class DvinaSyncApplyError extends DvinaError {
60
- readonly stage: 'failed' | 'stalled';
55
+ readonly stage: 'failed' | 'stalled' | 'given-up';
61
56
  /** The tables the change writes to (its models), never its contents. */
62
57
  readonly tables: readonly string[];
63
58
  /** The page's `document.visibilityState` when it was reported; none outside a browser. */
64
59
  readonly visibility: string | undefined;
65
- constructor(stage: 'failed' | 'stalled',
60
+ constructor(stage: 'failed' | 'stalled' | 'given-up',
66
61
  /** The tables the change writes to (its models), never its contents. */
67
62
  tables: readonly string[],
68
63
  /** The page's `document.visibilityState` when it was reported; none outside a browser. */
@@ -126,4 +121,4 @@ interface GraphQLErrorEntry {
126
121
  extensions?: Record<string, unknown>;
127
122
  }
128
123
 
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 };
124
+ export { DvinaError as D, GRAPHQL_ERROR_CODES as G, DvinaAuthenticationError as a, DvinaForbiddenError as b, DvinaNetworkError as c, DvinaSyncApplyError as d, DvinaGraphQLError as e, DvinaNotFoundError as f, type DvinaOperationKind as g, DvinaPlanRestrictionError 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
1
  import { D as DvinaQueryRef } from './types-DlNXHZQK.js';
2
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-CuWY4r7U.js';
4
- export { A as ActiveChatsEvent, b as ActiveChatsSnapshot, c as ActiveWindowType, d as AddBrowserFavoriteMutation, e as AddIntegrationAccountMutation, f as AddMcpServerMutation, g as Agent, h as AgentActionRule, i as AgentConnection, j as AgentMemory, k as AgentOrderByRelevanceFieldEnum, l as AgentQuery, m as AgentSubBuilder, n as AgentWorkflow, o as AgentWorkflowOutput, p as AgentWorkflowQuery, q as AgentWorkflowResource, r as AgentWorkflowStep, s as AgentWorkflow_OutputQuery, t as AgentWorkflow_Output_ResourceQuery, u as AgentWorkflow_StepsQuery, v as Agent_ChatsQuery, w as Agent_ScheduledMessagesQuery, x as AgentsQuery, y as AiProviderSettingQuery, z as AiResourceType, B as AnswerChatQuestionMutation, E as AnswerChatToolCallMutation, F as AppSuggestions, G as AppSuggestionsQuery, H as ApplyArtifactDataMutation, J as AreaRetention, K as ArtifactDataChangedDoc, L as ArtifactDataOpKind, M as ArtifactDataQuery, N as ArtifactDataResult, O as ArtifactDataSnapshot, P as AssignUsagePolicyMutation, Q as AttentionEntry, R as AttentionQuery, S as AuditActorKind, T as AuditDeliveryStatus, U as AuditDestination, V as AuditDestinationCreated, W as AuditDestinationKind, X as AuditDestinationsQuery, Y as AuditExportFormat, Z as AuditLogEntry, _ as AuditLogExport, $ as AuditLogPage, a0 as AuditLogQuery, a1 as AuditLog_EntriesQuery, a2 as AuditPayloadFormat, a3 as AuthzChange, a4 as BillingConnection, a5 as BillingConnectionQuery, a6 as BillingConnectionState, a7 as BillingSubscriptionEvent, a8 as BillingSubscriptionSnapshot, a9 as BriefWorldLessQuery, aa as BrowserFavorite, ab as BrowserFavoriteConnection, ac as BrowserFavoriteOrderByRelevanceFieldEnum, ad as BrowserFavoritesQuery, ae as BrowserLoginSync, af as BrowserLoginSyncQuery, ag as BrowserProfile, ah as BrowserSettings, ai as BrowserSettingsQuery, aj as BrowserSettings_SitesQuery, ak as BrowserSite, al as BrowserTab, am as BrowserTabConnection, an as BrowserTabOrderByRelevanceFieldEnum, ao as BrowserTabState, ap as BrowserTabsQuery, aq as BrowserVisit, ar as BrowserVisitConnection, as as BrowserVisitOrderByRelevanceFieldEnum, at as BrowserVisitsQuery, au as CancelDataActionMutation, av as CancelImportReminderMutation, aw as CancelOauthFlowMutation, ax as CancelScheduledMessageMutation, ay as CancelWorkspaceDeletionMutation, az as Canvas, aA as CanvasConnection, aB as CanvasEditOrigin, aC as CanvasKind, aD as CanvasOrderByRelevanceFieldEnum, aE as CanvasQuery, aF as CanvasSubBuilder, aG as CanvasVersion, aH as CanvasVersionsQuery, aI as CanvasView, aJ as CanvasViewQuery, aK as Canvas_ThumbnailFileQuery, aL as Canvas_VersionsQuery, aM as CanvasesQuery, aN as CapabilityType, aO as CertificateInfo, aP as ChangePersonObjectMutation, aQ as Chat, aR as ChatConnection, aS as ChatDay, aT as ChatDaysQuery, aU as ChatIdleOutcome, aV as ChatImportExecuteOutput, aW as ChatImportPreviewOutput, C as ChatMessage, a as ChatMessageConnection, aX as ChatMessageOrderByRelevanceFieldEnum, aY as ChatMessageQuery, aZ as ChatMessageRoleEnum, a_ as ChatMessageSubBuilder, a$ as ChatMessageToolOutputQuery, b0 as ChatMessage_ChatQuery, b1 as ChatMessage_Chat_DesktopDeviceQuery, b2 as ChatMessage_Chat_InsightQuery, b3 as ChatMessage_Chat_ProjectQuery, b4 as ChatMessage_FeedbackQuery, b5 as ChatMessage_ReferencedChatQuery, b6 as ChatMessage_ReferencedChat_DesktopDeviceQuery, b7 as ChatMessage_ReferencedChat_InsightQuery, b8 as ChatMessage_ReferencedChat_ProjectQuery, b9 as ChatMessage_RepliesQuery, ba as ChatMessage_ThreadQuery, bb as ChatMessagesAroundQuery, bc as ChatMessagesQuery, bd as ChatNextPromptMutation, be as ChatOrderByRelevanceFieldEnum, bf as ChatQuery, bg as ChatReadState, bh as ChatSourceImportFidelityEnum, bi as ChatSourceImportModeEnum, bj as ChatSourceProviderEnum, bk as ChatSubBuilder, bl as ChatThread, bm as ChatThreadOrderByRelevanceFieldEnum, bn as ChatWaitingOn, bo as ChatWorkspaceMode, bp as Chat_AgentsQuery, bq as Chat_DesktopDeviceQuery, br as Chat_DesktopDevice_DesktopBindingsQuery, bs as Chat_InsightQuery, bt as Chat_Insight_ThumbnailFileQuery, bu as Chat_MessagesQuery, bv as Chat_ProjectQuery, bw as Chat_Project_DesktopBindingQuery, bx as Chat_ScheduledMessagesQuery, by as ChatsQuery, bz as CheckDatabaseConnectionMutation, bA as ClearImageEditContextMutation, bB as ClearMemoryMutation, bC as CloseBrowserTabMutation, bD as CloseShareLinkMutation, bE as CommitMessageSuggestion, bF as ComputerActivity, bG as ComputerActivityQuery, bH as ComputerActivitySubBuilder, bI as ComputerActivity_RunsQuery, bJ as ComputerRunFile, bK as ComputerRunMessage, bL as ConfirmDatabaseRelationshipsMutation, bM as ConfirmTableRelationshipMutation, bN as ConnectIntegrationMutation, bO as ConnectLocalModelMutation, bP as ConsumePulseEventsMutation, bQ as ContextAnalysis, bR as ContextAnalysisQuery, bS as ContextAnalysisStatus, bT as ContextArea, bU as ContextAreaConnection, bV as ContextAreaOrderByRelevanceFieldEnum, bW as ContextAreaQuery, bX as ContextAreasQuery, bY as ContextTopic, bZ as ContextTopicConnection, b_ as ContextTopicKind, b$ as ContextTopicOrderByRelevanceFieldEnum, c0 as ContextTopicQuery, c1 as ContextTopicSubBuilder, c2 as ContextTopic_FactsQuery, c3 as ContextTopic_OpenLoopsQuery, c4 as ContextTopicsQuery, c5 as ContinueInterpretationMutation, c6 as CopiedSharedItem, c7 as CopySharedItemMutation, c8 as CorrectContextTopicMutation, c9 as CreateAgentMutation, ca as CreateAuditDestinationMutation, cb as CreateCanvasMutation, cc as CreateChatMutation, cd as CreateDatabaseMutation, ce as CreateDlpDictionaryMutation, cf as CreateDlpProviderMutation, cg as CreateDlpRuleMutation, ch as CreateDocumentMutation, ci as CreateFolderMutation, cj as CreateInsightMutation, ck as CreateIntegrationMutation, cl as CreateIntegrationOutput, cm as CreateProjectMutation, cn as CreateRetentionPolicyMutation, co as CreateTableMutation, cp as CreateUsagePolicyMutation, cq as CreateUserSkillFileMutation, cr as CreateUserSkillFolderMutation, cs as CreateWebhookEndpointMutation, ct as CreateWorkspaceAiModelSettingMutation, cu as CubeModel, cv as CubeModelRevisionsQuery, cw as DataAction, cx as DataActionConnection, cy as DataActionKind, cz as DataActionOrderByRelevanceFieldEnum, cA as DataActionPreview, cB as DataActionPreviewQuery, cC as DataActionQuery, cD as DataActionStatus, cE as DataActionsQuery, cF as DataPurge, cG as DataPurgeKind, cH as DataPurgeStatus, cI as Database, cJ as DatabaseCatalog, cK as DatabaseCatalogConnection, cL as DatabaseCatalogOrderByRelevanceFieldEnum, cM as DatabaseCatalogQuery, cN as DatabaseCatalogSubBuilder, cO as DatabaseCatalog_EngineQuery, cP as DatabaseCatalogsQuery, cQ as DatabaseConnection, cR as DatabaseConnectionInfo, cS as DatabaseConnectionStatus, cT as DatabaseEngine, cU as DatabaseOrderByRelevanceFieldEnum, cV as DatabasePreparationQuery, cW as DatabasePreparationTable, cX as DatabaseQuery, cY as DatabaseReachability, cZ as DatabaseRelationship, c_ as DatabaseRelationshipDetectionProgressQuery, c$ as DatabaseRelationshipDetectionQuery, d0 as DatabaseRelationshipEvidence, d1 as DatabaseRelationshipSource, d2 as DatabaseRelationshipsQuery, d3 as DatabaseSchemaQuery, d4 as DatabaseSourceColumn, d5 as DatabaseSourceTable, d6 as DatabaseSubBuilder, d7 as DatabaseSuggestedQuestionsQuery, d8 as Database_ConnectionInfoQuery, d9 as Database_ConnectionStatusQuery, da as Database_EngineQuery, db as Database_Engine_CatalogQuery, dc as Database_SourceTablesQuery, dd as Database_TablesQuery, de as DatabasesQuery, df as DecideTaskGoalMutation, dg as DeleteAgentMutation, dh as DeleteAiProviderSettingMutation, di as DeleteAuditDestinationMutation, dj as DeleteCanvasIfEmptyMutation, dk as DeleteCanvasMutation, dl as DeleteChatMutation, dm as DeleteDatabaseMutation, dn as DeleteDlpDictionaryMutation, dp as DeleteDlpProviderMutation, dq as DeleteDlpRuleMutation, dr as DeleteDocumentMutation, ds as DeleteEarlierConversationMutation, dt as DeleteFolderMutation, du as DeleteInsightMutation, dv as DeleteInsightsMutation, dw as DeleteIntegrationMutation, dx as DeleteMemoryFileMutation, dy as DeleteModelConnectionMutation, dz as DeleteProjectMutation, dA as DeleteSavedAiProviderModelMutation, dB as DeleteTableAccessRuleMutation, dC as DeleteTableMutation, dD as DeleteUsagePolicyMutation, dE as DeleteUserSkillFileMutation, dF as DeleteUserSkillFolderMutation, dG as DeleteWebhookEndpointMutation, dH as DeletedItem, dI as DeletedItemConnection, dJ as DeletedItemKind, dK as DeletedItemOrderByRelevanceFieldEnum, dL as DeletedItemsQuery, dM as DesktopDevice, dN as DesktopDeviceConnection, dO as DesktopDeviceOrderByRelevanceFieldEnum, dP as DesktopDeviceQuery, dQ as DesktopDeviceSubBuilder, dR as DesktopDevice_ChatsQuery, dS as DesktopDevice_DesktopBindingsQuery, dT as DesktopDevicesQuery, dU as DetectDatabaseRelationshipsMutation, dV as DetectImageEditItemsMutation, dW as DevAccessTokenOutput, dX as DeviceIdentityKey, dY as DeviceIdentityKind, dZ as DevicePresenceEvent, d_ as DevicePresenceSnapshot, d$ as Digest, e0 as DigestConnection, e1 as DigestOrderByRelevanceFieldEnum, e2 as DigestPeriod, e3 as DigestQuery, e4 as DigestStatus, e5 as DigestsQuery, e6 as DisconnectIntegrationAccountMutation, e7 as DisconnectIntegrationMutation, e8 as DisconnectLocalModelMutation, e9 as DismissNpsMutation, ea as DismissProactiveItemMutation, eb as DismissPulseEventMutation, ec as DismissTableRelationshipMutation, ed as DismissedDatabaseRelationshipsQuery, ee as DlpAction, ef as DlpDictionariesQuery, eg as DlpDictionary, eh as DlpDictionaryView, ei as DlpFailMode, ej as DlpHit, ek as DlpProvider, el as DlpProviderKind, em as DlpProviderSetting, en as DlpProviderTestResult, eo as DlpProviderView, ep as DlpProvidersQuery, eq as DlpReportQuery, er as DlpRule, es as DlpRuleKind, et as DlpRuleView, eu as DlpRulesQuery, ev as DlpScope, ew as DlpTriggerCount, ex as Document, ey as DocumentAttachmentsQuery, ez as DocumentCatalog, eA as DocumentCatalogConnection, eB as DocumentCatalogOrderByRelevanceFieldEnum, eC as DocumentCatalogQuery, eD as DocumentCatalogSubBuilder, eE as DocumentCatalog_FormatQuery, eF as DocumentCatalogsQuery, eG as DocumentConnection, eH as DocumentContent, eI as DocumentFormat, eJ as DocumentOrderByRelevanceFieldEnum, eK as DocumentQuery, eL as DocumentReadStatus, eM as DocumentSubBuilder, eN as DocumentVersion, eO as Document_ContentsQuery, eP as Document_FileQuery, eQ as Document_FormatQuery, eR as Document_Format_CatalogQuery, eS as Document_TablesQuery, eT as Document_VersionsQuery, eU as DocumentsQuery, eV as DvinaEventRef, eW as DvinaEventTopic, eX as DvinaEvents, eY as DvinaModel, eZ as DvinaRealtimeEvent, D as DvinaSdk, e_ as DvinaSdkBaseOptions, e$ as DvinaSdkCallbackOptions, f0 as DvinaSdkLifecycle, f1 as DvinaSdkLifecycleHint, f2 as DvinaSdkOptions, f3 as DvinaSdkTokenOptions, f4 as EarlierConversation, f5 as EarlierConversationConnection, f6 as EarlierConversationsQuery, f7 as EnterpriseFeaturesAllPlansQuery, f8 as EntitlementTier, f9 as EntityOpen, fa as ExecuteChatImportMutation, fb as Expectation, fc as ExportAuditLogMutation, fd as ExportQuery, fe as ExportUsageReportQuery, ff as ExportWithInsightIdQuery, fg as Fact, fh as FactConnection, fi as FactKind, fj as FactOrderByRelevanceFieldEnum, fk as FactOwner, fl as FactStatus, fm as FactTimePrecision, fn as FactsQuery, fo as FeaturePersonLessMutation, fp as FeedActionType, fq as FeedAgentData, fr as FeedCanvasData, fs as FeedConnection, ft as FeedDatabaseData, fu as FeedDocumentData, fv as FeedInsightData, fw as FeedIntegrationData, fx as FeedItem, fy as FeedItemGenerated, fz as FeedItemKind, fA as FeedItemOrderByRelevanceFieldEnum, fB as FeedItemQuery, fC as FeedItemSubBuilder, fD as FeedItem_ActionQuery, fE as FeedItem_DataQuery, fF as FeedItemsQuery, fG as FeedKeptData, fH as FeedMediaData, fI as FeedProjectData, fJ as FeedPulseData, fK as FeedSendMessageAction, fL as FeedSkillData, fM as Feedback, fN as FeedbackCategory, fO as FeedbackOrderByRelevanceFieldEnum, fP as FeedbackReason, fQ as FeedbackType, fR as File, fS as FileArchiveUrl, fT as FileArchiveUrlQuery, fU as FileMetaQuery, fV as FileModel, fW as FileQuery, fX as FileUrlVariant, fY as FileUrlsQuery, fZ as FindFitTierQuery, f_ as FocusBrowserTabMutation, f$ as Folder, g0 as FolderConnection, g1 as FolderOrderByRelevanceFieldEnum, g2 as FolderQuery, g3 as FoldersQuery, g4 as ForgetBrowserLoginsMutation, g5 as ForgetContextTopicMutation, g6 as ForgetKeptItemsMutation, g7 as ForgetPersonMutation, g8 as ForgetPersonResult, g9 as GeneralAccess, ga as GenerateUploadUriMutation, gb as GetCapabilityQuery, gc as GetDevAccessTokenQuery, gd as GetLimitQuery, ge as GetRemainingQuery, gf as GetTokenUsageByModelQuery, gg as GetTokenUsageHistoryQuery, gh as GetUsageQuery, gi as GrantAgentApprovalMutation, gj as HasLegalHoldsQuery, gk as HideSharedItemMutation, gl as ImageEditContextQuery, gm as ImageEditItem, gn as ImageEditItemShape, go as ImportReminderQuery, gp as ImportUserSkillMutation, gq as Insight, gr as InsightConnection, gs as InsightOrderByRelevanceFieldEnum, gt as InsightQuery, gu as InsightSubBuilder, gv as Insight_ChatQuery, gw as Insight_Chat_DesktopDeviceQuery, gx as Insight_Chat_ProjectQuery, gy as Insight_ThumbnailFileQuery, gz as InsightsQuery, gA as InstallLocalModelMutation, gB as Integration, gC as IntegrationCatalog, gD as IntegrationCatalogConnection, gE as IntegrationCatalogOrderByRelevanceFieldEnum, gF as IntegrationCatalogQuery, gG as IntegrationCatalogSubBuilder, gH as IntegrationCatalogToolsQuery, gI as IntegrationCatalog_ProviderQuery, gJ as IntegrationCatalogsQuery, gK as IntegrationConnection, gL as IntegrationOrderByRelevanceFieldEnum, gM as IntegrationProvider, gN as IntegrationQuery, gO as IntegrationStatus, gP as IntegrationSubBuilder, gQ as Integration_ProviderQuery, gR as Integration_Provider_CatalogQuery, gS as IntegrationsQuery, gT as Interpretation, gU as InterpretationConnection, gV as InterpretationOrderByRelevanceFieldEnum, gW as InterpretationType, gX as InterpretationsQuery, gY as KeepMutation, gZ as KeptItem, g_ as KeptItemsListQuery, g$ as KeptItemsQuery, h0 as KeptKind, h1 as KeptSource, h2 as LegalHold, h3 as LegalHoldAreasQuery, h4 as LegalHoldConnection, h5 as LegalHoldOrderByRelevanceFieldEnum, h6 as LegalHoldsConnectionQuery, h7 as LimitType, h8 as LiveActivityTarget, h9 as LocalModelCatalogView, ha as LocalModelConnectionView, hb as LocalModelDeviceView, hc as LocalModelEngineView, hd as LocalModelInstallView, he as LocalModelServerView, hf as LocalModelSettings, hg as LocalModelSettingsQuery, hh as LocalModelSettings_ConnectionsQuery, hi as LocalModelSettings_DevicesQuery, hj as LocalModelView, hk as MainChatQuery, hl as MainChat_AgentsQuery, hm as MainChat_DesktopDeviceQuery, hn as MainChat_DesktopDevice_DesktopBindingsQuery, ho as MainChat_InsightQuery, hp as MainChat_Insight_ThumbnailFileQuery, hq as MainChat_MessagesQuery, hr as MainChat_ProjectQuery, hs as MainChat_Project_DesktopBindingQuery, ht as MainChat_ScheduledMessagesQuery, hu as ManagedChatModelsQuery, hv as MarkBriefSeenMutation, hw as MarkBriefWorldLessMutation, hx as MarkChatSeenMutation, hy as MarkOpenedMutation, hz as MarkProactiveItemActedMutation, hA as MarkProactiveItemSeenMutation, hB as MarkSharedItemSeenMutation, hC as McpAuthEvent, hD as McpAuthRequest, hE as McpAuthSnapshot, hF as McpClientInformation, hG as McpCodeVerifier, hH as McpServer, hI as McpServerConnection, hJ as McpServerOrderByRelevanceFieldEnum, hK as McpServerTestOutput, hL as McpTokens, hM as MemberAttributeKeysQuery, hN as MemberAttributesQuery, hO as MemberHandoverPlan, hP as MemberIntegration, hQ as MemberIntegrationKind, hR as MemberIntegrationsQuery, hS as MemoryFile, hT as MemoryFilesQuery, hU as MemorySettingQuery, hV as MemorySettings, hW as MergePeopleMutation, hX as ModelChoice, hY as ModelConnection, hZ as ModelConnectionAddress, h_ as ModelConnectionAddressView, h$ as ModelConnectionView, i0 as ModelHealthView, i1 as ModelRoleView, i2 as ModelSettings, i3 as ModelSettingsQuery, i4 as ModelSettings_ChoicesQuery, i5 as ModelSettings_ConnectionsQuery, i6 as ModelSettings_PolicyQuery, i7 as ModelSettings_RolesQuery, i8 as ModelTokenUsage, i9 as MySharedLinksQuery, ia as MySharedLinks_LinksQuery, ib as MySharedLinks_PeopleQuery, ic as Notification, id as NotificationCategory, ie as NotificationConnection, ig as NotificationOrderByRelevanceFieldEnum, ih as NotificationPreference, ii as NotificationPreferenceConnection, ij as NotificationPreferenceOrderByRelevanceFieldEnum, ik as NotificationPreferenceOutput, il as NotificationPreferencesConnectionQuery, im as NotificationPriority, io as NotificationQuery, ip as NotificationStatus, iq as NotificationsByReferenceQuery, ir as NotificationsQuery, is as NotifyInvitationMutation, it as NpsResponse, iu as NpsStatus, iv as NpsStatusQuery, iw as NullsOrder, ix as OpenLoopSide, iy as OpenLoopsQuery, iz as Origin, iA as OutsideLink, iB as OutsideShare, iC as OutsideSharesQuery, iD as OutsideShares_LinksQuery, iE as OutsideShares_PeopleQuery, iF as OutsideSharing, iG as PauseLocalModelInstallMutation, iH as PauseScheduledMessageMutation, iI as PeopleQuery, iJ as Person, iK as PersonConnection, iL as PersonFact, iM as PersonFactConnection, iN as PersonFactOrderByRelevanceFieldEnum, iO as PersonFactsQuery, iP as PersonImage, iQ as PersonImageKind, iR as PersonKind, iS as PersonKnownFact, iT as PersonMeeting, iU as PersonMoment, iV as PersonObject, iW as PersonObjectOrderByRelevanceFieldEnum, iX as PersonObjectStatus, iY as PersonOrderByRelevanceFieldEnum, iZ as PersonPhoto, i_ as PersonPhotoSource, i$ as PersonQuery, j0 as PersonSubBuilder, j1 as Person_FactsQuery, j2 as Person_ImageQuery, j3 as Person_MomentsQuery, j4 as Person_NextMeetingQuery, j5 as Person_NextMeeting_PlaceQuery, j6 as Person_ObjectQuery, j7 as Person_ObjectsQuery, j8 as Person_PhotoQuery, j9 as Person_PlaceQuery, ja as Place, jb as PlaceConnection, jc as PlaceLegalHoldMutation, jd as PlaceOrderByRelevanceFieldEnum, je as PlacePointSource, jf as PlacePrecision, jg as PlacesQuery, jh as PlanMemberHandoverMutation, ji as PrepareProactiveItemMutation, jj as Presentation, jk as PreviewChatImportMutation, jl as PreviewUserSkillImportMutation, jm as PrivacyStats, jn as PrivacyStatsQuery, jo as PrivateMcpServersConnectionQuery, jp as ProactiveAgentProposal, jq as ProactiveBudget, jr as ProactiveBudgetQuery, js as ProactiveBudget_ByDetectorQuery, jt as ProactiveBudget_GateByDetectorQuery, ju as ProactiveCardValue, jv as ProactiveDetectorSpend, jw as ProactiveGateDecisions, jx as ProactiveItem, jy as ProactiveItemConnection, jz as ProactiveItemOrderByRelevanceFieldEnum, jA as ProactiveItemQuery, jB as ProactiveItemSubBuilder, jC as ProactiveItem_ValueQuery, jD as ProactiveItemsConnectionQuery, jE as ProactiveLevel, jF as ProactiveNotUsefulReason, jG as ProactiveRun, jH as ProactiveSetting, jI as ProactiveSettingQuery, jJ as ProactiveSettings, jK as Project, jL as ProjectConnection, jM as ProjectDesktopBinding, jN as ProjectDesktopBindingOrderByRelevanceFieldEnum, jO as ProjectDesktopContextKind, jP as ProjectOrderByRelevanceFieldEnum, jQ as ProjectQuery, jR as ProjectSource, jS as ProjectSubBuilder, jT as Project_ChatsQuery, jU as Project_DesktopBindingQuery, jV as Project_DesktopBinding_DeviceQuery, jW as ProjectsQuery, jX as ProposeProactiveAgentMutation, jY as PulseAppSummaryModel, jZ as PulseAppSummaryQuery, j_ as PulseEvent, j$ as PulseEventConnection, k0 as PulseEventKind, k1 as PulseEventOrderByRelevanceFieldEnum, k2 as PulseEventPriority, k3 as PulseEventQuery, k4 as PulseEventSubBuilder, k5 as PulseEvent_IntegrationQuery, k6 as PulseEvent_Integration_ProviderQuery, k7 as PulseEventsQuery, k8 as PulseTriggerSettingModel, k9 as PulseTriggerSettingsQuery, ka as PushTarget, kb as QueryMode, kc as QueryQuery, kd as QueryWithInsightIdQuery, ke as RateProactiveItemNotUsefulMutation, kf as RealtimeSnapshotCache, kg as RealtimeTopicData, kh as ReanalyzeDocumentMutation, ki as ReasoningEffort, kj as ReconnectIntegrationAccountMutation, kk as RefineAgentInstructionMutation, kl as RefineSkillInstructionMutation, km as RefreshDatabaseSchemaMutation, kn as RefreshInsightMutation, ko as RegisterDesktopDeviceMutation, kp as RegisterLiveActivityTargetMutation, kq as RegisterPushTargetMutation, kr as ReinterpretSourceMutation, ks as ReinterpretSourcesOfuserMutation, kt as RejectTopicFactMutation, ku as Relation, kv as RelationType, kw as RelationshipDetectionProgress, kx as RelationshipDetectionStatus, ky as ReleaseLegalHoldMutation, kz as RemindImportMutation, kA as RemindWhenUsageResetsMutation, kB as RemoveBriefWorldLessMutation, kC as RemoveBrowserFavoriteMutation, kD as RemoveChatMessagesMutation, kE as RemoveLocalModelMutation, kF as RemoveMcpServerMutation, kG as RemovePersonPhotoMutation, kH as RenameCanvasMutation, kI as RenameContextAreaMutation, kJ as RenameIntegrationAccountMutation, kK as RenamePersonMutation, kL as RenewShareLinkMutation, kM as RepairUserSkillManifestMutation, kN as ReplaceDlpDictionaryMutation, kO as ReplaceUserSkillFileContentMutation, kP as ReportMessageMutation, kQ as RequestDataActionMutation, kR as RequestWorkspaceExportMutation, kS as ResetWorkspaceMutation, kT as ResolvePulseEventMutation, kU as ResolvedFileUrl, kV as RespondChatApprovalMutation, kW as RestoreCanvasVersionMutation, kX as RestoreCubeModelRevisionMutation, kY as RestoreDocumentVersionMutation, kZ as RestoreItemMutation, k_ as RestorePlacement, k$ as RestoreTableRelationshipMutation, l0 as RestoredItem, l1 as ResumeDatabasePreparationMutation, l2 as ResumeScheduledMessageMutation, l3 as RetentionArea, l4 as RetentionPoliciesConnectionQuery, l5 as RetentionPolicy, l6 as RetentionPolicyConnection, l7 as RetentionPolicyOrderByRelevanceFieldEnum, l8 as ReviewContextTopicMutation, l9 as RevokeMemberIntegrationMutation, la as RevokeOutsideSharesMutation, lb as RotateModelConnectionKeyMutation, lc as RotateWebhookEndpointSecretMutation, ld as SaveCanvasViewMutation, le as SaveTableAccessRuleMutation, lf as SaveWidgetMutation, lg as ScheduleMessageMutation, lh as ScheduleWorkspaceDeletionMutation, li as ScheduledAgentRun, lj as ScheduledAgentRunConnection, lk as ScheduledDelivery, ll as ScheduledMessage, lm as ScheduledMessageAuthor, ln as ScheduledMessageConnection, lo as ScheduledMessageOrderByRelevanceFieldEnum, lp as ScheduledMessageQuery, lq as ScheduledMessageRun, lr as ScheduledMessageStatus, ls as ScheduledMessageSubBuilder, lt as ScheduledMessage_AgentQuery, lu as ScheduledMessage_ChatQuery, lv as ScheduledMessage_Chat_DesktopDeviceQuery, lw as ScheduledMessage_Chat_InsightQuery, lx as ScheduledMessage_Chat_ProjectQuery, ly as ScheduledMessage_RecentRunsQuery, lz as ScheduledMessagesQuery, lA as ScheduledRunTrigger, lB as SendAgentCopyMutation, lC as SendAuditDestinationNowMutation, lD as SendChatMessageWhileRunningMutation, lE as SendFeedbackMutation, lF as SendScheduledMessageNowMutation, lG as SendTestPushMutation, lH as SetAuditDestinationPausedMutation, lI as SetBrowserLoginSyncExcludedMutation, lJ as SetBrowserLoginSyncMutation, lK as SetDatabasePrimaryKeyMutation, lL as SetDefaultIntegrationAccountMutation, lM as SetDlpBuiltinRuleMutation, lN as SetGeneralAccessMutation, lO as SetImageEditContextMutation, lP as SetMemberAttributeKeysMutation, lQ as SetMemberAttributesMutation, lR as SetMemoryEnabledMutation, lS as SetShareLinkExpiryMutation, lT as SetTableColumnTypeMutation, lU as SetUserSkillEnabledMutation, lV as SetWorkspaceModelPolicyMutation, lW as SetWorkspaceModelRoleMutation, lX as SetupInterest, lY as ShareAccess, lZ as ShareAccessQuery, l_ as ShareAccess_SharedByQuery, l$ as ShareAccess_SharedBy_InheritedFromQuery, m0 as ShareAction, m1 as ShareCandidates, m2 as ShareCandidatesQuery, m3 as ShareCandidates_MembersQuery, m4 as ShareCheck, m5 as ShareCheckQuery, m6 as ShareCheckStatus, m7 as ShareCheck_NarrowingsQuery, m8 as ShareEvent, m9 as ShareInheritance, ma as ShareLink, mb as ShareLinkExpiry, mc as ShareLinkInfo, md as ShareMember, me as ShareMutation, mf as ShareNarrowedTable, mg as ShareNarrowing, mh as ShareRecipientKind, mi as ShareRole, mj as ShareState, mk as ShareStateQuery, ml as ShareState_LinkQuery, mm as ShareState_MembersQuery, mn as ShareState_OwnerQuery, mo as ShareState_Owner_InheritedFromQuery, mp as ShareableKind, mq as SharedByMeQuery, mr as SharedContainerKind, ms as SharedContent, mt as SharedContentsQuery, mu as SharedItem, mv as SharedItemConnection, mw as SharedItemView, mx as SharedMark, my as SharedPreview, mz as SharedWithMeQuery, mA as SharingEnabledQuery, mB as SkillCatalogItem, mC as SkillCatalogQuery, mD as SkillCatalogSource, mE as SkillUsage, mF as SnoozeProactiveItemMutation, mG as SortOrder, mH as StartChatDayMutation, mI as StopChatMutation, mJ as StopDatabaseRelationshipDetectionMutation, mK as SubmitNpsMutation, mL as SuggestCommitMessageMutation, mM as SurfaceSnapshotQuery, mN as SyncEvent, mO as SyncEventCursor, mP as SyncProjectDesktopBindingMutation, mQ as Table, mR as TableAccess, mS as TableAccessLogQuery, mT as TableAccessLog_EntriesQuery, mU as TableAccessPrincipal, mV as TableAccessQuery, mW as TableAccessRule, mX as TableAccessRuleSaved, mY as TableAccessSubBuilder, mZ as TableAccess_RulesQuery, m_ as TableConnection, m$ as TableOrderByRelevanceFieldEnum, n0 as TableQuery, n1 as TableStatus, n2 as TableSubBuilder, n3 as TableSuggestedQuestionsQuery, n4 as Table_DatabaseQuery, n5 as Table_Database_ConnectionInfoQuery, n6 as Table_Database_ConnectionStatusQuery, n7 as Table_Database_EngineQuery, n8 as Table_Database_SourceTablesQuery, n9 as Table_DocumentQuery, na as Table_Document_ContentsQuery, nb as Table_Document_FileQuery, nc as Table_Document_FormatQuery, nd as Table_Document_VersionsQuery, ne as Table_FromRelationsQuery, nf as Table_ModelQuery, ng as Table_ToRelationsQuery, nh as TablesQuery, ni as TaskGoalDecision, nj as TaskJob, nk as TaskJobConnection, nl as TaskJobOrderByRelevanceFieldEnum, nm as TaskJobStatus, nn as TaskJobsQuery, no as TestDlpProviderMutation, np as TestDlpRulesQuery, nq as TestLocalModelMutation, nr as TestMcpServerConnectionMutation, ns as TestMcpServerMutation, nt as TestModelConnectionMutation, nu as TestScheduledMessageMutation, nv as TokenUsage, nw as TokenUsageConnection, nx as TokenUsageLimitState, ny as TokenUsageOrderByRelevanceFieldEnum, nz as TokenUsageStatusEvent, nA as TokenUsageStatusSnapshot, nB as TokenUsageWindowSnapshot, nC as TokenUsagesQuery, nD as ToolApprovalMode, nE as ToolApprovalSetting, nF as TopicActivitiesQuery, nG as TopicActivity, nH as TopicActivityConnection, nI as TopicActivityOrderByRelevanceFieldEnum, nJ as TopicFact, nK as TopicFactSource, nL as TopicLink, nM as Trip, nN as TripConnection, nO as TripOrderByRelevanceFieldEnum, nP as TripsQuery, nQ as UndoCanvasTurnMutation, nR as UnlinkPersonFactMutation, nS as UnregisterLiveActivityTargetMutation, nT as UnregisterPushTargetMutation, nU as UnsendWaitingChatMessageMutation, nV as UnshareMutation, nW as UpdateAgentMutation, nX as UpdateBrowserSettingsMutation, nY as UpdateCanvasMutation, nZ as UpdateChatMutation, n_ as UpdateDatabaseMutation, n$ as UpdateDlpProviderMutation, o0 as UpdateDlpRuleMutation, o1 as UpdateDocumentMutation, o2 as UpdateFolderMutation, o3 as UpdateInsightMutation, o4 as UpdateInsightThumbnailMutation, o5 as UpdateInterpMutation, o6 as UpdateMemoryFileMutation, o7 as UpdateNotificationPreferenceMutation, o8 as UpdateNotificationPreferencesMutation, o9 as UpdateProactiveSettingMutation, oa as UpdateProjectMutation, ob as UpdatePulseTriggerMutation, oc as UpdateRetentionPolicyMutation, od as UpdateScheduledMessageMutation, oe as UpdateShareRoleMutation, of as UpdateTableMutation, og as UpdateUsagePolicyMutation, oh as UpdateUserSetupMutation, oi as UpdateUserSkillFileMutation, oj as UpdateUserSkillFolderMutation, ok as UpdateWebhookEndpointMutation, ol as UpdateWorkspaceAiModelSettingMutation, om as UpdateWorkspacePolicyMutation, on as UpdateWorkspaceUsageSettingsMutation, oo as UpgradeCubeModelSemanticsMutation, op as UploadFormat, oq as UploadFormatKind, or as UploadFormatsQuery, os as UploadOptions, ot as UploadProgressEvent, ou as UploadResult, ov as UpsertAiProviderSettingMutation, ow as UpsertModelConnectionMutation, ox as UsageHistoryGranularity, oy as UsageLimitHit, oz as UsageLimitHitConnection, oA as UsageLimitHitOrderByRelevanceFieldEnum, oB as UsageLimitHitsQuery, oC as UsagePlan, oD as UsagePlansQuery, oE as UsagePoliciesConnectionQuery, oF as UsagePolicy, oG as UsagePolicyAssignee, oH as UsagePolicyAssignment, oI as UsagePolicyAssignmentConnection, oJ as UsagePolicyAssignmentOrderByRelevanceFieldEnum, oK as UsagePolicyAssignmentsConnectionQuery, oL as UsagePolicyConnection, oM as UsagePolicyEntry, oN as UsagePolicyOrderByRelevanceFieldEnum, oO as UsagePolicySubject, oP as UsagePool, oQ as UsagePoolExhausted, oR as UsageReport, oS as UsageReportExport, oT as UsageReportLine, oU as UsageReportQuery, oV as UsageReport_ModelsQuery, oW as UsageReport_PeopleQuery, oX as UsageReport_TeamsQuery, oY as UsageSettingsQuery, oZ as UsageWindowsStatusType, o_ as UsePersonPhotoMutation, o$ as UserAiProviderSetting, p0 as UserFeedback, p1 as UserMemorySetting, p2 as UserNotification, p3 as UserNotificationEvent, p4 as UserNotificationSnapshot, p5 as UserSetup, p6 as UserSetupQuery, p7 as UserSetupState, p8 as UserSkillFile, p9 as UserSkillFileModel, pa as UserSkillFileQuery, pb as UserSkillFilesQuery, pc as UserSkillFolder, pd as UserSkillFolderModel, pe as UserSkillFolderQuery, pf as UserSkillFolderSubBuilder, pg as UserSkillFolder_ManifestErrorQuery, ph as UserSkillFoldersQuery, pi as UserSkillImportItemModel, pj as UserSkillImportPreviewModel, pk as UserSkillIssueModel, pl as WatchContextTopicMutation, pm as WebhookEndpoint, pn as WebhookEndpointCreated, po as WebhookEndpointsQuery, pp as WeeklyObjectQuery, pq as WindowDetailType, pr as WorkspaceAiModelSetting, ps as WorkspaceAiModelSettingQuery, pt as WorkspaceDeleteSchedule, pu as WorkspaceDeletionScheduleQuery, pv as WorkspaceMembership, pw as WorkspaceMembershipsQuery, px as WorkspaceModelPolicy, py as WorkspaceModelRole, pz as WorkspacePolicy, pA as WorkspacePolicyQuery, pB as WorkspaceSeats, pC as WorkspaceSeatsQuery, pD as WorkspaceUsage, pE as WorkspaceUsageSettings, pF as WorkspaceUsageSettingsQuery, pG as WorkspaceUsageSettings_PoolQuery, pH as createDvinaClient, pI as createDvinaEvents, pJ as uploadFile } from './_generated_sdk-CuWY4r7U.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-DTiW92Zh.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-DTiW92Zh.js';
3
+ import { I as IncludeDirective } from './_generated_sdk-Dkdq-O9z.js';
4
+ export { A as ActiveChatsEvent, b as ActiveChatsSnapshot, c as ActiveWindowType, d as AddBrowserFavoriteMutation, e as AddIntegrationAccountMutation, f as AddMcpServerMutation, g as Agent, h as AgentActionRule, i as AgentConnection, j as AgentMemory, k as AgentOrderByRelevanceFieldEnum, l as AgentQuery, m as AgentSubBuilder, n as AgentWorkflow, o as AgentWorkflowOutput, p as AgentWorkflowQuery, q as AgentWorkflowResource, r as AgentWorkflowStep, s as AgentWorkflow_OutputQuery, t as AgentWorkflow_Output_ResourceQuery, u as AgentWorkflow_StepsQuery, v as Agent_ChatsQuery, w as Agent_ScheduledMessagesQuery, x as AgentsQuery, y as AiProviderSettingQuery, z as AiResourceType, B as AnswerChatQuestionMutation, E as AnswerChatToolCallMutation, F as AppSuggestions, G as AppSuggestionsQuery, H as ApplyArtifactDataMutation, J as AreaRetention, K as ArtifactDataChangedDoc, L as ArtifactDataOpKind, M as ArtifactDataQuery, N as ArtifactDataResult, O as ArtifactDataSnapshot, P as AssignUsagePolicyMutation, Q as AttentionEntry, R as AttentionQuery, S as AuditActorKind, T as AuditDeliveryStatus, U as AuditDestination, V as AuditDestinationCreated, W as AuditDestinationKind, X as AuditDestinationsQuery, Y as AuditExportFormat, Z as AuditLogEntry, _ as AuditLogExport, $ as AuditLogPage, a0 as AuditLogQuery, a1 as AuditLog_EntriesQuery, a2 as AuditPayloadFormat, a3 as AuthzChange, a4 as BillingConnection, a5 as BillingConnectionQuery, a6 as BillingConnectionState, a7 as BillingSubscriptionEvent, a8 as BillingSubscriptionSnapshot, a9 as BriefWorldLessQuery, aa as BrowserFavorite, ab as BrowserFavoriteConnection, ac as BrowserFavoriteOrderByRelevanceFieldEnum, ad as BrowserFavoritesQuery, ae as BrowserLoginSync, af as BrowserLoginSyncQuery, ag as BrowserProfile, ah as BrowserSettings, ai as BrowserSettingsQuery, aj as BrowserSettings_SitesQuery, ak as BrowserSite, al as BrowserTab, am as BrowserTabConnection, an as BrowserTabOrderByRelevanceFieldEnum, ao as BrowserTabState, ap as BrowserTabsQuery, aq as BrowserVisit, ar as BrowserVisitConnection, as as BrowserVisitOrderByRelevanceFieldEnum, at as BrowserVisitsQuery, au as CancelDataActionMutation, av as CancelImportReminderMutation, aw as CancelOauthFlowMutation, ax as CancelScheduledMessageMutation, ay as CancelWorkspaceDeletionMutation, az as Canvas, aA as CanvasConnection, aB as CanvasEditOrigin, aC as CanvasKind, aD as CanvasOrderByRelevanceFieldEnum, aE as CanvasQuery, aF as CanvasSubBuilder, aG as CanvasVersion, aH as CanvasVersionsQuery, aI as CanvasView, aJ as CanvasViewQuery, aK as Canvas_ThumbnailFileQuery, aL as Canvas_VersionsQuery, aM as CanvasesQuery, aN as CapabilityType, aO as CertificateInfo, aP as ChangePersonObjectMutation, aQ as Chat, aR as ChatConnection, aS as ChatDay, aT as ChatDaysQuery, aU as ChatIdleOutcome, aV as ChatImportExecuteOutput, aW as ChatImportPreviewOutput, C as ChatMessage, a as ChatMessageConnection, aX as ChatMessageOrderByRelevanceFieldEnum, aY as ChatMessageQuery, aZ as ChatMessageRoleEnum, a_ as ChatMessageSubBuilder, a$ as ChatMessageToolOutputQuery, b0 as ChatMessage_ChatQuery, b1 as ChatMessage_Chat_DesktopDeviceQuery, b2 as ChatMessage_Chat_InsightQuery, b3 as ChatMessage_Chat_ProjectQuery, b4 as ChatMessage_FeedbackQuery, b5 as ChatMessage_ReferencedChatQuery, b6 as ChatMessage_ReferencedChat_DesktopDeviceQuery, b7 as ChatMessage_ReferencedChat_InsightQuery, b8 as ChatMessage_ReferencedChat_ProjectQuery, b9 as ChatMessage_RepliesQuery, ba as ChatMessage_ThreadQuery, bb as ChatMessagesAroundQuery, bc as ChatMessagesQuery, bd as ChatNextPromptMutation, be as ChatOrderByRelevanceFieldEnum, bf as ChatQuery, bg as ChatReadState, bh as ChatSourceImportFidelityEnum, bi as ChatSourceImportModeEnum, bj as ChatSourceProviderEnum, bk as ChatSubBuilder, bl as ChatThread, bm as ChatThreadOrderByRelevanceFieldEnum, bn as ChatWaitingOn, bo as ChatWorkspaceMode, bp as Chat_AgentsQuery, bq as Chat_DesktopDeviceQuery, br as Chat_DesktopDevice_DesktopBindingsQuery, bs as Chat_InsightQuery, bt as Chat_Insight_ThumbnailFileQuery, bu as Chat_MessagesQuery, bv as Chat_ProjectQuery, bw as Chat_Project_DesktopBindingQuery, bx as Chat_ScheduledMessagesQuery, by as ChatsQuery, bz as CheckDatabaseConnectionMutation, bA as ClearImageEditContextMutation, bB as ClearMemoryMutation, bC as CloseBrowserTabMutation, bD as CloseShareLinkMutation, bE as CommitMessageSuggestion, bF as ComputerActivity, bG as ComputerActivityQuery, bH as ComputerActivitySubBuilder, bI as ComputerActivity_RunsQuery, bJ as ComputerRunFile, bK as ComputerRunMessage, bL as ConfirmDatabaseRelationshipsMutation, bM as ConfirmTableRelationshipMutation, bN as ConnectIntegrationMutation, bO as ConnectLocalModelMutation, bP as ConsumePulseEventsMutation, bQ as ContextAnalysis, bR as ContextAnalysisQuery, bS as ContextAnalysisStatus, bT as ContextArea, bU as ContextAreaConnection, bV as ContextAreaOrderByRelevanceFieldEnum, bW as ContextAreaQuery, bX as ContextAreasQuery, bY as ContextTopic, bZ as ContextTopicConnection, b_ as ContextTopicKind, b$ as ContextTopicOrderByRelevanceFieldEnum, c0 as ContextTopicQuery, c1 as ContextTopicSubBuilder, c2 as ContextTopic_FactsQuery, c3 as ContextTopic_OpenLoopsQuery, c4 as ContextTopicsQuery, c5 as ContinueInterpretationMutation, c6 as CopiedSharedItem, c7 as CopySharedItemMutation, c8 as CorrectContextTopicMutation, c9 as CreateAgentMutation, ca as CreateAuditDestinationMutation, cb as CreateCanvasMutation, cc as CreateChatMutation, cd as CreateDatabaseMutation, ce as CreateDlpDictionaryMutation, cf as CreateDlpProviderMutation, cg as CreateDlpRuleMutation, ch as CreateDocumentMutation, ci as CreateFolderMutation, cj as CreateInsightMutation, ck as CreateIntegrationMutation, cl as CreateIntegrationOutput, cm as CreateProjectMutation, cn as CreateRetentionPolicyMutation, co as CreateTableMutation, cp as CreateUsagePolicyMutation, cq as CreateUserSkillFileMutation, cr as CreateUserSkillFolderMutation, cs as CreateWebhookEndpointMutation, ct as CreateWorkspaceAiModelSettingMutation, cu as CubeModel, cv as CubeModelRevisionsQuery, cw as DataAction, cx as DataActionConnection, cy as DataActionKind, cz as DataActionOrderByRelevanceFieldEnum, cA as DataActionPreview, cB as DataActionPreviewQuery, cC as DataActionQuery, cD as DataActionStatus, cE as DataActionsQuery, cF as DataPurge, cG as DataPurgeKind, cH as DataPurgeStatus, cI as Database, cJ as DatabaseCatalog, cK as DatabaseCatalogConnection, cL as DatabaseCatalogOrderByRelevanceFieldEnum, cM as DatabaseCatalogQuery, cN as DatabaseCatalogSubBuilder, cO as DatabaseCatalog_EngineQuery, cP as DatabaseCatalogsQuery, cQ as DatabaseConnection, cR as DatabaseConnectionInfo, cS as DatabaseConnectionStatus, cT as DatabaseEngine, cU as DatabaseOrderByRelevanceFieldEnum, cV as DatabasePreparationQuery, cW as DatabasePreparationTable, cX as DatabaseQuery, cY as DatabaseReachability, cZ as DatabaseRelationship, c_ as DatabaseRelationshipDetectionProgressQuery, c$ as DatabaseRelationshipDetectionQuery, d0 as DatabaseRelationshipEvidence, d1 as DatabaseRelationshipSource, d2 as DatabaseRelationshipsQuery, d3 as DatabaseSchemaQuery, d4 as DatabaseSourceColumn, d5 as DatabaseSourceTable, d6 as DatabaseSubBuilder, d7 as DatabaseSuggestedQuestionsQuery, d8 as Database_ConnectionInfoQuery, d9 as Database_ConnectionStatusQuery, da as Database_EngineQuery, db as Database_Engine_CatalogQuery, dc as Database_SourceTablesQuery, dd as Database_TablesQuery, de as DatabasesQuery, df as DecideTaskGoalMutation, dg as DeleteAgentMutation, dh as DeleteAiProviderSettingMutation, di as DeleteAuditDestinationMutation, dj as DeleteCanvasIfEmptyMutation, dk as DeleteCanvasMutation, dl as DeleteChatMutation, dm as DeleteDatabaseMutation, dn as DeleteDlpDictionaryMutation, dp as DeleteDlpProviderMutation, dq as DeleteDlpRuleMutation, dr as DeleteDocumentMutation, ds as DeleteEarlierConversationMutation, dt as DeleteFolderMutation, du as DeleteInsightMutation, dv as DeleteInsightsMutation, dw as DeleteIntegrationMutation, dx as DeleteMemoryFileMutation, dy as DeleteModelConnectionMutation, dz as DeleteProjectMutation, dA as DeleteSavedAiProviderModelMutation, dB as DeleteTableAccessRuleMutation, dC as DeleteTableMutation, dD as DeleteUsagePolicyMutation, dE as DeleteUserSkillFileMutation, dF as DeleteUserSkillFolderMutation, dG as DeleteWebhookEndpointMutation, dH as DeletedItem, dI as DeletedItemConnection, dJ as DeletedItemKind, dK as DeletedItemOrderByRelevanceFieldEnum, dL as DeletedItemsQuery, dM as DesktopDevice, dN as DesktopDeviceConnection, dO as DesktopDeviceOrderByRelevanceFieldEnum, dP as DesktopDeviceQuery, dQ as DesktopDeviceSubBuilder, dR as DesktopDevice_ChatsQuery, dS as DesktopDevice_DesktopBindingsQuery, dT as DesktopDevicesQuery, dU as DetectDatabaseRelationshipsMutation, dV as DetectImageEditItemsMutation, dW as DevAccessTokenOutput, dX as DeviceIdentityKey, dY as DeviceIdentityKind, dZ as DevicePresenceEvent, d_ as DevicePresenceSnapshot, d$ as Digest, e0 as DigestConnection, e1 as DigestOrderByRelevanceFieldEnum, e2 as DigestPeriod, e3 as DigestQuery, e4 as DigestStatus, e5 as DigestsQuery, e6 as DisconnectIntegrationAccountMutation, e7 as DisconnectIntegrationMutation, e8 as DisconnectLocalModelMutation, e9 as DismissNpsMutation, ea as DismissProactiveItemMutation, eb as DismissPulseEventMutation, ec as DismissTableRelationshipMutation, ed as DismissedDatabaseRelationshipsQuery, ee as DlpAction, ef as DlpDictionariesQuery, eg as DlpDictionary, eh as DlpDictionaryView, ei as DlpFailMode, ej as DlpHit, ek as DlpProvider, el as DlpProviderKind, em as DlpProviderSetting, en as DlpProviderTestResult, eo as DlpProviderView, ep as DlpProvidersQuery, eq as DlpReportQuery, er as DlpRule, es as DlpRuleKind, et as DlpRuleView, eu as DlpRulesQuery, ev as DlpScope, ew as DlpTriggerCount, ex as Document, ey as DocumentAttachmentsQuery, ez as DocumentCatalog, eA as DocumentCatalogConnection, eB as DocumentCatalogOrderByRelevanceFieldEnum, eC as DocumentCatalogQuery, eD as DocumentCatalogSubBuilder, eE as DocumentCatalog_FormatQuery, eF as DocumentCatalogsQuery, eG as DocumentConnection, eH as DocumentContent, eI as DocumentFormat, eJ as DocumentOrderByRelevanceFieldEnum, eK as DocumentQuery, eL as DocumentReadStatus, eM as DocumentSubBuilder, eN as DocumentVersion, eO as Document_ContentsQuery, eP as Document_FileQuery, eQ as Document_FormatQuery, eR as Document_Format_CatalogQuery, eS as Document_TablesQuery, eT as Document_VersionsQuery, eU as DocumentsQuery, eV as DvinaEventRef, eW as DvinaEventTopic, eX as DvinaEvents, eY as DvinaModel, eZ as DvinaRealtimeEvent, D as DvinaSdk, e_ as DvinaSdkBaseOptions, e$ as DvinaSdkCallbackOptions, f0 as DvinaSdkLifecycle, f1 as DvinaSdkLifecycleHint, f2 as DvinaSdkOptions, f3 as DvinaSdkTokenOptions, f4 as EarlierConversation, f5 as EarlierConversationConnection, f6 as EarlierConversationsQuery, f7 as EnterpriseFeaturesAllPlansQuery, f8 as EntitlementTier, f9 as EntityOpen, fa as ExecuteChatImportMutation, fb as Expectation, fc as ExportAuditLogMutation, fd as ExportQuery, fe as ExportUsageReportQuery, ff as ExportWithInsightIdQuery, fg as Fact, fh as FactConnection, fi as FactKind, fj as FactOrderByRelevanceFieldEnum, fk as FactOwner, fl as FactStatus, fm as FactTimePrecision, fn as FactsQuery, fo as FeaturePersonLessMutation, fp as FeedActionType, fq as FeedAgentData, fr as FeedCanvasData, fs as FeedConnection, ft as FeedDatabaseData, fu as FeedDocumentData, fv as FeedInsightData, fw as FeedIntegrationData, fx as FeedItem, fy as FeedItemGenerated, fz as FeedItemKind, fA as FeedItemOrderByRelevanceFieldEnum, fB as FeedItemQuery, fC as FeedItemSubBuilder, fD as FeedItem_ActionQuery, fE as FeedItem_DataQuery, fF as FeedItemsQuery, fG as FeedKeptData, fH as FeedMediaData, fI as FeedProjectData, fJ as FeedPulseData, fK as FeedSendMessageAction, fL as FeedSkillData, fM as Feedback, fN as FeedbackCategory, fO as FeedbackOrderByRelevanceFieldEnum, fP as FeedbackReason, fQ as FeedbackType, fR as File, fS as FileArchiveUrl, fT as FileArchiveUrlQuery, fU as FileMetaQuery, fV as FileModel, fW as FileQuery, fX as FileUrlVariant, fY as FileUrlsQuery, fZ as FindFitTierQuery, f_ as FocusBrowserTabMutation, f$ as Folder, g0 as FolderConnection, g1 as FolderOrderByRelevanceFieldEnum, g2 as FolderQuery, g3 as FoldersQuery, g4 as ForgetBrowserLoginsMutation, g5 as ForgetContextTopicMutation, g6 as ForgetKeptItemsMutation, g7 as ForgetPersonMutation, g8 as ForgetPersonResult, g9 as GeneralAccess, ga as GenerateUploadUriMutation, gb as GetCapabilityQuery, gc as GetDevAccessTokenQuery, gd as GetLimitQuery, ge as GetRemainingQuery, gf as GetTokenUsageByModelQuery, gg as GetTokenUsageHistoryQuery, gh as GetUsageQuery, gi as GrantAgentApprovalMutation, gj as HasLegalHoldsQuery, gk as HideSharedItemMutation, gl as ImageEditContextQuery, gm as ImageEditItem, gn as ImageEditItemShape, go as ImportReminderQuery, gp as ImportUserSkillMutation, gq as Insight, gr as InsightConnection, gs as InsightOrderByRelevanceFieldEnum, gt as InsightQuery, gu as InsightSubBuilder, gv as Insight_ChatQuery, gw as Insight_Chat_DesktopDeviceQuery, gx as Insight_Chat_ProjectQuery, gy as Insight_ThumbnailFileQuery, gz as InsightsQuery, gA as InstallLocalModelMutation, gB as Integration, gC as IntegrationCatalog, gD as IntegrationCatalogConnection, gE as IntegrationCatalogOrderByRelevanceFieldEnum, gF as IntegrationCatalogQuery, gG as IntegrationCatalogSubBuilder, gH as IntegrationCatalogToolsQuery, gI as IntegrationCatalog_ProviderQuery, gJ as IntegrationCatalogsQuery, gK as IntegrationConnection, gL as IntegrationOrderByRelevanceFieldEnum, gM as IntegrationProvider, gN as IntegrationQuery, gO as IntegrationStatus, gP as IntegrationSubBuilder, gQ as Integration_ProviderQuery, gR as Integration_Provider_CatalogQuery, gS as IntegrationsQuery, gT as Interpretation, gU as InterpretationConnection, gV as InterpretationOrderByRelevanceFieldEnum, gW as InterpretationType, gX as InterpretationsQuery, gY as KeepMutation, gZ as KeptItem, g_ as KeptItemsListQuery, g$ as KeptItemsQuery, h0 as KeptKind, h1 as KeptSource, h2 as LegalHold, h3 as LegalHoldAreasQuery, h4 as LegalHoldConnection, h5 as LegalHoldOrderByRelevanceFieldEnum, h6 as LegalHoldsConnectionQuery, h7 as LimitType, h8 as LiveActivityTarget, h9 as LocalModelCatalogView, ha as LocalModelConnectionView, hb as LocalModelDeviceView, hc as LocalModelEngineView, hd as LocalModelInstallView, he as LocalModelServerView, hf as LocalModelSettings, hg as LocalModelSettingsQuery, hh as LocalModelSettings_ConnectionsQuery, hi as LocalModelSettings_DevicesQuery, hj as LocalModelView, hk as MainChatQuery, hl as MainChat_AgentsQuery, hm as MainChat_DesktopDeviceQuery, hn as MainChat_DesktopDevice_DesktopBindingsQuery, ho as MainChat_InsightQuery, hp as MainChat_Insight_ThumbnailFileQuery, hq as MainChat_MessagesQuery, hr as MainChat_ProjectQuery, hs as MainChat_Project_DesktopBindingQuery, ht as MainChat_ScheduledMessagesQuery, hu as ManagedChatModelsQuery, hv as MarkBriefSeenMutation, hw as MarkBriefWorldLessMutation, hx as MarkChatSeenMutation, hy as MarkOpenedMutation, hz as MarkProactiveItemActedMutation, hA as MarkProactiveItemSeenMutation, hB as MarkSharedItemSeenMutation, hC as McpAuthEvent, hD as McpAuthRequest, hE as McpAuthSnapshot, hF as McpClientInformation, hG as McpCodeVerifier, hH as McpServer, hI as McpServerConnection, hJ as McpServerOrderByRelevanceFieldEnum, hK as McpServerTestOutput, hL as McpTokens, hM as MemberAttributeKeysQuery, hN as MemberAttributesQuery, hO as MemberHandoverPlan, hP as MemberIntegration, hQ as MemberIntegrationKind, hR as MemberIntegrationsQuery, hS as MemoryFile, hT as MemoryFilesQuery, hU as MemorySettingQuery, hV as MemorySettings, hW as MergePeopleMutation, hX as ModelChoice, hY as ModelConnection, hZ as ModelConnectionAddress, h_ as ModelConnectionAddressView, h$ as ModelConnectionView, i0 as ModelHealthView, i1 as ModelRoleView, i2 as ModelSettings, i3 as ModelSettingsQuery, i4 as ModelSettings_ChoicesQuery, i5 as ModelSettings_ConnectionsQuery, i6 as ModelSettings_PolicyQuery, i7 as ModelSettings_RolesQuery, i8 as ModelTokenUsage, i9 as MySharedLinksQuery, ia as MySharedLinks_LinksQuery, ib as MySharedLinks_PeopleQuery, ic as Notification, id as NotificationCategory, ie as NotificationConnection, ig as NotificationOrderByRelevanceFieldEnum, ih as NotificationPreference, ii as NotificationPreferenceConnection, ij as NotificationPreferenceOrderByRelevanceFieldEnum, ik as NotificationPreferenceOutput, il as NotificationPreferencesConnectionQuery, im as NotificationPriority, io as NotificationQuery, ip as NotificationStatus, iq as NotificationsByReferenceQuery, ir as NotificationsQuery, is as NotifyInvitationMutation, it as NpsResponse, iu as NpsStatus, iv as NpsStatusQuery, iw as NullsOrder, ix as OpenLoopSide, iy as OpenLoopsQuery, iz as Origin, iA as OutsideLink, iB as OutsideShare, iC as OutsideSharesQuery, iD as OutsideShares_LinksQuery, iE as OutsideShares_PeopleQuery, iF as OutsideSharing, iG as PauseLocalModelInstallMutation, iH as PauseScheduledMessageMutation, iI as PeopleQuery, iJ as Person, iK as PersonConnection, iL as PersonFact, iM as PersonFactConnection, iN as PersonFactOrderByRelevanceFieldEnum, iO as PersonFactsQuery, iP as PersonImage, iQ as PersonImageKind, iR as PersonKind, iS as PersonKnownFact, iT as PersonMeeting, iU as PersonMoment, iV as PersonObject, iW as PersonObjectOrderByRelevanceFieldEnum, iX as PersonObjectStatus, iY as PersonOrderByRelevanceFieldEnum, iZ as PersonPhoto, i_ as PersonPhotoSource, i$ as PersonQuery, j0 as PersonSubBuilder, j1 as Person_FactsQuery, j2 as Person_ImageQuery, j3 as Person_MomentsQuery, j4 as Person_NextMeetingQuery, j5 as Person_NextMeeting_PlaceQuery, j6 as Person_ObjectQuery, j7 as Person_ObjectsQuery, j8 as Person_PhotoQuery, j9 as Person_PlaceQuery, ja as Place, jb as PlaceConnection, jc as PlaceLegalHoldMutation, jd as PlaceOrderByRelevanceFieldEnum, je as PlacePointSource, jf as PlacePrecision, jg as PlacesQuery, jh as PlanMemberHandoverMutation, ji as PrepareProactiveItemMutation, jj as Presentation, jk as PreviewChatImportMutation, jl as PreviewUserSkillImportMutation, jm as PrivacyStats, jn as PrivacyStatsQuery, jo as PrivateMcpServersConnectionQuery, jp as ProactiveAgentProposal, jq as ProactiveBudget, jr as ProactiveBudgetQuery, js as ProactiveBudget_ByDetectorQuery, jt as ProactiveBudget_GateByDetectorQuery, ju as ProactiveCardValue, jv as ProactiveDetectorSpend, jw as ProactiveGateDecisions, jx as ProactiveItem, jy as ProactiveItemConnection, jz as ProactiveItemOrderByRelevanceFieldEnum, jA as ProactiveItemQuery, jB as ProactiveItemSubBuilder, jC as ProactiveItem_ValueQuery, jD as ProactiveItemsConnectionQuery, jE as ProactiveLevel, jF as ProactiveNotUsefulReason, jG as ProactiveRun, jH as ProactiveSetting, jI as ProactiveSettingQuery, jJ as ProactiveSettings, jK as Project, jL as ProjectConnection, jM as ProjectDesktopBinding, jN as ProjectDesktopBindingOrderByRelevanceFieldEnum, jO as ProjectDesktopContextKind, jP as ProjectOrderByRelevanceFieldEnum, jQ as ProjectQuery, jR as ProjectSource, jS as ProjectSubBuilder, jT as Project_ChatsQuery, jU as Project_DesktopBindingQuery, jV as Project_DesktopBinding_DeviceQuery, jW as ProjectsQuery, jX as ProposeProactiveAgentMutation, jY as PulseAppSummaryModel, jZ as PulseAppSummaryQuery, j_ as PulseEvent, j$ as PulseEventConnection, k0 as PulseEventKind, k1 as PulseEventOrderByRelevanceFieldEnum, k2 as PulseEventPriority, k3 as PulseEventQuery, k4 as PulseEventSubBuilder, k5 as PulseEvent_IntegrationQuery, k6 as PulseEvent_Integration_ProviderQuery, k7 as PulseEventsQuery, k8 as PulseTriggerSettingModel, k9 as PulseTriggerSettingsQuery, ka as PushTarget, kb as QueryMode, kc as QueryQuery, kd as QueryWithInsightIdQuery, ke as RateProactiveItemNotUsefulMutation, kf as RealtimeSnapshotCache, kg as RealtimeTopicData, kh as ReanalyzeDocumentMutation, ki as ReasoningEffort, kj as ReconnectIntegrationAccountMutation, kk as RefineAgentInstructionMutation, kl as RefineSkillInstructionMutation, km as RefreshDatabaseSchemaMutation, kn as RefreshInsightMutation, ko as RegisterDesktopDeviceMutation, kp as RegisterLiveActivityTargetMutation, kq as RegisterPushTargetMutation, kr as ReinterpretSourceMutation, ks as ReinterpretSourcesOfuserMutation, kt as RejectTopicFactMutation, ku as Relation, kv as RelationType, kw as RelationshipDetectionProgress, kx as RelationshipDetectionStatus, ky as ReleaseLegalHoldMutation, kz as RemindImportMutation, kA as RemindWhenUsageResetsMutation, kB as RemoveBriefWorldLessMutation, kC as RemoveBrowserFavoriteMutation, kD as RemoveChatMessagesMutation, kE as RemoveLocalModelMutation, kF as RemoveMcpServerMutation, kG as RemovePersonPhotoMutation, kH as RenameCanvasMutation, kI as RenameContextAreaMutation, kJ as RenameIntegrationAccountMutation, kK as RenamePersonMutation, kL as RenewShareLinkMutation, kM as RepairUserSkillManifestMutation, kN as ReplaceDlpDictionaryMutation, kO as ReplaceUserSkillFileContentMutation, kP as ReportMessageMutation, kQ as RequestDataActionMutation, kR as RequestWorkspaceExportMutation, kS as ResetWorkspaceMutation, kT as ResolvePulseEventMutation, kU as ResolvedFileUrl, kV as RespondChatApprovalMutation, kW as RestoreCanvasVersionMutation, kX as RestoreCubeModelRevisionMutation, kY as RestoreDocumentVersionMutation, kZ as RestoreItemMutation, k_ as RestorePlacement, k$ as RestoreTableRelationshipMutation, l0 as RestoredItem, l1 as ResumeDatabasePreparationMutation, l2 as ResumeScheduledMessageMutation, l3 as RetentionArea, l4 as RetentionPoliciesConnectionQuery, l5 as RetentionPolicy, l6 as RetentionPolicyConnection, l7 as RetentionPolicyOrderByRelevanceFieldEnum, l8 as ReviewContextTopicMutation, l9 as RevokeMemberIntegrationMutation, la as RevokeOutsideSharesMutation, lb as RotateModelConnectionKeyMutation, lc as RotateWebhookEndpointSecretMutation, ld as SaveCanvasViewMutation, le as SaveTableAccessRuleMutation, lf as SaveWidgetMutation, lg as ScheduleMessageMutation, lh as ScheduleWorkspaceDeletionMutation, li as ScheduledAgentRun, lj as ScheduledAgentRunConnection, lk as ScheduledDelivery, ll as ScheduledMessage, lm as ScheduledMessageAuthor, ln as ScheduledMessageConnection, lo as ScheduledMessageOrderByRelevanceFieldEnum, lp as ScheduledMessageQuery, lq as ScheduledMessageRun, lr as ScheduledMessageStatus, ls as ScheduledMessageSubBuilder, lt as ScheduledMessage_AgentQuery, lu as ScheduledMessage_ChatQuery, lv as ScheduledMessage_Chat_DesktopDeviceQuery, lw as ScheduledMessage_Chat_InsightQuery, lx as ScheduledMessage_Chat_ProjectQuery, ly as ScheduledMessage_RecentRunsQuery, lz as ScheduledMessagesQuery, lA as ScheduledRunTrigger, lB as SendAgentCopyMutation, lC as SendAuditDestinationNowMutation, lD as SendChatMessageWhileRunningMutation, lE as SendFeedbackMutation, lF as SendScheduledMessageNowMutation, lG as SendTestPushMutation, lH as SetAuditDestinationPausedMutation, lI as SetBrowserLoginSyncExcludedMutation, lJ as SetBrowserLoginSyncMutation, lK as SetDatabasePrimaryKeyMutation, lL as SetDefaultIntegrationAccountMutation, lM as SetDlpBuiltinRuleMutation, lN as SetGeneralAccessMutation, lO as SetImageEditContextMutation, lP as SetMemberAttributeKeysMutation, lQ as SetMemberAttributesMutation, lR as SetMemoryEnabledMutation, lS as SetShareLinkExpiryMutation, lT as SetTableColumnTypeMutation, lU as SetUserSkillEnabledMutation, lV as SetWorkspaceModelPolicyMutation, lW as SetWorkspaceModelRoleMutation, lX as SetupInterest, lY as ShareAccess, lZ as ShareAccessQuery, l_ as ShareAccess_SharedByQuery, l$ as ShareAccess_SharedBy_InheritedFromQuery, m0 as ShareAction, m1 as ShareCandidates, m2 as ShareCandidatesQuery, m3 as ShareCandidates_MembersQuery, m4 as ShareCheck, m5 as ShareCheckQuery, m6 as ShareCheckStatus, m7 as ShareCheck_NarrowingsQuery, m8 as ShareEvent, m9 as ShareInheritance, ma as ShareLink, mb as ShareLinkExpiry, mc as ShareLinkInfo, md as ShareMember, me as ShareMutation, mf as ShareNarrowedTable, mg as ShareNarrowing, mh as ShareRecipientKind, mi as ShareRole, mj as ShareState, mk as ShareStateQuery, ml as ShareState_LinkQuery, mm as ShareState_MembersQuery, mn as ShareState_OwnerQuery, mo as ShareState_Owner_InheritedFromQuery, mp as ShareableKind, mq as SharedByMeQuery, mr as SharedContainerKind, ms as SharedContent, mt as SharedContentsQuery, mu as SharedItem, mv as SharedItemConnection, mw as SharedItemView, mx as SharedMark, my as SharedPreview, mz as SharedWithMeQuery, mA as SharingEnabledQuery, mB as SkillCatalogItem, mC as SkillCatalogQuery, mD as SkillCatalogSource, mE as SkillUsage, mF as SnoozeProactiveItemMutation, mG as SortOrder, mH as StartChatDayMutation, mI as StopChatMutation, mJ as StopDatabaseRelationshipDetectionMutation, mK as SubmitNpsMutation, mL as SuggestCommitMessageMutation, mM as SurfaceSnapshotQuery, mN as SyncEvent, mO as SyncEventCursor, mP as SyncProjectDesktopBindingMutation, mQ as Table, mR as TableAccess, mS as TableAccessLogQuery, mT as TableAccessLog_EntriesQuery, mU as TableAccessPrincipal, mV as TableAccessQuery, mW as TableAccessRule, mX as TableAccessRuleSaved, mY as TableAccessSubBuilder, mZ as TableAccess_RulesQuery, m_ as TableConnection, m$ as TableOrderByRelevanceFieldEnum, n0 as TableQuery, n1 as TableStatus, n2 as TableSubBuilder, n3 as TableSuggestedQuestionsQuery, n4 as Table_DatabaseQuery, n5 as Table_Database_ConnectionInfoQuery, n6 as Table_Database_ConnectionStatusQuery, n7 as Table_Database_EngineQuery, n8 as Table_Database_SourceTablesQuery, n9 as Table_DocumentQuery, na as Table_Document_ContentsQuery, nb as Table_Document_FileQuery, nc as Table_Document_FormatQuery, nd as Table_Document_VersionsQuery, ne as Table_FromRelationsQuery, nf as Table_ModelQuery, ng as Table_ToRelationsQuery, nh as TablesQuery, ni as TaskGoalDecision, nj as TaskJob, nk as TaskJobConnection, nl as TaskJobOrderByRelevanceFieldEnum, nm as TaskJobStatus, nn as TaskJobsQuery, no as TestDlpProviderMutation, np as TestDlpRulesQuery, nq as TestLocalModelMutation, nr as TestMcpServerConnectionMutation, ns as TestMcpServerMutation, nt as TestModelConnectionMutation, nu as TestScheduledMessageMutation, nv as TokenUsage, nw as TokenUsageConnection, nx as TokenUsageLimitState, ny as TokenUsageOrderByRelevanceFieldEnum, nz as TokenUsageStatusEvent, nA as TokenUsageStatusSnapshot, nB as TokenUsageWindowSnapshot, nC as TokenUsagesQuery, nD as ToolApprovalMode, nE as ToolApprovalSetting, nF as TopicActivitiesQuery, nG as TopicActivity, nH as TopicActivityConnection, nI as TopicActivityOrderByRelevanceFieldEnum, nJ as TopicFact, nK as TopicFactSource, nL as TopicLink, nM as Trip, nN as TripConnection, nO as TripOrderByRelevanceFieldEnum, nP as TripsQuery, nQ as UndoCanvasTurnMutation, nR as UnlinkPersonFactMutation, nS as UnregisterLiveActivityTargetMutation, nT as UnregisterPushTargetMutation, nU as UnsendWaitingChatMessageMutation, nV as UnshareMutation, nW as UpdateAgentMutation, nX as UpdateBrowserSettingsMutation, nY as UpdateCanvasMutation, nZ as UpdateChatMutation, n_ as UpdateDatabaseMutation, n$ as UpdateDlpProviderMutation, o0 as UpdateDlpRuleMutation, o1 as UpdateDocumentMutation, o2 as UpdateFolderMutation, o3 as UpdateInsightMutation, o4 as UpdateInsightThumbnailMutation, o5 as UpdateInterpMutation, o6 as UpdateMemoryFileMutation, o7 as UpdateNotificationPreferenceMutation, o8 as UpdateNotificationPreferencesMutation, o9 as UpdateProactiveSettingMutation, oa as UpdateProjectMutation, ob as UpdatePulseTriggerMutation, oc as UpdateRetentionPolicyMutation, od as UpdateScheduledMessageMutation, oe as UpdateShareRoleMutation, of as UpdateTableMutation, og as UpdateUsagePolicyMutation, oh as UpdateUserSetupMutation, oi as UpdateUserSkillFileMutation, oj as UpdateUserSkillFolderMutation, ok as UpdateWebhookEndpointMutation, ol as UpdateWorkspaceAiModelSettingMutation, om as UpdateWorkspacePolicyMutation, on as UpdateWorkspaceUsageSettingsMutation, oo as UpgradeCubeModelSemanticsMutation, op as UploadFormat, oq as UploadFormatKind, or as UploadFormatsQuery, os as UploadOptions, ot as UploadProgressEvent, ou as UploadResult, ov as UpsertAiProviderSettingMutation, ow as UpsertModelConnectionMutation, ox as UsageHistoryGranularity, oy as UsageLimitHit, oz as UsageLimitHitConnection, oA as UsageLimitHitOrderByRelevanceFieldEnum, oB as UsageLimitHitsQuery, oC as UsagePlan, oD as UsagePlansQuery, oE as UsagePoliciesConnectionQuery, oF as UsagePolicy, oG as UsagePolicyAssignee, oH as UsagePolicyAssignment, oI as UsagePolicyAssignmentConnection, oJ as UsagePolicyAssignmentOrderByRelevanceFieldEnum, oK as UsagePolicyAssignmentsConnectionQuery, oL as UsagePolicyConnection, oM as UsagePolicyEntry, oN as UsagePolicyOrderByRelevanceFieldEnum, oO as UsagePolicySubject, oP as UsagePool, oQ as UsagePoolExhausted, oR as UsageReport, oS as UsageReportExport, oT as UsageReportLine, oU as UsageReportQuery, oV as UsageReport_ModelsQuery, oW as UsageReport_PeopleQuery, oX as UsageReport_TeamsQuery, oY as UsageSettingsQuery, oZ as UsageWindowsStatusType, o_ as UsePersonPhotoMutation, o$ as UserAiProviderSetting, p0 as UserFeedback, p1 as UserMemorySetting, p2 as UserNotification, p3 as UserNotificationEvent, p4 as UserNotificationSnapshot, p5 as UserSetup, p6 as UserSetupQuery, p7 as UserSetupState, p8 as UserSkillFile, p9 as UserSkillFileModel, pa as UserSkillFileQuery, pb as UserSkillFilesQuery, pc as UserSkillFolder, pd as UserSkillFolderModel, pe as UserSkillFolderQuery, pf as UserSkillFolderSubBuilder, pg as UserSkillFolder_ManifestErrorQuery, ph as UserSkillFoldersQuery, pi as UserSkillImportItemModel, pj as UserSkillImportPreviewModel, pk as UserSkillIssueModel, pl as WatchContextTopicMutation, pm as WebhookEndpoint, pn as WebhookEndpointCreated, po as WebhookEndpointsQuery, pp as WeeklyObjectQuery, pq as WindowDetailType, pr as WorkspaceAiModelSetting, ps as WorkspaceAiModelSettingQuery, pt as WorkspaceDeleteSchedule, pu as WorkspaceDeletionScheduleQuery, pv as WorkspaceMembership, pw as WorkspaceMembershipsQuery, px as WorkspaceModelPolicy, py as WorkspaceModelRole, pz as WorkspacePolicy, pA as WorkspacePolicyQuery, pB as WorkspaceSeats, pC as WorkspaceSeatsQuery, pD as WorkspaceUsage, pE as WorkspaceUsageSettings, pF as WorkspaceUsageSettingsQuery, pG as WorkspaceUsageSettings_PoolQuery, pH as createDvinaClient, pI as createDvinaEvents, pJ as uploadFile } from './_generated_sdk-Dkdq-O9z.js';
5
+ import { D as DvinaError } from './error-CuX-RKTE.js';
6
+ export { a as DvinaAuthenticationError, b as DvinaForbiddenError, e as DvinaGraphQLError, c as DvinaNetworkError, f as DvinaNotFoundError, g as DvinaOperationKind, h as DvinaPlanRestrictionError, d as DvinaSyncApplyError, i as DvinaTokenLimitError, G as GRAPHQL_ERROR_CODES, j as GraphQLErrorEntry, k as createGraphQLError, l as extractErrorCode } from './error-CuX-RKTE.js';
7
+ import { c as createHttpTransport, D as DvinaDatabase, b as SseRealtimeEvent, S as SyncEngine, d as CacheRule } from './connection-DsemtinG.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-DsemtinG.js';
9
9
  export { extractNodes, mergeConnections } from './pagination/index.js';
10
10
  import 'graphql';
11
11
  import './billing/index.js';