agentmail 0.5.42 → 0.5.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/calendar/types/UpdateCalendarEventRequest.d.ts +2 -1
- package/dist/cjs/api/resources/inboxes/resources/calendar/client/Client.d.ts +21 -21
- package/dist/cjs/api/resources/inboxes/resources/calendar/client/Client.js +21 -21
- package/dist/cjs/api/resources/inboxes/resources/webhooks/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/inboxes/resources/webhooks/client/Client.js +5 -0
- package/dist/cjs/api/resources/inboxes/resources/webhooks/exports.d.ts +1 -0
- package/dist/cjs/api/resources/inboxes/resources/webhooks/exports.js +1 -0
- package/dist/cjs/api/resources/inboxes/resources/webhooks/index.d.ts +1 -0
- package/dist/cjs/api/resources/inboxes/resources/webhooks/index.js +1 -0
- package/dist/cjs/api/resources/inboxes/resources/webhooks/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/inboxes/resources/webhooks/resources/index.js +41 -0
- package/dist/cjs/api/resources/inboxes/resources/webhooks/resources/polling/client/Client.d.ts +89 -0
- package/dist/cjs/api/resources/inboxes/resources/webhooks/resources/polling/client/Client.js +351 -0
- package/dist/cjs/api/resources/inboxes/resources/webhooks/resources/polling/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/inboxes/resources/webhooks/resources/polling/client/index.js +17 -0
- package/dist/cjs/api/resources/inboxes/resources/webhooks/resources/polling/client/requests/InboxListPollingWebhooksRequest.d.ts +10 -0
- package/dist/cjs/api/resources/inboxes/resources/webhooks/resources/polling/client/requests/InboxListPollingWebhooksRequest.js +3 -0
- package/dist/cjs/api/resources/inboxes/resources/webhooks/resources/polling/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/inboxes/resources/webhooks/resources/polling/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/inboxes/resources/webhooks/resources/polling/exports.d.ts +2 -0
- package/dist/cjs/api/resources/inboxes/resources/webhooks/resources/polling/exports.js +21 -0
- package/dist/cjs/api/resources/inboxes/resources/webhooks/resources/polling/index.d.ts +1 -0
- package/dist/cjs/api/resources/inboxes/resources/webhooks/resources/polling/index.js +17 -0
- package/dist/cjs/api/resources/messages/types/MessageCalendarEventId.d.ts +1 -1
- package/dist/cjs/api/resources/pods/resources/webhooks/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/pods/resources/webhooks/client/Client.js +5 -0
- package/dist/cjs/api/resources/pods/resources/webhooks/exports.d.ts +1 -0
- package/dist/cjs/api/resources/pods/resources/webhooks/exports.js +1 -0
- package/dist/cjs/api/resources/pods/resources/webhooks/index.d.ts +1 -0
- package/dist/cjs/api/resources/pods/resources/webhooks/index.js +1 -0
- package/dist/cjs/api/resources/pods/resources/webhooks/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/pods/resources/webhooks/resources/index.js +41 -0
- package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/client/Client.d.ts +89 -0
- package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/client/Client.js +351 -0
- package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/client/index.js +17 -0
- package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/client/requests/PodListPollingWebhooksRequest.d.ts +10 -0
- package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/client/requests/PodListPollingWebhooksRequest.js +3 -0
- package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/exports.d.ts +2 -0
- package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/exports.js +21 -0
- package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/index.d.ts +1 -0
- package/dist/cjs/api/resources/pods/resources/webhooks/resources/polling/index.js +17 -0
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/webhooks/client/Client.js +5 -0
- package/dist/cjs/api/resources/webhooks/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/webhooks/resources/index.js +4 -1
- package/dist/cjs/api/resources/webhooks/resources/polling/client/Client.d.ts +92 -0
- package/dist/cjs/api/resources/webhooks/resources/polling/client/Client.js +354 -0
- package/dist/cjs/api/resources/webhooks/resources/polling/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/webhooks/resources/polling/client/index.js +17 -0
- package/dist/cjs/api/resources/webhooks/resources/polling/client/requests/ListPollingWebhooksRequest.d.ts +10 -0
- package/dist/cjs/api/resources/webhooks/resources/polling/client/requests/ListPollingWebhooksRequest.js +3 -0
- package/dist/cjs/api/resources/webhooks/resources/polling/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/webhooks/resources/polling/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/webhooks/resources/polling/exports.d.ts +2 -0
- package/dist/cjs/api/resources/webhooks/resources/polling/exports.js +21 -0
- package/dist/cjs/api/resources/webhooks/resources/polling/index.d.ts +2 -0
- package/dist/cjs/api/resources/webhooks/resources/polling/index.js +18 -0
- package/dist/cjs/api/resources/webhooks/resources/polling/types/CreateInboxPollingWebhookRequest.d.ts +9 -0
- package/dist/cjs/api/resources/webhooks/resources/polling/types/CreateInboxPollingWebhookRequest.js +3 -0
- package/dist/cjs/api/resources/webhooks/resources/polling/types/CreatePodPollingWebhookRequest.d.ts +9 -0
- package/dist/cjs/api/resources/webhooks/resources/polling/types/CreatePodPollingWebhookRequest.js +3 -0
- package/dist/cjs/api/resources/webhooks/resources/polling/types/CreatePollingWebhookRequest.d.ts +9 -0
- package/dist/cjs/api/resources/webhooks/resources/polling/types/CreatePollingWebhookRequest.js +3 -0
- package/dist/cjs/api/resources/webhooks/resources/polling/types/CreatePollingWebhookResponse.d.ts +7 -0
- package/dist/cjs/api/resources/webhooks/resources/polling/types/CreatePollingWebhookResponse.js +3 -0
- package/dist/cjs/api/resources/webhooks/resources/polling/types/ListPollingWebhooksResponse.d.ts +12 -0
- package/dist/cjs/api/resources/webhooks/resources/polling/types/ListPollingWebhooksResponse.js +3 -0
- package/dist/cjs/api/resources/webhooks/resources/polling/types/PollingClientId.d.ts +7 -0
- package/dist/cjs/api/resources/webhooks/resources/polling/types/PollingClientId.js +3 -0
- package/dist/cjs/api/resources/webhooks/resources/polling/types/PollingToken.d.ts +8 -0
- package/dist/cjs/api/resources/webhooks/resources/polling/types/PollingToken.js +3 -0
- package/dist/cjs/api/resources/webhooks/resources/polling/types/PollingWebhook.d.ts +27 -0
- package/dist/cjs/api/resources/webhooks/resources/polling/types/PollingWebhook.js +3 -0
- package/dist/cjs/api/resources/webhooks/resources/polling/types/index.d.ts +8 -0
- package/dist/cjs/api/resources/webhooks/resources/polling/types/index.js +24 -0
- package/dist/cjs/serialization/resources/webhooks/resources/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/webhooks/resources/index.js +3 -1
- package/dist/cjs/serialization/resources/webhooks/resources/polling/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/webhooks/resources/polling/index.js +17 -0
- package/dist/cjs/serialization/resources/webhooks/resources/polling/types/CreateInboxPollingWebhookRequest.d.ts +12 -0
- package/dist/cjs/serialization/resources/webhooks/resources/polling/types/CreateInboxPollingWebhookRequest.js +44 -0
- package/dist/cjs/serialization/resources/webhooks/resources/polling/types/CreatePodPollingWebhookRequest.d.ts +11 -0
- package/dist/cjs/serialization/resources/webhooks/resources/polling/types/CreatePodPollingWebhookRequest.js +45 -0
- package/dist/cjs/serialization/resources/webhooks/resources/polling/types/CreatePollingWebhookRequest.d.ts +11 -0
- package/dist/cjs/serialization/resources/webhooks/resources/polling/types/CreatePollingWebhookRequest.js +45 -0
- package/dist/cjs/serialization/resources/webhooks/resources/polling/types/CreatePollingWebhookResponse.d.ts +11 -0
- package/dist/cjs/serialization/resources/webhooks/resources/polling/types/CreatePollingWebhookResponse.js +45 -0
- package/dist/cjs/serialization/resources/webhooks/resources/polling/types/ListPollingWebhooksResponse.d.ts +16 -0
- package/dist/cjs/serialization/resources/webhooks/resources/polling/types/ListPollingWebhooksResponse.js +48 -0
- package/dist/cjs/serialization/resources/webhooks/resources/polling/types/PollingClientId.d.ts +8 -0
- package/dist/cjs/serialization/resources/webhooks/resources/polling/types/PollingClientId.js +6 -0
- package/dist/cjs/serialization/resources/webhooks/resources/polling/types/PollingToken.d.ts +7 -0
- package/dist/cjs/serialization/resources/webhooks/resources/polling/types/PollingToken.js +39 -0
- package/dist/cjs/serialization/resources/webhooks/resources/polling/types/PollingWebhook.d.ts +22 -0
- package/dist/cjs/serialization/resources/webhooks/resources/polling/types/PollingWebhook.js +54 -0
- package/dist/cjs/serialization/resources/webhooks/resources/polling/types/index.d.ts +8 -0
- package/dist/cjs/serialization/resources/webhooks/resources/polling/types/index.js +24 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/calendar/types/UpdateCalendarEventRequest.d.mts +2 -1
- package/dist/esm/api/resources/inboxes/resources/calendar/client/Client.d.mts +21 -21
- package/dist/esm/api/resources/inboxes/resources/calendar/client/Client.mjs +21 -21
- package/dist/esm/api/resources/inboxes/resources/webhooks/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/inboxes/resources/webhooks/client/Client.mjs +5 -0
- package/dist/esm/api/resources/inboxes/resources/webhooks/exports.d.mts +1 -0
- package/dist/esm/api/resources/inboxes/resources/webhooks/exports.mjs +1 -0
- package/dist/esm/api/resources/inboxes/resources/webhooks/index.d.mts +1 -0
- package/dist/esm/api/resources/inboxes/resources/webhooks/index.mjs +1 -0
- package/dist/esm/api/resources/inboxes/resources/webhooks/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/inboxes/resources/webhooks/resources/index.mjs +2 -0
- package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/client/Client.d.mts +89 -0
- package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/client/Client.mjs +314 -0
- package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/client/index.d.mts +1 -0
- package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/client/index.mjs +1 -0
- package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/client/requests/InboxListPollingWebhooksRequest.d.mts +10 -0
- package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/client/requests/InboxListPollingWebhooksRequest.mjs +2 -0
- package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/exports.d.mts +2 -0
- package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/exports.mjs +3 -0
- package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/index.d.mts +1 -0
- package/dist/esm/api/resources/inboxes/resources/webhooks/resources/polling/index.mjs +1 -0
- package/dist/esm/api/resources/messages/types/MessageCalendarEventId.d.mts +1 -1
- package/dist/esm/api/resources/pods/resources/webhooks/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/pods/resources/webhooks/client/Client.mjs +5 -0
- package/dist/esm/api/resources/pods/resources/webhooks/exports.d.mts +1 -0
- package/dist/esm/api/resources/pods/resources/webhooks/exports.mjs +1 -0
- package/dist/esm/api/resources/pods/resources/webhooks/index.d.mts +1 -0
- package/dist/esm/api/resources/pods/resources/webhooks/index.mjs +1 -0
- package/dist/esm/api/resources/pods/resources/webhooks/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/pods/resources/webhooks/resources/index.mjs +2 -0
- package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/client/Client.d.mts +89 -0
- package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/client/Client.mjs +314 -0
- package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/client/index.d.mts +1 -0
- package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/client/index.mjs +1 -0
- package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/client/requests/PodListPollingWebhooksRequest.d.mts +10 -0
- package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/client/requests/PodListPollingWebhooksRequest.mjs +2 -0
- package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/exports.d.mts +2 -0
- package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/exports.mjs +3 -0
- package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/index.d.mts +1 -0
- package/dist/esm/api/resources/pods/resources/webhooks/resources/polling/index.mjs +1 -0
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/webhooks/client/Client.mjs +5 -0
- package/dist/esm/api/resources/webhooks/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/webhooks/resources/index.mjs +3 -0
- package/dist/esm/api/resources/webhooks/resources/polling/client/Client.d.mts +92 -0
- package/dist/esm/api/resources/webhooks/resources/polling/client/Client.mjs +317 -0
- package/dist/esm/api/resources/webhooks/resources/polling/client/index.d.mts +1 -0
- package/dist/esm/api/resources/webhooks/resources/polling/client/index.mjs +1 -0
- package/dist/esm/api/resources/webhooks/resources/polling/client/requests/ListPollingWebhooksRequest.d.mts +10 -0
- package/dist/esm/api/resources/webhooks/resources/polling/client/requests/ListPollingWebhooksRequest.mjs +2 -0
- package/dist/esm/api/resources/webhooks/resources/polling/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/webhooks/resources/polling/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/webhooks/resources/polling/exports.d.mts +2 -0
- package/dist/esm/api/resources/webhooks/resources/polling/exports.mjs +3 -0
- package/dist/esm/api/resources/webhooks/resources/polling/index.d.mts +2 -0
- package/dist/esm/api/resources/webhooks/resources/polling/index.mjs +2 -0
- package/dist/esm/api/resources/webhooks/resources/polling/types/CreateInboxPollingWebhookRequest.d.mts +9 -0
- package/dist/esm/api/resources/webhooks/resources/polling/types/CreateInboxPollingWebhookRequest.mjs +2 -0
- package/dist/esm/api/resources/webhooks/resources/polling/types/CreatePodPollingWebhookRequest.d.mts +9 -0
- package/dist/esm/api/resources/webhooks/resources/polling/types/CreatePodPollingWebhookRequest.mjs +2 -0
- package/dist/esm/api/resources/webhooks/resources/polling/types/CreatePollingWebhookRequest.d.mts +9 -0
- package/dist/esm/api/resources/webhooks/resources/polling/types/CreatePollingWebhookRequest.mjs +2 -0
- package/dist/esm/api/resources/webhooks/resources/polling/types/CreatePollingWebhookResponse.d.mts +7 -0
- package/dist/esm/api/resources/webhooks/resources/polling/types/CreatePollingWebhookResponse.mjs +2 -0
- package/dist/esm/api/resources/webhooks/resources/polling/types/ListPollingWebhooksResponse.d.mts +12 -0
- package/dist/esm/api/resources/webhooks/resources/polling/types/ListPollingWebhooksResponse.mjs +2 -0
- package/dist/esm/api/resources/webhooks/resources/polling/types/PollingClientId.d.mts +7 -0
- package/dist/esm/api/resources/webhooks/resources/polling/types/PollingClientId.mjs +2 -0
- package/dist/esm/api/resources/webhooks/resources/polling/types/PollingToken.d.mts +8 -0
- package/dist/esm/api/resources/webhooks/resources/polling/types/PollingToken.mjs +2 -0
- package/dist/esm/api/resources/webhooks/resources/polling/types/PollingWebhook.d.mts +27 -0
- package/dist/esm/api/resources/webhooks/resources/polling/types/PollingWebhook.mjs +2 -0
- package/dist/esm/api/resources/webhooks/resources/polling/types/index.d.mts +8 -0
- package/dist/esm/api/resources/webhooks/resources/polling/types/index.mjs +8 -0
- package/dist/esm/serialization/resources/webhooks/resources/index.d.mts +2 -0
- package/dist/esm/serialization/resources/webhooks/resources/index.mjs +2 -0
- package/dist/esm/serialization/resources/webhooks/resources/polling/index.d.mts +1 -0
- package/dist/esm/serialization/resources/webhooks/resources/polling/index.mjs +1 -0
- package/dist/esm/serialization/resources/webhooks/resources/polling/types/CreateInboxPollingWebhookRequest.d.mts +12 -0
- package/dist/esm/serialization/resources/webhooks/resources/polling/types/CreateInboxPollingWebhookRequest.mjs +8 -0
- package/dist/esm/serialization/resources/webhooks/resources/polling/types/CreatePodPollingWebhookRequest.d.mts +11 -0
- package/dist/esm/serialization/resources/webhooks/resources/polling/types/CreatePodPollingWebhookRequest.mjs +9 -0
- package/dist/esm/serialization/resources/webhooks/resources/polling/types/CreatePollingWebhookRequest.d.mts +11 -0
- package/dist/esm/serialization/resources/webhooks/resources/polling/types/CreatePollingWebhookRequest.mjs +9 -0
- package/dist/esm/serialization/resources/webhooks/resources/polling/types/CreatePollingWebhookResponse.d.mts +11 -0
- package/dist/esm/serialization/resources/webhooks/resources/polling/types/CreatePollingWebhookResponse.mjs +9 -0
- package/dist/esm/serialization/resources/webhooks/resources/polling/types/ListPollingWebhooksResponse.d.mts +16 -0
- package/dist/esm/serialization/resources/webhooks/resources/polling/types/ListPollingWebhooksResponse.mjs +12 -0
- package/dist/esm/serialization/resources/webhooks/resources/polling/types/PollingClientId.d.mts +8 -0
- package/dist/esm/serialization/resources/webhooks/resources/polling/types/PollingClientId.mjs +3 -0
- package/dist/esm/serialization/resources/webhooks/resources/polling/types/PollingToken.d.mts +7 -0
- package/dist/esm/serialization/resources/webhooks/resources/polling/types/PollingToken.mjs +3 -0
- package/dist/esm/serialization/resources/webhooks/resources/polling/types/PollingWebhook.d.mts +22 -0
- package/dist/esm/serialization/resources/webhooks/resources/polling/types/PollingWebhook.mjs +18 -0
- package/dist/esm/serialization/resources/webhooks/resources/polling/types/index.d.mts +8 -0
- package/dist/esm/serialization/resources/webhooks/resources/polling/types/index.mjs +8 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +34 -1
- package/reference.md +1462 -575
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "agentmail",
|
|
46
|
-
"X-Fern-SDK-Version": "0.5.
|
|
47
|
-
"User-Agent": "agentmail/0.5.
|
|
46
|
+
"X-Fern-SDK-Version": "0.5.43",
|
|
47
|
+
"User-Agent": "agentmail/0.5.43",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -24,7 +24,8 @@ export interface UpdateCalendarEventRequest {
|
|
|
24
24
|
durationMode?: AgentMail.DurationMode;
|
|
25
25
|
/**
|
|
26
26
|
* Replaces the recurrence. Set to `null` to turn a series into a one-off event (only when no
|
|
27
|
-
* date of it has been edited). Not accepted for dated event IDs.
|
|
27
|
+
* date of it has been edited). Not accepted for dated event IDs. A series ended with a
|
|
28
|
+
* `mode=future` delete stays ended: the new rule keeps its `truncate_before`.
|
|
28
29
|
*/
|
|
29
30
|
recurrence?: AgentMail.RecurrenceInput | null;
|
|
30
31
|
/** Replaces the attendee list. */
|
|
@@ -17,9 +17,9 @@ export declare class CalendarClient {
|
|
|
17
17
|
* created. Its `etag` (also the `ETag` response header) is the value to send in `If-Match` to
|
|
18
18
|
* make an update conditional.
|
|
19
19
|
*
|
|
20
|
-
* Requires the `calendar_read` permission. Calendar is in
|
|
21
|
-
*
|
|
22
|
-
*
|
|
20
|
+
* Requires the `calendar_read` permission. Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`)
|
|
21
|
+
* but not yet in EU production (`api.agentmail.eu`). Organizations that have not joined
|
|
22
|
+
* Labs receive a `403`.
|
|
23
23
|
*
|
|
24
24
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
25
25
|
* @param {AgentMail.inboxes.GetCalendarRequest} request
|
|
@@ -44,8 +44,8 @@ export declare class CalendarClient {
|
|
|
44
44
|
* calendar's current `etag` in `If-Match`: a stale value returns `412`. Without `If-Match` the
|
|
45
45
|
* update applies to the calendar as it is.
|
|
46
46
|
*
|
|
47
|
-
* Calendar is in
|
|
48
|
-
* production (`api.agentmail.eu`). Organizations
|
|
47
|
+
* Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
|
|
48
|
+
* in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
|
|
49
49
|
*
|
|
50
50
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
51
51
|
* @param {AgentMail.inboxes.UpdateCalendarRequestWrapper} request
|
|
@@ -77,8 +77,8 @@ export declare class CalendarClient {
|
|
|
77
77
|
* The list is always read in the region that serves the request, so it can trail a change made
|
|
78
78
|
* moments earlier by a few seconds. Requires the `calendar_event_read` permission.
|
|
79
79
|
*
|
|
80
|
-
* Calendar is in
|
|
81
|
-
* production (`api.agentmail.eu`). Organizations
|
|
80
|
+
* Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
|
|
81
|
+
* in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
|
|
82
82
|
*
|
|
83
83
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
84
84
|
* @param {AgentMail.inboxes.ListCalendarEventsRequest} request
|
|
@@ -115,8 +115,8 @@ export declare class CalendarClient {
|
|
|
115
115
|
* moments earlier by a few seconds. Pass `consistency=primary` to read your own change right
|
|
116
116
|
* away. Requires the `calendar_event_read` permission.
|
|
117
117
|
*
|
|
118
|
-
* Calendar is in
|
|
119
|
-
* production (`api.agentmail.eu`). Organizations
|
|
118
|
+
* Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
|
|
119
|
+
* in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
|
|
120
120
|
*
|
|
121
121
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
122
122
|
* @param {AgentMail.inboxes.GetCalendarAgendaRequest} request
|
|
@@ -158,8 +158,8 @@ export declare class CalendarClient {
|
|
|
158
158
|
* The event's `etag` is the value to send in `If-Match` to make a later update or delete
|
|
159
159
|
* conditional. Requires the `calendar_event_create` permission.
|
|
160
160
|
*
|
|
161
|
-
* Calendar is in
|
|
162
|
-
* production (`api.agentmail.eu`). Organizations
|
|
161
|
+
* Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
|
|
162
|
+
* in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
|
|
163
163
|
*
|
|
164
164
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
165
165
|
* @param {AgentMail.CreateCalendarEventRequest} request
|
|
@@ -220,8 +220,8 @@ export declare class CalendarClient {
|
|
|
220
220
|
* reads back as it ran, even if a later change to the series no longer produces it. Requires
|
|
221
221
|
* the `calendar_event_read` permission.
|
|
222
222
|
*
|
|
223
|
-
* Calendar is in
|
|
224
|
-
* production (`api.agentmail.eu`). Organizations
|
|
223
|
+
* Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
|
|
224
|
+
* in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
|
|
225
225
|
*
|
|
226
226
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
227
227
|
* @param {AgentMail.CalendarEventId} event_id
|
|
@@ -269,8 +269,8 @@ export declare class CalendarClient {
|
|
|
269
269
|
* send limits, charged before the change is saved; an over-limit request returns `429`
|
|
270
270
|
* `rate_limit_exceeded` and changes nothing.
|
|
271
271
|
*
|
|
272
|
-
* Calendar is in
|
|
273
|
-
* production (`api.agentmail.eu`). Organizations
|
|
272
|
+
* Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
|
|
273
|
+
* in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
|
|
274
274
|
*
|
|
275
275
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
276
276
|
* @param {AgentMail.CalendarEventId} event_id
|
|
@@ -327,8 +327,8 @@ export declare class CalendarClient {
|
|
|
327
327
|
* send limits, charged before the delete; an over-limit request returns `429`
|
|
328
328
|
* `rate_limit_exceeded` and deletes nothing.
|
|
329
329
|
*
|
|
330
|
-
* Calendar is in
|
|
331
|
-
* production (`api.agentmail.eu`). Organizations
|
|
330
|
+
* Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
|
|
331
|
+
* in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
|
|
332
332
|
*
|
|
333
333
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
334
334
|
* @param {AgentMail.CalendarEventId} event_id
|
|
@@ -368,8 +368,8 @@ export declare class CalendarClient {
|
|
|
368
368
|
* trail a change made moments earlier by a few seconds; pass `consistency=primary` to read
|
|
369
369
|
* your own change right away. Requires the `calendar_event_read` permission.
|
|
370
370
|
*
|
|
371
|
-
* Calendar is in
|
|
372
|
-
* production (`api.agentmail.eu`). Organizations
|
|
371
|
+
* Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
|
|
372
|
+
* in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
|
|
373
373
|
*
|
|
374
374
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
375
375
|
* @param {string} event_id - UUID of the recurring event.
|
|
@@ -407,8 +407,8 @@ export declare class CalendarClient {
|
|
|
407
407
|
* charged before the response is saved; an over-limit request returns `429`
|
|
408
408
|
* `rate_limit_exceeded` and changes nothing.
|
|
409
409
|
*
|
|
410
|
-
* Calendar is in
|
|
411
|
-
* production (`api.agentmail.eu`). Organizations
|
|
410
|
+
* Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
|
|
411
|
+
* in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
|
|
412
412
|
*
|
|
413
413
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
414
414
|
* @param {AgentMail.CalendarEventId} event_id
|
|
@@ -74,9 +74,9 @@ class CalendarClient {
|
|
|
74
74
|
* created. Its `etag` (also the `ETag` response header) is the value to send in `If-Match` to
|
|
75
75
|
* make an update conditional.
|
|
76
76
|
*
|
|
77
|
-
* Requires the `calendar_read` permission. Calendar is in
|
|
78
|
-
*
|
|
79
|
-
*
|
|
77
|
+
* Requires the `calendar_read` permission. Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`)
|
|
78
|
+
* but not yet in EU production (`api.agentmail.eu`). Organizations that have not joined
|
|
79
|
+
* Labs receive a `403`.
|
|
80
80
|
*
|
|
81
81
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
82
82
|
* @param {AgentMail.inboxes.GetCalendarRequest} request
|
|
@@ -177,8 +177,8 @@ class CalendarClient {
|
|
|
177
177
|
* calendar's current `etag` in `If-Match`: a stale value returns `412`. Without `If-Match` the
|
|
178
178
|
* update applies to the calendar as it is.
|
|
179
179
|
*
|
|
180
|
-
* Calendar is in
|
|
181
|
-
* production (`api.agentmail.eu`). Organizations
|
|
180
|
+
* Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
|
|
181
|
+
* in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
|
|
182
182
|
*
|
|
183
183
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
184
184
|
* @param {AgentMail.inboxes.UpdateCalendarRequestWrapper} request
|
|
@@ -308,8 +308,8 @@ class CalendarClient {
|
|
|
308
308
|
* The list is always read in the region that serves the request, so it can trail a change made
|
|
309
309
|
* moments earlier by a few seconds. Requires the `calendar_event_read` permission.
|
|
310
310
|
*
|
|
311
|
-
* Calendar is in
|
|
312
|
-
* production (`api.agentmail.eu`). Organizations
|
|
311
|
+
* Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
|
|
312
|
+
* in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
|
|
313
313
|
*
|
|
314
314
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
315
315
|
* @param {AgentMail.inboxes.ListCalendarEventsRequest} request
|
|
@@ -418,8 +418,8 @@ class CalendarClient {
|
|
|
418
418
|
* moments earlier by a few seconds. Pass `consistency=primary` to read your own change right
|
|
419
419
|
* away. Requires the `calendar_event_read` permission.
|
|
420
420
|
*
|
|
421
|
-
* Calendar is in
|
|
422
|
-
* production (`api.agentmail.eu`). Organizations
|
|
421
|
+
* Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
|
|
422
|
+
* in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
|
|
423
423
|
*
|
|
424
424
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
425
425
|
* @param {AgentMail.inboxes.GetCalendarAgendaRequest} request
|
|
@@ -552,8 +552,8 @@ class CalendarClient {
|
|
|
552
552
|
* The event's `etag` is the value to send in `If-Match` to make a later update or delete
|
|
553
553
|
* conditional. Requires the `calendar_event_create` permission.
|
|
554
554
|
*
|
|
555
|
-
* Calendar is in
|
|
556
|
-
* production (`api.agentmail.eu`). Organizations
|
|
555
|
+
* Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
|
|
556
|
+
* in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
|
|
557
557
|
*
|
|
558
558
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
559
559
|
* @param {AgentMail.CreateCalendarEventRequest} request
|
|
@@ -711,8 +711,8 @@ class CalendarClient {
|
|
|
711
711
|
* reads back as it ran, even if a later change to the series no longer produces it. Requires
|
|
712
712
|
* the `calendar_event_read` permission.
|
|
713
713
|
*
|
|
714
|
-
* Calendar is in
|
|
715
|
-
* production (`api.agentmail.eu`). Organizations
|
|
714
|
+
* Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
|
|
715
|
+
* in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
|
|
716
716
|
*
|
|
717
717
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
718
718
|
* @param {AgentMail.CalendarEventId} event_id
|
|
@@ -844,8 +844,8 @@ class CalendarClient {
|
|
|
844
844
|
* send limits, charged before the change is saved; an over-limit request returns `429`
|
|
845
845
|
* `rate_limit_exceeded` and changes nothing.
|
|
846
846
|
*
|
|
847
|
-
* Calendar is in
|
|
848
|
-
* production (`api.agentmail.eu`). Organizations
|
|
847
|
+
* Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
|
|
848
|
+
* in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
|
|
849
849
|
*
|
|
850
850
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
851
851
|
* @param {AgentMail.CalendarEventId} event_id
|
|
@@ -1024,8 +1024,8 @@ class CalendarClient {
|
|
|
1024
1024
|
* send limits, charged before the delete; an over-limit request returns `429`
|
|
1025
1025
|
* `rate_limit_exceeded` and deletes nothing.
|
|
1026
1026
|
*
|
|
1027
|
-
* Calendar is in
|
|
1028
|
-
* production (`api.agentmail.eu`). Organizations
|
|
1027
|
+
* Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
|
|
1028
|
+
* in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
|
|
1029
1029
|
*
|
|
1030
1030
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
1031
1031
|
* @param {AgentMail.CalendarEventId} event_id
|
|
@@ -1174,8 +1174,8 @@ class CalendarClient {
|
|
|
1174
1174
|
* trail a change made moments earlier by a few seconds; pass `consistency=primary` to read
|
|
1175
1175
|
* your own change right away. Requires the `calendar_event_read` permission.
|
|
1176
1176
|
*
|
|
1177
|
-
* Calendar is in
|
|
1178
|
-
* production (`api.agentmail.eu`). Organizations
|
|
1177
|
+
* Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
|
|
1178
|
+
* in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
|
|
1179
1179
|
*
|
|
1180
1180
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
1181
1181
|
* @param {string} event_id - UUID of the recurring event.
|
|
@@ -1312,8 +1312,8 @@ class CalendarClient {
|
|
|
1312
1312
|
* charged before the response is saved; an over-limit request returns `429`
|
|
1313
1313
|
* `rate_limit_exceeded` and changes nothing.
|
|
1314
1314
|
*
|
|
1315
|
-
* Calendar is in
|
|
1316
|
-
* production (`api.agentmail.eu`). Organizations
|
|
1315
|
+
* Calendar is in AgentMail Labs, available in US production (`api.agentmail.to`) but not yet
|
|
1316
|
+
* in EU production (`api.agentmail.eu`). Organizations that have not joined Labs receive a `403`.
|
|
1317
1317
|
*
|
|
1318
1318
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
1319
1319
|
* @param {AgentMail.CalendarEventId} event_id
|
|
@@ -2,6 +2,7 @@ import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../Ba
|
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
|
|
3
3
|
import * as core from "../../../../../../core/index.js";
|
|
4
4
|
import * as AgentMail from "../../../../../index.js";
|
|
5
|
+
import { PollingClient } from "../resources/polling/client/Client.js";
|
|
5
6
|
export declare namespace WebhooksClient {
|
|
6
7
|
type Options = BaseClientOptions;
|
|
7
8
|
interface RequestOptions extends BaseRequestOptions {
|
|
@@ -9,7 +10,9 @@ export declare namespace WebhooksClient {
|
|
|
9
10
|
}
|
|
10
11
|
export declare class WebhooksClient {
|
|
11
12
|
protected readonly _options: NormalizedClientOptionsWithAuth<WebhooksClient.Options>;
|
|
13
|
+
protected _polling: PollingClient | undefined;
|
|
12
14
|
constructor(options?: WebhooksClient.Options);
|
|
15
|
+
get polling(): PollingClient;
|
|
13
16
|
/**
|
|
14
17
|
* **CLI:**
|
|
15
18
|
* ```bash
|
|
@@ -52,10 +52,15 @@ const handleNonStatusCodeError_js_1 = require("../../../../../../errors/handleNo
|
|
|
52
52
|
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
53
53
|
const serializers = __importStar(require("../../../../../../serialization/index.js"));
|
|
54
54
|
const AgentMail = __importStar(require("../../../../../index.js"));
|
|
55
|
+
const Client_js_1 = require("../resources/polling/client/Client.js");
|
|
55
56
|
class WebhooksClient {
|
|
56
57
|
constructor(options = {}) {
|
|
57
58
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
58
59
|
}
|
|
60
|
+
get polling() {
|
|
61
|
+
var _a;
|
|
62
|
+
return ((_a = this._polling) !== null && _a !== void 0 ? _a : (this._polling = new Client_js_1.PollingClient(this._options)));
|
|
63
|
+
}
|
|
59
64
|
/**
|
|
60
65
|
* **CLI:**
|
|
61
66
|
* ```bash
|
|
@@ -19,3 +19,4 @@ exports.WebhooksClient = void 0;
|
|
|
19
19
|
var Client_js_1 = require("./client/Client.js");
|
|
20
20
|
Object.defineProperty(exports, "WebhooksClient", { enumerable: true, get: function () { return Client_js_1.WebhooksClient; } });
|
|
21
21
|
__exportStar(require("./client/index.js"), exports);
|
|
22
|
+
__exportStar(require("./resources/index.js"), exports);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.polling = void 0;
|
|
40
|
+
__exportStar(require("./polling/client/requests/index.js"), exports);
|
|
41
|
+
exports.polling = __importStar(require("./polling/index.js"));
|
package/dist/cjs/api/resources/inboxes/resources/webhooks/resources/polling/client/Client.d.ts
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../../../../../core/index.js";
|
|
4
|
+
import * as AgentMail from "../../../../../../../index.js";
|
|
5
|
+
export declare namespace PollingClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class PollingClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<PollingClient.Options>;
|
|
12
|
+
constructor(options?: PollingClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Lists the polling webhooks created through this inbox route.
|
|
15
|
+
*
|
|
16
|
+
* **CLI:**
|
|
17
|
+
* ```bash
|
|
18
|
+
* agentmail inboxes webhooks polling list --inbox-id <inbox_id>
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
22
|
+
* @param {AgentMail.inboxes.webhooks.InboxListPollingWebhooksRequest} request
|
|
23
|
+
* @param {PollingClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
24
|
+
*
|
|
25
|
+
* @throws {@link AgentMail.ValidationError}
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* await client.inboxes.webhooks.polling.list("inbox_id")
|
|
29
|
+
*/
|
|
30
|
+
list(inbox_id: AgentMail.inboxes.InboxId, request?: AgentMail.inboxes.webhooks.InboxListPollingWebhooksRequest, requestOptions?: PollingClient.RequestOptions): core.HttpResponsePromise<AgentMail.webhooks.ListPollingWebhooksResponse>;
|
|
31
|
+
private __list;
|
|
32
|
+
/**
|
|
33
|
+
* **CLI:**
|
|
34
|
+
* ```bash
|
|
35
|
+
* agentmail inboxes webhooks polling get --inbox-id <inbox_id> --webhook-id <webhook_id>
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
39
|
+
* @param {AgentMail.webhooks.WebhookId} webhook_id
|
|
40
|
+
* @param {PollingClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
|
+
*
|
|
42
|
+
* @throws {@link AgentMail.NotFoundError}
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* await client.inboxes.webhooks.polling.get("inbox_id", "webhook_id")
|
|
46
|
+
*/
|
|
47
|
+
get(inbox_id: AgentMail.inboxes.InboxId, webhook_id: AgentMail.webhooks.WebhookId, requestOptions?: PollingClient.RequestOptions): core.HttpResponsePromise<AgentMail.webhooks.PollingWebhook>;
|
|
48
|
+
private __get;
|
|
49
|
+
/**
|
|
50
|
+
* Create a polling webhook scoped to this inbox and return the `token` that reads it.
|
|
51
|
+
*
|
|
52
|
+
* **CLI:**
|
|
53
|
+
* ```bash
|
|
54
|
+
* agentmail inboxes webhooks polling create --inbox-id <inbox_id> --client-id my-agent --event-types message.received
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
58
|
+
* @param {AgentMail.webhooks.CreateInboxPollingWebhookRequest} request
|
|
59
|
+
* @param {PollingClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link AgentMail.ValidationError}
|
|
62
|
+
* @throws {@link AgentMail.ConflictError}
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* await client.inboxes.webhooks.polling.create("inbox_id", {
|
|
66
|
+
* clientId: "client_id",
|
|
67
|
+
* eventTypes: ["message.received", "message.received"]
|
|
68
|
+
* })
|
|
69
|
+
*/
|
|
70
|
+
create(inbox_id: AgentMail.inboxes.InboxId, request: AgentMail.webhooks.CreateInboxPollingWebhookRequest, requestOptions?: PollingClient.RequestOptions): core.HttpResponsePromise<AgentMail.webhooks.CreatePollingWebhookResponse>;
|
|
71
|
+
private __create;
|
|
72
|
+
/**
|
|
73
|
+
* **CLI:**
|
|
74
|
+
* ```bash
|
|
75
|
+
* agentmail inboxes webhooks polling delete --inbox-id <inbox_id> --webhook-id <webhook_id>
|
|
76
|
+
* ```
|
|
77
|
+
*
|
|
78
|
+
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
79
|
+
* @param {AgentMail.webhooks.WebhookId} webhook_id
|
|
80
|
+
* @param {PollingClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link AgentMail.NotFoundError}
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* await client.inboxes.webhooks.polling.delete("inbox_id", "webhook_id")
|
|
86
|
+
*/
|
|
87
|
+
delete(inbox_id: AgentMail.inboxes.InboxId, webhook_id: AgentMail.webhooks.WebhookId, requestOptions?: PollingClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
88
|
+
private __delete;
|
|
89
|
+
}
|