@macro-inc/sdk 0.2.2 → 0.4.0
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/README.md +177 -3
- package/dist/{chunk-OGE7WXJE.js → chunk-AZJUIUIV.js} +177 -23
- package/dist/{chunk-PRUFPW3B.js → chunk-G43PLP2U.js} +144 -0
- package/dist/{chunk-7LVVPVNT.js → chunk-K4G5VO4P.js} +76 -1
- package/dist/{chunk-PAAFJYGO.js → chunk-PPR7IWZ7.js} +77 -51
- package/dist/{chunk-QVBNNMQS.js → chunk-PTX2RV2N.js} +169 -20
- package/dist/{chunk-SUINKDXF.js → chunk-PZPTJI6F.js} +42 -0
- package/dist/{chunk-7YJ6Y7HJ.js → chunk-XFA7NCJ5.js} +207 -0
- package/dist/{chunk-ZQXOHNDB.js → chunk-ZLBDES7U.js} +789 -12
- package/dist/generated/agent-fold/index.d.ts +4332 -0
- package/dist/generated/agent-fold/index.js +0 -0
- package/dist/generated/agent-harness/index.d.ts +1 -1
- package/dist/generated/agent-harness/index.js +1 -1
- package/dist/generated/agent-harness/sdk.gen.d.ts +83 -9
- package/dist/generated/agent-harness/types.gen.d.ts +1504 -160
- package/dist/generated/agent-reviews/index.d.ts +893 -0
- package/dist/generated/agent-reviews/index.js +0 -0
- package/dist/generated/auth/index.d.ts +1 -1
- package/dist/generated/auth/index.js +1 -1
- package/dist/generated/auth/sdk.gen.d.ts +108 -2
- package/dist/generated/auth/types.gen.d.ts +799 -6
- package/dist/generated/calendar/index.d.ts +1 -1
- package/dist/generated/calendar/index.js +1 -1
- package/dist/generated/calendar/sdk.gen.d.ts +63 -1
- package/dist/generated/calendar/types.gen.d.ts +1234 -5
- package/dist/generated/cognition/index.d.ts +1 -1
- package/dist/generated/cognition/index.js +1 -1
- package/dist/generated/cognition/sdk.gen.d.ts +85 -20
- package/dist/generated/cognition/types.gen.d.ts +1040 -121
- package/dist/generated/connection/index.d.ts +1 -1
- package/dist/generated/connection/index.js +15 -0
- package/dist/generated/connection/sdk.gen.d.ts +6 -1
- package/dist/generated/connection/types.gen.d.ts +18 -1
- package/dist/generated/email/index.d.ts +1 -1
- package/dist/generated/email/index.js +1 -1
- package/dist/generated/email/sdk.gen.d.ts +44 -2
- package/dist/generated/email/types.gen.d.ts +475 -10
- package/dist/generated/notification/index.d.ts +1 -1
- package/dist/generated/notification/index.js +1 -1
- package/dist/generated/notification/sdk.gen.d.ts +29 -21
- package/dist/generated/notification/types.gen.d.ts +267 -73
- package/dist/generated/properties/index.d.ts +1 -1
- package/dist/generated/properties/types.gen.d.ts +21 -1
- package/dist/generated/scheduled-action/index.d.ts +1 -1
- package/dist/generated/scheduled-action/index.js +1 -1
- package/dist/generated/scheduled-action/sdk.gen.d.ts +8 -1
- package/dist/generated/scheduled-action/types.gen.d.ts +669 -19
- package/dist/generated/search/index.d.ts +1 -1
- package/dist/generated/search/types.gen.d.ts +87 -7
- package/dist/generated/static-files/types.gen.d.ts +6 -0
- package/dist/generated/storage/index.d.ts +1 -1
- package/dist/generated/storage/index.js +1 -1
- package/dist/generated/storage/sdk.gen.d.ts +376 -13
- package/dist/generated/storage/types.gen.d.ts +12038 -5562
- package/dist/src/entities/account-managers/grant.d.ts +39 -0
- package/dist/src/entities/account-managers/namespace.d.ts +17 -0
- package/dist/src/entities/agent-sessions/activity.d.ts +39 -0
- package/dist/src/entities/agent-sessions/agent-session.d.ts +148 -6
- package/dist/src/entities/agent-sessions/code-execution.d.ts +5 -0
- package/dist/src/entities/agent-sessions/namespace.d.ts +54 -4
- package/dist/src/entities/agent-sessions/origin.d.ts +94 -0
- package/dist/src/entities/agent-sessions/review.d.ts +18 -62
- package/dist/src/entities/agent-sessions/view.d.ts +11 -0
- package/dist/src/entities/agents/namespace.d.ts +11 -2
- package/dist/src/entities/ai/namespace.d.ts +5 -1
- package/dist/src/entities/api-keys/namespace.d.ts +5 -1
- package/dist/src/entities/bots/bot.d.ts +108 -0
- package/dist/src/entities/bots/namespace.d.ts +17 -4
- package/dist/src/entities/bots/token.d.ts +34 -0
- package/dist/src/entities/calendar/booking-link.d.ts +49 -0
- package/dist/src/entities/calendar/booking-namespace.d.ts +130 -0
- package/dist/src/entities/calendar/booking-namespace.test.d.ts +1 -0
- package/dist/src/entities/calendar/booking.d.ts +77 -0
- package/dist/src/entities/calendar/calendar.d.ts +11 -4
- package/dist/src/entities/calendar/create-confirmed.test.d.ts +1 -0
- package/dist/src/entities/calendar/event.d.ts +104 -3
- package/dist/src/entities/calendar/namespace.d.ts +151 -7
- package/dist/src/entities/calendar/namespace.test.d.ts +1 -0
- package/dist/src/entities/calls/call-record.d.ts +34 -4
- package/dist/src/entities/calls/connection.d.ts +53 -0
- package/dist/src/entities/calls/errors.d.ts +15 -0
- package/dist/src/entities/calls/namespace.d.ts +21 -1
- package/dist/src/entities/calls/participant.d.ts +22 -0
- package/dist/src/entities/channels/access-request.d.ts +34 -0
- package/dist/src/entities/channels/channel.d.ts +47 -1
- package/dist/src/entities/channels/namespace.d.ts +21 -5
- package/dist/src/entities/channels/namespace.test.d.ts +1 -0
- package/dist/src/entities/channels/post.d.ts +14 -3
- package/dist/src/entities/channels/thread.d.ts +10 -1
- package/dist/src/entities/chats/chat.d.ts +7 -1
- package/dist/src/entities/chats/namespace.d.ts +14 -1
- package/dist/src/entities/connected-apps/connected-app.d.ts +107 -0
- package/dist/src/entities/connected-apps/connector.d.ts +56 -0
- package/dist/src/entities/connected-apps/namespace.d.ts +74 -0
- package/dist/src/entities/crm/company.d.ts +7 -3
- package/dist/src/entities/crm/contact.d.ts +4 -4
- package/dist/src/entities/crm/namespace.d.ts +34 -1
- package/dist/src/entities/crm/pipeline.d.ts +43 -2
- package/dist/src/entities/databases/database.d.ts +17 -0
- package/dist/src/entities/databases/namespace.d.ts +56 -0
- package/dist/src/entities/documents/ai-edit.d.ts +52 -0
- package/dist/src/entities/documents/document.d.ts +244 -5
- package/dist/src/entities/documents/namespace.d.ts +89 -4
- package/dist/src/entities/documents/office-files.d.ts +47 -0
- package/dist/src/entities/email/draft.d.ts +36 -7
- package/dist/src/entities/email/message.d.ts +99 -3
- package/dist/src/entities/email/namespace.d.ts +47 -4
- package/dist/src/entities/email/namespace.test.d.ts +1 -0
- package/dist/src/entities/email/thread.d.ts +55 -3
- package/dist/src/entities/entity-mentions/namespace.d.ts +5 -1
- package/dist/src/entities/external-chat/chat.d.ts +105 -0
- package/dist/src/entities/external-chat/message.d.ts +54 -0
- package/dist/src/entities/external-chat/namespace.d.ts +18 -0
- package/dist/src/entities/external-chat/participant.d.ts +28 -0
- package/dist/src/entities/external-chat/send.d.ts +32 -0
- package/dist/src/entities/external-chat/upload.d.ts +25 -0
- package/dist/src/entities/favorites/namespace.d.ts +5 -1
- package/dist/src/entities/foreign/namespace.d.ts +3 -0
- package/dist/src/entities/forms/form.d.ts +17 -2
- package/dist/src/entities/forms/namespace.d.ts +5 -1
- package/dist/src/entities/github-pull-requests/namespace.d.ts +5 -1
- package/dist/src/entities/harnesses/harness.d.ts +9 -0
- package/dist/src/entities/harnesses/namespace.d.ts +5 -1
- package/dist/src/entities/images/image.d.ts +77 -0
- package/dist/src/entities/images/namespace.d.ts +48 -0
- package/dist/src/entities/images/namespace.test.d.ts +1 -0
- package/dist/src/entities/initiatives/initiative.d.ts +12 -1
- package/dist/src/entities/initiatives/namespace.d.ts +15 -2
- package/dist/src/entities/me/namespace.d.ts +43 -0
- package/dist/src/entities/meetings/meeting.d.ts +5 -0
- package/dist/src/entities/meetings/namespace.d.ts +5 -1
- package/dist/src/entities/messages/thread.d.ts +1 -1
- package/dist/src/entities/notifications/namespace.d.ts +3 -0
- package/dist/src/entities/pins/namespace.d.ts +5 -1
- package/dist/src/entities/projects/namespace.d.ts +4 -1
- package/dist/src/entities/projects/project.d.ts +9 -1
- package/dist/src/entities/properties/namespace.d.ts +2 -0
- package/dist/src/entities/referrals/namespace.d.ts +33 -0
- package/dist/src/entities/routines/namespace.d.ts +42 -2
- package/dist/src/entities/routines/routine.d.ts +84 -5
- package/dist/src/entities/search/namespace.d.ts +65 -0
- package/dist/src/entities/{search.d.ts → search/options.d.ts} +8 -2
- package/dist/src/entities/search/types.d.ts +90 -0
- package/dist/src/entities/sharing/access.d.ts +14 -0
- package/dist/src/entities/tasks/namespace.d.ts +42 -3
- package/dist/src/entities/tasks/task.d.ts +47 -6
- package/dist/src/entities/teams/invite.d.ts +30 -0
- package/dist/src/entities/teams/namespace.d.ts +3 -0
- package/dist/src/entities/teams/team.d.ts +37 -0
- package/dist/src/entities/unfurls/namespace.d.ts +5 -1
- package/dist/src/entities/users/namespace.d.ts +9 -0
- package/dist/src/entities/users/user.d.ts +8 -0
- package/dist/src/entities/web/namespace.d.ts +61 -0
- package/dist/src/entities/web/namespace.test.d.ts +1 -0
- package/dist/src/entities/webhooks/namespace.d.ts +2 -0
- package/dist/src/entities/whatsapp/account.d.ts +20 -0
- package/dist/src/entities/whatsapp/chat.d.ts +54 -0
- package/dist/src/entities/whatsapp/namespace.d.ts +23 -0
- package/dist/src/entities/workspace/items.d.ts +7 -0
- package/dist/src/entities/workspace/namespace.d.ts +14 -9
- package/dist/src/entities/workspace/query.d.ts +23 -0
- package/dist/src/entities/workspace/types.d.ts +6 -3
- package/dist/src/events/hydrate/agentSession.d.ts +1 -1
- package/dist/src/events/hydrate/call.d.ts +101 -0
- package/dist/src/events/hydrate/channel.d.ts +8 -1
- package/dist/src/events/hydrate/document.d.ts +1 -1
- package/dist/src/events/hydrate/message.d.ts +1 -1
- package/dist/src/events/types.d.ts +2 -1
- package/dist/src/macro.d.ts +73 -4
- package/dist/src/macro.js +8235 -3701
- package/dist/src/mentions.d.ts +6 -1
- package/dist/src/utils/activity.d.ts +23 -2
- package/dist/src/utils/index.d.ts +1 -1
- package/dist/src/utils/unwrap.d.ts +27 -2
- package/package.json +2 -2
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ChannelAccessRequest } from '../../entities/channels/access-request';
|
|
1
2
|
import { Channel } from '../../entities/channels/channel';
|
|
2
3
|
import { User } from '../../entities/users/user';
|
|
3
4
|
import type { MacroClient } from '../../utils/client';
|
|
@@ -45,4 +46,10 @@ export declare function hydrateChannelEvent(client: MacroClient, event: ChannelE
|
|
|
45
46
|
channel: Channel;
|
|
46
47
|
removedBy: User;
|
|
47
48
|
removedUsers: User[];
|
|
48
|
-
}
|
|
49
|
+
} | {
|
|
50
|
+
event_type: "channel.access_requested";
|
|
51
|
+
metadata: import("../../../generated/storage").ChannelAccessRequestedMetadata;
|
|
52
|
+
channel: Channel;
|
|
53
|
+
request: ChannelAccessRequest;
|
|
54
|
+
requester: User;
|
|
55
|
+
} | undefined;
|
|
@@ -67,4 +67,4 @@ export declare function hydrateMessageEvent(client: MacroClient, event: MessageE
|
|
|
67
67
|
metadata: import("../../../generated/storage").MessageAttachmentRemovedMetadata;
|
|
68
68
|
target: MessageEventTarget;
|
|
69
69
|
actor: import("../../entities/users/user").User | undefined;
|
|
70
|
-
};
|
|
70
|
+
} | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { WebhookEvent } from '../../generated/storage/types.gen';
|
|
2
2
|
import type { hydrateAgentSessionEvent } from './hydrate/agentSession';
|
|
3
|
+
import type { hydrateCallEvent } from './hydrate/call';
|
|
3
4
|
import type { hydrateChannelEvent } from './hydrate/channel';
|
|
4
5
|
import type { hydrateDocumentEvent } from './hydrate/document';
|
|
5
6
|
import type { hydrateMessageEvent } from './hydrate/message';
|
|
@@ -18,7 +19,7 @@ export type EventPayload<E extends EventName> = Extract<MacroEvent, {
|
|
|
18
19
|
* ride along with which event — this reads their inferred return types back
|
|
19
20
|
* rather than restating the mapping.
|
|
20
21
|
*/
|
|
21
|
-
type HydratedEvent = ReturnType<typeof hydrateAgentSessionEvent> | ReturnType<typeof hydrateChannelEvent> | ReturnType<typeof hydrateDocumentEvent> | ReturnType<typeof hydrateMessageEvent>;
|
|
22
|
+
type HydratedEvent = ReturnType<typeof hydrateAgentSessionEvent> | ReturnType<typeof hydrateChannelEvent> | ReturnType<typeof hydrateCallEvent> | ReturnType<typeof hydrateDocumentEvent> | ReturnType<typeof hydrateMessageEvent>;
|
|
22
23
|
/**
|
|
23
24
|
* What a handler receives, per event: the raw `metadata` plus the ORM handles
|
|
24
25
|
* named by that event's ids.
|
package/dist/src/macro.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { MacroOpts } from './config';
|
|
2
|
+
import { AccountManagerNamespace } from './entities/account-managers/namespace';
|
|
2
3
|
import { AgentSessionNamespace } from './entities/agent-sessions/namespace';
|
|
3
4
|
import { AgentNamespace } from './entities/agents/namespace';
|
|
4
5
|
import { AiNamespace } from './entities/ai/namespace';
|
|
@@ -8,44 +9,65 @@ import { CalendarNamespace } from './entities/calendar/namespace';
|
|
|
8
9
|
import { CallRecordNamespace } from './entities/calls/namespace';
|
|
9
10
|
import { ChannelNamespace } from './entities/channels/namespace';
|
|
10
11
|
import { ChatNamespace } from './entities/chats/namespace';
|
|
12
|
+
import { ConnectedAppNamespace } from './entities/connected-apps/namespace';
|
|
11
13
|
import { CrmNamespace } from './entities/crm/namespace';
|
|
12
14
|
import { DatabaseNamespace } from './entities/databases/namespace';
|
|
13
15
|
import { DocumentNamespace } from './entities/documents/namespace';
|
|
14
16
|
import { EmailNamespace } from './entities/email/namespace';
|
|
15
17
|
import { EntityMentionNamespace } from './entities/entity-mentions/namespace';
|
|
18
|
+
import { ExternalChatsNamespace } from './entities/external-chat/namespace';
|
|
16
19
|
import { FavoritesNamespace } from './entities/favorites/namespace';
|
|
17
20
|
import { ForeignEntityNamespace } from './entities/foreign/namespace';
|
|
18
21
|
import { FormNamespace } from './entities/forms/namespace';
|
|
19
22
|
import { GithubPullRequestNamespace } from './entities/github-pull-requests/namespace';
|
|
20
23
|
import { HarnessNamespace } from './entities/harnesses/namespace';
|
|
24
|
+
import { ImagesNamespace } from './entities/images/namespace';
|
|
21
25
|
import { InitiativeNamespace } from './entities/initiatives/namespace';
|
|
26
|
+
import { MeNamespace } from './entities/me/namespace';
|
|
22
27
|
import { MeetingNamespace } from './entities/meetings/namespace';
|
|
23
28
|
import { NotificationNamespace } from './entities/notifications/namespace';
|
|
24
29
|
import { PinsNamespace } from './entities/pins/namespace';
|
|
25
30
|
import { ProjectNamespace } from './entities/projects/namespace';
|
|
26
31
|
import { PropertiesNamespace } from './entities/properties/namespace';
|
|
32
|
+
import { ReferralNamespace } from './entities/referrals/namespace';
|
|
27
33
|
import { RoutineNamespace } from './entities/routines/namespace';
|
|
34
|
+
import { SearchNamespace } from './entities/search/namespace';
|
|
28
35
|
import { TaskNamespace } from './entities/tasks/namespace';
|
|
29
36
|
import { TeamNamespace } from './entities/teams/namespace';
|
|
30
37
|
import { UnfurlNamespace } from './entities/unfurls/namespace';
|
|
31
38
|
import { UserNamespace } from './entities/users/namespace';
|
|
32
39
|
import type { User } from './entities/users/user';
|
|
40
|
+
import { WebNamespace } from './entities/web/namespace';
|
|
33
41
|
import { WebhooksNamespace } from './entities/webhooks/namespace';
|
|
42
|
+
import { WhatsAppNamespace } from './entities/whatsapp/namespace';
|
|
34
43
|
import { WorkspaceNamespace } from './entities/workspace/namespace';
|
|
35
44
|
import type { MacroEvents } from './events/receiver';
|
|
36
45
|
import { MacroClient } from './utils/client';
|
|
37
46
|
export type { MacroOpts } from './config';
|
|
38
47
|
export { CodeExecution } from './entities/agent-sessions/code-execution';
|
|
39
48
|
export type { DecisionRequest, DecisionResponse, StructuredCompletionRequest, StructuredCompletionResponse, } from './entities/ai/namespace';
|
|
49
|
+
export { CallRecord } from './entities/calls/call-record';
|
|
50
|
+
export { CallConnection, type JoinOptions } from './entities/calls/connection';
|
|
51
|
+
export { AlreadyConnectedError, CallEndedError, InOtherCallError, } from './entities/calls/errors';
|
|
40
52
|
export type { CallMessage } from './entities/calls/message';
|
|
53
|
+
export type { CallSummary } from './entities/calls/namespace';
|
|
54
|
+
export { CallParticipant } from './entities/calls/participant';
|
|
55
|
+
export { ConnectedApp, ConnectedTool, } from './entities/connected-apps/connected-app';
|
|
56
|
+
export { Connector } from './entities/connected-apps/connector';
|
|
57
|
+
export { ConnectedAppNamespace } from './entities/connected-apps/namespace';
|
|
41
58
|
export { type AddColumnOptions, type ApplyOpsOptions, type ChangeColumnTypeOptions, type ColumnType, type ConvertIntoNewColumnOptions, MacroOpRefusedError, type OpResultOf, } from './entities/databases/database';
|
|
42
|
-
export { Form, type FormAnswer, type FormAnswerValue, type FormBookingStep, type FormBookingTarget, type FormEntityHandle, type FormLayoutResult, type FormQuestionPlacement, type FormQuestionTally, FormReference, type FormResponseSummary, type FormRules, type FormRuleTest, type FormSectionPlacement, type FormSubmissionOutcome, type MyFormResponse, } from './entities/forms/form';
|
|
59
|
+
export { Form, type FormAnswer, type FormAnswerValue, type FormBookingStep, type FormBookingTarget, type FormEntityHandle, type FormLayoutResult, type FormQuestionPlacement, type FormQuestionTally, FormReference, type FormResponseSummary, type FormRules, type FormRuleTest, type FormSectionPlacement, type FormSubmissionOutcome, type MyFormResponse, type SavedFormResponse, } from './entities/forms/form';
|
|
43
60
|
export { FormOption, FormQuestion } from './entities/forms/question';
|
|
44
61
|
export { FormResponse } from './entities/forms/response';
|
|
45
62
|
export { FormSection } from './entities/forms/section';
|
|
46
63
|
export type { ListenOptions, MacroEvents } from './events/receiver';
|
|
47
64
|
export { here, type Interpolation, type Mentionable, type MentionPart, msg, type RichMessage, type SimpleMention, toBody, wrapXml, } from './mentions';
|
|
48
65
|
export type { RequestActivity } from './utils/activity';
|
|
66
|
+
/**
|
|
67
|
+
* The authenticated SDK client; every namespace hangs off it.
|
|
68
|
+
*
|
|
69
|
+
* @routing Use when a request is only about the Macro SDK client itself or its shared plumbing, such as live events or an item's access requests; not any request about the user's content, people or settings.
|
|
70
|
+
*/
|
|
49
71
|
export declare class Macro<T extends MacroOpts = MacroOpts> {
|
|
50
72
|
/** routines resources and operations. */
|
|
51
73
|
readonly routines: RoutineNamespace;
|
|
@@ -57,6 +79,8 @@ export declare class Macro<T extends MacroOpts = MacroOpts> {
|
|
|
57
79
|
readonly initiatives: InitiativeNamespace;
|
|
58
80
|
/** apiKeys resources and operations. */
|
|
59
81
|
readonly apiKeys: ApiKeyNamespace;
|
|
82
|
+
/** accountManagers resources and operations. */
|
|
83
|
+
readonly accountManagers: AccountManagerNamespace;
|
|
60
84
|
/** harnesses resources and operations. */
|
|
61
85
|
readonly harnesses: HarnessNamespace;
|
|
62
86
|
/** meetings resources and operations. */
|
|
@@ -71,20 +95,36 @@ export declare class Macro<T extends MacroOpts = MacroOpts> {
|
|
|
71
95
|
readonly calendar: CalendarNamespace;
|
|
72
96
|
readonly calls: CallRecordNamespace;
|
|
73
97
|
readonly channels: ChannelNamespace;
|
|
98
|
+
/** Chats from external providers (WhatsApp) added to Macro: read, share and send. */
|
|
99
|
+
readonly externalChats: ExternalChatsNamespace;
|
|
100
|
+
/** The current user's WhatsApp account and chat list; add chats from it. */
|
|
101
|
+
readonly whatsapp: WhatsAppNamespace;
|
|
74
102
|
readonly chats: ChatNamespace;
|
|
75
103
|
readonly crm: CrmNamespace;
|
|
76
104
|
readonly databases: DatabaseNamespace;
|
|
77
105
|
readonly documents: DocumentNamespace;
|
|
78
106
|
readonly email: EmailNamespace;
|
|
107
|
+
/** Call the user's connected apps and MCP servers from a code execution. */
|
|
108
|
+
readonly connectedApps: ConnectedAppNamespace;
|
|
79
109
|
readonly favorites: FavoritesNamespace;
|
|
80
110
|
readonly foreignEntities: ForeignEntityNamespace;
|
|
81
111
|
/** Build forms and submit answers without granting respondents database access. */
|
|
82
112
|
readonly forms: FormNamespace;
|
|
113
|
+
/** Generate images with AI and attach them to messages. */
|
|
114
|
+
readonly images: ImagesNamespace;
|
|
115
|
+
/** Search the public web and read web pages. */
|
|
116
|
+
readonly web: WebNamespace;
|
|
117
|
+
/** Your own profile: set your name and profile picture. */
|
|
118
|
+
readonly me: MeNamespace;
|
|
83
119
|
readonly notifications: NotificationNamespace;
|
|
84
120
|
readonly pins: PinsNamespace;
|
|
85
121
|
readonly projects: ProjectNamespace;
|
|
86
122
|
readonly properties: PropertiesNamespace;
|
|
123
|
+
/** Share the caller's referral link and email invites to join Macro. */
|
|
124
|
+
readonly referrals: ReferralNamespace;
|
|
87
125
|
readonly tasks: TaskNamespace;
|
|
126
|
+
/** Search every kind of item at once: documents, email, channels, calls, events, sessions and chats. */
|
|
127
|
+
readonly search: SearchNamespace;
|
|
88
128
|
readonly teams: TeamNamespace;
|
|
89
129
|
readonly users: UserNamespace;
|
|
90
130
|
readonly webhooks: WebhooksNamespace;
|
|
@@ -107,33 +147,62 @@ export declare class Macro<T extends MacroOpts = MacroOpts> {
|
|
|
107
147
|
* since a user token always acts as its own user. */
|
|
108
148
|
requestedAs(user: User): Macro<T>;
|
|
109
149
|
}
|
|
150
|
+
export { type AgentActivity, type AgentActivityOptions, AgentInvocation, } from './entities/agent-sessions/activity';
|
|
151
|
+
export type { ArchiveCause, AutoArchiveOverrides, FoldedAgentSessionLog, SessionAutoArchive, } from './entities/agent-sessions/agent-session';
|
|
110
152
|
export type { CodeResult } from './entities/agent-sessions/code-execution';
|
|
111
153
|
export { AgentConversation, ConversationTurn, } from './entities/agent-sessions/conversation';
|
|
112
|
-
export type {
|
|
154
|
+
export type { SessionOrigin, SessionOriginCaller, SessionOriginLineage, SessionOriginRoot, } from './entities/agent-sessions/origin';
|
|
155
|
+
export type { CreateReviewOptions, ReviewCalendarDraft, ReviewDraft, ReviewEmailDraft, } from './entities/agent-sessions/review';
|
|
113
156
|
export { ReviewItem, SessionReview } from './entities/agent-sessions/review';
|
|
114
157
|
export { ToolApproval } from './entities/agent-sessions/tool-approval';
|
|
158
|
+
export type { SessionView } from './entities/agent-sessions/view';
|
|
115
159
|
export { Agent, type AgentOptions } from './entities/agents/agent';
|
|
116
160
|
export { UserApiKey } from './entities/api-keys/api-key';
|
|
161
|
+
export { Bot, type BotOwner, type BotWebhook, type CreateBotOptions, type UpdateBotOptions, } from './entities/bots/bot';
|
|
162
|
+
export { BotToken } from './entities/bots/token';
|
|
163
|
+
export { ChannelAccessRequest } from './entities/channels/access-request';
|
|
117
164
|
export { ChannelActivity } from './entities/channels/activity';
|
|
118
165
|
export { ChannelPicture } from './entities/channels/picture';
|
|
119
166
|
export { ChatGeneration, ChatMessage } from './entities/chats/generation';
|
|
120
|
-
export {
|
|
167
|
+
export type { ConnectedAppKind, ConnectedToolResult, } from './entities/connected-apps/connected-app';
|
|
168
|
+
export type { ConnectorAction, ConnectorInspection, } from './entities/connected-apps/connector';
|
|
169
|
+
export type { ConnectMcpServerResponse } from './entities/connected-apps/namespace';
|
|
170
|
+
export { CrmPipeline, PipelineColumn, PipelineRow, type PipelineStageRequirement, PipelineTable, PipelineView, } from './entities/crm/pipeline';
|
|
121
171
|
export type { DatabaseQueryOptions, DatabaseQueryResult, QueryColumn, QueryResultSet, QueryStatement, QueryTableVersion, } from './entities/databases/query';
|
|
172
|
+
export { type DocumentEditOptions, DocumentEditRefusedError, type DocumentEditResult, EditOutcomeUnknownError, } from './entities/documents/ai-edit';
|
|
122
173
|
export { DocumentAnchor } from './entities/documents/anchor';
|
|
174
|
+
export type { FileContent } from './entities/documents/namespace';
|
|
123
175
|
export { DocumentVersion } from './entities/documents/version';
|
|
124
|
-
export { DraftAttachment, type DraftOptions, EmailDraft, } from './entities/email/draft';
|
|
176
|
+
export { DraftAttachment, type DraftOptions, type DraftSendOptions, EmailDraft, } from './entities/email/draft';
|
|
125
177
|
export { EmailFilter, type EmailFilterOptions } from './entities/email/filter';
|
|
126
178
|
export { EntityMention } from './entities/entity-mentions/mention';
|
|
179
|
+
export { ExternalChat, type ExternalChatContent, } from './entities/external-chat/chat';
|
|
180
|
+
export { ExternalChatMessage } from './entities/external-chat/message';
|
|
181
|
+
export { ExternalChatParticipant } from './entities/external-chat/participant';
|
|
182
|
+
export { ExternalChatSend } from './entities/external-chat/send';
|
|
183
|
+
export { ExternalChatUpload } from './entities/external-chat/upload';
|
|
127
184
|
export { GithubPullRequest, PullRequestChangeset, } from './entities/github-pull-requests/pull-request';
|
|
128
185
|
export { Harness } from './entities/harnesses/harness';
|
|
129
186
|
export { DevicePairing, HarnessPairing } from './entities/harnesses/pairing';
|
|
187
|
+
export { GeneratedImage, StaticImage } from './entities/images/image';
|
|
188
|
+
export type { GenerateImageAspectRatio, GenerateImageOptions, } from './entities/images/namespace';
|
|
130
189
|
export { Initiative, type InitiativeOptions, } from './entities/initiatives/initiative';
|
|
190
|
+
export type { InitiativeSummary } from './entities/initiatives/namespace';
|
|
191
|
+
export { MeNamespace, type UpdateMeOptions, type UploadProfilePictureOptions, } from './entities/me/namespace';
|
|
131
192
|
export { Meeting } from './entities/meetings/meeting';
|
|
132
193
|
export type { TimelineOptions } from './entities/messages/thread';
|
|
133
194
|
export { type MessageParent, MessageThread } from './entities/messages/thread';
|
|
134
195
|
export type { EntityReference } from './entities/reference';
|
|
196
|
+
export type { ReferralLink } from './entities/referrals/namespace';
|
|
135
197
|
export type { RoutineEventFilter, RoutineTriggerOptions, SingleRoutineTrigger, } from './entities/routines/routine';
|
|
136
198
|
export { Routine, RoutineExecution, type RoutineOptions, } from './entities/routines/routine';
|
|
199
|
+
export type { SearchOn, SearchOpts } from './entities/search/options';
|
|
200
|
+
export type { SearchOptions, SearchPage, SearchPageOptions, SearchResult, SearchType, } from './entities/search/types';
|
|
137
201
|
export { AccessRequest, EntityAccess } from './entities/sharing/access';
|
|
138
202
|
export type { SharePermissionOptions } from './entities/sharing/permissions';
|
|
203
|
+
export type { TaskSummary } from './entities/tasks/task';
|
|
204
|
+
export { TeamInvite } from './entities/teams/invite';
|
|
205
|
+
export type { WebFetchOptions, WebFetchResponse, WebSearchOptions, WebSearchResult, WebSearchTopic, } from './entities/web/namespace';
|
|
206
|
+
export { WhatsAppAccount } from './entities/whatsapp/account';
|
|
207
|
+
export { WhatsAppChat, type WhatsAppCommunity, } from './entities/whatsapp/chat';
|
|
139
208
|
export type { WorkspaceFilters, WorkspaceItem, WorkspaceListOptions, WorkspacePage, WorkspacePageOptions, WorkspaceTag, WorkspaceType, } from './entities/workspace/types';
|