@clinebot/core 0.0.16 → 0.0.20
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/account/cline-account-service.d.ts +1 -0
- package/dist/account/index.d.ts +1 -1
- package/dist/account/types.d.ts +11 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.node.d.ts +1 -1
- package/dist/index.node.js +102 -102
- package/package.json +4 -4
- package/src/account/cline-account-service.ts +13 -0
- package/src/account/index.ts +1 -0
- package/src/account/types.ts +12 -0
- package/src/index.node.ts +1 -0
- package/src/index.ts +1 -0
|
@@ -23,6 +23,7 @@ export declare class ClineAccountService {
|
|
|
23
23
|
fetchUsageTransactions(userId?: string): Promise<ClineAccountUsageTransaction[]>;
|
|
24
24
|
fetchPaymentTransactions(userId?: string): Promise<ClineAccountPaymentTransaction[]>;
|
|
25
25
|
fetchUserOrganizations(): Promise<ClineAccountOrganization[]>;
|
|
26
|
+
fetchOrganization(organizationId: string): Promise<ClineAccountOrganizationBalance>;
|
|
26
27
|
fetchOrganizationBalance(organizationId: string): Promise<ClineAccountOrganizationBalance>;
|
|
27
28
|
fetchOrganizationUsageTransactions(input: {
|
|
28
29
|
organizationId: string;
|
package/dist/account/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { ClineAccountService, type ClineAccountServiceOptions, } from "./cline-account-service";
|
|
2
2
|
export { type ClineAccountOperations, executeRpcClineAccountAction, isRpcClineAccountActionRequest, RpcClineAccountService, type RpcProviderActionExecutor, } from "./rpc";
|
|
3
|
-
export type { ClineAccountBalance, ClineAccountOrganization, ClineAccountOrganizationBalance, ClineAccountOrganizationUsageTransaction, ClineAccountPaymentTransaction, ClineAccountUsageTransaction, ClineAccountUser, UserRemoteConfigResponse, } from "./types";
|
|
3
|
+
export type { ClineAccountBalance, ClineAccountOrganization, ClineAccountOrganizationBalance, ClineAccountOrganizationUsageTransaction, ClineAccountPaymentTransaction, ClineAccountUsageTransaction, ClineAccountUser, ClineOrganization, UserRemoteConfigResponse, } from "./types";
|
package/dist/account/types.d.ts
CHANGED
|
@@ -50,6 +50,17 @@ export interface ClineAccountPaymentTransaction {
|
|
|
50
50
|
amountCents: number;
|
|
51
51
|
credits: number;
|
|
52
52
|
}
|
|
53
|
+
export interface ClineOrganization {
|
|
54
|
+
createdAt: string;
|
|
55
|
+
defaultRemoteConfig?: string;
|
|
56
|
+
deletedAt?: string;
|
|
57
|
+
externalOrganizationId?: string;
|
|
58
|
+
id: string;
|
|
59
|
+
memberCount?: number;
|
|
60
|
+
name: string;
|
|
61
|
+
remoteConfigEnabled: boolean;
|
|
62
|
+
updatedAt: string;
|
|
63
|
+
}
|
|
53
64
|
export interface ClineAccountOrganizationBalance {
|
|
54
65
|
balance: number;
|
|
55
66
|
organizationId: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export { LlmsModels, LlmsProviders } from "@clinebot/llms";
|
|
|
8
8
|
export type { AgentMode, BasicLogger, ConnectorHookEvent, HookSessionContext, ITelemetryService, RpcAddProviderActionRequest, RpcChatMessage, RpcChatRunTurnRequest, RpcChatRuntimeConfigBase, RpcChatRuntimeLoggerConfig, RpcChatStartSessionArtifacts, RpcChatStartSessionRequest, RpcChatTurnResult, RpcClineAccountActionRequest, RpcOAuthProviderId, RpcProviderActionRequest, RpcProviderCapability, RpcProviderCatalogResponse, RpcProviderListItem, RpcProviderModel, RpcProviderOAuthLoginResponse, RpcSaveProviderSettingsActionRequest, SessionLineage, TeamProgressProjectionEvent, TelemetryArray, TelemetryMetadata, TelemetryObject, TelemetryPrimitive, TelemetryProperties, TelemetryValue, ToolPolicy, } from "@clinebot/shared";
|
|
9
9
|
export { normalizeUserInput, RPC_TEAM_LIFECYCLE_EVENT_TYPE, RPC_TEAM_PROGRESS_EVENT_TYPE, resolveHookLogPath, } from "@clinebot/shared";
|
|
10
10
|
export { ensureHookLogDir, ensureParentDir, resolveClineDataDir, resolveClineDir, resolveSessionDataDir, setClineDir, setClineDirIfUnset, setHomeDir, setHomeDirIfUnset, } from "@clinebot/shared/storage";
|
|
11
|
-
export { type ClineAccountBalance, type ClineAccountOperations, type ClineAccountOrganization, type ClineAccountOrganizationBalance, type ClineAccountOrganizationUsageTransaction, type ClineAccountPaymentTransaction, ClineAccountService, type ClineAccountServiceOptions, type ClineAccountUsageTransaction, type ClineAccountUser, executeRpcClineAccountAction, isRpcClineAccountActionRequest, RpcClineAccountService, type RpcProviderActionExecutor, } from "./account";
|
|
11
|
+
export { type ClineAccountBalance, type ClineAccountOperations, type ClineAccountOrganization, type ClineAccountOrganizationBalance, type ClineAccountOrganizationUsageTransaction, type ClineAccountPaymentTransaction, ClineAccountService, type ClineAccountServiceOptions, type ClineAccountUsageTransaction, type ClineAccountUser, type ClineOrganization, executeRpcClineAccountAction, isRpcClineAccountActionRequest, RpcClineAccountService, type RpcProviderActionExecutor, } from "./account";
|
|
12
12
|
export type { ChatMessage, ChatSessionConfig, ChatSessionStatus, ChatSummary, ChatViewState, } from "./chat/chat-schema";
|
|
13
13
|
export { ChatMessageRoleSchema, ChatMessageSchema, ChatSessionConfigSchema, ChatSessionStatusSchema, ChatSummarySchema, ChatViewStateSchema, } from "./chat/chat-schema";
|
|
14
14
|
export { hasMcpSettingsFile, InMemoryMcpManager, type LoadMcpSettingsOptions, loadMcpSettingsFile, type McpConnectionStatus, type McpManager, type McpManagerOptions, type McpServerClient, type McpServerClientFactory, type McpServerRegistration, type McpServerSnapshot, type McpServerTransportConfig, type McpSettingsFile, type McpSseTransportConfig, type McpStdioTransportConfig, type McpStreamableHttpTransportConfig, type RegisterMcpServersFromSettingsOptions, registerMcpServersFromSettingsFile, resolveDefaultMcpSettingsPath, resolveMcpServerRegistrations, } from "./mcp";
|
package/dist/index.node.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export { createClineOAuthProvider, getValidClineCredentials, loginClineOAuth, re
|
|
|
5
5
|
export { getValidOpenAICodexCredentials, isOpenAICodexTokenExpired, loginOpenAICodex, normalizeOpenAICodexCredentials, openaiCodexOAuthProvider, refreshOpenAICodexToken, } from "./auth/codex";
|
|
6
6
|
export { createOcaOAuthProvider, createOcaRequestHeaders, DEFAULT_EXTERNAL_IDCS_CLIENT_ID, DEFAULT_EXTERNAL_IDCS_SCOPES, DEFAULT_EXTERNAL_IDCS_URL, DEFAULT_EXTERNAL_OCA_BASE_URL, DEFAULT_INTERNAL_IDCS_CLIENT_ID, DEFAULT_INTERNAL_IDCS_SCOPES, DEFAULT_INTERNAL_IDCS_URL, DEFAULT_INTERNAL_OCA_BASE_URL, generateOcaOpcRequestId, getValidOcaCredentials, loginOcaOAuth, OCI_HEADER_OPC_REQUEST_ID, refreshOcaToken, } from "./auth/oca";
|
|
7
7
|
export declare function loadOpenTelemetryAdapter(): Promise<typeof import("./telemetry/opentelemetry.js")>;
|
|
8
|
-
export { type ClineAccountBalance, type ClineAccountOperations, type ClineAccountOrganization, type ClineAccountOrganizationBalance, type ClineAccountOrganizationUsageTransaction, type ClineAccountPaymentTransaction, ClineAccountService, type ClineAccountServiceOptions, type ClineAccountUsageTransaction, type ClineAccountUser, executeRpcClineAccountAction, isRpcClineAccountActionRequest, RpcClineAccountService, type RpcProviderActionExecutor, type UserRemoteConfigResponse, } from "./account";
|
|
8
|
+
export { type ClineAccountBalance, type ClineAccountOperations, type ClineAccountOrganization, type ClineAccountOrganizationBalance, type ClineAccountOrganizationUsageTransaction, type ClineAccountPaymentTransaction, ClineAccountService, type ClineAccountServiceOptions, type ClineAccountUsageTransaction, type ClineAccountUser, type ClineOrganization, executeRpcClineAccountAction, isRpcClineAccountActionRequest, RpcClineAccountService, type RpcProviderActionExecutor, type UserRemoteConfigResponse, } from "./account";
|
|
9
9
|
export { startLocalOAuthServer } from "./auth/server";
|
|
10
10
|
export type { OAuthCredentials, OAuthLoginCallbacks, OAuthPrompt, OAuthProviderInterface, OcaClientMetadata, OcaMode, OcaOAuthConfig, OcaOAuthEnvironmentConfig, OcaOAuthProviderOptions, OcaTokenResolution, } from "./auth/types";
|
|
11
11
|
export * from "./index";
|