@diskd-ai/sdk 5.1.2
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/LICENSE +190 -0
- package/README.md +1036 -0
- package/dist/agentHub/StreamProtocolFetcher.d.ts +55 -0
- package/dist/agentHub/StreamProtocolFetcher.d.ts.map +1 -0
- package/dist/agentHub/StreamProtocolFetcher.js +176 -0
- package/dist/agentHub/StreamProtocolFetcher.js.map +1 -0
- package/dist/agentHub/StreamProtocolHandler.d.ts +18 -0
- package/dist/agentHub/StreamProtocolHandler.d.ts.map +1 -0
- package/dist/agentHub/StreamProtocolHandler.js +63 -0
- package/dist/agentHub/StreamProtocolHandler.js.map +1 -0
- package/dist/agentHub/agentHub.d.ts +30 -0
- package/dist/agentHub/agentHub.d.ts.map +1 -0
- package/dist/agentHub/agentHub.js +200 -0
- package/dist/agentHub/agentHub.js.map +1 -0
- package/dist/agentHub/agentHubTypes.d.ts +110 -0
- package/dist/agentHub/agentHubTypes.d.ts.map +1 -0
- package/dist/agentHub/agentHubTypes.js +8 -0
- package/dist/agentHub/agentHubTypes.js.map +1 -0
- package/dist/agentHub/streamProtocolMap.d.ts +328 -0
- package/dist/agentHub/streamProtocolMap.d.ts.map +1 -0
- package/dist/agentHub/streamProtocolMap.js +8 -0
- package/dist/agentHub/streamProtocolMap.js.map +1 -0
- package/dist/auth/createApiKeyAuth.d.ts +11 -0
- package/dist/auth/createApiKeyAuth.d.ts.map +1 -0
- package/dist/auth/createApiKeyAuth.js +31 -0
- package/dist/auth/createApiKeyAuth.js.map +1 -0
- package/dist/auth/createAuth.d.ts +3 -0
- package/dist/auth/createAuth.d.ts.map +1 -0
- package/dist/auth/createAuth.js +128 -0
- package/dist/auth/createAuth.js.map +1 -0
- package/dist/auth/createAuthBrowser.d.ts +3 -0
- package/dist/auth/createAuthBrowser.d.ts.map +1 -0
- package/dist/auth/createAuthBrowser.js +104 -0
- package/dist/auth/createAuthBrowser.js.map +1 -0
- package/dist/auth/jwtClaims.d.ts +3 -0
- package/dist/auth/jwtClaims.d.ts.map +1 -0
- package/dist/auth/jwtClaims.js +23 -0
- package/dist/auth/jwtClaims.js.map +1 -0
- package/dist/auth/keyfile.d.ts +10 -0
- package/dist/auth/keyfile.d.ts.map +1 -0
- package/dist/auth/keyfile.js +28 -0
- package/dist/auth/keyfile.js.map +1 -0
- package/dist/auth/oidcDiscovery.d.ts +9 -0
- package/dist/auth/oidcDiscovery.d.ts.map +1 -0
- package/dist/auth/oidcDiscovery.js +27 -0
- package/dist/auth/oidcDiscovery.js.map +1 -0
- package/dist/auth/pkce.d.ts +4 -0
- package/dist/auth/pkce.d.ts.map +1 -0
- package/dist/auth/pkce.js +43 -0
- package/dist/auth/pkce.js.map +1 -0
- package/dist/auth/sessionStorage.d.ts +8 -0
- package/dist/auth/sessionStorage.d.ts.map +1 -0
- package/dist/auth/sessionStorage.js +8 -0
- package/dist/auth/sessionStorage.js.map +1 -0
- package/dist/auth/tokenRequests.d.ts +15 -0
- package/dist/auth/tokenRequests.d.ts.map +1 -0
- package/dist/auth/tokenRequests.js +89 -0
- package/dist/auth/tokenRequests.js.map +1 -0
- package/dist/auth/types.d.ts +35 -0
- package/dist/auth/types.d.ts.map +1 -0
- package/dist/auth/types.js +2 -0
- package/dist/auth/types.js.map +1 -0
- package/dist/auth/urlRuntime.d.ts +7 -0
- package/dist/auth/urlRuntime.d.ts.map +1 -0
- package/dist/auth/urlRuntime.js +17 -0
- package/dist/auth/urlRuntime.js.map +1 -0
- package/dist/browser/index.d.ts +8 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +3 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/calendar/calendar.d.ts +21 -0
- package/dist/calendar/calendar.d.ts.map +1 -0
- package/dist/calendar/calendar.js +105 -0
- package/dist/calendar/calendar.js.map +1 -0
- package/dist/calendar/calendarTypes.d.ts +191 -0
- package/dist/calendar/calendarTypes.d.ts.map +1 -0
- package/dist/calendar/calendarTypes.js +4 -0
- package/dist/calendar/calendarTypes.js.map +1 -0
- package/dist/contacts/contacts.d.ts +10 -0
- package/dist/contacts/contacts.d.ts.map +1 -0
- package/dist/contacts/contacts.js +86 -0
- package/dist/contacts/contacts.js.map +1 -0
- package/dist/contacts/contactsTypes.d.ts +81 -0
- package/dist/contacts/contactsTypes.d.ts.map +1 -0
- package/dist/contacts/contactsTypes.js +4 -0
- package/dist/contacts/contactsTypes.js.map +1 -0
- package/dist/drive/DriveRepository.d.ts +88 -0
- package/dist/drive/DriveRepository.d.ts.map +1 -0
- package/dist/drive/DriveRepository.js +156 -0
- package/dist/drive/DriveRepository.js.map +1 -0
- package/dist/drive/crontab.d.ts +7 -0
- package/dist/drive/crontab.d.ts.map +1 -0
- package/dist/drive/crontab.js +374 -0
- package/dist/drive/crontab.js.map +1 -0
- package/dist/drive/crontabTypes.d.ts +136 -0
- package/dist/drive/crontabTypes.d.ts.map +1 -0
- package/dist/drive/crontabTypes.js +2 -0
- package/dist/drive/crontabTypes.js.map +1 -0
- package/dist/drive/drive.d.ts +8 -0
- package/dist/drive/drive.d.ts.map +1 -0
- package/dist/drive/drive.js +711 -0
- package/dist/drive/drive.js.map +1 -0
- package/dist/drive/driveDb.d.ts +6 -0
- package/dist/drive/driveDb.d.ts.map +1 -0
- package/dist/drive/driveDb.js +220 -0
- package/dist/drive/driveDb.js.map +1 -0
- package/dist/drive/driveDbTypes.d.ts +138 -0
- package/dist/drive/driveDbTypes.d.ts.map +1 -0
- package/dist/drive/driveDbTypes.js +5 -0
- package/dist/drive/driveDbTypes.js.map +1 -0
- package/dist/drive/driveTypes.d.ts +322 -0
- package/dist/drive/driveTypes.d.ts.map +1 -0
- package/dist/drive/driveTypes.js +5 -0
- package/dist/drive/driveTypes.js.map +1 -0
- package/dist/drive/rpc.d.ts +14 -0
- package/dist/drive/rpc.d.ts.map +1 -0
- package/dist/drive/rpc.js +48 -0
- package/dist/drive/rpc.js.map +1 -0
- package/dist/drive/session.d.ts +7 -0
- package/dist/drive/session.d.ts.map +1 -0
- package/dist/drive/session.js +450 -0
- package/dist/drive/session.js.map +1 -0
- package/dist/drive/sessionBuilder.d.ts +33 -0
- package/dist/drive/sessionBuilder.d.ts.map +1 -0
- package/dist/drive/sessionBuilder.js +77 -0
- package/dist/drive/sessionBuilder.js.map +1 -0
- package/dist/drive/sessionObject.d.ts +57 -0
- package/dist/drive/sessionObject.d.ts.map +1 -0
- package/dist/drive/sessionObject.js +191 -0
- package/dist/drive/sessionObject.js.map +1 -0
- package/dist/drive/sessionTypes.d.ts +182 -0
- package/dist/drive/sessionTypes.d.ts.map +1 -0
- package/dist/drive/sessionTypes.js +2 -0
- package/dist/drive/sessionTypes.js.map +1 -0
- package/dist/drive/typeorm/DriveDriver.d.ts +27 -0
- package/dist/drive/typeorm/DriveDriver.d.ts.map +1 -0
- package/dist/drive/typeorm/DriveDriver.js +86 -0
- package/dist/drive/typeorm/DriveDriver.js.map +1 -0
- package/dist/drive/typeorm/DriveQueryRunner.d.ts +15 -0
- package/dist/drive/typeorm/DriveQueryRunner.d.ts.map +1 -0
- package/dist/drive/typeorm/DriveQueryRunner.js +76 -0
- package/dist/drive/typeorm/DriveQueryRunner.js.map +1 -0
- package/dist/drive/typeorm/createDriveDataSource.d.ts +3 -0
- package/dist/drive/typeorm/createDriveDataSource.d.ts.map +1 -0
- package/dist/drive/typeorm/createDriveDataSource.js +36 -0
- package/dist/drive/typeorm/createDriveDataSource.js.map +1 -0
- package/dist/drive/typeorm/datasourceTypes.d.ts +56 -0
- package/dist/drive/typeorm/datasourceTypes.d.ts.map +1 -0
- package/dist/drive/typeorm/datasourceTypes.js +5 -0
- package/dist/drive/typeorm/datasourceTypes.js.map +1 -0
- package/dist/drive/types.d.ts +48 -0
- package/dist/drive/types.d.ts.map +1 -0
- package/dist/drive/types.js +2 -0
- package/dist/drive/types.js.map +1 -0
- package/dist/env/apiKey.d.ts +2 -0
- package/dist/env/apiKey.d.ts.map +1 -0
- package/dist/env/apiKey.js +11 -0
- package/dist/env/apiKey.js.map +1 -0
- package/dist/env/baseUrl.d.ts +3 -0
- package/dist/env/baseUrl.d.ts.map +1 -0
- package/dist/env/baseUrl.js +31 -0
- package/dist/env/baseUrl.js.map +1 -0
- package/dist/inbox/inboxTypes.d.ts +34 -0
- package/dist/inbox/inboxTypes.d.ts.map +1 -0
- package/dist/inbox/inboxTypes.js +5 -0
- package/dist/inbox/inboxTypes.js.map +1 -0
- package/dist/index.d.ts +56 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +43 -0
- package/dist/index.js.map +1 -0
- package/dist/llmRouter/llmRouter.d.ts +23 -0
- package/dist/llmRouter/llmRouter.d.ts.map +1 -0
- package/dist/llmRouter/llmRouter.js +566 -0
- package/dist/llmRouter/llmRouter.js.map +1 -0
- package/dist/llmRouter/llmRouterTypes.d.ts +350 -0
- package/dist/llmRouter/llmRouterTypes.d.ts.map +1 -0
- package/dist/llmRouter/llmRouterTypes.js +5 -0
- package/dist/llmRouter/llmRouterTypes.js.map +1 -0
- package/dist/mcpHub/mcpHub.d.ts +23 -0
- package/dist/mcpHub/mcpHub.d.ts.map +1 -0
- package/dist/mcpHub/mcpHub.js +223 -0
- package/dist/mcpHub/mcpHub.js.map +1 -0
- package/dist/mcpHub/mcpHubTypes.d.ts +228 -0
- package/dist/mcpHub/mcpHubTypes.d.ts.map +1 -0
- package/dist/mcpHub/mcpHubTypes.js +5 -0
- package/dist/mcpHub/mcpHubTypes.js.map +1 -0
- package/dist/mcpTools/mcpTools.d.ts +31 -0
- package/dist/mcpTools/mcpTools.d.ts.map +1 -0
- package/dist/mcpTools/mcpTools.js +144 -0
- package/dist/mcpTools/mcpTools.js.map +1 -0
- package/dist/mcpTools/mcpToolsTypes.d.ts +45 -0
- package/dist/mcpTools/mcpToolsTypes.d.ts.map +1 -0
- package/dist/mcpTools/mcpToolsTypes.js +5 -0
- package/dist/mcpTools/mcpToolsTypes.js.map +1 -0
- package/dist/messagesStore/messagesStore.d.ts +22 -0
- package/dist/messagesStore/messagesStore.d.ts.map +1 -0
- package/dist/messagesStore/messagesStore.js +402 -0
- package/dist/messagesStore/messagesStore.js.map +1 -0
- package/dist/messagesStore/messagesStoreTypes.d.ts +327 -0
- package/dist/messagesStore/messagesStoreTypes.d.ts.map +1 -0
- package/dist/messagesStore/messagesStoreTypes.js +11 -0
- package/dist/messagesStore/messagesStoreTypes.js.map +1 -0
- package/dist/node/fastDns.d.ts +2 -0
- package/dist/node/fastDns.d.ts.map +1 -0
- package/dist/node/fastDns.js +119 -0
- package/dist/node/fastDns.js.map +1 -0
- package/dist/operatives/operatives.d.ts +22 -0
- package/dist/operatives/operatives.d.ts.map +1 -0
- package/dist/operatives/operatives.js +199 -0
- package/dist/operatives/operatives.js.map +1 -0
- package/dist/operatives/operativesTypes.d.ts +141 -0
- package/dist/operatives/operativesTypes.d.ts.map +1 -0
- package/dist/operatives/operativesTypes.js +6 -0
- package/dist/operatives/operativesTypes.js.map +1 -0
- package/dist/platformEvents/platformEvents.d.ts +14 -0
- package/dist/platformEvents/platformEvents.d.ts.map +1 -0
- package/dist/platformEvents/platformEvents.js +70 -0
- package/dist/platformEvents/platformEvents.js.map +1 -0
- package/dist/platformEvents/platformEventsTypes.d.ts +31 -0
- package/dist/platformEvents/platformEventsTypes.d.ts.map +1 -0
- package/dist/platformEvents/platformEventsTypes.js +8 -0
- package/dist/platformEvents/platformEventsTypes.js.map +1 -0
- package/dist/projects/projects.d.ts +19 -0
- package/dist/projects/projects.d.ts.map +1 -0
- package/dist/projects/projects.js +52 -0
- package/dist/projects/projects.js.map +1 -0
- package/dist/projects/projectsTypes.d.ts +47 -0
- package/dist/projects/projectsTypes.d.ts.map +1 -0
- package/dist/projects/projectsTypes.js +4 -0
- package/dist/projects/projectsTypes.js.map +1 -0
- package/dist/routineRuns/routineRuns.d.ts +19 -0
- package/dist/routineRuns/routineRuns.d.ts.map +1 -0
- package/dist/routineRuns/routineRuns.js +47 -0
- package/dist/routineRuns/routineRuns.js.map +1 -0
- package/dist/routineRuns/routineRunsTypes.d.ts +39 -0
- package/dist/routineRuns/routineRunsTypes.d.ts.map +1 -0
- package/dist/routineRuns/routineRunsTypes.js +4 -0
- package/dist/routineRuns/routineRunsTypes.js.map +1 -0
- package/dist/routines/routines.d.ts +19 -0
- package/dist/routines/routines.d.ts.map +1 -0
- package/dist/routines/routines.js +77 -0
- package/dist/routines/routines.js.map +1 -0
- package/dist/routines/routinesTypes.d.ts +106 -0
- package/dist/routines/routinesTypes.d.ts.map +1 -0
- package/dist/routines/routinesTypes.js +4 -0
- package/dist/routines/routinesTypes.js.map +1 -0
- package/dist/sdk/diskd.d.ts +3 -0
- package/dist/sdk/diskd.d.ts.map +1 -0
- package/dist/sdk/diskd.js +126 -0
- package/dist/sdk/diskd.js.map +1 -0
- package/dist/sdk/http.d.ts +13 -0
- package/dist/sdk/http.d.ts.map +1 -0
- package/dist/sdk/http.js +80 -0
- package/dist/sdk/http.js.map +1 -0
- package/dist/sdk/types.d.ts +115 -0
- package/dist/sdk/types.d.ts.map +1 -0
- package/dist/sdk/types.js +2 -0
- package/dist/sdk/types.js.map +1 -0
- package/dist/testing/auth.d.ts +8 -0
- package/dist/testing/auth.d.ts.map +1 -0
- package/dist/testing/auth.js +14 -0
- package/dist/testing/auth.js.map +1 -0
- package/dist/testing/fetchMock.d.ts +17 -0
- package/dist/testing/fetchMock.d.ts.map +1 -0
- package/dist/testing/fetchMock.js +46 -0
- package/dist/testing/fetchMock.js.map +1 -0
- package/dist/testing/index.d.ts +11 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +11 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/testing/integration.d.ts +33 -0
- package/dist/testing/integration.d.ts.map +1 -0
- package/dist/testing/integration.js +32 -0
- package/dist/testing/integration.js.map +1 -0
- package/dist/testing/jsonRpc.d.ts +9 -0
- package/dist/testing/jsonRpc.d.ts.map +1 -0
- package/dist/testing/jsonRpc.js +24 -0
- package/dist/testing/jsonRpc.js.map +1 -0
- package/dist/testing/rpcMock.d.ts +16 -0
- package/dist/testing/rpcMock.d.ts.map +1 -0
- package/dist/testing/rpcMock.js +28 -0
- package/dist/testing/rpcMock.js.map +1 -0
- package/dist/tgUserbot/tgUserbot.d.ts +23 -0
- package/dist/tgUserbot/tgUserbot.d.ts.map +1 -0
- package/dist/tgUserbot/tgUserbot.js +314 -0
- package/dist/tgUserbot/tgUserbot.js.map +1 -0
- package/dist/tgUserbot/tgUserbotTypes.d.ts +124 -0
- package/dist/tgUserbot/tgUserbotTypes.d.ts.map +1 -0
- package/dist/tgUserbot/tgUserbotTypes.js +5 -0
- package/dist/tgUserbot/tgUserbotTypes.js.map +1 -0
- package/dist/webNavigator/webNavigator.d.ts +22 -0
- package/dist/webNavigator/webNavigator.d.ts.map +1 -0
- package/dist/webNavigator/webNavigator.js +46 -0
- package/dist/webNavigator/webNavigator.js.map +1 -0
- package/dist/webNavigator/webNavigatorTypes.d.ts +133 -0
- package/dist/webNavigator/webNavigatorTypes.d.ts.map +1 -0
- package/dist/webNavigator/webNavigatorTypes.js +5 -0
- package/dist/webNavigator/webNavigatorTypes.js.map +1 -0
- package/package.json +90 -0
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
/** Optional S3 flush control for mailbox SQLite mutations. */
|
|
2
|
+
export type AutoCommitParams = {
|
|
3
|
+
readonly autoCommit?: boolean | null;
|
|
4
|
+
};
|
|
5
|
+
/** Caller-supplied parameters for creating a workspace mailbox. */
|
|
6
|
+
export type CreateMailboxParams = {
|
|
7
|
+
readonly mailboxId: string;
|
|
8
|
+
readonly displayName: string;
|
|
9
|
+
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
10
|
+
readonly recreate?: boolean;
|
|
11
|
+
};
|
|
12
|
+
/** Result of create_mailbox; carries the persisted Drive location. */
|
|
13
|
+
export type CreateMailboxResult = {
|
|
14
|
+
readonly mailboxId: string;
|
|
15
|
+
readonly dbInode: string;
|
|
16
|
+
readonly drivePath: string;
|
|
17
|
+
};
|
|
18
|
+
/** Compact mailbox row returned by listMailboxes. */
|
|
19
|
+
export type MailboxSummary = {
|
|
20
|
+
readonly mailboxId: string;
|
|
21
|
+
readonly displayName: string;
|
|
22
|
+
readonly dbInode: string;
|
|
23
|
+
readonly recordCount: number;
|
|
24
|
+
readonly sizeBytes: number;
|
|
25
|
+
readonly updatedAt: string;
|
|
26
|
+
};
|
|
27
|
+
/** Idempotent mailbox-schema bootstrap result. */
|
|
28
|
+
export type InitMailboxResult = {
|
|
29
|
+
readonly mailboxId: string;
|
|
30
|
+
readonly schemaVersion: number;
|
|
31
|
+
};
|
|
32
|
+
/** Reports whether a mailbox existed prior to the delete. */
|
|
33
|
+
export type DeleteMailboxResult = {
|
|
34
|
+
readonly mailboxId: string;
|
|
35
|
+
readonly deleted: boolean;
|
|
36
|
+
};
|
|
37
|
+
/** Idempotent folder upsert parameters; metadata holds protocol-specific sync state. */
|
|
38
|
+
export type UpsertFolderParams = {
|
|
39
|
+
readonly folderId: string;
|
|
40
|
+
readonly displayName: string;
|
|
41
|
+
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
42
|
+
readonly autoCommit?: boolean | null;
|
|
43
|
+
};
|
|
44
|
+
/** Reports whether the folder was created (true) or updated (false). */
|
|
45
|
+
export type UpsertFolderResult = {
|
|
46
|
+
readonly folderId: string;
|
|
47
|
+
readonly created: boolean;
|
|
48
|
+
};
|
|
49
|
+
/** Compact folder row returned by list/get. */
|
|
50
|
+
export type FolderSummary = {
|
|
51
|
+
readonly folderId: string;
|
|
52
|
+
readonly displayName: string;
|
|
53
|
+
readonly metadata: Readonly<Record<string, unknown>>;
|
|
54
|
+
readonly messageCount: number;
|
|
55
|
+
readonly updatedAt: string;
|
|
56
|
+
};
|
|
57
|
+
/** Reports cascade size for caller telemetry. */
|
|
58
|
+
export type DeleteFolderResult = {
|
|
59
|
+
readonly folderId: string;
|
|
60
|
+
readonly deleted: boolean;
|
|
61
|
+
readonly deletedMessageCount: number;
|
|
62
|
+
};
|
|
63
|
+
/** Caller-supplied message; payload is opaque JSON the store never inspects. */
|
|
64
|
+
export type IncomingMessage = {
|
|
65
|
+
readonly externalId: string;
|
|
66
|
+
readonly payload: Readonly<Record<string, unknown>>;
|
|
67
|
+
};
|
|
68
|
+
/** Bulk-upsert parameters; folder is implied by the scoping client. */
|
|
69
|
+
export type UpsertBatchParams = {
|
|
70
|
+
readonly items: readonly IncomingMessage[];
|
|
71
|
+
readonly autoCommit?: boolean | null;
|
|
72
|
+
};
|
|
73
|
+
/** Counts split between insertions and updates; commit is implicit. */
|
|
74
|
+
export type UpsertBatchResult = {
|
|
75
|
+
readonly inserted: number;
|
|
76
|
+
readonly updated: number;
|
|
77
|
+
};
|
|
78
|
+
/** Bulk-delete parameters; folder is implied by the scoping client. */
|
|
79
|
+
export type DeleteBatchParams = {
|
|
80
|
+
readonly externalIds: readonly string[];
|
|
81
|
+
readonly autoCommit?: boolean | null;
|
|
82
|
+
};
|
|
83
|
+
/** Reports the count actually deleted (missing ids skipped). */
|
|
84
|
+
export type DeleteBatchResult = {
|
|
85
|
+
readonly deleted: number;
|
|
86
|
+
};
|
|
87
|
+
/** Cursor-paginated message-list parameters. */
|
|
88
|
+
export type ListMessagesParams = {
|
|
89
|
+
readonly limit?: number;
|
|
90
|
+
readonly cursor?: string;
|
|
91
|
+
};
|
|
92
|
+
/** One stored message row, payload opaque. */
|
|
93
|
+
export type StoredMessage = {
|
|
94
|
+
readonly externalId: string;
|
|
95
|
+
readonly payload: Readonly<Record<string, unknown>>;
|
|
96
|
+
readonly createdAt: string;
|
|
97
|
+
readonly updatedAt: string;
|
|
98
|
+
};
|
|
99
|
+
/** One page of messages plus the next cursor (null at end). */
|
|
100
|
+
export type ListMessagesResult = {
|
|
101
|
+
readonly items: readonly StoredMessage[];
|
|
102
|
+
readonly nextCursor: string | null;
|
|
103
|
+
};
|
|
104
|
+
/** Begin per-attachment upload; mirrors drive/upload/start. */
|
|
105
|
+
export type AttachmentUploadStartParams = {
|
|
106
|
+
readonly attachmentId: string;
|
|
107
|
+
readonly filename: string;
|
|
108
|
+
readonly contentType: string;
|
|
109
|
+
readonly sizeBytes: number;
|
|
110
|
+
readonly autoCommit?: boolean | null;
|
|
111
|
+
};
|
|
112
|
+
/** Intent envelope; passes through Drive's upload-intent contract. */
|
|
113
|
+
export type AttachmentUploadStartResult = {
|
|
114
|
+
readonly intentId: string;
|
|
115
|
+
readonly uploadUrl: string;
|
|
116
|
+
};
|
|
117
|
+
/** Finalize an upload and register the attachment row. */
|
|
118
|
+
export type AttachmentUploadCommitParams = {
|
|
119
|
+
readonly attachmentId: string;
|
|
120
|
+
readonly intentId: string;
|
|
121
|
+
readonly etag: string;
|
|
122
|
+
readonly autoCommit?: boolean | null;
|
|
123
|
+
};
|
|
124
|
+
/** Reports the inode of the persisted file plus its size. */
|
|
125
|
+
export type AttachmentUploadCommitResult = {
|
|
126
|
+
readonly attachmentId: string;
|
|
127
|
+
readonly driveInode: string;
|
|
128
|
+
readonly sizeBytes: number;
|
|
129
|
+
};
|
|
130
|
+
/** Compact attachment row returned by attachments.list. */
|
|
131
|
+
export type AttachmentSummary = {
|
|
132
|
+
readonly attachmentId: string;
|
|
133
|
+
readonly filename: string;
|
|
134
|
+
readonly contentType: string;
|
|
135
|
+
readonly sizeBytes: number;
|
|
136
|
+
readonly driveInode: string;
|
|
137
|
+
readonly createdAt: string;
|
|
138
|
+
};
|
|
139
|
+
/** Single-attachment lookup parameters. */
|
|
140
|
+
export type AttachmentDownloadUrlParams = {
|
|
141
|
+
readonly attachmentId: string;
|
|
142
|
+
};
|
|
143
|
+
/** Presigned URL with explicit expiry. */
|
|
144
|
+
export type AttachmentDownloadUrlResult = {
|
|
145
|
+
readonly url: string;
|
|
146
|
+
readonly expiresAt: string;
|
|
147
|
+
};
|
|
148
|
+
/** Identifier-only attachment delete; cascades the Drive file. */
|
|
149
|
+
export type AttachmentDeleteParams = {
|
|
150
|
+
readonly attachmentId: string;
|
|
151
|
+
readonly autoCommit?: boolean | null;
|
|
152
|
+
};
|
|
153
|
+
/** Reports whether the attachment existed prior to the call. */
|
|
154
|
+
export type AttachmentDeleteResult = {
|
|
155
|
+
readonly deleted: boolean;
|
|
156
|
+
};
|
|
157
|
+
/**
|
|
158
|
+
* Scoped to a single message identified by `(mailboxId, folderId,
|
|
159
|
+
* externalId)`. Returned by {@link FolderScopedClient.message}.
|
|
160
|
+
*
|
|
161
|
+
* Carries the five attachment methods so callers don't repeat the
|
|
162
|
+
* triple on every call. Attachments live in Drive under
|
|
163
|
+
* `/Mailboxes/<mailboxId>/<per-message-folder>/`; the per-message
|
|
164
|
+
* folder is created lazily on the first
|
|
165
|
+
* {@link MessageScopedClient.attachments.uploadStart} call.
|
|
166
|
+
*/
|
|
167
|
+
export type MessageScopedClient = {
|
|
168
|
+
readonly attachments: {
|
|
169
|
+
/**
|
|
170
|
+
* Begin a per-attachment upload. Returns an upload intent
|
|
171
|
+
* (`intentId` + `uploadUrl`). PUT the bytes to the upload URL
|
|
172
|
+
* with header `X-Upload-Intent-Id: <intentId>`, then call
|
|
173
|
+
* {@link MessageScopedClient.attachments.uploadCommit}.
|
|
174
|
+
*/
|
|
175
|
+
readonly uploadStart: (params: AttachmentUploadStartParams) => Promise<AttachmentUploadStartResult>;
|
|
176
|
+
/**
|
|
177
|
+
* Finalize a previously-started upload. Registers the
|
|
178
|
+
* attachment row in the mailbox SQLite and returns the
|
|
179
|
+
* persisted Drive inode + size.
|
|
180
|
+
*/
|
|
181
|
+
readonly uploadCommit: (params: AttachmentUploadCommitParams) => Promise<AttachmentUploadCommitResult>;
|
|
182
|
+
/** Enumerate all attachments owned by this message. */
|
|
183
|
+
readonly list: () => Promise<readonly AttachmentSummary[]>;
|
|
184
|
+
/**
|
|
185
|
+
* Return a presigned URL for one attachment with explicit
|
|
186
|
+
* `expiresAt`. Use this for client-side downloads without
|
|
187
|
+
* exposing storage credentials.
|
|
188
|
+
*/
|
|
189
|
+
readonly downloadUrl: (params: AttachmentDownloadUrlParams) => Promise<AttachmentDownloadUrlResult>;
|
|
190
|
+
/** Remove the attachment row and cascade-delete the Drive file. */
|
|
191
|
+
readonly delete: (params: AttachmentDeleteParams) => Promise<AttachmentDeleteResult>;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
/**
|
|
195
|
+
* Scoped to a single folder identified by `(mailboxId, folderId)`.
|
|
196
|
+
* Returned by {@link MailboxScopedClient.folder}.
|
|
197
|
+
*
|
|
198
|
+
* Carries CRUD for the folder itself plus the four message
|
|
199
|
+
* methods, and a {@link FolderScopedClient.message} factory that
|
|
200
|
+
* drills into per-message attachment operations.
|
|
201
|
+
*/
|
|
202
|
+
export type FolderScopedClient = {
|
|
203
|
+
/**
|
|
204
|
+
* Idempotent folder upsert; mirrors
|
|
205
|
+
* {@link MailboxScopedClient.upsertFolder} but the `folderId`
|
|
206
|
+
* is implicit. Use this to update folder display name or
|
|
207
|
+
* metadata (e.g. IMAP `UIDVALIDITY`/`UIDNEXT`).
|
|
208
|
+
*/
|
|
209
|
+
readonly upsert: (params: Omit<UpsertFolderParams, 'folderId'>) => Promise<UpsertFolderResult>;
|
|
210
|
+
/** Fetch the {@link FolderSummary} for this folder. */
|
|
211
|
+
readonly get: () => Promise<FolderSummary>;
|
|
212
|
+
/**
|
|
213
|
+
* Cascade-delete the folder, all messages it owns, and any
|
|
214
|
+
* per-message attachment Drive subtrees. Returns the count of
|
|
215
|
+
* deleted messages so callers can report telemetry.
|
|
216
|
+
*/
|
|
217
|
+
readonly delete: (params?: AutoCommitParams) => Promise<DeleteFolderResult>;
|
|
218
|
+
/**
|
|
219
|
+
* Bulk insert-or-update messages keyed by `externalId`. The
|
|
220
|
+
* batch is committed before this method returns by default; pass
|
|
221
|
+
* `autoCommit: false` to defer the S3 flush.
|
|
222
|
+
*/
|
|
223
|
+
readonly upsertBatch: (params: UpsertBatchParams) => Promise<UpsertBatchResult>;
|
|
224
|
+
/**
|
|
225
|
+
* Bulk-delete messages by `externalId` list. Missing ids are
|
|
226
|
+
* silently skipped; the response reports the count actually
|
|
227
|
+
* deleted. Cascades attachment Drive files.
|
|
228
|
+
*/
|
|
229
|
+
readonly deleteBatch: (params: DeleteBatchParams) => Promise<DeleteBatchResult>;
|
|
230
|
+
/**
|
|
231
|
+
* Cursor-paginated message listing. Pass the previous response's
|
|
232
|
+
* `nextCursor` to continue; `null` means end of stream. Default
|
|
233
|
+
* page size is server-defined (currently 100, max 1000).
|
|
234
|
+
*/
|
|
235
|
+
readonly listMessages: (params?: ListMessagesParams) => Promise<ListMessagesResult>;
|
|
236
|
+
/**
|
|
237
|
+
* Read one message by `externalId`. Throws when the message
|
|
238
|
+
* does not exist (server returns a `MESSAGE_NOT_FOUND` failure).
|
|
239
|
+
*/
|
|
240
|
+
readonly getMessage: (params: {
|
|
241
|
+
readonly externalId: string;
|
|
242
|
+
}) => Promise<StoredMessage>;
|
|
243
|
+
/**
|
|
244
|
+
* Bind a message-scoped client over `(mailboxId, folderId,
|
|
245
|
+
* externalId)`. The returned client exposes attachment operations
|
|
246
|
+
* for that message.
|
|
247
|
+
*/
|
|
248
|
+
readonly message: (params: {
|
|
249
|
+
readonly externalId: string;
|
|
250
|
+
}) => MessageScopedClient;
|
|
251
|
+
};
|
|
252
|
+
/**
|
|
253
|
+
* Scoped to a single mailbox identified by `mailboxId`. Returned
|
|
254
|
+
* by {@link MessagesStoreClient.mailbox}.
|
|
255
|
+
*
|
|
256
|
+
* Carries CRUD for the mailbox itself plus folder-level helpers
|
|
257
|
+
* and a {@link MailboxScopedClient.folder} factory.
|
|
258
|
+
*/
|
|
259
|
+
export type MailboxScopedClient = {
|
|
260
|
+
/**
|
|
261
|
+
* Idempotent SQLite-schema bootstrap. Creates `mailbox_meta`,
|
|
262
|
+
* `folders`, `messages`, and `attachments` tables on first call
|
|
263
|
+
* and is safe to re-run. Required before any folder/message ops.
|
|
264
|
+
*/
|
|
265
|
+
readonly init: (params?: AutoCommitParams) => Promise<InitMailboxResult>;
|
|
266
|
+
/**
|
|
267
|
+
* Delete the mailbox file and the per-mailbox attachment Drive
|
|
268
|
+
* subtree (`/Mailboxes/<mailboxId>/`). Reports whether the
|
|
269
|
+
* mailbox existed prior to the call.
|
|
270
|
+
*/
|
|
271
|
+
readonly delete: () => Promise<DeleteMailboxResult>;
|
|
272
|
+
/**
|
|
273
|
+
* Idempotent folder upsert. `folderId` is opaque (caller-chosen,
|
|
274
|
+
* e.g. the IMAP folder name). `metadata` is opaque JSON the
|
|
275
|
+
* store never inspects -- ideal for protocol-specific sync state.
|
|
276
|
+
*/
|
|
277
|
+
readonly upsertFolder: (params: UpsertFolderParams) => Promise<UpsertFolderResult>;
|
|
278
|
+
/** Enumerate all folders in this mailbox. */
|
|
279
|
+
readonly listFolders: () => Promise<readonly FolderSummary[]>;
|
|
280
|
+
/**
|
|
281
|
+
* Bind a folder-scoped client over `(mailboxId, folderId)`. The
|
|
282
|
+
* returned client exposes folder CRUD plus message operations.
|
|
283
|
+
*/
|
|
284
|
+
readonly folder: (params: {
|
|
285
|
+
readonly folderId: string;
|
|
286
|
+
}) => FolderScopedClient;
|
|
287
|
+
};
|
|
288
|
+
/**
|
|
289
|
+
* Workspace-scoped messages-store client. Returned by
|
|
290
|
+
* `diskd.os.messagesStore({ auth })`.
|
|
291
|
+
*
|
|
292
|
+
* Workspace identity is auth-derived (X-Workspace-Id from API key
|
|
293
|
+
* or `ext.workspace_id` from OAuth JWT); callers never pass
|
|
294
|
+
* `workspaceId` on the wire.
|
|
295
|
+
*
|
|
296
|
+
* Functional scoping pattern -- drill into a single mailbox,
|
|
297
|
+
* folder, or message to skip repeating identifiers:
|
|
298
|
+
*
|
|
299
|
+
* ```ts
|
|
300
|
+
* const messagesStore = diskd.os.messagesStore({ auth });
|
|
301
|
+
* const mailbox = messagesStore.mailbox({ mailboxId: 'gmail-acme' });
|
|
302
|
+
* const folder = mailbox.folder({ folderId: 'INBOX' });
|
|
303
|
+
* const message = folder.message({ externalId: 'imap-uid-1001' });
|
|
304
|
+
* ```
|
|
305
|
+
*/
|
|
306
|
+
export type MessagesStoreClient = {
|
|
307
|
+
/**
|
|
308
|
+
* Allocate a new mailbox SQLite file at
|
|
309
|
+
* `/Mailboxes/<mailboxId>.mailbox`. `mailboxId` is a workspace-
|
|
310
|
+
* unique slug (`[a-z0-9-]{1,64}`). `metadata` is opaque JSON
|
|
311
|
+
* stashed on the underlying drive_databases record.
|
|
312
|
+
*
|
|
313
|
+
* The mailbox SQLite schema is bootstrapped lazily by
|
|
314
|
+
* {@link MailboxScopedClient.init}, not by this call.
|
|
315
|
+
*/
|
|
316
|
+
readonly createMailbox: (params: CreateMailboxParams) => Promise<CreateMailboxResult>;
|
|
317
|
+
/** Workspace-scoped mailbox enumeration. Read-only. */
|
|
318
|
+
readonly listMailboxes: () => Promise<readonly MailboxSummary[]>;
|
|
319
|
+
/**
|
|
320
|
+
* Bind a mailbox-scoped client over `mailboxId`. The returned
|
|
321
|
+
* client exposes mailbox CRUD plus folder/message operations.
|
|
322
|
+
*/
|
|
323
|
+
readonly mailbox: (params: {
|
|
324
|
+
readonly mailboxId: string;
|
|
325
|
+
}) => MailboxScopedClient;
|
|
326
|
+
};
|
|
327
|
+
//# sourceMappingURL=messagesStoreTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messagesStoreTypes.d.ts","sourceRoot":"","sources":["../../src/messagesStore/messagesStoreTypes.ts"],"names":[],"mappings":"AAYA,8DAA8D;AAC9D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CACtC,CAAC;AAEF,mEAAmE;AACnE,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,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B,GAAG;IAChC;;;;;;;;OAQG;IACH,QAAQ,CAAC,aAAa,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACtF,uDAAuD;IACvD,QAAQ,CAAC,aAAa,EAAE,MAAM,OAAO,CAAC,SAAS,cAAc,EAAE,CAAC,CAAC;IACjE;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE;QAAE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;KAAE,KAAK,mBAAmB,CAAC;CACnF,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// ---------------------------------------------------------------------------
|
|
2
|
+
// Drive Messages Store API -- pure types (no classes, no I/O)
|
|
3
|
+
//
|
|
4
|
+
// Concept: opaque, protocol-agnostic message store served by drive's
|
|
5
|
+
// `messages_store/*` JSON-RPC namespace. Four boundaries (mailboxes,
|
|
6
|
+
// folders, messages, attachments) exposed as functionally-scoped
|
|
7
|
+
// clients so callers don't repeat (mailboxId, folderId, externalId)
|
|
8
|
+
// on every call.
|
|
9
|
+
// ---------------------------------------------------------------------------
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=messagesStoreTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messagesStoreTypes.js","sourceRoot":"","sources":["../../src/messagesStore/messagesStoreTypes.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,8DAA8D;AAC9D,EAAE;AACF,qEAAqE;AACrE,qEAAqE;AACrE,iEAAiE;AACjE,oEAAoE;AACpE,iBAAiB;AACjB,8EAA8E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fastDns.d.ts","sourceRoot":"","sources":["../../src/node/fastDns.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import dns from 'node:dns';
|
|
2
|
+
import fs from 'node:fs';
|
|
3
|
+
import { Agent, setGlobalDispatcher } from 'undici';
|
|
4
|
+
import { resolveDiskdBaseUrl } from '../env/baseUrl.js';
|
|
5
|
+
const parseHostsFile = (raw) => {
|
|
6
|
+
const map = new Map();
|
|
7
|
+
for (const lineRaw of raw.split(/\r?\n/u)) {
|
|
8
|
+
const line = lineRaw.trim();
|
|
9
|
+
if (line.length === 0 || line.startsWith('#'))
|
|
10
|
+
continue;
|
|
11
|
+
const parts = line.split(/\s+/u).filter((part) => part.length > 0);
|
|
12
|
+
const ip = parts[0];
|
|
13
|
+
if (!ip)
|
|
14
|
+
continue;
|
|
15
|
+
for (const host of parts.slice(1)) {
|
|
16
|
+
const normalized = host.trim().toLowerCase();
|
|
17
|
+
if (normalized.length === 0)
|
|
18
|
+
continue;
|
|
19
|
+
if (!map.has(normalized)) {
|
|
20
|
+
map.set(normalized, ip);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return map;
|
|
25
|
+
};
|
|
26
|
+
const readHostsMap = () => {
|
|
27
|
+
const content = fs.readFileSync('/etc/hosts', 'utf8');
|
|
28
|
+
return parseHostsFile(content);
|
|
29
|
+
};
|
|
30
|
+
const hasAll = (options) => typeof options === 'object' &&
|
|
31
|
+
options !== null &&
|
|
32
|
+
options.all === true;
|
|
33
|
+
const readFamily = (options) => {
|
|
34
|
+
if (typeof options === 'number')
|
|
35
|
+
return options;
|
|
36
|
+
if (typeof options !== 'object' || options === null)
|
|
37
|
+
return undefined;
|
|
38
|
+
const family = options.family;
|
|
39
|
+
return typeof family === 'number' ? family : undefined;
|
|
40
|
+
};
|
|
41
|
+
const callFallbackLookup = (hostname, options, callback) => {
|
|
42
|
+
if (typeof options === 'function') {
|
|
43
|
+
dns.lookup(hostname, options);
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
if (typeof callback !== 'function')
|
|
47
|
+
return;
|
|
48
|
+
if (options === undefined) {
|
|
49
|
+
dns.lookup(hostname, callback);
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
if (typeof options === 'number') {
|
|
53
|
+
dns.lookup(hostname, options, callback);
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
if (hasAll(options)) {
|
|
57
|
+
dns.lookup(hostname, options, callback);
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
dns.lookup(hostname, options, callback);
|
|
61
|
+
};
|
|
62
|
+
const createHostsLookup = (map) => {
|
|
63
|
+
const lookupImpl = (...args) => {
|
|
64
|
+
const hostnameRaw = args[0];
|
|
65
|
+
if (typeof hostnameRaw !== 'string')
|
|
66
|
+
return;
|
|
67
|
+
const hostname = hostnameRaw.toLowerCase();
|
|
68
|
+
const options = args[1];
|
|
69
|
+
const callback = args[2] ?? args[1];
|
|
70
|
+
const mapped = map.get(hostname);
|
|
71
|
+
if (!mapped) {
|
|
72
|
+
callFallbackLookup(hostnameRaw, options, callback);
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
const family = mapped.includes(':') ? 6 : 4;
|
|
76
|
+
const requestedFamily = readFamily(options);
|
|
77
|
+
if (requestedFamily && requestedFamily !== 0 && requestedFamily !== family) {
|
|
78
|
+
callFallbackLookup(hostnameRaw, options, callback);
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
if (hasAll(options)) {
|
|
82
|
+
callback(null, [{ address: mapped, family }]);
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
callback(null, mapped, family);
|
|
86
|
+
};
|
|
87
|
+
return lookupImpl;
|
|
88
|
+
};
|
|
89
|
+
const shouldEnableFastDns = () => {
|
|
90
|
+
const toggle = process.env.DISKD_SDK_FAST_DNS;
|
|
91
|
+
if (toggle === '0' || toggle === 'false')
|
|
92
|
+
return false;
|
|
93
|
+
if (toggle === '1' || toggle === 'true')
|
|
94
|
+
return true;
|
|
95
|
+
const baseUrl = resolveDiskdBaseUrl();
|
|
96
|
+
return baseUrl.includes('.local');
|
|
97
|
+
};
|
|
98
|
+
const safeReadHostname = (rawUrl) => {
|
|
99
|
+
try {
|
|
100
|
+
return new URL(rawUrl).hostname.toLowerCase();
|
|
101
|
+
}
|
|
102
|
+
catch {
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
const configureFastDns = () => {
|
|
107
|
+
if (!shouldEnableFastDns())
|
|
108
|
+
return;
|
|
109
|
+
const baseUrlHostname = safeReadHostname(resolveDiskdBaseUrl());
|
|
110
|
+
if (!baseUrlHostname)
|
|
111
|
+
return;
|
|
112
|
+
const map = readHostsMap();
|
|
113
|
+
if (!map.has(baseUrlHostname))
|
|
114
|
+
return;
|
|
115
|
+
const lookup = createHostsLookup(map);
|
|
116
|
+
setGlobalDispatcher(new Agent({ connect: { lookup } }));
|
|
117
|
+
};
|
|
118
|
+
configureFastDns();
|
|
119
|
+
//# sourceMappingURL=fastDns.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fastDns.js","sourceRoot":"","sources":["../../src/node/fastDns.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,EAAE,MAAM,SAAS,CAAC;AAGzB,OAAO,EAAE,KAAK,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAKxD,MAAM,cAAc,GAAG,CAAC,GAAW,EAAuB,EAAE;IAC1D,MAAM,GAAG,GAAG,IAAI,GAAG,EAAkB,CAAC;IACtC,KAAK,MAAM,OAAO,IAAI,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC1C,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;QAC5B,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC;YAAE,SAAS;QAExD,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAA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AAI,CAAC;QACH,OAAO,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC;IAChD,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,GAAS,EAAE;IAClC,IAAI,CAAC,mBAAmB,EAAE;QAAE,OAAO;IAEnC,MAAM,eAAe,GAAG,gBAAgB,CAAC,mBAAmB,EAAE,CAAC,CAAC;IAChE,IAAI,CAAC,eAAe;QAAE,OAAO;IAE7B,MAAM,GAAG,GAAG,YAAY,EAAE,CAAC;IAC3B,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,eAAe,CAAC;QAAE,OAAO;IAEtC,MAAM,MAAM,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAC;IACtC,mBAAmB,CAAC,IAAI,KAAK,CAAC,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC;AAC1D,CAAC,CAAC;AAEF,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { AuthModule } from '../auth/types.js';
|
|
2
|
+
import type { OperativesClient } from './operativesTypes.js';
|
|
3
|
+
/**
|
|
4
|
+
* Creates an Operatives REST client bound to a given auth module.
|
|
5
|
+
*
|
|
6
|
+
* The URL defaults to the centralized `APIS_BASE_URL` gateway with the
|
|
7
|
+
* `/v1/platform/operatives` path prefix.
|
|
8
|
+
*
|
|
9
|
+
* Example:
|
|
10
|
+
* ```ts
|
|
11
|
+
* const ops = createOperativesClient({ auth });
|
|
12
|
+
* const list = await ops.list({ projectId: 'proj-1' });
|
|
13
|
+
* await ops.files.add('op-01', { paths: ['/docs/notes'] });
|
|
14
|
+
* await ops.skills.add('op-01', { refIds: ['web-search'] });
|
|
15
|
+
* await ops.tools.add('op-01', { selectors: ['github/search_repos'] });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare const createOperativesClient: (params: {
|
|
19
|
+
readonly auth: AuthModule;
|
|
20
|
+
readonly url?: string;
|
|
21
|
+
}) => OperativesClient;
|
|
22
|
+
//# sourceMappingURL=operatives.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operatives.d.ts","sourceRoot":"","sources":["../../src/operatives/operatives.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGnD,OAAO,KAAK,EAUV,gBAAgB,EAGjB,MAAM,sBAAsB,CAAC;AAwI9B;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,sBAAsB,GAAI,QAAQ;IAC7C,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;CACvB,KAAG,gBAiLH,CAAC"}
|