@dvina/sdk 4.1.59 → 4.1.66
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-VM6RSSXR.js +1 -0
- package/dist/adapters/angular/index.d.ts +2 -2
- package/dist/adapters/angular/index.js +1 -159
- package/dist/adapters/react/index.js +1 -49
- package/dist/billing/index.js +1 -5
- package/dist/chunk-5E7LX4YQ.js +1 -0
- package/dist/chunk-D2L26FRK.js +5 -0
- package/dist/chunk-EK7ODJWE.js +1 -0
- package/dist/chunk-G34ETQUN.js +1 -0
- package/dist/chunk-H3TI6B7T.js +1 -0
- package/dist/chunk-IIQ3WGOJ.js +1 -0
- package/dist/chunk-IO56LXKJ.js +1 -0
- package/dist/chunk-SJ6Q5IDB.js +31 -0
- package/dist/{client-D309vpHA.d.ts → client-CEoJfTM9.d.ts} +2 -257
- package/dist/{index-fFR5so7x.d.ts → index-BzmzBgTh.d.ts} +1 -1
- package/dist/index.d.ts +7 -134
- package/dist/index.js +1 -10
- package/dist/inference/index.js +1 -5
- package/dist/package.json +12 -48
- package/dist/pagination/index.d.ts +2 -2
- package/dist/pagination/index.js +1 -5
- package/dist/{sync-engine-BIaOIpU3.d.ts → sync-engine-Bh0UcTVd.d.ts} +13 -0
- package/package.json +13 -49
- package/dist/_generated_documents-GHGFCEAV.js +0 -4
- package/dist/_generated_documents-GHGFCEAV.js.map +0 -1
- package/dist/_generated_documents-Z5MUI5BE.cjs +0 -2777
- package/dist/_generated_documents-Z5MUI5BE.cjs.map +0 -1
- package/dist/adapters/angular/index.cjs +0 -163
- package/dist/adapters/angular/index.cjs.map +0 -1
- package/dist/adapters/angular/index.d.cts +0 -254
- package/dist/adapters/angular/index.js.map +0 -1
- package/dist/adapters/react/index.cjs +0 -51
- package/dist/adapters/react/index.cjs.map +0 -1
- package/dist/adapters/react/index.d.cts +0 -62
- package/dist/adapters/react/index.js.map +0 -1
- package/dist/billing/index.cjs +0 -26
- package/dist/billing/index.cjs.map +0 -1
- package/dist/billing/index.d.cts +0 -328
- package/dist/billing/index.js.map +0 -1
- package/dist/chunk-2J5WONKO.cjs +0 -1608
- package/dist/chunk-2J5WONKO.cjs.map +0 -1
- package/dist/chunk-342BFYZZ.cjs +0 -98
- package/dist/chunk-342BFYZZ.cjs.map +0 -1
- package/dist/chunk-5WRI5ZAA.js +0 -29
- package/dist/chunk-5WRI5ZAA.js.map +0 -1
- package/dist/chunk-7XBJ77RJ.js +0 -103
- package/dist/chunk-7XBJ77RJ.js.map +0 -1
- package/dist/chunk-AE5KAIKK.js +0 -24
- package/dist/chunk-AE5KAIKK.js.map +0 -1
- package/dist/chunk-COFT5ZYL.js +0 -23777
- package/dist/chunk-COFT5ZYL.js.map +0 -1
- package/dist/chunk-DZUJEN5N.cjs +0 -32
- package/dist/chunk-DZUJEN5N.cjs.map +0 -1
- package/dist/chunk-FOKGSMXS.cjs +0 -27
- package/dist/chunk-FOKGSMXS.cjs.map +0 -1
- package/dist/chunk-HHBDJ65K.cjs +0 -24198
- package/dist/chunk-HHBDJ65K.cjs.map +0 -1
- package/dist/chunk-KEM6SUTS.js +0 -92
- package/dist/chunk-KEM6SUTS.js.map +0 -1
- package/dist/chunk-KSVHC4YE.cjs +0 -1841
- package/dist/chunk-KSVHC4YE.cjs.map +0 -1
- package/dist/chunk-KV5SP7RP.cjs +0 -114
- package/dist/chunk-KV5SP7RP.cjs.map +0 -1
- package/dist/chunk-NH4SMZCW.js +0 -1148
- package/dist/chunk-NH4SMZCW.js.map +0 -1
- package/dist/chunk-PDM2KR7T.js +0 -392
- package/dist/chunk-PDM2KR7T.js.map +0 -1
- package/dist/chunk-UELAE75E.cjs +0 -408
- package/dist/chunk-UELAE75E.cjs.map +0 -1
- package/dist/chunk-WX7EFPHT.js +0 -1600
- package/dist/chunk-WX7EFPHT.js.map +0 -1
- package/dist/client-BRIS6DdR.d.cts +0 -8159
- package/dist/client-Bb2gD6Iz.d.cts +0 -488
- package/dist/error-CsVoUTY8.d.cts +0 -95
- package/dist/index-D_Z25Pa1.d.cts +0 -79
- package/dist/index.cjs +0 -2039
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -3823
- package/dist/index.js.map +0 -1
- package/dist/inference/index.cjs +0 -70
- package/dist/inference/index.cjs.map +0 -1
- package/dist/inference/index.d.cts +0 -80
- package/dist/inference/index.js.map +0 -1
- package/dist/pagination/index.cjs +0 -34
- package/dist/pagination/index.cjs.map +0 -1
- package/dist/pagination/index.d.cts +0 -6
- package/dist/pagination/index.js.map +0 -1
- package/dist/sync-engine-gpxyhQBl.d.cts +0 -478
- package/dist/types-Chg8ASmf.d.cts +0 -116
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{og as AbortChatDocument,ma as ActionAvgAggregateFragmentDoc,na as ActionCountAggregateFragmentDoc,la as ActionFragmentDoc,oa as ActionMaxAggregateFragmentDoc,pa as ActionMinAggregateFragmentDoc,qa as ActionSumAggregateFragmentDoc,b as ActionType,c as ActiveWindowType,pg as AddInsightToReportDocument,qg as AddMcpServerDocument,sa as AgentConnectionFragmentDoc,ta as AgentCountAggregateFragmentDoc,Sh as AgentDocument,ra as AgentFragmentDoc,ua as AgentMaxAggregateFragmentDoc,va as AgentMinAggregateFragmentDoc,d as AgentOrderByRelevanceFieldEnum,Th as Agent_ChatsDocument,Uh as AgentsDocument,Vh as AiProviderSettingDocument,a as AiResourceType,xa as ArtifactConnectionFragmentDoc,ya as ArtifactCountAggregateFragmentDoc,Wh as ArtifactDocument,wa as ArtifactFragmentDoc,e as ArtifactKind,za as ArtifactMaxAggregateFragmentDoc,Aa as ArtifactMinAggregateFragmentDoc,f as ArtifactOrderByRelevanceFieldEnum,Xh as Artifact_ChatDocument,Yh as Artifact_Chat_DesktopDeviceDocument,Zh as Artifact_Chat_InsightDocument,_h as Artifact_Chat_ProjectDocument,$h as Artifact_FileDocument,ai as Artifact_MessageDocument,bi as Artifact_Message_ChatDocument,ci as Artifact_Message_ContentsDocument,di as Artifact_Message_FeedbackDocument,ei as ArtifactsDocument,Ye as AudioEventOutputFragmentDoc,rg as CancelOauthFlowDocument,sg as CancelWorkspaceDeletionDocument,Ca as CandidateCountAggregateFragmentDoc,Ea as CandidateEvidenceCountAggregateFragmentDoc,Da as CandidateEvidenceFragmentDoc,Fa as CandidateEvidenceMaxAggregateFragmentDoc,Ga as CandidateEvidenceMinAggregateFragmentDoc,Ba as CandidateFragmentDoc,Ha as CandidateMaxAggregateFragmentDoc,Ia as CandidateMinAggregateFragmentDoc,g as CapabilityType,Ka as ChatConnectionFragmentDoc,La as ChatCountAggregateFragmentDoc,fi as ChatDocument,Ja as ChatFragmentDoc,Na as ChatImportExecuteOutputFragmentDoc,Oa as ChatImportPreviewOutputFragmentDoc,Pa as ChatMaxAggregateFragmentDoc,Ta as ChatMessageConnectionFragmentDoc,Ua as ChatMessageCountAggregateFragmentDoc,qi as ChatMessageDocument,Sa as ChatMessageFragmentDoc,h as ChatMessageFromEnum,Va as ChatMessageMaxAggregateFragmentDoc,Wa as ChatMessageMinAggregateFragmentDoc,i as ChatMessageOrderByRelevanceFieldEnum,ri as ChatMessage_ArtifactsDocument,si as ChatMessage_ChatDocument,ti as ChatMessage_Chat_DesktopDeviceDocument,ui as ChatMessage_Chat_InsightDocument,vi as ChatMessage_Chat_ProjectDocument,wi as ChatMessage_ContentsDocument,xi as ChatMessage_Contents_AgentDocument,yi as ChatMessage_Contents_MasksDocument,zi as ChatMessage_FeedbackDocument,Ai as ChatMessagesDocument,Xa as ChatMinAggregateFragmentDoc,j as ChatOrderByRelevanceFieldEnum,k as ChatSourceImportFidelityEnum,l as ChatSourceImportModeEnum,m as ChatSourceProviderEnum,Ze as ChatTitleEventOutputFragmentDoc,n as ChatWorkspaceMode,gi as Chat_AgentsDocument,hi as Chat_ArtifactsDocument,ii as Chat_DesktopDeviceDocument,ji as Chat_DesktopDevice_DesktopBindingsDocument,ki as Chat_InsightDocument,li as Chat_Insight_ReportMembersDocument,mi as Chat_Insight_ThumbnailFileDocument,ni as Chat_MessagesDocument,oi as Chat_ProjectDocument,pi as Chat_Project_DesktopBindingDocument,Bi as ChatsDocument,tg as CloseActiveTabsDocument,ug as ConnectIntegrationDocument,vg as ConsumePulseEventsDocument,Qa as ContentBlockAgentOutputFragmentDoc,Ya as ContentBlockAvgAggregateFragmentDoc,Za as ContentBlockCountAggregateFragmentDoc,Ra as ContentBlockFragmentDoc,_a as ContentBlockMaxAggregateFragmentDoc,$a as ContentBlockMinAggregateFragmentDoc,ab as ContentBlockSumAggregateFragmentDoc,o as ContentBlockType,cb as ContentMaskCountAggregateFragmentDoc,bb as ContentMaskFragmentDoc,db as ContentMaskMaxAggregateFragmentDoc,eb as ContentMaskMinAggregateFragmentDoc,_e as ContextUsageEventOutputFragmentDoc,wg as ContinueImportedChatDocument,xg as ContinueInterpretationDocument,yg as CreateAgentDocument,zg as CreateChatDocument,Ag as CreateDatabaseDocument,Bg as CreateDocumentDocument,Cg as CreateFeedbackDocument,Dg as CreateFolderDocument,Eg as CreateInsightDocument,Fg as CreateIntegrationDocument,fb as CreateIntegrationOutputFragmentDoc,Gg as CreateProjectDocument,Hg as CreateReportDocument,Ig as CreateTableDocument,Jg as CreateUserSkillFileDocument,Kg as CreateUserSkillFolderDocument,hb as CubeModelCountAggregateFragmentDoc,gb as CubeModelFragmentDoc,ib as CubeModelMaxAggregateFragmentDoc,jb as CubeModelMinAggregateFragmentDoc,kb as DatabaseCatalogAvgAggregateFragmentDoc,mb as DatabaseCatalogConnectionFragmentDoc,nb as DatabaseCatalogCountAggregateFragmentDoc,Gi as DatabaseCatalogDocument,lb as DatabaseCatalogFragmentDoc,ob as DatabaseCatalogMaxAggregateFragmentDoc,pb as DatabaseCatalogMinAggregateFragmentDoc,p as DatabaseCatalogOrderByRelevanceFieldEnum,qb as DatabaseCatalogSumAggregateFragmentDoc,Hi as DatabaseCatalog_EngineDocument,Ii as DatabaseCatalogsDocument,sb as DatabaseConnectionFragmentDoc,tb as DatabaseCountAggregateFragmentDoc,Ci as DatabaseDocument,vb as DatabaseEngineCountAggregateFragmentDoc,ub as DatabaseEngineFragmentDoc,wb as DatabaseEngineMaxAggregateFragmentDoc,xb as DatabaseEngineMinAggregateFragmentDoc,rb as DatabaseFragmentDoc,yb as DatabaseMaxAggregateFragmentDoc,zb as DatabaseMinAggregateFragmentDoc,q as DatabaseOrderByRelevanceFieldEnum,Ji as DatabaseSchemaDocument,Di as Database_EngineDocument,Ei as Database_Engine_CatalogDocument,Fi as Database_TablesDocument,Ki as DatabasesDocument,Bb as DeepAnalysisUsageAvgAggregateFragmentDoc,Cb as DeepAnalysisUsageCountAggregateFragmentDoc,Ab as DeepAnalysisUsageFragmentDoc,Db as DeepAnalysisUsageMaxAggregateFragmentDoc,Eb as DeepAnalysisUsageMinAggregateFragmentDoc,Fb as DeepAnalysisUsageSumAggregateFragmentDoc,Lg as DeleteAgentDocument,Mg as DeleteAiProviderSettingDocument,Ng as DeleteArtifactDocument,Og as DeleteChatDocument,Pg as DeleteDatabaseDocument,Qg as DeleteDocumentDocument,Rg as DeleteFolderDocument,Sg as DeleteInsightDocument,Tg as DeleteInsightsDocument,Ug as DeleteIntegrationDocument,Vg as DeleteProjectDocument,Wg as DeleteReportDocument,Xg as DeleteSavedAiProviderModelDocument,Yg as DeleteTableDocument,Zg as DeleteUserSkillFileDocument,_g as DeleteUserSkillFolderDocument,Gb as DesktopDeviceAvgAggregateFragmentDoc,Ib as DesktopDeviceConnectionFragmentDoc,Jb as DesktopDeviceCountAggregateFragmentDoc,Li as DesktopDeviceDocument,Hb as DesktopDeviceFragmentDoc,Kb as DesktopDeviceMaxAggregateFragmentDoc,Lb as DesktopDeviceMinAggregateFragmentDoc,r as DesktopDeviceOrderByRelevanceFieldEnum,Mb as DesktopDeviceSumAggregateFragmentDoc,Mi as DesktopDevice_ChatsDocument,Ni as DesktopDevice_DesktopBindingsDocument,Oi as DesktopDevice_DesktopBindings_ProjectDocument,Pi as DesktopDevicesDocument,Nb as DevAccessTokenOutputFragmentDoc,$g as DisconnectIntegrationDocument,ah as DismissPulseEventDocument,Ob as DocumentCatalogAvgAggregateFragmentDoc,Qb as DocumentCatalogConnectionFragmentDoc,Rb as DocumentCatalogCountAggregateFragmentDoc,Wi as DocumentCatalogDocument,Pb as DocumentCatalogFragmentDoc,Sb as DocumentCatalogMaxAggregateFragmentDoc,Tb as DocumentCatalogMinAggregateFragmentDoc,s as DocumentCatalogOrderByRelevanceFieldEnum,Ub as DocumentCatalogSumAggregateFragmentDoc,Xi as DocumentCatalog_FormatDocument,Yi as DocumentCatalogsDocument,Wb as DocumentConnectionFragmentDoc,Yb as DocumentContentAvgAggregateFragmentDoc,Zb as DocumentContentCountAggregateFragmentDoc,Xb as DocumentContentFragmentDoc,_b as DocumentContentMaxAggregateFragmentDoc,$b as DocumentContentMinAggregateFragmentDoc,ac as DocumentContentSumAggregateFragmentDoc,bc as DocumentCountAggregateFragmentDoc,Qi as DocumentDocument,dc as DocumentFormatCountAggregateFragmentDoc,cc as DocumentFormatFragmentDoc,ec as DocumentFormatMaxAggregateFragmentDoc,fc as DocumentFormatMinAggregateFragmentDoc,Vb as DocumentFragmentDoc,gc as DocumentMaxAggregateFragmentDoc,hc as DocumentMinAggregateFragmentDoc,t as DocumentOrderByRelevanceFieldEnum,Ri as Document_ContentsDocument,Si as Document_FileDocument,Ti as Document_FormatDocument,Ui as Document_Format_CatalogDocument,Vi as Document_TablesDocument,Zi as DocumentsDocument,u as EntitlementTier,jc as EvidenceCountAggregateFragmentDoc,ic as EvidenceFragmentDoc,kc as EvidenceMaxAggregateFragmentDoc,lc as EvidenceMinAggregateFragmentDoc,bh as ExecuteChatImportDocument,_i as ExportDocument,$i as ExportWithInsightIdDocument,nc as FailedSyncEventIngestionAvgAggregateFragmentDoc,oc as FailedSyncEventIngestionCountAggregateFragmentDoc,mc as FailedSyncEventIngestionFragmentDoc,pc as FailedSyncEventIngestionMaxAggregateFragmentDoc,qc as FailedSyncEventIngestionMinAggregateFragmentDoc,rc as FailedSyncEventIngestionSumAggregateFragmentDoc,v as FeedActionType,tc as FeedArtifactDataFragmentDoc,Cc as FeedConnectionFragmentDoc,uc as FeedDatabaseDataFragmentDoc,vc as FeedDocumentDataFragmentDoc,wc as FeedInsightDataFragmentDoc,xc as FeedIntegrationDataFragmentDoc,Dc as FeedItemCountAggregateFragmentDoc,aj as FeedItemDocument,Bc as FeedItemFragmentDoc,Ec as FeedItemGeneratedFragmentDoc,w as FeedItemKind,Fc as FeedItemMaxAggregateFragmentDoc,Gc as FeedItemMinAggregateFragmentDoc,x as FeedItemOrderByRelevanceFieldEnum,bj as FeedItem_ActionDocument,cj as FeedItem_DataDocument,dj as FeedItemsDocument,yc as FeedLiveContextDataFragmentDoc,zc as FeedProjectDataFragmentDoc,Ac as FeedPulseDataFragmentDoc,sc as FeedSendMessageActionFragmentDoc,Ic as FeedbackCountAggregateFragmentDoc,Hc as FeedbackFragmentDoc,Jc as FeedbackMaxAggregateFragmentDoc,Kc as FeedbackMinAggregateFragmentDoc,y as FeedbackOrderByRelevanceFieldEnum,z as FeedbackType,Mc as FileAvgAggregateFragmentDoc,Nc as FileCountAggregateFragmentDoc,ej as FileDocument,Lc as FileFragmentDoc,Oc as FileMaxAggregateFragmentDoc,fj as FileMetaDocument,Pc as FileMinAggregateFragmentDoc,Qc as FileModelFragmentDoc,A as FileOrderByRelevanceFieldEnum,Rc as FileSumAggregateFragmentDoc,B as FileUrlVariant,gj as FileUrlsDocument,df as FinalContentEventOutputFragmentDoc,hj as FindFitTierDocument,Tc as FolderConnectionFragmentDoc,Uc as FolderCountAggregateFragmentDoc,ij as FolderDocument,Sc as FolderFragmentDoc,Vc as FolderMaxAggregateFragmentDoc,Wc as FolderMinAggregateFragmentDoc,C as FolderOrderByRelevanceFieldEnum,jj as FoldersDocument,ch as GenerateUploadUriDocument,kj as GetCapabilityDocument,lj as GetDevAccessTokenDocument,mj as GetLimitDocument,nj as GetRemainingDocument,oj as GetTokenUsageByModelDocument,pj as GetTokenUsageHistoryDocument,qj as GetTokenUsageStatusDocument,rj as GetTokenUsageStatus_WindowsDocument,sj as GetTokenUsageStatus_Windows_DayDocument,tj as GetTokenUsageStatus_Windows_FiveHourDocument,uj as GetTokenUsageStatus_Windows_MonthDocument,vj as GetTokenUsageStatus_Windows_WeekDocument,wj as GetUsageDocument,Ma as ImportedChatSummaryOutputFragmentDoc,Yc as InferenceRequestAuditAvgAggregateFragmentDoc,Zc as InferenceRequestAuditCountAggregateFragmentDoc,Xc as InferenceRequestAuditFragmentDoc,_c as InferenceRequestAuditMaxAggregateFragmentDoc,$c as InferenceRequestAuditMinAggregateFragmentDoc,ad as InferenceRequestAuditSumAggregateFragmentDoc,cd as InsightConnectionFragmentDoc,dd as InsightCountAggregateFragmentDoc,xj as InsightDocument,bd as InsightFragmentDoc,ed as InsightMaxAggregateFragmentDoc,fd as InsightMinAggregateFragmentDoc,D as InsightOrderByRelevanceFieldEnum,yj as Insight_ChatDocument,zj as Insight_Chat_DesktopDeviceDocument,Aj as Insight_Chat_ProjectDocument,Bj as Insight_ReportMembersDocument,Cj as Insight_ReportMembers_ReportDocument,Dj as Insight_ReportsDocument,Ej as Insight_ThumbnailFileDocument,Fj as InsightsDocument,gd as IntegrationAvgAggregateFragmentDoc,hd as IntegrationCatalogAvgAggregateFragmentDoc,jd as IntegrationCatalogConnectionFragmentDoc,kd as IntegrationCatalogCountAggregateFragmentDoc,Jj as IntegrationCatalogDocument,id as IntegrationCatalogFragmentDoc,ld as IntegrationCatalogMaxAggregateFragmentDoc,md as IntegrationCatalogMinAggregateFragmentDoc,E as IntegrationCatalogOrderByRelevanceFieldEnum,nd as IntegrationCatalogSumAggregateFragmentDoc,Lj as IntegrationCatalogToolsDocument,Kj as IntegrationCatalog_ProviderDocument,Mj as IntegrationCatalogsDocument,pd as IntegrationConnectionFragmentDoc,qd as IntegrationCountAggregateFragmentDoc,Gj as IntegrationDocument,od as IntegrationFragmentDoc,rd as IntegrationMaxAggregateFragmentDoc,sd as IntegrationMinAggregateFragmentDoc,F as IntegrationOrderByRelevanceFieldEnum,ud as IntegrationProviderCountAggregateFragmentDoc,td as IntegrationProviderFragmentDoc,vd as IntegrationProviderMaxAggregateFragmentDoc,wd as IntegrationProviderMinAggregateFragmentDoc,G as IntegrationStatus,xd as IntegrationSumAggregateFragmentDoc,Hj as Integration_ProviderDocument,Ij as Integration_Provider_CatalogDocument,Nj as IntegrationsDocument,zd as InterpretationConnectionFragmentDoc,Ad as InterpretationCountAggregateFragmentDoc,yd as InterpretationFragmentDoc,Bd as InterpretationMaxAggregateFragmentDoc,Cd as InterpretationMinAggregateFragmentDoc,H as InterpretationOrderByRelevanceFieldEnum,I as InterpretationType,Oj as InterpretationsDocument,ef as InterruptEventOutputFragmentDoc,Ed as InvocationAvgAggregateFragmentDoc,Fd as InvocationCountAggregateFragmentDoc,Dd as InvocationFragmentDoc,Gd as InvocationMaxAggregateFragmentDoc,Hd as InvocationMinAggregateFragmentDoc,Id as InvocationSumAggregateFragmentDoc,J as LimitType,Kd as LiveContextConnectionFragmentDoc,Ld as LiveContextCountAggregateFragmentDoc,Pj as LiveContextDocument,Jd as LiveContextFragmentDoc,Md as LiveContextMaxAggregateFragmentDoc,Nd as LiveContextMinAggregateFragmentDoc,K as LiveContextOrderByRelevanceFieldEnum,L as LiveContextStatus,Qj as LiveContext_ItemsDocument,Rj as LiveContext_SourceDocument,Sj as LiveContext_Source_EvidencesDocument,Tj as LiveContextsDocument,M as LocalSandboxDeviceConnectionState,Od as LocalSandboxDeviceStatusModelFragmentDoc,Uj as LocalSandboxDeviceStatusesDocument,Vj as ManagedChatModelsDocument,N as McpAuthPhase,Pd as McpAuthUpdateModelFragmentDoc,Jk as McpAuthUpdatesDocument,Rd as McpClientInformationCountAggregateFragmentDoc,Qd as McpClientInformationFragmentDoc,Sd as McpClientInformationMaxAggregateFragmentDoc,Td as McpClientInformationMinAggregateFragmentDoc,Vd as McpCodeVerifierCountAggregateFragmentDoc,Ud as McpCodeVerifierFragmentDoc,Wd as McpCodeVerifierMaxAggregateFragmentDoc,Xd as McpCodeVerifierMinAggregateFragmentDoc,Zd as McpServerCountAggregateFragmentDoc,Yd as McpServerFragmentDoc,_d as McpServerMaxAggregateFragmentDoc,$d as McpServerMinAggregateFragmentDoc,ae as McpServerTestOutputFragmentDoc,ce as McpTokensCountAggregateFragmentDoc,be as McpTokensFragmentDoc,de as McpTokensMaxAggregateFragmentDoc,ee as McpTokensMinAggregateFragmentDoc,ge as McpToolCountAggregateFragmentDoc,fe as McpToolFragmentDoc,he as McpToolMaxAggregateFragmentDoc,ie as McpToolMinAggregateFragmentDoc,ff as MessageEndEventOutputFragmentDoc,gf as MessageStartEventOutputFragmentDoc,je as ModelTokenUsageFragmentDoc,O as NotificationCategory,le as NotificationConnectionFragmentDoc,me as NotificationCountAggregateFragmentDoc,Wj as NotificationDocument,ke as NotificationFragmentDoc,ne as NotificationMaxAggregateFragmentDoc,oe as NotificationMinAggregateFragmentDoc,P as NotificationOrderByRelevanceFieldEnum,Q as NotificationPriority,R as NotificationStatus,Yj as NotificationsByReferenceDocument,Xj as NotificationsDocument,S as NullsOrder,dh as OpenActiveTabDocument,pe as PageInfoFragmentDoc,T as Presentation,eh as PreviewChatImportDocument,Zj as PrivacyStatsDocument,qe as PrivacyStatsFragmentDoc,bf as PrivacyStatsOutputFragmentDoc,_j as PrivateMcpServersDocument,hf as ProgressSummaryEventOutputFragmentDoc,se as ProjectConnectionFragmentDoc,te as ProjectCountAggregateFragmentDoc,ve as ProjectDesktopBindingCountAggregateFragmentDoc,ue as ProjectDesktopBindingFragmentDoc,we as ProjectDesktopBindingMaxAggregateFragmentDoc,xe as ProjectDesktopBindingMinAggregateFragmentDoc,U as ProjectDesktopBindingOrderByRelevanceFieldEnum,V as ProjectDesktopContextKind,$j as ProjectDocument,re as ProjectFragmentDoc,ye as ProjectMaxAggregateFragmentDoc,ze as ProjectMinAggregateFragmentDoc,W as ProjectOrderByRelevanceFieldEnum,X as ProjectSource,ak as Project_ChatsDocument,bk as Project_DesktopBindingDocument,ck as Project_DesktopBinding_DeviceDocument,dk as ProjectsDocument,ek as PulseAppSummaryDocument,Ae as PulseAppSummaryModelFragmentDoc,Ce as PulseEventConnectionFragmentDoc,De as PulseEventCountAggregateFragmentDoc,fk as PulseEventDocument,Be as PulseEventFragmentDoc,Y as PulseEventKind,Ee as PulseEventMaxAggregateFragmentDoc,Fe as PulseEventMinAggregateFragmentDoc,Z as PulseEventOrderByRelevanceFieldEnum,_ as PulseEventPriority,gk as PulseEvent_IntegrationDocument,hk as PulseEvent_Integration_ProviderDocument,ik as PulseEventsDocument,Ge as PulseTriggerSettingModelFragmentDoc,jk as PulseTriggerSettingsDocument,kk as QueryDocument,$ as QueryMode,lk as QueryWithInsightIdDocument,mk as QueryWithMessageIdDocument,fh as ReanalyzeDocumentDocument,aa as ReasoningEffort,if as ReasoningEventOutputFragmentDoc,gh as RefineAgentInstructionDocument,hh as RefineSkillInstructionDocument,ih as RefreshDatabaseSchemaDocument,jh as RefreshInsightDocument,kh as RegisterDesktopDeviceDocument,lh as ReinterpretSourceDocument,mh as ReinterpretSourcesOfuserDocument,Ie as RelationCountAggregateFragmentDoc,He as RelationFragmentDoc,Je as RelationMaxAggregateFragmentDoc,Ke as RelationMinAggregateFragmentDoc,ba as RelationType,nh as RelocateInsightDocument,oh as RemoveInsightFromReportDocument,ph as RemoveMcpServerDocument,Me as ReportConnectionFragmentDoc,Ne as ReportCountAggregateFragmentDoc,nk as ReportDocument,Le as ReportFragmentDoc,Oe as ReportMaxAggregateFragmentDoc,Qe as ReportMemberAvgAggregateFragmentDoc,Re as ReportMemberCountAggregateFragmentDoc,Pe as ReportMemberFragmentDoc,Se as ReportMemberMaxAggregateFragmentDoc,Te as ReportMemberMinAggregateFragmentDoc,ca as ReportMemberSize,Ue as ReportMemberSumAggregateFragmentDoc,Ve as ReportMinAggregateFragmentDoc,da as ReportOrderByRelevanceFieldEnum,ok as Report_InsightsDocument,pk as Report_LayoutDocument,qk as Report_Layout_InsightDocument,rk as ReportsDocument,qh as ResetWorkspaceDocument,rh as ResolvePulseEventDocument,We as ResolvedFileUrlFragmentDoc,sh as ResumeMessageDocument,th as ScheduleWorkspaceDeletionDocument,uh as SendMessageDocument,ea as SendMessageModel,vh as SetDatabasePrimaryKeyDocument,sk as SkillCatalogDocument,Xe as SkillCatalogItemFragmentDoc,fa as SkillCatalogSource,ga as SortOrder,tf as StreamEventSchemaAnchorFragmentDoc,$e as StreamMessageContentOutputFragmentDoc,af as StreamMessageOutputFragmentDoc,vf as SyncEventAvgAggregateFragmentDoc,wf as SyncEventCountAggregateFragmentDoc,yf as SyncEventCursorAvgAggregateFragmentDoc,zf as SyncEventCursorCountAggregateFragmentDoc,xf as SyncEventCursorFragmentDoc,Af as SyncEventCursorMaxAggregateFragmentDoc,Bf as SyncEventCursorMinAggregateFragmentDoc,Cf as SyncEventCursorSumAggregateFragmentDoc,uf as SyncEventFragmentDoc,Df as SyncEventMaxAggregateFragmentDoc,Ef as SyncEventMinAggregateFragmentDoc,Ff as SyncEventSumAggregateFragmentDoc,wh as SyncProjectDesktopBindingDocument,Hf as TableConnectionFragmentDoc,If as TableCountAggregateFragmentDoc,tk as TableDocument,Gf as TableFragmentDoc,Jf as TableMaxAggregateFragmentDoc,Kf as TableMinAggregateFragmentDoc,ha as TableOrderByRelevanceFieldEnum,ia as TableStatus,uk as Table_DatabaseDocument,vk as Table_Database_EngineDocument,wk as Table_DocumentDocument,xk as Table_Document_ContentsDocument,yk as Table_Document_FileDocument,zk as Table_Document_FormatDocument,Ak as Table_FromRelationsDocument,Bk as Table_ToRelationsDocument,Ck as TablesDocument,yh as TestMcpServerConnectionDocument,xh as TestMcpServerDocument,jf as TextBlockEventOutputFragmentDoc,kf as TextDeltaEventOutputFragmentDoc,Mf as TokenUsageAvgAggregateFragmentDoc,Nf as TokenUsageCountAggregateFragmentDoc,Lf as TokenUsageFragmentDoc,ja as TokenUsageLimit,Of as TokenUsageMaxAggregateFragmentDoc,Pf as TokenUsageMinAggregateFragmentDoc,Qf as TokenUsageSumAggregateFragmentDoc,Kk as TokenUsageUpdatesDocument,lf as ToolInputDeltaEventOutputFragmentDoc,mf as ToolResultArtifactOutputFragmentDoc,nf as ToolResultEventOutputFragmentDoc,of as ToolStartEventOutputFragmentDoc,zh as UpdateAgentDocument,Ah as UpdateArtifactNameDocument,Bh as UpdateChatDocument,Ch as UpdateDatabaseDocument,Dh as UpdateDocumentDocument,Eh as UpdateFolderDocument,Fh as UpdateInsightDocument,Gh as UpdateInsightInReportDocument,Hh as UpdateInsightThumbnailDocument,Ih as UpdateInterpDocument,Jh as UpdateLiveContextDocument,Kh as UpdateProjectDocument,Lh as UpdatePulseTriggerDocument,Mh as UpdateReportDocument,Nh as UpdateTableDocument,Oh as UpdateUserSkillFileDocument,Ph as UpdateUserSkillFolderDocument,Qh as UpsertAiProviderSettingDocument,Rh as UpsertWorkspaceAiModelDocument,ka as UsageHistoryGranularity,cf as UsageMetaOutputFragmentDoc,Tf as UsageStatusFragmentDoc,Sf as UsageWindowsStatusTypeFragmentDoc,Vf as UserAiProviderSettingCountAggregateFragmentDoc,Uf as UserAiProviderSettingFragmentDoc,Wf as UserAiProviderSettingMaxAggregateFragmentDoc,Xf as UserAiProviderSettingMinAggregateFragmentDoc,Zf as UserSkillFileCountAggregateFragmentDoc,Dk as UserSkillFileDocument,Yf as UserSkillFileFragmentDoc,_f as UserSkillFileMaxAggregateFragmentDoc,$f as UserSkillFileMinAggregateFragmentDoc,ag as UserSkillFileModelFragmentDoc,Ek as UserSkillFilesDocument,cg as UserSkillFolderCountAggregateFragmentDoc,Fk as UserSkillFolderDocument,bg as UserSkillFolderFragmentDoc,dg as UserSkillFolderMaxAggregateFragmentDoc,eg as UserSkillFolderMinAggregateFragmentDoc,fg as UserSkillFolderModelFragmentDoc,Gk as UserSkillFoldersDocument,pf as WidgetBlockCompleteEventOutputFragmentDoc,qf as WidgetBlockErrorEventOutputFragmentDoc,rf as WidgetBlockStartEventOutputFragmentDoc,sf as WidgetHtmlDeltaEventOutputFragmentDoc,Rf as WindowDetailTypeFragmentDoc,Hk as WorkspaceAiModelDocument,hg as WorkspaceAiModelSettingCountAggregateFragmentDoc,gg as WorkspaceAiModelSettingFragmentDoc,ig as WorkspaceAiModelSettingMaxAggregateFragmentDoc,jg as WorkspaceAiModelSettingMinAggregateFragmentDoc,lg as WorkspaceDeleteScheduleCountAggregateFragmentDoc,kg as WorkspaceDeleteScheduleFragmentDoc,mg as WorkspaceDeleteScheduleMaxAggregateFragmentDoc,ng as WorkspaceDeleteScheduleMinAggregateFragmentDoc,Ik as WorkspaceDeletionScheduleDocument}from'./chunk-IO56LXKJ.js';import'./chunk-EK7ODJWE.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Signal, DestroyRef, EnvironmentProviders } from '@angular/core';
|
|
2
|
-
import { D as DvinaSdkOptions } from '../../client-
|
|
2
|
+
import { D as DvinaSdkOptions } from '../../client-CEoJfTM9.js';
|
|
3
3
|
import { D as DvinaAsyncRef } from '../../types-Chg8ASmf.js';
|
|
4
4
|
import '../../error-CsVoUTY8.js';
|
|
5
|
-
import '../../sync-engine-
|
|
5
|
+
import '../../sync-engine-Bh0UcTVd.js';
|
|
6
6
|
import 'graphql';
|
|
7
7
|
import 'dexie';
|
|
8
8
|
import '../../client-Bb2gD6Iz.js';
|
|
@@ -1,159 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../../chunk-KEM6SUTS.js';
|
|
3
|
-
import '../../chunk-PDM2KR7T.js';
|
|
4
|
-
import '../../chunk-WX7EFPHT.js';
|
|
5
|
-
import '../../chunk-7XBJ77RJ.js';
|
|
6
|
-
import '../../chunk-NH4SMZCW.js';
|
|
7
|
-
import '../../chunk-5WRI5ZAA.js';
|
|
8
|
-
import { inject, DestroyRef, signal, effect, computed, makeEnvironmentProviders, untracked } from '@angular/core';
|
|
9
|
-
|
|
10
|
-
function toSignal(ref, options) {
|
|
11
|
-
const destroyRef = options?.destroyRef ?? inject(DestroyRef);
|
|
12
|
-
const sig = signal(ref.current);
|
|
13
|
-
let running = true;
|
|
14
|
-
(async () => {
|
|
15
|
-
try {
|
|
16
|
-
for await (const value of ref) {
|
|
17
|
-
if (!running) break;
|
|
18
|
-
sig.set(value);
|
|
19
|
-
}
|
|
20
|
-
} catch {
|
|
21
|
-
}
|
|
22
|
-
})();
|
|
23
|
-
destroyRef.onDestroy(() => {
|
|
24
|
-
running = false;
|
|
25
|
-
ref.dispose();
|
|
26
|
-
});
|
|
27
|
-
return sig.asReadonly();
|
|
28
|
-
}
|
|
29
|
-
function dvnResource(config) {
|
|
30
|
-
const destroyRef = inject(DestroyRef);
|
|
31
|
-
const hasParams = "params" in config && config.params !== void 0;
|
|
32
|
-
const _value = signal(void 0);
|
|
33
|
-
const _status = signal("idle");
|
|
34
|
-
const _error = signal(void 0);
|
|
35
|
-
let abortController = null;
|
|
36
|
-
let streamRunning = false;
|
|
37
|
-
let currentQueryRef = null;
|
|
38
|
-
const cleanup = () => {
|
|
39
|
-
abortController?.abort();
|
|
40
|
-
abortController = null;
|
|
41
|
-
streamRunning = false;
|
|
42
|
-
currentQueryRef?.dispose();
|
|
43
|
-
currentQueryRef = null;
|
|
44
|
-
};
|
|
45
|
-
const load = (params) => {
|
|
46
|
-
cleanup();
|
|
47
|
-
_error.set(void 0);
|
|
48
|
-
const hadValue = untracked(() => _value() !== void 0);
|
|
49
|
-
_status.set(hadValue ? "reloading" : "loading");
|
|
50
|
-
abortController = new AbortController();
|
|
51
|
-
const ctx = hasParams ? { params, abortSignal: abortController.signal } : { abortSignal: abortController.signal };
|
|
52
|
-
const result = config.loader(ctx);
|
|
53
|
-
if (isAsyncIterable(result)) {
|
|
54
|
-
if (hasDispose(result)) {
|
|
55
|
-
currentQueryRef = result;
|
|
56
|
-
}
|
|
57
|
-
streamRunning = true;
|
|
58
|
-
const capturedController = abortController;
|
|
59
|
-
(async () => {
|
|
60
|
-
try {
|
|
61
|
-
for await (const val of result) {
|
|
62
|
-
if (!streamRunning) break;
|
|
63
|
-
_value.set(val);
|
|
64
|
-
_status.set("resolved");
|
|
65
|
-
_error.set(void 0);
|
|
66
|
-
}
|
|
67
|
-
} catch (err) {
|
|
68
|
-
if (!streamRunning || capturedController.signal.aborted) return;
|
|
69
|
-
const wrapped = err instanceof Error ? err : new Error(String(err));
|
|
70
|
-
_error.set(wrapped);
|
|
71
|
-
_status.set("error");
|
|
72
|
-
}
|
|
73
|
-
})();
|
|
74
|
-
} else {
|
|
75
|
-
const capturedController = abortController;
|
|
76
|
-
result.then(
|
|
77
|
-
(val) => {
|
|
78
|
-
if (capturedController.signal.aborted) return;
|
|
79
|
-
_value.set(val);
|
|
80
|
-
_status.set("resolved");
|
|
81
|
-
},
|
|
82
|
-
(err) => {
|
|
83
|
-
if (capturedController.signal.aborted) return;
|
|
84
|
-
if (err instanceof DOMException && err.name === "AbortError") return;
|
|
85
|
-
const wrapped = err instanceof Error ? err : new Error(String(err));
|
|
86
|
-
_error.set(wrapped);
|
|
87
|
-
_status.set("error");
|
|
88
|
-
}
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
if (hasParams) {
|
|
93
|
-
effect(() => {
|
|
94
|
-
const params = config.params();
|
|
95
|
-
if (params !== void 0) {
|
|
96
|
-
load(params);
|
|
97
|
-
} else {
|
|
98
|
-
cleanup();
|
|
99
|
-
_value.set(void 0);
|
|
100
|
-
_status.set("idle");
|
|
101
|
-
_error.set(void 0);
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
} else {
|
|
105
|
-
load();
|
|
106
|
-
}
|
|
107
|
-
destroyRef.onDestroy(() => {
|
|
108
|
-
cleanup();
|
|
109
|
-
});
|
|
110
|
-
const status = _status.asReadonly();
|
|
111
|
-
const isLoading = computed(() => {
|
|
112
|
-
const s = _status();
|
|
113
|
-
return s === "loading" || s === "reloading";
|
|
114
|
-
});
|
|
115
|
-
return {
|
|
116
|
-
value: _value.asReadonly(),
|
|
117
|
-
status,
|
|
118
|
-
isLoading,
|
|
119
|
-
error: _error.asReadonly(),
|
|
120
|
-
hasValue: () => _value() !== void 0,
|
|
121
|
-
reload() {
|
|
122
|
-
if (hasParams) {
|
|
123
|
-
const params = config.params();
|
|
124
|
-
if (params !== void 0) {
|
|
125
|
-
load(params);
|
|
126
|
-
}
|
|
127
|
-
} else {
|
|
128
|
-
load();
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
destroy() {
|
|
132
|
-
cleanup();
|
|
133
|
-
_value.set(void 0);
|
|
134
|
-
_status.set("idle");
|
|
135
|
-
_error.set(void 0);
|
|
136
|
-
}
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
function isAsyncIterable(value) {
|
|
140
|
-
return value != null && typeof value === "object" && Symbol.asyncIterator in value;
|
|
141
|
-
}
|
|
142
|
-
function hasDispose(value) {
|
|
143
|
-
return value != null && typeof value === "object" && "dispose" in value && typeof value.dispose === "function";
|
|
144
|
-
}
|
|
145
|
-
function provideDvina(optionsOrFactory) {
|
|
146
|
-
return makeEnvironmentProviders([
|
|
147
|
-
{
|
|
148
|
-
provide: DvinaSdk,
|
|
149
|
-
useFactory: () => {
|
|
150
|
-
const options = typeof optionsOrFactory === "function" ? optionsOrFactory() : optionsOrFactory;
|
|
151
|
-
return new DvinaSdk(options);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
]);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export { dvnResource, provideDvina, toSignal };
|
|
158
|
-
//# sourceMappingURL=index.js.map
|
|
159
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import {Bg}from'../../chunk-D2L26FRK.js';import'../../chunk-H3TI6B7T.js';import'../../chunk-IIQ3WGOJ.js';import'../../chunk-SJ6Q5IDB.js';import'../../chunk-5E7LX4YQ.js';import'../../chunk-IO56LXKJ.js';import'../../chunk-EK7ODJWE.js';import {inject,DestroyRef,signal,effect,computed,makeEnvironmentProviders,untracked}from'@angular/core';function L(e,i){let l=i?.destroyRef??inject(DestroyRef),t=signal(e.current),r=true;return (async()=>{try{for await(let o of e){if(!r)break;t.set(o);}}catch{}})(),l.onDestroy(()=>{r=false,e.dispose();}),t.asReadonly()}function j(e){let i=inject(DestroyRef),l="params"in e&&e.params!==void 0,t=signal(void 0),r=signal("idle"),o=signal(void 0),a=null,u=false,m=null,c=()=>{a?.abort(),a=null,u=false,m?.dispose(),m=null;},f=s=>{c(),o.set(void 0);let D=untracked(()=>t()!==void 0);r.set(D?"reloading":"loading"),a=new AbortController;let x=l?{params:s,abortSignal:a.signal}:{abortSignal:a.signal},d=e.loader(x);if(A(d)){h(d)&&(m=d),u=true;let p=a;(async()=>{try{for await(let n of d){if(!u)break;t.set(n),r.set("resolved"),o.set(void 0);}}catch(n){if(!u||p.signal.aborted)return;let y=n instanceof Error?n:new Error(String(n));o.set(y),r.set("error");}})();}else {let p=a;d.then(n=>{p.signal.aborted||(t.set(n),r.set("resolved"));},n=>{if(p.signal.aborted||n instanceof DOMException&&n.name==="AbortError")return;let y=n instanceof Error?n:new Error(String(n));o.set(y),r.set("error");});}};l?effect(()=>{let s=e.params();s!==void 0?f(s):(c(),t.set(void 0),r.set("idle"),o.set(void 0));}):f(),i.onDestroy(()=>{c();});let b=r.asReadonly(),S=computed(()=>{let s=r();return s==="loading"||s==="reloading"});return {value:t.asReadonly(),status:b,isLoading:S,error:o.asReadonly(),hasValue:()=>t()!==void 0,reload(){if(l){let s=e.params();s!==void 0&&f(s);}else f();},destroy(){c(),t.set(void 0),r.set("idle"),o.set(void 0);}}}function A(e){return e!=null&&typeof e=="object"&&Symbol.asyncIterator in e}function h(e){return e!=null&&typeof e=="object"&&"dispose"in e&&typeof e.dispose=="function"}function O(e){return makeEnvironmentProviders([{provide:Bg,useFactory:()=>{let i=typeof e=="function"?e():e;return new Bg(i)}}])}export{j as dvnResource,O as provideDvina,L as toSignal};
|
|
@@ -1,49 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useMemo, useState, useRef, useEffect } from 'react';
|
|
3
|
-
|
|
4
|
-
function useLiveQuery(factory, deps) {
|
|
5
|
-
const ref = useMemo(factory, deps);
|
|
6
|
-
const [value, setValue] = useState(ref.current);
|
|
7
|
-
if (process.env.NODE_ENV !== "production") {
|
|
8
|
-
const changeCount = useRef(0);
|
|
9
|
-
const lastChangeTime = useRef(Date.now());
|
|
10
|
-
const now = Date.now();
|
|
11
|
-
if (ref !== void 0) {
|
|
12
|
-
const elapsed = now - lastChangeTime.current;
|
|
13
|
-
if (elapsed < 1e3) {
|
|
14
|
-
changeCount.current++;
|
|
15
|
-
} else {
|
|
16
|
-
changeCount.current = 1;
|
|
17
|
-
}
|
|
18
|
-
lastChangeTime.current = now;
|
|
19
|
-
if (changeCount.current > 10) {
|
|
20
|
-
console.warn(
|
|
21
|
-
"useLiveQuery: query ref was recreated more than 10 times within 1 second. This usually means the dependency array is unstable (e.g. a new object/array created every render). Ensure deps contain only primitive values or stable references."
|
|
22
|
-
);
|
|
23
|
-
changeCount.current = 0;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
useEffect(() => {
|
|
28
|
-
let active = true;
|
|
29
|
-
setValue(ref.current);
|
|
30
|
-
(async () => {
|
|
31
|
-
try {
|
|
32
|
-
for await (const v of ref) {
|
|
33
|
-
if (!active) break;
|
|
34
|
-
setValue(v);
|
|
35
|
-
}
|
|
36
|
-
} catch {
|
|
37
|
-
}
|
|
38
|
-
})();
|
|
39
|
-
return () => {
|
|
40
|
-
active = false;
|
|
41
|
-
ref.dispose();
|
|
42
|
-
};
|
|
43
|
-
}, [ref]);
|
|
44
|
-
return value;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export { useLiveQuery };
|
|
48
|
-
//# sourceMappingURL=index.js.map
|
|
49
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import'../../chunk-EK7ODJWE.js';import {useMemo,useState,useRef,useEffect}from'react';function p(u,o){let n=useMemo(u,o),[c,t]=useState(n.current);if(process.env.NODE_ENV!=="production"){let e=useRef(0),r=useRef(Date.now()),s=Date.now();n!==void 0&&(s-r.current<1e3?e.current++:e.current=1,r.current=s,e.current>10&&(console.warn("useLiveQuery: query ref was recreated more than 10 times within 1 second. This usually means the dependency array is unstable (e.g. a new object/array created every render). Ensure deps contain only primitive values or stable references."),e.current=0));}return useEffect(()=>{let e=true;return t(n.current),(async()=>{try{for await(let r of n){if(!e)break;t(r);}}catch{}})(),()=>{e=false,n.dispose();}},[n]),c}export{p as useLiveQuery};
|
package/dist/billing/index.js
CHANGED
|
@@ -1,5 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
import '../chunk-7XBJ77RJ.js';
|
|
3
|
-
import '../chunk-5WRI5ZAA.js';
|
|
4
|
-
//# sourceMappingURL=index.js.map
|
|
5
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export{h as BillingClient,e as EntitlementTier,f as SubscriptionCycle,g as SubscriptionProvider}from'../chunk-SJ6Q5IDB.js';import'../chunk-5E7LX4YQ.js';import'../chunk-EK7ODJWE.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var E=class extends Error{cause;constructor(n,r){super(n),this.name="DvinaError",this.cause=r;}},o=class extends E{errors;query;variables;constructor(n,r,t){let i=n.map(_=>_.message).join("; ")||"Unknown GraphQL error";super(i),this.name="DvinaGraphQLError",this.errors=n,this.query=r,this.variables=t;}},d=class extends E{status;constructor(n,r,t){super(n,t),this.name="DvinaNetworkError",this.status=r;}},p=class extends E{failedToken;constructor(n="Authentication failed",r,t){super(n,typeof r=="string"?t:r),this.name="DvinaAuthenticationError",this.failedToken=typeof r=="string"?r:void 0;}},s={SESSION_TOKEN_LIMIT_REACHED:"SESSION_TOKEN_LIMIT_REACHED",STORAGE_LIMIT_REACHED:"STORAGE_LIMIT_REACHED",DEEP_ANALYSIS_LIMIT_EXCEEDED:"DEEP_ANALYSIS_LIMIT_EXCEEDED",PLAN_DETAIL_RESTRICTION:"PLAN_DETAIL_RESTRICTION",RESOURCE_NOT_FOUND:"RESOURCE_NOT_FOUND"},I=new Set([s.PLAN_DETAIL_RESTRICTION,s.STORAGE_LIMIT_REACHED,s.DEEP_ANALYSIS_LIMIT_EXCEEDED]),c=class extends o{restrictionCode;constructor(n,r,t,i){super(n,t,i),this.name="DvinaPlanRestrictionError",this.restrictionCode=r;}},a=class extends o{constructor(n,r,t){super(n,r,t),this.name="DvinaTokenLimitError";}},u=class extends o{constructor(n,r,t){super(n,r,t),this.name="DvinaNotFoundError";}};function l(e){for(let n of e){let r=n.extensions?.code;if(r!=null)return String(r).toUpperCase()}}function R(e,n,r){let t=l(e);return t===s.SESSION_TOKEN_LIMIT_REACHED?new a(e,n,r):t===s.RESOURCE_NOT_FOUND?new u(e,n,r):t&&I.has(t)?new c(e,t,n,r):new o(e,n,r)}export{E as a,o as b,d as c,p as d,s as e,c as f,a as g,u as h,l as i,R as j};
|