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