@leaflow/sdk 0.15.0 → 0.17.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.
@@ -0,0 +1,1557 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ export interface paths {
6
+ "/api/v1/notifications": {
7
+ parameters: {
8
+ query?: never;
9
+ header?: never;
10
+ path?: never;
11
+ cookie?: never;
12
+ };
13
+ /**
14
+ * List notifications addressed to you
15
+ * @description Returns notifications in reverse chronological order, newest first.
16
+ *
17
+ * Announcements published to the whole platform appear here alongside notifications
18
+ * addressed to you individually and are distinguished by `kind`. They are read and archived
19
+ * through the same operations.
20
+ */
21
+ get: operations["list-notifications"];
22
+ put?: never;
23
+ post?: never;
24
+ delete?: never;
25
+ options?: never;
26
+ head?: never;
27
+ patch?: never;
28
+ trace?: never;
29
+ };
30
+ "/api/v1/notifications/read": {
31
+ parameters: {
32
+ query?: never;
33
+ header?: never;
34
+ path?: never;
35
+ cookie?: never;
36
+ };
37
+ get?: never;
38
+ put?: never;
39
+ /**
40
+ * Mark several notifications as read
41
+ * @description Marks every listed notification as read. Notifications already read are left alone, and the
42
+ * operation succeeds whether or not any of them changed.
43
+ *
44
+ * Passing an empty list marks everything currently unread as read.
45
+ */
46
+ post: operations["mark-notifications-read"];
47
+ delete?: never;
48
+ options?: never;
49
+ head?: never;
50
+ patch?: never;
51
+ trace?: never;
52
+ };
53
+ "/api/v1/notifications/unread-count": {
54
+ parameters: {
55
+ query?: never;
56
+ header?: never;
57
+ path?: never;
58
+ cookie?: never;
59
+ };
60
+ /**
61
+ * Count unread notifications
62
+ * @description Returns the number of unread notifications. This is the value behind the badge in the
63
+ * console, and it is also carried on every realtime event, so it does not normally need to be
64
+ * requested on its own.
65
+ */
66
+ get: operations["count-unread-notifications"];
67
+ put?: never;
68
+ post?: never;
69
+ delete?: never;
70
+ options?: never;
71
+ head?: never;
72
+ patch?: never;
73
+ trace?: never;
74
+ };
75
+ "/api/v1/notifications/{notificationId}": {
76
+ parameters: {
77
+ query?: never;
78
+ header?: never;
79
+ path?: never;
80
+ cookie?: never;
81
+ };
82
+ /**
83
+ * Get one notification
84
+ * @description A notification addressed to someone else returns `NOTIFICATION_NOT_FOUND`, the same answer
85
+ * as one that does not exist.
86
+ */
87
+ get: operations["get-notification"];
88
+ put?: never;
89
+ post?: never;
90
+ delete?: never;
91
+ options?: never;
92
+ head?: never;
93
+ patch?: never;
94
+ trace?: never;
95
+ };
96
+ "/api/v1/notifications/{notificationId}/read": {
97
+ parameters: {
98
+ query?: never;
99
+ header?: never;
100
+ path?: never;
101
+ cookie?: never;
102
+ };
103
+ get?: never;
104
+ put?: never;
105
+ /**
106
+ * Mark one notification as read
107
+ * @description Marking a notification that is already read succeeds and changes nothing.
108
+ */
109
+ post: operations["mark-notification-read"];
110
+ delete?: never;
111
+ options?: never;
112
+ head?: never;
113
+ patch?: never;
114
+ trace?: never;
115
+ };
116
+ "/api/v1/notifications/{notificationId}/archive": {
117
+ parameters: {
118
+ query?: never;
119
+ header?: never;
120
+ path?: never;
121
+ cookie?: never;
122
+ };
123
+ get?: never;
124
+ put?: never;
125
+ /**
126
+ * Archive one notification
127
+ * @description Archiving removes a notification from the default listing without deleting it; pass
128
+ * `include_archived` to see it again. Archiving also marks it read.
129
+ */
130
+ post: operations["archive-notification"];
131
+ delete?: never;
132
+ options?: never;
133
+ head?: never;
134
+ patch?: never;
135
+ trace?: never;
136
+ };
137
+ "/api/v1/notification-types": {
138
+ parameters: {
139
+ query?: never;
140
+ header?: never;
141
+ path?: never;
142
+ cookie?: never;
143
+ };
144
+ /**
145
+ * List every notification type
146
+ * @description The catalogue of everything this platform can notify about, with the default delivery for
147
+ * each type and whether it can be configured. It is the source for a settings interface.
148
+ *
149
+ * This operation does not require authentication: the catalogue is the same for everyone and
150
+ * describes the product rather than any account.
151
+ */
152
+ get: operations["list-notification-types"];
153
+ put?: never;
154
+ post?: never;
155
+ delete?: never;
156
+ options?: never;
157
+ head?: never;
158
+ patch?: never;
159
+ trace?: never;
160
+ };
161
+ "/api/v1/preferences": {
162
+ parameters: {
163
+ query?: never;
164
+ header?: never;
165
+ path?: never;
166
+ cookie?: never;
167
+ };
168
+ /**
169
+ * Get your delivery preferences
170
+ * @description Returns the account-wide settings: the language notifications are written in, the time zone
171
+ * times are stated in, and the address email is delivered to.
172
+ *
173
+ * A person who has never configured anything receives the defaults rather than an error.
174
+ */
175
+ get: operations["get-notification-preferences"];
176
+ put?: never;
177
+ post?: never;
178
+ delete?: never;
179
+ options?: never;
180
+ head?: never;
181
+ /**
182
+ * Update your delivery preferences
183
+ * @description Fields that are omitted are left alone.
184
+ *
185
+ * Setting `email_override` starts verification of that address: email continues to be
186
+ * delivered to the address on the account until the new one is confirmed. Setting it to null
187
+ * returns delivery to the account address.
188
+ */
189
+ patch: operations["update-notification-preferences"];
190
+ trace?: never;
191
+ };
192
+ "/api/v1/preferences/types": {
193
+ parameters: {
194
+ query?: never;
195
+ header?: never;
196
+ path?: never;
197
+ cookie?: never;
198
+ };
199
+ /**
200
+ * List your per-type preferences
201
+ * @description Returns one entry per notification type, whether or not it has been configured. Entries
202
+ * that have never been configured are reported with `inherited: true` and carry the defaults
203
+ * from the catalogue.
204
+ *
205
+ * A preference applies either to one project or to every project. Both are returned; the one
206
+ * naming a project takes precedence for that project.
207
+ */
208
+ get: operations["list-type-preferences"];
209
+ put?: never;
210
+ post?: never;
211
+ delete?: never;
212
+ options?: never;
213
+ head?: never;
214
+ patch?: never;
215
+ trace?: never;
216
+ };
217
+ "/api/v1/preferences/types/{type}": {
218
+ parameters: {
219
+ query?: never;
220
+ header?: never;
221
+ path?: never;
222
+ cookie?: never;
223
+ };
224
+ get?: never;
225
+ /**
226
+ * Set the preference for one type
227
+ * @description States how this type should be delivered, replacing whatever was configured before.
228
+ *
229
+ * Omitting `project_id` configures every project. Naming one configures that project alone
230
+ * and takes precedence there.
231
+ *
232
+ * On a type marked `mandatory`, setting `muted` or omitting `email` from `channels` returns
233
+ * `NOTIFICATION_TYPE_MANDATORY`. Everything else about such a type is configurable, including
234
+ * adding channels and raising `min_severity`.
235
+ *
236
+ * Naming a channel the type does not support returns `NOTIFICATION_CHANNEL_UNSUPPORTED`.
237
+ * `inbox` is accepted but has no effect: every notification is in the inbox regardless.
238
+ */
239
+ put: operations["update-type-preference"];
240
+ post?: never;
241
+ /**
242
+ * Restore the default for one type
243
+ * @description Removes the configured preference so the type follows the default in the catalogue again.
244
+ *
245
+ * **This does not stop the type from being delivered.** To stop receiving it, set `muted`
246
+ * instead. Deleting a preference that was never configured succeeds and changes nothing.
247
+ */
248
+ delete: operations["delete-type-preference"];
249
+ options?: never;
250
+ head?: never;
251
+ patch?: never;
252
+ trace?: never;
253
+ };
254
+ "/api/v1/channels": {
255
+ parameters: {
256
+ query?: never;
257
+ header?: never;
258
+ path?: never;
259
+ cookie?: never;
260
+ };
261
+ /**
262
+ * List outbound channels
263
+ * @description Returns the channels you have registered, and the channels registered for the project in
264
+ * the token. The address of each is not included.
265
+ */
266
+ get: operations["list-user-channels"];
267
+ put?: never;
268
+ /**
269
+ * Register an outbound channel
270
+ * @description Registering a channel does not contact it and does not make it deliver anything: a new
271
+ * channel is unverified, and unverified channels are skipped. Call verify to send it one
272
+ * message and make it usable.
273
+ *
274
+ * A `project` channel is shared with everyone in the project and requires
275
+ * `notification:channels.manage`. A `user` channel is yours alone.
276
+ *
277
+ * The endpoint must be reachable over the public internet. Addresses that resolve to private
278
+ * or link-local ranges are rejected with `CHANNEL_ENDPOINT_NOT_PUBLIC`, both here and again
279
+ * at delivery time. Registering an endpoint already registered in the same scope returns
280
+ * `CHANNEL_DUPLICATE`.
281
+ *
282
+ * The submitted endpoint is not returned by this or any other operation.
283
+ */
284
+ post: operations["create-user-channel"];
285
+ delete?: never;
286
+ options?: never;
287
+ head?: never;
288
+ patch?: never;
289
+ trace?: never;
290
+ };
291
+ "/api/v1/channels/{channelId}": {
292
+ parameters: {
293
+ query?: never;
294
+ header?: never;
295
+ path?: never;
296
+ cookie?: never;
297
+ };
298
+ get?: never;
299
+ put?: never;
300
+ post?: never;
301
+ /**
302
+ * Delete an outbound channel
303
+ * @description Deleting a channel stops delivery to it and destroys the stored endpoint. Deliveries
304
+ * already queued for it are abandoned.
305
+ */
306
+ delete: operations["delete-user-channel"];
307
+ options?: never;
308
+ head?: never;
309
+ /**
310
+ * Rename or re-enable an outbound channel
311
+ * @description Fields that are omitted are left alone.
312
+ *
313
+ * A channel disabled after repeated failures is re-enabled by setting `enabled` to true,
314
+ * which also clears the failure count. It remains verified, so it starts delivering again
315
+ * immediately — verify it first if the cause of the failures is not known to be resolved.
316
+ *
317
+ * Changing the endpoint is not possible; register a new channel and delete this one.
318
+ */
319
+ patch: operations["update-user-channel"];
320
+ trace?: never;
321
+ };
322
+ "/api/v1/channels/{channelId}/verify": {
323
+ parameters: {
324
+ query?: never;
325
+ header?: never;
326
+ path?: never;
327
+ cookie?: never;
328
+ };
329
+ get?: never;
330
+ put?: never;
331
+ /**
332
+ * Verify an outbound channel
333
+ * @description Sends one message to the channel and marks it verified if the endpoint accepted it.
334
+ *
335
+ * **The endpoint accepting the message is not proof that it arrived where it was meant to.**
336
+ * A webhook URL belonging to the wrong group answers exactly the same way. Confirm the
337
+ * message appeared before relying on the channel.
338
+ *
339
+ * A channel that fails verification is not marked verified and continues to be skipped. The
340
+ * reason is reported in `last_error`; it is the provider's own wording and is not translated.
341
+ */
342
+ post: operations["verify-user-channel"];
343
+ delete?: never;
344
+ options?: never;
345
+ head?: never;
346
+ patch?: never;
347
+ trace?: never;
348
+ };
349
+ "/api/v1/credentials/{ticketId}": {
350
+ parameters: {
351
+ query?: never;
352
+ header?: never;
353
+ path?: never;
354
+ cookie?: never;
355
+ };
356
+ /**
357
+ * Describe a one-time credential
358
+ * @description Reports whether the credential is still available without consuming it. It never contains
359
+ * the credential itself.
360
+ *
361
+ * A ticket addressed to someone else returns `CREDENTIAL_TICKET_NOT_FOUND`, the same answer
362
+ * as one that does not exist.
363
+ */
364
+ get: operations["describe-credential-ticket"];
365
+ put?: never;
366
+ post?: never;
367
+ delete?: never;
368
+ options?: never;
369
+ head?: never;
370
+ patch?: never;
371
+ trace?: never;
372
+ };
373
+ "/api/v1/credentials/{ticketId}/reveal": {
374
+ parameters: {
375
+ query?: never;
376
+ header?: never;
377
+ path?: never;
378
+ cookie?: never;
379
+ };
380
+ get?: never;
381
+ put?: never;
382
+ /**
383
+ * Reveal a one-time credential
384
+ * @description Returns the credential and destroys it in the same step. **This is the only operation that
385
+ * ever returns it, and it succeeds only once.**
386
+ *
387
+ * Every subsequent request returns `CREDENTIAL_TICKET_CONSUMED`, including one issued
388
+ * concurrently with the first: exactly one caller receives the credential.
389
+ *
390
+ * A ticket that has expired returns `CREDENTIAL_TICKET_EXPIRED`, and one withdrawn by the
391
+ * service that created it returns `CREDENTIAL_TICKET_REVOKED`. In all three cases the
392
+ * credential is already gone and cannot be recovered; obtain a new one from the service that
393
+ * owns the resource.
394
+ *
395
+ * This operation is a POST rather than a GET because a GET would be followed by link
396
+ * scanners in mail clients and by browser prefetching, either of which would consume the
397
+ * credential before the recipient opened it.
398
+ */
399
+ post: operations["reveal-credential"];
400
+ delete?: never;
401
+ options?: never;
402
+ head?: never;
403
+ patch?: never;
404
+ trace?: never;
405
+ };
406
+ "/api/v1/realtime": {
407
+ parameters: {
408
+ query?: never;
409
+ header?: never;
410
+ path?: never;
411
+ cookie?: never;
412
+ };
413
+ /**
414
+ * Describe the realtime connection
415
+ * @description Returns everything needed to open a realtime connection, and the names of the channels to
416
+ * subscribe to. The parameters are not constants: they differ between environments, so they
417
+ * must be requested rather than compiled in.
418
+ *
419
+ * Realtime delivery is an optimisation. Everything it announces is also readable through the
420
+ * listing operations, so a client that cannot connect stays correct by polling or by
421
+ * refreshing.
422
+ */
423
+ get: operations["describe-realtime-connection"];
424
+ put?: never;
425
+ post?: never;
426
+ delete?: never;
427
+ options?: never;
428
+ head?: never;
429
+ patch?: never;
430
+ trace?: never;
431
+ };
432
+ "/api/v1/realtime/auth": {
433
+ parameters: {
434
+ query?: never;
435
+ header?: never;
436
+ path?: never;
437
+ cookie?: never;
438
+ };
439
+ get?: never;
440
+ put?: never;
441
+ /**
442
+ * Authorize a realtime channel subscription
443
+ * @description Authorizes one subscription. Realtime clients call this on their own while subscribing; it
444
+ * is not normally called directly.
445
+ *
446
+ * Only two channels are authorized: the one naming you, and the one naming the project in
447
+ * the token. Any other channel returns `REALTIME_CHANNEL_FORBIDDEN`.
448
+ *
449
+ * **Authorization is evaluated once, when the subscription is established.** A subscription
450
+ * already open is not revoked when project membership changes, so realtime events carry
451
+ * identifiers and counts only, never the contents of a notification.
452
+ */
453
+ post: operations["authorize-realtime-channel"];
454
+ delete?: never;
455
+ options?: never;
456
+ head?: never;
457
+ patch?: never;
458
+ trace?: never;
459
+ };
460
+ }
461
+ export type webhooks = Record<string, never>;
462
+ export interface components {
463
+ schemas: {
464
+ Error: {
465
+ code?: string;
466
+ message: string;
467
+ meta?: {
468
+ [key: string]: unknown;
469
+ };
470
+ /** Format: int64 */
471
+ status: number;
472
+ };
473
+ /**
474
+ * @description `all` covers every project you belong to as well as notifications that belong to no
475
+ * project. `current_project` covers only the project in the token.
476
+ * @enum {string}
477
+ */
478
+ NotificationScope: "all" | "current_project";
479
+ /**
480
+ * @description How much attention a notification asks for. It is assigned by the type and by the event,
481
+ * not by the recipient.
482
+ *
483
+ * `critical` announces something that is either irreversible or actively costing the
484
+ * recipient something.
485
+ * @enum {string}
486
+ */
487
+ NotificationSeverity: "info" | "warning" | "error" | "critical";
488
+ /**
489
+ * @description `notification` is addressed to you. `announcement` was published to the whole platform and
490
+ * appears in everyone's inbox.
491
+ * @enum {string}
492
+ */
493
+ NotificationKind: "notification" | "announcement";
494
+ /**
495
+ * @description Where a notification is delivered.
496
+ *
497
+ * `inbox` is this API. `email` is the address on your preferences. `webhook` covers every
498
+ * outbound channel you have registered — the message is shaped for each one.
499
+ * @enum {string}
500
+ */
501
+ NotificationChannel: "inbox" | "email" | "webhook";
502
+ /**
503
+ * @description `user` is yours alone. `project` is shared with everyone in the project and requires
504
+ * `notification:channels.manage` to register or delete.
505
+ * @enum {string}
506
+ */
507
+ ChannelScope: "user" | "project";
508
+ /**
509
+ * @description The kind of endpoint, which determines both how the message is shaped and what the
510
+ * endpoint is.
511
+ *
512
+ * `lark_webhook` and `wecom_webhook` are group robot webhook URLs and receive a card.
513
+ * `bark` is a Bark server URL including the device key and receives a short line of text.
514
+ * `generic_webhook` receives a JSON document and is the option for anything else.
515
+ * @enum {string}
516
+ */
517
+ ChannelKind: "lark_webhook" | "wecom_webhook" | "bark" | "generic_webhook";
518
+ /**
519
+ * @description Who a type is addressed to. It is a property of the type, so it is the same for every
520
+ * occurrence.
521
+ *
522
+ * `explicit` is whoever the reporting service names, usually the person who asked for the
523
+ * action. `account` is one person, independently of any project. `address` is an email
524
+ * address belonging to someone who may not have an account yet. `broadcast` is everyone.
525
+ * @enum {string}
526
+ */
527
+ NotificationAudience: "explicit" | "account" | "address" | "project_members" | "project_owner" | "project_admins" | "broadcast";
528
+ /**
529
+ * @description One notification, with its text rendered in the language on your preferences at the moment
530
+ * it was read.
531
+ */
532
+ NotificationResource: {
533
+ /**
534
+ * Format: date-time
535
+ * @description When you archived it; null if you did not
536
+ */
537
+ archived_at: string | null;
538
+ /** @description The text, as a fragment of HTML. Contains formatting and links, no scripts and no styles */
539
+ body: string;
540
+ /** @description The same text without markup, for clients that cannot render HTML */
541
+ body_text: string;
542
+ /** Format: date-time */
543
+ created_at: string;
544
+ /** Format: uuid */
545
+ id: string;
546
+ kind: components["schemas"]["NotificationKind"];
547
+ /** @description The language this text was rendered in */
548
+ locale: string;
549
+ /**
550
+ * Format: date-time
551
+ * @description When the event itself happened, which precedes created_at
552
+ */
553
+ occurred_at: string;
554
+ /**
555
+ * @description The facts the text was rendered from, for clients that want to link to the resource the
556
+ * notification is about. The names are documented per type in the catalogue.
557
+ */
558
+ params: {
559
+ [key: string]: unknown;
560
+ };
561
+ /**
562
+ * Format: uuid
563
+ * @description The project the event belongs to; null for events that belong to no project
564
+ */
565
+ project_id: string | null;
566
+ /**
567
+ * Format: date-time
568
+ * @description When you read it; null if you have not
569
+ */
570
+ read_at: string | null;
571
+ severity: components["schemas"]["NotificationSeverity"];
572
+ /** @description A single line, without markup */
573
+ title: string;
574
+ /** @description The type identifier; empty for announcements, which have no type */
575
+ type: string;
576
+ };
577
+ LengthAwarePageNotificationResource: {
578
+ /** @description The contents of this page */
579
+ items: components["schemas"]["NotificationResource"][];
580
+ /**
581
+ * Format: int64
582
+ * @description Maximum items per page, echoing the value in the request
583
+ */
584
+ limit: number;
585
+ /**
586
+ * Format: int64
587
+ * @description Items skipped, echoing the value in the request
588
+ */
589
+ offset: number;
590
+ /**
591
+ * Format: int64
592
+ * @description Total number of matching items, not only those in this page
593
+ */
594
+ total: number;
595
+ /**
596
+ * Format: int64
597
+ * @description Unread notifications in the same scope, not only in this page
598
+ */
599
+ unread_count: number;
600
+ };
601
+ UnreadCountResource: {
602
+ /** Format: int64 */
603
+ unread_count: number;
604
+ };
605
+ /** @description An empty list marks everything currently unread as read. */
606
+ MarkNotificationsReadRequestBody: {
607
+ notification_ids: string[];
608
+ };
609
+ /** @description One entry in the catalogue of everything the platform can notify about. */
610
+ NotificationTypeDescriptor: {
611
+ audience: components["schemas"]["NotificationAudience"];
612
+ /** @description The channels this type may be delivered on. Configuring any other channel is rejected */
613
+ available_channels: components["schemas"]["NotificationChannel"][];
614
+ /** @description The channels this type is delivered on when nothing has been configured */
615
+ default_channels: components["schemas"]["NotificationChannel"][];
616
+ /**
617
+ * @description True when this type must reach you: it cannot be muted, and email cannot be removed
618
+ * from its channels. Everything else about it is still configurable
619
+ */
620
+ mandatory: boolean;
621
+ /** @description The names of the facts this type carries, as they appear on NotificationResource.params */
622
+ params: string[];
623
+ /** @description The service that reports this type */
624
+ service: string;
625
+ severity: components["schemas"]["NotificationSeverity"];
626
+ type: string;
627
+ };
628
+ NotificationTypeListResponseBody: {
629
+ items: components["schemas"]["NotificationTypeDescriptor"][];
630
+ };
631
+ PreferencesResource: {
632
+ /** @description Where email is delivered right now, which is the account address unless a verified override replaces it */
633
+ email_address: string;
634
+ /** @description An address to receive email instead of the account address; null when the account address is used */
635
+ email_override: string | null;
636
+ /**
637
+ * Format: date-time
638
+ * @description When the override was confirmed; null while it is pending, during which email still goes to the account address
639
+ */
640
+ email_override_verified_at: string | null;
641
+ /** @description The language notifications are written in, as an IETF language tag */
642
+ locale: string;
643
+ };
644
+ /** @description Fields that are omitted are left alone. */
645
+ UpdatePreferencesRequestBody: {
646
+ /** @description An address to receive email instead of the account address. Null returns delivery to the account address */
647
+ email_override?: string | null;
648
+ /** @description An IETF language tag. A language that is not supported is rejected rather than approximated */
649
+ locale?: string;
650
+ };
651
+ TypePreferenceResource: {
652
+ /** @description Where this type is delivered */
653
+ channels: components["schemas"]["NotificationChannel"][];
654
+ /** @description True when nothing has been configured and these are the defaults from the catalogue */
655
+ inherited: boolean;
656
+ /** @description True when this type cannot be muted and email cannot be removed from it */
657
+ mandatory: boolean;
658
+ /**
659
+ * @description Deliver only at or above this severity. Null delivers every severity. It applies to the
660
+ * channels named here and not to the inbox, which always holds everything
661
+ */
662
+ min_severity: components["schemas"]["NotificationSeverity"] | null;
663
+ /** @description True when this type is not delivered anywhere except the inbox */
664
+ muted: boolean;
665
+ /**
666
+ * Format: uuid
667
+ * @description The project this preference applies to; null when it applies to every project
668
+ */
669
+ project_id: string | null;
670
+ type: string;
671
+ };
672
+ TypePreferenceListResponseBody: {
673
+ items: components["schemas"]["TypePreferenceResource"][];
674
+ };
675
+ /** @description States how this type should be delivered, replacing whatever was configured before. */
676
+ UpdateTypePreferenceRequestBody: {
677
+ /**
678
+ * @description Where to deliver this type, beyond the inbox. An empty list delivers to the inbox only.
679
+ * `inbox` may be listed and is accepted, but has no effect: every notification is in the
680
+ * inbox whatever this says
681
+ */
682
+ channels: components["schemas"]["NotificationChannel"][];
683
+ /** @description Deliver only at or above this severity. Null delivers every severity */
684
+ min_severity?: components["schemas"]["NotificationSeverity"] | null;
685
+ /**
686
+ * @description Stop delivering this type anywhere except the inbox
687
+ * @default false
688
+ */
689
+ muted?: boolean;
690
+ };
691
+ /** @description A registered outbound channel. The endpoint itself is never included. */
692
+ ChannelResource: {
693
+ channel_scope: components["schemas"]["ChannelScope"];
694
+ /**
695
+ * Format: int64
696
+ * @description Deliveries that have failed in a row. Reset by a success, and by re-enabling the channel
697
+ */
698
+ consecutive_failures: number;
699
+ /** Format: date-time */
700
+ created_at: string;
701
+ /**
702
+ * Format: date-time
703
+ * @description When the channel was disabled after repeated failures; null if it is enabled
704
+ */
705
+ disabled_at: string | null;
706
+ /** @description Why it was disabled; null if it is enabled */
707
+ disabled_reason: string | null;
708
+ /** Format: uuid */
709
+ id: string;
710
+ kind: components["schemas"]["ChannelKind"];
711
+ /** @description Why the most recent attempt failed, in the endpoint's own wording; null if the most recent attempt succeeded */
712
+ last_error: string | null;
713
+ /** Format: date-time */
714
+ last_failure_at: string | null;
715
+ /** Format: date-time */
716
+ last_success_at: string | null;
717
+ name: string;
718
+ /**
719
+ * Format: uuid
720
+ * @description The project this channel is shared with; null for a channel of scope user
721
+ */
722
+ project_id: string | null;
723
+ /** @description A partially masked fragment of the endpoint, for visual identification only */
724
+ redacted: string;
725
+ /** Format: date-time */
726
+ updated_at: string;
727
+ /**
728
+ * Format: date-time
729
+ * @description When the endpoint last acknowledged a verification message; null while it never has, during which the channel is skipped
730
+ */
731
+ verified_at: string | null;
732
+ };
733
+ ChannelListResponseBody: {
734
+ items: components["schemas"]["ChannelResource"][];
735
+ };
736
+ CreateChannelRequestBody: {
737
+ channel_scope: components["schemas"]["ChannelScope"];
738
+ /**
739
+ * @description The address messages are sent to. It must be an https URL reachable over the public
740
+ * internet.
741
+ *
742
+ * For `lark_webhook` and `wecom_webhook` this is the group robot webhook URL. For `bark`
743
+ * it is the push URL including the device key, such as
744
+ * `https://api.day.app/your-device-key`. For `generic_webhook` it is any endpoint
745
+ * accepting a JSON POST.
746
+ */
747
+ endpoint: string;
748
+ kind: components["schemas"]["ChannelKind"];
749
+ /** @description A display name for this channel */
750
+ name: string;
751
+ /**
752
+ * @description The signing secret, where the endpoint has one. It is required for a Lark group robot
753
+ * configured with signature verification, and optional for `generic_webhook`, where it
754
+ * signs the request so the receiver can confirm the message came from this platform.
755
+ *
756
+ * It is not returned by any operation.
757
+ */
758
+ secret?: string;
759
+ };
760
+ /** @description Fields that are omitted are left alone. */
761
+ UpdateChannelRequestBody: {
762
+ /** @description Set true to re-enable a channel that was disabled after repeated failures, clearing the failure count */
763
+ enabled?: boolean;
764
+ name?: string;
765
+ };
766
+ /**
767
+ * @description What the credential belongs to.
768
+ * @enum {string}
769
+ */
770
+ CredentialSubjectKind: "compute_instance";
771
+ /** @description A one-time credential, described without being consumed. */
772
+ CredentialTicketResource: {
773
+ /**
774
+ * @description True when the credential can still be revealed. False once it has been revealed, has
775
+ * expired, or was withdrawn — in all three cases it is already destroyed
776
+ */
777
+ available: boolean;
778
+ /**
779
+ * Format: date-time
780
+ * @description After this moment the credential is destroyed whether or not it was read
781
+ */
782
+ expires_at: string;
783
+ /** Format: uuid */
784
+ id: string;
785
+ /**
786
+ * Format: date-time
787
+ * @description When it was revealed; null if it has not been
788
+ */
789
+ revealed_at: string | null;
790
+ /**
791
+ * Format: date-time
792
+ * @description When the service that issued it withdrew it; null if it did not
793
+ */
794
+ revoked_at: string | null;
795
+ /** @description The resource the credential belongs to */
796
+ subject_id: string;
797
+ subject_kind: components["schemas"]["CredentialSubjectKind"];
798
+ };
799
+ /**
800
+ * @description The credential itself. This shape is returned by exactly one operation, and that operation
801
+ * succeeds at most once per ticket.
802
+ */
803
+ RevealedCredentialResource: {
804
+ /** Format: date-time */
805
+ revealed_at: string;
806
+ /** @description The credential. It is destroyed as this response is produced and cannot be obtained again */
807
+ secret: string;
808
+ subject_id: string;
809
+ subject_kind: components["schemas"]["CredentialSubjectKind"];
810
+ /** @description The account the credential belongs to, where the resource has one; null otherwise */
811
+ username: string | null;
812
+ };
813
+ /**
814
+ * @description Everything needed to open a realtime connection. The connection speaks the Pusher channels
815
+ * protocol, so any client library for it works.
816
+ */
817
+ RealtimeConnectionResource: {
818
+ /** @description The path a client posts to while subscribing, relative to this API */
819
+ auth_path: string;
820
+ /** @description The cluster name some client libraries require; empty when the deployment does not use one */
821
+ cluster: string;
822
+ /** @description False when realtime delivery is not configured in this deployment. Every other field is empty and clients should not attempt to connect */
823
+ enabled: boolean;
824
+ host: string;
825
+ /** @description The application key, which is public and identifies the deployment rather than the caller */
826
+ key: string;
827
+ /** Format: int64 */
828
+ port: number;
829
+ /** @description The channel carrying events about the project in the token; empty when the token names no project */
830
+ project_channel: string;
831
+ /** @description Whether to connect over TLS */
832
+ secure: boolean;
833
+ /** @description The channel carrying events addressed to you */
834
+ user_channel: string;
835
+ };
836
+ AuthorizeRealtimeChannelRequestBody: {
837
+ /** @description The channel being subscribed to */
838
+ channel_name: string;
839
+ /** @description The connection identifier the realtime server assigned to this client */
840
+ socket_id: string;
841
+ };
842
+ RealtimeAuthResource: {
843
+ /** @description The authorization token for this subscription, passed back to the realtime server by the client library */
844
+ auth: string;
845
+ };
846
+ };
847
+ responses: never;
848
+ parameters: {
849
+ /** @description The notification, or the announcement when kind is announcement */
850
+ NotificationId: string;
851
+ /** @description A notification type identifier, as listed by list-notification-types */
852
+ NotificationType: string;
853
+ /** @description Apply to this project alone; omit to apply to every project */
854
+ PreferenceProjectId: string;
855
+ /** @description The outbound channel */
856
+ ChannelId: string;
857
+ /** @description The one-time credential */
858
+ TicketId: string;
859
+ };
860
+ requestBodies: never;
861
+ headers: never;
862
+ pathItems: never;
863
+ }
864
+ export type $defs = Record<string, never>;
865
+ export interface operations {
866
+ "list-notifications": {
867
+ parameters: {
868
+ query?: {
869
+ /** @description Maximum number of items to return in this page */
870
+ limit?: number;
871
+ /** @description Number of items to skip */
872
+ offset?: number;
873
+ /** @description Which projects to include; defaults to every project */
874
+ scope?: components["schemas"]["NotificationScope"];
875
+ /** @description Return only notifications of this type; omit for all types */
876
+ type?: string;
877
+ /** @description Return only notifications at or above this severity; omit for all severities */
878
+ min_severity?: components["schemas"]["NotificationSeverity"];
879
+ /** @description Restrict to unread, to read, or to neither; omit for both */
880
+ read?: boolean;
881
+ /** @description Include archived notifications; they are excluded by default */
882
+ include_archived?: boolean;
883
+ };
884
+ header?: never;
885
+ path?: never;
886
+ cookie?: never;
887
+ };
888
+ requestBody?: never;
889
+ responses: {
890
+ /** @description OK */
891
+ 200: {
892
+ headers: {
893
+ [name: string]: unknown;
894
+ };
895
+ content: {
896
+ "application/json": components["schemas"]["LengthAwarePageNotificationResource"];
897
+ };
898
+ };
899
+ /** @description Error */
900
+ default: {
901
+ headers: {
902
+ [name: string]: unknown;
903
+ };
904
+ content: {
905
+ "application/json": components["schemas"]["Error"];
906
+ };
907
+ };
908
+ };
909
+ };
910
+ "mark-notifications-read": {
911
+ parameters: {
912
+ query?: never;
913
+ header?: never;
914
+ path?: never;
915
+ cookie?: never;
916
+ };
917
+ requestBody: {
918
+ content: {
919
+ "application/json": components["schemas"]["MarkNotificationsReadRequestBody"];
920
+ };
921
+ };
922
+ responses: {
923
+ /** @description OK */
924
+ 200: {
925
+ headers: {
926
+ [name: string]: unknown;
927
+ };
928
+ content: {
929
+ "application/json": components["schemas"]["UnreadCountResource"];
930
+ };
931
+ };
932
+ /** @description Error */
933
+ default: {
934
+ headers: {
935
+ [name: string]: unknown;
936
+ };
937
+ content: {
938
+ "application/json": components["schemas"]["Error"];
939
+ };
940
+ };
941
+ };
942
+ };
943
+ "count-unread-notifications": {
944
+ parameters: {
945
+ query?: {
946
+ /** @description Which projects to include; defaults to every project */
947
+ scope?: components["schemas"]["NotificationScope"];
948
+ };
949
+ header?: never;
950
+ path?: never;
951
+ cookie?: never;
952
+ };
953
+ requestBody?: never;
954
+ responses: {
955
+ /** @description OK */
956
+ 200: {
957
+ headers: {
958
+ [name: string]: unknown;
959
+ };
960
+ content: {
961
+ "application/json": components["schemas"]["UnreadCountResource"];
962
+ };
963
+ };
964
+ /** @description Error */
965
+ default: {
966
+ headers: {
967
+ [name: string]: unknown;
968
+ };
969
+ content: {
970
+ "application/json": components["schemas"]["Error"];
971
+ };
972
+ };
973
+ };
974
+ };
975
+ "get-notification": {
976
+ parameters: {
977
+ query?: never;
978
+ header?: never;
979
+ path: {
980
+ /** @description The notification, or the announcement when kind is announcement */
981
+ notificationId: components["parameters"]["NotificationId"];
982
+ };
983
+ cookie?: never;
984
+ };
985
+ requestBody?: never;
986
+ responses: {
987
+ /** @description OK */
988
+ 200: {
989
+ headers: {
990
+ [name: string]: unknown;
991
+ };
992
+ content: {
993
+ "application/json": components["schemas"]["NotificationResource"];
994
+ };
995
+ };
996
+ /** @description Error */
997
+ default: {
998
+ headers: {
999
+ [name: string]: unknown;
1000
+ };
1001
+ content: {
1002
+ "application/json": components["schemas"]["Error"];
1003
+ };
1004
+ };
1005
+ };
1006
+ };
1007
+ "mark-notification-read": {
1008
+ parameters: {
1009
+ query?: never;
1010
+ header?: never;
1011
+ path: {
1012
+ /** @description The notification, or the announcement when kind is announcement */
1013
+ notificationId: components["parameters"]["NotificationId"];
1014
+ };
1015
+ cookie?: never;
1016
+ };
1017
+ requestBody?: never;
1018
+ responses: {
1019
+ /** @description OK */
1020
+ 200: {
1021
+ headers: {
1022
+ [name: string]: unknown;
1023
+ };
1024
+ content: {
1025
+ "application/json": components["schemas"]["NotificationResource"];
1026
+ };
1027
+ };
1028
+ /** @description Error */
1029
+ default: {
1030
+ headers: {
1031
+ [name: string]: unknown;
1032
+ };
1033
+ content: {
1034
+ "application/json": components["schemas"]["Error"];
1035
+ };
1036
+ };
1037
+ };
1038
+ };
1039
+ "archive-notification": {
1040
+ parameters: {
1041
+ query?: never;
1042
+ header?: never;
1043
+ path: {
1044
+ /** @description The notification, or the announcement when kind is announcement */
1045
+ notificationId: components["parameters"]["NotificationId"];
1046
+ };
1047
+ cookie?: never;
1048
+ };
1049
+ requestBody?: never;
1050
+ responses: {
1051
+ /** @description OK */
1052
+ 200: {
1053
+ headers: {
1054
+ [name: string]: unknown;
1055
+ };
1056
+ content: {
1057
+ "application/json": components["schemas"]["NotificationResource"];
1058
+ };
1059
+ };
1060
+ /** @description Error */
1061
+ default: {
1062
+ headers: {
1063
+ [name: string]: unknown;
1064
+ };
1065
+ content: {
1066
+ "application/json": components["schemas"]["Error"];
1067
+ };
1068
+ };
1069
+ };
1070
+ };
1071
+ "list-notification-types": {
1072
+ parameters: {
1073
+ query?: never;
1074
+ header?: never;
1075
+ path?: never;
1076
+ cookie?: never;
1077
+ };
1078
+ requestBody?: never;
1079
+ responses: {
1080
+ /** @description OK */
1081
+ 200: {
1082
+ headers: {
1083
+ [name: string]: unknown;
1084
+ };
1085
+ content: {
1086
+ "application/json": components["schemas"]["NotificationTypeListResponseBody"];
1087
+ };
1088
+ };
1089
+ /** @description Error */
1090
+ default: {
1091
+ headers: {
1092
+ [name: string]: unknown;
1093
+ };
1094
+ content: {
1095
+ "application/json": components["schemas"]["Error"];
1096
+ };
1097
+ };
1098
+ };
1099
+ };
1100
+ "get-notification-preferences": {
1101
+ parameters: {
1102
+ query?: never;
1103
+ header?: never;
1104
+ path?: never;
1105
+ cookie?: never;
1106
+ };
1107
+ requestBody?: never;
1108
+ responses: {
1109
+ /** @description OK */
1110
+ 200: {
1111
+ headers: {
1112
+ [name: string]: unknown;
1113
+ };
1114
+ content: {
1115
+ "application/json": components["schemas"]["PreferencesResource"];
1116
+ };
1117
+ };
1118
+ /** @description Error */
1119
+ default: {
1120
+ headers: {
1121
+ [name: string]: unknown;
1122
+ };
1123
+ content: {
1124
+ "application/json": components["schemas"]["Error"];
1125
+ };
1126
+ };
1127
+ };
1128
+ };
1129
+ "update-notification-preferences": {
1130
+ parameters: {
1131
+ query?: never;
1132
+ header?: never;
1133
+ path?: never;
1134
+ cookie?: never;
1135
+ };
1136
+ requestBody: {
1137
+ content: {
1138
+ "application/json": components["schemas"]["UpdatePreferencesRequestBody"];
1139
+ };
1140
+ };
1141
+ responses: {
1142
+ /** @description OK */
1143
+ 200: {
1144
+ headers: {
1145
+ [name: string]: unknown;
1146
+ };
1147
+ content: {
1148
+ "application/json": components["schemas"]["PreferencesResource"];
1149
+ };
1150
+ };
1151
+ /** @description Error */
1152
+ default: {
1153
+ headers: {
1154
+ [name: string]: unknown;
1155
+ };
1156
+ content: {
1157
+ "application/json": components["schemas"]["Error"];
1158
+ };
1159
+ };
1160
+ };
1161
+ };
1162
+ "list-type-preferences": {
1163
+ parameters: {
1164
+ query?: {
1165
+ /** @description Return preferences for this project in addition to the account-wide ones; omit for the account-wide ones only */
1166
+ project_id?: string;
1167
+ };
1168
+ header?: never;
1169
+ path?: never;
1170
+ cookie?: never;
1171
+ };
1172
+ requestBody?: never;
1173
+ responses: {
1174
+ /** @description OK */
1175
+ 200: {
1176
+ headers: {
1177
+ [name: string]: unknown;
1178
+ };
1179
+ content: {
1180
+ "application/json": components["schemas"]["TypePreferenceListResponseBody"];
1181
+ };
1182
+ };
1183
+ /** @description Error */
1184
+ default: {
1185
+ headers: {
1186
+ [name: string]: unknown;
1187
+ };
1188
+ content: {
1189
+ "application/json": components["schemas"]["Error"];
1190
+ };
1191
+ };
1192
+ };
1193
+ };
1194
+ "update-type-preference": {
1195
+ parameters: {
1196
+ query?: {
1197
+ /** @description Apply to this project alone; omit to apply to every project */
1198
+ project_id?: components["parameters"]["PreferenceProjectId"];
1199
+ };
1200
+ header?: never;
1201
+ path: {
1202
+ /** @description A notification type identifier, as listed by list-notification-types */
1203
+ type: components["parameters"]["NotificationType"];
1204
+ };
1205
+ cookie?: never;
1206
+ };
1207
+ requestBody: {
1208
+ content: {
1209
+ "application/json": components["schemas"]["UpdateTypePreferenceRequestBody"];
1210
+ };
1211
+ };
1212
+ responses: {
1213
+ /** @description OK */
1214
+ 200: {
1215
+ headers: {
1216
+ [name: string]: unknown;
1217
+ };
1218
+ content: {
1219
+ "application/json": components["schemas"]["TypePreferenceResource"];
1220
+ };
1221
+ };
1222
+ /** @description Error */
1223
+ default: {
1224
+ headers: {
1225
+ [name: string]: unknown;
1226
+ };
1227
+ content: {
1228
+ "application/json": components["schemas"]["Error"];
1229
+ };
1230
+ };
1231
+ };
1232
+ };
1233
+ "delete-type-preference": {
1234
+ parameters: {
1235
+ query?: {
1236
+ /** @description Apply to this project alone; omit to apply to every project */
1237
+ project_id?: components["parameters"]["PreferenceProjectId"];
1238
+ };
1239
+ header?: never;
1240
+ path: {
1241
+ /** @description A notification type identifier, as listed by list-notification-types */
1242
+ type: components["parameters"]["NotificationType"];
1243
+ };
1244
+ cookie?: never;
1245
+ };
1246
+ requestBody?: never;
1247
+ responses: {
1248
+ /** @description No Content */
1249
+ 204: {
1250
+ headers: {
1251
+ [name: string]: unknown;
1252
+ };
1253
+ content?: never;
1254
+ };
1255
+ /** @description Error */
1256
+ default: {
1257
+ headers: {
1258
+ [name: string]: unknown;
1259
+ };
1260
+ content: {
1261
+ "application/json": components["schemas"]["Error"];
1262
+ };
1263
+ };
1264
+ };
1265
+ };
1266
+ "list-user-channels": {
1267
+ parameters: {
1268
+ query?: {
1269
+ /** @description Return only channels of this scope; omit for both */
1270
+ channel_scope?: components["schemas"]["ChannelScope"];
1271
+ /** @description Return only channels of this kind; omit for all kinds */
1272
+ kind?: components["schemas"]["ChannelKind"];
1273
+ };
1274
+ header?: never;
1275
+ path?: never;
1276
+ cookie?: never;
1277
+ };
1278
+ requestBody?: never;
1279
+ responses: {
1280
+ /** @description OK */
1281
+ 200: {
1282
+ headers: {
1283
+ [name: string]: unknown;
1284
+ };
1285
+ content: {
1286
+ "application/json": components["schemas"]["ChannelListResponseBody"];
1287
+ };
1288
+ };
1289
+ /** @description Error */
1290
+ default: {
1291
+ headers: {
1292
+ [name: string]: unknown;
1293
+ };
1294
+ content: {
1295
+ "application/json": components["schemas"]["Error"];
1296
+ };
1297
+ };
1298
+ };
1299
+ };
1300
+ "create-user-channel": {
1301
+ parameters: {
1302
+ query?: never;
1303
+ header?: never;
1304
+ path?: never;
1305
+ cookie?: never;
1306
+ };
1307
+ requestBody: {
1308
+ content: {
1309
+ "application/json": components["schemas"]["CreateChannelRequestBody"];
1310
+ };
1311
+ };
1312
+ responses: {
1313
+ /** @description Created */
1314
+ 201: {
1315
+ headers: {
1316
+ [name: string]: unknown;
1317
+ };
1318
+ content: {
1319
+ "application/json": components["schemas"]["ChannelResource"];
1320
+ };
1321
+ };
1322
+ /** @description Error */
1323
+ default: {
1324
+ headers: {
1325
+ [name: string]: unknown;
1326
+ };
1327
+ content: {
1328
+ "application/json": components["schemas"]["Error"];
1329
+ };
1330
+ };
1331
+ };
1332
+ };
1333
+ "delete-user-channel": {
1334
+ parameters: {
1335
+ query?: never;
1336
+ header?: never;
1337
+ path: {
1338
+ /** @description The outbound channel */
1339
+ channelId: components["parameters"]["ChannelId"];
1340
+ };
1341
+ cookie?: never;
1342
+ };
1343
+ requestBody?: never;
1344
+ responses: {
1345
+ /** @description No Content */
1346
+ 204: {
1347
+ headers: {
1348
+ [name: string]: unknown;
1349
+ };
1350
+ content?: never;
1351
+ };
1352
+ /** @description Error */
1353
+ default: {
1354
+ headers: {
1355
+ [name: string]: unknown;
1356
+ };
1357
+ content: {
1358
+ "application/json": components["schemas"]["Error"];
1359
+ };
1360
+ };
1361
+ };
1362
+ };
1363
+ "update-user-channel": {
1364
+ parameters: {
1365
+ query?: never;
1366
+ header?: never;
1367
+ path: {
1368
+ /** @description The outbound channel */
1369
+ channelId: components["parameters"]["ChannelId"];
1370
+ };
1371
+ cookie?: never;
1372
+ };
1373
+ requestBody: {
1374
+ content: {
1375
+ "application/json": components["schemas"]["UpdateChannelRequestBody"];
1376
+ };
1377
+ };
1378
+ responses: {
1379
+ /** @description OK */
1380
+ 200: {
1381
+ headers: {
1382
+ [name: string]: unknown;
1383
+ };
1384
+ content: {
1385
+ "application/json": components["schemas"]["ChannelResource"];
1386
+ };
1387
+ };
1388
+ /** @description Error */
1389
+ default: {
1390
+ headers: {
1391
+ [name: string]: unknown;
1392
+ };
1393
+ content: {
1394
+ "application/json": components["schemas"]["Error"];
1395
+ };
1396
+ };
1397
+ };
1398
+ };
1399
+ "verify-user-channel": {
1400
+ parameters: {
1401
+ query?: never;
1402
+ header?: never;
1403
+ path: {
1404
+ /** @description The outbound channel */
1405
+ channelId: components["parameters"]["ChannelId"];
1406
+ };
1407
+ cookie?: never;
1408
+ };
1409
+ requestBody?: never;
1410
+ responses: {
1411
+ /** @description OK */
1412
+ 200: {
1413
+ headers: {
1414
+ [name: string]: unknown;
1415
+ };
1416
+ content: {
1417
+ "application/json": components["schemas"]["ChannelResource"];
1418
+ };
1419
+ };
1420
+ /** @description Error */
1421
+ default: {
1422
+ headers: {
1423
+ [name: string]: unknown;
1424
+ };
1425
+ content: {
1426
+ "application/json": components["schemas"]["Error"];
1427
+ };
1428
+ };
1429
+ };
1430
+ };
1431
+ "describe-credential-ticket": {
1432
+ parameters: {
1433
+ query?: never;
1434
+ header?: never;
1435
+ path: {
1436
+ /** @description The one-time credential */
1437
+ ticketId: components["parameters"]["TicketId"];
1438
+ };
1439
+ cookie?: never;
1440
+ };
1441
+ requestBody?: never;
1442
+ responses: {
1443
+ /** @description OK */
1444
+ 200: {
1445
+ headers: {
1446
+ [name: string]: unknown;
1447
+ };
1448
+ content: {
1449
+ "application/json": components["schemas"]["CredentialTicketResource"];
1450
+ };
1451
+ };
1452
+ /** @description Error */
1453
+ default: {
1454
+ headers: {
1455
+ [name: string]: unknown;
1456
+ };
1457
+ content: {
1458
+ "application/json": components["schemas"]["Error"];
1459
+ };
1460
+ };
1461
+ };
1462
+ };
1463
+ "reveal-credential": {
1464
+ parameters: {
1465
+ query?: never;
1466
+ header?: never;
1467
+ path: {
1468
+ /** @description The one-time credential */
1469
+ ticketId: components["parameters"]["TicketId"];
1470
+ };
1471
+ cookie?: never;
1472
+ };
1473
+ requestBody?: never;
1474
+ responses: {
1475
+ /** @description OK */
1476
+ 200: {
1477
+ headers: {
1478
+ [name: string]: unknown;
1479
+ };
1480
+ content: {
1481
+ "application/json": components["schemas"]["RevealedCredentialResource"];
1482
+ };
1483
+ };
1484
+ /** @description Error */
1485
+ default: {
1486
+ headers: {
1487
+ [name: string]: unknown;
1488
+ };
1489
+ content: {
1490
+ "application/json": components["schemas"]["Error"];
1491
+ };
1492
+ };
1493
+ };
1494
+ };
1495
+ "describe-realtime-connection": {
1496
+ parameters: {
1497
+ query?: never;
1498
+ header?: never;
1499
+ path?: never;
1500
+ cookie?: never;
1501
+ };
1502
+ requestBody?: never;
1503
+ responses: {
1504
+ /** @description OK */
1505
+ 200: {
1506
+ headers: {
1507
+ [name: string]: unknown;
1508
+ };
1509
+ content: {
1510
+ "application/json": components["schemas"]["RealtimeConnectionResource"];
1511
+ };
1512
+ };
1513
+ /** @description Error */
1514
+ default: {
1515
+ headers: {
1516
+ [name: string]: unknown;
1517
+ };
1518
+ content: {
1519
+ "application/json": components["schemas"]["Error"];
1520
+ };
1521
+ };
1522
+ };
1523
+ };
1524
+ "authorize-realtime-channel": {
1525
+ parameters: {
1526
+ query?: never;
1527
+ header?: never;
1528
+ path?: never;
1529
+ cookie?: never;
1530
+ };
1531
+ requestBody: {
1532
+ content: {
1533
+ "application/json": components["schemas"]["AuthorizeRealtimeChannelRequestBody"];
1534
+ };
1535
+ };
1536
+ responses: {
1537
+ /** @description OK */
1538
+ 200: {
1539
+ headers: {
1540
+ [name: string]: unknown;
1541
+ };
1542
+ content: {
1543
+ "application/json": components["schemas"]["RealtimeAuthResource"];
1544
+ };
1545
+ };
1546
+ /** @description Error */
1547
+ default: {
1548
+ headers: {
1549
+ [name: string]: unknown;
1550
+ };
1551
+ content: {
1552
+ "application/json": components["schemas"]["Error"];
1553
+ };
1554
+ };
1555
+ };
1556
+ };
1557
+ }