@sylphx/sdk 0.27.0 → 0.30.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/LICENSE +21 -0
- package/README.md +30 -73
- package/dist/access.d.ts +659 -0
- package/dist/access.js +638 -0
- package/dist/access.js.map +1 -0
- package/dist/ai.d.ts +176 -0
- package/dist/ai.js +112 -0
- package/dist/ai.js.map +1 -0
- package/dist/artifacts.d.ts +165 -0
- package/dist/artifacts.js +129 -0
- package/dist/artifacts.js.map +1 -0
- package/dist/auth.d.ts +896 -0
- package/dist/auth.js +828 -0
- package/dist/auth.js.map +1 -0
- package/dist/billing.d.ts +758 -0
- package/dist/billing.js +553 -0
- package/dist/billing.js.map +1 -0
- package/dist/broker.d.ts +226 -0
- package/dist/broker.js +187 -0
- package/dist/broker.js.map +1 -0
- package/dist/build.d.ts +313 -0
- package/dist/build.js +271 -0
- package/dist/build.js.map +1 -0
- package/dist/common.d.ts +162 -0
- package/dist/common.js +41 -0
- package/dist/common.js.map +1 -0
- package/dist/config.d.ts +198 -0
- package/dist/config.js +168 -0
- package/dist/config.js.map +1 -0
- package/dist/connections.d.ts +354 -0
- package/dist/connections.js +313 -0
- package/dist/connections.js.map +1 -0
- package/dist/data.d.ts +858 -0
- package/dist/data.js +814 -0
- package/dist/data.js.map +1 -0
- package/dist/entitlement.d.ts +172 -0
- package/dist/entitlement.js +116 -0
- package/dist/entitlement.js.map +1 -0
- package/dist/events.d.ts +1324 -0
- package/dist/events.js +1227 -0
- package/dist/events.js.map +1 -0
- package/dist/hosting.d.ts +709 -0
- package/dist/hosting.js +611 -0
- package/dist/hosting.js.map +1 -0
- package/dist/index.d.ts +79 -11493
- package/dist/index.js +113 -0
- package/dist/index.js.map +1 -0
- package/dist/keys.d.ts +438 -0
- package/dist/keys.js +406 -0
- package/dist/keys.js.map +1 -0
- package/dist/methods.d.ts +2 -0
- package/dist/methods.js +3995 -0
- package/dist/methods.js.map +1 -0
- package/dist/network.d.ts +733 -0
- package/dist/network.js +711 -0
- package/dist/network.js.map +1 -0
- package/dist/notify.d.ts +1359 -0
- package/dist/notify.js +1282 -0
- package/dist/notify.js.map +1 -0
- package/dist/observability.d.ts +509 -0
- package/dist/observability.js +437 -0
- package/dist/observability.js.map +1 -0
- package/dist/release.d.ts +303 -0
- package/dist/release.js +214 -0
- package/dist/release.js.map +1 -0
- package/dist/runners.d.ts +262 -0
- package/dist/runners.js +238 -0
- package/dist/runners.js.map +1 -0
- package/dist/runtime.d.ts +88 -0
- package/dist/runtime.js +226 -0
- package/dist/runtime.js.map +1 -0
- package/dist/sandboxes.d.ts +1705 -0
- package/dist/sandboxes.js +1226 -0
- package/dist/sandboxes.js.map +1 -0
- package/dist/secrets.d.ts +508 -0
- package/dist/secrets.js +474 -0
- package/dist/secrets.js.map +1 -0
- package/dist/workflows.d.ts +678 -0
- package/dist/workflows.js +595 -0
- package/dist/workflows.js.map +1 -0
- package/package.json +33 -106
- package/dist/health/index.d.ts +0 -1394
- package/dist/health/index.mjs +0 -1394
- package/dist/health/index.mjs.map +0 -1
- package/dist/index.mjs +0 -10386
- package/dist/index.mjs.map +0 -1
- package/dist/nextjs/index.d.ts +0 -724
- package/dist/nextjs/index.mjs +0 -3329
- package/dist/nextjs/index.mjs.map +0 -1
- package/dist/react/index.d.ts +0 -14168
- package/dist/react/index.mjs +0 -37002
- package/dist/react/index.mjs.map +0 -1
- package/dist/server/index.d.ts +0 -2017
- package/dist/server/index.mjs +0 -3446
- package/dist/server/index.mjs.map +0 -1
- package/dist/tasks.d.ts +0 -1463
- package/dist/tasks.mjs +0 -1907
- package/dist/tasks.mjs.map +0 -1
- package/dist/web-analytics.d.ts +0 -90
- package/dist/web-analytics.mjs +0 -225
- package/dist/web-analytics.mjs.map +0 -1
package/dist/notify.d.ts
ADDED
|
@@ -0,0 +1,1359 @@
|
|
|
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
|
+
}
|
|
81
|
+
/** The request of CreateBroadcast. */
|
|
82
|
+
export interface CreateBroadcastRequest {
|
|
83
|
+
/** The parent to create in. */
|
|
84
|
+
parent: string;
|
|
85
|
+
/**
|
|
86
|
+
* The broadcast id, the final name segment; the server assigns one when
|
|
87
|
+
* empty.
|
|
88
|
+
*/
|
|
89
|
+
broadcastId?: string;
|
|
90
|
+
/** The broadcast to create; only caller-writable fields are read. */
|
|
91
|
+
broadcast: Broadcast;
|
|
92
|
+
/** Validate and return the result without writing anything. */
|
|
93
|
+
validateOnly?: boolean;
|
|
94
|
+
}
|
|
95
|
+
/** The request of CreateMessage. */
|
|
96
|
+
export interface CreateMessageRequest {
|
|
97
|
+
/** The parent to create in. */
|
|
98
|
+
parent: string;
|
|
99
|
+
/** The message id, the final name segment; the server assigns one when empty. */
|
|
100
|
+
messageId?: string;
|
|
101
|
+
/** The message to create; only caller-writable fields are read. */
|
|
102
|
+
message: Message;
|
|
103
|
+
/** Validate and return the result without writing anything. */
|
|
104
|
+
validateOnly?: boolean;
|
|
105
|
+
}
|
|
106
|
+
/** The request of CreateRecipient. */
|
|
107
|
+
export interface CreateRecipientRequest {
|
|
108
|
+
/** The parent to create in. */
|
|
109
|
+
parent: string;
|
|
110
|
+
/**
|
|
111
|
+
* The recipient id, the final name segment; the server assigns one when
|
|
112
|
+
* empty.
|
|
113
|
+
*/
|
|
114
|
+
recipientId?: string;
|
|
115
|
+
/** The recipient to create; only caller-writable fields are read. */
|
|
116
|
+
recipient: Recipient;
|
|
117
|
+
/** Validate and return the result without writing anything. */
|
|
118
|
+
validateOnly?: boolean;
|
|
119
|
+
}
|
|
120
|
+
/** The request of CreateSender. */
|
|
121
|
+
export interface CreateSenderRequest {
|
|
122
|
+
/** The parent to create in. */
|
|
123
|
+
parent: string;
|
|
124
|
+
/** The sender id, the final name segment; the server assigns one when empty. */
|
|
125
|
+
senderId?: string;
|
|
126
|
+
/** The sender to create; only caller-writable fields are read. */
|
|
127
|
+
sender: Sender;
|
|
128
|
+
/** Validate and return the result without writing anything. */
|
|
129
|
+
validateOnly?: boolean;
|
|
130
|
+
}
|
|
131
|
+
/** The request of CreateSendingDomain. */
|
|
132
|
+
export interface CreateSendingDomainRequest {
|
|
133
|
+
/** The parent to create in. */
|
|
134
|
+
parent: string;
|
|
135
|
+
/**
|
|
136
|
+
* The sending domain id, the final name segment; the server assigns one when
|
|
137
|
+
* empty.
|
|
138
|
+
*/
|
|
139
|
+
sendingDomainId?: string;
|
|
140
|
+
/** The sending domain to create; only caller-writable fields are read. */
|
|
141
|
+
sendingDomain: SendingDomain;
|
|
142
|
+
/** Validate and return the result without writing anything. */
|
|
143
|
+
validateOnly?: boolean;
|
|
144
|
+
}
|
|
145
|
+
/** The request of CreateSuppression. */
|
|
146
|
+
export interface CreateSuppressionRequest {
|
|
147
|
+
/** The parent to create in. */
|
|
148
|
+
parent: string;
|
|
149
|
+
/**
|
|
150
|
+
* The suppression id, the final name segment; the server assigns one when
|
|
151
|
+
* empty.
|
|
152
|
+
*/
|
|
153
|
+
suppressionId?: string;
|
|
154
|
+
/** The suppression to create; only caller-writable fields are read. */
|
|
155
|
+
suppression: Suppression;
|
|
156
|
+
/** Validate and return the result without writing anything. */
|
|
157
|
+
validateOnly?: boolean;
|
|
158
|
+
}
|
|
159
|
+
/** The request of CreateTemplate. */
|
|
160
|
+
export interface CreateTemplateRequest {
|
|
161
|
+
/** The parent to create in. */
|
|
162
|
+
parent: string;
|
|
163
|
+
/**
|
|
164
|
+
* The template id, the final name segment; the server assigns one when
|
|
165
|
+
* empty.
|
|
166
|
+
*/
|
|
167
|
+
templateId?: string;
|
|
168
|
+
/** The template to create; only caller-writable fields are read. */
|
|
169
|
+
template: Template;
|
|
170
|
+
/** Validate and return the result without writing anything. */
|
|
171
|
+
validateOnly?: boolean;
|
|
172
|
+
}
|
|
173
|
+
/** The request of DeleteBroadcast. */
|
|
174
|
+
export interface DeleteBroadcastRequest {
|
|
175
|
+
/** The name of the broadcast to delete. */
|
|
176
|
+
name: string;
|
|
177
|
+
/** Delete only if the current etag matches. */
|
|
178
|
+
etag?: string;
|
|
179
|
+
/** Succeed when the broadcast does not exist. */
|
|
180
|
+
allowMissing?: boolean;
|
|
181
|
+
/** Validate without deleting anything. */
|
|
182
|
+
validateOnly?: boolean;
|
|
183
|
+
}
|
|
184
|
+
/** The request of DeletePreference. */
|
|
185
|
+
export interface DeletePreferenceRequest {
|
|
186
|
+
/** The name of the preference to delete. */
|
|
187
|
+
name: string;
|
|
188
|
+
/** Delete only if the current etag matches. */
|
|
189
|
+
etag?: string;
|
|
190
|
+
/** Succeed when the preference does not exist. */
|
|
191
|
+
allowMissing?: boolean;
|
|
192
|
+
/** Validate without deleting anything. */
|
|
193
|
+
validateOnly?: boolean;
|
|
194
|
+
}
|
|
195
|
+
/** The request of DeleteRecipient. */
|
|
196
|
+
export interface DeleteRecipientRequest {
|
|
197
|
+
/** The name of the recipient to delete. */
|
|
198
|
+
name: string;
|
|
199
|
+
/** Delete only if the current etag matches. */
|
|
200
|
+
etag?: string;
|
|
201
|
+
/** Succeed when the recipient does not exist. */
|
|
202
|
+
allowMissing?: boolean;
|
|
203
|
+
/** Validate without deleting anything. */
|
|
204
|
+
validateOnly?: boolean;
|
|
205
|
+
/** Also delete the recipient's preferences and inbox items. */
|
|
206
|
+
force?: boolean;
|
|
207
|
+
}
|
|
208
|
+
/** The request of DeleteSender. */
|
|
209
|
+
export interface DeleteSenderRequest {
|
|
210
|
+
/** The name of the sender to delete. */
|
|
211
|
+
name: string;
|
|
212
|
+
/** Delete only if the current etag matches. */
|
|
213
|
+
etag?: string;
|
|
214
|
+
/** Succeed when the sender does not exist. */
|
|
215
|
+
allowMissing?: boolean;
|
|
216
|
+
/** Validate without deleting anything. */
|
|
217
|
+
validateOnly?: boolean;
|
|
218
|
+
}
|
|
219
|
+
/** The request of DeleteSendingDomain. */
|
|
220
|
+
export interface DeleteSendingDomainRequest {
|
|
221
|
+
/** The name of the sending domain to delete. */
|
|
222
|
+
name: string;
|
|
223
|
+
/** Delete only if the current etag matches. */
|
|
224
|
+
etag?: string;
|
|
225
|
+
/** Succeed when the sending domain does not exist. */
|
|
226
|
+
allowMissing?: boolean;
|
|
227
|
+
/** Validate without deleting anything. */
|
|
228
|
+
validateOnly?: boolean;
|
|
229
|
+
}
|
|
230
|
+
/** The request of DeleteSuppression. */
|
|
231
|
+
export interface DeleteSuppressionRequest {
|
|
232
|
+
/** The name of the suppression to delete. */
|
|
233
|
+
name: string;
|
|
234
|
+
/** Delete only if the current etag matches. */
|
|
235
|
+
etag?: string;
|
|
236
|
+
/** Succeed when the suppression does not exist. */
|
|
237
|
+
allowMissing?: boolean;
|
|
238
|
+
/** Validate without deleting anything. */
|
|
239
|
+
validateOnly?: boolean;
|
|
240
|
+
}
|
|
241
|
+
/** The request of DeleteTemplate. */
|
|
242
|
+
export interface DeleteTemplateRequest {
|
|
243
|
+
/** The name of the template to delete. */
|
|
244
|
+
name: string;
|
|
245
|
+
/** Delete only if the current etag matches. */
|
|
246
|
+
etag?: string;
|
|
247
|
+
/** Succeed when the template does not exist. */
|
|
248
|
+
allowMissing?: boolean;
|
|
249
|
+
/** Validate without deleting anything. */
|
|
250
|
+
validateOnly?: boolean;
|
|
251
|
+
}
|
|
252
|
+
/** A DNS record a Sending Domain needs. */
|
|
253
|
+
export interface DnsRecord {
|
|
254
|
+
/** The record type: `TXT`, `CNAME`, or `MX`. */
|
|
255
|
+
readonly recordType?: string;
|
|
256
|
+
/** The fully qualified host. */
|
|
257
|
+
readonly host?: string;
|
|
258
|
+
/** The value to publish. */
|
|
259
|
+
readonly value?: string;
|
|
260
|
+
/** Whether the published value matches. */
|
|
261
|
+
readonly verified?: boolean;
|
|
262
|
+
}
|
|
263
|
+
/** Email content; bodies are Mustache templates. */
|
|
264
|
+
export interface EmailContent {
|
|
265
|
+
/** The From address; its domain is a verified Sending Domain. */
|
|
266
|
+
senderAddress?: string;
|
|
267
|
+
/** The subject. */
|
|
268
|
+
subject?: string;
|
|
269
|
+
/** The HTML body. */
|
|
270
|
+
htmlBody?: string;
|
|
271
|
+
/** The plain-text body. */
|
|
272
|
+
textBody?: string;
|
|
273
|
+
}
|
|
274
|
+
/** The request of GetBroadcast. */
|
|
275
|
+
export interface GetBroadcastRequest {
|
|
276
|
+
/** The name of the broadcast to get. */
|
|
277
|
+
name: string;
|
|
278
|
+
}
|
|
279
|
+
/** The request of GetInboxItem. */
|
|
280
|
+
export interface GetInboxItemRequest {
|
|
281
|
+
/** The name of the inbox item to get. */
|
|
282
|
+
name: string;
|
|
283
|
+
}
|
|
284
|
+
/** The request of GetMessage. */
|
|
285
|
+
export interface GetMessageRequest {
|
|
286
|
+
/** The name of the message to get. */
|
|
287
|
+
name: string;
|
|
288
|
+
}
|
|
289
|
+
/** The request of GetPreference. */
|
|
290
|
+
export interface GetPreferenceRequest {
|
|
291
|
+
/** The name of the preference to get. */
|
|
292
|
+
name: string;
|
|
293
|
+
}
|
|
294
|
+
/** The request of GetRecipient. */
|
|
295
|
+
export interface GetRecipientRequest {
|
|
296
|
+
/** The name of the recipient to get. */
|
|
297
|
+
name: string;
|
|
298
|
+
}
|
|
299
|
+
/** The request of GetSender. */
|
|
300
|
+
export interface GetSenderRequest {
|
|
301
|
+
/** The name of the sender to get. */
|
|
302
|
+
name: string;
|
|
303
|
+
}
|
|
304
|
+
/** The request of GetSendingDomain. */
|
|
305
|
+
export interface GetSendingDomainRequest {
|
|
306
|
+
/** The name of the sending domain to get. */
|
|
307
|
+
name: string;
|
|
308
|
+
}
|
|
309
|
+
/** The request of GetSuppression. */
|
|
310
|
+
export interface GetSuppressionRequest {
|
|
311
|
+
/** The name of the suppression to get. */
|
|
312
|
+
name: string;
|
|
313
|
+
}
|
|
314
|
+
/** The request of GetTemplate. */
|
|
315
|
+
export interface GetTemplateRequest {
|
|
316
|
+
/** The name of the template to get. */
|
|
317
|
+
name: string;
|
|
318
|
+
}
|
|
319
|
+
/** In-app inbox content. */
|
|
320
|
+
export interface InboxContent {
|
|
321
|
+
/** The title. */
|
|
322
|
+
title?: string;
|
|
323
|
+
/** The body. */
|
|
324
|
+
body?: string;
|
|
325
|
+
/** Where the item links. */
|
|
326
|
+
actionUri?: string;
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* An Inbox Item is one entry of a recipient's in-app feed. Clients receive it
|
|
330
|
+
* live over an Events Realtime Channel and page it here.
|
|
331
|
+
*/
|
|
332
|
+
export interface InboxItem {
|
|
333
|
+
/** `orgs/{org}/projects/{project}/envs/{env}/recipients/{recipient}/inbox_items/{inbox_item}`. */
|
|
334
|
+
name?: string;
|
|
335
|
+
/** `ibx_<cell><ulid>`; never reused. */
|
|
336
|
+
readonly uid?: string;
|
|
337
|
+
/** Resource metadata. */
|
|
338
|
+
meta?: common.ResourceMeta;
|
|
339
|
+
/** The Message that produced it. */
|
|
340
|
+
readonly message?: string;
|
|
341
|
+
/** The rendered title. */
|
|
342
|
+
readonly title?: string;
|
|
343
|
+
/** The rendered body. */
|
|
344
|
+
readonly body?: string;
|
|
345
|
+
/** Where the item links. */
|
|
346
|
+
readonly actionUri?: string;
|
|
347
|
+
/** Read, unread, or archived. */
|
|
348
|
+
readonly state?: InboxItemState;
|
|
349
|
+
}
|
|
350
|
+
/** The request of ListBroadcasts. */
|
|
351
|
+
export interface ListBroadcastsRequest {
|
|
352
|
+
/** The parent to list in. */
|
|
353
|
+
parent: string;
|
|
354
|
+
/** At most this many; default 50, clamped to 1000. */
|
|
355
|
+
pageSize?: number;
|
|
356
|
+
/** `next_page_token` of the previous page. */
|
|
357
|
+
pageToken?: string;
|
|
358
|
+
/** AIP-160 filter over labels and filterable fields. */
|
|
359
|
+
filter?: string;
|
|
360
|
+
/** AIP-132 ordering over filterable fields. */
|
|
361
|
+
orderBy?: string;
|
|
362
|
+
}
|
|
363
|
+
/** The response of ListBroadcasts. */
|
|
364
|
+
export interface ListBroadcastsResponse {
|
|
365
|
+
/** The page. */
|
|
366
|
+
broadcasts?: Broadcast[];
|
|
367
|
+
/** The token of the next page; empty on the last page. */
|
|
368
|
+
nextPageToken?: string;
|
|
369
|
+
}
|
|
370
|
+
/** The request of ListInboxItems. */
|
|
371
|
+
export interface ListInboxItemsRequest {
|
|
372
|
+
/** The parent to list in. */
|
|
373
|
+
parent: string;
|
|
374
|
+
/** At most this many; default 50, clamped to 1000. */
|
|
375
|
+
pageSize?: number;
|
|
376
|
+
/** `next_page_token` of the previous page. */
|
|
377
|
+
pageToken?: string;
|
|
378
|
+
/** AIP-160 filter over labels and filterable fields. */
|
|
379
|
+
filter?: string;
|
|
380
|
+
/** AIP-132 ordering over filterable fields. */
|
|
381
|
+
orderBy?: string;
|
|
382
|
+
}
|
|
383
|
+
/** The response of ListInboxItems. */
|
|
384
|
+
export interface ListInboxItemsResponse {
|
|
385
|
+
/** The page. */
|
|
386
|
+
inboxItems?: InboxItem[];
|
|
387
|
+
/** The token of the next page; empty on the last page. */
|
|
388
|
+
nextPageToken?: string;
|
|
389
|
+
}
|
|
390
|
+
/** The request of ListMessages. */
|
|
391
|
+
export interface ListMessagesRequest {
|
|
392
|
+
/** The parent to list in. */
|
|
393
|
+
parent: string;
|
|
394
|
+
/** At most this many; default 50, clamped to 1000. */
|
|
395
|
+
pageSize?: number;
|
|
396
|
+
/** `next_page_token` of the previous page. */
|
|
397
|
+
pageToken?: string;
|
|
398
|
+
/** AIP-160 filter over labels and filterable fields. */
|
|
399
|
+
filter?: string;
|
|
400
|
+
/** AIP-132 ordering over filterable fields. */
|
|
401
|
+
orderBy?: string;
|
|
402
|
+
}
|
|
403
|
+
/** The response of ListMessages. */
|
|
404
|
+
export interface ListMessagesResponse {
|
|
405
|
+
/** The page. */
|
|
406
|
+
messages?: Message[];
|
|
407
|
+
/** The token of the next page; empty on the last page. */
|
|
408
|
+
nextPageToken?: string;
|
|
409
|
+
}
|
|
410
|
+
/** The request of ListPreferences. */
|
|
411
|
+
export interface ListPreferencesRequest {
|
|
412
|
+
/** The parent to list in. */
|
|
413
|
+
parent: string;
|
|
414
|
+
/** At most this many; default 50, clamped to 1000. */
|
|
415
|
+
pageSize?: number;
|
|
416
|
+
/** `next_page_token` of the previous page. */
|
|
417
|
+
pageToken?: string;
|
|
418
|
+
/** AIP-160 filter over labels and filterable fields. */
|
|
419
|
+
filter?: string;
|
|
420
|
+
/** AIP-132 ordering over filterable fields. */
|
|
421
|
+
orderBy?: string;
|
|
422
|
+
}
|
|
423
|
+
/** The response of ListPreferences. */
|
|
424
|
+
export interface ListPreferencesResponse {
|
|
425
|
+
/** The page. */
|
|
426
|
+
preferences?: Preference[];
|
|
427
|
+
/** The token of the next page; empty on the last page. */
|
|
428
|
+
nextPageToken?: string;
|
|
429
|
+
}
|
|
430
|
+
/** The request of ListRecipients. */
|
|
431
|
+
export interface ListRecipientsRequest {
|
|
432
|
+
/** The parent to list in. */
|
|
433
|
+
parent: string;
|
|
434
|
+
/** At most this many; default 50, clamped to 1000. */
|
|
435
|
+
pageSize?: number;
|
|
436
|
+
/** `next_page_token` of the previous page. */
|
|
437
|
+
pageToken?: string;
|
|
438
|
+
/** AIP-160 filter over labels and filterable fields. */
|
|
439
|
+
filter?: string;
|
|
440
|
+
/** AIP-132 ordering over filterable fields. */
|
|
441
|
+
orderBy?: string;
|
|
442
|
+
}
|
|
443
|
+
/** The response of ListRecipients. */
|
|
444
|
+
export interface ListRecipientsResponse {
|
|
445
|
+
/** The page. */
|
|
446
|
+
recipients?: Recipient[];
|
|
447
|
+
/** The token of the next page; empty on the last page. */
|
|
448
|
+
nextPageToken?: string;
|
|
449
|
+
}
|
|
450
|
+
/** The request of ListSenders. */
|
|
451
|
+
export interface ListSendersRequest {
|
|
452
|
+
/** The parent to list in. */
|
|
453
|
+
parent: string;
|
|
454
|
+
/** At most this many; default 50, clamped to 1000. */
|
|
455
|
+
pageSize?: number;
|
|
456
|
+
/** `next_page_token` of the previous page. */
|
|
457
|
+
pageToken?: string;
|
|
458
|
+
/** AIP-160 filter over labels and filterable fields. */
|
|
459
|
+
filter?: string;
|
|
460
|
+
/** AIP-132 ordering over filterable fields. */
|
|
461
|
+
orderBy?: string;
|
|
462
|
+
}
|
|
463
|
+
/** The response of ListSenders. */
|
|
464
|
+
export interface ListSendersResponse {
|
|
465
|
+
/** The page. */
|
|
466
|
+
senders?: Sender[];
|
|
467
|
+
/** The token of the next page; empty on the last page. */
|
|
468
|
+
nextPageToken?: string;
|
|
469
|
+
}
|
|
470
|
+
/** The request of ListSendingDomains. */
|
|
471
|
+
export interface ListSendingDomainsRequest {
|
|
472
|
+
/** The parent to list in. */
|
|
473
|
+
parent: string;
|
|
474
|
+
/** At most this many; default 50, clamped to 1000. */
|
|
475
|
+
pageSize?: number;
|
|
476
|
+
/** `next_page_token` of the previous page. */
|
|
477
|
+
pageToken?: string;
|
|
478
|
+
/** AIP-160 filter over labels and filterable fields. */
|
|
479
|
+
filter?: string;
|
|
480
|
+
/** AIP-132 ordering over filterable fields. */
|
|
481
|
+
orderBy?: string;
|
|
482
|
+
}
|
|
483
|
+
/** The response of ListSendingDomains. */
|
|
484
|
+
export interface ListSendingDomainsResponse {
|
|
485
|
+
/** The page. */
|
|
486
|
+
sendingDomains?: SendingDomain[];
|
|
487
|
+
/** The token of the next page; empty on the last page. */
|
|
488
|
+
nextPageToken?: string;
|
|
489
|
+
}
|
|
490
|
+
/** The request of ListSuppressions. */
|
|
491
|
+
export interface ListSuppressionsRequest {
|
|
492
|
+
/** The parent to list in. */
|
|
493
|
+
parent: string;
|
|
494
|
+
/** At most this many; default 50, clamped to 1000. */
|
|
495
|
+
pageSize?: number;
|
|
496
|
+
/** `next_page_token` of the previous page. */
|
|
497
|
+
pageToken?: string;
|
|
498
|
+
/** AIP-160 filter over labels and filterable fields. */
|
|
499
|
+
filter?: string;
|
|
500
|
+
/** AIP-132 ordering over filterable fields. */
|
|
501
|
+
orderBy?: string;
|
|
502
|
+
}
|
|
503
|
+
/** The response of ListSuppressions. */
|
|
504
|
+
export interface ListSuppressionsResponse {
|
|
505
|
+
/** The page. */
|
|
506
|
+
suppressions?: Suppression[];
|
|
507
|
+
/** The token of the next page; empty on the last page. */
|
|
508
|
+
nextPageToken?: string;
|
|
509
|
+
}
|
|
510
|
+
/** The request of ListTemplates. */
|
|
511
|
+
export interface ListTemplatesRequest {
|
|
512
|
+
/** The parent to list in. */
|
|
513
|
+
parent: string;
|
|
514
|
+
/** At most this many; default 50, clamped to 1000. */
|
|
515
|
+
pageSize?: number;
|
|
516
|
+
/** `next_page_token` of the previous page. */
|
|
517
|
+
pageToken?: string;
|
|
518
|
+
/** AIP-160 filter over labels and filterable fields. */
|
|
519
|
+
filter?: string;
|
|
520
|
+
/** AIP-132 ordering over filterable fields. */
|
|
521
|
+
orderBy?: string;
|
|
522
|
+
}
|
|
523
|
+
/** The response of ListTemplates. */
|
|
524
|
+
export interface ListTemplatesResponse {
|
|
525
|
+
/** The page. */
|
|
526
|
+
templates?: Template[];
|
|
527
|
+
/** The token of the next page; empty on the last page. */
|
|
528
|
+
nextPageToken?: string;
|
|
529
|
+
}
|
|
530
|
+
/** The request of MarkInboxItemRead. */
|
|
531
|
+
export interface MarkInboxItemReadRequest {
|
|
532
|
+
/** The name of the inbox item. */
|
|
533
|
+
name: string;
|
|
534
|
+
}
|
|
535
|
+
/** The request of MarkInboxItemUnread. */
|
|
536
|
+
export interface MarkInboxItemUnreadRequest {
|
|
537
|
+
/** The name of the inbox item. */
|
|
538
|
+
name: string;
|
|
539
|
+
}
|
|
540
|
+
/**
|
|
541
|
+
* A Message is one notification to one recipient on one topic. Notify admits
|
|
542
|
+
* it idempotently, checks suppression and preferences, and fans it out to the
|
|
543
|
+
* allowed channels with fallback and digesting; every delivery closes with a
|
|
544
|
+
* provider receipt that only Notify writes.
|
|
545
|
+
*/
|
|
546
|
+
export interface Message {
|
|
547
|
+
/** `orgs/{org}/projects/{project}/envs/{env}/messages/{message}`. */
|
|
548
|
+
name?: string;
|
|
549
|
+
/** `msg_<cell><ulid>`; never reused. */
|
|
550
|
+
readonly uid?: string;
|
|
551
|
+
/** Resource metadata. */
|
|
552
|
+
meta?: common.ResourceMeta;
|
|
553
|
+
/** The recipient. */
|
|
554
|
+
recipient?: string;
|
|
555
|
+
/** The topic preferences are checked against, for example `billing`. */
|
|
556
|
+
topic?: string;
|
|
557
|
+
/** The template to render. */
|
|
558
|
+
template?: string;
|
|
559
|
+
/** The template version rendered; pinned at admission. */
|
|
560
|
+
readonly templateVersion?: string;
|
|
561
|
+
/** Template variables. */
|
|
562
|
+
data?: Record<string, unknown>;
|
|
563
|
+
/**
|
|
564
|
+
* Restrict to these channels, in fallback order; empty uses the recipient's
|
|
565
|
+
* preferences.
|
|
566
|
+
*/
|
|
567
|
+
channels?: Channel[];
|
|
568
|
+
/** Send no earlier than this. */
|
|
569
|
+
sendTime?: string;
|
|
570
|
+
/** The broadcast that created it, if any. */
|
|
571
|
+
readonly broadcast?: string;
|
|
572
|
+
/** The admission and delivery state. */
|
|
573
|
+
readonly state?: MessageState;
|
|
574
|
+
/** Per-channel deliveries and their receipts. */
|
|
575
|
+
readonly deliveries?: ChannelDelivery[];
|
|
576
|
+
}
|
|
577
|
+
/**
|
|
578
|
+
* A Preference is a recipient's choice for one topic: which channels may carry
|
|
579
|
+
* it. Admission honors it, and unsubscribe links write it. The id is the
|
|
580
|
+
* topic.
|
|
581
|
+
*/
|
|
582
|
+
export interface Preference {
|
|
583
|
+
/** `orgs/{org}/projects/{project}/envs/{env}/recipients/{recipient}/preferences/{preference}`. */
|
|
584
|
+
name?: string;
|
|
585
|
+
/** `prf_<cell><ulid>`; never reused. */
|
|
586
|
+
readonly uid?: string;
|
|
587
|
+
/** Resource metadata. */
|
|
588
|
+
meta?: common.ResourceMeta;
|
|
589
|
+
/** Channels the topic may use; empty mutes the topic. */
|
|
590
|
+
channels?: Channel[];
|
|
591
|
+
/**
|
|
592
|
+
* Batch this topic into a digest at most this often; unset sends each
|
|
593
|
+
* message.
|
|
594
|
+
*/
|
|
595
|
+
digestInterval?: string;
|
|
596
|
+
}
|
|
597
|
+
/** Push content. */
|
|
598
|
+
export interface PushContent {
|
|
599
|
+
/** The title. */
|
|
600
|
+
title?: string;
|
|
601
|
+
/** The body. */
|
|
602
|
+
body?: string;
|
|
603
|
+
/** Data delivered with the notification. */
|
|
604
|
+
data?: Record<string, unknown>;
|
|
605
|
+
}
|
|
606
|
+
/** A push device of a recipient. */
|
|
607
|
+
export interface PushDevice {
|
|
608
|
+
/** The platform. */
|
|
609
|
+
platform?: PushPlatform;
|
|
610
|
+
/** The device token; write-only. */
|
|
611
|
+
deviceToken?: string;
|
|
612
|
+
/** The last four characters of the token, for display. */
|
|
613
|
+
readonly tokenLast4?: string;
|
|
614
|
+
/** The push Sender the token belongs to. */
|
|
615
|
+
sender?: string;
|
|
616
|
+
}
|
|
617
|
+
/** A push app. */
|
|
618
|
+
export interface PushSender {
|
|
619
|
+
/** The push platform. */
|
|
620
|
+
platform?: PushPlatform;
|
|
621
|
+
/** The Kernel Connection holding the APNs, FCM, or VAPID credentials. */
|
|
622
|
+
connection?: string;
|
|
623
|
+
/** The bundle id, package name, or web origin. */
|
|
624
|
+
appKey?: string;
|
|
625
|
+
}
|
|
626
|
+
/**
|
|
627
|
+
* A Recipient is one of a customer's users, across channels: email addresses,
|
|
628
|
+
* phone numbers, and device tokens. Dead device tokens are pruned from
|
|
629
|
+
* provider feedback.
|
|
630
|
+
*/
|
|
631
|
+
export interface Recipient {
|
|
632
|
+
/** `orgs/{org}/projects/{project}/envs/{env}/recipients/{recipient}`. */
|
|
633
|
+
name?: string;
|
|
634
|
+
/** `rcp_<cell><ulid>`; never reused. */
|
|
635
|
+
readonly uid?: string;
|
|
636
|
+
/** Resource metadata. */
|
|
637
|
+
meta?: common.ResourceMeta;
|
|
638
|
+
/** The customer's own id for this user, for example an Auth end user name. */
|
|
639
|
+
externalKey?: string;
|
|
640
|
+
/** Email addresses, first is preferred. */
|
|
641
|
+
emailAddresses?: string[];
|
|
642
|
+
/** E.164 phone numbers, first is preferred. */
|
|
643
|
+
phoneNumbers?: string[];
|
|
644
|
+
/** Push devices. */
|
|
645
|
+
devices?: PushDevice[];
|
|
646
|
+
/** BCP 47 language for templates; default the environment's. */
|
|
647
|
+
languageCode?: string;
|
|
648
|
+
/** IANA time zone for quiet hours and digests. */
|
|
649
|
+
timeZone?: string;
|
|
650
|
+
}
|
|
651
|
+
/** The request of SendBroadcast. */
|
|
652
|
+
export interface SendBroadcastRequest {
|
|
653
|
+
/** The name of the broadcast. */
|
|
654
|
+
name: string;
|
|
655
|
+
/** Act only if the current etag matches. */
|
|
656
|
+
etag?: string;
|
|
657
|
+
/** Validate without writing anything. */
|
|
658
|
+
validateOnly?: boolean;
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* A Sender is a verified origin for SMS or push: a registered number or sender
|
|
662
|
+
* id, or a push app whose APNs/FCM credentials are a Kernel Connection reached
|
|
663
|
+
* through the Broker. It is used only once verified.
|
|
664
|
+
*/
|
|
665
|
+
export interface Sender {
|
|
666
|
+
/** `orgs/{org}/projects/{project}/envs/{env}/senders/{sender}`. */
|
|
667
|
+
name?: string;
|
|
668
|
+
/** `snd_<cell><ulid>`; never reused. */
|
|
669
|
+
readonly uid?: string;
|
|
670
|
+
/** Resource metadata. */
|
|
671
|
+
meta?: common.ResourceMeta;
|
|
672
|
+
/** Desired state. */
|
|
673
|
+
spec?: SenderSpec;
|
|
674
|
+
/** Observed state. */
|
|
675
|
+
readonly status?: SenderStatus;
|
|
676
|
+
}
|
|
677
|
+
/** SenderSpec is the caller-writable state of a Sender. */
|
|
678
|
+
export interface SenderSpec {
|
|
679
|
+
/** An SMS number or alphanumeric sender id. */
|
|
680
|
+
sms?: SmsSender;
|
|
681
|
+
/** A mobile or web push app. */
|
|
682
|
+
push?: PushSender;
|
|
683
|
+
}
|
|
684
|
+
/** SenderStatus is the observed state of a Sender. */
|
|
685
|
+
export interface SenderStatus {
|
|
686
|
+
/** The generation this status was computed from. */
|
|
687
|
+
readonly observedGeneration?: string;
|
|
688
|
+
/** Ready, Reconciling, Stalled. */
|
|
689
|
+
readonly conditions?: common.Condition[];
|
|
690
|
+
/** Whether the sender is registered and usable. */
|
|
691
|
+
readonly verified?: boolean;
|
|
692
|
+
/** Why the sender is not verified, when it is not. */
|
|
693
|
+
readonly verificationNote?: string;
|
|
694
|
+
}
|
|
695
|
+
/**
|
|
696
|
+
* A Sending Domain is an email domain Notify sends from. It sends only after
|
|
697
|
+
* its DNS records verify; every email is DKIM-signed with the domain's
|
|
698
|
+
* non-exportable Kernel Key, rotated with overlap. No key material is ever
|
|
699
|
+
* returned.
|
|
700
|
+
*/
|
|
701
|
+
export interface SendingDomain {
|
|
702
|
+
/** `orgs/{org}/projects/{project}/envs/{env}/sending_domains/{sending_domain}`. */
|
|
703
|
+
name?: string;
|
|
704
|
+
/** `sdm_<cell><ulid>`; never reused. */
|
|
705
|
+
readonly uid?: string;
|
|
706
|
+
/** Resource metadata. */
|
|
707
|
+
meta?: common.ResourceMeta;
|
|
708
|
+
/** Desired state. */
|
|
709
|
+
spec?: SendingDomainSpec;
|
|
710
|
+
/** Observed state. */
|
|
711
|
+
readonly status?: SendingDomainStatus;
|
|
712
|
+
}
|
|
713
|
+
/** SendingDomainSpec is the caller-writable state of a SendingDomain. */
|
|
714
|
+
export interface SendingDomainSpec {
|
|
715
|
+
/** The domain, for example `mail.example.com`. */
|
|
716
|
+
domain?: string;
|
|
717
|
+
/** The return-path (bounce) subdomain label; default `bounces`. */
|
|
718
|
+
returnPathLabel?: string;
|
|
719
|
+
}
|
|
720
|
+
/** SendingDomainStatus is the observed state of a SendingDomain. */
|
|
721
|
+
export interface SendingDomainStatus {
|
|
722
|
+
/** The generation this status was computed from. */
|
|
723
|
+
readonly observedGeneration?: string;
|
|
724
|
+
/** Ready, Reconciling, Stalled. */
|
|
725
|
+
readonly conditions?: common.Condition[];
|
|
726
|
+
/** Whether every required record verified; only a verified domain sends. */
|
|
727
|
+
readonly verified?: boolean;
|
|
728
|
+
/** When the records last verified. */
|
|
729
|
+
readonly verifyTime?: string;
|
|
730
|
+
/** The records to publish: DKIM, SPF, return path, DMARC. */
|
|
731
|
+
readonly dnsRecords?: DnsRecord[];
|
|
732
|
+
/** The DKIM selector in use. */
|
|
733
|
+
readonly dkimSelector?: string;
|
|
734
|
+
}
|
|
735
|
+
/** SMS content. */
|
|
736
|
+
export interface SmsContent {
|
|
737
|
+
/** The SMS Sender. */
|
|
738
|
+
sender?: string;
|
|
739
|
+
/** The body. */
|
|
740
|
+
body?: string;
|
|
741
|
+
}
|
|
742
|
+
/** An SMS origin. */
|
|
743
|
+
export interface SmsSender {
|
|
744
|
+
/** An E.164 number. */
|
|
745
|
+
phoneNumber?: string;
|
|
746
|
+
/** An alphanumeric sender id, where the region allows one. */
|
|
747
|
+
senderKey?: string;
|
|
748
|
+
/** CLDR region codes the origin is registered for. */
|
|
749
|
+
regionCodes?: string[];
|
|
750
|
+
}
|
|
751
|
+
/**
|
|
752
|
+
* A Suppression stops delivery to one address on one channel. Bounces,
|
|
753
|
+
* complaints, carrier opt-outs, uninstalled devices, and unsubscribes write
|
|
754
|
+
* it; admission checks it before accepting a message.
|
|
755
|
+
*/
|
|
756
|
+
export interface Suppression {
|
|
757
|
+
/** `orgs/{org}/projects/{project}/envs/{env}/suppressions/{suppression}`. */
|
|
758
|
+
name?: string;
|
|
759
|
+
/** `sup_<cell><ulid>`; never reused. */
|
|
760
|
+
readonly uid?: string;
|
|
761
|
+
/** Resource metadata. */
|
|
762
|
+
meta?: common.ResourceMeta;
|
|
763
|
+
/** The channel. */
|
|
764
|
+
channel?: Channel;
|
|
765
|
+
/** The suppressed address, number, or device token. */
|
|
766
|
+
address?: string;
|
|
767
|
+
/** Why. */
|
|
768
|
+
reason?: SuppressionReason;
|
|
769
|
+
/** Limit the suppression to one topic; unset suppresses every topic. */
|
|
770
|
+
topic?: string;
|
|
771
|
+
/** The message whose feedback wrote it. */
|
|
772
|
+
readonly sourceMessage?: string;
|
|
773
|
+
}
|
|
774
|
+
/**
|
|
775
|
+
* A Template is versioned content per channel. Every spec change is a new
|
|
776
|
+
* version; a message renders from the version it pinned at admission.
|
|
777
|
+
*/
|
|
778
|
+
export interface Template {
|
|
779
|
+
/** `orgs/{org}/projects/{project}/envs/{env}/templates/{template}`. */
|
|
780
|
+
name?: string;
|
|
781
|
+
/** `tpl_<cell><ulid>`; never reused. */
|
|
782
|
+
readonly uid?: string;
|
|
783
|
+
/** Resource metadata. */
|
|
784
|
+
meta?: common.ResourceMeta;
|
|
785
|
+
/** Desired state. */
|
|
786
|
+
spec?: TemplateSpec;
|
|
787
|
+
/** Observed state. */
|
|
788
|
+
readonly status?: TemplateStatus;
|
|
789
|
+
}
|
|
790
|
+
/** TemplateSpec is the caller-writable state of a Template. */
|
|
791
|
+
export interface TemplateSpec {
|
|
792
|
+
/** Email content. */
|
|
793
|
+
email?: EmailContent;
|
|
794
|
+
/** SMS content. */
|
|
795
|
+
sms?: SmsContent;
|
|
796
|
+
/** Push content. */
|
|
797
|
+
push?: PushContent;
|
|
798
|
+
/** In-app inbox content. */
|
|
799
|
+
inbox?: InboxContent;
|
|
800
|
+
}
|
|
801
|
+
/** TemplateStatus is the observed state of a Template. */
|
|
802
|
+
export interface TemplateStatus {
|
|
803
|
+
/** The generation this status was computed from. */
|
|
804
|
+
readonly observedGeneration?: string;
|
|
805
|
+
/** Ready, Reconciling, Stalled. */
|
|
806
|
+
readonly conditions?: common.Condition[];
|
|
807
|
+
/** The version the current spec is; messages pin it. */
|
|
808
|
+
readonly version?: string;
|
|
809
|
+
}
|
|
810
|
+
/** The request of UpdateBroadcast. */
|
|
811
|
+
export interface UpdateBroadcastRequest {
|
|
812
|
+
/** The broadcast to update; `name` identifies it. */
|
|
813
|
+
broadcast: Broadcast;
|
|
814
|
+
/** The fields to write; unset writes every populated field. */
|
|
815
|
+
updateMask?: string;
|
|
816
|
+
/** Create the broadcast when it does not exist (declarative upsert). */
|
|
817
|
+
allowMissing?: boolean;
|
|
818
|
+
/** Validate and return the result without writing anything. */
|
|
819
|
+
validateOnly?: boolean;
|
|
820
|
+
}
|
|
821
|
+
/** The request of UpdatePreference. */
|
|
822
|
+
export interface UpdatePreferenceRequest {
|
|
823
|
+
/** The preference to update; `name` identifies it. */
|
|
824
|
+
preference: Preference;
|
|
825
|
+
/** The fields to write; unset writes every populated field. */
|
|
826
|
+
updateMask?: string;
|
|
827
|
+
/** Create the preference when it does not exist (declarative upsert). */
|
|
828
|
+
allowMissing?: boolean;
|
|
829
|
+
/** Validate and return the result without writing anything. */
|
|
830
|
+
validateOnly?: boolean;
|
|
831
|
+
}
|
|
832
|
+
/** The request of UpdateRecipient. */
|
|
833
|
+
export interface UpdateRecipientRequest {
|
|
834
|
+
/** The recipient to update; `name` identifies it. */
|
|
835
|
+
recipient: Recipient;
|
|
836
|
+
/** The fields to write; unset writes every populated field. */
|
|
837
|
+
updateMask?: string;
|
|
838
|
+
/** Create the recipient when it does not exist (declarative upsert). */
|
|
839
|
+
allowMissing?: boolean;
|
|
840
|
+
/** Validate and return the result without writing anything. */
|
|
841
|
+
validateOnly?: boolean;
|
|
842
|
+
}
|
|
843
|
+
/** The request of UpdateSender. */
|
|
844
|
+
export interface UpdateSenderRequest {
|
|
845
|
+
/** The sender to update; `name` identifies it. */
|
|
846
|
+
sender: Sender;
|
|
847
|
+
/** The fields to write; unset writes every populated field. */
|
|
848
|
+
updateMask?: string;
|
|
849
|
+
/** Create the sender when it does not exist (declarative upsert). */
|
|
850
|
+
allowMissing?: boolean;
|
|
851
|
+
/** Validate and return the result without writing anything. */
|
|
852
|
+
validateOnly?: boolean;
|
|
853
|
+
}
|
|
854
|
+
/** The request of UpdateSendingDomain. */
|
|
855
|
+
export interface UpdateSendingDomainRequest {
|
|
856
|
+
/** The sending domain to update; `name` identifies it. */
|
|
857
|
+
sendingDomain: SendingDomain;
|
|
858
|
+
/** The fields to write; unset writes every populated field. */
|
|
859
|
+
updateMask?: string;
|
|
860
|
+
/** Create the sending domain when it does not exist (declarative upsert). */
|
|
861
|
+
allowMissing?: boolean;
|
|
862
|
+
/** Validate and return the result without writing anything. */
|
|
863
|
+
validateOnly?: boolean;
|
|
864
|
+
}
|
|
865
|
+
/** The request of UpdateTemplate. */
|
|
866
|
+
export interface UpdateTemplateRequest {
|
|
867
|
+
/** The template to update; `name` identifies it. */
|
|
868
|
+
template: Template;
|
|
869
|
+
/** The fields to write; unset writes every populated field. */
|
|
870
|
+
updateMask?: string;
|
|
871
|
+
/** Create the template when it does not exist (declarative upsert). */
|
|
872
|
+
allowMissing?: boolean;
|
|
873
|
+
/** Validate and return the result without writing anything. */
|
|
874
|
+
validateOnly?: boolean;
|
|
875
|
+
}
|
|
876
|
+
/** The request of VerifySender. */
|
|
877
|
+
export interface VerifySenderRequest {
|
|
878
|
+
/** The name of the sender. */
|
|
879
|
+
name: string;
|
|
880
|
+
}
|
|
881
|
+
/** The request of VerifySendingDomain. */
|
|
882
|
+
export interface VerifySendingDomainRequest {
|
|
883
|
+
/** The name of the sending domain. */
|
|
884
|
+
name: string;
|
|
885
|
+
}
|
|
886
|
+
/** The progress of a Broadcast. */
|
|
887
|
+
export type BroadcastState = 'draft' | 'scheduled' | 'sending' | 'sent' | 'cancelled' | (string & {});
|
|
888
|
+
/** A Notify channel. */
|
|
889
|
+
export type Channel = 'email' | 'sms' | 'push' | 'inbox' | (string & {});
|
|
890
|
+
/** The state of one channel delivery. */
|
|
891
|
+
export type ChannelDeliveryState = 'pending' | 'sent' | 'delivered' | 'bounced' | 'failed' | 'skipped' | (string & {});
|
|
892
|
+
/** The state of an inbox item. */
|
|
893
|
+
export type InboxItemState = 'unread' | 'read' | 'archived' | (string & {});
|
|
894
|
+
/** The state of a Message. */
|
|
895
|
+
export type MessageState = 'accepted' | 'suppressed' | 'delivering' | 'delivered' | 'failed' | 'cancelled' | (string & {});
|
|
896
|
+
/** A push platform. */
|
|
897
|
+
export type PushPlatform = 'apns' | 'fcm' | 'web_push' | (string & {});
|
|
898
|
+
/** Why an address is suppressed. */
|
|
899
|
+
export type SuppressionReason = 'bounce' | 'complaint' | 'carrier_opt_out' | 'unsubscribe' | 'uninstalled' | 'manual' | (string & {});
|
|
900
|
+
/**
|
|
901
|
+
* NotifyService is Sylphx Notify: messages to people over email, SMS, push,
|
|
902
|
+
* and in-app inbox, with preferences, suppression, templates, and broadcasts
|
|
903
|
+
* (docs/services/notify/vision.md). Notify is built on Sylphx Events as an
|
|
904
|
+
* ordinary customer.
|
|
905
|
+
*
|
|
906
|
+
* Namespace of Sylphx Notify on `Sylphx`.
|
|
907
|
+
*/
|
|
908
|
+
export declare class NotifyApi {
|
|
909
|
+
/** The `sending_domains` collection. */
|
|
910
|
+
readonly sendingDomains: SendingDomainsCollection;
|
|
911
|
+
/** The `senders` collection. */
|
|
912
|
+
readonly senders: SendersCollection;
|
|
913
|
+
/** The `recipients` collection. */
|
|
914
|
+
readonly recipients: RecipientsCollection;
|
|
915
|
+
/** The `preferences` collection. */
|
|
916
|
+
readonly preferences: PreferencesCollection;
|
|
917
|
+
/** The `suppressions` collection. */
|
|
918
|
+
readonly suppressions: SuppressionsCollection;
|
|
919
|
+
/** The `templates` collection. */
|
|
920
|
+
readonly templates: TemplatesCollection;
|
|
921
|
+
/** The `messages` collection. */
|
|
922
|
+
readonly messages: MessagesCollection;
|
|
923
|
+
/** The `inbox_items` collection. */
|
|
924
|
+
readonly inboxItems: InboxItemsCollection;
|
|
925
|
+
/** The `broadcasts` collection. */
|
|
926
|
+
readonly broadcasts: BroadcastsCollection;
|
|
927
|
+
constructor(client: runtime.Client);
|
|
928
|
+
}
|
|
929
|
+
/** `sending_domains` of Sylphx Notify: Resource type `notify.sylphx.com/SendingDomain`. */
|
|
930
|
+
export declare class SendingDomainsCollection {
|
|
931
|
+
private readonly client;
|
|
932
|
+
constructor(client: runtime.Client);
|
|
933
|
+
/**
|
|
934
|
+
* Gets a sending domain.
|
|
935
|
+
*
|
|
936
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/sending_domains/*}` · permission `notify:read` · effect `read`
|
|
937
|
+
*
|
|
938
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
939
|
+
*/
|
|
940
|
+
get(request: GetSendingDomainRequest): Promise<SendingDomain>;
|
|
941
|
+
/**
|
|
942
|
+
* Lists sending domains.
|
|
943
|
+
*
|
|
944
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/sending_domains` · permission `notify:read` · effect `read`
|
|
945
|
+
*
|
|
946
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
947
|
+
*/
|
|
948
|
+
list(request: ListSendingDomainsRequest): Promise<ListSendingDomainsResponse>;
|
|
949
|
+
/** Every item of every page of `list`. */
|
|
950
|
+
listAll(request: ListSendingDomainsRequest): AsyncGenerator<SendingDomain>;
|
|
951
|
+
/**
|
|
952
|
+
* Creates a sending domain.
|
|
953
|
+
*
|
|
954
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/sending_domains` · permission `notify:write` · effect `write`
|
|
955
|
+
*
|
|
956
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
|
|
957
|
+
*/
|
|
958
|
+
create(request: CreateSendingDomainRequest): Promise<SendingDomain>;
|
|
959
|
+
/**
|
|
960
|
+
* Updates a sending domain.
|
|
961
|
+
*
|
|
962
|
+
* `PATCH /v1/{sending_domain.name=orgs/*\/projects/*\/envs/*\/sending_domains/*}` · permission `notify:write` · effect `write`
|
|
963
|
+
*
|
|
964
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
965
|
+
*/
|
|
966
|
+
update(request: UpdateSendingDomainRequest): Promise<SendingDomain>;
|
|
967
|
+
/**
|
|
968
|
+
* Deletes a sending domain.
|
|
969
|
+
*
|
|
970
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/sending_domains/*}` · permission `notify:write` · effect `destructive`
|
|
971
|
+
*
|
|
972
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
973
|
+
*/
|
|
974
|
+
delete(request: DeleteSendingDomainRequest): Promise<Record<string, never>>;
|
|
975
|
+
/**
|
|
976
|
+
* Checks the domain's DNS records now instead of on the next sweep.
|
|
977
|
+
*
|
|
978
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/sending_domains/*}:verify` · permission `notify:write` · effect `write`
|
|
979
|
+
*
|
|
980
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `RATE_LIMITED`.
|
|
981
|
+
*/
|
|
982
|
+
verify(request: VerifySendingDomainRequest): Promise<SendingDomain>;
|
|
983
|
+
}
|
|
984
|
+
/** `senders` of Sylphx Notify: Resource type `notify.sylphx.com/Sender`. */
|
|
985
|
+
export declare class SendersCollection {
|
|
986
|
+
private readonly client;
|
|
987
|
+
constructor(client: runtime.Client);
|
|
988
|
+
/**
|
|
989
|
+
* Gets a sender.
|
|
990
|
+
*
|
|
991
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/senders/*}` · permission `notify:read` · effect `read`
|
|
992
|
+
*
|
|
993
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
994
|
+
*/
|
|
995
|
+
get(request: GetSenderRequest): Promise<Sender>;
|
|
996
|
+
/**
|
|
997
|
+
* Lists senders.
|
|
998
|
+
*
|
|
999
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/senders` · permission `notify:read` · effect `read`
|
|
1000
|
+
*
|
|
1001
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
1002
|
+
*/
|
|
1003
|
+
list(request: ListSendersRequest): Promise<ListSendersResponse>;
|
|
1004
|
+
/** Every item of every page of `list`. */
|
|
1005
|
+
listAll(request: ListSendersRequest): AsyncGenerator<Sender>;
|
|
1006
|
+
/**
|
|
1007
|
+
* Creates a sender.
|
|
1008
|
+
*
|
|
1009
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/senders` · permission `notify:write` · effect `write`
|
|
1010
|
+
*
|
|
1011
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
|
|
1012
|
+
*/
|
|
1013
|
+
create(request: CreateSenderRequest): Promise<Sender>;
|
|
1014
|
+
/**
|
|
1015
|
+
* Updates a sender.
|
|
1016
|
+
*
|
|
1017
|
+
* `PATCH /v1/{sender.name=orgs/*\/projects/*\/envs/*\/senders/*}` · permission `notify:write` · effect `write`
|
|
1018
|
+
*
|
|
1019
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1020
|
+
*/
|
|
1021
|
+
update(request: UpdateSenderRequest): Promise<Sender>;
|
|
1022
|
+
/**
|
|
1023
|
+
* Deletes a sender.
|
|
1024
|
+
*
|
|
1025
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/senders/*}` · permission `notify:write` · effect `destructive`
|
|
1026
|
+
*
|
|
1027
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1028
|
+
*/
|
|
1029
|
+
delete(request: DeleteSenderRequest): Promise<Record<string, never>>;
|
|
1030
|
+
/**
|
|
1031
|
+
* Re-checks the sender's registration or credentials now.
|
|
1032
|
+
*
|
|
1033
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/senders/*}:verify` · permission `notify:write` · effect `write`
|
|
1034
|
+
*
|
|
1035
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `RATE_LIMITED`.
|
|
1036
|
+
*/
|
|
1037
|
+
verify(request: VerifySenderRequest): Promise<Sender>;
|
|
1038
|
+
}
|
|
1039
|
+
/** `recipients` of Sylphx Notify: Resource type `notify.sylphx.com/Recipient`. */
|
|
1040
|
+
export declare class RecipientsCollection {
|
|
1041
|
+
private readonly client;
|
|
1042
|
+
constructor(client: runtime.Client);
|
|
1043
|
+
/**
|
|
1044
|
+
* Gets a recipient.
|
|
1045
|
+
*
|
|
1046
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/recipients/*}` · permission `notify:read` · effect `read`
|
|
1047
|
+
*
|
|
1048
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
1049
|
+
*/
|
|
1050
|
+
get(request: GetRecipientRequest): Promise<Recipient>;
|
|
1051
|
+
/**
|
|
1052
|
+
* Lists recipients.
|
|
1053
|
+
*
|
|
1054
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/recipients` · permission `notify:read` · effect `read`
|
|
1055
|
+
*
|
|
1056
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
1057
|
+
*/
|
|
1058
|
+
list(request: ListRecipientsRequest): Promise<ListRecipientsResponse>;
|
|
1059
|
+
/** Every item of every page of `list`. */
|
|
1060
|
+
listAll(request: ListRecipientsRequest): AsyncGenerator<Recipient>;
|
|
1061
|
+
/**
|
|
1062
|
+
* Creates a recipient.
|
|
1063
|
+
*
|
|
1064
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/recipients` · permission `notify:write` · effect `write`
|
|
1065
|
+
*
|
|
1066
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
|
|
1067
|
+
*/
|
|
1068
|
+
create(request: CreateRecipientRequest): Promise<Recipient>;
|
|
1069
|
+
/**
|
|
1070
|
+
* Updates a recipient.
|
|
1071
|
+
*
|
|
1072
|
+
* `PATCH /v1/{recipient.name=orgs/*\/projects/*\/envs/*\/recipients/*}` · permission `notify:write` · effect `write`
|
|
1073
|
+
*
|
|
1074
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1075
|
+
*/
|
|
1076
|
+
update(request: UpdateRecipientRequest): Promise<Recipient>;
|
|
1077
|
+
/**
|
|
1078
|
+
* Deletes a recipient.
|
|
1079
|
+
*
|
|
1080
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/recipients/*}` · permission `notify:write` · effect `destructive`
|
|
1081
|
+
*
|
|
1082
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1083
|
+
*/
|
|
1084
|
+
delete(request: DeleteRecipientRequest): Promise<Record<string, never>>;
|
|
1085
|
+
}
|
|
1086
|
+
/** `preferences` of Sylphx Notify: Resource type `notify.sylphx.com/Preference`. */
|
|
1087
|
+
export declare class PreferencesCollection {
|
|
1088
|
+
private readonly client;
|
|
1089
|
+
constructor(client: runtime.Client);
|
|
1090
|
+
/**
|
|
1091
|
+
* Gets a preference.
|
|
1092
|
+
*
|
|
1093
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/recipients/*\/preferences/*}` · permission `notify:read` · effect `read`
|
|
1094
|
+
*
|
|
1095
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
1096
|
+
*/
|
|
1097
|
+
get(request: GetPreferenceRequest): Promise<Preference>;
|
|
1098
|
+
/**
|
|
1099
|
+
* Lists preferences.
|
|
1100
|
+
*
|
|
1101
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/recipients/*}/preferences` · permission `notify:read` · effect `read`
|
|
1102
|
+
*
|
|
1103
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
1104
|
+
*/
|
|
1105
|
+
list(request: ListPreferencesRequest): Promise<ListPreferencesResponse>;
|
|
1106
|
+
/** Every item of every page of `list`. */
|
|
1107
|
+
listAll(request: ListPreferencesRequest): AsyncGenerator<Preference>;
|
|
1108
|
+
/**
|
|
1109
|
+
* Updates a preference.
|
|
1110
|
+
*
|
|
1111
|
+
* `PATCH /v1/{preference.name=orgs/*\/projects/*\/envs/*\/recipients/*\/preferences/*}` · permission `notify:write` · effect `write`
|
|
1112
|
+
*
|
|
1113
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1114
|
+
*/
|
|
1115
|
+
update(request: UpdatePreferenceRequest): Promise<Preference>;
|
|
1116
|
+
/**
|
|
1117
|
+
* Deletes a preference.
|
|
1118
|
+
*
|
|
1119
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/recipients/*\/preferences/*}` · permission `notify:write` · effect `destructive`
|
|
1120
|
+
*
|
|
1121
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1122
|
+
*/
|
|
1123
|
+
delete(request: DeletePreferenceRequest): Promise<Record<string, never>>;
|
|
1124
|
+
}
|
|
1125
|
+
/** `suppressions` of Sylphx Notify: Resource type `notify.sylphx.com/Suppression`. */
|
|
1126
|
+
export declare class SuppressionsCollection {
|
|
1127
|
+
private readonly client;
|
|
1128
|
+
constructor(client: runtime.Client);
|
|
1129
|
+
/**
|
|
1130
|
+
* Gets a suppression.
|
|
1131
|
+
*
|
|
1132
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/suppressions/*}` · permission `notify:read` · effect `read`
|
|
1133
|
+
*
|
|
1134
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
1135
|
+
*/
|
|
1136
|
+
get(request: GetSuppressionRequest): Promise<Suppression>;
|
|
1137
|
+
/**
|
|
1138
|
+
* Lists suppressions.
|
|
1139
|
+
*
|
|
1140
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/suppressions` · permission `notify:read` · effect `read`
|
|
1141
|
+
*
|
|
1142
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
1143
|
+
*/
|
|
1144
|
+
list(request: ListSuppressionsRequest): Promise<ListSuppressionsResponse>;
|
|
1145
|
+
/** Every item of every page of `list`. */
|
|
1146
|
+
listAll(request: ListSuppressionsRequest): AsyncGenerator<Suppression>;
|
|
1147
|
+
/**
|
|
1148
|
+
* Creates a suppression.
|
|
1149
|
+
*
|
|
1150
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/suppressions` · permission `notify:write` · effect `write`
|
|
1151
|
+
*
|
|
1152
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
|
|
1153
|
+
*/
|
|
1154
|
+
create(request: CreateSuppressionRequest): Promise<Suppression>;
|
|
1155
|
+
/**
|
|
1156
|
+
* Deletes a suppression.
|
|
1157
|
+
*
|
|
1158
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/suppressions/*}` · permission `notify:write` · effect `destructive`
|
|
1159
|
+
*
|
|
1160
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1161
|
+
*/
|
|
1162
|
+
delete(request: DeleteSuppressionRequest): Promise<Record<string, never>>;
|
|
1163
|
+
}
|
|
1164
|
+
/** `templates` of Sylphx Notify: Resource type `notify.sylphx.com/Template`. */
|
|
1165
|
+
export declare class TemplatesCollection {
|
|
1166
|
+
private readonly client;
|
|
1167
|
+
constructor(client: runtime.Client);
|
|
1168
|
+
/**
|
|
1169
|
+
* Gets a template.
|
|
1170
|
+
*
|
|
1171
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/templates/*}` · permission `notify:read` · effect `read`
|
|
1172
|
+
*
|
|
1173
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
1174
|
+
*/
|
|
1175
|
+
get(request: GetTemplateRequest): Promise<Template>;
|
|
1176
|
+
/**
|
|
1177
|
+
* Lists templates.
|
|
1178
|
+
*
|
|
1179
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/templates` · permission `notify:read` · effect `read`
|
|
1180
|
+
*
|
|
1181
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
1182
|
+
*/
|
|
1183
|
+
list(request: ListTemplatesRequest): Promise<ListTemplatesResponse>;
|
|
1184
|
+
/** Every item of every page of `list`. */
|
|
1185
|
+
listAll(request: ListTemplatesRequest): AsyncGenerator<Template>;
|
|
1186
|
+
/**
|
|
1187
|
+
* Creates a template.
|
|
1188
|
+
*
|
|
1189
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/templates` · permission `notify:write` · effect `write`
|
|
1190
|
+
*
|
|
1191
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
|
|
1192
|
+
*/
|
|
1193
|
+
create(request: CreateTemplateRequest): Promise<Template>;
|
|
1194
|
+
/**
|
|
1195
|
+
* Updates a template.
|
|
1196
|
+
*
|
|
1197
|
+
* `PATCH /v1/{template.name=orgs/*\/projects/*\/envs/*\/templates/*}` · permission `notify:write` · effect `write`
|
|
1198
|
+
*
|
|
1199
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1200
|
+
*/
|
|
1201
|
+
update(request: UpdateTemplateRequest): Promise<Template>;
|
|
1202
|
+
/**
|
|
1203
|
+
* Deletes a template.
|
|
1204
|
+
*
|
|
1205
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/templates/*}` · permission `notify:write` · effect `destructive`
|
|
1206
|
+
*
|
|
1207
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1208
|
+
*/
|
|
1209
|
+
delete(request: DeleteTemplateRequest): Promise<Record<string, never>>;
|
|
1210
|
+
}
|
|
1211
|
+
/** `messages` of Sylphx Notify: Resource type `notify.sylphx.com/Message`. */
|
|
1212
|
+
export declare class MessagesCollection {
|
|
1213
|
+
private readonly client;
|
|
1214
|
+
constructor(client: runtime.Client);
|
|
1215
|
+
/**
|
|
1216
|
+
* Gets a message.
|
|
1217
|
+
*
|
|
1218
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/messages/*}` · permission `notify:read` · effect `read`
|
|
1219
|
+
*
|
|
1220
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
1221
|
+
*/
|
|
1222
|
+
get(request: GetMessageRequest): Promise<Message>;
|
|
1223
|
+
/**
|
|
1224
|
+
* Lists messages.
|
|
1225
|
+
*
|
|
1226
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/messages` · permission `notify:read` · effect `read`
|
|
1227
|
+
*
|
|
1228
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
1229
|
+
*/
|
|
1230
|
+
list(request: ListMessagesRequest): Promise<ListMessagesResponse>;
|
|
1231
|
+
/** Every item of every page of `list`. */
|
|
1232
|
+
listAll(request: ListMessagesRequest): AsyncGenerator<Message>;
|
|
1233
|
+
/**
|
|
1234
|
+
* Sends a Message.
|
|
1235
|
+
*
|
|
1236
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/messages` · permission `notify:send` · effect `write`
|
|
1237
|
+
*
|
|
1238
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
|
|
1239
|
+
*/
|
|
1240
|
+
create(request: CreateMessageRequest): Promise<Message>;
|
|
1241
|
+
/**
|
|
1242
|
+
* Cancels a Message whose deliveries have not been handed off.
|
|
1243
|
+
*
|
|
1244
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/messages/*}:cancel` · permission `notify:send` · effect `destructive`
|
|
1245
|
+
*
|
|
1246
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1247
|
+
*/
|
|
1248
|
+
cancel(request: CancelMessageRequest): Promise<Message>;
|
|
1249
|
+
}
|
|
1250
|
+
/** `inbox_items` of Sylphx Notify: Resource type `notify.sylphx.com/InboxItem`. */
|
|
1251
|
+
export declare class InboxItemsCollection {
|
|
1252
|
+
private readonly client;
|
|
1253
|
+
constructor(client: runtime.Client);
|
|
1254
|
+
/**
|
|
1255
|
+
* Gets an inbox item.
|
|
1256
|
+
*
|
|
1257
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/recipients/*\/inbox_items/*}` · permission `notify:read` · effect `read`
|
|
1258
|
+
*
|
|
1259
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
1260
|
+
*/
|
|
1261
|
+
get(request: GetInboxItemRequest): Promise<InboxItem>;
|
|
1262
|
+
/**
|
|
1263
|
+
* Lists inbox items.
|
|
1264
|
+
*
|
|
1265
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/recipients/*}/inbox_items` · permission `notify:read` · effect `read`
|
|
1266
|
+
*
|
|
1267
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
1268
|
+
*/
|
|
1269
|
+
list(request: ListInboxItemsRequest): Promise<ListInboxItemsResponse>;
|
|
1270
|
+
/** Every item of every page of `list`. */
|
|
1271
|
+
listAll(request: ListInboxItemsRequest): AsyncGenerator<InboxItem>;
|
|
1272
|
+
/**
|
|
1273
|
+
* Marks an inbox item read.
|
|
1274
|
+
*
|
|
1275
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/recipients/*\/inbox_items/*}:markRead` · permission `notify:write` · effect `write`
|
|
1276
|
+
*
|
|
1277
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1278
|
+
*/
|
|
1279
|
+
markRead(request: MarkInboxItemReadRequest): Promise<InboxItem>;
|
|
1280
|
+
/**
|
|
1281
|
+
* Marks an inbox item unread.
|
|
1282
|
+
*
|
|
1283
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/recipients/*\/inbox_items/*}:markUnread` · permission `notify:write` · effect `write`
|
|
1284
|
+
*
|
|
1285
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1286
|
+
*/
|
|
1287
|
+
markUnread(request: MarkInboxItemUnreadRequest): Promise<InboxItem>;
|
|
1288
|
+
/**
|
|
1289
|
+
* Archives an inbox item.
|
|
1290
|
+
*
|
|
1291
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/recipients/*\/inbox_items/*}:archive` · permission `notify:write` · effect `write`
|
|
1292
|
+
*
|
|
1293
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1294
|
+
*/
|
|
1295
|
+
archive(request: ArchiveInboxItemRequest): Promise<InboxItem>;
|
|
1296
|
+
}
|
|
1297
|
+
/** `broadcasts` of Sylphx Notify: Resource type `notify.sylphx.com/Broadcast`. */
|
|
1298
|
+
export declare class BroadcastsCollection {
|
|
1299
|
+
private readonly client;
|
|
1300
|
+
constructor(client: runtime.Client);
|
|
1301
|
+
/**
|
|
1302
|
+
* Gets a broadcast.
|
|
1303
|
+
*
|
|
1304
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/broadcasts/*}` · permission `notify:read` · effect `read`
|
|
1305
|
+
*
|
|
1306
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
1307
|
+
*/
|
|
1308
|
+
get(request: GetBroadcastRequest): Promise<Broadcast>;
|
|
1309
|
+
/**
|
|
1310
|
+
* Lists broadcasts.
|
|
1311
|
+
*
|
|
1312
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/broadcasts` · permission `notify:read` · effect `read`
|
|
1313
|
+
*
|
|
1314
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
1315
|
+
*/
|
|
1316
|
+
list(request: ListBroadcastsRequest): Promise<ListBroadcastsResponse>;
|
|
1317
|
+
/** Every item of every page of `list`. */
|
|
1318
|
+
listAll(request: ListBroadcastsRequest): AsyncGenerator<Broadcast>;
|
|
1319
|
+
/**
|
|
1320
|
+
* Creates a broadcast.
|
|
1321
|
+
*
|
|
1322
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/broadcasts` · permission `notify:write` · effect `write`
|
|
1323
|
+
*
|
|
1324
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
|
|
1325
|
+
*/
|
|
1326
|
+
create(request: CreateBroadcastRequest): Promise<Broadcast>;
|
|
1327
|
+
/**
|
|
1328
|
+
* Updates a broadcast.
|
|
1329
|
+
*
|
|
1330
|
+
* `PATCH /v1/{broadcast.name=orgs/*\/projects/*\/envs/*\/broadcasts/*}` · permission `notify:write` · effect `write`
|
|
1331
|
+
*
|
|
1332
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1333
|
+
*/
|
|
1334
|
+
update(request: UpdateBroadcastRequest): Promise<Broadcast>;
|
|
1335
|
+
/**
|
|
1336
|
+
* Deletes a broadcast.
|
|
1337
|
+
*
|
|
1338
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/broadcasts/*}` · permission `notify:write` · effect `destructive`
|
|
1339
|
+
*
|
|
1340
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1341
|
+
*/
|
|
1342
|
+
delete(request: DeleteBroadcastRequest): Promise<Record<string, never>>;
|
|
1343
|
+
/**
|
|
1344
|
+
* Sends a Broadcast now.
|
|
1345
|
+
*
|
|
1346
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/broadcasts/*}:send` · permission `notify:send` · effect `write`
|
|
1347
|
+
*
|
|
1348
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `ETAG_MISMATCH`.
|
|
1349
|
+
*/
|
|
1350
|
+
send(request: SendBroadcastRequest): Promise<Broadcast>;
|
|
1351
|
+
/**
|
|
1352
|
+
* Cancels a Broadcast; messages already admitted still deliver.
|
|
1353
|
+
*
|
|
1354
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/broadcasts/*}:cancel` · permission `notify:send` · effect `destructive`
|
|
1355
|
+
*
|
|
1356
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `ETAG_MISMATCH`.
|
|
1357
|
+
*/
|
|
1358
|
+
cancel(request: CancelBroadcastRequest): Promise<Broadcast>;
|
|
1359
|
+
}
|