@sylphx/sdk 0.28.0 → 0.31.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.
Files changed (104) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +42 -114
  3. package/dist/access.d.ts +670 -0
  4. package/dist/access.js +640 -0
  5. package/dist/access.js.map +1 -0
  6. package/dist/ai.d.ts +176 -0
  7. package/dist/ai.js +112 -0
  8. package/dist/ai.js.map +1 -0
  9. package/dist/artifacts.d.ts +165 -0
  10. package/dist/artifacts.js +129 -0
  11. package/dist/artifacts.js.map +1 -0
  12. package/dist/auth/verify.d.ts +57 -0
  13. package/dist/auth/verify.js +157 -0
  14. package/dist/auth/verify.js.map +1 -0
  15. package/dist/auth.d.ts +896 -0
  16. package/dist/auth.js +828 -0
  17. package/dist/auth.js.map +1 -0
  18. package/dist/billing.d.ts +854 -0
  19. package/dist/billing.js +593 -0
  20. package/dist/billing.js.map +1 -0
  21. package/dist/broker.d.ts +226 -0
  22. package/dist/broker.js +187 -0
  23. package/dist/broker.js.map +1 -0
  24. package/dist/build.d.ts +313 -0
  25. package/dist/build.js +271 -0
  26. package/dist/build.js.map +1 -0
  27. package/dist/common.d.ts +162 -0
  28. package/dist/common.js +41 -0
  29. package/dist/common.js.map +1 -0
  30. package/dist/config.d.ts +198 -0
  31. package/dist/config.js +168 -0
  32. package/dist/config.js.map +1 -0
  33. package/dist/connections.d.ts +354 -0
  34. package/dist/connections.js +313 -0
  35. package/dist/connections.js.map +1 -0
  36. package/dist/data.d.ts +1141 -0
  37. package/dist/data.js +1082 -0
  38. package/dist/data.js.map +1 -0
  39. package/dist/entitlement.d.ts +179 -0
  40. package/dist/entitlement.js +117 -0
  41. package/dist/entitlement.js.map +1 -0
  42. package/dist/events.d.ts +1324 -0
  43. package/dist/events.js +1227 -0
  44. package/dist/events.js.map +1 -0
  45. package/dist/hosting.d.ts +709 -0
  46. package/dist/hosting.js +611 -0
  47. package/dist/hosting.js.map +1 -0
  48. package/dist/index.d.ts +79 -33656
  49. package/dist/index.js +113 -0
  50. package/dist/index.js.map +1 -0
  51. package/dist/keys.d.ts +438 -0
  52. package/dist/keys.js +406 -0
  53. package/dist/keys.js.map +1 -0
  54. package/dist/methods.d.ts +2 -0
  55. package/dist/methods.js +4200 -0
  56. package/dist/methods.js.map +1 -0
  57. package/dist/network.d.ts +733 -0
  58. package/dist/network.js +711 -0
  59. package/dist/network.js.map +1 -0
  60. package/dist/notify.d.ts +1753 -0
  61. package/dist/notify.js +1551 -0
  62. package/dist/notify.js.map +1 -0
  63. package/dist/observability.d.ts +509 -0
  64. package/dist/observability.js +437 -0
  65. package/dist/observability.js.map +1 -0
  66. package/dist/release.d.ts +303 -0
  67. package/dist/release.js +214 -0
  68. package/dist/release.js.map +1 -0
  69. package/dist/runners.d.ts +262 -0
  70. package/dist/runners.js +238 -0
  71. package/dist/runners.js.map +1 -0
  72. package/dist/runtime.d.ts +121 -0
  73. package/dist/runtime.js +305 -0
  74. package/dist/runtime.js.map +1 -0
  75. package/dist/sandboxes.d.ts +1705 -0
  76. package/dist/sandboxes.js +1226 -0
  77. package/dist/sandboxes.js.map +1 -0
  78. package/dist/secrets.d.ts +508 -0
  79. package/dist/secrets.js +474 -0
  80. package/dist/secrets.js.map +1 -0
  81. package/dist/workflows.d.ts +678 -0
  82. package/dist/workflows.js +595 -0
  83. package/dist/workflows.js.map +1 -0
  84. package/package.json +33 -112
  85. package/dist/connect.d.ts +0 -2838
  86. package/dist/connect.mjs +0 -220
  87. package/dist/connect.mjs.map +0 -1
  88. package/dist/health/index.d.ts +0 -1394
  89. package/dist/health/index.mjs +0 -1394
  90. package/dist/health/index.mjs.map +0 -1
  91. package/dist/index.mjs +0 -38429
  92. package/dist/index.mjs.map +0 -1
  93. package/dist/nextjs/index.d.ts +0 -724
  94. package/dist/nextjs/index.mjs +0 -3332
  95. package/dist/nextjs/index.mjs.map +0 -1
  96. package/dist/react/index.d.ts +0 -13066
  97. package/dist/react/index.mjs +0 -35329
  98. package/dist/react/index.mjs.map +0 -1
  99. package/dist/server/index.d.ts +0 -2000
  100. package/dist/server/index.mjs +0 -3446
  101. package/dist/server/index.mjs.map +0 -1
  102. package/dist/web-analytics.d.ts +0 -90
  103. package/dist/web-analytics.mjs +0 -225
  104. package/dist/web-analytics.mjs.map +0 -1
@@ -0,0 +1,1753 @@
1
+ import * as runtime from './runtime.js';
2
+ import './common.js';
3
+ import type * as common from './common.js';
4
+ /** The request of ArchiveInboxItem. */
5
+ export interface ArchiveInboxItemRequest {
6
+ /** The name of the inbox item. */
7
+ name: string;
8
+ }
9
+ /**
10
+ * A Broadcast sends one template to a segment of recipients, fired by a
11
+ * Workflows Schedule. Every recipient still passes suppression and
12
+ * preferences.
13
+ */
14
+ export interface Broadcast {
15
+ /** `orgs/{org}/projects/{project}/envs/{env}/broadcasts/{broadcast}`. */
16
+ name?: string;
17
+ /** `bct_<cell><ulid>`; never reused. */
18
+ readonly uid?: string;
19
+ /** Resource metadata. */
20
+ meta?: common.ResourceMeta;
21
+ /** Desired state. */
22
+ spec?: BroadcastSpec;
23
+ /** Observed state. */
24
+ readonly status?: BroadcastStatus;
25
+ }
26
+ /** BroadcastSpec is the caller-writable state of a Broadcast. */
27
+ export interface BroadcastSpec {
28
+ /** The topic every message carries. */
29
+ topic?: string;
30
+ /** The template to render. */
31
+ template?: string;
32
+ /** AIP-160 filter over recipient labels and fields selecting the segment. */
33
+ segmentFilter?: string;
34
+ /** Template variables shared by every message. */
35
+ data?: Record<string, unknown>;
36
+ /** When to send; unset sends only on `:send`. */
37
+ sendTime?: string;
38
+ }
39
+ /** BroadcastStatus is the observed state of a Broadcast. */
40
+ export interface BroadcastStatus {
41
+ /** The generation this status was computed from. */
42
+ readonly observedGeneration?: string;
43
+ /** Ready, Reconciling, Stalled. */
44
+ readonly conditions?: common.Condition[];
45
+ /** The broadcast's progress. */
46
+ readonly state?: BroadcastState;
47
+ /** The Workflows Schedule that fires it. */
48
+ readonly schedule?: string;
49
+ /** Messages admitted. */
50
+ readonly admittedCount?: string;
51
+ /** Recipients skipped by suppression or preference. */
52
+ readonly skippedCount?: string;
53
+ }
54
+ /** The request of CancelBroadcast. */
55
+ export interface CancelBroadcastRequest {
56
+ /** The name of the broadcast. */
57
+ name: string;
58
+ /** Act only if the current etag matches. */
59
+ etag?: string;
60
+ }
61
+ /** The request of CancelMessage. */
62
+ export interface CancelMessageRequest {
63
+ /** The name of the message. */
64
+ name: string;
65
+ }
66
+ /** One channel's delivery of a Message. */
67
+ export interface ChannelDelivery {
68
+ /** The channel. */
69
+ readonly channel?: Channel;
70
+ /** The address, masked. */
71
+ readonly maskedAddress?: string;
72
+ /** The delivery state. */
73
+ readonly state?: ChannelDeliveryState;
74
+ /** The provider's acceptance id. */
75
+ readonly providerReceipt?: string;
76
+ /** When the provider receipt closed the delivery. */
77
+ readonly receiptTime?: string;
78
+ /** A machine-readable failure code. */
79
+ readonly errorCode?: string;
80
+ /** The provider's last reply, for example `250 2.0.0 queued as …`. */
81
+ readonly providerResponse?: string;
82
+ /** Hand-off attempts so far. */
83
+ readonly attempts?: number;
84
+ }
85
+ /** The request of CreateBroadcast. */
86
+ export interface CreateBroadcastRequest {
87
+ /** The parent to create in. */
88
+ parent: string;
89
+ /**
90
+ * The broadcast id, the final name segment; the server assigns one when
91
+ * empty.
92
+ */
93
+ broadcastId?: string;
94
+ /** The broadcast to create; only caller-writable fields are read. */
95
+ broadcast: Broadcast;
96
+ /** Validate and return the result without writing anything. */
97
+ validateOnly?: boolean;
98
+ }
99
+ /** The request of CreateMailbox. */
100
+ export interface CreateMailboxRequest {
101
+ /** The parent to create in. */
102
+ parent: string;
103
+ /**
104
+ * The mailbox id, the final name segment; the server assigns one when
105
+ * empty.
106
+ */
107
+ mailboxId?: string;
108
+ /** The mailbox to create; only caller-writable fields are read. */
109
+ mailbox: Mailbox;
110
+ /** Validate and return the result without writing anything. */
111
+ validateOnly?: boolean;
112
+ }
113
+ /** The request of CreateMessage. */
114
+ export interface CreateMessageRequest {
115
+ /** The parent to create in. */
116
+ parent: string;
117
+ /** The message id, the final name segment; the server assigns one when empty. */
118
+ messageId?: string;
119
+ /** The message to create; only caller-writable fields are read. */
120
+ message: Message;
121
+ /** Validate and return the result without writing anything. */
122
+ validateOnly?: boolean;
123
+ }
124
+ /** The request of CreateRecipient. */
125
+ export interface CreateRecipientRequest {
126
+ /** The parent to create in. */
127
+ parent: string;
128
+ /**
129
+ * The recipient id, the final name segment; the server assigns one when
130
+ * empty.
131
+ */
132
+ recipientId?: string;
133
+ /** The recipient to create; only caller-writable fields are read. */
134
+ recipient: Recipient;
135
+ /** Validate and return the result without writing anything. */
136
+ validateOnly?: boolean;
137
+ }
138
+ /** The request of CreateSender. */
139
+ export interface CreateSenderRequest {
140
+ /** The parent to create in. */
141
+ parent: string;
142
+ /** The sender id, the final name segment; the server assigns one when empty. */
143
+ senderId?: string;
144
+ /** The sender to create; only caller-writable fields are read. */
145
+ sender: Sender;
146
+ /** Validate and return the result without writing anything. */
147
+ validateOnly?: boolean;
148
+ }
149
+ /** The request of CreateSendingDomain. */
150
+ export interface CreateSendingDomainRequest {
151
+ /** The parent to create in. */
152
+ parent: string;
153
+ /**
154
+ * The sending domain id, the final name segment; the server assigns one when
155
+ * empty.
156
+ */
157
+ sendingDomainId?: string;
158
+ /** The sending domain to create; only caller-writable fields are read. */
159
+ sendingDomain: SendingDomain;
160
+ /** Validate and return the result without writing anything. */
161
+ validateOnly?: boolean;
162
+ }
163
+ /** The request of CreateSuppression. */
164
+ export interface CreateSuppressionRequest {
165
+ /** The parent to create in. */
166
+ parent: string;
167
+ /**
168
+ * The suppression id, the final name segment; the server assigns one when
169
+ * empty.
170
+ */
171
+ suppressionId?: string;
172
+ /** The suppression to create; only caller-writable fields are read. */
173
+ suppression: Suppression;
174
+ /** Validate and return the result without writing anything. */
175
+ validateOnly?: boolean;
176
+ }
177
+ /** The request of CreateTemplate. */
178
+ export interface CreateTemplateRequest {
179
+ /** The parent to create in. */
180
+ parent: string;
181
+ /**
182
+ * The template id, the final name segment; the server assigns one when
183
+ * empty.
184
+ */
185
+ templateId?: string;
186
+ /** The template to create; only caller-writable fields are read. */
187
+ template: Template;
188
+ /** Validate and return the result without writing anything. */
189
+ validateOnly?: boolean;
190
+ }
191
+ /** The request of DeleteBroadcast. */
192
+ export interface DeleteBroadcastRequest {
193
+ /** The name of the broadcast to delete. */
194
+ name: string;
195
+ /** Delete only if the current etag matches. */
196
+ etag?: string;
197
+ /** Succeed when the broadcast does not exist. */
198
+ allowMissing?: boolean;
199
+ /** Validate without deleting anything. */
200
+ validateOnly?: boolean;
201
+ }
202
+ /** The request of DeleteMailbox. */
203
+ export interface DeleteMailboxRequest {
204
+ /** The name of the mailbox to delete. */
205
+ name: string;
206
+ /** Delete only if the current etag matches. */
207
+ etag?: string;
208
+ /** Succeed when the mailbox does not exist. */
209
+ allowMissing?: boolean;
210
+ /** Validate without deleting anything. */
211
+ validateOnly?: boolean;
212
+ /**
213
+ * Delete its inbound email with it; a mailbox holding inbound email is not
214
+ * deleted without it.
215
+ */
216
+ force?: boolean;
217
+ }
218
+ /** The request of DeletePreference. */
219
+ export interface DeletePreferenceRequest {
220
+ /** The name of the preference to delete. */
221
+ name: string;
222
+ /** Delete only if the current etag matches. */
223
+ etag?: string;
224
+ /** Succeed when the preference does not exist. */
225
+ allowMissing?: boolean;
226
+ /** Validate without deleting anything. */
227
+ validateOnly?: boolean;
228
+ }
229
+ /** The request of DeleteRecipient. */
230
+ export interface DeleteRecipientRequest {
231
+ /** The name of the recipient to delete. */
232
+ name: string;
233
+ /** Delete only if the current etag matches. */
234
+ etag?: string;
235
+ /** Succeed when the recipient does not exist. */
236
+ allowMissing?: boolean;
237
+ /** Validate without deleting anything. */
238
+ validateOnly?: boolean;
239
+ /** Also delete the recipient's preferences and inbox items. */
240
+ force?: boolean;
241
+ }
242
+ /** The request of DeleteSender. */
243
+ export interface DeleteSenderRequest {
244
+ /** The name of the sender to delete. */
245
+ name: string;
246
+ /** Delete only if the current etag matches. */
247
+ etag?: string;
248
+ /** Succeed when the sender does not exist. */
249
+ allowMissing?: boolean;
250
+ /** Validate without deleting anything. */
251
+ validateOnly?: boolean;
252
+ }
253
+ /** The request of DeleteSendingDomain. */
254
+ export interface DeleteSendingDomainRequest {
255
+ /** The name of the sending domain to delete. */
256
+ name: string;
257
+ /** Delete only if the current etag matches. */
258
+ etag?: string;
259
+ /** Succeed when the sending domain does not exist. */
260
+ allowMissing?: boolean;
261
+ /** Validate without deleting anything. */
262
+ validateOnly?: boolean;
263
+ }
264
+ /** The request of DeleteSuppression. */
265
+ export interface DeleteSuppressionRequest {
266
+ /** The name of the suppression to delete. */
267
+ name: string;
268
+ /** Delete only if the current etag matches. */
269
+ etag?: string;
270
+ /** Succeed when the suppression does not exist. */
271
+ allowMissing?: boolean;
272
+ /** Validate without deleting anything. */
273
+ validateOnly?: boolean;
274
+ }
275
+ /** The request of DeleteTemplate. */
276
+ export interface DeleteTemplateRequest {
277
+ /** The name of the template to delete. */
278
+ name: string;
279
+ /** Delete only if the current etag matches. */
280
+ etag?: string;
281
+ /** Succeed when the template does not exist. */
282
+ allowMissing?: boolean;
283
+ /** Validate without deleting anything. */
284
+ validateOnly?: boolean;
285
+ }
286
+ /** A DNS record a Sending Domain needs. */
287
+ export interface DnsRecord {
288
+ /** The record type: `TXT`, `CNAME`, or `MX`. */
289
+ readonly recordType?: string;
290
+ /** The fully qualified host. */
291
+ readonly host?: string;
292
+ /** The value to publish. */
293
+ readonly value?: string;
294
+ /** Whether the published value matches. */
295
+ readonly verified?: boolean;
296
+ }
297
+ /** Email content; bodies are Mustache templates. */
298
+ export interface EmailContent {
299
+ /** The From address; its domain is a verified Sending Domain. */
300
+ senderAddress?: string;
301
+ /** The subject. */
302
+ subject?: string;
303
+ /** The HTML body. */
304
+ htmlBody?: string;
305
+ /** The plain-text body. */
306
+ textBody?: string;
307
+ /** The From display name, for example the app's name. */
308
+ senderName?: string;
309
+ }
310
+ /** The request of EraseMailboxAddress. */
311
+ export interface EraseMailboxAddressRequest {
312
+ /** The name of the mailbox. */
313
+ name: string;
314
+ /** The email address whose data is removed. */
315
+ address: string;
316
+ }
317
+ /** The response of EraseMailboxAddress. */
318
+ export interface EraseMailboxAddressResponse {
319
+ /** How many inbound emails were scrubbed. */
320
+ erasedCount?: string;
321
+ }
322
+ /** The request of GetBroadcast. */
323
+ export interface GetBroadcastRequest {
324
+ /** The name of the broadcast to get. */
325
+ name: string;
326
+ }
327
+ /** The request of GetInboundEmail. */
328
+ export interface GetInboundEmailRequest {
329
+ /** The name of the inbound email to get. */
330
+ name: string;
331
+ }
332
+ /** The request of GetInboxItem. */
333
+ export interface GetInboxItemRequest {
334
+ /** The name of the inbox item to get. */
335
+ name: string;
336
+ }
337
+ /** The request of GetMailbox. */
338
+ export interface GetMailboxRequest {
339
+ /** The name of the mailbox to get. */
340
+ name: string;
341
+ }
342
+ /** The request of GetMessage. */
343
+ export interface GetMessageRequest {
344
+ /** The name of the message to get. */
345
+ name: string;
346
+ }
347
+ /** The request of GetPreference. */
348
+ export interface GetPreferenceRequest {
349
+ /** The name of the preference to get. */
350
+ name: string;
351
+ }
352
+ /** The request of GetRecipient. */
353
+ export interface GetRecipientRequest {
354
+ /** The name of the recipient to get. */
355
+ name: string;
356
+ }
357
+ /** The request of GetSender. */
358
+ export interface GetSenderRequest {
359
+ /** The name of the sender to get. */
360
+ name: string;
361
+ }
362
+ /** The request of GetSendingDomain. */
363
+ export interface GetSendingDomainRequest {
364
+ /** The name of the sending domain to get. */
365
+ name: string;
366
+ }
367
+ /** The request of GetSuppression. */
368
+ export interface GetSuppressionRequest {
369
+ /** The name of the suppression to get. */
370
+ name: string;
371
+ }
372
+ /** The request of GetTemplate. */
373
+ export interface GetTemplateRequest {
374
+ /** The name of the template to get. */
375
+ name: string;
376
+ }
377
+ /**
378
+ * An Inbound Email is one mail a mailbox holds, received or sent, kept as
379
+ * evidence: parsed once, never changed except by erasure. Consumers read the
380
+ * feed in `sequence` order.
381
+ */
382
+ export interface InboundEmail {
383
+ /** `orgs/{org}/projects/{project}/envs/{env}/mailboxes/{mailbox}/inbound_emails/{inbound_email}`. */
384
+ name?: string;
385
+ /** `ieml_<cell><ulid>`; never reused. */
386
+ readonly uid?: string;
387
+ /** Resource metadata. */
388
+ meta?: common.ResourceMeta;
389
+ /**
390
+ * The feed position, increasing within the environment; filter
391
+ * `sequence > N` to resume after the last one handled.
392
+ */
393
+ readonly sequence?: string;
394
+ /** Received by the mailbox, or found in its Sent folder. */
395
+ readonly direction?: InboundEmailDirection;
396
+ /**
397
+ * The Message-ID without angle brackets; the dedupe key. Mail without one
398
+ * gets `sha256-<hex>@invalid`.
399
+ */
400
+ readonly messageId?: string;
401
+ /** In-Reply-To: the Message-ID this answers, without angle brackets. */
402
+ readonly parentMessageId?: string;
403
+ /** References, oldest first. */
404
+ readonly references?: string[];
405
+ /** The From address, lower case. */
406
+ readonly senderAddress?: string;
407
+ /** The From display name. */
408
+ readonly senderName?: string;
409
+ /** The To addresses. */
410
+ readonly recipientAddresses?: string[];
411
+ /** Cc addresses. */
412
+ readonly ccAddresses?: string[];
413
+ /** The subject. */
414
+ readonly subject?: string;
415
+ /** The plain-text body. */
416
+ readonly textBody?: string;
417
+ /** The HTML body as received; render it only through a sanitizer. */
418
+ readonly htmlBody?: string;
419
+ /** The Date header, else when the mailbox received it. */
420
+ readonly receiveTime?: string;
421
+ /**
422
+ * Sent by software: Auto-Submitted, Precedence bulk or list, auto-reply
423
+ * headers, or a delivery report.
424
+ */
425
+ readonly automated?: boolean;
426
+ /** SHA-256 of the raw message, hex. */
427
+ readonly rawSha256?: string;
428
+ /** The raw message size. */
429
+ readonly sizeBytes?: string;
430
+ /** Personal data removed by erasure; the dedupe key stays. */
431
+ readonly erased?: boolean;
432
+ /** The Notify Message that sent it, for mail Notify sent as this mailbox. */
433
+ readonly message?: string;
434
+ }
435
+ /** In-app inbox content. */
436
+ export interface InboxContent {
437
+ /** The title. */
438
+ title?: string;
439
+ /** The body. */
440
+ body?: string;
441
+ /** Where the item links. */
442
+ actionUri?: string;
443
+ }
444
+ /**
445
+ * An Inbox Item is one entry of a recipient's in-app feed. Clients receive it
446
+ * live over an Events Realtime Channel and page it here.
447
+ */
448
+ export interface InboxItem {
449
+ /** `orgs/{org}/projects/{project}/envs/{env}/recipients/{recipient}/inbox_items/{inbox_item}`. */
450
+ name?: string;
451
+ /** `ibx_<cell><ulid>`; never reused. */
452
+ readonly uid?: string;
453
+ /** Resource metadata. */
454
+ meta?: common.ResourceMeta;
455
+ /** The Message that produced it. */
456
+ readonly message?: string;
457
+ /** The rendered title. */
458
+ readonly title?: string;
459
+ /** The rendered body. */
460
+ readonly body?: string;
461
+ /** Where the item links. */
462
+ readonly actionUri?: string;
463
+ /** Read, unread, or archived. */
464
+ readonly state?: InboxItemState;
465
+ }
466
+ /** The request of ListBroadcasts. */
467
+ export interface ListBroadcastsRequest {
468
+ /** The parent to list in. */
469
+ parent: string;
470
+ /** At most this many; default 50, clamped to 1000. */
471
+ pageSize?: number;
472
+ /** `next_page_token` of the previous page. */
473
+ pageToken?: string;
474
+ /** AIP-160 filter over labels and filterable fields. */
475
+ filter?: string;
476
+ /** AIP-132 ordering over filterable fields. */
477
+ orderBy?: string;
478
+ }
479
+ /** The response of ListBroadcasts. */
480
+ export interface ListBroadcastsResponse {
481
+ /** The page. */
482
+ broadcasts?: Broadcast[];
483
+ /** The token of the next page; empty on the last page. */
484
+ nextPageToken?: string;
485
+ }
486
+ /** The request of ListInboundEmails. */
487
+ export interface ListInboundEmailsRequest {
488
+ /** The mailbox to list in. */
489
+ parent: string;
490
+ /** At most this many; default 50, clamped to 1000. */
491
+ pageSize?: number;
492
+ /** `next_page_token` of the previous page. */
493
+ pageToken?: string;
494
+ /** AIP-160 filter over labels and filterable fields. */
495
+ filter?: string;
496
+ /** AIP-132 ordering over filterable fields. */
497
+ orderBy?: string;
498
+ }
499
+ /** The response of ListInboundEmails. */
500
+ export interface ListInboundEmailsResponse {
501
+ /** The page. */
502
+ inboundEmails?: InboundEmail[];
503
+ /** The token of the next page; empty on the last page. */
504
+ nextPageToken?: string;
505
+ }
506
+ /** The request of ListInboxItems. */
507
+ export interface ListInboxItemsRequest {
508
+ /** The parent to list in. */
509
+ parent: string;
510
+ /** At most this many; default 50, clamped to 1000. */
511
+ pageSize?: number;
512
+ /** `next_page_token` of the previous page. */
513
+ pageToken?: string;
514
+ /** AIP-160 filter over labels and filterable fields. */
515
+ filter?: string;
516
+ /** AIP-132 ordering over filterable fields. */
517
+ orderBy?: string;
518
+ }
519
+ /** The response of ListInboxItems. */
520
+ export interface ListInboxItemsResponse {
521
+ /** The page. */
522
+ inboxItems?: InboxItem[];
523
+ /** The token of the next page; empty on the last page. */
524
+ nextPageToken?: string;
525
+ }
526
+ /** The request of ListMailboxes. */
527
+ export interface ListMailboxesRequest {
528
+ /** The parent to list in. */
529
+ parent: string;
530
+ /** At most this many; default 50, clamped to 1000. */
531
+ pageSize?: number;
532
+ /** `next_page_token` of the previous page. */
533
+ pageToken?: string;
534
+ /** AIP-160 filter over labels and filterable fields. */
535
+ filter?: string;
536
+ /** AIP-132 ordering over filterable fields. */
537
+ orderBy?: string;
538
+ }
539
+ /** The response of ListMailboxes. */
540
+ export interface ListMailboxesResponse {
541
+ /** The page. */
542
+ mailboxes?: Mailbox[];
543
+ /** The token of the next page; empty on the last page. */
544
+ nextPageToken?: string;
545
+ }
546
+ /** The request of ListMessages. */
547
+ export interface ListMessagesRequest {
548
+ /** The parent to list in. */
549
+ parent: string;
550
+ /** At most this many; default 50, clamped to 1000. */
551
+ pageSize?: number;
552
+ /** `next_page_token` of the previous page. */
553
+ pageToken?: string;
554
+ /** AIP-160 filter over labels and filterable fields. */
555
+ filter?: string;
556
+ /** AIP-132 ordering over filterable fields. */
557
+ orderBy?: string;
558
+ }
559
+ /** The response of ListMessages. */
560
+ export interface ListMessagesResponse {
561
+ /** The page. */
562
+ messages?: Message[];
563
+ /** The token of the next page; empty on the last page. */
564
+ nextPageToken?: string;
565
+ }
566
+ /** The request of ListPreferences. */
567
+ export interface ListPreferencesRequest {
568
+ /** The parent to list in. */
569
+ parent: string;
570
+ /** At most this many; default 50, clamped to 1000. */
571
+ pageSize?: number;
572
+ /** `next_page_token` of the previous page. */
573
+ pageToken?: string;
574
+ /** AIP-160 filter over labels and filterable fields. */
575
+ filter?: string;
576
+ /** AIP-132 ordering over filterable fields. */
577
+ orderBy?: string;
578
+ }
579
+ /** The response of ListPreferences. */
580
+ export interface ListPreferencesResponse {
581
+ /** The page. */
582
+ preferences?: Preference[];
583
+ /** The token of the next page; empty on the last page. */
584
+ nextPageToken?: string;
585
+ }
586
+ /** The request of ListRecipients. */
587
+ export interface ListRecipientsRequest {
588
+ /** The parent to list in. */
589
+ parent: string;
590
+ /** At most this many; default 50, clamped to 1000. */
591
+ pageSize?: number;
592
+ /** `next_page_token` of the previous page. */
593
+ pageToken?: string;
594
+ /** AIP-160 filter over labels and filterable fields. */
595
+ filter?: string;
596
+ /** AIP-132 ordering over filterable fields. */
597
+ orderBy?: string;
598
+ }
599
+ /** The response of ListRecipients. */
600
+ export interface ListRecipientsResponse {
601
+ /** The page. */
602
+ recipients?: Recipient[];
603
+ /** The token of the next page; empty on the last page. */
604
+ nextPageToken?: string;
605
+ }
606
+ /** The request of ListSenders. */
607
+ export interface ListSendersRequest {
608
+ /** The parent to list in. */
609
+ parent: string;
610
+ /** At most this many; default 50, clamped to 1000. */
611
+ pageSize?: number;
612
+ /** `next_page_token` of the previous page. */
613
+ pageToken?: string;
614
+ /** AIP-160 filter over labels and filterable fields. */
615
+ filter?: string;
616
+ /** AIP-132 ordering over filterable fields. */
617
+ orderBy?: string;
618
+ }
619
+ /** The response of ListSenders. */
620
+ export interface ListSendersResponse {
621
+ /** The page. */
622
+ senders?: Sender[];
623
+ /** The token of the next page; empty on the last page. */
624
+ nextPageToken?: string;
625
+ }
626
+ /** The request of ListSendingDomains. */
627
+ export interface ListSendingDomainsRequest {
628
+ /** The parent to list in. */
629
+ parent: string;
630
+ /** At most this many; default 50, clamped to 1000. */
631
+ pageSize?: number;
632
+ /** `next_page_token` of the previous page. */
633
+ pageToken?: string;
634
+ /** AIP-160 filter over labels and filterable fields. */
635
+ filter?: string;
636
+ /** AIP-132 ordering over filterable fields. */
637
+ orderBy?: string;
638
+ }
639
+ /** The response of ListSendingDomains. */
640
+ export interface ListSendingDomainsResponse {
641
+ /** The page. */
642
+ sendingDomains?: SendingDomain[];
643
+ /** The token of the next page; empty on the last page. */
644
+ nextPageToken?: string;
645
+ }
646
+ /** The request of ListSuppressions. */
647
+ export interface ListSuppressionsRequest {
648
+ /** The parent to list in. */
649
+ parent: string;
650
+ /** At most this many; default 50, clamped to 1000. */
651
+ pageSize?: number;
652
+ /** `next_page_token` of the previous page. */
653
+ pageToken?: string;
654
+ /** AIP-160 filter over labels and filterable fields. */
655
+ filter?: string;
656
+ /** AIP-132 ordering over filterable fields. */
657
+ orderBy?: string;
658
+ }
659
+ /** The response of ListSuppressions. */
660
+ export interface ListSuppressionsResponse {
661
+ /** The page. */
662
+ suppressions?: Suppression[];
663
+ /** The token of the next page; empty on the last page. */
664
+ nextPageToken?: string;
665
+ }
666
+ /** The request of ListTemplates. */
667
+ export interface ListTemplatesRequest {
668
+ /** The parent to list in. */
669
+ parent: string;
670
+ /** At most this many; default 50, clamped to 1000. */
671
+ pageSize?: number;
672
+ /** `next_page_token` of the previous page. */
673
+ pageToken?: string;
674
+ /** AIP-160 filter over labels and filterable fields. */
675
+ filter?: string;
676
+ /** AIP-132 ordering over filterable fields. */
677
+ orderBy?: string;
678
+ }
679
+ /** The response of ListTemplates. */
680
+ export interface ListTemplatesResponse {
681
+ /** The page. */
682
+ templates?: Template[];
683
+ /** The token of the next page; empty on the last page. */
684
+ nextPageToken?: string;
685
+ }
686
+ /** One mail server of a connected mailbox. */
687
+ export interface MailServer {
688
+ /** The host name. */
689
+ host?: string;
690
+ /** The port; IMAP 993 and SMTP 465 when unset. */
691
+ port?: number;
692
+ /** The login user; the mailbox address when unset. */
693
+ username?: string;
694
+ /** How the connection is secured. */
695
+ security?: MailServerSecurity;
696
+ }
697
+ /**
698
+ * A Mailbox is an email address Notify reads from and sends as. A `CONNECTED`
699
+ * mailbox is an existing mailbox at any provider, reached over IMAP (read
700
+ * only) and SMTP with its own login; a `HOSTED` mailbox receives at an
701
+ * address whose MX is Sylphx. Mail it receives becomes Inbound Email records.
702
+ */
703
+ export interface Mailbox {
704
+ /** `orgs/{org}/projects/{project}/envs/{env}/mailboxes/{mailbox}`. */
705
+ name?: string;
706
+ /** `mbx_<cell><ulid>`; never reused. */
707
+ readonly uid?: string;
708
+ /** Resource metadata. */
709
+ meta?: common.ResourceMeta;
710
+ /** Desired state. */
711
+ spec?: MailboxSpec;
712
+ /** Observed state. */
713
+ readonly status?: MailboxStatus;
714
+ }
715
+ /** MailboxSpec is the caller-writable state of a Mailbox. */
716
+ export interface MailboxSpec {
717
+ /** Connected or hosted. */
718
+ kind?: MailboxKind;
719
+ /** The address, for example `support@example.com`. */
720
+ address?: string;
721
+ /** The From display name of mail sent as this mailbox. */
722
+ displayName?: string;
723
+ /** IMAP, for a connected mailbox. */
724
+ imap?: MailServer;
725
+ /** SMTP submission, for a connected mailbox. */
726
+ smtp?: MailServer;
727
+ /** The login password of both servers; write-only, sealed at rest. */
728
+ password?: string;
729
+ /**
730
+ * Save a copy of mail sent as this mailbox to its Sent folder (IMAP
731
+ * APPEND); off when the provider saves one itself.
732
+ */
733
+ appendSent?: boolean;
734
+ /** Read mail received on or after this day on the first poll. */
735
+ backfillStartTime?: string;
736
+ /** Poll and send; a disabled mailbox keeps its records. */
737
+ enabled?: boolean;
738
+ }
739
+ /** MailboxStatus is the observed state of a Mailbox. */
740
+ export interface MailboxStatus {
741
+ /** The generation this status was computed from. */
742
+ readonly observedGeneration?: string;
743
+ /** Ready, Reconciling, Stalled. */
744
+ readonly conditions?: common.Condition[];
745
+ /** Whether a password is stored. */
746
+ readonly passwordSet?: boolean;
747
+ /** When the mailbox was last read. */
748
+ readonly lastPollTime?: string;
749
+ /** The last poll's error; empty after a clean poll. */
750
+ readonly lastError?: string;
751
+ /** The Sent folder found on the server. */
752
+ readonly sentFolder?: string;
753
+ }
754
+ /** The request of MarkInboxItemRead. */
755
+ export interface MarkInboxItemReadRequest {
756
+ /** The name of the inbox item. */
757
+ name: string;
758
+ }
759
+ /** The request of MarkInboxItemUnread. */
760
+ export interface MarkInboxItemUnreadRequest {
761
+ /** The name of the inbox item. */
762
+ name: string;
763
+ }
764
+ /**
765
+ * A Message is one notification to one recipient on one topic. Notify admits
766
+ * it idempotently, checks suppression and preferences, and fans it out to the
767
+ * allowed channels with fallback and digesting; every delivery closes with a
768
+ * provider receipt that only Notify writes.
769
+ */
770
+ export interface Message {
771
+ /** `orgs/{org}/projects/{project}/envs/{env}/messages/{message}`. */
772
+ name?: string;
773
+ /** `msg_<cell><ulid>`; never reused. */
774
+ readonly uid?: string;
775
+ /** Resource metadata. */
776
+ meta?: common.ResourceMeta;
777
+ /** The recipient. */
778
+ recipient?: string;
779
+ /** The topic preferences are checked against, for example `billing`. */
780
+ topic?: string;
781
+ /** The template to render; required unless `mailbox` and `content` are set. */
782
+ template?: string;
783
+ /** The template version rendered; pinned at admission. */
784
+ readonly templateVersion?: string;
785
+ /** Template variables. */
786
+ data?: Record<string, unknown>;
787
+ /**
788
+ * Restrict to these channels, in fallback order; empty uses the recipient's
789
+ * preferences.
790
+ */
791
+ channels?: Channel[];
792
+ /** Send no earlier than this. */
793
+ sendTime?: string;
794
+ /** The broadcast that created it, if any. */
795
+ readonly broadcast?: string;
796
+ /** The admission and delivery state. */
797
+ readonly state?: MessageState;
798
+ /** Per-channel deliveries and their receipts. */
799
+ readonly deliveries?: ChannelDelivery[];
800
+ /**
801
+ * Deliver no later than this; a delivery still open then fails with
802
+ * `expired`. Unset retries for up to a day. The message record is kept.
803
+ */
804
+ deliveryDeadlineTime?: string;
805
+ /**
806
+ * Why the message is in its state, for example `recipient_interval` for
807
+ * `RATE_LIMITED` or `suppressed` for `SUPPRESSED`.
808
+ */
809
+ readonly stateReason?: string;
810
+ /** A test recipient's rendered content; empty for every other recipient. */
811
+ readonly capture?: MessageCapture;
812
+ /**
813
+ * Send as this mailbox (its address, display name and, for a connected
814
+ * mailbox, its own SMTP) instead of a verified Sending Domain.
815
+ */
816
+ mailbox?: string;
817
+ /**
818
+ * Inline content, only with `mailbox`: the subject and bodies as written,
819
+ * not rendered from a template.
820
+ */
821
+ content?: MessageContent;
822
+ /** In-Reply-To: the Message-ID this answers, without angle brackets. */
823
+ parentMessageId?: string;
824
+ /** The thread's Message-IDs, oldest first, without angle brackets. */
825
+ references?: string[];
826
+ /** The Message-ID Notify gave the email, without angle brackets. */
827
+ readonly emailMessageId?: string;
828
+ }
829
+ /** What a message to a test recipient rendered to. */
830
+ export interface MessageCapture {
831
+ /** The email subject. */
832
+ readonly subject?: string;
833
+ /** The plain-text body. */
834
+ readonly textBody?: string;
835
+ /** The HTML body. */
836
+ readonly htmlBody?: string;
837
+ /** Every link in the bodies, in order. */
838
+ readonly links?: string[];
839
+ }
840
+ /** Inline content of a Message sent as a mailbox. */
841
+ export interface MessageContent {
842
+ /** The subject. */
843
+ subject?: string;
844
+ /** The plain-text body. */
845
+ textBody?: string;
846
+ /** The HTML body. */
847
+ htmlBody?: string;
848
+ }
849
+ /**
850
+ * A Preference is a recipient's choice for one topic: which channels may carry
851
+ * it. Admission honors it, and unsubscribe links write it. The id is the
852
+ * topic.
853
+ */
854
+ export interface Preference {
855
+ /** `orgs/{org}/projects/{project}/envs/{env}/recipients/{recipient}/preferences/{preference}`. */
856
+ name?: string;
857
+ /** `prf_<cell><ulid>`; never reused. */
858
+ readonly uid?: string;
859
+ /** Resource metadata. */
860
+ meta?: common.ResourceMeta;
861
+ /** Channels the topic may use; empty mutes the topic. */
862
+ channels?: Channel[];
863
+ /**
864
+ * Batch this topic into a digest at most this often; unset sends each
865
+ * message.
866
+ */
867
+ digestInterval?: string;
868
+ }
869
+ /** Push content. */
870
+ export interface PushContent {
871
+ /** The title. */
872
+ title?: string;
873
+ /** The body. */
874
+ body?: string;
875
+ /** Data delivered with the notification. */
876
+ data?: Record<string, unknown>;
877
+ }
878
+ /** A push device of a recipient. */
879
+ export interface PushDevice {
880
+ /** The platform. */
881
+ platform?: PushPlatform;
882
+ /** The device token; write-only. */
883
+ deviceToken?: string;
884
+ /** The last four characters of the token, for display. */
885
+ readonly tokenLast4?: string;
886
+ /** The push Sender the token belongs to. */
887
+ sender?: string;
888
+ }
889
+ /** A push app. */
890
+ export interface PushSender {
891
+ /** The push platform. */
892
+ platform?: PushPlatform;
893
+ /** The Kernel Connection holding the APNs, FCM, or VAPID credentials. */
894
+ connection?: string;
895
+ /** The bundle id, package name, or web origin. */
896
+ appKey?: string;
897
+ }
898
+ /**
899
+ * A Recipient is one of a customer's users, across channels: email addresses,
900
+ * phone numbers, and device tokens. Dead device tokens are pruned from
901
+ * provider feedback.
902
+ */
903
+ export interface Recipient {
904
+ /** `orgs/{org}/projects/{project}/envs/{env}/recipients/{recipient}`. */
905
+ name?: string;
906
+ /** `rcp_<cell><ulid>`; never reused. */
907
+ readonly uid?: string;
908
+ /** Resource metadata. */
909
+ meta?: common.ResourceMeta;
910
+ /** The customer's own id for this user, for example an Auth end user name. */
911
+ externalKey?: string;
912
+ /** Email addresses, first is preferred. */
913
+ emailAddresses?: string[];
914
+ /** E.164 phone numbers, first is preferred. */
915
+ phoneNumbers?: string[];
916
+ /** Push devices. */
917
+ devices?: PushDevice[];
918
+ /** BCP 47 language for templates; default the environment's. */
919
+ languageCode?: string;
920
+ /** IANA time zone for quiet hours and digests. */
921
+ timeZone?: string;
922
+ /**
923
+ * A test recipient: its messages are rendered and captured on the Message,
924
+ * never delivered. An email address whose local part carries
925
+ * `+sylphx_test` is a test address whatever this says.
926
+ */
927
+ test?: boolean;
928
+ }
929
+ /** The request of SendBroadcast. */
930
+ export interface SendBroadcastRequest {
931
+ /** The name of the broadcast. */
932
+ name: string;
933
+ /** Act only if the current etag matches. */
934
+ etag?: string;
935
+ /** Validate without writing anything. */
936
+ validateOnly?: boolean;
937
+ }
938
+ /**
939
+ * A per-recipient send limit. A message over it is recorded with state
940
+ * `RATE_LIMITED` and its create answers 429 `RATE_LIMITED` with the wait.
941
+ */
942
+ export interface SendLimit {
943
+ /** At least this long between two messages to one recipient. */
944
+ minInterval?: string;
945
+ /** At most this many messages to one recipient in any hour; 0 is no limit. */
946
+ maxPerHour?: number;
947
+ }
948
+ /**
949
+ * A Sender is a verified origin for SMS or push: a registered number or sender
950
+ * id, or a push app whose APNs/FCM credentials are a Kernel Connection reached
951
+ * through the Broker. It is used only once verified.
952
+ */
953
+ export interface Sender {
954
+ /** `orgs/{org}/projects/{project}/envs/{env}/senders/{sender}`. */
955
+ name?: string;
956
+ /** `snd_<cell><ulid>`; never reused. */
957
+ readonly uid?: string;
958
+ /** Resource metadata. */
959
+ meta?: common.ResourceMeta;
960
+ /** Desired state. */
961
+ spec?: SenderSpec;
962
+ /** Observed state. */
963
+ readonly status?: SenderStatus;
964
+ }
965
+ /** SenderSpec is the caller-writable state of a Sender. */
966
+ export interface SenderSpec {
967
+ /** An SMS number or alphanumeric sender id. */
968
+ sms?: SmsSender;
969
+ /** A mobile or web push app. */
970
+ push?: PushSender;
971
+ }
972
+ /** SenderStatus is the observed state of a Sender. */
973
+ export interface SenderStatus {
974
+ /** The generation this status was computed from. */
975
+ readonly observedGeneration?: string;
976
+ /** Ready, Reconciling, Stalled. */
977
+ readonly conditions?: common.Condition[];
978
+ /** Whether the sender is registered and usable. */
979
+ readonly verified?: boolean;
980
+ /** Why the sender is not verified, when it is not. */
981
+ readonly verificationNote?: string;
982
+ }
983
+ /**
984
+ * A Sending Domain is an email domain Notify sends from. It sends only after
985
+ * its DNS records verify; every email is DKIM-signed with the domain's
986
+ * non-exportable Kernel Key, rotated with overlap. No key material is ever
987
+ * returned.
988
+ */
989
+ export interface SendingDomain {
990
+ /** `orgs/{org}/projects/{project}/envs/{env}/sending_domains/{sending_domain}`. */
991
+ name?: string;
992
+ /** `sdm_<cell><ulid>`; never reused. */
993
+ readonly uid?: string;
994
+ /** Resource metadata. */
995
+ meta?: common.ResourceMeta;
996
+ /** Desired state. */
997
+ spec?: SendingDomainSpec;
998
+ /** Observed state. */
999
+ readonly status?: SendingDomainStatus;
1000
+ }
1001
+ /** SendingDomainSpec is the caller-writable state of a SendingDomain. */
1002
+ export interface SendingDomainSpec {
1003
+ /** The domain, for example `mail.example.com`. */
1004
+ domain?: string;
1005
+ /** The return-path (bounce) subdomain label; default `bounces`. */
1006
+ returnPathLabel?: string;
1007
+ }
1008
+ /** SendingDomainStatus is the observed state of a SendingDomain. */
1009
+ export interface SendingDomainStatus {
1010
+ /** The generation this status was computed from. */
1011
+ readonly observedGeneration?: string;
1012
+ /** Ready, Reconciling, Stalled. */
1013
+ readonly conditions?: common.Condition[];
1014
+ /** Whether every required record verified; only a verified domain sends. */
1015
+ readonly verified?: boolean;
1016
+ /** When the records last verified. */
1017
+ readonly verifyTime?: string;
1018
+ /** The records to publish: DKIM, SPF, return path, DMARC. */
1019
+ readonly dnsRecords?: DnsRecord[];
1020
+ /** The DKIM selector in use. */
1021
+ readonly dkimSelector?: string;
1022
+ }
1023
+ /** SMS content. */
1024
+ export interface SmsContent {
1025
+ /** The SMS Sender. */
1026
+ sender?: string;
1027
+ /** The body. */
1028
+ body?: string;
1029
+ }
1030
+ /** An SMS origin. */
1031
+ export interface SmsSender {
1032
+ /** An E.164 number. */
1033
+ phoneNumber?: string;
1034
+ /** An alphanumeric sender id, where the region allows one. */
1035
+ senderKey?: string;
1036
+ /** CLDR region codes the origin is registered for. */
1037
+ regionCodes?: string[];
1038
+ }
1039
+ /**
1040
+ * A Suppression stops delivery to one address on one channel. Bounces,
1041
+ * complaints, carrier opt-outs, uninstalled devices, and unsubscribes write
1042
+ * it; admission checks it before accepting a message.
1043
+ */
1044
+ export interface Suppression {
1045
+ /** `orgs/{org}/projects/{project}/envs/{env}/suppressions/{suppression}`. */
1046
+ name?: string;
1047
+ /** `sup_<cell><ulid>`; never reused. */
1048
+ readonly uid?: string;
1049
+ /** Resource metadata. */
1050
+ meta?: common.ResourceMeta;
1051
+ /** The channel. */
1052
+ channel?: Channel;
1053
+ /** The suppressed address, number, or device token. */
1054
+ address?: string;
1055
+ /** Why. */
1056
+ reason?: SuppressionReason;
1057
+ /** Limit the suppression to one topic; unset suppresses every topic. */
1058
+ topic?: string;
1059
+ /** The message whose feedback wrote it. */
1060
+ readonly sourceMessage?: string;
1061
+ }
1062
+ /**
1063
+ * A Template is versioned content per channel. Every spec change is a new
1064
+ * version; a message renders from the version it pinned at admission.
1065
+ */
1066
+ export interface Template {
1067
+ /** `orgs/{org}/projects/{project}/envs/{env}/templates/{template}`. */
1068
+ name?: string;
1069
+ /** `tpl_<cell><ulid>`; never reused. */
1070
+ readonly uid?: string;
1071
+ /** Resource metadata. */
1072
+ meta?: common.ResourceMeta;
1073
+ /** Desired state. */
1074
+ spec?: TemplateSpec;
1075
+ /** Observed state. */
1076
+ readonly status?: TemplateStatus;
1077
+ }
1078
+ /** TemplateSpec is the caller-writable state of a Template. */
1079
+ export interface TemplateSpec {
1080
+ /** Email content. */
1081
+ email?: EmailContent;
1082
+ /** SMS content. */
1083
+ sms?: SmsContent;
1084
+ /** Push content. */
1085
+ push?: PushContent;
1086
+ /** In-app inbox content. */
1087
+ inbox?: InboxContent;
1088
+ /**
1089
+ * A per-recipient send limit on messages rendered from this template;
1090
+ * unset admits every message.
1091
+ */
1092
+ sendLimit?: SendLimit;
1093
+ }
1094
+ /** TemplateStatus is the observed state of a Template. */
1095
+ export interface TemplateStatus {
1096
+ /** The generation this status was computed from. */
1097
+ readonly observedGeneration?: string;
1098
+ /** Ready, Reconciling, Stalled. */
1099
+ readonly conditions?: common.Condition[];
1100
+ /** The version the current spec is; messages pin it. */
1101
+ readonly version?: string;
1102
+ }
1103
+ /** The request of UpdateBroadcast. */
1104
+ export interface UpdateBroadcastRequest {
1105
+ /** The broadcast to update; `name` identifies it. */
1106
+ broadcast: Broadcast;
1107
+ /** The fields to write; unset writes every populated field. */
1108
+ updateMask?: string;
1109
+ /** Create the broadcast when it does not exist (declarative upsert). */
1110
+ allowMissing?: boolean;
1111
+ /** Validate and return the result without writing anything. */
1112
+ validateOnly?: boolean;
1113
+ }
1114
+ /** The request of UpdateMailbox. */
1115
+ export interface UpdateMailboxRequest {
1116
+ /** The mailbox to update; `name` identifies it. */
1117
+ mailbox: Mailbox;
1118
+ /** The fields to write; unset writes every populated field. */
1119
+ updateMask?: string;
1120
+ /** Create the mailbox when it does not exist (declarative upsert). */
1121
+ allowMissing?: boolean;
1122
+ /** Validate and return the result without writing anything. */
1123
+ validateOnly?: boolean;
1124
+ }
1125
+ /** The request of UpdatePreference. */
1126
+ export interface UpdatePreferenceRequest {
1127
+ /** The preference to update; `name` identifies it. */
1128
+ preference: Preference;
1129
+ /** The fields to write; unset writes every populated field. */
1130
+ updateMask?: string;
1131
+ /** Create the preference when it does not exist (declarative upsert). */
1132
+ allowMissing?: boolean;
1133
+ /** Validate and return the result without writing anything. */
1134
+ validateOnly?: boolean;
1135
+ }
1136
+ /** The request of UpdateRecipient. */
1137
+ export interface UpdateRecipientRequest {
1138
+ /** The recipient to update; `name` identifies it. */
1139
+ recipient: Recipient;
1140
+ /** The fields to write; unset writes every populated field. */
1141
+ updateMask?: string;
1142
+ /** Create the recipient when it does not exist (declarative upsert). */
1143
+ allowMissing?: boolean;
1144
+ /** Validate and return the result without writing anything. */
1145
+ validateOnly?: boolean;
1146
+ }
1147
+ /** The request of UpdateSender. */
1148
+ export interface UpdateSenderRequest {
1149
+ /** The sender to update; `name` identifies it. */
1150
+ sender: Sender;
1151
+ /** The fields to write; unset writes every populated field. */
1152
+ updateMask?: string;
1153
+ /** Create the sender when it does not exist (declarative upsert). */
1154
+ allowMissing?: boolean;
1155
+ /** Validate and return the result without writing anything. */
1156
+ validateOnly?: boolean;
1157
+ }
1158
+ /** The request of UpdateSendingDomain. */
1159
+ export interface UpdateSendingDomainRequest {
1160
+ /** The sending domain to update; `name` identifies it. */
1161
+ sendingDomain: SendingDomain;
1162
+ /** The fields to write; unset writes every populated field. */
1163
+ updateMask?: string;
1164
+ /** Create the sending domain when it does not exist (declarative upsert). */
1165
+ allowMissing?: boolean;
1166
+ /** Validate and return the result without writing anything. */
1167
+ validateOnly?: boolean;
1168
+ }
1169
+ /** The request of UpdateTemplate. */
1170
+ export interface UpdateTemplateRequest {
1171
+ /** The template to update; `name` identifies it. */
1172
+ template: Template;
1173
+ /** The fields to write; unset writes every populated field. */
1174
+ updateMask?: string;
1175
+ /** Create the template when it does not exist (declarative upsert). */
1176
+ allowMissing?: boolean;
1177
+ /** Validate and return the result without writing anything. */
1178
+ validateOnly?: boolean;
1179
+ }
1180
+ /** The request of VerifySender. */
1181
+ export interface VerifySenderRequest {
1182
+ /** The name of the sender. */
1183
+ name: string;
1184
+ }
1185
+ /** The request of VerifySendingDomain. */
1186
+ export interface VerifySendingDomainRequest {
1187
+ /** The name of the sending domain. */
1188
+ name: string;
1189
+ }
1190
+ /** The progress of a Broadcast. */
1191
+ export type BroadcastState = 'draft' | 'scheduled' | 'sending' | 'sent' | 'cancelled' | (string & {});
1192
+ /** A Notify channel. */
1193
+ export type Channel = 'email' | 'sms' | 'push' | 'inbox' | (string & {});
1194
+ /** The state of one channel delivery. */
1195
+ export type ChannelDeliveryState = 'pending' | 'sent' | 'delivered' | 'bounced' | 'failed' | 'skipped' | 'captured' | 'suppressed' | (string & {});
1196
+ /** Whether an Inbound Email came in or went out. */
1197
+ export type InboundEmailDirection = 'received' | 'sent' | (string & {});
1198
+ /** The state of an inbox item. */
1199
+ export type InboxItemState = 'unread' | 'read' | 'archived' | (string & {});
1200
+ /** How a mail server connection is secured. */
1201
+ export type MailServerSecurity = 'tls' | 'starttls' | (string & {});
1202
+ /** How a Mailbox receives mail. */
1203
+ export type MailboxKind = 'connected' | 'hosted' | (string & {});
1204
+ /** The state of a Message. */
1205
+ export type MessageState = 'accepted' | 'suppressed' | 'delivering' | 'delivered' | 'failed' | 'cancelled' | 'rate_limited' | (string & {});
1206
+ /** A push platform. */
1207
+ export type PushPlatform = 'apns' | 'fcm' | 'web_push' | (string & {});
1208
+ /** Why an address is suppressed. */
1209
+ export type SuppressionReason = 'bounce' | 'complaint' | 'carrier_opt_out' | 'unsubscribe' | 'uninstalled' | 'manual' | (string & {});
1210
+ /**
1211
+ * NotifyService is Sylphx Notify: messages to people over email, SMS, push,
1212
+ * and in-app inbox, with preferences, suppression, templates, and broadcasts
1213
+ * (docs/services/notify/vision.md). Notify is built on Sylphx Events as an
1214
+ * ordinary customer.
1215
+ *
1216
+ * Namespace of Sylphx Notify on `Sylphx`.
1217
+ */
1218
+ export declare class NotifyApi {
1219
+ /** The `sending_domains` collection. */
1220
+ readonly sendingDomains: SendingDomainsCollection;
1221
+ /** The `senders` collection. */
1222
+ readonly senders: SendersCollection;
1223
+ /** The `recipients` collection. */
1224
+ readonly recipients: RecipientsCollection;
1225
+ /** The `preferences` collection. */
1226
+ readonly preferences: PreferencesCollection;
1227
+ /** The `suppressions` collection. */
1228
+ readonly suppressions: SuppressionsCollection;
1229
+ /** The `templates` collection. */
1230
+ readonly templates: TemplatesCollection;
1231
+ /** The `messages` collection. */
1232
+ readonly messages: MessagesCollection;
1233
+ /** The `mailboxes` collection. */
1234
+ readonly mailboxes: MailboxesCollection;
1235
+ /** The `inbound_emails` collection. */
1236
+ readonly inboundEmails: InboundEmailsCollection;
1237
+ /** The `inbox_items` collection. */
1238
+ readonly inboxItems: InboxItemsCollection;
1239
+ /** The `broadcasts` collection. */
1240
+ readonly broadcasts: BroadcastsCollection;
1241
+ constructor(client: runtime.Client);
1242
+ }
1243
+ /** `sending_domains` of Sylphx Notify: Resource type `notify.sylphx.com/SendingDomain`. */
1244
+ export declare class SendingDomainsCollection {
1245
+ private readonly client;
1246
+ constructor(client: runtime.Client);
1247
+ /**
1248
+ * Gets a sending domain.
1249
+ *
1250
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/sending_domains/*}` · permission `notify:read` · effect `read`
1251
+ *
1252
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1253
+ */
1254
+ get(request: GetSendingDomainRequest): Promise<SendingDomain>;
1255
+ /**
1256
+ * Lists sending domains.
1257
+ *
1258
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/sending_domains` · permission `notify:read` · effect `read`
1259
+ *
1260
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1261
+ */
1262
+ list(request: ListSendingDomainsRequest): Promise<ListSendingDomainsResponse>;
1263
+ /** Every item of every page of `list`. */
1264
+ listAll(request: ListSendingDomainsRequest): AsyncGenerator<SendingDomain>;
1265
+ /**
1266
+ * Creates a sending domain.
1267
+ *
1268
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/sending_domains` · permission `notify:write` · effect `write`
1269
+ *
1270
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
1271
+ */
1272
+ create(request: CreateSendingDomainRequest): Promise<SendingDomain>;
1273
+ /**
1274
+ * Updates a sending domain.
1275
+ *
1276
+ * `PATCH /v1/{sending_domain.name=orgs/*\/projects/*\/envs/*\/sending_domains/*}` · permission `notify:write` · effect `write`
1277
+ *
1278
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1279
+ */
1280
+ update(request: UpdateSendingDomainRequest): Promise<SendingDomain>;
1281
+ /**
1282
+ * Deletes a sending domain.
1283
+ *
1284
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/sending_domains/*}` · permission `notify:write` · effect `destructive`
1285
+ *
1286
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1287
+ */
1288
+ delete(request: DeleteSendingDomainRequest): Promise<Record<string, never>>;
1289
+ /**
1290
+ * Checks the domain's DNS records now instead of on the next sweep.
1291
+ *
1292
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/sending_domains/*}:verify` · permission `notify:write` · effect `write`
1293
+ *
1294
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `RATE_LIMITED`.
1295
+ */
1296
+ verify(request: VerifySendingDomainRequest): Promise<SendingDomain>;
1297
+ }
1298
+ /** `senders` of Sylphx Notify: Resource type `notify.sylphx.com/Sender`. */
1299
+ export declare class SendersCollection {
1300
+ private readonly client;
1301
+ constructor(client: runtime.Client);
1302
+ /**
1303
+ * Gets a sender.
1304
+ *
1305
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/senders/*}` · permission `notify:read` · effect `read`
1306
+ *
1307
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1308
+ */
1309
+ get(request: GetSenderRequest): Promise<Sender>;
1310
+ /**
1311
+ * Lists senders.
1312
+ *
1313
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/senders` · permission `notify:read` · effect `read`
1314
+ *
1315
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1316
+ */
1317
+ list(request: ListSendersRequest): Promise<ListSendersResponse>;
1318
+ /** Every item of every page of `list`. */
1319
+ listAll(request: ListSendersRequest): AsyncGenerator<Sender>;
1320
+ /**
1321
+ * Creates a sender.
1322
+ *
1323
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/senders` · permission `notify:write` · effect `write`
1324
+ *
1325
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
1326
+ */
1327
+ create(request: CreateSenderRequest): Promise<Sender>;
1328
+ /**
1329
+ * Updates a sender.
1330
+ *
1331
+ * `PATCH /v1/{sender.name=orgs/*\/projects/*\/envs/*\/senders/*}` · permission `notify:write` · effect `write`
1332
+ *
1333
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1334
+ */
1335
+ update(request: UpdateSenderRequest): Promise<Sender>;
1336
+ /**
1337
+ * Deletes a sender.
1338
+ *
1339
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/senders/*}` · permission `notify:write` · effect `destructive`
1340
+ *
1341
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1342
+ */
1343
+ delete(request: DeleteSenderRequest): Promise<Record<string, never>>;
1344
+ /**
1345
+ * Re-checks the sender's registration or credentials now.
1346
+ *
1347
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/senders/*}:verify` · permission `notify:write` · effect `write`
1348
+ *
1349
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `RATE_LIMITED`.
1350
+ */
1351
+ verify(request: VerifySenderRequest): Promise<Sender>;
1352
+ }
1353
+ /** `recipients` of Sylphx Notify: Resource type `notify.sylphx.com/Recipient`. */
1354
+ export declare class RecipientsCollection {
1355
+ private readonly client;
1356
+ constructor(client: runtime.Client);
1357
+ /**
1358
+ * Gets a recipient.
1359
+ *
1360
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/recipients/*}` · permission `notify:read` · effect `read`
1361
+ *
1362
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1363
+ */
1364
+ get(request: GetRecipientRequest): Promise<Recipient>;
1365
+ /**
1366
+ * Lists recipients.
1367
+ *
1368
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/recipients` · permission `notify:read` · effect `read`
1369
+ *
1370
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1371
+ */
1372
+ list(request: ListRecipientsRequest): Promise<ListRecipientsResponse>;
1373
+ /** Every item of every page of `list`. */
1374
+ listAll(request: ListRecipientsRequest): AsyncGenerator<Recipient>;
1375
+ /**
1376
+ * Creates a recipient.
1377
+ *
1378
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/recipients` · permission `notify:write` · effect `write`
1379
+ *
1380
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
1381
+ */
1382
+ create(request: CreateRecipientRequest): Promise<Recipient>;
1383
+ /**
1384
+ * Updates a recipient.
1385
+ *
1386
+ * `PATCH /v1/{recipient.name=orgs/*\/projects/*\/envs/*\/recipients/*}` · permission `notify:write` · effect `write`
1387
+ *
1388
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1389
+ */
1390
+ update(request: UpdateRecipientRequest): Promise<Recipient>;
1391
+ /**
1392
+ * Deletes a recipient.
1393
+ *
1394
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/recipients/*}` · permission `notify:write` · effect `destructive`
1395
+ *
1396
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1397
+ */
1398
+ delete(request: DeleteRecipientRequest): Promise<Record<string, never>>;
1399
+ }
1400
+ /** `preferences` of Sylphx Notify: Resource type `notify.sylphx.com/Preference`. */
1401
+ export declare class PreferencesCollection {
1402
+ private readonly client;
1403
+ constructor(client: runtime.Client);
1404
+ /**
1405
+ * Gets a preference.
1406
+ *
1407
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/recipients/*\/preferences/*}` · permission `notify:read` · effect `read`
1408
+ *
1409
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1410
+ */
1411
+ get(request: GetPreferenceRequest): Promise<Preference>;
1412
+ /**
1413
+ * Lists preferences.
1414
+ *
1415
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/recipients/*}/preferences` · permission `notify:read` · effect `read`
1416
+ *
1417
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1418
+ */
1419
+ list(request: ListPreferencesRequest): Promise<ListPreferencesResponse>;
1420
+ /** Every item of every page of `list`. */
1421
+ listAll(request: ListPreferencesRequest): AsyncGenerator<Preference>;
1422
+ /**
1423
+ * Updates a preference.
1424
+ *
1425
+ * `PATCH /v1/{preference.name=orgs/*\/projects/*\/envs/*\/recipients/*\/preferences/*}` · permission `notify:write` · effect `write`
1426
+ *
1427
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1428
+ */
1429
+ update(request: UpdatePreferenceRequest): Promise<Preference>;
1430
+ /**
1431
+ * Deletes a preference.
1432
+ *
1433
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/recipients/*\/preferences/*}` · permission `notify:write` · effect `destructive`
1434
+ *
1435
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1436
+ */
1437
+ delete(request: DeletePreferenceRequest): Promise<Record<string, never>>;
1438
+ }
1439
+ /** `suppressions` of Sylphx Notify: Resource type `notify.sylphx.com/Suppression`. */
1440
+ export declare class SuppressionsCollection {
1441
+ private readonly client;
1442
+ constructor(client: runtime.Client);
1443
+ /**
1444
+ * Gets a suppression.
1445
+ *
1446
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/suppressions/*}` · permission `notify:read` · effect `read`
1447
+ *
1448
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1449
+ */
1450
+ get(request: GetSuppressionRequest): Promise<Suppression>;
1451
+ /**
1452
+ * Lists suppressions.
1453
+ *
1454
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/suppressions` · permission `notify:read` · effect `read`
1455
+ *
1456
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1457
+ */
1458
+ list(request: ListSuppressionsRequest): Promise<ListSuppressionsResponse>;
1459
+ /** Every item of every page of `list`. */
1460
+ listAll(request: ListSuppressionsRequest): AsyncGenerator<Suppression>;
1461
+ /**
1462
+ * Creates a suppression.
1463
+ *
1464
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/suppressions` · permission `notify:write` · effect `write`
1465
+ *
1466
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
1467
+ */
1468
+ create(request: CreateSuppressionRequest): Promise<Suppression>;
1469
+ /**
1470
+ * Deletes a suppression.
1471
+ *
1472
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/suppressions/*}` · permission `notify:write` · effect `destructive`
1473
+ *
1474
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1475
+ */
1476
+ delete(request: DeleteSuppressionRequest): Promise<Record<string, never>>;
1477
+ }
1478
+ /** `templates` of Sylphx Notify: Resource type `notify.sylphx.com/Template`. */
1479
+ export declare class TemplatesCollection {
1480
+ private readonly client;
1481
+ constructor(client: runtime.Client);
1482
+ /**
1483
+ * Gets a template.
1484
+ *
1485
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/templates/*}` · permission `notify:read` · effect `read`
1486
+ *
1487
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1488
+ */
1489
+ get(request: GetTemplateRequest): Promise<Template>;
1490
+ /**
1491
+ * Lists templates.
1492
+ *
1493
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/templates` · permission `notify:read` · effect `read`
1494
+ *
1495
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1496
+ */
1497
+ list(request: ListTemplatesRequest): Promise<ListTemplatesResponse>;
1498
+ /** Every item of every page of `list`. */
1499
+ listAll(request: ListTemplatesRequest): AsyncGenerator<Template>;
1500
+ /**
1501
+ * Creates a template.
1502
+ *
1503
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/templates` · permission `notify:write` · effect `write`
1504
+ *
1505
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
1506
+ */
1507
+ create(request: CreateTemplateRequest): Promise<Template>;
1508
+ /**
1509
+ * Updates a template.
1510
+ *
1511
+ * `PATCH /v1/{template.name=orgs/*\/projects/*\/envs/*\/templates/*}` · permission `notify:write` · effect `write`
1512
+ *
1513
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1514
+ */
1515
+ update(request: UpdateTemplateRequest): Promise<Template>;
1516
+ /**
1517
+ * Deletes a template.
1518
+ *
1519
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/templates/*}` · permission `notify:write` · effect `destructive`
1520
+ *
1521
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1522
+ */
1523
+ delete(request: DeleteTemplateRequest): Promise<Record<string, never>>;
1524
+ }
1525
+ /** `messages` of Sylphx Notify: Resource type `notify.sylphx.com/Message`. */
1526
+ export declare class MessagesCollection {
1527
+ private readonly client;
1528
+ constructor(client: runtime.Client);
1529
+ /**
1530
+ * Gets a message.
1531
+ *
1532
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/messages/*}` · permission `notify:read` · effect `read`
1533
+ *
1534
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1535
+ */
1536
+ get(request: GetMessageRequest): Promise<Message>;
1537
+ /**
1538
+ * Lists messages.
1539
+ *
1540
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/messages` · permission `notify:read` · effect `read`
1541
+ *
1542
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1543
+ */
1544
+ list(request: ListMessagesRequest): Promise<ListMessagesResponse>;
1545
+ /** Every item of every page of `list`. */
1546
+ listAll(request: ListMessagesRequest): AsyncGenerator<Message>;
1547
+ /**
1548
+ * Sends a Message.
1549
+ *
1550
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/messages` · permission `notify:send` · effect `write`
1551
+ *
1552
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`, `RATE_LIMITED`, `INVALID_STATE`.
1553
+ */
1554
+ create(request: CreateMessageRequest): Promise<Message>;
1555
+ /**
1556
+ * Cancels a Message whose deliveries have not been handed off.
1557
+ *
1558
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/messages/*}:cancel` · permission `notify:send` · effect `destructive`
1559
+ *
1560
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1561
+ */
1562
+ cancel(request: CancelMessageRequest): Promise<Message>;
1563
+ }
1564
+ /** `mailboxes` of Sylphx Notify: Resource type `notify.sylphx.com/Mailbox`. */
1565
+ export declare class MailboxesCollection {
1566
+ private readonly client;
1567
+ constructor(client: runtime.Client);
1568
+ /**
1569
+ * Gets a mailbox.
1570
+ *
1571
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/mailboxes/*}` · permission `notify:read` · effect `read`
1572
+ *
1573
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1574
+ */
1575
+ get(request: GetMailboxRequest): Promise<Mailbox>;
1576
+ /**
1577
+ * Lists mailboxes.
1578
+ *
1579
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/mailboxes` · permission `notify:read` · effect `read`
1580
+ *
1581
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1582
+ */
1583
+ list(request: ListMailboxesRequest): Promise<ListMailboxesResponse>;
1584
+ /** Every item of every page of `list`. */
1585
+ listAll(request: ListMailboxesRequest): AsyncGenerator<Mailbox>;
1586
+ /**
1587
+ * Creates a mailbox.
1588
+ *
1589
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/mailboxes` · permission `notify:write` · effect `write`
1590
+ *
1591
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
1592
+ */
1593
+ create(request: CreateMailboxRequest): Promise<Mailbox>;
1594
+ /**
1595
+ * Updates a mailbox.
1596
+ *
1597
+ * `PATCH /v1/{mailbox.name=orgs/*\/projects/*\/envs/*\/mailboxes/*}` · permission `notify:write` · effect `write`
1598
+ *
1599
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1600
+ */
1601
+ update(request: UpdateMailboxRequest): Promise<Mailbox>;
1602
+ /**
1603
+ * Deletes a mailbox and its inbound email.
1604
+ *
1605
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/mailboxes/*}` · permission `notify:write` · effect `destructive`
1606
+ *
1607
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `RESOURCE_IN_USE`.
1608
+ */
1609
+ delete(request: DeleteMailboxRequest): Promise<Record<string, never>>;
1610
+ /**
1611
+ * Removes an address's personal data from every inbound email of the
1612
+ * mailbox that it sent or that names it, keeping the dedupe keys so a poll
1613
+ * never brings the mail back.
1614
+ *
1615
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/mailboxes/*}:eraseAddress` · permission `notify:write` · effect `destructive`
1616
+ *
1617
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1618
+ */
1619
+ eraseAddress(request: EraseMailboxAddressRequest): Promise<EraseMailboxAddressResponse>;
1620
+ }
1621
+ /** `inbound_emails` of Sylphx Notify: Resource type `notify.sylphx.com/InboundEmail`. */
1622
+ export declare class InboundEmailsCollection {
1623
+ private readonly client;
1624
+ constructor(client: runtime.Client);
1625
+ /**
1626
+ * Gets an inbound email.
1627
+ *
1628
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/mailboxes/*\/inbound_emails/*}` · permission `notify:read` · effect `read`
1629
+ *
1630
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1631
+ */
1632
+ get(request: GetInboundEmailRequest): Promise<InboundEmail>;
1633
+ /**
1634
+ * Lists a mailbox's inbound email in feed order, oldest first.
1635
+ *
1636
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/mailboxes/*}/inbound_emails` · permission `notify:read` · effect `read`
1637
+ *
1638
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1639
+ */
1640
+ list(request: ListInboundEmailsRequest): Promise<ListInboundEmailsResponse>;
1641
+ /** Every item of every page of `list`. */
1642
+ listAll(request: ListInboundEmailsRequest): AsyncGenerator<InboundEmail>;
1643
+ }
1644
+ /** `inbox_items` of Sylphx Notify: Resource type `notify.sylphx.com/InboxItem`. */
1645
+ export declare class InboxItemsCollection {
1646
+ private readonly client;
1647
+ constructor(client: runtime.Client);
1648
+ /**
1649
+ * Gets an inbox item.
1650
+ *
1651
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/recipients/*\/inbox_items/*}` · permission `notify:read` · effect `read`
1652
+ *
1653
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1654
+ */
1655
+ get(request: GetInboxItemRequest): Promise<InboxItem>;
1656
+ /**
1657
+ * Lists inbox items.
1658
+ *
1659
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/recipients/*}/inbox_items` · permission `notify:read` · effect `read`
1660
+ *
1661
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1662
+ */
1663
+ list(request: ListInboxItemsRequest): Promise<ListInboxItemsResponse>;
1664
+ /** Every item of every page of `list`. */
1665
+ listAll(request: ListInboxItemsRequest): AsyncGenerator<InboxItem>;
1666
+ /**
1667
+ * Marks an inbox item read.
1668
+ *
1669
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/recipients/*\/inbox_items/*}:markRead` · permission `notify:write` · effect `write`
1670
+ *
1671
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1672
+ */
1673
+ markRead(request: MarkInboxItemReadRequest): Promise<InboxItem>;
1674
+ /**
1675
+ * Marks an inbox item unread.
1676
+ *
1677
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/recipients/*\/inbox_items/*}:markUnread` · permission `notify:write` · effect `write`
1678
+ *
1679
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1680
+ */
1681
+ markUnread(request: MarkInboxItemUnreadRequest): Promise<InboxItem>;
1682
+ /**
1683
+ * Archives an inbox item.
1684
+ *
1685
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/recipients/*\/inbox_items/*}:archive` · permission `notify:write` · effect `write`
1686
+ *
1687
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1688
+ */
1689
+ archive(request: ArchiveInboxItemRequest): Promise<InboxItem>;
1690
+ }
1691
+ /** `broadcasts` of Sylphx Notify: Resource type `notify.sylphx.com/Broadcast`. */
1692
+ export declare class BroadcastsCollection {
1693
+ private readonly client;
1694
+ constructor(client: runtime.Client);
1695
+ /**
1696
+ * Gets a broadcast.
1697
+ *
1698
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/broadcasts/*}` · permission `notify:read` · effect `read`
1699
+ *
1700
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1701
+ */
1702
+ get(request: GetBroadcastRequest): Promise<Broadcast>;
1703
+ /**
1704
+ * Lists broadcasts.
1705
+ *
1706
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/broadcasts` · permission `notify:read` · effect `read`
1707
+ *
1708
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1709
+ */
1710
+ list(request: ListBroadcastsRequest): Promise<ListBroadcastsResponse>;
1711
+ /** Every item of every page of `list`. */
1712
+ listAll(request: ListBroadcastsRequest): AsyncGenerator<Broadcast>;
1713
+ /**
1714
+ * Creates a broadcast.
1715
+ *
1716
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/broadcasts` · permission `notify:write` · effect `write`
1717
+ *
1718
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
1719
+ */
1720
+ create(request: CreateBroadcastRequest): Promise<Broadcast>;
1721
+ /**
1722
+ * Updates a broadcast.
1723
+ *
1724
+ * `PATCH /v1/{broadcast.name=orgs/*\/projects/*\/envs/*\/broadcasts/*}` · permission `notify:write` · effect `write`
1725
+ *
1726
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1727
+ */
1728
+ update(request: UpdateBroadcastRequest): Promise<Broadcast>;
1729
+ /**
1730
+ * Deletes a broadcast.
1731
+ *
1732
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/broadcasts/*}` · permission `notify:write` · effect `destructive`
1733
+ *
1734
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1735
+ */
1736
+ delete(request: DeleteBroadcastRequest): Promise<Record<string, never>>;
1737
+ /**
1738
+ * Sends a Broadcast now.
1739
+ *
1740
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/broadcasts/*}:send` · permission `notify:send` · effect `write`
1741
+ *
1742
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `ETAG_MISMATCH`.
1743
+ */
1744
+ send(request: SendBroadcastRequest): Promise<Broadcast>;
1745
+ /**
1746
+ * Cancels a Broadcast; messages already admitted still deliver.
1747
+ *
1748
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/broadcasts/*}:cancel` · permission `notify:send` · effect `destructive`
1749
+ *
1750
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `ETAG_MISMATCH`.
1751
+ */
1752
+ cancel(request: CancelBroadcastRequest): Promise<Broadcast>;
1753
+ }