@dvina/sdk 5.0.65 → 5.0.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- import { C as Connection } from '../connection-DkvWhViN.js';
2
- export { A as AbstractConnection, P as PageInfo, r as defaultConnection } from '../connection-DkvWhViN.js';
3
- import '../types-0oS5PBdX.js';
1
+ import { C as Connection } from '../connection-CcX51iG3.js';
2
+ export { A as AbstractConnection, P as PageInfo, r as defaultConnection } from '../connection-CcX51iG3.js';
3
+ import '../types-DlNXHZQK.js';
4
4
  import 'graphql';
5
5
  import 'dexie';
6
- import '../error-aFALORBM.js';
6
+ import '../error-B-z8CPkV.js';
7
7
 
8
8
  /**
9
9
  * Extract all nodes from a connection.
@@ -13,7 +13,15 @@ interface FetchOptions {
13
13
  */
14
14
  interface MutationOptions {
15
15
  optimisticData?: Record<string, unknown>;
16
+ /**
17
+ * A delete the server makes by a query (Select All): the rows of the deleted entity it takes besides those named in
18
+ * `optimisticData`, as stored. The device's copies leave with them, and until the server has taken the delete no
19
+ * read or sync change brings one back, those the device never read included.
20
+ */
21
+ optimisticDeleteWhere?: (record: Record<string, unknown>) => boolean;
16
22
  onOptimisticApplied?: () => void;
23
+ /** False: a refusal is not sent to the SDK's `onError`, for a caller that tells it itself (a failed sign-in still goes). */
24
+ reportErrors?: boolean;
17
25
  }
18
26
  /**
19
27
  * Core transport abstraction.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dvina/sdk",
3
- "version": "5.0.65",
3
+ "version": "5.0.67",
4
4
  "description": "Type-safe SDK for the Dvina GraphQL API",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -1 +0,0 @@
1
- export{b as ActiveWindowType,Yo as AddBrowserFavoriteDocument,Zo as AddIntegrationAccountDocument,_o as AddMcpServerDocument,c as AgentActionRule,Ub as AgentConnectionFragmentDoc,Vb as AgentCountAggregateFragmentDoc,wt as AgentDocument,Tb as AgentFragmentDoc,Wb as AgentMaxAggregateFragmentDoc,Yb as AgentMemoryCountAggregateFragmentDoc,Xb as AgentMemoryFragmentDoc,Zb as AgentMemoryMaxAggregateFragmentDoc,_b as AgentMemoryMinAggregateFragmentDoc,$b as AgentMinAggregateFragmentDoc,d as AgentOrderByRelevanceFieldEnum,zt as AgentWorkflowDocument,dc as AgentWorkflowFragmentDoc,bc as AgentWorkflowOutputFragmentDoc,ac as AgentWorkflowResourceFragmentDoc,cc as AgentWorkflowStepFragmentDoc,At as AgentWorkflow_OutputDocument,Bt as AgentWorkflow_Output_ResourceDocument,Ct as AgentWorkflow_StepsDocument,xt as Agent_ChatsDocument,yt as Agent_ScheduledMessagesDocument,Dt as AgentsDocument,Et as AiProviderSettingDocument,a as AiResourceType,$o as AnswerChatQuestionDocument,ap as ApplyArtifactDataDocument,ec as AreaRetentionFragmentDoc,fc as ArtifactDataChangedDocFragmentDoc,Ft as ArtifactDataDocument,e as ArtifactDataOpKind,gc as ArtifactDataResultFragmentDoc,hc as ArtifactDataSnapshotFragmentDoc,bp as AssignUsagePolicyDocument,Gt as AttentionDocument,ic as AttentionEntryFragmentDoc,f as AuditActorKind,g as AuditDeliveryStatus,kc as AuditDestinationAvgAggregateFragmentDoc,lc as AuditDestinationCountAggregateFragmentDoc,mc as AuditDestinationCreatedFragmentDoc,jc as AuditDestinationFragmentDoc,h as AuditDestinationKind,nc as AuditDestinationMaxAggregateFragmentDoc,oc as AuditDestinationMinAggregateFragmentDoc,pc as AuditDestinationSumAggregateFragmentDoc,Ht as AuditDestinationsDocument,i as AuditExportFormat,It as AuditLogDocument,rc as AuditLogEntryFragmentDoc,qc as AuditLogExportFragmentDoc,sc as AuditLogPageFragmentDoc,Jt as AuditLog_EntriesDocument,j as AuditPayloadFormat,uc as AuthzChangeAvgAggregateFragmentDoc,vc as AuthzChangeCountAggregateFragmentDoc,tc as AuthzChangeFragmentDoc,wc as AuthzChangeMaxAggregateFragmentDoc,xc as AuthzChangeMinAggregateFragmentDoc,yc as AuthzChangeSumAggregateFragmentDoc,Kt as BillingConnectionDocument,zc as BillingConnectionFragmentDoc,k as BillingConnectionState,Ac as BrowserFavoriteAvgAggregateFragmentDoc,Cc as BrowserFavoriteConnectionFragmentDoc,Dc as BrowserFavoriteCountAggregateFragmentDoc,Bc as BrowserFavoriteFragmentDoc,Ec as BrowserFavoriteMaxAggregateFragmentDoc,Fc as BrowserFavoriteMinAggregateFragmentDoc,l as BrowserFavoriteOrderByRelevanceFieldEnum,Gc as BrowserFavoriteSumAggregateFragmentDoc,Lt as BrowserFavoritesDocument,Mt as BrowserLoginSyncDocument,Hc as BrowserLoginSyncFragmentDoc,Jc as BrowserProfileAvgAggregateFragmentDoc,Kc as BrowserProfileCountAggregateFragmentDoc,Ic as BrowserProfileFragmentDoc,Lc as BrowserProfileMaxAggregateFragmentDoc,Mc as BrowserProfileMinAggregateFragmentDoc,Nc as BrowserProfileSumAggregateFragmentDoc,Nt as BrowserSettingsDocument,Pc as BrowserSettingsFragmentDoc,Ot as BrowserSettings_SitesDocument,Oc as BrowserSiteFragmentDoc,Rc as BrowserTabConnectionFragmentDoc,Sc as BrowserTabCountAggregateFragmentDoc,Qc as BrowserTabFragmentDoc,Tc as BrowserTabMaxAggregateFragmentDoc,Uc as BrowserTabMinAggregateFragmentDoc,m as BrowserTabOrderByRelevanceFieldEnum,n as BrowserTabState,Pt as BrowserTabsDocument,Vc as BrowserVisitAvgAggregateFragmentDoc,Xc as BrowserVisitConnectionFragmentDoc,Yc as BrowserVisitCountAggregateFragmentDoc,Wc as BrowserVisitFragmentDoc,Zc as BrowserVisitMaxAggregateFragmentDoc,_c as BrowserVisitMinAggregateFragmentDoc,o as BrowserVisitOrderByRelevanceFieldEnum,$c as BrowserVisitSumAggregateFragmentDoc,Qt as BrowserVisitsDocument,cp as CancelDataActionDocument,dp as CancelImportReminderDocument,ep as CancelOauthFlowDocument,fp as CancelScheduledMessageDocument,gp as CancelWorkspaceDeletionDocument,bd as CanvasConnectionFragmentDoc,cd as CanvasCountAggregateFragmentDoc,Rt as CanvasDocument,p as CanvasEditOrigin,ad as CanvasFragmentDoc,q as CanvasKind,dd as CanvasMaxAggregateFragmentDoc,ed as CanvasMinAggregateFragmentDoc,r as CanvasOrderByRelevanceFieldEnum,gd as CanvasVersionCountAggregateFragmentDoc,fd as CanvasVersionFragmentDoc,hd as CanvasVersionMaxAggregateFragmentDoc,id as CanvasVersionMinAggregateFragmentDoc,Ut as CanvasVersionsDocument,Vt as CanvasVersions_CanvasDocument,Wt as CanvasVersions_Canvas_ThumbnailFileDocument,St as Canvas_ThumbnailFileDocument,Tt as Canvas_VersionsDocument,Xt as CanvasesDocument,s as CapabilityType,aj as CertificateInfoFragmentDoc,hp as ChangePersonObjectDocument,jd as ChatAvgAggregateFragmentDoc,ld as ChatConnectionFragmentDoc,md as ChatCountAggregateFragmentDoc,nd as ChatDayFragmentDoc,gu as ChatDaysDocument,Yt as ChatDocument,kd as ChatFragmentDoc,t as ChatIdleOutcome,od as ChatImportExecuteOutputFragmentDoc,pd as ChatImportPreviewOutputFragmentDoc,qd as ChatMaxAggregateFragmentDoc,sd as ChatMessageConnectionFragmentDoc,td as ChatMessageCountAggregateFragmentDoc,hu as ChatMessageDocument,rd as ChatMessageFragmentDoc,ud as ChatMessageMaxAggregateFragmentDoc,vd as ChatMessageMinAggregateFragmentDoc,u as ChatMessageOrderByRelevanceFieldEnum,v as ChatMessageRoleEnum,tu as ChatMessageToolOutputDocument,iu as ChatMessage_ChatDocument,ju as ChatMessage_Chat_DesktopDeviceDocument,ku as ChatMessage_Chat_InsightDocument,lu as ChatMessage_Chat_ProjectDocument,mu as ChatMessage_FeedbackDocument,nu as ChatMessage_ReferencedChatDocument,ou as ChatMessage_ReferencedChat_DesktopDeviceDocument,pu as ChatMessage_ReferencedChat_InsightDocument,qu as ChatMessage_ReferencedChat_ProjectDocument,ru as ChatMessage_RepliesDocument,su as ChatMessage_ThreadDocument,vu as ChatMessagesAroundDocument,uu as ChatMessagesDocument,wd as ChatMinAggregateFragmentDoc,ip as ChatNextPromptDocument,w as ChatOrderByRelevanceFieldEnum,yd as ChatReadStateCountAggregateFragmentDoc,xd as ChatReadStateFragmentDoc,zd as ChatReadStateMaxAggregateFragmentDoc,Ad as ChatReadStateMinAggregateFragmentDoc,x as ChatSourceImportFidelityEnum,y as ChatSourceImportModeEnum,z as ChatSourceProviderEnum,Bd as ChatSumAggregateFragmentDoc,Dd as ChatThreadCountAggregateFragmentDoc,Cd as ChatThreadFragmentDoc,Ed as ChatThreadMaxAggregateFragmentDoc,Fd as ChatThreadMinAggregateFragmentDoc,A as ChatThreadOrderByRelevanceFieldEnum,B as ChatWaitingOn,C as ChatWorkspaceMode,Zt as Chat_AgentsDocument,_t as Chat_DesktopDeviceDocument,$t as Chat_DesktopDevice_DesktopBindingsDocument,au as Chat_InsightDocument,bu as Chat_Insight_ThumbnailFileDocument,cu as Chat_MessagesDocument,du as Chat_ProjectDocument,eu as Chat_Project_DesktopBindingDocument,fu as Chat_ScheduledMessagesDocument,wu as ChatsDocument,jp as CheckDatabaseConnectionDocument,kp as ClearImageEditContextDocument,lp as ClearMemoryDocument,mp as CloseBrowserTabDocument,np as CloseShareLinkDocument,Gd as CommitMessageSuggestionFragmentDoc,xu as ComputerActivityDocument,Jd as ComputerActivityFragmentDoc,yu as ComputerActivity_RunsDocument,zu as ComputerActivity_Runs_FilesDocument,Hd as ComputerRunFileFragmentDoc,Id as ComputerRunMessageFragmentDoc,op as ConfirmDatabaseRelationshipsDocument,pp as ConfirmTableRelationshipDocument,qp as ConnectIntegrationDocument,rp as ConnectLocalModelDocument,sp as ConsumePulseEventsDocument,Ld as ContextAnalysisCountAggregateFragmentDoc,Au as ContextAnalysisDocument,Kd as ContextAnalysisFragmentDoc,Md as ContextAnalysisMaxAggregateFragmentDoc,Nd as ContextAnalysisMinAggregateFragmentDoc,D as ContextAnalysisStatus,Od as ContextAreaAvgAggregateFragmentDoc,Qd as ContextAreaConnectionFragmentDoc,Rd as ContextAreaCountAggregateFragmentDoc,Bu as ContextAreaDocument,Pd as ContextAreaFragmentDoc,Sd as ContextAreaMaxAggregateFragmentDoc,Td as ContextAreaMinAggregateFragmentDoc,E as ContextAreaOrderByRelevanceFieldEnum,Ud as ContextAreaSumAggregateFragmentDoc,Cu as ContextAreasDocument,Vd as ContextTopicAvgAggregateFragmentDoc,Zd as ContextTopicConnectionFragmentDoc,_d as ContextTopicCountAggregateFragmentDoc,Du as ContextTopicDocument,Yd as ContextTopicFragmentDoc,F as ContextTopicKind,$d as ContextTopicMaxAggregateFragmentDoc,ae as ContextTopicMinAggregateFragmentDoc,G as ContextTopicOrderByRelevanceFieldEnum,be as ContextTopicSumAggregateFragmentDoc,Eu as ContextTopic_FactsDocument,Fu as ContextTopic_Facts_SourceDocument,Gu as ContextTopic_OpenLoopsDocument,Hu as ContextTopic_OpenLoops_SourceDocument,Iu as ContextTopicsDocument,tp as ContinueInterpretationDocument,ce as CopiedSharedItemFragmentDoc,up as CopySharedItemDocument,vp as CorrectContextTopicDocument,wp as CreateAgentDocument,xp as CreateAuditDestinationDocument,yp as CreateCanvasDocument,zp as CreateChatDocument,Ap as CreateDatabaseDocument,Bp as CreateDlpDictionaryDocument,Cp as CreateDlpProviderDocument,Dp as CreateDlpRuleDocument,Ep as CreateDocumentDocument,Fp as CreateFolderDocument,Gp as CreateInsightDocument,Hp as CreateIntegrationDocument,de as CreateIntegrationOutputFragmentDoc,Ip as CreateProjectDocument,Jp as CreateRetentionPolicyDocument,Kp as CreateTableDocument,Lp as CreateUsagePolicyDocument,Mp as CreateUserSkillFileDocument,Np as CreateUserSkillFolderDocument,Op as CreateWebhookEndpointDocument,Pp as CreateWorkspaceAiModelSettingDocument,fe as CubeModelCountAggregateFragmentDoc,ee as CubeModelFragmentDoc,ge as CubeModelMaxAggregateFragmentDoc,he as CubeModelMinAggregateFragmentDoc,Ju as CubeModelRevisionsDocument,je as DataActionConnectionFragmentDoc,ke as DataActionCountAggregateFragmentDoc,Ku as DataActionDocument,ie as DataActionFragmentDoc,H as DataActionKind,le as DataActionMaxAggregateFragmentDoc,me as DataActionMinAggregateFragmentDoc,I as DataActionOrderByRelevanceFieldEnum,Lu as DataActionPreviewDocument,ne as DataActionPreviewFragmentDoc,J as DataActionStatus,Mu as DataActionsDocument,pe as DataPurgeAvgAggregateFragmentDoc,qe as DataPurgeCountAggregateFragmentDoc,oe as DataPurgeFragmentDoc,K as DataPurgeKind,re as DataPurgeMaxAggregateFragmentDoc,se as DataPurgeMinAggregateFragmentDoc,L as DataPurgeStatus,te as DataPurgeSumAggregateFragmentDoc,ue as DatabaseCatalogAvgAggregateFragmentDoc,we as DatabaseCatalogConnectionFragmentDoc,xe as DatabaseCatalogCountAggregateFragmentDoc,Vu as DatabaseCatalogDocument,ve as DatabaseCatalogFragmentDoc,ye as DatabaseCatalogMaxAggregateFragmentDoc,ze as DatabaseCatalogMinAggregateFragmentDoc,M as DatabaseCatalogOrderByRelevanceFieldEnum,Ae as DatabaseCatalogSumAggregateFragmentDoc,Wu as DatabaseCatalog_EngineDocument,Xu as DatabaseCatalogsDocument,Ge as DatabaseConnectionFragmentDoc,Be as DatabaseConnectionInfoFragmentDoc,Ce as DatabaseConnectionStatusFragmentDoc,He as DatabaseCountAggregateFragmentDoc,Nu as DatabaseDocument,Je as DatabaseEngineCountAggregateFragmentDoc,Ie as DatabaseEngineFragmentDoc,Ke as DatabaseEngineMaxAggregateFragmentDoc,Le as DatabaseEngineMinAggregateFragmentDoc,Fe as DatabaseFragmentDoc,Me as DatabaseMaxAggregateFragmentDoc,Ne as DatabaseMinAggregateFragmentDoc,N as DatabaseOrderByRelevanceFieldEnum,Yu as DatabasePreparationDocument,Pe as DatabasePreparationTableCountAggregateFragmentDoc,Oe as DatabasePreparationTableFragmentDoc,Qe as DatabasePreparationTableMaxAggregateFragmentDoc,Re as DatabasePreparationTableMinAggregateFragmentDoc,O as DatabaseReachability,Zu as DatabaseRelationshipDetectionDocument,_u as DatabaseRelationshipDetectionProgressDocument,Se as DatabaseRelationshipEvidenceFragmentDoc,Te as DatabaseRelationshipFragmentDoc,P as DatabaseRelationshipSource,$u as DatabaseRelationshipsDocument,av as DatabaseRelationships_EvidenceDocument,bv as DatabaseSchemaDocument,De as DatabaseSourceColumnFragmentDoc,Ee as DatabaseSourceTableFragmentDoc,cv as DatabaseSuggestedQuestionsDocument,Ou as Database_ConnectionInfoDocument,Pu as Database_ConnectionStatusDocument,Qu as Database_EngineDocument,Ru as Database_Engine_CatalogDocument,Su as Database_SourceTablesDocument,Tu as Database_SourceTables_ColumnsDocument,Uu as Database_TablesDocument,dv as DatabasesDocument,Qp as DecideTaskGoalDocument,Rp as DeleteAgentDocument,Sp as DeleteAiProviderSettingDocument,Tp as DeleteAuditDestinationDocument,Up as DeleteCanvasDocument,Vp as DeleteCanvasIfEmptyDocument,Wp as DeleteChatDocument,Xp as DeleteDatabaseDocument,Yp as DeleteDlpDictionaryDocument,Zp as DeleteDlpProviderDocument,_p as DeleteDlpRuleDocument,$p as DeleteDocumentDocument,aq as DeleteEarlierConversationDocument,bq as DeleteFolderDocument,cq as DeleteInsightDocument,dq as DeleteInsightsDocument,eq as DeleteIntegrationDocument,fq as DeleteMemoryFileDocument,gq as DeleteModelConnectionDocument,hq as DeleteProjectDocument,iq as DeleteSavedAiProviderModelDocument,kq as DeleteTableAccessRuleDocument,jq as DeleteTableDocument,lq as DeleteUsagePolicyDocument,mq as DeleteUserSkillFileDocument,nq as DeleteUserSkillFolderDocument,oq as DeleteWebhookEndpointDocument,Ue as DeletedItemAvgAggregateFragmentDoc,We as DeletedItemConnectionFragmentDoc,Xe as DeletedItemCountAggregateFragmentDoc,Ve as DeletedItemFragmentDoc,Q as DeletedItemKind,Ye as DeletedItemMaxAggregateFragmentDoc,Ze as DeletedItemMinAggregateFragmentDoc,R as DeletedItemOrderByRelevanceFieldEnum,_e as DeletedItemSumAggregateFragmentDoc,ev as DeletedItemsDocument,$e as DesktopDeviceAvgAggregateFragmentDoc,bf as DesktopDeviceConnectionFragmentDoc,cf as DesktopDeviceCountAggregateFragmentDoc,fv as DesktopDeviceDocument,af as DesktopDeviceFragmentDoc,df as DesktopDeviceMaxAggregateFragmentDoc,ef as DesktopDeviceMinAggregateFragmentDoc,S as DesktopDeviceOrderByRelevanceFieldEnum,ff as DesktopDeviceSumAggregateFragmentDoc,gv as DesktopDevice_ChatsDocument,hv as DesktopDevice_DesktopBindingsDocument,iv as DesktopDevice_DesktopBindings_ProjectDocument,jv as DesktopDevicesDocument,pq as DetectDatabaseRelationshipsDocument,qq as DetectImageEditItemsDocument,gf as DevAccessTokenOutputFragmentDoc,if as DeviceIdentityKeyCountAggregateFragmentDoc,hf as DeviceIdentityKeyFragmentDoc,jf as DeviceIdentityKeyMaxAggregateFragmentDoc,kf as DeviceIdentityKeyMinAggregateFragmentDoc,T as DeviceIdentityKind,lf as DigestAvgAggregateFragmentDoc,nf as DigestConnectionFragmentDoc,of as DigestCountAggregateFragmentDoc,kv as DigestDocument,mf as DigestFragmentDoc,pf as DigestMaxAggregateFragmentDoc,qf as DigestMinAggregateFragmentDoc,U as DigestOrderByRelevanceFieldEnum,V as DigestPeriod,W as DigestStatus,rf as DigestSumAggregateFragmentDoc,lv as DigestsDocument,sq as DisconnectIntegrationAccountDocument,rq as DisconnectIntegrationDocument,tq as DisconnectLocalModelDocument,uq as DismissNpsDocument,vq as DismissProactiveItemDocument,wq as DismissPulseEventDocument,xq as DismissTableRelationshipDocument,mv as DismissedDatabaseRelationshipsDocument,nv as DismissedDatabaseRelationships_EvidenceDocument,X as DlpAction,ov as DlpDictionariesDocument,tf as DlpDictionaryAvgAggregateFragmentDoc,uf as DlpDictionaryCountAggregateFragmentDoc,sf as DlpDictionaryFragmentDoc,vf as DlpDictionaryMaxAggregateFragmentDoc,wf as DlpDictionaryMinAggregateFragmentDoc,xf as DlpDictionarySumAggregateFragmentDoc,yf as DlpDictionaryViewFragmentDoc,Y as DlpFailMode,zf as DlpHitFragmentDoc,Bf as DlpProviderCountAggregateFragmentDoc,Af as DlpProviderFragmentDoc,Z as DlpProviderKind,Cf as DlpProviderMaxAggregateFragmentDoc,Df as DlpProviderMinAggregateFragmentDoc,Ff as DlpProviderSettingFragmentDoc,Ef as DlpProviderTestResultFragmentDoc,Gf as DlpProviderViewFragmentDoc,pv as DlpProvidersDocument,qv as DlpProviders_SettingsDocument,rv as DlpReportDocument,If as DlpRuleCountAggregateFragmentDoc,Hf as DlpRuleFragmentDoc,_ as DlpRuleKind,Jf as DlpRuleMaxAggregateFragmentDoc,Kf as DlpRuleMinAggregateFragmentDoc,Lf as DlpRuleViewFragmentDoc,sv as DlpRulesDocument,$ as DlpScope,Nf as DlpTriggerCountAvgAggregateFragmentDoc,Of as DlpTriggerCountCountAggregateFragmentDoc,Mf as DlpTriggerCountFragmentDoc,Pf as DlpTriggerCountMaxAggregateFragmentDoc,Qf as DlpTriggerCountMinAggregateFragmentDoc,Rf as DlpTriggerCountSumAggregateFragmentDoc,Sf as DocumentCatalogAvgAggregateFragmentDoc,Uf as DocumentCatalogConnectionFragmentDoc,Vf as DocumentCatalogCountAggregateFragmentDoc,Bv as DocumentCatalogDocument,Tf as DocumentCatalogFragmentDoc,Wf as DocumentCatalogMaxAggregateFragmentDoc,Xf as DocumentCatalogMinAggregateFragmentDoc,aa as DocumentCatalogOrderByRelevanceFieldEnum,Yf as DocumentCatalogSumAggregateFragmentDoc,Cv as DocumentCatalog_FormatDocument,Dv as DocumentCatalogsDocument,_f as DocumentConnectionFragmentDoc,ag as DocumentContentAvgAggregateFragmentDoc,bg as DocumentContentCountAggregateFragmentDoc,$f as DocumentContentFragmentDoc,cg as DocumentContentMaxAggregateFragmentDoc,dg as DocumentContentMinAggregateFragmentDoc,eg as DocumentContentSumAggregateFragmentDoc,fg as DocumentCountAggregateFragmentDoc,tv as DocumentDocument,hg as DocumentFormatCountAggregateFragmentDoc,gg as DocumentFormatFragmentDoc,ig as DocumentFormatMaxAggregateFragmentDoc,jg as DocumentFormatMinAggregateFragmentDoc,Zf as DocumentFragmentDoc,kg as DocumentMaxAggregateFragmentDoc,lg as DocumentMinAggregateFragmentDoc,ba as DocumentOrderByRelevanceFieldEnum,ca as DocumentReadStatus,ng as DocumentVersionAvgAggregateFragmentDoc,og as DocumentVersionCountAggregateFragmentDoc,mg as DocumentVersionFragmentDoc,pg as DocumentVersionMaxAggregateFragmentDoc,qg as DocumentVersionMinAggregateFragmentDoc,rg as DocumentVersionSumAggregateFragmentDoc,uv as Document_ContentsDocument,vv as Document_FileDocument,wv as Document_FormatDocument,xv as Document_Format_CatalogDocument,yv as Document_TablesDocument,zv as Document_VersionsDocument,Av as Document_Versions_FileDocument,Ev as DocumentsDocument,tg as EarlierConversationConnectionFragmentDoc,sg as EarlierConversationFragmentDoc,Fv as EarlierConversationsDocument,Gv as EnterpriseFeaturesAllPlansDocument,da as EntitlementTier,vg as EntityOpenCountAggregateFragmentDoc,ug as EntityOpenFragmentDoc,wg as EntityOpenMaxAggregateFragmentDoc,xg as EntityOpenMinAggregateFragmentDoc,yq as ExecuteChatImportDocument,zg as ExpectationAvgAggregateFragmentDoc,Ag as ExpectationCountAggregateFragmentDoc,yg as ExpectationFragmentDoc,Bg as ExpectationMaxAggregateFragmentDoc,Cg as ExpectationMinAggregateFragmentDoc,Dg as ExpectationSumAggregateFragmentDoc,zq as ExportAuditLogDocument,Hv as ExportDocument,Iv as ExportUsageReportDocument,Jv as ExportWithInsightIdDocument,Eg as FactAvgAggregateFragmentDoc,Hg as FactConnectionFragmentDoc,Ig as FactCountAggregateFragmentDoc,Gg as FactFragmentDoc,ea as FactKind,Jg as FactMaxAggregateFragmentDoc,Kg as FactMinAggregateFragmentDoc,fa as FactOrderByRelevanceFieldEnum,ga as FactOwner,ha as FactStatus,Lg as FactSumAggregateFragmentDoc,ia as FactTimePrecision,Kv as FactsDocument,Aq as FeaturePersonLessDocument,ja as FeedActionType,Ng as FeedAgentDataFragmentDoc,Og as FeedCanvasDataFragmentDoc,Zg as FeedConnectionFragmentDoc,Pg as FeedDatabaseDataFragmentDoc,Qg as FeedDocumentDataFragmentDoc,Rg as FeedInsightDataFragmentDoc,Sg as FeedIntegrationDataFragmentDoc,_g as FeedItemCountAggregateFragmentDoc,Lv as FeedItemDocument,Yg as FeedItemFragmentDoc,$g as FeedItemGeneratedFragmentDoc,ka as FeedItemKind,ah as FeedItemMaxAggregateFragmentDoc,bh as FeedItemMinAggregateFragmentDoc,la as FeedItemOrderByRelevanceFieldEnum,Mv as FeedItem_ActionDocument,Nv as FeedItem_DataDocument,Ov as FeedItemsDocument,Tg as FeedKeptDataFragmentDoc,Ug as FeedMediaDataFragmentDoc,Vg as FeedProjectDataFragmentDoc,Wg as FeedPulseDataFragmentDoc,Mg as FeedSendMessageActionFragmentDoc,Xg as FeedSkillDataFragmentDoc,ma as FeedbackCategory,dh as FeedbackCountAggregateFragmentDoc,ch as FeedbackFragmentDoc,eh as FeedbackMaxAggregateFragmentDoc,fh as FeedbackMinAggregateFragmentDoc,na as FeedbackOrderByRelevanceFieldEnum,oa as FeedbackReason,pa as FeedbackType,Qv as FileArchiveUrlDocument,hh as FileArchiveUrlFragmentDoc,ih as FileAvgAggregateFragmentDoc,jh as FileCountAggregateFragmentDoc,Pv as FileDocument,gh as FileFragmentDoc,kh as FileMaxAggregateFragmentDoc,Rv as FileMetaDocument,lh as FileMinAggregateFragmentDoc,mh as FileModelFragmentDoc,nh as FileSumAggregateFragmentDoc,qa as FileUrlVariant,Sv as FileUrlsDocument,Tv as FindFitTierDocument,Bq as FocusBrowserTabDocument,ph as FolderConnectionFragmentDoc,qh as FolderCountAggregateFragmentDoc,Uv as FolderDocument,oh as FolderFragmentDoc,rh as FolderMaxAggregateFragmentDoc,sh as FolderMinAggregateFragmentDoc,ra as FolderOrderByRelevanceFieldEnum,Vv as FoldersDocument,Cq as ForgetBrowserLoginsDocument,Dq as ForgetContextTopicDocument,Eq as ForgetKeptItemsDocument,Fq as ForgetPersonDocument,th as ForgetPersonResultFragmentDoc,sa as GeneralAccess,Gq as GenerateUploadUriDocument,Wv as GetCapabilityDocument,Xv as GetDevAccessTokenDocument,Yv as GetLimitDocument,Zv as GetRemainingDocument,_v as GetTokenUsageByModelDocument,$v as GetTokenUsageHistoryDocument,aw as GetUsageDocument,Hq as GrantAgentApprovalDocument,Iq as GrantChatApprovalDocument,bw as HasLegalHoldsDocument,Jq as HideSharedItemDocument,cw as ImageEditContextDocument,vh as ImageEditItemFragmentDoc,uh as ImageEditItemShapeFragmentDoc,dw as ImportReminderDocument,Kq as ImportUserSkillDocument,xh as InsightConnectionFragmentDoc,yh as InsightCountAggregateFragmentDoc,ew as InsightDocument,wh as InsightFragmentDoc,zh as InsightMaxAggregateFragmentDoc,Ah as InsightMinAggregateFragmentDoc,ta as InsightOrderByRelevanceFieldEnum,fw as Insight_ChatDocument,gw as Insight_Chat_DesktopDeviceDocument,hw as Insight_Chat_ProjectDocument,iw as Insight_ThumbnailFileDocument,jw as InsightsDocument,Lq as InstallLocalModelDocument,Bh as IntegrationAvgAggregateFragmentDoc,Ch as IntegrationCatalogAvgAggregateFragmentDoc,Eh as IntegrationCatalogConnectionFragmentDoc,Fh as IntegrationCatalogCountAggregateFragmentDoc,nw as IntegrationCatalogDocument,Dh as IntegrationCatalogFragmentDoc,Gh as IntegrationCatalogMaxAggregateFragmentDoc,Hh as IntegrationCatalogMinAggregateFragmentDoc,ua as IntegrationCatalogOrderByRelevanceFieldEnum,Ih as IntegrationCatalogSumAggregateFragmentDoc,pw as IntegrationCatalogToolsDocument,ow as IntegrationCatalog_ProviderDocument,qw as IntegrationCatalogsDocument,Kh as IntegrationConnectionFragmentDoc,Lh as IntegrationCountAggregateFragmentDoc,kw as IntegrationDocument,Jh as IntegrationFragmentDoc,Mh as IntegrationMaxAggregateFragmentDoc,Nh as IntegrationMinAggregateFragmentDoc,va as IntegrationOrderByRelevanceFieldEnum,Ph as IntegrationProviderCountAggregateFragmentDoc,Oh as IntegrationProviderFragmentDoc,Qh as IntegrationProviderMaxAggregateFragmentDoc,Rh as IntegrationProviderMinAggregateFragmentDoc,wa as IntegrationStatus,Sh as IntegrationSumAggregateFragmentDoc,lw as Integration_ProviderDocument,mw as Integration_Provider_CatalogDocument,rw as IntegrationsDocument,Uh as InterpretationConnectionFragmentDoc,Vh as InterpretationCountAggregateFragmentDoc,Th as InterpretationFragmentDoc,Wh as InterpretationMaxAggregateFragmentDoc,Xh as InterpretationMinAggregateFragmentDoc,xa as InterpretationOrderByRelevanceFieldEnum,ya as InterpretationType,sw as InterpretationsDocument,Mq as KeepDocument,Zh as KeptItemCountAggregateFragmentDoc,Yh as KeptItemFragmentDoc,_h as KeptItemMaxAggregateFragmentDoc,$h as KeptItemMinAggregateFragmentDoc,tw as KeptItemsDocument,uw as KeptItemsListDocument,za as KeptKind,Aa as KeptSource,vw as LegalHoldAreasDocument,bi as LegalHoldConnectionFragmentDoc,ci as LegalHoldCountAggregateFragmentDoc,ai as LegalHoldFragmentDoc,di as LegalHoldMaxAggregateFragmentDoc,ei as LegalHoldMinAggregateFragmentDoc,Ba as LegalHoldOrderByRelevanceFieldEnum,ww as LegalHoldsConnectionDocument,Ca as LimitType,gi as LiveActivityTargetCountAggregateFragmentDoc,fi as LiveActivityTargetFragmentDoc,hi as LiveActivityTargetMaxAggregateFragmentDoc,ii as LiveActivityTargetMinAggregateFragmentDoc,ki as LocalModelCatalogViewFragmentDoc,ji as LocalModelConnectionViewFragmentDoc,pi as LocalModelDeviceViewFragmentDoc,li as LocalModelEngineViewFragmentDoc,mi as LocalModelInstallViewFragmentDoc,oi as LocalModelServerViewFragmentDoc,xw as LocalModelSettingsDocument,qi as LocalModelSettingsFragmentDoc,yw as LocalModelSettings_ConnectionsDocument,zw as LocalModelSettings_DevicesDocument,Aw as LocalModelSettings_Devices_CatalogDocument,Bw as LocalModelSettings_Devices_EngineDocument,Cw as LocalModelSettings_Devices_InstallsDocument,Dw as LocalModelSettings_Devices_ServersDocument,ni as LocalModelViewFragmentDoc,Ew as MainChatDocument,Fw as MainChat_AgentsDocument,Gw as MainChat_DesktopDeviceDocument,Hw as MainChat_DesktopDevice_DesktopBindingsDocument,Iw as MainChat_InsightDocument,Jw as MainChat_Insight_ThumbnailFileDocument,Kw as MainChat_MessagesDocument,Lw as MainChat_ProjectDocument,Mw as MainChat_Project_DesktopBindingDocument,Nw as MainChat_ScheduledMessagesDocument,Ow as ManagedChatModelsDocument,Nq as MarkBriefSeenDocument,Oq as MarkChatSeenDocument,Pq as MarkOpenedDocument,Qq as MarkProactiveItemActedDocument,Rq as MarkProactiveItemSeenDocument,Sq as MarkSharedItemSeenDocument,si as McpClientInformationCountAggregateFragmentDoc,ri as McpClientInformationFragmentDoc,ti as McpClientInformationMaxAggregateFragmentDoc,ui as McpClientInformationMinAggregateFragmentDoc,wi as McpCodeVerifierCountAggregateFragmentDoc,vi as McpCodeVerifierFragmentDoc,xi as McpCodeVerifierMaxAggregateFragmentDoc,yi as McpCodeVerifierMinAggregateFragmentDoc,Ai as McpServerConnectionFragmentDoc,Bi as McpServerCountAggregateFragmentDoc,zi as McpServerFragmentDoc,Ci as McpServerMaxAggregateFragmentDoc,Di as McpServerMinAggregateFragmentDoc,Da as McpServerOrderByRelevanceFieldEnum,Ei as McpServerTestOutputFragmentDoc,Gi as McpTokensCountAggregateFragmentDoc,Fi as McpTokensFragmentDoc,Hi as McpTokensMaxAggregateFragmentDoc,Ii as McpTokensMinAggregateFragmentDoc,Pw as MemberAttributeKeysDocument,Qw as MemberAttributesDocument,Ji as MemberHandoverPlanFragmentDoc,Ki as MemberIntegrationFragmentDoc,Ea as MemberIntegrationKind,Rw as MemberIntegrationsDocument,Li as MemoryFileFragmentDoc,Sw as MemoryFilesDocument,Tw as MemorySettingDocument,Mi as MemorySettingsFragmentDoc,Tq as MergePeopleDocument,_i as ModelChoiceFragmentDoc,Pi as ModelConnectionAddressAvgAggregateFragmentDoc,Qi as ModelConnectionAddressCountAggregateFragmentDoc,Oi as ModelConnectionAddressFragmentDoc,Ri as ModelConnectionAddressMaxAggregateFragmentDoc,Si as ModelConnectionAddressMinAggregateFragmentDoc,Ti as ModelConnectionAddressSumAggregateFragmentDoc,$i as ModelConnectionAddressViewFragmentDoc,Ui as ModelConnectionAvgAggregateFragmentDoc,Vi as ModelConnectionCountAggregateFragmentDoc,Ni as ModelConnectionFragmentDoc,Wi as ModelConnectionMaxAggregateFragmentDoc,Xi as ModelConnectionMinAggregateFragmentDoc,Yi as ModelConnectionSumAggregateFragmentDoc,bj as ModelConnectionViewFragmentDoc,Zi as ModelHealthViewFragmentDoc,dj as ModelRoleViewFragmentDoc,Uw as ModelSettingsDocument,ej as ModelSettingsFragmentDoc,Vw as ModelSettings_ChoicesDocument,Ww as ModelSettings_Choices_HealthDocument,Xw as ModelSettings_ConnectionsDocument,Yw as ModelSettings_Connections_AddressesDocument,Zw as ModelSettings_Connections_CaCertificatesDocument,_w as ModelSettings_Connections_ClientCertificatesDocument,$w as ModelSettings_PolicyDocument,ax as ModelSettings_RolesDocument,fj as ModelTokenUsageFragmentDoc,Fa as NotificationCategory,hj as NotificationConnectionFragmentDoc,ij as NotificationCountAggregateFragmentDoc,bx as NotificationDocument,gj as NotificationFragmentDoc,jj as NotificationMaxAggregateFragmentDoc,kj as NotificationMinAggregateFragmentDoc,Ga as NotificationOrderByRelevanceFieldEnum,mj as NotificationPreferenceConnectionFragmentDoc,nj as NotificationPreferenceCountAggregateFragmentDoc,lj as NotificationPreferenceFragmentDoc,oj as NotificationPreferenceMaxAggregateFragmentDoc,pj as NotificationPreferenceMinAggregateFragmentDoc,Ha as NotificationPreferenceOrderByRelevanceFieldEnum,qj as NotificationPreferenceOutputFragmentDoc,cx as NotificationPreferencesConnectionDocument,Ia as NotificationPriority,Ja as NotificationStatus,ex as NotificationsByReferenceDocument,dx as NotificationsDocument,Uq as NotifyInvitationDocument,sj as NpsResponseAvgAggregateFragmentDoc,tj as NpsResponseCountAggregateFragmentDoc,rj as NpsResponseFragmentDoc,uj as NpsResponseMaxAggregateFragmentDoc,vj as NpsResponseMinAggregateFragmentDoc,wj as NpsResponseSumAggregateFragmentDoc,fx as NpsStatusDocument,xj as NpsStatusFragmentDoc,Ka as NullsOrder,La as OpenLoopSide,gx as OpenLoopsDocument,Ma as Origin,yj as OutsideLinkFragmentDoc,zj as OutsideShareFragmentDoc,hx as OutsideSharesDocument,ix as OutsideShares_LinksDocument,jx as OutsideShares_PeopleDocument,Aj as OutsideSharingFragmentDoc,Bj as PageInfoFragmentDoc,Vq as PauseLocalModelInstallDocument,Wq as PauseScheduledMessageDocument,kx as PeopleDocument,Cj as PersonAvgAggregateFragmentDoc,Jj as PersonConnectionFragmentDoc,Kj as PersonCountAggregateFragmentDoc,lx as PersonDocument,Mj as PersonFactConnectionFragmentDoc,Nj as PersonFactCountAggregateFragmentDoc,Lj as PersonFactFragmentDoc,Oj as PersonFactMaxAggregateFragmentDoc,Pj as PersonFactMinAggregateFragmentDoc,Na as PersonFactOrderByRelevanceFieldEnum,wx as PersonFactsDocument,Ij as PersonFragmentDoc,Ej as PersonImageFragmentDoc,Oa as PersonImageKind,Pa as PersonKind,Dj as PersonKnownFactFragmentDoc,Qj as PersonMaxAggregateFragmentDoc,Gj as PersonMeetingFragmentDoc,Rj as PersonMinAggregateFragmentDoc,Fj as PersonMomentFragmentDoc,Tj as PersonObjectAvgAggregateFragmentDoc,Uj as PersonObjectCountAggregateFragmentDoc,Sj as PersonObjectFragmentDoc,Vj as PersonObjectMaxAggregateFragmentDoc,Wj as PersonObjectMinAggregateFragmentDoc,Qa as PersonObjectOrderByRelevanceFieldEnum,Ra as PersonObjectStatus,Xj as PersonObjectSumAggregateFragmentDoc,Sa as PersonOrderByRelevanceFieldEnum,Hj as PersonPhotoFragmentDoc,Ta as PersonPhotoSource,Yj as PersonSumAggregateFragmentDoc,mx as Person_FactsDocument,nx as Person_Facts_SourceDocument,ox as Person_ImageDocument,px as Person_MomentsDocument,qx as Person_NextMeetingDocument,rx as Person_NextMeeting_PlaceDocument,sx as Person_ObjectDocument,tx as Person_ObjectsDocument,ux as Person_PhotoDocument,vx as Person_PlaceDocument,Zj as PlaceAvgAggregateFragmentDoc,_j as PlaceConnectionFragmentDoc,$j as PlaceCountAggregateFragmentDoc,Fg as PlaceFragmentDoc,Xq as PlaceLegalHoldDocument,ak as PlaceMaxAggregateFragmentDoc,bk as PlaceMinAggregateFragmentDoc,Ua as PlaceOrderByRelevanceFieldEnum,Va as PlacePointSource,Wa as PlacePrecision,ck as PlaceSumAggregateFragmentDoc,xx as PlacesDocument,Yq as PlanMemberHandoverDocument,Zq as PrepareProactiveItemDocument,Xa as Presentation,_q as PreviewChatImportDocument,$q as PreviewUserSkillImportDocument,yx as PrivacyStatsDocument,dk as PrivacyStatsFragmentDoc,zx as PrivateMcpServersConnectionDocument,ek as ProactiveAgentProposalFragmentDoc,Ax as ProactiveBudgetDocument,hk as ProactiveBudgetFragmentDoc,Bx as ProactiveBudget_ByDetectorDocument,Cx as ProactiveBudget_GateByDetectorDocument,jk as ProactiveCardValueFragmentDoc,fk as ProactiveDetectorSpendFragmentDoc,gk as ProactiveGateDecisionsFragmentDoc,ik as ProactiveItemAvgAggregateFragmentDoc,lk as ProactiveItemConnectionFragmentDoc,mk as ProactiveItemCountAggregateFragmentDoc,Dx as ProactiveItemDocument,kk as ProactiveItemFragmentDoc,nk as ProactiveItemMaxAggregateFragmentDoc,ok as ProactiveItemMinAggregateFragmentDoc,Ya as ProactiveItemOrderByRelevanceFieldEnum,pk as ProactiveItemSumAggregateFragmentDoc,Ex as ProactiveItem_ValueDocument,Fx as ProactiveItemsConnectionDocument,Za as ProactiveLevel,_a as ProactiveNotUsefulReason,rk as ProactiveRunAvgAggregateFragmentDoc,sk as ProactiveRunCountAggregateFragmentDoc,qk as ProactiveRunFragmentDoc,tk as ProactiveRunMaxAggregateFragmentDoc,uk as ProactiveRunMinAggregateFragmentDoc,vk as ProactiveRunSumAggregateFragmentDoc,xk as ProactiveSettingAvgAggregateFragmentDoc,yk as ProactiveSettingCountAggregateFragmentDoc,Gx as ProactiveSettingDocument,wk as ProactiveSettingFragmentDoc,zk as ProactiveSettingMaxAggregateFragmentDoc,Ak as ProactiveSettingMinAggregateFragmentDoc,Bk as ProactiveSettingSumAggregateFragmentDoc,Ck as ProactiveSettingsFragmentDoc,Ek as ProjectConnectionFragmentDoc,Fk as ProjectCountAggregateFragmentDoc,Hk as ProjectDesktopBindingCountAggregateFragmentDoc,Gk as ProjectDesktopBindingFragmentDoc,Ik as ProjectDesktopBindingMaxAggregateFragmentDoc,Jk as ProjectDesktopBindingMinAggregateFragmentDoc,$a as ProjectDesktopBindingOrderByRelevanceFieldEnum,ab as ProjectDesktopContextKind,Hx as ProjectDocument,Dk as ProjectFragmentDoc,Kk as ProjectMaxAggregateFragmentDoc,Lk as ProjectMinAggregateFragmentDoc,bb as ProjectOrderByRelevanceFieldEnum,cb as ProjectSource,Ix as Project_ChatsDocument,Jx as Project_DesktopBindingDocument,Kx as Project_DesktopBinding_DeviceDocument,Lx as ProjectsDocument,ar as ProposeProactiveAgentDocument,Mx as PulseAppSummaryDocument,Mk as PulseAppSummaryModelFragmentDoc,Ok as PulseEventConnectionFragmentDoc,Pk as PulseEventCountAggregateFragmentDoc,Nx as PulseEventDocument,Nk as PulseEventFragmentDoc,db as PulseEventKind,Qk as PulseEventMaxAggregateFragmentDoc,Rk as PulseEventMinAggregateFragmentDoc,eb as PulseEventOrderByRelevanceFieldEnum,fb as PulseEventPriority,Ox as PulseEvent_IntegrationDocument,Px as PulseEvent_Integration_ProviderDocument,Qx as PulseEventsDocument,Sk as PulseTriggerSettingModelFragmentDoc,Rx as PulseTriggerSettingsDocument,Uk as PushTargetCountAggregateFragmentDoc,Tk as PushTargetFragmentDoc,Vk as PushTargetMaxAggregateFragmentDoc,Wk as PushTargetMinAggregateFragmentDoc,Sx as QueryDocument,gb as QueryMode,Tx as QueryWithInsightIdDocument,br as RateProactiveItemNotUsefulDocument,cr as ReanalyzeDocumentDocument,hb as ReasoningEffort,dr as ReconnectIntegrationAccountDocument,er as RefineAgentInstructionDocument,fr as RefineSkillInstructionDocument,gr as RefreshDatabaseSchemaDocument,hr as RefreshInsightDocument,ir as RegisterDesktopDeviceDocument,jr as RegisterLiveActivityTargetDocument,kr as RegisterPushTargetDocument,lr as ReinterpretSourceDocument,mr as ReinterpretSourcesOfuserDocument,nr as RejectTopicFactDocument,Yk as RelationCountAggregateFragmentDoc,Xk as RelationFragmentDoc,Zk as RelationMaxAggregateFragmentDoc,_k as RelationMinAggregateFragmentDoc,ib as RelationType,$k as RelationshipDetectionProgressFragmentDoc,jb as RelationshipDetectionStatus,or as ReleaseLegalHoldDocument,pr as RemindImportDocument,qr as RemindWhenUsageResetsDocument,rr as RemoveBrowserFavoriteDocument,sr as RemoveChatMessagesDocument,tr as RemoveLocalModelDocument,ur as RemoveMcpServerDocument,vr as RemovePersonPhotoDocument,wr as RenameCanvasDocument,xr as RenameContextAreaDocument,yr as RenameIntegrationAccountDocument,zr as RenamePersonDocument,Ar as RenewShareLinkDocument,Br as RepairUserSkillManifestDocument,Cr as ReplaceDlpDictionaryDocument,Dr as ReplaceUserSkillFileContentDocument,Er as ReportMessageDocument,Fr as RequestDataActionDocument,Gr as RequestWorkspaceExportDocument,Hr as ResetWorkspaceDocument,Ir as ResolvePulseEventDocument,al as ResolvedFileUrlFragmentDoc,Jr as RespondChatApprovalDocument,Kr as RestoreCanvasVersionDocument,Lr as RestoreCubeModelRevisionDocument,Mr as RestoreDocumentVersionDocument,Nr as RestoreItemDocument,kb as RestorePlacement,Or as RestoreTableRelationshipDocument,bl as RestoredItemFragmentDoc,Pr as ResumeDatabasePreparationDocument,Qr as ResumeScheduledMessageDocument,lb as RetentionArea,Ux as RetentionPoliciesConnectionDocument,cl as RetentionPolicyAvgAggregateFragmentDoc,el as RetentionPolicyConnectionFragmentDoc,fl as RetentionPolicyCountAggregateFragmentDoc,dl as RetentionPolicyFragmentDoc,gl as RetentionPolicyMaxAggregateFragmentDoc,hl as RetentionPolicyMinAggregateFragmentDoc,mb as RetentionPolicyOrderByRelevanceFieldEnum,il as RetentionPolicySumAggregateFragmentDoc,Rr as ReviewContextTopicDocument,Sr as RevokeMemberIntegrationDocument,Tr as RevokeOutsideSharesDocument,Ur as RotateModelConnectionKeyDocument,Vr as RotateWebhookEndpointSecretDocument,Wr as SaveTableAccessRuleDocument,Xr as SaveWidgetDocument,Yr as ScheduleMessageDocument,Zr as ScheduleWorkspaceDeletionDocument,kl as ScheduledAgentRunConnectionFragmentDoc,jl as ScheduledAgentRunFragmentDoc,nb as ScheduledDelivery,ob as ScheduledMessageAuthor,ll as ScheduledMessageAvgAggregateFragmentDoc,nl as ScheduledMessageConnectionFragmentDoc,ol as ScheduledMessageCountAggregateFragmentDoc,Vx as ScheduledMessageDocument,ml as ScheduledMessageFragmentDoc,pl as ScheduledMessageMaxAggregateFragmentDoc,ql as ScheduledMessageMinAggregateFragmentDoc,pb as ScheduledMessageOrderByRelevanceFieldEnum,sl as ScheduledMessageRunCountAggregateFragmentDoc,rl as ScheduledMessageRunFragmentDoc,tl as ScheduledMessageRunMaxAggregateFragmentDoc,ul as ScheduledMessageRunMinAggregateFragmentDoc,qb as ScheduledMessageStatus,vl as ScheduledMessageSumAggregateFragmentDoc,Wx as ScheduledMessage_AgentDocument,Xx as ScheduledMessage_ChatDocument,Yx as ScheduledMessage_Chat_DesktopDeviceDocument,Zx as ScheduledMessage_Chat_InsightDocument,_x as ScheduledMessage_Chat_ProjectDocument,$x as ScheduledMessage_RecentRunsDocument,ay as ScheduledMessagesDocument,rb as ScheduledRunTrigger,_r as SendAgentCopyDocument,$r as SendAuditDestinationNowDocument,as as SendChatMessageWhileRunningDocument,bs as SendFeedbackDocument,cs as SendScheduledMessageNowDocument,ds as SendTestPushDocument,es as SetAuditDestinationPausedDocument,fs as SetBrowserLoginSyncDocument,gs as SetBrowserLoginSyncExcludedDocument,hs as SetDatabasePrimaryKeyDocument,is as SetDefaultIntegrationAccountDocument,js as SetDlpBuiltinRuleDocument,ks as SetGeneralAccessDocument,ls as SetImageEditContextDocument,ms as SetMemberAttributeKeysDocument,ns as SetMemberAttributesDocument,os as SetMemoryEnabledDocument,ps as SetShareLinkExpiryDocument,qs as SetTableColumnTypeDocument,rs as SetToolApprovalModeDocument,ss as SetUserSkillEnabledDocument,ts as SetWorkspaceModelPolicyDocument,us as SetWorkspaceModelRoleDocument,sb as SetupInterest,by as ShareAccessDocument,yl as ShareAccessFragmentDoc,cy as ShareAccess_SharedByDocument,dy as ShareAccess_SharedBy_InheritedFromDocument,tb as ShareAction,ey as ShareCandidatesDocument,zl as ShareCandidatesFragmentDoc,fy as ShareCandidates_MembersDocument,gy as ShareCandidates_Members_InheritedFromDocument,hy as ShareCheckDocument,Cl as ShareCheckFragmentDoc,ub as ShareCheckStatus,iy as ShareCheck_NarrowingsDocument,jy as ShareCheck_Narrowings_TablesDocument,vs as ShareDocument,El as ShareEventCountAggregateFragmentDoc,Dl as ShareEventFragmentDoc,Fl as ShareEventMaxAggregateFragmentDoc,Gl as ShareEventMinAggregateFragmentDoc,wl as ShareInheritanceFragmentDoc,Il as ShareLinkAvgAggregateFragmentDoc,Jl as ShareLinkCountAggregateFragmentDoc,vb as ShareLinkExpiry,Hl as ShareLinkFragmentDoc,Nl as ShareLinkInfoFragmentDoc,Kl as ShareLinkMaxAggregateFragmentDoc,Ll as ShareLinkMinAggregateFragmentDoc,Ml as ShareLinkSumAggregateFragmentDoc,xl as ShareMemberFragmentDoc,Al as ShareNarrowedTableFragmentDoc,Bl as ShareNarrowingFragmentDoc,wb as ShareRecipientKind,xb as ShareRole,ky as ShareStateDocument,Ol as ShareStateFragmentDoc,ly as ShareState_LinkDocument,my as ShareState_MembersDocument,ny as ShareState_Members_InheritedFromDocument,oy as ShareState_OwnerDocument,py as ShareState_Owner_InheritedFromDocument,yb as ShareableKind,qy as SharedByMeDocument,zb as SharedContainerKind,Pl as SharedContentFragmentDoc,ry as SharedContentsDocument,Sl as SharedItemConnectionFragmentDoc,Rl as SharedItemFragmentDoc,Ul as SharedItemViewCountAggregateFragmentDoc,Tl as SharedItemViewFragmentDoc,Vl as SharedItemViewMaxAggregateFragmentDoc,Wl as SharedItemViewMinAggregateFragmentDoc,Xl as SharedMarkFragmentDoc,Ql as SharedPreviewFragmentDoc,sy as SharedWithMeDocument,ty as SharingEnabledDocument,uy as SkillCatalogDocument,Yl as SkillCatalogItemFragmentDoc,Ab as SkillCatalogSource,_l as SkillUsageAvgAggregateFragmentDoc,$l as SkillUsageCountAggregateFragmentDoc,Zl as SkillUsageFragmentDoc,am as SkillUsageMaxAggregateFragmentDoc,bm as SkillUsageMinAggregateFragmentDoc,cm as SkillUsageSumAggregateFragmentDoc,ws as SnoozeProactiveItemDocument,Bb as SortOrder,xs as StartChatDayDocument,ys as StopChatDocument,zs as StopDatabaseRelationshipDetectionDocument,As as SubmitNpsDocument,Bs as SuggestCommitMessageDocument,vy as SurfaceSnapshotDocument,em as SyncEventAvgAggregateFragmentDoc,fm as SyncEventCountAggregateFragmentDoc,hm as SyncEventCursorAvgAggregateFragmentDoc,im as SyncEventCursorCountAggregateFragmentDoc,gm as SyncEventCursorFragmentDoc,jm as SyncEventCursorMaxAggregateFragmentDoc,km as SyncEventCursorMinAggregateFragmentDoc,lm as SyncEventCursorSumAggregateFragmentDoc,dm as SyncEventFragmentDoc,mm as SyncEventMaxAggregateFragmentDoc,nm as SyncEventMinAggregateFragmentDoc,om as SyncEventSumAggregateFragmentDoc,Cs as SyncProjectDesktopBindingDocument,Ky as TableAccessDocument,pm as TableAccessFragmentDoc,Ny as TableAccessLogDocument,Oy as TableAccessLog_EntriesDocument,Cb as TableAccessPrincipal,rm as TableAccessRuleCountAggregateFragmentDoc,qm as TableAccessRuleFragmentDoc,sm as TableAccessRuleMaxAggregateFragmentDoc,tm as TableAccessRuleMinAggregateFragmentDoc,um as TableAccessRuleSavedFragmentDoc,Ly as TableAccess_RulesDocument,My as TableAccess_Rules_TableDocument,wm as TableConnectionFragmentDoc,xm as TableCountAggregateFragmentDoc,wy as TableDocument,vm as TableFragmentDoc,ym as TableMaxAggregateFragmentDoc,zm as TableMinAggregateFragmentDoc,Db as TableOrderByRelevanceFieldEnum,Eb as TableStatus,Py as TableSuggestedQuestionsDocument,xy as Table_DatabaseDocument,yy as Table_Database_ConnectionInfoDocument,zy as Table_Database_ConnectionStatusDocument,Ay as Table_Database_EngineDocument,By as Table_Database_SourceTablesDocument,Cy as Table_DocumentDocument,Dy as Table_Document_ContentsDocument,Ey as Table_Document_FileDocument,Fy as Table_Document_FormatDocument,Gy as Table_Document_VersionsDocument,Hy as Table_FromRelationsDocument,Iy as Table_ModelDocument,Jy as Table_ToRelationsDocument,Qy as TablesDocument,Fb as TaskGoalDecision,Am as TaskJobAvgAggregateFragmentDoc,Cm as TaskJobConnectionFragmentDoc,Dm as TaskJobCountAggregateFragmentDoc,Bm as TaskJobFragmentDoc,Em as TaskJobMaxAggregateFragmentDoc,Fm as TaskJobMinAggregateFragmentDoc,Gb as TaskJobOrderByRelevanceFieldEnum,Hb as TaskJobStatus,Gm as TaskJobSumAggregateFragmentDoc,Ry as TaskJobsDocument,Ds as TestDlpProviderDocument,Sy as TestDlpRulesDocument,Es as TestLocalModelDocument,Gs as TestMcpServerConnectionDocument,Fs as TestMcpServerDocument,Hs as TestModelConnectionDocument,Is as TestScheduledMessageDocument,Hm as TokenUsageAvgAggregateFragmentDoc,Jm as TokenUsageConnectionFragmentDoc,Km as TokenUsageCountAggregateFragmentDoc,Im as TokenUsageFragmentDoc,Lm as TokenUsageMaxAggregateFragmentDoc,Mm as TokenUsageMinAggregateFragmentDoc,Ib as TokenUsageOrderByRelevanceFieldEnum,Nm as TokenUsageSumAggregateFragmentDoc,Ty as TokenUsagesDocument,Jb as ToolApprovalMode,Uy as ToolApprovalModeDocument,Pm as ToolApprovalSettingCountAggregateFragmentDoc,Om as ToolApprovalSettingFragmentDoc,Qm as ToolApprovalSettingMaxAggregateFragmentDoc,Rm as ToolApprovalSettingMinAggregateFragmentDoc,Vy as TopicActivitiesDocument,Sm as TopicActivityAvgAggregateFragmentDoc,Um as TopicActivityConnectionFragmentDoc,Vm as TopicActivityCountAggregateFragmentDoc,Tm as TopicActivityFragmentDoc,Wm as TopicActivityMaxAggregateFragmentDoc,Xm as TopicActivityMinAggregateFragmentDoc,Kb as TopicActivityOrderByRelevanceFieldEnum,Ym as TopicActivitySumAggregateFragmentDoc,Xd as TopicFactFragmentDoc,Wd as TopicFactSourceFragmentDoc,_m as TopicLinkAvgAggregateFragmentDoc,$m as TopicLinkCountAggregateFragmentDoc,Zm as TopicLinkFragmentDoc,an as TopicLinkMaxAggregateFragmentDoc,bn as TopicLinkMinAggregateFragmentDoc,cn as TopicLinkSumAggregateFragmentDoc,dn as TripAvgAggregateFragmentDoc,fn as TripConnectionFragmentDoc,gn as TripCountAggregateFragmentDoc,en as TripFragmentDoc,hn as TripMaxAggregateFragmentDoc,in as TripMinAggregateFragmentDoc,Lb as TripOrderByRelevanceFieldEnum,jn as TripSumAggregateFragmentDoc,Wy as TripsDocument,Js as UndoCanvasTurnDocument,Ks as UnlinkPersonFactDocument,Ls as UnregisterLiveActivityTargetDocument,Ms as UnregisterPushTargetDocument,Ns as UnsendWaitingChatMessageDocument,Os as UnshareDocument,Ps as UpdateAgentDocument,Qs as UpdateBrowserSettingsDocument,Rs as UpdateCanvasDocument,Ss as UpdateChatDocument,Ts as UpdateDatabaseDocument,Us as UpdateDlpProviderDocument,Vs as UpdateDlpRuleDocument,Ws as UpdateDocumentDocument,Xs as UpdateFolderDocument,Ys as UpdateInsightDocument,Zs as UpdateInsightThumbnailDocument,_s as UpdateInterpDocument,$s as UpdateMemoryFileDocument,at as UpdateNotificationPreferenceDocument,bt as UpdateNotificationPreferencesDocument,ct as UpdateProactiveSettingDocument,dt as UpdateProjectDocument,et as UpdatePulseTriggerDocument,ft as UpdateRetentionPolicyDocument,gt as UpdateScheduledMessageDocument,ht as UpdateShareRoleDocument,it as UpdateTableDocument,jt as UpdateUsagePolicyDocument,kt as UpdateUserSetupDocument,lt as UpdateUserSkillFileDocument,mt as UpdateUserSkillFolderDocument,nt as UpdateWebhookEndpointDocument,ot as UpdateWorkspaceAiModelSettingDocument,pt as UpdateWorkspacePolicyDocument,qt as UpdateWorkspaceUsageSettingsDocument,rt as UpgradeCubeModelSemanticsDocument,kn as UploadFormatFragmentDoc,Mb as UploadFormatKind,Xy as UploadFormatsDocument,st as UpsertAiProviderSettingDocument,tt as UpsertModelConnectionDocument,Nb as UsageHistoryGranularity,mn as UsageLimitHitConnectionFragmentDoc,nn as UsageLimitHitCountAggregateFragmentDoc,ln as UsageLimitHitFragmentDoc,on as UsageLimitHitMaxAggregateFragmentDoc,pn as UsageLimitHitMinAggregateFragmentDoc,Ob as UsageLimitHitOrderByRelevanceFieldEnum,Yy as UsageLimitHitsDocument,qn as UsagePlanFragmentDoc,Zy as UsagePlansDocument,_y as UsagePoliciesConnectionDocument,An as UsagePolicyAssigneeFragmentDoc,sn as UsagePolicyAssignmentConnectionFragmentDoc,tn as UsagePolicyAssignmentCountAggregateFragmentDoc,rn as UsagePolicyAssignmentFragmentDoc,un as UsagePolicyAssignmentMaxAggregateFragmentDoc,vn as UsagePolicyAssignmentMinAggregateFragmentDoc,Pb as UsagePolicyAssignmentOrderByRelevanceFieldEnum,$y as UsagePolicyAssignmentsConnectionDocument,wn as UsagePolicyAvgAggregateFragmentDoc,yn as UsagePolicyConnectionFragmentDoc,zn as UsagePolicyCountAggregateFragmentDoc,Bn as UsagePolicyEntryFragmentDoc,xn as UsagePolicyFragmentDoc,Cn as UsagePolicyMaxAggregateFragmentDoc,Dn as UsagePolicyMinAggregateFragmentDoc,Qb as UsagePolicyOrderByRelevanceFieldEnum,Rb as UsagePolicySubject,En as UsagePolicySumAggregateFragmentDoc,Sb as UsagePoolExhausted,Qo as UsagePoolFragmentDoc,az as UsageReportDocument,Hn as UsageReportExportFragmentDoc,Gn as UsageReportFragmentDoc,Fn as UsageReportLineFragmentDoc,bz as UsageReport_ModelsDocument,cz as UsageReport_PeopleDocument,dz as UsageReport_TeamsDocument,ez as UsageSettingsDocument,Jn as UsageWindowsStatusTypeFragmentDoc,ut as UsePersonPhotoDocument,Ln as UserAiProviderSettingCountAggregateFragmentDoc,Kn as UserAiProviderSettingFragmentDoc,Mn as UserAiProviderSettingMaxAggregateFragmentDoc,Nn as UserAiProviderSettingMinAggregateFragmentDoc,Pn as UserFeedbackCountAggregateFragmentDoc,On as UserFeedbackFragmentDoc,Qn as UserFeedbackMaxAggregateFragmentDoc,Rn as UserFeedbackMinAggregateFragmentDoc,Tn as UserMemorySettingCountAggregateFragmentDoc,Sn as UserMemorySettingFragmentDoc,Un as UserMemorySettingMaxAggregateFragmentDoc,Vn as UserMemorySettingMinAggregateFragmentDoc,Xn as UserSetupCountAggregateFragmentDoc,fz as UserSetupDocument,Wn as UserSetupFragmentDoc,Yn as UserSetupMaxAggregateFragmentDoc,Zn as UserSetupMinAggregateFragmentDoc,_n as UserSetupStateFragmentDoc,ao as UserSkillFileCountAggregateFragmentDoc,gz as UserSkillFileDocument,$n as UserSkillFileFragmentDoc,bo as UserSkillFileMaxAggregateFragmentDoc,co as UserSkillFileMinAggregateFragmentDoc,do as UserSkillFileModelFragmentDoc,hz as UserSkillFilesDocument,fo as UserSkillFolderCountAggregateFragmentDoc,iz as UserSkillFolderDocument,eo as UserSkillFolderFragmentDoc,go as UserSkillFolderMaxAggregateFragmentDoc,ho as UserSkillFolderMinAggregateFragmentDoc,jo as UserSkillFolderModelFragmentDoc,jz as UserSkillFolder_ManifestErrorDocument,kz as UserSkillFoldersDocument,lz as UserSkillFolders_ManifestErrorDocument,ko as UserSkillImportItemModelFragmentDoc,lo as UserSkillImportPreviewModelFragmentDoc,io as UserSkillIssueModelFragmentDoc,vt as WatchContextTopicDocument,no as WebhookEndpointAvgAggregateFragmentDoc,oo as WebhookEndpointCountAggregateFragmentDoc,po as WebhookEndpointCreatedFragmentDoc,mo as WebhookEndpointFragmentDoc,qo as WebhookEndpointMaxAggregateFragmentDoc,ro as WebhookEndpointMinAggregateFragmentDoc,so as WebhookEndpointSumAggregateFragmentDoc,mz as WebhookEndpointsDocument,nz as WeeklyObjectDocument,In as WindowDetailTypeFragmentDoc,uo as WorkspaceAiModelSettingCountAggregateFragmentDoc,oz as WorkspaceAiModelSettingDocument,to as WorkspaceAiModelSettingFragmentDoc,vo as WorkspaceAiModelSettingMaxAggregateFragmentDoc,wo as WorkspaceAiModelSettingMinAggregateFragmentDoc,yo as WorkspaceDeleteScheduleCountAggregateFragmentDoc,xo as WorkspaceDeleteScheduleFragmentDoc,zo as WorkspaceDeleteScheduleMaxAggregateFragmentDoc,Ao as WorkspaceDeleteScheduleMinAggregateFragmentDoc,pz as WorkspaceDeletionScheduleDocument,Bo as WorkspaceMembershipFragmentDoc,qz as WorkspaceMembershipsDocument,Co as WorkspaceModelPolicyCountAggregateFragmentDoc,cj as WorkspaceModelPolicyFragmentDoc,Do as WorkspaceModelPolicyMaxAggregateFragmentDoc,Eo as WorkspaceModelPolicyMinAggregateFragmentDoc,Go as WorkspaceModelRoleCountAggregateFragmentDoc,Fo as WorkspaceModelRoleFragmentDoc,Ho as WorkspaceModelRoleMaxAggregateFragmentDoc,Io as WorkspaceModelRoleMinAggregateFragmentDoc,Ko as WorkspacePolicyAvgAggregateFragmentDoc,Lo as WorkspacePolicyCountAggregateFragmentDoc,rz as WorkspacePolicyDocument,Jo as WorkspacePolicyFragmentDoc,Mo as WorkspacePolicyMaxAggregateFragmentDoc,No as WorkspacePolicyMinAggregateFragmentDoc,Oo as WorkspacePolicySumAggregateFragmentDoc,sz as WorkspaceSeatsDocument,Po as WorkspaceSeatsFragmentDoc,Ro as WorkspaceUsageFragmentDoc,To as WorkspaceUsageSettingsAvgAggregateFragmentDoc,Uo as WorkspaceUsageSettingsCountAggregateFragmentDoc,tz as WorkspaceUsageSettingsDocument,So as WorkspaceUsageSettingsFragmentDoc,Vo as WorkspaceUsageSettingsMaxAggregateFragmentDoc,Wo as WorkspaceUsageSettingsMinAggregateFragmentDoc,Xo as WorkspaceUsageSettingsSumAggregateFragmentDoc,uz as WorkspaceUsageSettings_PoolDocument}from'./chunk-XDBE4PAV.js';import'./chunk-EK7ODJWE.js';
@@ -1 +0,0 @@
1
- var o=class extends Error{cause;constructor(n,r){super(n),this.name="DvinaError",this.cause=r;}},s=class extends o{errors;query;variables;constructor(n,r,t){let i=n.map(l=>l.message).join("; ")||"Unknown GraphQL error";super(i),this.name="DvinaGraphQLError",this.errors=n,this.query=r,this.variables=t;}},d=class extends o{status;constructor(n,r,t){super(n,t),this.name="DvinaNetworkError",this.status=r;}},p=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";}},E={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([E.PLAN_DETAIL_RESTRICTION,E.STORAGE_LIMIT_REACHED,E.DEEP_ANALYSIS_LIMIT_EXCEEDED]),c=class extends s{restrictionCode;constructor(n,r,t,i){super(n,t,i),this.name="DvinaPlanRestrictionError",this.restrictionCode=r;}},a=class extends s{constructor(n,r,t){super(n,r,t),this.name="DvinaTokenLimitError";}},u=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 L(e,n,r){let t=R(e);return t===E.SESSION_TOKEN_LIMIT_REACHED?new a(e,n,r):t===E.RESOURCE_NOT_FOUND?new u(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,d as c,p as d,_ as e,E as f,c as g,a as h,u as i,R as j,L as k};
@@ -1,31 +0,0 @@
1
- import {f,d,c,a,k,e}from'./chunk-37LLNIGO.js';var A=new WeakMap;async function F(e,n){let t=A.get(e);if(!t){let a=e({forceRefresh:true}).finally(()=>{A.get(e)===a&&A.delete(e);});A.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,$=1e3,qe=3,Be=3e4;function je(e,n=Math.random){return Math.floor(n()*e)}function Ge(e){return e instanceof Error&&e.name==="AbortError"}function _(){return Date.now()}var x=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 F(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??qe)){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??$;this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=void 0,this.ensureAttempt();},t);}nextReconnectDelay(){let n=this.options.baseReconnectDelayMs??$,t=this.options.maxReconnectDelayMs??Be,i=Math.min(n*Math.pow(2,this.reconnectAttempt),t);return this.reconnectAttempt+=1,this.options.jitter==="full"?je(i):i}isHealthy(){if(this.state!=="connected"||!this.abortController)return false;let n=this.options.staleTimeoutMs;return !n||n<=0?true:this.lastActivityAt!==null&&_()-this.lastActivityAt<n}markConnected(){this.consecutiveAuthFailures=0,this.reconnectAttempt=0,this.lastConnectedAt=_(),this.setState("connected"),this.markActivity();}markActivity(){this.lastActivityAt=_(),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 He=(u=>(u.HitLimits="HIT_LIMITS",u.MissingFeature="MISSING_FEATURE",u.NotUsing="NOT_USING",u.Other="OTHER",u.Quality="QUALITY",u.Switching="SWITCHING",u.TooExpensive="TOO_EXPENSIVE",u))(He||{}),Ye=(o=>(o.Enterprise="enterprise",o.Free="free",o.Max="max",o.Plus="plus",o.Pro="pro",o))(Ye||{}),We=(a=>(a.Daily="DAILY",a.Monthly="MONTHLY",a.Weekly="WEEKLY",a.Yearly="YEARLY",a))(We||{}),ze=(t=>(t.Revcat="REVCAT",t.Stripe="STRIPE",t))(ze||{});var Z={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"}}]}}]},K={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"}}]}}]},ee={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"TierOrders"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tierOrders"}}]}}]},ne={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Entitlements"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"entitlements"}}]}}]},te={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"}}]}}]}}]}}]},ie={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"}}]}}]}}]}}]},ae={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"}}]}}]}}]},re={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"}}]}}]}}]},oe={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"}}}]}]}}]},se={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"}}}]}]}}]},le={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"}}}]}]}}]},ue={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"}}}]}]}}]},ce={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"}}}]}]}}]},de={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"}}}]}]}}]},me={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"}}}]}]}}]},pe={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"}}]}}]}}]},ke={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"PauseSubscription"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pauseSubscription"}}]}}]},Se={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ApplyRetentionDiscount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"applyRetentionDiscount"}}]}}]},ye={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ReactivateSubscription"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reactivateSubscription"}}]}}]},fe={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"}}}]}]}}]},ve={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ReactivateSubscriptionForManager"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reactivateSubscriptionForManager"},arguments:[{kind:"Argument",name:{kind:"Name",value:"workspaceId"},value:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}}}]}]}}]},be={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateCustomer"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"email"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createCustomer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}},{kind:"Argument",name:{kind:"Name",value:"email"},value:{kind:"Variable",name:{kind:"Name",value:"email"}}},{kind:"Argument",name:{kind:"Name",value:"workspaceId"},value:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}}},{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}}]}]}}]},he={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ReleaseSchedule"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"releaseSchedule"}}]}}]},ge={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"}}]}}]}}]},Ne={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"}}]}}]}}]},Te={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 De(e,n){throw new Error(n)}var q={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"]},Xe=new Set(Object.keys(q));function B(e){let n=e?.kind;return typeof n=="string"&&Xe.has(n)}var Q;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription";})(Q||(Q={}));var T;(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";})(T||(T={}));function j(e){return e===9||e===32}function Ee(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(g=>g.length===0||j(g.charCodeAt(0))),c=t.endsWith('\\"""'),u=e.endsWith('"')&&!c,m=e.endsWith("\\"),s=u||m,S=(!a||e.length>70||s||o||c),d="",p=a&&j(e.charCodeAt(0));return (S&&!p||o)&&(d+=`
2
- `),d+=t,(S||s)&&(d+=`
3
- `),'"""'+d+'"""'}function Ae(e){return R(e,[])}function R(e,n){switch(typeof e){case "string":return JSON.stringify(e);case "function":return e.name?`[function ${e.name}]`:"[function]";case "object":return Je(e,n);default:return String(e)}}function Je(e,n){if(e===null)return "null";if(n.includes(e))return "[Circular]";let t=[...n,e];if($e(e)){let i=e.toJSON();if(i!==e)return typeof i=="string"?i:R(i,t)}else if(Array.isArray(e))return Ke(e,t);return Ze(e,t)}function $e(e){return typeof e.toJSON=="function"}function Ze(e,n){let t=Object.entries(e);return t.length===0?"{}":n.length>2?"["+en(e)+"]":"{ "+t.map(([a,o])=>a+": "+R(o,n)).join(", ")+" }"}function Ke(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(R(e[o],n));return i===1?a.push("... 1 more item"):i>1&&a.push(`... ${i} more items`),"["+a.join(", ")+"]"}function en(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 Fe(e){return `"${e.replace(nn,tn)}"`}var nn=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function tn(e){return an[e.charCodeAt(0)]}var an=["\\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 C(e,n,t=q){let i=new Map;for(let f of Object.values(T))i.set(f,H(n,f));let a,o=Array.isArray(e),c=[e],u=-1,m=[],s=e,S,d,p=[],g=[];do{u++;let f=u===c.length,W=f&&m.length!==0;if(f){if(S=g.length===0?void 0:p[p.length-1],s=d,d=g.pop(),W)if(o){s=s.slice();let b=0;for(let[U,z]of m){let X=U-b;z===null?(s.splice(X,1),b++):s[X]=z;}}else {s=Object.defineProperties({},Object.getOwnPropertyDescriptors(s));for(let[b,U]of m)s[b]=U;}u=a.index,c=a.keys,m=a.edits,o=a.inArray,a=a.prev;}else if(d){if(S=o?u:c[u],s=d[S],s==null)continue;p.push(S);}let v;if(!Array.isArray(s)){var w,O;B(s)||De(false,`Invalid AST Node: ${Ae(s)}.`);let b=f?(w=i.get(s.kind))===null||w===void 0?void 0:w.leave:(O=i.get(s.kind))===null||O===void 0?void 0:O.enter;if(v=b?.call(n,s,S,d,p,g),v===G)break;if(v===false){if(!f){p.pop();continue}}else if(v!==void 0&&(m.push([S,v]),!f))if(B(v))s=v;else {p.pop();continue}}if(v===void 0&&W&&m.push([S,s]),f)p.pop();else {var P;a={inArray:o,index:u,keys:c,edits:m,prev:a},o=Array.isArray(s),c=o?s:(P=t[s.kind])!==null&&P!==void 0?P:[],u=-1,m=[],d&&g.push(d),d=s;}}while(a!==void 0);return m.length!==0?m[m.length-1][1]:e}function H(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 I(e){return C(e,on)}var rn=80,on={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>r(e.definitions,`
4
-
5
- `)},OperationDefinition:{leave(e){let n=l("(",r(e.variableDefinitions,", "),")"),t=r([e.operation,r([e.name,n]),r(e.directives," ")]," ");return (t==="query"?"":t+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:n,defaultValue:t,directives:i})=>e+": "+n+l(" = ",t)+l(" ",r(i," "))},SelectionSet:{leave:({selections:e})=>y(e)},Field:{leave({alias:e,name:n,arguments:t,directives:i,selectionSet:a}){let o=l("",e,": ")+n,c=o+l("(",r(t,", "),")");return c.length>rn&&(c=o+l(`(
6
- `,M(r(t,`
7
- `)),`
8
- )`)),r([c,r(i," "),a]," ")}},Argument:{leave:({name:e,value:n})=>e+": "+n},FragmentSpread:{leave:({name:e,directives:n})=>"..."+e+l(" ",r(n," "))},InlineFragment:{leave:({typeCondition:e,directives:n,selectionSet:t})=>r(["...",l("on ",e),r(n," "),t]," ")},FragmentDefinition:{leave:({name:e,typeCondition:n,variableDefinitions:t,directives:i,selectionSet:a})=>`fragment ${e}${l("(",r(t,", "),")")} on ${n} ${l("",r(i," ")," ")}`+a},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:n})=>n?Ee(e):Fe(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+r(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+r(e,", ")+"}"},ObjectField:{leave:({name:e,value:n})=>e+": "+n},Directive:{leave:({name:e,arguments:n})=>"@"+e+l("(",r(n,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:n,operationTypes:t})=>l("",e,`
9
- `)+r(["schema",r(n," "),y(t)]," ")},OperationTypeDefinition:{leave:({operation:e,type:n})=>e+": "+n},ScalarTypeDefinition:{leave:({description:e,name:n,directives:t})=>l("",e,`
10
- `)+r(["scalar",n,r(t," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:n,interfaces:t,directives:i,fields:a})=>l("",e,`
11
- `)+r(["type",n,l("implements ",r(t," & ")),r(i," "),y(a)]," ")},FieldDefinition:{leave:({description:e,name:n,arguments:t,type:i,directives:a})=>l("",e,`
12
- `)+n+(xe(t)?l(`(
13
- `,M(r(t,`
14
- `)),`
15
- )`):l("(",r(t,", "),")"))+": "+i+l(" ",r(a," "))},InputValueDefinition:{leave:({description:e,name:n,type:t,defaultValue:i,directives:a})=>l("",e,`
16
- `)+r([n+": "+t,l("= ",i),r(a," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:n,interfaces:t,directives:i,fields:a})=>l("",e,`
17
- `)+r(["interface",n,l("implements ",r(t," & ")),r(i," "),y(a)]," ")},UnionTypeDefinition:{leave:({description:e,name:n,directives:t,types:i})=>l("",e,`
18
- `)+r(["union",n,r(t," "),l("= ",r(i," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:n,directives:t,values:i})=>l("",e,`
19
- `)+r(["enum",n,r(t," "),y(i)]," ")},EnumValueDefinition:{leave:({description:e,name:n,directives:t})=>l("",e,`
20
- `)+r([n,r(t," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:n,directives:t,fields:i})=>l("",e,`
21
- `)+r(["input",n,r(t," "),y(i)]," ")},DirectiveDefinition:{leave:({description:e,name:n,arguments:t,repeatable:i,locations:a})=>l("",e,`
22
- `)+"directive @"+n+(xe(t)?l(`(
23
- `,M(r(t,`
24
- `)),`
25
- )`):l("(",r(t,", "),")"))+(i?" repeatable":"")+" on "+r(a," | ")},SchemaExtension:{leave:({directives:e,operationTypes:n})=>r(["extend schema",r(e," "),y(n)]," ")},ScalarTypeExtension:{leave:({name:e,directives:n})=>r(["extend scalar",e,r(n," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:n,directives:t,fields:i})=>r(["extend type",e,l("implements ",r(n," & ")),r(t," "),y(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:n,directives:t,fields:i})=>r(["extend interface",e,l("implements ",r(n," & ")),r(t," "),y(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:n,types:t})=>r(["extend union",e,r(n," "),l("= ",r(t," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:n,values:t})=>r(["extend enum",e,r(n," "),y(t)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:n,fields:t})=>r(["extend input",e,r(n," "),y(t)]," ")}};function r(e,n=""){var t;return (t=e?.filter(i=>i).join(n))!==null&&t!==void 0?t:""}function y(e){return l(`{
26
- `,M(r(e,`
27
- `)),`
28
- }`)}function l(e,n,t=""){return n!=null&&n!==""?e+n+t:""}function M(e){return l(" ",e.replace(/\n/g,`
29
- `))}function xe(e){var n;return (n=e?.some(t=>t.includes(`
30
- `)))!==null&&n!==void 0?n:false}var Re=new WeakMap;function V(e){let n=Re.get(e);return n||(n=I(e),Re.set(e,n)),n}var un=new Set([f.SESSION_TOKEN_LIMIT_REACHED,f.STORAGE_LIMIT_REACHED,f.DEEP_ANALYSIS_LIMIT_EXCEEDED,f.PLAN_DETAIL_RESTRICTION,f.RESOURCE_NOT_FOUND]);function Ie(e,n){if(e)for(let t of e){let i=t.extensions?.code;if(i==null)continue;if(i===4401||i==="4401")return true;let a=String(i).toUpperCase();if(un.has(a))return false;if(a==="UNAUTHORIZED"||a==="UNAUTHENTICATED"||t.message==="Unauthorized")return true}return false}async function Ve(e$1,n,t){let i=await e$1.getToken(),a=e$1.getLanguage(),o=e$1.getPlatform?.(),c$1=e$1.getUserTimezone?.(),u={"Content-Type":"application/json",Authorization:`Bearer ${i}`};a&&(u["x-preferred-language"]=a),o&&(u["x-platform"]=o),c$1&&(u["x-user-timezone"]=c$1);let m=JSON.stringify({query:V(n),variables:t}),s=cn(n)?new AbortController:void 0,S=s&&setTimeout(()=>s.abort(),we);try{let d$1;try{d$1=await fetch(e$1.url,{method:"POST",headers:u,body:m,...s&&{signal:s.signal}});}catch(p){throw s?.signal.aborted?Ce():p instanceof Error&&p.name==="AbortError"?p:new c(p instanceof Error?p.message:"Network request failed before reaching the server",0)}if(!d$1.ok)throw d$1.status===401?new d(`Authentication failed with status ${d$1.status}`,i):d$1.status===403?new e("Request refused with status 403"):new c(`HTTP ${d$1.status}: ${d$1.statusText}`,d$1.status);try{return {response:await d$1.json(),usedToken:i}}catch(p){throw s?.signal.aborted?Ce():p}}finally{clearTimeout(S);}}var we=3e4;function Ce(){return new c(`No answer within ${we/1e3} s`,0)}function cn(e){let n=e.definitions.filter(t=>t.kind==="OperationDefinition");return n.length>0&&n.every(t=>t.operation==="query")}var dn=4,mn=1e3;function Oe(e){async function n(t,i,a$1=0,o=true){let c$1;try{c$1=await Ve(e,t,i);}catch(s){if(s instanceof d)return Me(t,i,e,s.failedToken,o);if(s instanceof c&&s.status===0&&a$1<dn)return await kn(mn*(a$1+1)),n(t,i,a$1+1,o);throw o&&s instanceof a&&e.onError?.(s),s}let{response:u,usedToken:m}=c$1;if(Ie(u.errors))return Me(t,i,e,m,o);if(u.errors?.length&&!u.data){let s=k(u.errors,V(t),i);throw o&&e.onError?.(s),s}if(!u.data){let s=k([{message:"No data returned from server"}],V(t),i);throw o&&e.onError?.(s),s}return u.data}return {request:(t,i,a)=>n(t,i,0,a?.reportErrors??true)}}async function Me(e,n,t,i,a=true){try{await F(t.getToken,i);}catch{let o=new d("Token refresh failed");throw t.onError?.(o),o}return pn(t,e,n,a)}async function pn(e,n,t,i=true){let a$1;try{a$1=await Ve(e,n,t);}catch(c){if(c instanceof d){let u=new d("Authentication failed after token refresh");throw e.onError?.(u),u}throw i&&c instanceof a&&e.onError?.(c),c}let{response:o}=a$1;if(Ie(o.errors)){let c=new d("Authentication failed after token refresh");throw e.onError?.(c),c}if(o.errors?.length&&!o.data){let c=k(o.errors,V(n),t);throw i&&e.onError?.(c),c}return o.data}function kn(e){return new Promise(n=>setTimeout(n,e))}async function Pe(e,n,t){let i=e.getReader(),a=new TextDecoder,o="";try{for(;!n.aborted;){let{done:c,value:u}=await i.read();if(c)break;t.onChunk?.(),o+=a.decode(u,{stream:!0});let m=o.split(/(?:\r\n|\r|\n){2}/);o=m.pop()??"";for(let s of m)t.onEventBlock(s.trim());}}finally{i.releaseLock();}}var Ue=1e3,Sn=3e4,yn=3,fn=35e3,D=class extends Error{constructor(t){super(`Billing SSE auth failed: ${t}`);this.status=t;this.name="BillingAuthStreamError";}};function Le(e){let n=e instanceof c?e.status:void 0;return n!==void 0&&n>=400&&n<500&&n!==408&&n!==429}var Y=class{constructor(n,t){this.options=n;this.onClose=t;this.supervisor=new x({authRetryDelayMs:Ue,baseReconnectDelayMs:Ue,getToken:n.getToken,id:`billing-${Math.random().toString(36).slice(2)}`,isAuthError:i=>i instanceof D,isFatalError:Le,kind:"billing-sse",maxConsecutiveAuthFailures:yn,maxReconnectDelayMs:Sn,onFatalError:i=>{this.options.onError?.(Le(i)?i:new d("Billing SSE stream authentication failed permanently")),this.close();},staleTimeoutMs:fn,dial:async i=>{let a=await fetch(this.options.billingSseUrl,{method:"GET",headers:{Authorization:`Bearer ${i.token}`,Accept:"text/event-stream","Cache-Control":"no-cache"},signal:i.signal});if(!a.ok)throw a.status===401||a.status===403?new D(a.status):new c(`Billing SSE failed: ${a.status} ${a.statusText}`,a.status);if(!a.body)throw new Error("Billing SSE response has no body");i.markConnected(),await Pe(a.body,i.signal,{onChunk:()=>i.markActivity(),onEventBlock:o=>this.processEventBlock(o,i.requestTokenRefresh)});}});}abortFinished=false;queue=[];pendingResolve=null;supervisor;start(){this.supervisor.start();}reconnect(){this.abortFinished||this.supervisor.reconnect();}next(){return this.queue.length>0?Promise.resolve({value:this.queue.shift(),done:false}):this.abortFinished?Promise.resolve({value:void 0,done:true}):new Promise(n=>{this.pendingResolve=n;})}return(){return this.close(),Promise.resolve({value:void 0,done:true})}[Symbol.asyncIterator](){return this}close(){this.abortFinished||(this.abortFinished=true,this.supervisor.close(),this.pendingResolve&&(this.pendingResolve({value:void 0,done:true}),this.pendingResolve=null),this.onClose(this));}push(n){if(!this.abortFinished){if(this.pendingResolve){this.pendingResolve({value:n,done:false}),this.pendingResolve=null;return}this.queue.length=0,this.queue.push(n);}}processEventBlock(n,t){if(!n||n.startsWith(":"))return;let i,a=[];for(let o of n.split(/\r\n|\r|\n/))o.startsWith("event: ")?i=o.slice(7).trim():o.startsWith("data: ")&&a.push(o.slice(6));if(i==="token-expired")throw t(),new D(401);if(!(i!=="subscription"||a.length===0))try{let o=JSON.parse(a.join(`
31
- `));this.push(o);}catch{}}},_e=class{http;options;activeUpdateStreams=new Set;constructor(n){this.options=n,this.http=Oe({url:n.billingHttpUrl,getToken:n.getToken,getLanguage:()=>{},onError:n.onError});}destroy(){for(let n of Array.from(this.activeUpdateStreams))n.close();this.activeUpdateStreams.clear();}reconnectAll(){for(let n of this.activeUpdateStreams)n.reconnect();}get plans(){return {list:async()=>(await this.request(Z)).plans,get:async n=>(await this.request(K,n)).plan,entitlements:async()=>(await this.request(ne)).entitlements,tierOrders:async()=>(await this.request(ee)).tierOrders}}get subscription(){return {get:async()=>(await this.request(te)).subscription,entitlements:async()=>(await this.request(ae)).subscriptionEntitlements,checkoutTrial:async()=>(await this.request(Te)).checkoutTrial??null,upgrade:async n=>(await this.request(se,n)).upgradePlan,prorationAmount:async n=>(await this.request(oe,n)).prorationAmount,downgrade:async n=>(await this.request(le,n)).downgradePlan,changeBillingCycle:async n=>(await this.request(ce,n)).changeBillingCycle,cancel:async(n={})=>(await this.request(me,n)).cancelSubscription,retentionOffers:async()=>(await this.request(pe)).retentionOffers??null,pause:async()=>(await this.request(ke)).pauseSubscription,applyRetentionDiscount:async()=>(await this.request(Se)).applyRetentionDiscount,reactivate:async()=>(await this.request(ye)).reactivateSubscription,releaseSchedule:async()=>(await this.request(he)).releaseSchedule,updates:()=>{let n=new Y(this.options,t=>{this.activeUpdateStreams.delete(t);});return this.activeUpdateStreams.add(n),n.start(),n}}}get seats(){return {add:async n=>(await this.request(ue,n)).addSeats,remove:async n=>(await this.request(de,n)).removeSeats}}get session(){return {createSession:async n=>(await this.request(ge,n)).createCheckoutSession,createCustomerPortalSession:async n=>(await this.request(Ne,n)).createCustomerPortalSession}}get management(){return {subscription:async n=>(await this.request(ie,n)).subscriptionForManager,entitlements:async n=>(await this.request(re,n)).subscriptionEntitlementsForManager,cancel:async n=>(await this.request(fe,n)).cancelSubscriptionForManager,reactivate:async n=>(await this.request(ve,n)).reactivateSubscriptionForManager,createCustomer:async n=>(await this.request(be,n)).createCustomer}}request(n,t){return this.http.request(n,t)}};export{T as a,C as b,F as c,Oe as d,je as e,He as f,Ye as g,We as h,ze as i,_e as j};