samva 0.35.0 → 0.37.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/AGENTS.md +17 -0
- package/README.md +1 -0
- package/dist/client/sdk.gen.d.ts +102 -82
- package/dist/client/sdk.gen.js +322 -244
- package/dist/client/types.gen.d.ts +600 -378
- package/dist/effect/agents.d.ts +194 -4
- package/dist/effect/agents.js +3 -1
- package/dist/effect/analytics.d.ts +6 -0
- package/dist/effect/api-keys.d.ts +3 -6
- package/dist/effect/campaigns.d.ts +216 -216
- package/dist/effect/conversations.d.ts +6 -0
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/extension-installations.d.ts +53 -1
- package/dist/effect/generated/agents.d.ts +1803 -81
- package/dist/effect/generated/agents.js +92 -26
- package/dist/effect/generated/analytics.d.ts +19 -1
- package/dist/effect/generated/analytics.js +8 -2
- package/dist/effect/generated/api-keys.d.ts +4 -29
- package/dist/effect/generated/api-keys.js +5 -6
- package/dist/effect/generated/campaigns.d.ts +22 -0
- package/dist/effect/generated/campaigns.js +3 -1
- package/dist/effect/generated/conversations.d.ts +104 -3
- package/dist/effect/generated/conversations.js +12 -2
- package/dist/effect/generated/extension-installations.d.ts +845 -68
- package/dist/effect/generated/extension-installations.js +22 -26
- package/dist/effect/generated/index.d.ts +3 -1
- package/dist/effect/generated/mailboxes.d.ts +3423 -1446
- package/dist/effect/generated/mailboxes.js +226 -220
- package/dist/effect/generated/namespaces.d.ts +7 -31
- package/dist/effect/generated/namespaces.js +4 -4
- package/dist/effect/generated/policies.d.ts +953 -0
- package/dist/effect/generated/policies.js +116 -0
- package/dist/effect/generated/scheduled-messages.d.ts +45 -4
- package/dist/effect/generated/scheduled-messages.js +8 -3
- package/dist/effect/generated/shared.d.ts +893 -224
- package/dist/effect/generated/shared.js +194 -60
- package/dist/effect/generated/templates.d.ts +474 -668
- package/dist/effect/generated/templates.js +65 -45
- package/dist/effect/generated/webhooks.d.ts +22 -19
- package/dist/effect/generated/webhooks.js +10 -1
- package/dist/effect/generated/whoami.d.ts +0 -4
- package/dist/effect/generated-metadata.d.ts +36 -32
- package/dist/effect/generated-metadata.js +127 -105
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +3 -2
- package/dist/effect/internal/operation.js +5 -32
- package/dist/effect/journeys.d.ts +146 -146
- package/dist/effect/mailboxes.d.ts +575 -129
- package/dist/effect/mailboxes.js +1 -11
- package/dist/effect/policies.d.ts +65 -0
- package/dist/effect/policies.js +16 -0
- package/dist/effect/scheduled-messages.d.ts +6 -0
- package/dist/effect/templates.d.ts +6 -8
- package/dist/effect/templates.js +5 -3
- package/dist/effect/topics.d.ts +2 -2
- package/dist/effect/webhooks.d.ts +7 -4
- package/dist/index.js +2 -2
- package/dist/mailbox/test.js +11 -4
- package/dist/mailbox/types.d.ts +39 -3
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +3 -1
- package/dist/promises/client.js +5 -3
- package/dist/promises/errors.gen.d.ts +18 -2
- package/dist/promises/errors.gen.js +335 -33
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +30 -28
- package/dist/service-map.js +219 -786
- package/package.json +6 -2
|
@@ -5,12 +5,14 @@ export declare const list: ((input?: {
|
|
|
5
5
|
readonly cursor?: string | undefined;
|
|
6
6
|
readonly after?: string | undefined;
|
|
7
7
|
readonly before?: string | undefined;
|
|
8
|
+
readonly namespaceId?: string | undefined;
|
|
8
9
|
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesList">) & {
|
|
9
10
|
readonly pages: (input?: {
|
|
10
11
|
readonly limit?: number | null | undefined;
|
|
11
12
|
readonly cursor?: string | undefined;
|
|
12
13
|
readonly after?: string | undefined;
|
|
13
14
|
readonly before?: string | undefined;
|
|
15
|
+
readonly namespaceId?: string | undefined;
|
|
14
16
|
} | undefined) => import("effect/Stream").Stream<{
|
|
15
17
|
readonly items: readonly {
|
|
16
18
|
readonly id: string & import("effect/Brand").Brand<"MailboxId">;
|
|
@@ -21,6 +23,7 @@ export declare const list: ((input?: {
|
|
|
21
23
|
readonly name: string;
|
|
22
24
|
readonly status: "active" | "paused";
|
|
23
25
|
readonly primaryAddress: string | null;
|
|
26
|
+
readonly sendingStatus: "failed" | "pending" | "ready" | null;
|
|
24
27
|
readonly createdAt: string;
|
|
25
28
|
}[];
|
|
26
29
|
readonly nextCursor: string | null;
|
|
@@ -30,6 +33,7 @@ export declare const list: ((input?: {
|
|
|
30
33
|
readonly cursor?: string | undefined;
|
|
31
34
|
readonly after?: string | undefined;
|
|
32
35
|
readonly before?: string | undefined;
|
|
36
|
+
readonly namespaceId?: string | undefined;
|
|
33
37
|
} | undefined) => import("effect/Stream").Stream<{
|
|
34
38
|
readonly id: string & import("effect/Brand").Brand<"MailboxId">;
|
|
35
39
|
readonly kind: "personal" | "shared";
|
|
@@ -39,6 +43,7 @@ export declare const list: ((input?: {
|
|
|
39
43
|
readonly name: string;
|
|
40
44
|
readonly status: "active" | "paused";
|
|
41
45
|
readonly primaryAddress: string | null;
|
|
46
|
+
readonly sendingStatus: "failed" | "pending" | "ready" | null;
|
|
42
47
|
readonly createdAt: string;
|
|
43
48
|
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
44
49
|
};
|
|
@@ -113,7 +118,6 @@ export declare const listGrants: ((input: {
|
|
|
113
118
|
readonly displayName?: string | null;
|
|
114
119
|
};
|
|
115
120
|
readonly permissions: readonly ("action:approve" | "action:propose" | "draft:write" | "label:write" | "mailbox:configure" | "mailbox:read" | "note:write" | "policy:read" | "quarantine:read" | "quarantine:release" | "thread:read" | "thread:write")[];
|
|
116
|
-
readonly sendMode: "approval" | "send";
|
|
117
121
|
readonly createdAt: string;
|
|
118
122
|
}[];
|
|
119
123
|
readonly nextCursor: string | null;
|
|
@@ -130,7 +134,6 @@ export declare const listGrants: ((input: {
|
|
|
130
134
|
readonly displayName?: string | null;
|
|
131
135
|
};
|
|
132
136
|
readonly permissions: readonly ("action:approve" | "action:propose" | "draft:write" | "label:write" | "mailbox:configure" | "mailbox:read" | "note:write" | "policy:read" | "quarantine:read" | "quarantine:release" | "thread:read" | "thread:write")[];
|
|
133
|
-
readonly sendMode: "approval" | "send";
|
|
134
137
|
readonly createdAt: string;
|
|
135
138
|
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
136
139
|
};
|
|
@@ -138,44 +141,16 @@ export declare const createGrant: (input: {
|
|
|
138
141
|
readonly id: string;
|
|
139
142
|
readonly userId: string;
|
|
140
143
|
readonly role: "admin" | "collaborator" | "viewer";
|
|
141
|
-
readonly sendMode?: "approval" | "send" | null | undefined;
|
|
142
144
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesCreateGrant">;
|
|
143
145
|
export declare const updateGrant: (input: {
|
|
144
146
|
readonly id: string;
|
|
145
147
|
readonly grantId: string;
|
|
146
148
|
readonly role?: "admin" | "collaborator" | "viewer" | null | undefined;
|
|
147
|
-
readonly sendMode?: "approval" | "send" | null | undefined;
|
|
148
149
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesUpdateGrant">;
|
|
149
150
|
export declare const revokeGrant: (input: {
|
|
150
151
|
readonly id: string;
|
|
151
152
|
readonly grantId: string;
|
|
152
153
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesRevokeGrant">;
|
|
153
|
-
export declare const listPolicies: (input: {
|
|
154
|
-
readonly id: string;
|
|
155
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListPolicies">;
|
|
156
|
-
export declare const createPolicy: (input: {
|
|
157
|
-
readonly id: string;
|
|
158
|
-
readonly name: string;
|
|
159
|
-
readonly outcome: "deny" | "requireApproval";
|
|
160
|
-
readonly reason?: string | null | undefined;
|
|
161
|
-
readonly enabled?: boolean | null | undefined;
|
|
162
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesCreatePolicy">;
|
|
163
|
-
export declare const getPolicy: (input: {
|
|
164
|
-
readonly id: string;
|
|
165
|
-
readonly policyId: string;
|
|
166
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesGetPolicy">;
|
|
167
|
-
export declare const updatePolicy: (input: {
|
|
168
|
-
readonly id: string;
|
|
169
|
-
readonly policyId: string;
|
|
170
|
-
readonly name?: string | null | undefined;
|
|
171
|
-
readonly outcome?: "deny" | "requireApproval" | null | undefined;
|
|
172
|
-
readonly reason?: string | null | undefined;
|
|
173
|
-
readonly enabled?: boolean | null | undefined;
|
|
174
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesUpdatePolicy">;
|
|
175
|
-
export declare const deletePolicy: (input: {
|
|
176
|
-
readonly id: string;
|
|
177
|
-
readonly policyId: string;
|
|
178
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesDeletePolicy">;
|
|
179
154
|
export declare const listFolders: (input: {
|
|
180
155
|
readonly id: string;
|
|
181
156
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesListFolders">;
|
|
@@ -423,7 +398,152 @@ export declare const getNeedsYou: ((input?: {
|
|
|
423
398
|
readonly cursor?: string | undefined;
|
|
424
399
|
} | undefined) => import("effect/Stream").Stream<{
|
|
425
400
|
readonly items: readonly ({
|
|
426
|
-
readonly type: "
|
|
401
|
+
readonly type: "heldAction";
|
|
402
|
+
readonly actionType: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "handoff" | "reply" | "sendMessage" | "toolCall" | "updateDraft";
|
|
403
|
+
readonly decision: {
|
|
404
|
+
readonly requirement: "model" | "never" | "person" | "run";
|
|
405
|
+
readonly decider: "agent" | "model" | "person" | "rule";
|
|
406
|
+
readonly outcome: "allow" | "hold" | "refuse";
|
|
407
|
+
readonly reason: string;
|
|
408
|
+
readonly scopes: readonly {
|
|
409
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
410
|
+
readonly id: string;
|
|
411
|
+
}[];
|
|
412
|
+
readonly rule?: {
|
|
413
|
+
readonly scope: {
|
|
414
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
415
|
+
readonly id: string;
|
|
416
|
+
};
|
|
417
|
+
readonly index: number;
|
|
418
|
+
} | null;
|
|
419
|
+
readonly guard?: string | null;
|
|
420
|
+
readonly guardReason?: string | null;
|
|
421
|
+
readonly id: string & import("effect/Brand").Brand<"PolicyDecisionId">;
|
|
422
|
+
readonly reviewRound: number;
|
|
423
|
+
readonly subject: {
|
|
424
|
+
readonly kind: "agent";
|
|
425
|
+
readonly id: string & import("effect/Brand").Brand<"AgentId">;
|
|
426
|
+
} | {
|
|
427
|
+
readonly kind: "apiKey";
|
|
428
|
+
readonly id: string & import("effect/Brand").Brand<"ApiKeyId">;
|
|
429
|
+
} | {
|
|
430
|
+
readonly kind: "member";
|
|
431
|
+
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
432
|
+
} | {
|
|
433
|
+
readonly kind: "extension";
|
|
434
|
+
readonly id: string & import("effect/Brand").Brand<"ExtensionInstallationId">;
|
|
435
|
+
};
|
|
436
|
+
readonly action: {
|
|
437
|
+
readonly effect: "final" | "read" | "write";
|
|
438
|
+
readonly resource: {
|
|
439
|
+
readonly mailboxId: string & import("effect/Brand").Brand<"MailboxId">;
|
|
440
|
+
readonly channel?: "email" | "sms" | "whatsapp" | null;
|
|
441
|
+
readonly integration?: string | null;
|
|
442
|
+
readonly integrationId?: (string & import("effect/Brand").Brand<"IntegrationId">) | null;
|
|
443
|
+
readonly tool?: string | null;
|
|
444
|
+
};
|
|
445
|
+
readonly facts: {
|
|
446
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
447
|
+
};
|
|
448
|
+
readonly kind: "reply" | "send" | "toolCall";
|
|
449
|
+
readonly args: import("./generated").JsonValue;
|
|
450
|
+
} | {
|
|
451
|
+
readonly effect: "final" | "read" | "write";
|
|
452
|
+
readonly resource: {
|
|
453
|
+
readonly mailboxId: string & import("effect/Brand").Brand<"MailboxId">;
|
|
454
|
+
readonly channel?: "email" | "sms" | "whatsapp" | null;
|
|
455
|
+
readonly integration?: string | null;
|
|
456
|
+
readonly integrationId?: (string & import("effect/Brand").Brand<"IntegrationId">) | null;
|
|
457
|
+
readonly tool?: string | null;
|
|
458
|
+
};
|
|
459
|
+
readonly facts: {
|
|
460
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
461
|
+
};
|
|
462
|
+
readonly kind: "handoff";
|
|
463
|
+
readonly args: {
|
|
464
|
+
readonly reason: string;
|
|
465
|
+
readonly draft?: import("./generated").JsonValue;
|
|
466
|
+
};
|
|
467
|
+
};
|
|
468
|
+
readonly judge?: {
|
|
469
|
+
readonly model: string;
|
|
470
|
+
readonly instructionVersion?: string | null;
|
|
471
|
+
readonly instructionHash?: string | null;
|
|
472
|
+
readonly ms: number;
|
|
473
|
+
readonly usage: {
|
|
474
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
475
|
+
};
|
|
476
|
+
} | null;
|
|
477
|
+
readonly resolution?: {
|
|
478
|
+
readonly by: string & import("effect/Brand").Brand<"UserId">;
|
|
479
|
+
readonly at: string;
|
|
480
|
+
readonly as: "alwaysAllowed" | "approved" | "denied" | "edited";
|
|
481
|
+
readonly diff?: {
|
|
482
|
+
readonly text?: {
|
|
483
|
+
readonly before: string | null;
|
|
484
|
+
readonly after: string | null;
|
|
485
|
+
} | null;
|
|
486
|
+
readonly html?: {
|
|
487
|
+
readonly before: string | null;
|
|
488
|
+
readonly after: string | null;
|
|
489
|
+
} | null;
|
|
490
|
+
} | null;
|
|
491
|
+
} | null;
|
|
492
|
+
};
|
|
493
|
+
readonly tool: {
|
|
494
|
+
readonly name: string;
|
|
495
|
+
readonly argumentsHash: string;
|
|
496
|
+
readonly arguments: {
|
|
497
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
498
|
+
};
|
|
499
|
+
} | null;
|
|
500
|
+
readonly intent: {
|
|
501
|
+
readonly channel: "email";
|
|
502
|
+
readonly draftRevision: number;
|
|
503
|
+
readonly from: string;
|
|
504
|
+
readonly fromName: string | null;
|
|
505
|
+
readonly to: readonly [string, ...string[]];
|
|
506
|
+
readonly cc: readonly string[];
|
|
507
|
+
readonly bcc: readonly string[];
|
|
508
|
+
readonly replyTo: readonly string[];
|
|
509
|
+
readonly subject: string;
|
|
510
|
+
readonly text: string | null;
|
|
511
|
+
readonly html: string | null;
|
|
512
|
+
readonly attachments: readonly {
|
|
513
|
+
readonly filename: string;
|
|
514
|
+
readonly content?: string | null;
|
|
515
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
516
|
+
readonly contentType: string;
|
|
517
|
+
readonly size: number;
|
|
518
|
+
}[];
|
|
519
|
+
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
520
|
+
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
521
|
+
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
522
|
+
} | {
|
|
523
|
+
readonly channel: "sms" | "whatsapp";
|
|
524
|
+
readonly draftRevision: number;
|
|
525
|
+
readonly endpointId: string & import("effect/Brand").Brand<"MailboxEndpointId">;
|
|
526
|
+
readonly sender: {
|
|
527
|
+
readonly channel: "whatsapp";
|
|
528
|
+
readonly businessAccountId: string & import("effect/Brand").Brand<"WhatsAppBusinessAccountId">;
|
|
529
|
+
} | {
|
|
530
|
+
readonly channel: "sms";
|
|
531
|
+
readonly phoneNumberId: string & import("effect/Brand").Brand<"SmsPhoneNumberId">;
|
|
532
|
+
};
|
|
533
|
+
readonly from: string;
|
|
534
|
+
readonly to: string;
|
|
535
|
+
readonly text: string | null;
|
|
536
|
+
readonly template: {
|
|
537
|
+
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
538
|
+
readonly templateChannelVariantId: string & import("effect/Brand").Brand<"TemplateChannelVariantId">;
|
|
539
|
+
readonly templateData: {
|
|
540
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
541
|
+
} | null;
|
|
542
|
+
} | null;
|
|
543
|
+
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
544
|
+
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
545
|
+
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
546
|
+
} | null;
|
|
427
547
|
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
428
548
|
readonly mailbox: {
|
|
429
549
|
readonly id: string & import("effect/Brand").Brand<"MailboxId">;
|
|
@@ -453,7 +573,7 @@ export declare const getNeedsYou: ((input?: {
|
|
|
453
573
|
})[];
|
|
454
574
|
readonly nextCursor: string | null;
|
|
455
575
|
readonly counts: {
|
|
456
|
-
readonly
|
|
576
|
+
readonly heldActions: number;
|
|
457
577
|
readonly quarantinedMessages: number;
|
|
458
578
|
readonly total: number;
|
|
459
579
|
};
|
|
@@ -462,7 +582,152 @@ export declare const getNeedsYou: ((input?: {
|
|
|
462
582
|
readonly limit?: number | null | undefined;
|
|
463
583
|
readonly cursor?: string | undefined;
|
|
464
584
|
} | undefined) => import("effect/Stream").Stream<{
|
|
465
|
-
readonly type: "
|
|
585
|
+
readonly type: "heldAction";
|
|
586
|
+
readonly actionType: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "handoff" | "reply" | "sendMessage" | "toolCall" | "updateDraft";
|
|
587
|
+
readonly decision: {
|
|
588
|
+
readonly requirement: "model" | "never" | "person" | "run";
|
|
589
|
+
readonly decider: "agent" | "model" | "person" | "rule";
|
|
590
|
+
readonly outcome: "allow" | "hold" | "refuse";
|
|
591
|
+
readonly reason: string;
|
|
592
|
+
readonly scopes: readonly {
|
|
593
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
594
|
+
readonly id: string;
|
|
595
|
+
}[];
|
|
596
|
+
readonly rule?: {
|
|
597
|
+
readonly scope: {
|
|
598
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
599
|
+
readonly id: string;
|
|
600
|
+
};
|
|
601
|
+
readonly index: number;
|
|
602
|
+
} | null;
|
|
603
|
+
readonly guard?: string | null;
|
|
604
|
+
readonly guardReason?: string | null;
|
|
605
|
+
readonly id: string & import("effect/Brand").Brand<"PolicyDecisionId">;
|
|
606
|
+
readonly reviewRound: number;
|
|
607
|
+
readonly subject: {
|
|
608
|
+
readonly kind: "agent";
|
|
609
|
+
readonly id: string & import("effect/Brand").Brand<"AgentId">;
|
|
610
|
+
} | {
|
|
611
|
+
readonly kind: "apiKey";
|
|
612
|
+
readonly id: string & import("effect/Brand").Brand<"ApiKeyId">;
|
|
613
|
+
} | {
|
|
614
|
+
readonly kind: "member";
|
|
615
|
+
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
616
|
+
} | {
|
|
617
|
+
readonly kind: "extension";
|
|
618
|
+
readonly id: string & import("effect/Brand").Brand<"ExtensionInstallationId">;
|
|
619
|
+
};
|
|
620
|
+
readonly action: {
|
|
621
|
+
readonly effect: "final" | "read" | "write";
|
|
622
|
+
readonly resource: {
|
|
623
|
+
readonly mailboxId: string & import("effect/Brand").Brand<"MailboxId">;
|
|
624
|
+
readonly channel?: "email" | "sms" | "whatsapp" | null;
|
|
625
|
+
readonly integration?: string | null;
|
|
626
|
+
readonly integrationId?: (string & import("effect/Brand").Brand<"IntegrationId">) | null;
|
|
627
|
+
readonly tool?: string | null;
|
|
628
|
+
};
|
|
629
|
+
readonly facts: {
|
|
630
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
631
|
+
};
|
|
632
|
+
readonly kind: "reply" | "send" | "toolCall";
|
|
633
|
+
readonly args: import("./generated").JsonValue;
|
|
634
|
+
} | {
|
|
635
|
+
readonly effect: "final" | "read" | "write";
|
|
636
|
+
readonly resource: {
|
|
637
|
+
readonly mailboxId: string & import("effect/Brand").Brand<"MailboxId">;
|
|
638
|
+
readonly channel?: "email" | "sms" | "whatsapp" | null;
|
|
639
|
+
readonly integration?: string | null;
|
|
640
|
+
readonly integrationId?: (string & import("effect/Brand").Brand<"IntegrationId">) | null;
|
|
641
|
+
readonly tool?: string | null;
|
|
642
|
+
};
|
|
643
|
+
readonly facts: {
|
|
644
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
645
|
+
};
|
|
646
|
+
readonly kind: "handoff";
|
|
647
|
+
readonly args: {
|
|
648
|
+
readonly reason: string;
|
|
649
|
+
readonly draft?: import("./generated").JsonValue;
|
|
650
|
+
};
|
|
651
|
+
};
|
|
652
|
+
readonly judge?: {
|
|
653
|
+
readonly model: string;
|
|
654
|
+
readonly instructionVersion?: string | null;
|
|
655
|
+
readonly instructionHash?: string | null;
|
|
656
|
+
readonly ms: number;
|
|
657
|
+
readonly usage: {
|
|
658
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
659
|
+
};
|
|
660
|
+
} | null;
|
|
661
|
+
readonly resolution?: {
|
|
662
|
+
readonly by: string & import("effect/Brand").Brand<"UserId">;
|
|
663
|
+
readonly at: string;
|
|
664
|
+
readonly as: "alwaysAllowed" | "approved" | "denied" | "edited";
|
|
665
|
+
readonly diff?: {
|
|
666
|
+
readonly text?: {
|
|
667
|
+
readonly before: string | null;
|
|
668
|
+
readonly after: string | null;
|
|
669
|
+
} | null;
|
|
670
|
+
readonly html?: {
|
|
671
|
+
readonly before: string | null;
|
|
672
|
+
readonly after: string | null;
|
|
673
|
+
} | null;
|
|
674
|
+
} | null;
|
|
675
|
+
} | null;
|
|
676
|
+
};
|
|
677
|
+
readonly tool: {
|
|
678
|
+
readonly name: string;
|
|
679
|
+
readonly argumentsHash: string;
|
|
680
|
+
readonly arguments: {
|
|
681
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
682
|
+
};
|
|
683
|
+
} | null;
|
|
684
|
+
readonly intent: {
|
|
685
|
+
readonly channel: "email";
|
|
686
|
+
readonly draftRevision: number;
|
|
687
|
+
readonly from: string;
|
|
688
|
+
readonly fromName: string | null;
|
|
689
|
+
readonly to: readonly [string, ...string[]];
|
|
690
|
+
readonly cc: readonly string[];
|
|
691
|
+
readonly bcc: readonly string[];
|
|
692
|
+
readonly replyTo: readonly string[];
|
|
693
|
+
readonly subject: string;
|
|
694
|
+
readonly text: string | null;
|
|
695
|
+
readonly html: string | null;
|
|
696
|
+
readonly attachments: readonly {
|
|
697
|
+
readonly filename: string;
|
|
698
|
+
readonly content?: string | null;
|
|
699
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
700
|
+
readonly contentType: string;
|
|
701
|
+
readonly size: number;
|
|
702
|
+
}[];
|
|
703
|
+
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
704
|
+
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
705
|
+
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
706
|
+
} | {
|
|
707
|
+
readonly channel: "sms" | "whatsapp";
|
|
708
|
+
readonly draftRevision: number;
|
|
709
|
+
readonly endpointId: string & import("effect/Brand").Brand<"MailboxEndpointId">;
|
|
710
|
+
readonly sender: {
|
|
711
|
+
readonly channel: "whatsapp";
|
|
712
|
+
readonly businessAccountId: string & import("effect/Brand").Brand<"WhatsAppBusinessAccountId">;
|
|
713
|
+
} | {
|
|
714
|
+
readonly channel: "sms";
|
|
715
|
+
readonly phoneNumberId: string & import("effect/Brand").Brand<"SmsPhoneNumberId">;
|
|
716
|
+
};
|
|
717
|
+
readonly from: string;
|
|
718
|
+
readonly to: string;
|
|
719
|
+
readonly text: string | null;
|
|
720
|
+
readonly template: {
|
|
721
|
+
readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
|
|
722
|
+
readonly templateChannelVariantId: string & import("effect/Brand").Brand<"TemplateChannelVariantId">;
|
|
723
|
+
readonly templateData: {
|
|
724
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
725
|
+
} | null;
|
|
726
|
+
} | null;
|
|
727
|
+
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
728
|
+
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
729
|
+
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
730
|
+
} | null;
|
|
466
731
|
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
467
732
|
readonly mailbox: {
|
|
468
733
|
readonly id: string & import("effect/Brand").Brand<"MailboxId">;
|
|
@@ -1294,11 +1559,108 @@ export declare const listActions: ((input: {
|
|
|
1294
1559
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1295
1560
|
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
1296
1561
|
readonly decision: {
|
|
1297
|
-
readonly
|
|
1562
|
+
readonly id: string & import("effect/Brand").Brand<"PolicyDecisionId">;
|
|
1563
|
+
readonly reviewRound: number;
|
|
1564
|
+
readonly requirement: "model" | "never" | "person" | "run";
|
|
1565
|
+
readonly decider: "agent" | "model" | "person" | "rule";
|
|
1566
|
+
readonly outcome: "allow" | "hold" | "refuse";
|
|
1567
|
+
readonly reason: string;
|
|
1568
|
+
readonly scopes: readonly {
|
|
1569
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
1570
|
+
readonly id: string;
|
|
1571
|
+
}[];
|
|
1572
|
+
readonly rule?: {
|
|
1573
|
+
readonly scope: {
|
|
1574
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
1575
|
+
readonly id: string;
|
|
1576
|
+
};
|
|
1577
|
+
readonly index: number;
|
|
1578
|
+
} | null;
|
|
1579
|
+
readonly guard?: string | null;
|
|
1580
|
+
readonly guardReason?: string | null;
|
|
1581
|
+
readonly resolution?: {
|
|
1582
|
+
readonly by: string & import("effect/Brand").Brand<"UserId">;
|
|
1583
|
+
readonly at: string;
|
|
1584
|
+
readonly as: "alwaysAllowed" | "approved" | "denied" | "edited";
|
|
1585
|
+
readonly diff?: {
|
|
1586
|
+
readonly text?: {
|
|
1587
|
+
readonly before: string | null;
|
|
1588
|
+
readonly after: string | null;
|
|
1589
|
+
} | null;
|
|
1590
|
+
readonly html?: {
|
|
1591
|
+
readonly before: string | null;
|
|
1592
|
+
readonly after: string | null;
|
|
1593
|
+
} | null;
|
|
1594
|
+
} | null;
|
|
1595
|
+
} | null;
|
|
1596
|
+
} | null;
|
|
1597
|
+
readonly resolution: {
|
|
1598
|
+
readonly outcome: "approved" | "cancelled" | "denied";
|
|
1599
|
+
readonly actor: {
|
|
1600
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1601
|
+
readonly id: string;
|
|
1602
|
+
readonly displayName?: string | null;
|
|
1603
|
+
readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
1604
|
+
};
|
|
1605
|
+
readonly resolvedAt: string;
|
|
1298
1606
|
readonly reason: string | null;
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1607
|
+
} | null;
|
|
1608
|
+
readonly createdAt: string;
|
|
1609
|
+
readonly updatedAt: string;
|
|
1610
|
+
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "handoff" | "toolCall" | "updateDraft";
|
|
1611
|
+
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
1612
|
+
readonly tool: {
|
|
1613
|
+
readonly name: string;
|
|
1614
|
+
readonly argumentsHash: string;
|
|
1615
|
+
readonly arguments: {
|
|
1616
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
1617
|
+
};
|
|
1618
|
+
} | null;
|
|
1619
|
+
} | {
|
|
1620
|
+
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
1621
|
+
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
1622
|
+
readonly proposedBy: {
|
|
1623
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1624
|
+
readonly id: string;
|
|
1625
|
+
readonly displayName?: string | null;
|
|
1626
|
+
};
|
|
1627
|
+
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1628
|
+
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
1629
|
+
readonly decision: {
|
|
1630
|
+
readonly id: string & import("effect/Brand").Brand<"PolicyDecisionId">;
|
|
1631
|
+
readonly reviewRound: number;
|
|
1632
|
+
readonly requirement: "model" | "never" | "person" | "run";
|
|
1633
|
+
readonly decider: "agent" | "model" | "person" | "rule";
|
|
1634
|
+
readonly outcome: "allow" | "hold" | "refuse";
|
|
1635
|
+
readonly reason: string;
|
|
1636
|
+
readonly scopes: readonly {
|
|
1637
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
1638
|
+
readonly id: string;
|
|
1639
|
+
}[];
|
|
1640
|
+
readonly rule?: {
|
|
1641
|
+
readonly scope: {
|
|
1642
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
1643
|
+
readonly id: string;
|
|
1644
|
+
};
|
|
1645
|
+
readonly index: number;
|
|
1646
|
+
} | null;
|
|
1647
|
+
readonly guard?: string | null;
|
|
1648
|
+
readonly guardReason?: string | null;
|
|
1649
|
+
readonly resolution?: {
|
|
1650
|
+
readonly by: string & import("effect/Brand").Brand<"UserId">;
|
|
1651
|
+
readonly at: string;
|
|
1652
|
+
readonly as: "alwaysAllowed" | "approved" | "denied" | "edited";
|
|
1653
|
+
readonly diff?: {
|
|
1654
|
+
readonly text?: {
|
|
1655
|
+
readonly before: string | null;
|
|
1656
|
+
readonly after: string | null;
|
|
1657
|
+
} | null;
|
|
1658
|
+
readonly html?: {
|
|
1659
|
+
readonly before: string | null;
|
|
1660
|
+
readonly after: string | null;
|
|
1661
|
+
} | null;
|
|
1662
|
+
} | null;
|
|
1663
|
+
} | null;
|
|
1302
1664
|
} | null;
|
|
1303
1665
|
readonly resolution: {
|
|
1304
1666
|
readonly outcome: "approved" | "cancelled" | "denied";
|
|
@@ -1375,11 +1737,40 @@ export declare const listActions: ((input: {
|
|
|
1375
1737
|
} | null;
|
|
1376
1738
|
readonly retryEligible: boolean;
|
|
1377
1739
|
readonly decision: {
|
|
1378
|
-
readonly
|
|
1379
|
-
readonly
|
|
1380
|
-
readonly
|
|
1381
|
-
readonly
|
|
1382
|
-
readonly
|
|
1740
|
+
readonly id: string & import("effect/Brand").Brand<"PolicyDecisionId">;
|
|
1741
|
+
readonly reviewRound: number;
|
|
1742
|
+
readonly requirement: "model" | "never" | "person" | "run";
|
|
1743
|
+
readonly decider: "agent" | "model" | "person" | "rule";
|
|
1744
|
+
readonly outcome: "allow" | "hold" | "refuse";
|
|
1745
|
+
readonly reason: string;
|
|
1746
|
+
readonly scopes: readonly {
|
|
1747
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
1748
|
+
readonly id: string;
|
|
1749
|
+
}[];
|
|
1750
|
+
readonly rule?: {
|
|
1751
|
+
readonly scope: {
|
|
1752
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
1753
|
+
readonly id: string;
|
|
1754
|
+
};
|
|
1755
|
+
readonly index: number;
|
|
1756
|
+
} | null;
|
|
1757
|
+
readonly guard?: string | null;
|
|
1758
|
+
readonly guardReason?: string | null;
|
|
1759
|
+
readonly resolution?: {
|
|
1760
|
+
readonly by: string & import("effect/Brand").Brand<"UserId">;
|
|
1761
|
+
readonly at: string;
|
|
1762
|
+
readonly as: "alwaysAllowed" | "approved" | "denied" | "edited";
|
|
1763
|
+
readonly diff?: {
|
|
1764
|
+
readonly text?: {
|
|
1765
|
+
readonly before: string | null;
|
|
1766
|
+
readonly after: string | null;
|
|
1767
|
+
} | null;
|
|
1768
|
+
readonly html?: {
|
|
1769
|
+
readonly before: string | null;
|
|
1770
|
+
readonly after: string | null;
|
|
1771
|
+
} | null;
|
|
1772
|
+
} | null;
|
|
1773
|
+
} | null;
|
|
1383
1774
|
} | null;
|
|
1384
1775
|
readonly createdAt: string;
|
|
1385
1776
|
readonly updatedAt: string;
|
|
@@ -1431,45 +1822,6 @@ export declare const listActions: ((input: {
|
|
|
1431
1822
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1432
1823
|
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1433
1824
|
} | null;
|
|
1434
|
-
} | {
|
|
1435
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
1436
|
-
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
1437
|
-
readonly proposedBy: {
|
|
1438
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1439
|
-
readonly id: string;
|
|
1440
|
-
readonly displayName?: string | null;
|
|
1441
|
-
};
|
|
1442
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1443
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
1444
|
-
readonly decision: {
|
|
1445
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
1446
|
-
readonly reason: string | null;
|
|
1447
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
1448
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
1449
|
-
readonly decidedAt: string;
|
|
1450
|
-
} | null;
|
|
1451
|
-
readonly resolution: {
|
|
1452
|
-
readonly outcome: "approved" | "cancelled" | "denied";
|
|
1453
|
-
readonly actor: {
|
|
1454
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1455
|
-
readonly id: string;
|
|
1456
|
-
readonly displayName?: string | null;
|
|
1457
|
-
readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
1458
|
-
};
|
|
1459
|
-
readonly resolvedAt: string;
|
|
1460
|
-
readonly reason: string | null;
|
|
1461
|
-
} | null;
|
|
1462
|
-
readonly createdAt: string;
|
|
1463
|
-
readonly updatedAt: string;
|
|
1464
|
-
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "toolCall" | "updateDraft";
|
|
1465
|
-
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
1466
|
-
readonly tool: {
|
|
1467
|
-
readonly name: string;
|
|
1468
|
-
readonly argumentsHash: string;
|
|
1469
|
-
readonly arguments: {
|
|
1470
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
1471
|
-
};
|
|
1472
|
-
} | null;
|
|
1473
1825
|
})[];
|
|
1474
1826
|
readonly nextCursor: string | null;
|
|
1475
1827
|
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
@@ -1492,11 +1844,108 @@ export declare const listActions: ((input: {
|
|
|
1492
1844
|
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1493
1845
|
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
1494
1846
|
readonly decision: {
|
|
1495
|
-
readonly
|
|
1847
|
+
readonly id: string & import("effect/Brand").Brand<"PolicyDecisionId">;
|
|
1848
|
+
readonly reviewRound: number;
|
|
1849
|
+
readonly requirement: "model" | "never" | "person" | "run";
|
|
1850
|
+
readonly decider: "agent" | "model" | "person" | "rule";
|
|
1851
|
+
readonly outcome: "allow" | "hold" | "refuse";
|
|
1852
|
+
readonly reason: string;
|
|
1853
|
+
readonly scopes: readonly {
|
|
1854
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
1855
|
+
readonly id: string;
|
|
1856
|
+
}[];
|
|
1857
|
+
readonly rule?: {
|
|
1858
|
+
readonly scope: {
|
|
1859
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
1860
|
+
readonly id: string;
|
|
1861
|
+
};
|
|
1862
|
+
readonly index: number;
|
|
1863
|
+
} | null;
|
|
1864
|
+
readonly guard?: string | null;
|
|
1865
|
+
readonly guardReason?: string | null;
|
|
1866
|
+
readonly resolution?: {
|
|
1867
|
+
readonly by: string & import("effect/Brand").Brand<"UserId">;
|
|
1868
|
+
readonly at: string;
|
|
1869
|
+
readonly as: "alwaysAllowed" | "approved" | "denied" | "edited";
|
|
1870
|
+
readonly diff?: {
|
|
1871
|
+
readonly text?: {
|
|
1872
|
+
readonly before: string | null;
|
|
1873
|
+
readonly after: string | null;
|
|
1874
|
+
} | null;
|
|
1875
|
+
readonly html?: {
|
|
1876
|
+
readonly before: string | null;
|
|
1877
|
+
readonly after: string | null;
|
|
1878
|
+
} | null;
|
|
1879
|
+
} | null;
|
|
1880
|
+
} | null;
|
|
1881
|
+
} | null;
|
|
1882
|
+
readonly resolution: {
|
|
1883
|
+
readonly outcome: "approved" | "cancelled" | "denied";
|
|
1884
|
+
readonly actor: {
|
|
1885
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1886
|
+
readonly id: string;
|
|
1887
|
+
readonly displayName?: string | null;
|
|
1888
|
+
readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
1889
|
+
};
|
|
1890
|
+
readonly resolvedAt: string;
|
|
1496
1891
|
readonly reason: string | null;
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1892
|
+
} | null;
|
|
1893
|
+
readonly createdAt: string;
|
|
1894
|
+
readonly updatedAt: string;
|
|
1895
|
+
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "handoff" | "toolCall" | "updateDraft";
|
|
1896
|
+
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
1897
|
+
readonly tool: {
|
|
1898
|
+
readonly name: string;
|
|
1899
|
+
readonly argumentsHash: string;
|
|
1900
|
+
readonly arguments: {
|
|
1901
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
1902
|
+
};
|
|
1903
|
+
} | null;
|
|
1904
|
+
} | {
|
|
1905
|
+
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
1906
|
+
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
1907
|
+
readonly proposedBy: {
|
|
1908
|
+
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1909
|
+
readonly id: string;
|
|
1910
|
+
readonly displayName?: string | null;
|
|
1911
|
+
};
|
|
1912
|
+
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1913
|
+
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
1914
|
+
readonly decision: {
|
|
1915
|
+
readonly id: string & import("effect/Brand").Brand<"PolicyDecisionId">;
|
|
1916
|
+
readonly reviewRound: number;
|
|
1917
|
+
readonly requirement: "model" | "never" | "person" | "run";
|
|
1918
|
+
readonly decider: "agent" | "model" | "person" | "rule";
|
|
1919
|
+
readonly outcome: "allow" | "hold" | "refuse";
|
|
1920
|
+
readonly reason: string;
|
|
1921
|
+
readonly scopes: readonly {
|
|
1922
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
1923
|
+
readonly id: string;
|
|
1924
|
+
}[];
|
|
1925
|
+
readonly rule?: {
|
|
1926
|
+
readonly scope: {
|
|
1927
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
1928
|
+
readonly id: string;
|
|
1929
|
+
};
|
|
1930
|
+
readonly index: number;
|
|
1931
|
+
} | null;
|
|
1932
|
+
readonly guard?: string | null;
|
|
1933
|
+
readonly guardReason?: string | null;
|
|
1934
|
+
readonly resolution?: {
|
|
1935
|
+
readonly by: string & import("effect/Brand").Brand<"UserId">;
|
|
1936
|
+
readonly at: string;
|
|
1937
|
+
readonly as: "alwaysAllowed" | "approved" | "denied" | "edited";
|
|
1938
|
+
readonly diff?: {
|
|
1939
|
+
readonly text?: {
|
|
1940
|
+
readonly before: string | null;
|
|
1941
|
+
readonly after: string | null;
|
|
1942
|
+
} | null;
|
|
1943
|
+
readonly html?: {
|
|
1944
|
+
readonly before: string | null;
|
|
1945
|
+
readonly after: string | null;
|
|
1946
|
+
} | null;
|
|
1947
|
+
} | null;
|
|
1948
|
+
} | null;
|
|
1500
1949
|
} | null;
|
|
1501
1950
|
readonly resolution: {
|
|
1502
1951
|
readonly outcome: "approved" | "cancelled" | "denied";
|
|
@@ -1573,11 +2022,40 @@ export declare const listActions: ((input: {
|
|
|
1573
2022
|
} | null;
|
|
1574
2023
|
readonly retryEligible: boolean;
|
|
1575
2024
|
readonly decision: {
|
|
1576
|
-
readonly
|
|
1577
|
-
readonly
|
|
1578
|
-
readonly
|
|
1579
|
-
readonly
|
|
1580
|
-
readonly
|
|
2025
|
+
readonly id: string & import("effect/Brand").Brand<"PolicyDecisionId">;
|
|
2026
|
+
readonly reviewRound: number;
|
|
2027
|
+
readonly requirement: "model" | "never" | "person" | "run";
|
|
2028
|
+
readonly decider: "agent" | "model" | "person" | "rule";
|
|
2029
|
+
readonly outcome: "allow" | "hold" | "refuse";
|
|
2030
|
+
readonly reason: string;
|
|
2031
|
+
readonly scopes: readonly {
|
|
2032
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
2033
|
+
readonly id: string;
|
|
2034
|
+
}[];
|
|
2035
|
+
readonly rule?: {
|
|
2036
|
+
readonly scope: {
|
|
2037
|
+
readonly kind: "agent" | "apiKey" | "mailbox" | "organization";
|
|
2038
|
+
readonly id: string;
|
|
2039
|
+
};
|
|
2040
|
+
readonly index: number;
|
|
2041
|
+
} | null;
|
|
2042
|
+
readonly guard?: string | null;
|
|
2043
|
+
readonly guardReason?: string | null;
|
|
2044
|
+
readonly resolution?: {
|
|
2045
|
+
readonly by: string & import("effect/Brand").Brand<"UserId">;
|
|
2046
|
+
readonly at: string;
|
|
2047
|
+
readonly as: "alwaysAllowed" | "approved" | "denied" | "edited";
|
|
2048
|
+
readonly diff?: {
|
|
2049
|
+
readonly text?: {
|
|
2050
|
+
readonly before: string | null;
|
|
2051
|
+
readonly after: string | null;
|
|
2052
|
+
} | null;
|
|
2053
|
+
readonly html?: {
|
|
2054
|
+
readonly before: string | null;
|
|
2055
|
+
readonly after: string | null;
|
|
2056
|
+
} | null;
|
|
2057
|
+
} | null;
|
|
2058
|
+
} | null;
|
|
1581
2059
|
} | null;
|
|
1582
2060
|
readonly createdAt: string;
|
|
1583
2061
|
readonly updatedAt: string;
|
|
@@ -1629,45 +2107,6 @@ export declare const listActions: ((input: {
|
|
|
1629
2107
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1630
2108
|
readonly inReplyToMessageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1631
2109
|
} | null;
|
|
1632
|
-
} | {
|
|
1633
|
-
readonly id: string & import("effect/Brand").Brand<"MailboxActionId">;
|
|
1634
|
-
readonly source: "aiSdkTool" | "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
1635
|
-
readonly proposedBy: {
|
|
1636
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1637
|
-
readonly id: string;
|
|
1638
|
-
readonly displayName?: string | null;
|
|
1639
|
-
};
|
|
1640
|
-
readonly threadId: (string & import("effect/Brand").Brand<"MailboxThreadId">) | null;
|
|
1641
|
-
readonly draftId: (string & import("effect/Brand").Brand<"MailboxDraftId">) | null;
|
|
1642
|
-
readonly decision: {
|
|
1643
|
-
readonly outcome: "allow" | "deny" | "requireApproval";
|
|
1644
|
-
readonly reason: string | null;
|
|
1645
|
-
readonly policyId: (string & import("effect/Brand").Brand<"MailboxPolicyId">) | null;
|
|
1646
|
-
readonly source: "grant" | "installation" | "policy" | null;
|
|
1647
|
-
readonly decidedAt: string;
|
|
1648
|
-
} | null;
|
|
1649
|
-
readonly resolution: {
|
|
1650
|
-
readonly outcome: "approved" | "cancelled" | "denied";
|
|
1651
|
-
readonly actor: {
|
|
1652
|
-
readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
|
|
1653
|
-
readonly id: string;
|
|
1654
|
-
readonly displayName?: string | null;
|
|
1655
|
-
readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
|
|
1656
|
-
};
|
|
1657
|
-
readonly resolvedAt: string;
|
|
1658
|
-
readonly reason: string | null;
|
|
1659
|
-
} | null;
|
|
1660
|
-
readonly createdAt: string;
|
|
1661
|
-
readonly updatedAt: string;
|
|
1662
|
-
readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "toolCall" | "updateDraft";
|
|
1663
|
-
readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
|
|
1664
|
-
readonly tool: {
|
|
1665
|
-
readonly name: string;
|
|
1666
|
-
readonly argumentsHash: string;
|
|
1667
|
-
readonly arguments: {
|
|
1668
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
1669
|
-
};
|
|
1670
|
-
} | null;
|
|
1671
2110
|
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1672
2111
|
};
|
|
1673
2112
|
export declare const getAction: (input: {
|
|
@@ -1685,10 +2124,17 @@ export declare const retryAction: (input: {
|
|
|
1685
2124
|
export declare const approveAction: (input: {
|
|
1686
2125
|
readonly id: string;
|
|
1687
2126
|
readonly actionId: string;
|
|
2127
|
+
readonly reviewRound: number;
|
|
2128
|
+
readonly always?: boolean | null | undefined;
|
|
2129
|
+
readonly edits?: {
|
|
2130
|
+
readonly text?: string | null | undefined;
|
|
2131
|
+
readonly html?: string | null | undefined;
|
|
2132
|
+
} | null | undefined;
|
|
1688
2133
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesApproveAction">;
|
|
1689
2134
|
export declare const denyAction: (input: {
|
|
1690
2135
|
readonly id: string;
|
|
1691
2136
|
readonly actionId: string;
|
|
2137
|
+
readonly reviewRound: number;
|
|
1692
2138
|
readonly reason: string;
|
|
1693
2139
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"mailboxesDenyAction">;
|
|
1694
2140
|
export declare const listEvents: ((input: {
|