@macro-inc/sdk 0.3.0 → 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 +45 -0
- package/dist/{chunk-Y4HQV7EL.js → chunk-AZJUIUIV.js} +26 -0
- package/dist/{chunk-KPR5JIGY.js → chunk-G43PLP2U.js} +95 -0
- package/dist/{chunk-IIICUUWY.js → chunk-PPR7IWZ7.js} +51 -51
- package/dist/{chunk-PTMBRVEK.js → chunk-PTX2RV2N.js} +84 -0
- package/dist/{chunk-OEHZOKGE.js → chunk-PZPTJI6F.js} +16 -0
- package/dist/{chunk-HR32RQGP.js → chunk-ZLBDES7U.js} +307 -1
- package/dist/generated/agent-fold/index.d.ts +6 -1
- 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 +44 -1
- package/dist/generated/agent-harness/types.gen.d.ts +699 -0
- 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 +41 -1
- package/dist/generated/calendar/types.gen.d.ts +904 -2
- 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 +9 -1
- package/dist/generated/cognition/types.gen.d.ts +79 -0
- package/dist/generated/email/types.gen.d.ts +11 -1
- package/dist/generated/notification/index.js +1 -1
- package/dist/generated/notification/sdk.gen.d.ts +20 -20
- package/dist/generated/notification/types.gen.d.ts +77 -72
- 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 +4 -1
- package/dist/generated/scheduled-action/types.gen.d.ts +388 -7
- 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 +151 -1
- package/dist/generated/storage/types.gen.d.ts +3888 -139
- 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 +42 -0
- package/dist/src/entities/agent-sessions/namespace.d.ts +7 -1
- package/dist/src/entities/agent-sessions/origin.d.ts +94 -0
- package/dist/src/entities/ai/namespace.d.ts +1 -1
- package/dist/src/entities/bots/bot.d.ts +108 -0
- package/dist/src/entities/bots/namespace.d.ts +15 -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/create-confirmed.test.d.ts +1 -0
- package/dist/src/entities/calendar/namespace.d.ts +63 -15
- package/dist/src/entities/calls/call-record.d.ts +25 -3
- 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 +19 -2
- package/dist/src/entities/calls/participant.d.ts +22 -0
- package/dist/src/entities/channels/channel.d.ts +21 -3
- package/dist/src/entities/channels/namespace.d.ts +3 -3
- package/dist/src/entities/channels/post.d.ts +10 -2
- package/dist/src/entities/channels/thread.d.ts +4 -0
- package/dist/src/entities/chats/chat.d.ts +1 -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 +1 -1
- package/dist/src/entities/crm/pipeline.d.ts +1 -1
- package/dist/src/entities/documents/document.d.ts +156 -7
- package/dist/src/entities/documents/namespace.d.ts +41 -2
- package/dist/src/entities/documents/office-files.d.ts +47 -0
- package/dist/src/entities/email/draft.d.ts +26 -4
- package/dist/src/entities/email/message.d.ts +91 -1
- package/dist/src/entities/email/namespace.d.ts +26 -3
- package/dist/src/entities/email/namespace.test.d.ts +1 -0
- package/dist/src/entities/email/thread.d.ts +7 -2
- package/dist/src/entities/external-chat/namespace.d.ts +2 -0
- package/dist/src/entities/favorites/namespace.d.ts +1 -1
- package/dist/src/entities/harnesses/namespace.d.ts +5 -1
- package/dist/src/entities/images/namespace.d.ts +5 -1
- package/dist/src/entities/me/namespace.d.ts +5 -1
- package/dist/src/entities/meetings/meeting.d.ts +5 -0
- package/dist/src/entities/messages/thread.d.ts +1 -1
- package/dist/src/entities/pins/namespace.d.ts +1 -1
- package/dist/src/entities/projects/namespace.d.ts +1 -1
- package/dist/src/entities/projects/project.d.ts +1 -1
- package/dist/src/entities/search/namespace.d.ts +65 -0
- package/dist/src/entities/search/options.d.ts +29 -0
- package/dist/src/entities/search/types.d.ts +90 -0
- package/dist/src/entities/tasks/namespace.d.ts +1 -1
- package/dist/src/entities/tasks/task.d.ts +4 -3
- package/dist/src/entities/users/namespace.d.ts +1 -1
- package/dist/src/entities/whatsapp/namespace.d.ts +2 -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/call.d.ts +101 -0
- package/dist/src/events/types.d.ts +2 -1
- package/dist/src/macro.d.ts +33 -1
- package/dist/src/macro.js +6423 -4265
- package/dist/src/utils/activity.d.ts +23 -2
- package/package.json +1 -1
- package/dist/src/entities/search.d.ts +0 -53
|
@@ -1,6 +1,17 @@
|
|
|
1
|
+
import type { Link as EmailLink } from '../../../generated/email/types.gen';
|
|
1
2
|
import type { PostSoupAstRequest } from '../../../generated/storage/types.gen';
|
|
2
3
|
import type { MacroClient } from '../../utils/client';
|
|
3
4
|
import type { WorkspaceListOptions, WorkspaceTag } from './types';
|
|
5
|
+
/** A tag label as a filter names it: any scope unless one is given. */
|
|
6
|
+
export type TagFilter = {
|
|
7
|
+
label: string;
|
|
8
|
+
scope?: 'personal' | 'team';
|
|
9
|
+
};
|
|
10
|
+
/** One of the caller's tag options. */
|
|
11
|
+
type ResolvedTag = WorkspaceTag & {
|
|
12
|
+
id: string;
|
|
13
|
+
definitionId: string;
|
|
14
|
+
};
|
|
4
15
|
/** @internal */
|
|
5
16
|
export declare class WorkspaceQuery {
|
|
6
17
|
private readonly client;
|
|
@@ -8,5 +19,17 @@ export declare class WorkspaceQuery {
|
|
|
8
19
|
constructor(client: MacroClient);
|
|
9
20
|
private sets;
|
|
10
21
|
tagMap(): Promise<Map<string, WorkspaceTag>>;
|
|
22
|
+
/**
|
|
23
|
+
* The connected inbox an address names, matched case-insensitively; none for
|
|
24
|
+
* a blank address. An unknown or ambiguous address fails with the choices.
|
|
25
|
+
*/
|
|
26
|
+
inbox(address: string | undefined): Promise<EmailLink | undefined>;
|
|
27
|
+
/**
|
|
28
|
+
* The caller's tag options that the labels name, deduplicated. An unknown
|
|
29
|
+
* label fails with the available tags; with `all`, so does a label both
|
|
30
|
+
* scopes share, rather than guessing one.
|
|
31
|
+
*/
|
|
32
|
+
tags(filters: TagFilter[] | undefined, match: 'any' | 'all' | undefined): Promise<ResolvedTag[]>;
|
|
11
33
|
body(options: WorkspaceListOptions): Promise<PostSoupAstRequest>;
|
|
12
34
|
}
|
|
35
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ApiEntityFilterAst, SoupApiItem } from '../../../generated/storage/types.gen';
|
|
2
|
+
import type { AgentSession } from '../agent-sessions/agent-session';
|
|
2
3
|
import type { CalendarEvent } from '../calendar/event';
|
|
3
4
|
import type { CallRecord } from '../calls/call-record';
|
|
4
5
|
import type { Channel } from '../channels/channel';
|
|
@@ -9,7 +10,7 @@ import type { EmailThread } from '../email/thread';
|
|
|
9
10
|
import type { ForeignEntity } from '../foreign/foreign-entity';
|
|
10
11
|
import type { Project } from '../projects/project';
|
|
11
12
|
/** Workspace types supported by the browsing API. Tasks are documents. */
|
|
12
|
-
export type WorkspaceType = 'calendar_event' | 'document' | 'ai_chat' | 'project' | 'email' | 'channel' | 'channel_thread' | 'call' | 'foreign_entity';
|
|
13
|
+
export type WorkspaceType = 'agent_session' | 'calendar_event' | 'document' | 'ai_chat' | 'project' | 'email' | 'channel' | 'channel_thread' | 'call' | 'foreign_entity';
|
|
13
14
|
/** A tag label visible to the caller, optionally qualified by ownership scope. */
|
|
14
15
|
export type WorkspaceTag = {
|
|
15
16
|
label: string;
|
|
@@ -23,7 +24,7 @@ export type WorkspaceTag = {
|
|
|
23
24
|
* Each entity filter applies only to that type; `propf` applies across types.
|
|
24
25
|
* See {@link WorkspaceNamespace} for task and time-window examples.
|
|
25
26
|
*/
|
|
26
|
-
export type WorkspaceFilters = Pick<ApiEntityFilterAst, 'df' | 'pf' | 'cf' | 'ef' | 'chanf' | 'cthf' | 'callf' | 'fef' | 'calf' | 'propf'>;
|
|
27
|
+
export type WorkspaceFilters = Pick<ApiEntityFilterAst, 'df' | 'pf' | 'cf' | 'ef' | 'chanf' | 'cthf' | 'callf' | 'fef' | 'calf' | 'asf' | 'propf'>;
|
|
27
28
|
/** Options shared by bounded pages and automatic iteration. */
|
|
28
29
|
export type WorkspaceListOptions = WorkspaceFilters & {
|
|
29
30
|
/** Omitted or empty means all supported types; signal defaults to email when omitted. */
|
|
@@ -84,7 +85,9 @@ export type WorkspaceItem = (Entry<'document', 'document', Document> & {
|
|
|
84
85
|
createdBy: string;
|
|
85
86
|
}) | (Entry<'calendarEvent', 'calendar_event', CalendarEvent> & Pick<Extract<SoupApiItem, {
|
|
86
87
|
tag: 'calendarEvent';
|
|
87
|
-
}>['data'], 'title' | 'status' | 'location' | 'conferenceUrl' | 'conferenceProvider' | 'time'>) | (Entry<'
|
|
88
|
+
}>['data'], 'title' | 'status' | 'location' | 'conferenceUrl' | 'conferenceProvider' | 'time'>) | (Entry<'agentSession', 'agent_session', AgentSession> & Pick<Extract<SoupApiItem, {
|
|
89
|
+
tag: 'agentSession';
|
|
90
|
+
}>['data'], 'name' | 'archivedAt' | 'pullRequestUrl' | 'repoUrl'>) | (Entry<'foreignEntity', 'foreign_entity', ForeignEntity> & Pick<Extract<SoupApiItem, {
|
|
88
91
|
tag: 'foreignEntity';
|
|
89
92
|
}>['data'], 'foreignEntityId' | 'foreignEntitySource' | 'metadata'>);
|
|
90
93
|
/** A bounded page. A cursor means more results exist, not an exact total count. */
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { CallRecord } from '../../entities/calls/call-record';
|
|
2
|
+
import { Channel } from '../../entities/channels/channel';
|
|
3
|
+
import { Meeting } from '../../entities/meetings/meeting';
|
|
4
|
+
import { User } from '../../entities/users/user';
|
|
5
|
+
import type { MacroClient } from '../../utils/client';
|
|
6
|
+
import type { MacroEvent } from '../types';
|
|
7
|
+
export type CallEvent = Extract<MacroEvent, {
|
|
8
|
+
event_type: `call.${string}`;
|
|
9
|
+
}>;
|
|
10
|
+
/** Attach call, channel, meeting, and actor handles to call notifications. */
|
|
11
|
+
export declare function hydrateCallEvent(client: MacroClient, event: CallEvent): {
|
|
12
|
+
call: CallRecord;
|
|
13
|
+
channel: Channel | undefined;
|
|
14
|
+
meeting: Meeting | undefined;
|
|
15
|
+
creator: User | undefined;
|
|
16
|
+
user: User | undefined;
|
|
17
|
+
inviter: User | undefined;
|
|
18
|
+
event_type: "call.started";
|
|
19
|
+
metadata: import("../../../generated/storage").CallNotificationMetadata;
|
|
20
|
+
} | {
|
|
21
|
+
call: CallRecord;
|
|
22
|
+
channel: Channel | undefined;
|
|
23
|
+
meeting: Meeting | undefined;
|
|
24
|
+
creator: User | undefined;
|
|
25
|
+
user: User | undefined;
|
|
26
|
+
inviter: User | undefined;
|
|
27
|
+
event_type: "call.ended";
|
|
28
|
+
metadata: import("../../../generated/storage").CallNotificationMetadata;
|
|
29
|
+
} | {
|
|
30
|
+
call: CallRecord;
|
|
31
|
+
channel: Channel | undefined;
|
|
32
|
+
meeting: Meeting | undefined;
|
|
33
|
+
creator: User | undefined;
|
|
34
|
+
user: User | undefined;
|
|
35
|
+
inviter: User | undefined;
|
|
36
|
+
event_type: "call.participant_joined";
|
|
37
|
+
metadata: import("../../../generated/storage").CallNotificationMetadata;
|
|
38
|
+
} | {
|
|
39
|
+
call: CallRecord;
|
|
40
|
+
channel: Channel | undefined;
|
|
41
|
+
meeting: Meeting | undefined;
|
|
42
|
+
creator: User | undefined;
|
|
43
|
+
user: User | undefined;
|
|
44
|
+
inviter: User | undefined;
|
|
45
|
+
event_type: "call.participant_left";
|
|
46
|
+
metadata: import("../../../generated/storage").CallNotificationMetadata;
|
|
47
|
+
} | {
|
|
48
|
+
call: CallRecord;
|
|
49
|
+
channel: Channel | undefined;
|
|
50
|
+
meeting: Meeting | undefined;
|
|
51
|
+
creator: User | undefined;
|
|
52
|
+
user: User | undefined;
|
|
53
|
+
inviter: User | undefined;
|
|
54
|
+
event_type: "call.recording_ready";
|
|
55
|
+
metadata: import("../../../generated/storage").CallNotificationMetadata;
|
|
56
|
+
} | {
|
|
57
|
+
call: CallRecord;
|
|
58
|
+
channel: Channel | undefined;
|
|
59
|
+
meeting: Meeting | undefined;
|
|
60
|
+
creator: User | undefined;
|
|
61
|
+
user: User | undefined;
|
|
62
|
+
inviter: User | undefined;
|
|
63
|
+
event_type: "call.summarized";
|
|
64
|
+
metadata: import("../../../generated/storage").CallNotificationMetadata;
|
|
65
|
+
} | {
|
|
66
|
+
call: CallRecord;
|
|
67
|
+
channel: Channel | undefined;
|
|
68
|
+
meeting: Meeting | undefined;
|
|
69
|
+
creator: User | undefined;
|
|
70
|
+
user: User | undefined;
|
|
71
|
+
inviter: User | undefined;
|
|
72
|
+
event_type: "call.ringing";
|
|
73
|
+
metadata: import("../../../generated/storage").CallNotificationMetadata;
|
|
74
|
+
} | {
|
|
75
|
+
call: CallRecord;
|
|
76
|
+
channel: Channel | undefined;
|
|
77
|
+
meeting: Meeting | undefined;
|
|
78
|
+
creator: User | undefined;
|
|
79
|
+
user: User | undefined;
|
|
80
|
+
inviter: User | undefined;
|
|
81
|
+
event_type: "call.answered";
|
|
82
|
+
metadata: import("../../../generated/storage").CallNotificationMetadata;
|
|
83
|
+
} | {
|
|
84
|
+
call: CallRecord;
|
|
85
|
+
channel: Channel | undefined;
|
|
86
|
+
meeting: Meeting | undefined;
|
|
87
|
+
creator: User | undefined;
|
|
88
|
+
user: User | undefined;
|
|
89
|
+
inviter: User | undefined;
|
|
90
|
+
event_type: "call.declined";
|
|
91
|
+
metadata: import("../../../generated/storage").CallNotificationMetadata;
|
|
92
|
+
} | {
|
|
93
|
+
call: CallRecord;
|
|
94
|
+
channel: Channel | undefined;
|
|
95
|
+
meeting: Meeting | undefined;
|
|
96
|
+
creator: User | undefined;
|
|
97
|
+
user: User | undefined;
|
|
98
|
+
inviter: User | undefined;
|
|
99
|
+
event_type: "call.invited";
|
|
100
|
+
metadata: import("../../../generated/storage").CallNotificationMetadata;
|
|
101
|
+
} | 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,6 +9,7 @@ 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';
|
|
@@ -29,6 +31,7 @@ import { ProjectNamespace } from './entities/projects/namespace';
|
|
|
29
31
|
import { PropertiesNamespace } from './entities/properties/namespace';
|
|
30
32
|
import { ReferralNamespace } from './entities/referrals/namespace';
|
|
31
33
|
import { RoutineNamespace } from './entities/routines/namespace';
|
|
34
|
+
import { SearchNamespace } from './entities/search/namespace';
|
|
32
35
|
import { TaskNamespace } from './entities/tasks/namespace';
|
|
33
36
|
import { TeamNamespace } from './entities/teams/namespace';
|
|
34
37
|
import { UnfurlNamespace } from './entities/unfurls/namespace';
|
|
@@ -43,7 +46,15 @@ import { MacroClient } from './utils/client';
|
|
|
43
46
|
export type { MacroOpts } from './config';
|
|
44
47
|
export { CodeExecution } from './entities/agent-sessions/code-execution';
|
|
45
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';
|
|
46
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';
|
|
47
58
|
export { type AddColumnOptions, type ApplyOpsOptions, type ChangeColumnTypeOptions, type ColumnType, type ConvertIntoNewColumnOptions, MacroOpRefusedError, type OpResultOf, } from './entities/databases/database';
|
|
48
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';
|
|
49
60
|
export { FormOption, FormQuestion } from './entities/forms/question';
|
|
@@ -52,6 +63,11 @@ export { FormSection } from './entities/forms/section';
|
|
|
52
63
|
export type { ListenOptions, MacroEvents } from './events/receiver';
|
|
53
64
|
export { here, type Interpolation, type Mentionable, type MentionPart, msg, type RichMessage, type SimpleMention, toBody, wrapXml, } from './mentions';
|
|
54
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
|
+
*/
|
|
55
71
|
export declare class Macro<T extends MacroOpts = MacroOpts> {
|
|
56
72
|
/** routines resources and operations. */
|
|
57
73
|
readonly routines: RoutineNamespace;
|
|
@@ -63,6 +79,8 @@ export declare class Macro<T extends MacroOpts = MacroOpts> {
|
|
|
63
79
|
readonly initiatives: InitiativeNamespace;
|
|
64
80
|
/** apiKeys resources and operations. */
|
|
65
81
|
readonly apiKeys: ApiKeyNamespace;
|
|
82
|
+
/** accountManagers resources and operations. */
|
|
83
|
+
readonly accountManagers: AccountManagerNamespace;
|
|
66
84
|
/** harnesses resources and operations. */
|
|
67
85
|
readonly harnesses: HarnessNamespace;
|
|
68
86
|
/** meetings resources and operations. */
|
|
@@ -86,6 +104,8 @@ export declare class Macro<T extends MacroOpts = MacroOpts> {
|
|
|
86
104
|
readonly databases: DatabaseNamespace;
|
|
87
105
|
readonly documents: DocumentNamespace;
|
|
88
106
|
readonly email: EmailNamespace;
|
|
107
|
+
/** Call the user's connected apps and MCP servers from a code execution. */
|
|
108
|
+
readonly connectedApps: ConnectedAppNamespace;
|
|
89
109
|
readonly favorites: FavoritesNamespace;
|
|
90
110
|
readonly foreignEntities: ForeignEntityNamespace;
|
|
91
111
|
/** Build forms and submit answers without granting respondents database access. */
|
|
@@ -103,6 +123,8 @@ export declare class Macro<T extends MacroOpts = MacroOpts> {
|
|
|
103
123
|
/** Share the caller's referral link and email invites to join Macro. */
|
|
104
124
|
readonly referrals: ReferralNamespace;
|
|
105
125
|
readonly tasks: TaskNamespace;
|
|
126
|
+
/** Search every kind of item at once: documents, email, channels, calls, events, sessions and chats. */
|
|
127
|
+
readonly search: SearchNamespace;
|
|
106
128
|
readonly teams: TeamNamespace;
|
|
107
129
|
readonly users: UserNamespace;
|
|
108
130
|
readonly webhooks: WebhooksNamespace;
|
|
@@ -125,25 +147,33 @@ export declare class Macro<T extends MacroOpts = MacroOpts> {
|
|
|
125
147
|
* since a user token always acts as its own user. */
|
|
126
148
|
requestedAs(user: User): Macro<T>;
|
|
127
149
|
}
|
|
150
|
+
export { type AgentActivity, type AgentActivityOptions, AgentInvocation, } from './entities/agent-sessions/activity';
|
|
128
151
|
export type { ArchiveCause, AutoArchiveOverrides, FoldedAgentSessionLog, SessionAutoArchive, } from './entities/agent-sessions/agent-session';
|
|
129
152
|
export type { CodeResult } from './entities/agent-sessions/code-execution';
|
|
130
153
|
export { AgentConversation, ConversationTurn, } from './entities/agent-sessions/conversation';
|
|
154
|
+
export type { SessionOrigin, SessionOriginCaller, SessionOriginLineage, SessionOriginRoot, } from './entities/agent-sessions/origin';
|
|
131
155
|
export type { CreateReviewOptions, ReviewCalendarDraft, ReviewDraft, ReviewEmailDraft, } from './entities/agent-sessions/review';
|
|
132
156
|
export { ReviewItem, SessionReview } from './entities/agent-sessions/review';
|
|
133
157
|
export { ToolApproval } from './entities/agent-sessions/tool-approval';
|
|
134
158
|
export type { SessionView } from './entities/agent-sessions/view';
|
|
135
159
|
export { Agent, type AgentOptions } from './entities/agents/agent';
|
|
136
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';
|
|
137
163
|
export { ChannelAccessRequest } from './entities/channels/access-request';
|
|
138
164
|
export { ChannelActivity } from './entities/channels/activity';
|
|
139
165
|
export { ChannelPicture } from './entities/channels/picture';
|
|
140
166
|
export { ChatGeneration, ChatMessage } from './entities/chats/generation';
|
|
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';
|
|
141
170
|
export { CrmPipeline, PipelineColumn, PipelineRow, type PipelineStageRequirement, PipelineTable, PipelineView, } from './entities/crm/pipeline';
|
|
142
171
|
export type { DatabaseQueryOptions, DatabaseQueryResult, QueryColumn, QueryResultSet, QueryStatement, QueryTableVersion, } from './entities/databases/query';
|
|
143
172
|
export { type DocumentEditOptions, DocumentEditRefusedError, type DocumentEditResult, EditOutcomeUnknownError, } from './entities/documents/ai-edit';
|
|
144
173
|
export { DocumentAnchor } from './entities/documents/anchor';
|
|
174
|
+
export type { FileContent } from './entities/documents/namespace';
|
|
145
175
|
export { DocumentVersion } from './entities/documents/version';
|
|
146
|
-
export { DraftAttachment, type DraftOptions, EmailDraft, } from './entities/email/draft';
|
|
176
|
+
export { DraftAttachment, type DraftOptions, type DraftSendOptions, EmailDraft, } from './entities/email/draft';
|
|
147
177
|
export { EmailFilter, type EmailFilterOptions } from './entities/email/filter';
|
|
148
178
|
export { EntityMention } from './entities/entity-mentions/mention';
|
|
149
179
|
export { ExternalChat, type ExternalChatContent, } from './entities/external-chat/chat';
|
|
@@ -166,6 +196,8 @@ export type { EntityReference } from './entities/reference';
|
|
|
166
196
|
export type { ReferralLink } from './entities/referrals/namespace';
|
|
167
197
|
export type { RoutineEventFilter, RoutineTriggerOptions, SingleRoutineTrigger, } from './entities/routines/routine';
|
|
168
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';
|
|
169
201
|
export { AccessRequest, EntityAccess } from './entities/sharing/access';
|
|
170
202
|
export type { SharePermissionOptions } from './entities/sharing/permissions';
|
|
171
203
|
export type { TaskSummary } from './entities/tasks/task';
|