@sylphx/sdk 0.31.0 → 0.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +111 -4
- package/dist/access.d.ts +112 -17
- package/dist/access.js +101 -7
- package/dist/access.js.map +1 -1
- package/dist/ai.d.ts +1 -2
- package/dist/ai.js +2 -3
- package/dist/ai.js.map +1 -1
- package/dist/artifacts.d.ts +1 -1
- package/dist/artifacts.js +2 -2
- package/dist/assets.d.ts +447 -0
- package/dist/assets.js +266 -0
- package/dist/assets.js.map +1 -0
- package/dist/auth/client.d.ts +239 -0
- package/dist/auth/client.js +337 -0
- package/dist/auth/client.js.map +1 -0
- package/dist/auth/verify.d.ts +38 -3
- package/dist/auth/verify.js +58 -8
- package/dist/auth/verify.js.map +1 -1
- package/dist/auth.d.ts +455 -7
- package/dist/auth.js +416 -5
- package/dist/auth.js.map +1 -1
- package/dist/billing.d.ts +13 -13
- package/dist/billing.js +5 -5
- package/dist/broker.d.ts +5 -4
- package/dist/broker.js +3 -3
- package/dist/broker.js.map +1 -1
- package/dist/build.d.ts +4 -4
- package/dist/build.js +3 -3
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/config/flags.d.ts +140 -0
- package/dist/config/flags.js +462 -0
- package/dist/config/flags.js.map +1 -0
- package/dist/config.d.ts +380 -15
- package/dist/config.js +283 -5
- package/dist/config.js.map +1 -1
- package/dist/connections.d.ts +6 -6
- package/dist/connections.js +3 -3
- package/dist/data.d.ts +560 -7
- package/dist/data.js +510 -4
- package/dist/data.js.map +1 -1
- package/dist/entitlement.d.ts +10 -8
- package/dist/entitlement.js +3 -4
- package/dist/entitlement.js.map +1 -1
- package/dist/events/realtime.d.ts +69 -0
- package/dist/events/realtime.js +107 -0
- package/dist/events/realtime.js.map +1 -0
- package/dist/events/webhooks.d.ts +40 -0
- package/dist/events/webhooks.js +110 -0
- package/dist/events/webhooks.js.map +1 -0
- package/dist/events.d.ts +369 -22
- package/dist/events.js +311 -8
- package/dist/events.js.map +1 -1
- package/dist/hosting.d.ts +13 -14
- package/dist/hosting.js +3 -4
- package/dist/hosting.js.map +1 -1
- package/dist/ids.d.ts +837 -0
- package/dist/ids.js +287 -0
- package/dist/ids.js.map +1 -0
- package/dist/index.d.ts +12 -1
- package/dist/index.js +16 -2
- package/dist/index.js.map +1 -1
- package/dist/keys.d.ts +2 -2
- package/dist/keys.js +3 -3
- package/dist/localization.d.ts +663 -0
- package/dist/localization.js +491 -0
- package/dist/localization.js.map +1 -0
- package/dist/methods.js +1719 -124
- package/dist/methods.js.map +1 -1
- package/dist/money.d.ts +1406 -0
- package/dist/money.js +1090 -0
- package/dist/money.js.map +1 -0
- package/dist/network.d.ts +4 -5
- package/dist/network.js +3 -4
- package/dist/network.js.map +1 -1
- package/dist/notify.d.ts +321 -124
- package/dist/notify.js +223 -73
- package/dist/notify.js.map +1 -1
- package/dist/observability.d.ts +184 -7
- package/dist/observability.js +156 -8
- package/dist/observability.js.map +1 -1
- package/dist/release.d.ts +14 -15
- package/dist/release.js +3 -4
- package/dist/release.js.map +1 -1
- package/dist/runners.d.ts +2 -3
- package/dist/runners.js +3 -4
- package/dist/runners.js.map +1 -1
- package/dist/runtime.d.ts +5 -1
- package/dist/runtime.js +7 -3
- package/dist/runtime.js.map +1 -1
- package/dist/sandboxes.d.ts +64 -20
- package/dist/sandboxes.js +9 -4
- package/dist/sandboxes.js.map +1 -1
- package/dist/secrets.d.ts +6 -6
- package/dist/secrets.js +4 -4
- package/dist/workflows.d.ts +850 -12
- package/dist/workflows.js +672 -3
- package/dist/workflows.js.map +1 -1
- package/package.json +1 -1
package/dist/notify.d.ts
CHANGED
|
@@ -96,6 +96,20 @@ export interface CreateBroadcastRequest {
|
|
|
96
96
|
/** Validate and return the result without writing anything. */
|
|
97
97
|
validateOnly?: boolean;
|
|
98
98
|
}
|
|
99
|
+
/** The request of CreateEmailDomain. */
|
|
100
|
+
export interface CreateEmailDomainRequest {
|
|
101
|
+
/** The parent to create in. */
|
|
102
|
+
parent: string;
|
|
103
|
+
/**
|
|
104
|
+
* The email domain id, the final name segment; the server assigns one when
|
|
105
|
+
* empty.
|
|
106
|
+
*/
|
|
107
|
+
emailDomainId?: string;
|
|
108
|
+
/** The email domain to create; only caller-writable fields are read. */
|
|
109
|
+
emailDomain: EmailDomain;
|
|
110
|
+
/** Validate and return the result without writing anything. */
|
|
111
|
+
validateOnly?: boolean;
|
|
112
|
+
}
|
|
99
113
|
/** The request of CreateMailbox. */
|
|
100
114
|
export interface CreateMailboxRequest {
|
|
101
115
|
/** The parent to create in. */
|
|
@@ -135,6 +149,17 @@ export interface CreateRecipientRequest {
|
|
|
135
149
|
/** Validate and return the result without writing anything. */
|
|
136
150
|
validateOnly?: boolean;
|
|
137
151
|
}
|
|
152
|
+
/** The request of CreateRoute. */
|
|
153
|
+
export interface CreateRouteRequest {
|
|
154
|
+
/** The email domain to create in. */
|
|
155
|
+
parent: string;
|
|
156
|
+
/** The route id, the final name segment; the server assigns one when empty. */
|
|
157
|
+
routeId?: string;
|
|
158
|
+
/** The route to create; only caller-writable fields are read. */
|
|
159
|
+
route: Route;
|
|
160
|
+
/** Validate and return the result without writing anything. */
|
|
161
|
+
validateOnly?: boolean;
|
|
162
|
+
}
|
|
138
163
|
/** The request of CreateSender. */
|
|
139
164
|
export interface CreateSenderRequest {
|
|
140
165
|
/** The parent to create in. */
|
|
@@ -146,20 +171,6 @@ export interface CreateSenderRequest {
|
|
|
146
171
|
/** Validate and return the result without writing anything. */
|
|
147
172
|
validateOnly?: boolean;
|
|
148
173
|
}
|
|
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
174
|
/** The request of CreateSuppression. */
|
|
164
175
|
export interface CreateSuppressionRequest {
|
|
165
176
|
/** The parent to create in. */
|
|
@@ -199,6 +210,19 @@ export interface DeleteBroadcastRequest {
|
|
|
199
210
|
/** Validate without deleting anything. */
|
|
200
211
|
validateOnly?: boolean;
|
|
201
212
|
}
|
|
213
|
+
/** The request of DeleteEmailDomain. */
|
|
214
|
+
export interface DeleteEmailDomainRequest {
|
|
215
|
+
/** The name of the email domain to delete. */
|
|
216
|
+
name: string;
|
|
217
|
+
/** Delete only if the current etag matches. */
|
|
218
|
+
etag?: string;
|
|
219
|
+
/** Succeed when the email domain does not exist. */
|
|
220
|
+
allowMissing?: boolean;
|
|
221
|
+
/** Validate without deleting anything. */
|
|
222
|
+
validateOnly?: boolean;
|
|
223
|
+
/** Also delete the domain's routes. */
|
|
224
|
+
force?: boolean;
|
|
225
|
+
}
|
|
202
226
|
/** The request of DeleteMailbox. */
|
|
203
227
|
export interface DeleteMailboxRequest {
|
|
204
228
|
/** The name of the mailbox to delete. */
|
|
@@ -239,24 +263,24 @@ export interface DeleteRecipientRequest {
|
|
|
239
263
|
/** Also delete the recipient's preferences and inbox items. */
|
|
240
264
|
force?: boolean;
|
|
241
265
|
}
|
|
242
|
-
/** The request of
|
|
243
|
-
export interface
|
|
244
|
-
/** The name of the
|
|
266
|
+
/** The request of DeleteRoute. */
|
|
267
|
+
export interface DeleteRouteRequest {
|
|
268
|
+
/** The name of the route to delete. */
|
|
245
269
|
name: string;
|
|
246
270
|
/** Delete only if the current etag matches. */
|
|
247
271
|
etag?: string;
|
|
248
|
-
/** Succeed when the
|
|
272
|
+
/** Succeed when the route does not exist. */
|
|
249
273
|
allowMissing?: boolean;
|
|
250
274
|
/** Validate without deleting anything. */
|
|
251
275
|
validateOnly?: boolean;
|
|
252
276
|
}
|
|
253
|
-
/** The request of
|
|
254
|
-
export interface
|
|
255
|
-
/** The name of the
|
|
277
|
+
/** The request of DeleteSender. */
|
|
278
|
+
export interface DeleteSenderRequest {
|
|
279
|
+
/** The name of the sender to delete. */
|
|
256
280
|
name: string;
|
|
257
281
|
/** Delete only if the current etag matches. */
|
|
258
282
|
etag?: string;
|
|
259
|
-
/** Succeed when the
|
|
283
|
+
/** Succeed when the sender does not exist. */
|
|
260
284
|
allowMissing?: boolean;
|
|
261
285
|
/** Validate without deleting anything. */
|
|
262
286
|
validateOnly?: boolean;
|
|
@@ -283,7 +307,7 @@ export interface DeleteTemplateRequest {
|
|
|
283
307
|
/** Validate without deleting anything. */
|
|
284
308
|
validateOnly?: boolean;
|
|
285
309
|
}
|
|
286
|
-
/** A DNS record
|
|
310
|
+
/** A DNS record an Email Domain needs. */
|
|
287
311
|
export interface DnsRecord {
|
|
288
312
|
/** The record type: `TXT`, `CNAME`, or `MX`. */
|
|
289
313
|
readonly recordType?: string;
|
|
@@ -293,10 +317,12 @@ export interface DnsRecord {
|
|
|
293
317
|
readonly value?: string;
|
|
294
318
|
/** Whether the published value matches. */
|
|
295
319
|
readonly verified?: boolean;
|
|
320
|
+
/** The MX preference; zero for other record types. */
|
|
321
|
+
readonly priority?: number;
|
|
296
322
|
}
|
|
297
323
|
/** Email content; bodies are Mustache templates. */
|
|
298
324
|
export interface EmailContent {
|
|
299
|
-
/** The From address; its domain is a verified
|
|
325
|
+
/** The From address; its domain is a verified Email Domain. */
|
|
300
326
|
senderAddress?: string;
|
|
301
327
|
/** The subject. */
|
|
302
328
|
subject?: string;
|
|
@@ -307,6 +333,67 @@ export interface EmailContent {
|
|
|
307
333
|
/** The From display name, for example the app's name. */
|
|
308
334
|
senderName?: string;
|
|
309
335
|
}
|
|
336
|
+
/**
|
|
337
|
+
* An Email Domain is an email domain Notify sends from and receives for. It
|
|
338
|
+
* sends only after its DKIM and SPF records verify; every email is DKIM-signed
|
|
339
|
+
* with the domain's non-exportable key from Sylphx Keys, rotated with overlap. It
|
|
340
|
+
* receives only after every MX record of the domain points at the platform.
|
|
341
|
+
* No key material is ever returned.
|
|
342
|
+
*/
|
|
343
|
+
export interface EmailDomain {
|
|
344
|
+
/** `orgs/{org}/projects/{project}/envs/{env}/mail_domains/{mail_domain}`. */
|
|
345
|
+
name?: string;
|
|
346
|
+
/** `edm_<cell><ulid>`; never reused. */
|
|
347
|
+
readonly uid?: string;
|
|
348
|
+
/** Resource metadata. */
|
|
349
|
+
meta?: common.ResourceMeta;
|
|
350
|
+
/** Desired state. */
|
|
351
|
+
spec?: EmailDomainSpec;
|
|
352
|
+
/** Observed state. */
|
|
353
|
+
readonly status?: EmailDomainStatus;
|
|
354
|
+
}
|
|
355
|
+
/** The receiving half of an Email Domain. */
|
|
356
|
+
export interface EmailDomainReceiving {
|
|
357
|
+
/** Receive mail for the domain; needs every MX record at the platform. */
|
|
358
|
+
enabled?: boolean;
|
|
359
|
+
/** How the domain's mail reaches the platform; `ALL` when unset. */
|
|
360
|
+
mode?: EmailDomainReceivingMode;
|
|
361
|
+
}
|
|
362
|
+
/** The sending half of an Email Domain. */
|
|
363
|
+
export interface EmailDomainSending {
|
|
364
|
+
/** Send from the domain. Default true. */
|
|
365
|
+
enabled?: boolean;
|
|
366
|
+
}
|
|
367
|
+
/** EmailDomainSpec is the caller-writable state of an EmailDomain. */
|
|
368
|
+
export interface EmailDomainSpec {
|
|
369
|
+
/** The domain, for example `mail.example.com`. */
|
|
370
|
+
domain?: string;
|
|
371
|
+
/** The return-path (bounce) subdomain label; default `bounces`. */
|
|
372
|
+
returnPathLabel?: string;
|
|
373
|
+
/** Sending; the DKIM key and SPF include. Unset sends, as before. */
|
|
374
|
+
sending?: EmailDomainSending;
|
|
375
|
+
/** Receiving; the platform accepts mail for the domain. */
|
|
376
|
+
receiving?: EmailDomainReceiving;
|
|
377
|
+
}
|
|
378
|
+
/** EmailDomainStatus is the observed state of an EmailDomain. */
|
|
379
|
+
export interface EmailDomainStatus {
|
|
380
|
+
/** The generation this status was computed from. */
|
|
381
|
+
readonly observedGeneration?: string;
|
|
382
|
+
/** Ready, Reconciling, Stalled. */
|
|
383
|
+
readonly conditions?: common.Condition[];
|
|
384
|
+
/** Whether every required record verified; only a verified domain sends. */
|
|
385
|
+
readonly verified?: boolean;
|
|
386
|
+
/** When the records last verified. */
|
|
387
|
+
readonly verifyTime?: string;
|
|
388
|
+
/** The records to publish: DKIM, SPF, return path, DMARC. */
|
|
389
|
+
readonly dnsRecords?: DnsRecord[];
|
|
390
|
+
/** The DKIM selector in use. */
|
|
391
|
+
readonly dkimSelector?: string;
|
|
392
|
+
/** Whether the platform receives mail for the domain. */
|
|
393
|
+
readonly receivingState?: EmailDomainReceivingState;
|
|
394
|
+
/** When the MX records last verified. */
|
|
395
|
+
readonly receivingVerifyTime?: string;
|
|
396
|
+
}
|
|
310
397
|
/** The request of EraseMailboxAddress. */
|
|
311
398
|
export interface EraseMailboxAddressRequest {
|
|
312
399
|
/** The name of the mailbox. */
|
|
@@ -324,6 +411,11 @@ export interface GetBroadcastRequest {
|
|
|
324
411
|
/** The name of the broadcast to get. */
|
|
325
412
|
name: string;
|
|
326
413
|
}
|
|
414
|
+
/** The request of GetEmailDomain. */
|
|
415
|
+
export interface GetEmailDomainRequest {
|
|
416
|
+
/** The name of the email domain to get. */
|
|
417
|
+
name: string;
|
|
418
|
+
}
|
|
327
419
|
/** The request of GetInboundEmail. */
|
|
328
420
|
export interface GetInboundEmailRequest {
|
|
329
421
|
/** The name of the inbound email to get. */
|
|
@@ -354,16 +446,16 @@ export interface GetRecipientRequest {
|
|
|
354
446
|
/** The name of the recipient to get. */
|
|
355
447
|
name: string;
|
|
356
448
|
}
|
|
449
|
+
/** The request of GetRoute. */
|
|
450
|
+
export interface GetRouteRequest {
|
|
451
|
+
/** The name of the route to get. */
|
|
452
|
+
name: string;
|
|
453
|
+
}
|
|
357
454
|
/** The request of GetSender. */
|
|
358
455
|
export interface GetSenderRequest {
|
|
359
456
|
/** The name of the sender to get. */
|
|
360
457
|
name: string;
|
|
361
458
|
}
|
|
362
|
-
/** The request of GetSendingDomain. */
|
|
363
|
-
export interface GetSendingDomainRequest {
|
|
364
|
-
/** The name of the sending domain to get. */
|
|
365
|
-
name: string;
|
|
366
|
-
}
|
|
367
459
|
/** The request of GetSuppression. */
|
|
368
460
|
export interface GetSuppressionRequest {
|
|
369
461
|
/** The name of the suppression to get. */
|
|
@@ -483,6 +575,26 @@ export interface ListBroadcastsResponse {
|
|
|
483
575
|
/** The token of the next page; empty on the last page. */
|
|
484
576
|
nextPageToken?: string;
|
|
485
577
|
}
|
|
578
|
+
/** The request of ListEmailDomains. */
|
|
579
|
+
export interface ListEmailDomainsRequest {
|
|
580
|
+
/** The parent to list in. */
|
|
581
|
+
parent: string;
|
|
582
|
+
/** At most this many; default 50, clamped to 1000. */
|
|
583
|
+
pageSize?: number;
|
|
584
|
+
/** `next_page_token` of the previous page. */
|
|
585
|
+
pageToken?: string;
|
|
586
|
+
/** AIP-160 filter over labels and filterable fields. */
|
|
587
|
+
filter?: string;
|
|
588
|
+
/** AIP-132 ordering over filterable fields. */
|
|
589
|
+
orderBy?: string;
|
|
590
|
+
}
|
|
591
|
+
/** The response of ListEmailDomains. */
|
|
592
|
+
export interface ListEmailDomainsResponse {
|
|
593
|
+
/** The page. */
|
|
594
|
+
emailDomains?: EmailDomain[];
|
|
595
|
+
/** The token of the next page; empty on the last page. */
|
|
596
|
+
nextPageToken?: string;
|
|
597
|
+
}
|
|
486
598
|
/** The request of ListInboundEmails. */
|
|
487
599
|
export interface ListInboundEmailsRequest {
|
|
488
600
|
/** The mailbox to list in. */
|
|
@@ -603,9 +715,9 @@ export interface ListRecipientsResponse {
|
|
|
603
715
|
/** The token of the next page; empty on the last page. */
|
|
604
716
|
nextPageToken?: string;
|
|
605
717
|
}
|
|
606
|
-
/** The request of
|
|
607
|
-
export interface
|
|
608
|
-
/** The
|
|
718
|
+
/** The request of ListRoutes. */
|
|
719
|
+
export interface ListRoutesRequest {
|
|
720
|
+
/** The email domain to list in. */
|
|
609
721
|
parent: string;
|
|
610
722
|
/** At most this many; default 50, clamped to 1000. */
|
|
611
723
|
pageSize?: number;
|
|
@@ -616,15 +728,15 @@ export interface ListSendersRequest {
|
|
|
616
728
|
/** AIP-132 ordering over filterable fields. */
|
|
617
729
|
orderBy?: string;
|
|
618
730
|
}
|
|
619
|
-
/** The response of
|
|
620
|
-
export interface
|
|
731
|
+
/** The response of ListRoutes. */
|
|
732
|
+
export interface ListRoutesResponse {
|
|
621
733
|
/** The page. */
|
|
622
|
-
|
|
734
|
+
routes?: Route[];
|
|
623
735
|
/** The token of the next page; empty on the last page. */
|
|
624
736
|
nextPageToken?: string;
|
|
625
737
|
}
|
|
626
|
-
/** The request of
|
|
627
|
-
export interface
|
|
738
|
+
/** The request of ListSenders. */
|
|
739
|
+
export interface ListSendersRequest {
|
|
628
740
|
/** The parent to list in. */
|
|
629
741
|
parent: string;
|
|
630
742
|
/** At most this many; default 50, clamped to 1000. */
|
|
@@ -636,10 +748,10 @@ export interface ListSendingDomainsRequest {
|
|
|
636
748
|
/** AIP-132 ordering over filterable fields. */
|
|
637
749
|
orderBy?: string;
|
|
638
750
|
}
|
|
639
|
-
/** The response of
|
|
640
|
-
export interface
|
|
751
|
+
/** The response of ListSenders. */
|
|
752
|
+
export interface ListSendersResponse {
|
|
641
753
|
/** The page. */
|
|
642
|
-
|
|
754
|
+
senders?: Sender[];
|
|
643
755
|
/** The token of the next page; empty on the last page. */
|
|
644
756
|
nextPageToken?: string;
|
|
645
757
|
}
|
|
@@ -811,7 +923,7 @@ export interface Message {
|
|
|
811
923
|
readonly capture?: MessageCapture;
|
|
812
924
|
/**
|
|
813
925
|
* Send as this mailbox (its address, display name and, for a connected
|
|
814
|
-
* mailbox, its own SMTP) instead of a verified
|
|
926
|
+
* mailbox, its own SMTP) instead of a verified Email Domain.
|
|
815
927
|
*/
|
|
816
928
|
mailbox?: string;
|
|
817
929
|
/**
|
|
@@ -890,7 +1002,7 @@ export interface PushDevice {
|
|
|
890
1002
|
export interface PushSender {
|
|
891
1003
|
/** The push platform. */
|
|
892
1004
|
platform?: PushPlatform;
|
|
893
|
-
/** The
|
|
1005
|
+
/** The Connection holding the APNs, FCM, or VAPID credentials. */
|
|
894
1006
|
connection?: string;
|
|
895
1007
|
/** The bundle id, package name, or web origin. */
|
|
896
1008
|
appKey?: string;
|
|
@@ -926,6 +1038,66 @@ export interface Recipient {
|
|
|
926
1038
|
*/
|
|
927
1039
|
test?: boolean;
|
|
928
1040
|
}
|
|
1041
|
+
/**
|
|
1042
|
+
* A Route sends the mail a receiving Email Domain accepts for one address, a
|
|
1043
|
+
* pattern of addresses, or every other address to actions: deliver to
|
|
1044
|
+
* mailboxes, forward, or reject. Every accepted message also publishes
|
|
1045
|
+
* `sylphx.notify.inbound_email.received`.
|
|
1046
|
+
*/
|
|
1047
|
+
export interface Route {
|
|
1048
|
+
/** `orgs/{org}/projects/{project}/envs/{env}/mail_domains/{mail_domain}/mail_routes/{mail_route}`. */
|
|
1049
|
+
name?: string;
|
|
1050
|
+
/** `rte_<cell><ulid>`; never reused. */
|
|
1051
|
+
readonly uid?: string;
|
|
1052
|
+
/** Resource metadata. */
|
|
1053
|
+
meta?: common.ResourceMeta;
|
|
1054
|
+
/** Desired state. */
|
|
1055
|
+
spec?: RouteSpec;
|
|
1056
|
+
/** Observed state. */
|
|
1057
|
+
readonly status?: RouteStatus;
|
|
1058
|
+
}
|
|
1059
|
+
/** One thing a Route does with mail; exactly one. */
|
|
1060
|
+
export interface RouteAction {
|
|
1061
|
+
/** Deliver to a mailbox of the environment. */
|
|
1062
|
+
mailbox?: string;
|
|
1063
|
+
/** Forward to an address. */
|
|
1064
|
+
forward?: string;
|
|
1065
|
+
/** Refuse at the recipient step with this message; stands alone. */
|
|
1066
|
+
reject?: string;
|
|
1067
|
+
}
|
|
1068
|
+
/** Which recipients a Route matches; exactly one. */
|
|
1069
|
+
export interface RouteMatch {
|
|
1070
|
+
/**
|
|
1071
|
+
* A local part, for example `support`. A local part with a `+tag` also
|
|
1072
|
+
* matches its route.
|
|
1073
|
+
*/
|
|
1074
|
+
address?: string;
|
|
1075
|
+
/** A glob on the local part, for example `billing-*`. */
|
|
1076
|
+
pattern?: string;
|
|
1077
|
+
/** Every local part no other route matches. */
|
|
1078
|
+
catchAll?: boolean;
|
|
1079
|
+
}
|
|
1080
|
+
/** RouteSpec is the caller-writable state of a Route. */
|
|
1081
|
+
export interface RouteSpec {
|
|
1082
|
+
/** Which recipients the route matches. */
|
|
1083
|
+
match?: RouteMatch;
|
|
1084
|
+
/**
|
|
1085
|
+
* What happens to the mail: one or more mailbox and forward actions, or one
|
|
1086
|
+
* reject.
|
|
1087
|
+
*/
|
|
1088
|
+
actions?: RouteAction[];
|
|
1089
|
+
/** What happens to mail the spam filter judges spam; `DELIVER` when unset. */
|
|
1090
|
+
spam?: RouteSpamPolicy;
|
|
1091
|
+
/** A disabled route matches nothing. */
|
|
1092
|
+
enabled?: boolean;
|
|
1093
|
+
}
|
|
1094
|
+
/** RouteStatus is the observed state of a Route. */
|
|
1095
|
+
export interface RouteStatus {
|
|
1096
|
+
/** The generation this status was computed from. */
|
|
1097
|
+
readonly observedGeneration?: string;
|
|
1098
|
+
/** Ready, Reconciling, Stalled. */
|
|
1099
|
+
readonly conditions?: common.Condition[];
|
|
1100
|
+
}
|
|
929
1101
|
/** The request of SendBroadcast. */
|
|
930
1102
|
export interface SendBroadcastRequest {
|
|
931
1103
|
/** The name of the broadcast. */
|
|
@@ -947,8 +1119,8 @@ export interface SendLimit {
|
|
|
947
1119
|
}
|
|
948
1120
|
/**
|
|
949
1121
|
* 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
|
|
951
|
-
* through the
|
|
1122
|
+
* id, or a push app whose APNs/FCM credentials are a Connection reached
|
|
1123
|
+
* through the credential service. It is used only once verified.
|
|
952
1124
|
*/
|
|
953
1125
|
export interface Sender {
|
|
954
1126
|
/** `orgs/{org}/projects/{project}/envs/{env}/senders/{sender}`. */
|
|
@@ -980,46 +1152,6 @@ export interface SenderStatus {
|
|
|
980
1152
|
/** Why the sender is not verified, when it is not. */
|
|
981
1153
|
readonly verificationNote?: string;
|
|
982
1154
|
}
|
|
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
1155
|
/** SMS content. */
|
|
1024
1156
|
export interface SmsContent {
|
|
1025
1157
|
/** The SMS Sender. */
|
|
@@ -1111,6 +1243,17 @@ export interface UpdateBroadcastRequest {
|
|
|
1111
1243
|
/** Validate and return the result without writing anything. */
|
|
1112
1244
|
validateOnly?: boolean;
|
|
1113
1245
|
}
|
|
1246
|
+
/** The request of UpdateEmailDomain. */
|
|
1247
|
+
export interface UpdateEmailDomainRequest {
|
|
1248
|
+
/** The email domain to update; `name` identifies it. */
|
|
1249
|
+
emailDomain: EmailDomain;
|
|
1250
|
+
/** The fields to write; unset writes every populated field. */
|
|
1251
|
+
updateMask?: string;
|
|
1252
|
+
/** Create the email domain when it does not exist (declarative upsert). */
|
|
1253
|
+
allowMissing?: boolean;
|
|
1254
|
+
/** Validate and return the result without writing anything. */
|
|
1255
|
+
validateOnly?: boolean;
|
|
1256
|
+
}
|
|
1114
1257
|
/** The request of UpdateMailbox. */
|
|
1115
1258
|
export interface UpdateMailboxRequest {
|
|
1116
1259
|
/** The mailbox to update; `name` identifies it. */
|
|
@@ -1144,24 +1287,24 @@ export interface UpdateRecipientRequest {
|
|
|
1144
1287
|
/** Validate and return the result without writing anything. */
|
|
1145
1288
|
validateOnly?: boolean;
|
|
1146
1289
|
}
|
|
1147
|
-
/** The request of
|
|
1148
|
-
export interface
|
|
1149
|
-
/** The
|
|
1150
|
-
|
|
1290
|
+
/** The request of UpdateRoute. */
|
|
1291
|
+
export interface UpdateRouteRequest {
|
|
1292
|
+
/** The route to update; `name` identifies it. */
|
|
1293
|
+
route: Route;
|
|
1151
1294
|
/** The fields to write; unset writes every populated field. */
|
|
1152
1295
|
updateMask?: string;
|
|
1153
|
-
/** Create the
|
|
1296
|
+
/** Create the route when it does not exist (declarative upsert). */
|
|
1154
1297
|
allowMissing?: boolean;
|
|
1155
1298
|
/** Validate and return the result without writing anything. */
|
|
1156
1299
|
validateOnly?: boolean;
|
|
1157
1300
|
}
|
|
1158
|
-
/** The request of
|
|
1159
|
-
export interface
|
|
1160
|
-
/** The
|
|
1161
|
-
|
|
1301
|
+
/** The request of UpdateSender. */
|
|
1302
|
+
export interface UpdateSenderRequest {
|
|
1303
|
+
/** The sender to update; `name` identifies it. */
|
|
1304
|
+
sender: Sender;
|
|
1162
1305
|
/** The fields to write; unset writes every populated field. */
|
|
1163
1306
|
updateMask?: string;
|
|
1164
|
-
/** Create the
|
|
1307
|
+
/** Create the sender when it does not exist (declarative upsert). */
|
|
1165
1308
|
allowMissing?: boolean;
|
|
1166
1309
|
/** Validate and return the result without writing anything. */
|
|
1167
1310
|
validateOnly?: boolean;
|
|
@@ -1177,22 +1320,26 @@ export interface UpdateTemplateRequest {
|
|
|
1177
1320
|
/** Validate and return the result without writing anything. */
|
|
1178
1321
|
validateOnly?: boolean;
|
|
1179
1322
|
}
|
|
1323
|
+
/** The request of VerifyEmailDomain. */
|
|
1324
|
+
export interface VerifyEmailDomainRequest {
|
|
1325
|
+
/** The name of the email domain. */
|
|
1326
|
+
name: string;
|
|
1327
|
+
}
|
|
1180
1328
|
/** The request of VerifySender. */
|
|
1181
1329
|
export interface VerifySenderRequest {
|
|
1182
1330
|
/** The name of the sender. */
|
|
1183
1331
|
name: string;
|
|
1184
1332
|
}
|
|
1185
|
-
/** The request of VerifySendingDomain. */
|
|
1186
|
-
export interface VerifySendingDomainRequest {
|
|
1187
|
-
/** The name of the sending domain. */
|
|
1188
|
-
name: string;
|
|
1189
|
-
}
|
|
1190
1333
|
/** The progress of a Broadcast. */
|
|
1191
1334
|
export type BroadcastState = 'draft' | 'scheduled' | 'sending' | 'sent' | 'cancelled' | (string & {});
|
|
1192
1335
|
/** A Notify channel. */
|
|
1193
1336
|
export type Channel = 'email' | 'sms' | 'push' | 'inbox' | (string & {});
|
|
1194
1337
|
/** The state of one channel delivery. */
|
|
1195
1338
|
export type ChannelDeliveryState = 'pending' | 'sent' | 'delivered' | 'bounced' | 'failed' | 'skipped' | 'captured' | 'suppressed' | (string & {});
|
|
1339
|
+
/** How an Email Domain's mail reaches the platform. */
|
|
1340
|
+
export type EmailDomainReceivingMode = 'all' | (string & {});
|
|
1341
|
+
/** Whether the platform receives mail for an Email Domain. */
|
|
1342
|
+
export type EmailDomainReceivingState = 'disabled' | 'pending' | 'verified' | 'degraded' | (string & {});
|
|
1196
1343
|
/** Whether an Inbound Email came in or went out. */
|
|
1197
1344
|
export type InboundEmailDirection = 'received' | 'sent' | (string & {});
|
|
1198
1345
|
/** The state of an inbox item. */
|
|
@@ -1205,19 +1352,22 @@ export type MailboxKind = 'connected' | 'hosted' | (string & {});
|
|
|
1205
1352
|
export type MessageState = 'accepted' | 'suppressed' | 'delivering' | 'delivered' | 'failed' | 'cancelled' | 'rate_limited' | (string & {});
|
|
1206
1353
|
/** A push platform. */
|
|
1207
1354
|
export type PushPlatform = 'apns' | 'fcm' | 'web_push' | (string & {});
|
|
1355
|
+
/** What happens to mail judged spam on a Route. */
|
|
1356
|
+
export type RouteSpamPolicy = 'deliver' | 'drop' | 'reject' | (string & {});
|
|
1208
1357
|
/** Why an address is suppressed. */
|
|
1209
1358
|
export type SuppressionReason = 'bounce' | 'complaint' | 'carrier_opt_out' | 'unsubscribe' | 'uninstalled' | 'manual' | (string & {});
|
|
1210
1359
|
/**
|
|
1211
1360
|
* NotifyService is Sylphx Notify: messages to people over email, SMS, push,
|
|
1212
|
-
* and in-app inbox, with preferences, suppression, templates, and broadcasts
|
|
1213
|
-
*
|
|
1214
|
-
* ordinary customer.
|
|
1361
|
+
* and in-app inbox, with preferences, suppression, templates, and broadcasts.
|
|
1362
|
+
* Notify is built on Sylphx Events as an ordinary customer.
|
|
1215
1363
|
*
|
|
1216
1364
|
* Namespace of Sylphx Notify on `Sylphx`.
|
|
1217
1365
|
*/
|
|
1218
1366
|
export declare class NotifyApi {
|
|
1219
|
-
/** The `
|
|
1220
|
-
readonly
|
|
1367
|
+
/** The `mail_domains` collection. */
|
|
1368
|
+
readonly mailDomains: MailDomainsCollection;
|
|
1369
|
+
/** The `mail_routes` collection. */
|
|
1370
|
+
readonly mailRoutes: MailRoutesCollection;
|
|
1221
1371
|
/** The `senders` collection. */
|
|
1222
1372
|
readonly senders: SendersCollection;
|
|
1223
1373
|
/** The `recipients` collection. */
|
|
@@ -1240,60 +1390,107 @@ export declare class NotifyApi {
|
|
|
1240
1390
|
readonly broadcasts: BroadcastsCollection;
|
|
1241
1391
|
constructor(client: runtime.Client);
|
|
1242
1392
|
}
|
|
1243
|
-
/** `
|
|
1244
|
-
export declare class
|
|
1393
|
+
/** `mail_domains` of Sylphx Notify: Resource type `notify.sylphx.com/EmailDomain`. */
|
|
1394
|
+
export declare class MailDomainsCollection {
|
|
1245
1395
|
private readonly client;
|
|
1246
1396
|
constructor(client: runtime.Client);
|
|
1247
1397
|
/**
|
|
1248
|
-
* Gets
|
|
1398
|
+
* Gets an email domain.
|
|
1249
1399
|
*
|
|
1250
|
-
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/
|
|
1400
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/mail_domains/*}` · permission `notify:read` · effect `read`
|
|
1251
1401
|
*
|
|
1252
1402
|
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
1253
1403
|
*/
|
|
1254
|
-
get(request:
|
|
1404
|
+
get(request: GetEmailDomainRequest): Promise<EmailDomain>;
|
|
1255
1405
|
/**
|
|
1256
|
-
* Lists
|
|
1406
|
+
* Lists email domains.
|
|
1257
1407
|
*
|
|
1258
|
-
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/
|
|
1408
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/mail_domains` · permission `notify:read` · effect `read`
|
|
1259
1409
|
*
|
|
1260
1410
|
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
1261
1411
|
*/
|
|
1262
|
-
list(request:
|
|
1412
|
+
list(request: ListEmailDomainsRequest): Promise<ListEmailDomainsResponse>;
|
|
1263
1413
|
/** Every item of every page of `list`. */
|
|
1264
|
-
listAll(request:
|
|
1414
|
+
listAll(request: ListEmailDomainsRequest): AsyncGenerator<EmailDomain>;
|
|
1265
1415
|
/**
|
|
1266
|
-
* Creates
|
|
1416
|
+
* Creates an email domain.
|
|
1267
1417
|
*
|
|
1268
|
-
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/
|
|
1418
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/mail_domains` · permission `notify:write` · effect `write`
|
|
1269
1419
|
*
|
|
1270
1420
|
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
|
|
1271
1421
|
*/
|
|
1272
|
-
create(request:
|
|
1422
|
+
create(request: CreateEmailDomainRequest): Promise<EmailDomain>;
|
|
1273
1423
|
/**
|
|
1274
|
-
* Updates
|
|
1424
|
+
* Updates an email domain.
|
|
1275
1425
|
*
|
|
1276
|
-
* `PATCH /v1/{
|
|
1426
|
+
* `PATCH /v1/{email_domain.name=orgs/*\/projects/*\/envs/*\/mail_domains/*}` · permission `notify:write` · effect `write`
|
|
1277
1427
|
*
|
|
1278
1428
|
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1279
1429
|
*/
|
|
1280
|
-
update(request:
|
|
1430
|
+
update(request: UpdateEmailDomainRequest): Promise<EmailDomain>;
|
|
1281
1431
|
/**
|
|
1282
|
-
* Deletes
|
|
1432
|
+
* Deletes an email domain.
|
|
1283
1433
|
*
|
|
1284
|
-
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/
|
|
1434
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/mail_domains/*}` · permission `notify:write` · effect `destructive`
|
|
1285
1435
|
*
|
|
1286
1436
|
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1287
1437
|
*/
|
|
1288
|
-
delete(request:
|
|
1438
|
+
delete(request: DeleteEmailDomainRequest): Promise<Record<string, never>>;
|
|
1289
1439
|
/**
|
|
1290
1440
|
* Checks the domain's DNS records now instead of on the next sweep.
|
|
1291
1441
|
*
|
|
1292
|
-
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/
|
|
1442
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/mail_domains/*}:verify` · permission `notify:write` · effect `write`
|
|
1293
1443
|
*
|
|
1294
1444
|
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `RATE_LIMITED`.
|
|
1295
1445
|
*/
|
|
1296
|
-
verify(request:
|
|
1446
|
+
verify(request: VerifyEmailDomainRequest): Promise<EmailDomain>;
|
|
1447
|
+
}
|
|
1448
|
+
/** `mail_routes` of Sylphx Notify: Resource type `notify.sylphx.com/Route`. */
|
|
1449
|
+
export declare class MailRoutesCollection {
|
|
1450
|
+
private readonly client;
|
|
1451
|
+
constructor(client: runtime.Client);
|
|
1452
|
+
/**
|
|
1453
|
+
* Gets a route.
|
|
1454
|
+
*
|
|
1455
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/mail_domains/*\/mail_routes/*}` · permission `notify:read` · effect `read`
|
|
1456
|
+
*
|
|
1457
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
1458
|
+
*/
|
|
1459
|
+
get(request: GetRouteRequest): Promise<Route>;
|
|
1460
|
+
/**
|
|
1461
|
+
* Lists an email domain's routes.
|
|
1462
|
+
*
|
|
1463
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/mail_domains/*}/mail_routes` · permission `notify:read` · effect `read`
|
|
1464
|
+
*
|
|
1465
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
1466
|
+
*/
|
|
1467
|
+
list(request: ListRoutesRequest): Promise<ListRoutesResponse>;
|
|
1468
|
+
/** Every item of every page of `list`. */
|
|
1469
|
+
listAll(request: ListRoutesRequest): AsyncGenerator<Route>;
|
|
1470
|
+
/**
|
|
1471
|
+
* Creates a route.
|
|
1472
|
+
*
|
|
1473
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*\/mail_domains/*}/mail_routes` · permission `notify:write` · effect `write`
|
|
1474
|
+
*
|
|
1475
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
|
|
1476
|
+
*/
|
|
1477
|
+
create(request: CreateRouteRequest): Promise<Route>;
|
|
1478
|
+
/**
|
|
1479
|
+
* Updates a route.
|
|
1480
|
+
*
|
|
1481
|
+
* `PATCH /v1/{route.name=orgs/*\/projects/*\/envs/*\/mail_domains/*\/mail_routes/*}` · permission `notify:write` · effect `write`
|
|
1482
|
+
*
|
|
1483
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1484
|
+
*/
|
|
1485
|
+
update(request: UpdateRouteRequest): Promise<Route>;
|
|
1486
|
+
/**
|
|
1487
|
+
* Deletes a route.
|
|
1488
|
+
*
|
|
1489
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/mail_domains/*\/mail_routes/*}` · permission `notify:write` · effect `destructive`
|
|
1490
|
+
*
|
|
1491
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`.
|
|
1492
|
+
*/
|
|
1493
|
+
delete(request: DeleteRouteRequest): Promise<Record<string, never>>;
|
|
1297
1494
|
}
|
|
1298
1495
|
/** `senders` of Sylphx Notify: Resource type `notify.sylphx.com/Sender`. */
|
|
1299
1496
|
export declare class SendersCollection {
|