@arbidocs/sdk 0.3.115 → 0.3.116
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/{browser-B5b3SDW6.d.cts → browser-BS_k043E.d.cts} +257 -3
- package/dist/{browser-B5b3SDW6.d.ts → browser-BS_k043E.d.ts} +257 -3
- package/dist/browser.cjs +77 -2
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +77 -3
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +70 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -108
- package/dist/index.d.ts +3 -108
- package/dist/index.js +70 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as ConfigStore, l as CliConfig, m as CliCredentials, C as ChatSession,
|
|
2
|
-
export { a as AgentStepEvent, b as Arbi, c as ArbiApiError, d as ArbiError, f as ArbiOptions, g as ArtifactEvent, h as AuthContext, j as AuthenticatedClient, k as CitationSummary, n as CommandDescriptor, p as ConnectOptions, D as DOC_TERMINAL_STATUSES, t as DocNameMap, u as DocumentListFields, v as DocumentListOrder, w as DocumentWaiter, x as DocumentWaiterOptions, F as FormattedWsMessage, L as ListAllOptions, y as ListPaginatedOptions, E as MessageLevel, G as MessageMetadataPayload, H as MessageQueuedEvent, O as OutputTokensDetails, P as ParsedSlashCommand, Q as QueryOptions, R as ReconnectOptions,
|
|
1
|
+
import { o as ConfigStore, l as CliConfig, m as CliCredentials, C as ChatSession, a5 as SkippedFile, ad as UploadResult, i as AuthHeaders, a9 as UploadBatchResult, ac as UploadOptions, aa as UploadDirectOptions, ab as UploadDirectResult, a3 as SUPPORTED_EXTENSIONS, s as DmCryptoContext } from './browser-BS_k043E.cjs';
|
|
2
|
+
export { a as AgentStepEvent, b as Arbi, c as ArbiApiError, d as ArbiError, f as ArbiOptions, g as ArtifactEvent, h as AuthContext, j as AuthenticatedClient, k as CitationSummary, n as CommandDescriptor, p as ConnectOptions, D as DOC_TERMINAL_STATUSES, t as DocNameMap, u as DocumentListFields, v as DocumentListOrder, w as DocumentWaiter, x as DocumentWaiterOptions, F as FormattedWsMessage, L as ListAllOptions, y as ListPaginatedOptions, E as MessageLevel, G as MessageMetadataPayload, H as MessageQueuedEvent, O as OutputTokensDetails, P as ParsedSlashCommand, I as ProjectInvoicesResponse, J as ProjectUsageResponse, Q as QueryOptions, R as ReconnectOptions, K as ReconnectableWsConnection, N as ResolvedCitation, S as ResponseCompletedEvent, T as ResponseContentPartAddedEvent, U as ResponseCreatedEvent, V as ResponseFailedEvent, W as ResponseOutputItemAddedEvent, X as ResponseOutputItemDoneEvent, Y as ResponseOutputTextDeltaEvent, Z as ResponseOutputTextDoneEvent, _ as ResponseUsage, $ as SSEEvent, a0 as SSEStreamCallbacks, a1 as SSEStreamResult, a2 as SSEStreamStartData, a4 as SkillSummary, ae as UserDailyUsageResponse, af as UserInfo, ag as UserInputRequestEvent, ah as UserMessageEvent, ai as WebSocketAuthError, aj as WorkspaceChronologyOut, ak as WorkspaceContext, al as WsConnection, am as agentconfig, an as assistant, ao as authenticatedFetch, ap as buildRetrievalChunkTool, aq as buildRetrievalFullContextTool, ar as buildRetrievalTocTool, as as connectWebSocket, at as connectWithReconnect, au as consumeSSEStream, av as contacts, aw as conversations, ax as countCitations, ay as createAuthenticatedClient, az as createDocumentWaiter, aA as dm, aB as doctags, aC as documents, aD as files, aE as filterSkills, aF as formatAgentStepLabel, aG as formatFileSize, aH as formatStreamSummary, aI as formatUserName, aJ as formatWorkspaceChoices, aK as formatWsMessage, aL as generateEncryptedWorkspaceKey, aM as generateNewWorkspaceKey, aN as getErrorCode, aO as getErrorMessage, aP as getRawWorkspaceKey, aQ as health, aS as parseSSEEvents, aT as parseSlashCommand, aU as parseSlashTokenInProgress, aV as performPasswordLogin, aW as performSigningKeyLogin, aX as performSsoDeviceFlowLogin, aY as projects, aZ as requireData, a_ as requireOk, a$ as resolveAuth, b0 as resolveCitations, b1 as resolveWorkspace, b2 as responses, b3 as selectWorkspace, b4 as selectWorkspaceById, b5 as settings, b6 as streamSSE, b7 as stripCitationMarkdown, b8 as summarizeCitations, b9 as tags, bb as workspaces } from './browser-BS_k043E.cjs';
|
|
3
3
|
import { SessionStorageProvider, ArbiClient, components } from '@arbidocs/client';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -696,111 +696,6 @@ declare namespace sessions {
|
|
|
696
696
|
export { sessions_listSessions as listSessions };
|
|
697
697
|
}
|
|
698
698
|
|
|
699
|
-
/**
|
|
700
|
-
* Project operations — list, create, update, delete, checkout, refresh.
|
|
701
|
-
*/
|
|
702
|
-
|
|
703
|
-
declare function listProjects(arbi: ArbiClient): Promise<{
|
|
704
|
-
external_id: string;
|
|
705
|
-
name: string;
|
|
706
|
-
created_by: string;
|
|
707
|
-
packs: number;
|
|
708
|
-
subscription: string;
|
|
709
|
-
created_at: string;
|
|
710
|
-
quotas: {
|
|
711
|
-
storage_gb: {
|
|
712
|
-
used: number;
|
|
713
|
-
limit: number;
|
|
714
|
-
};
|
|
715
|
-
ai_credits: {
|
|
716
|
-
used: number;
|
|
717
|
-
limit: number;
|
|
718
|
-
};
|
|
719
|
-
collaborators: {
|
|
720
|
-
used: number;
|
|
721
|
-
limit: number;
|
|
722
|
-
};
|
|
723
|
-
budget_reset_at?: number | null | undefined;
|
|
724
|
-
};
|
|
725
|
-
daily_cap_per_user?: number | null | undefined;
|
|
726
|
-
price_id?: string | null | undefined;
|
|
727
|
-
plan?: string | null | undefined;
|
|
728
|
-
amount?: number | null | undefined;
|
|
729
|
-
currency?: string | null | undefined;
|
|
730
|
-
current_period_end?: number | null | undefined;
|
|
731
|
-
cancel_at_period_end?: boolean | null | undefined;
|
|
732
|
-
portal_url?: string | null | undefined;
|
|
733
|
-
}[]>;
|
|
734
|
-
declare function createProject(arbi: ArbiClient, name: string): Promise<{
|
|
735
|
-
external_id: string;
|
|
736
|
-
name: string;
|
|
737
|
-
created_by: string;
|
|
738
|
-
packs: number;
|
|
739
|
-
subscription: string;
|
|
740
|
-
created_at: string;
|
|
741
|
-
quotas: {
|
|
742
|
-
storage_gb: {
|
|
743
|
-
used: number;
|
|
744
|
-
limit: number;
|
|
745
|
-
};
|
|
746
|
-
ai_credits: {
|
|
747
|
-
used: number;
|
|
748
|
-
limit: number;
|
|
749
|
-
};
|
|
750
|
-
collaborators: {
|
|
751
|
-
used: number;
|
|
752
|
-
limit: number;
|
|
753
|
-
};
|
|
754
|
-
budget_reset_at?: number | null | undefined;
|
|
755
|
-
};
|
|
756
|
-
daily_cap_per_user?: number | null | undefined;
|
|
757
|
-
price_id?: string | null | undefined;
|
|
758
|
-
plan?: string | null | undefined;
|
|
759
|
-
amount?: number | null | undefined;
|
|
760
|
-
currency?: string | null | undefined;
|
|
761
|
-
current_period_end?: number | null | undefined;
|
|
762
|
-
cancel_at_period_end?: boolean | null | undefined;
|
|
763
|
-
portal_url?: string | null | undefined;
|
|
764
|
-
}>;
|
|
765
|
-
declare function refreshProject(arbi: ArbiClient, projectExtId: string): Promise<{
|
|
766
|
-
external_id: string;
|
|
767
|
-
name: string;
|
|
768
|
-
created_by: string;
|
|
769
|
-
packs: number;
|
|
770
|
-
subscription: string;
|
|
771
|
-
created_at: string;
|
|
772
|
-
quotas: {
|
|
773
|
-
storage_gb: {
|
|
774
|
-
used: number;
|
|
775
|
-
limit: number;
|
|
776
|
-
};
|
|
777
|
-
ai_credits: {
|
|
778
|
-
used: number;
|
|
779
|
-
limit: number;
|
|
780
|
-
};
|
|
781
|
-
collaborators: {
|
|
782
|
-
used: number;
|
|
783
|
-
limit: number;
|
|
784
|
-
};
|
|
785
|
-
budget_reset_at?: number | null | undefined;
|
|
786
|
-
};
|
|
787
|
-
daily_cap_per_user?: number | null | undefined;
|
|
788
|
-
price_id?: string | null | undefined;
|
|
789
|
-
plan?: string | null | undefined;
|
|
790
|
-
amount?: number | null | undefined;
|
|
791
|
-
currency?: string | null | undefined;
|
|
792
|
-
current_period_end?: number | null | undefined;
|
|
793
|
-
cancel_at_period_end?: boolean | null | undefined;
|
|
794
|
-
portal_url?: string | null | undefined;
|
|
795
|
-
}>;
|
|
796
|
-
|
|
797
|
-
declare const projects_createProject: typeof createProject;
|
|
798
|
-
declare const projects_listProjects: typeof listProjects;
|
|
799
|
-
declare const projects_refreshProject: typeof refreshProject;
|
|
800
|
-
declare namespace projects {
|
|
801
|
-
export { projects_createProject as createProject, projects_listProjects as listProjects, projects_refreshProject as refreshProject };
|
|
802
|
-
}
|
|
803
|
-
|
|
804
699
|
/**
|
|
805
700
|
* Orchestrator interface for `arbi listen`.
|
|
806
701
|
*
|
|
@@ -978,4 +873,4 @@ declare namespace index {
|
|
|
978
873
|
export { index_ClaudeOrchestrator as ClaudeOrchestrator, type index_ClaudeOrchestratorOptions as ClaudeOrchestratorOptions, type index_DmListener as DmListener, type index_DmListenerOptions as DmListenerOptions, index_OpenClawOrchestrator as OpenClawOrchestrator, type index_OpenClawOrchestratorOptions as OpenClawOrchestratorOptions, type index_Orchestrator as Orchestrator, type index_PromptContext as PromptContext, index_startDmListener as startDmListener };
|
|
979
874
|
}
|
|
980
875
|
|
|
981
|
-
export { AuthHeaders, ChatSession, ClaudeOrchestrator, type ClaudeOrchestratorOptions, CliConfig, CliCredentials, ConfigStore, DmCryptoContext, type DmListener, type DmListenerOptions, FileConfigStore, OpenClawOrchestrator, type OpenClawOrchestratorOptions, type Orchestrator, type PromptContext, agents, deviceFlow, documentsNode, index as listen,
|
|
876
|
+
export { AuthHeaders, ChatSession, ClaudeOrchestrator, type ClaudeOrchestratorOptions, CliConfig, CliCredentials, ConfigStore, DmCryptoContext, type DmListener, type DmListenerOptions, FileConfigStore, OpenClawOrchestrator, type OpenClawOrchestratorOptions, type Orchestrator, type PromptContext, agents, deviceFlow, documentsNode, index as listen, sessions, startDmListener };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as ConfigStore, l as CliConfig, m as CliCredentials, C as ChatSession,
|
|
2
|
-
export { a as AgentStepEvent, b as Arbi, c as ArbiApiError, d as ArbiError, f as ArbiOptions, g as ArtifactEvent, h as AuthContext, j as AuthenticatedClient, k as CitationSummary, n as CommandDescriptor, p as ConnectOptions, D as DOC_TERMINAL_STATUSES, t as DocNameMap, u as DocumentListFields, v as DocumentListOrder, w as DocumentWaiter, x as DocumentWaiterOptions, F as FormattedWsMessage, L as ListAllOptions, y as ListPaginatedOptions, E as MessageLevel, G as MessageMetadataPayload, H as MessageQueuedEvent, O as OutputTokensDetails, P as ParsedSlashCommand, Q as QueryOptions, R as ReconnectOptions,
|
|
1
|
+
import { o as ConfigStore, l as CliConfig, m as CliCredentials, C as ChatSession, a5 as SkippedFile, ad as UploadResult, i as AuthHeaders, a9 as UploadBatchResult, ac as UploadOptions, aa as UploadDirectOptions, ab as UploadDirectResult, a3 as SUPPORTED_EXTENSIONS, s as DmCryptoContext } from './browser-BS_k043E.js';
|
|
2
|
+
export { a as AgentStepEvent, b as Arbi, c as ArbiApiError, d as ArbiError, f as ArbiOptions, g as ArtifactEvent, h as AuthContext, j as AuthenticatedClient, k as CitationSummary, n as CommandDescriptor, p as ConnectOptions, D as DOC_TERMINAL_STATUSES, t as DocNameMap, u as DocumentListFields, v as DocumentListOrder, w as DocumentWaiter, x as DocumentWaiterOptions, F as FormattedWsMessage, L as ListAllOptions, y as ListPaginatedOptions, E as MessageLevel, G as MessageMetadataPayload, H as MessageQueuedEvent, O as OutputTokensDetails, P as ParsedSlashCommand, I as ProjectInvoicesResponse, J as ProjectUsageResponse, Q as QueryOptions, R as ReconnectOptions, K as ReconnectableWsConnection, N as ResolvedCitation, S as ResponseCompletedEvent, T as ResponseContentPartAddedEvent, U as ResponseCreatedEvent, V as ResponseFailedEvent, W as ResponseOutputItemAddedEvent, X as ResponseOutputItemDoneEvent, Y as ResponseOutputTextDeltaEvent, Z as ResponseOutputTextDoneEvent, _ as ResponseUsage, $ as SSEEvent, a0 as SSEStreamCallbacks, a1 as SSEStreamResult, a2 as SSEStreamStartData, a4 as SkillSummary, ae as UserDailyUsageResponse, af as UserInfo, ag as UserInputRequestEvent, ah as UserMessageEvent, ai as WebSocketAuthError, aj as WorkspaceChronologyOut, ak as WorkspaceContext, al as WsConnection, am as agentconfig, an as assistant, ao as authenticatedFetch, ap as buildRetrievalChunkTool, aq as buildRetrievalFullContextTool, ar as buildRetrievalTocTool, as as connectWebSocket, at as connectWithReconnect, au as consumeSSEStream, av as contacts, aw as conversations, ax as countCitations, ay as createAuthenticatedClient, az as createDocumentWaiter, aA as dm, aB as doctags, aC as documents, aD as files, aE as filterSkills, aF as formatAgentStepLabel, aG as formatFileSize, aH as formatStreamSummary, aI as formatUserName, aJ as formatWorkspaceChoices, aK as formatWsMessage, aL as generateEncryptedWorkspaceKey, aM as generateNewWorkspaceKey, aN as getErrorCode, aO as getErrorMessage, aP as getRawWorkspaceKey, aQ as health, aS as parseSSEEvents, aT as parseSlashCommand, aU as parseSlashTokenInProgress, aV as performPasswordLogin, aW as performSigningKeyLogin, aX as performSsoDeviceFlowLogin, aY as projects, aZ as requireData, a_ as requireOk, a$ as resolveAuth, b0 as resolveCitations, b1 as resolveWorkspace, b2 as responses, b3 as selectWorkspace, b4 as selectWorkspaceById, b5 as settings, b6 as streamSSE, b7 as stripCitationMarkdown, b8 as summarizeCitations, b9 as tags, bb as workspaces } from './browser-BS_k043E.js';
|
|
3
3
|
import { SessionStorageProvider, ArbiClient, components } from '@arbidocs/client';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -696,111 +696,6 @@ declare namespace sessions {
|
|
|
696
696
|
export { sessions_listSessions as listSessions };
|
|
697
697
|
}
|
|
698
698
|
|
|
699
|
-
/**
|
|
700
|
-
* Project operations — list, create, update, delete, checkout, refresh.
|
|
701
|
-
*/
|
|
702
|
-
|
|
703
|
-
declare function listProjects(arbi: ArbiClient): Promise<{
|
|
704
|
-
external_id: string;
|
|
705
|
-
name: string;
|
|
706
|
-
created_by: string;
|
|
707
|
-
packs: number;
|
|
708
|
-
subscription: string;
|
|
709
|
-
created_at: string;
|
|
710
|
-
quotas: {
|
|
711
|
-
storage_gb: {
|
|
712
|
-
used: number;
|
|
713
|
-
limit: number;
|
|
714
|
-
};
|
|
715
|
-
ai_credits: {
|
|
716
|
-
used: number;
|
|
717
|
-
limit: number;
|
|
718
|
-
};
|
|
719
|
-
collaborators: {
|
|
720
|
-
used: number;
|
|
721
|
-
limit: number;
|
|
722
|
-
};
|
|
723
|
-
budget_reset_at?: number | null | undefined;
|
|
724
|
-
};
|
|
725
|
-
daily_cap_per_user?: number | null | undefined;
|
|
726
|
-
price_id?: string | null | undefined;
|
|
727
|
-
plan?: string | null | undefined;
|
|
728
|
-
amount?: number | null | undefined;
|
|
729
|
-
currency?: string | null | undefined;
|
|
730
|
-
current_period_end?: number | null | undefined;
|
|
731
|
-
cancel_at_period_end?: boolean | null | undefined;
|
|
732
|
-
portal_url?: string | null | undefined;
|
|
733
|
-
}[]>;
|
|
734
|
-
declare function createProject(arbi: ArbiClient, name: string): Promise<{
|
|
735
|
-
external_id: string;
|
|
736
|
-
name: string;
|
|
737
|
-
created_by: string;
|
|
738
|
-
packs: number;
|
|
739
|
-
subscription: string;
|
|
740
|
-
created_at: string;
|
|
741
|
-
quotas: {
|
|
742
|
-
storage_gb: {
|
|
743
|
-
used: number;
|
|
744
|
-
limit: number;
|
|
745
|
-
};
|
|
746
|
-
ai_credits: {
|
|
747
|
-
used: number;
|
|
748
|
-
limit: number;
|
|
749
|
-
};
|
|
750
|
-
collaborators: {
|
|
751
|
-
used: number;
|
|
752
|
-
limit: number;
|
|
753
|
-
};
|
|
754
|
-
budget_reset_at?: number | null | undefined;
|
|
755
|
-
};
|
|
756
|
-
daily_cap_per_user?: number | null | undefined;
|
|
757
|
-
price_id?: string | null | undefined;
|
|
758
|
-
plan?: string | null | undefined;
|
|
759
|
-
amount?: number | null | undefined;
|
|
760
|
-
currency?: string | null | undefined;
|
|
761
|
-
current_period_end?: number | null | undefined;
|
|
762
|
-
cancel_at_period_end?: boolean | null | undefined;
|
|
763
|
-
portal_url?: string | null | undefined;
|
|
764
|
-
}>;
|
|
765
|
-
declare function refreshProject(arbi: ArbiClient, projectExtId: string): Promise<{
|
|
766
|
-
external_id: string;
|
|
767
|
-
name: string;
|
|
768
|
-
created_by: string;
|
|
769
|
-
packs: number;
|
|
770
|
-
subscription: string;
|
|
771
|
-
created_at: string;
|
|
772
|
-
quotas: {
|
|
773
|
-
storage_gb: {
|
|
774
|
-
used: number;
|
|
775
|
-
limit: number;
|
|
776
|
-
};
|
|
777
|
-
ai_credits: {
|
|
778
|
-
used: number;
|
|
779
|
-
limit: number;
|
|
780
|
-
};
|
|
781
|
-
collaborators: {
|
|
782
|
-
used: number;
|
|
783
|
-
limit: number;
|
|
784
|
-
};
|
|
785
|
-
budget_reset_at?: number | null | undefined;
|
|
786
|
-
};
|
|
787
|
-
daily_cap_per_user?: number | null | undefined;
|
|
788
|
-
price_id?: string | null | undefined;
|
|
789
|
-
plan?: string | null | undefined;
|
|
790
|
-
amount?: number | null | undefined;
|
|
791
|
-
currency?: string | null | undefined;
|
|
792
|
-
current_period_end?: number | null | undefined;
|
|
793
|
-
cancel_at_period_end?: boolean | null | undefined;
|
|
794
|
-
portal_url?: string | null | undefined;
|
|
795
|
-
}>;
|
|
796
|
-
|
|
797
|
-
declare const projects_createProject: typeof createProject;
|
|
798
|
-
declare const projects_listProjects: typeof listProjects;
|
|
799
|
-
declare const projects_refreshProject: typeof refreshProject;
|
|
800
|
-
declare namespace projects {
|
|
801
|
-
export { projects_createProject as createProject, projects_listProjects as listProjects, projects_refreshProject as refreshProject };
|
|
802
|
-
}
|
|
803
|
-
|
|
804
699
|
/**
|
|
805
700
|
* Orchestrator interface for `arbi listen`.
|
|
806
701
|
*
|
|
@@ -978,4 +873,4 @@ declare namespace index {
|
|
|
978
873
|
export { index_ClaudeOrchestrator as ClaudeOrchestrator, type index_ClaudeOrchestratorOptions as ClaudeOrchestratorOptions, type index_DmListener as DmListener, type index_DmListenerOptions as DmListenerOptions, index_OpenClawOrchestrator as OpenClawOrchestrator, type index_OpenClawOrchestratorOptions as OpenClawOrchestratorOptions, type index_Orchestrator as Orchestrator, type index_PromptContext as PromptContext, index_startDmListener as startDmListener };
|
|
979
874
|
}
|
|
980
875
|
|
|
981
|
-
export { AuthHeaders, ChatSession, ClaudeOrchestrator, type ClaudeOrchestratorOptions, CliConfig, CliCredentials, ConfigStore, DmCryptoContext, type DmListener, type DmListenerOptions, FileConfigStore, OpenClawOrchestrator, type OpenClawOrchestratorOptions, type Orchestrator, type PromptContext, agents, deviceFlow, documentsNode, index as listen,
|
|
876
|
+
export { AuthHeaders, ChatSession, ClaudeOrchestrator, type ClaudeOrchestratorOptions, CliConfig, CliCredentials, ConfigStore, DmCryptoContext, type DmListener, type DmListenerOptions, FileConfigStore, OpenClawOrchestrator, type OpenClawOrchestratorOptions, type Orchestrator, type PromptContext, agents, deviceFlow, documentsNode, index as listen, sessions, startDmListener };
|
package/dist/index.js
CHANGED
|
@@ -5178,6 +5178,7 @@ __export(workspaces_exports, {
|
|
|
5178
5178
|
copyDocuments: () => copyDocuments,
|
|
5179
5179
|
createWorkspace: () => createWorkspace,
|
|
5180
5180
|
deleteWorkspaces: () => deleteWorkspaces,
|
|
5181
|
+
getWorkspaceChronology: () => getWorkspaceChronology,
|
|
5181
5182
|
listWorkspaceUsers: () => listWorkspaceUsers,
|
|
5182
5183
|
listWorkspaces: () => listWorkspaces,
|
|
5183
5184
|
removeWorkspaceUsers: () => removeWorkspaceUsers,
|
|
@@ -5242,6 +5243,14 @@ async function setUserRole(arbi, userIds, role) {
|
|
|
5242
5243
|
"Failed to update roles"
|
|
5243
5244
|
);
|
|
5244
5245
|
}
|
|
5246
|
+
async function getWorkspaceChronology(arbi, workspaceId) {
|
|
5247
|
+
return requireData(
|
|
5248
|
+
await arbi.fetch.GET("/v1/workspace/{workspace_ext_id}/chronology", {
|
|
5249
|
+
params: { path: { workspace_ext_id: workspaceId } }
|
|
5250
|
+
}),
|
|
5251
|
+
"Failed to fetch workspace chronology"
|
|
5252
|
+
);
|
|
5253
|
+
}
|
|
5245
5254
|
async function copyDocuments(arbi, targetWorkspaceId, docIds, targetWorkspaceKey) {
|
|
5246
5255
|
return requireData(
|
|
5247
5256
|
await arbi.fetch.POST("/v1/workspace/copy", {
|
|
@@ -5606,6 +5615,7 @@ __export(dm_exports, {
|
|
|
5606
5615
|
decryptDmContent: () => decryptDmContent,
|
|
5607
5616
|
deleteDMs: () => deleteDMs,
|
|
5608
5617
|
encryptDmContent: () => encryptDmContent,
|
|
5618
|
+
listActivity: () => listActivity,
|
|
5609
5619
|
listDMs: () => listDMs,
|
|
5610
5620
|
listDecryptedDMs: () => listDecryptedDMs,
|
|
5611
5621
|
markRead: () => markRead,
|
|
@@ -5661,6 +5671,20 @@ async function listDecryptedDMs(arbi, crypto) {
|
|
|
5661
5671
|
const raw = await listDMs(arbi);
|
|
5662
5672
|
return decryptDmBatch(arbi, raw, crypto);
|
|
5663
5673
|
}
|
|
5674
|
+
async function listActivity(arbi, options) {
|
|
5675
|
+
return requireData(
|
|
5676
|
+
await arbi.fetch.GET("/v1/notifications/", {
|
|
5677
|
+
params: {
|
|
5678
|
+
query: {
|
|
5679
|
+
type: "activity",
|
|
5680
|
+
...options?.limit != null ? { limit: options.limit } : {},
|
|
5681
|
+
...options?.offset != null ? { offset: options.offset } : {}
|
|
5682
|
+
}
|
|
5683
|
+
}
|
|
5684
|
+
}),
|
|
5685
|
+
"Failed to fetch activity"
|
|
5686
|
+
);
|
|
5687
|
+
}
|
|
5664
5688
|
async function sendEncryptedDM(arbi, messages, crypto) {
|
|
5665
5689
|
const encrypted = await Promise.all(
|
|
5666
5690
|
messages.map(async (msg) => ({
|
|
@@ -5911,6 +5935,9 @@ async function listSessions(arbi) {
|
|
|
5911
5935
|
var projects_exports = {};
|
|
5912
5936
|
__export(projects_exports, {
|
|
5913
5937
|
createProject: () => createProject,
|
|
5938
|
+
getProjectInvoices: () => getProjectInvoices,
|
|
5939
|
+
getProjectUsage: () => getProjectUsage,
|
|
5940
|
+
getUserUsageToday: () => getUserUsageToday,
|
|
5914
5941
|
listProjects: () => listProjects,
|
|
5915
5942
|
refreshProject: () => refreshProject
|
|
5916
5943
|
});
|
|
@@ -5933,6 +5960,28 @@ async function refreshProject(arbi, projectExtId) {
|
|
|
5933
5960
|
"Failed to refresh project"
|
|
5934
5961
|
);
|
|
5935
5962
|
}
|
|
5963
|
+
async function getProjectUsage(arbi, projectExtId, monthsBack) {
|
|
5964
|
+
return requireData(
|
|
5965
|
+
await arbi.fetch.GET("/v1/user/projects/{project_ext_id}/usage", {
|
|
5966
|
+
params: {
|
|
5967
|
+
path: { project_ext_id: projectExtId },
|
|
5968
|
+
query: monthsBack === void 0 ? void 0 : { months_back: monthsBack }
|
|
5969
|
+
}
|
|
5970
|
+
}),
|
|
5971
|
+
"Failed to fetch project usage"
|
|
5972
|
+
);
|
|
5973
|
+
}
|
|
5974
|
+
async function getProjectInvoices(arbi, projectExtId) {
|
|
5975
|
+
return requireData(
|
|
5976
|
+
await arbi.fetch.GET("/v1/user/projects/{project_ext_id}/invoices", {
|
|
5977
|
+
params: { path: { project_ext_id: projectExtId } }
|
|
5978
|
+
}),
|
|
5979
|
+
"Failed to fetch project invoices"
|
|
5980
|
+
);
|
|
5981
|
+
}
|
|
5982
|
+
async function getUserUsageToday(arbi) {
|
|
5983
|
+
return requireData(await arbi.fetch.GET("/v1/user/me/usage/today"), "Failed to fetch today usage");
|
|
5984
|
+
}
|
|
5936
5985
|
|
|
5937
5986
|
// src/operations/tasks.ts
|
|
5938
5987
|
async function listTasks(arbi) {
|
|
@@ -6141,7 +6190,16 @@ var Arbi = class {
|
|
|
6141
6190
|
projects = {
|
|
6142
6191
|
list: () => listProjects(this.requireClient()),
|
|
6143
6192
|
create: (name) => createProject(this.requireClient(), name),
|
|
6144
|
-
refresh: (projectExtId) => refreshProject(this.requireClient(), projectExtId)
|
|
6193
|
+
refresh: (projectExtId) => refreshProject(this.requireClient(), projectExtId),
|
|
6194
|
+
/** AI usage + spend breakdown for a project's billing period. */
|
|
6195
|
+
usage: (projectExtId, monthsBack) => getProjectUsage(this.requireClient(), projectExtId, monthsBack),
|
|
6196
|
+
/** Stripe invoices for a project's subscription. */
|
|
6197
|
+
invoices: (projectExtId) => getProjectInvoices(this.requireClient(), projectExtId)
|
|
6198
|
+
};
|
|
6199
|
+
// ── User (account-scoped usage) ───────────────────────────────────────
|
|
6200
|
+
user = {
|
|
6201
|
+
/** Today's deployment-wide credit spend for the current user. */
|
|
6202
|
+
usageToday: () => getUserUsageToday(this.requireClient())
|
|
6145
6203
|
};
|
|
6146
6204
|
// ── Workspaces ────────────────────────────────────────────────────────
|
|
6147
6205
|
workspaces = {
|
|
@@ -6189,6 +6247,14 @@ var Arbi = class {
|
|
|
6189
6247
|
targetWorkspaceId,
|
|
6190
6248
|
docIds,
|
|
6191
6249
|
targetWorkspaceKey
|
|
6250
|
+
),
|
|
6251
|
+
/**
|
|
6252
|
+
* The last-generated document-derived chronology (key case events / dates).
|
|
6253
|
+
* Defaults to the currently open workspace when no id is passed.
|
|
6254
|
+
*/
|
|
6255
|
+
chronology: (workspaceId) => getWorkspaceChronology(
|
|
6256
|
+
this.requireClient(),
|
|
6257
|
+
workspaceId ?? this.requireWorkspace()
|
|
6192
6258
|
)
|
|
6193
6259
|
};
|
|
6194
6260
|
// ── Documents ─────────────────────────────────────────────────────────
|
|
@@ -6319,7 +6385,9 @@ var Arbi = class {
|
|
|
6319
6385
|
list: () => listDMs(this.requireClient()),
|
|
6320
6386
|
send: (messages) => sendDM(this.requireClient(), messages),
|
|
6321
6387
|
markRead: (messageIds) => markRead(this.requireClient(), messageIds),
|
|
6322
|
-
delete: (messageIds) => deleteDMs(this.requireClient(), messageIds)
|
|
6388
|
+
delete: (messageIds) => deleteDMs(this.requireClient(), messageIds),
|
|
6389
|
+
/** List the current user's durable activity feed (never unread; excluded from DMs). */
|
|
6390
|
+
listActivity: (options) => listActivity(this.requireClient(), options)
|
|
6323
6391
|
};
|
|
6324
6392
|
// ── Settings ──────────────────────────────────────────────────────────
|
|
6325
6393
|
settings = {
|