@leaflow/sdk 0.215.0 → 0.216.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/dist/notification/v1/generated/functions.d.ts +1 -67
  2. package/dist/notification/v1/generated/functions.js +0 -49
  3. package/dist/notification/v1/generated/models.d.ts +0 -56
  4. package/dist/notification/v1/generated/models.js +0 -3
  5. package/dist/notification/v1/generated/schemas.zod.d.ts +0 -38
  6. package/dist/notification/v1/generated/schemas.zod.js +0 -38
  7. package/dist/notification/v1/generated/validators/announcementListResource.zod.d.ts +0 -7
  8. package/dist/notification/v1/generated/validators/announcementListResource.zod.js +0 -7
  9. package/dist/notification/v1/generated/validators/announcementReadResultResource.zod.d.ts +0 -7
  10. package/dist/notification/v1/generated/validators/announcementReadResultResource.zod.js +0 -7
  11. package/dist/notification/v1/generated/validators/announcementResource.zod.d.ts +0 -7
  12. package/dist/notification/v1/generated/validators/announcementResource.zod.js +0 -7
  13. package/dist/notification/v1/generated/validators/channelKind.zod.d.ts +0 -7
  14. package/dist/notification/v1/generated/validators/channelKind.zod.js +0 -7
  15. package/dist/notification/v1/generated/validators/channelListResponseBody.zod.d.ts +0 -7
  16. package/dist/notification/v1/generated/validators/channelListResponseBody.zod.js +0 -7
  17. package/dist/notification/v1/generated/validators/channelResource.zod.d.ts +0 -7
  18. package/dist/notification/v1/generated/validators/channelResource.zod.js +0 -7
  19. package/dist/notification/v1/generated/validators/channelScope.zod.d.ts +0 -7
  20. package/dist/notification/v1/generated/validators/channelScope.zod.js +0 -7
  21. package/dist/notification/v1/generated/validators/confirmEmailOverrideRequestBody.zod.d.ts +0 -7
  22. package/dist/notification/v1/generated/validators/confirmEmailOverrideRequestBody.zod.js +0 -7
  23. package/dist/notification/v1/generated/validators/countUnreadNotificationsParams.zod.d.ts +0 -7
  24. package/dist/notification/v1/generated/validators/countUnreadNotificationsParams.zod.js +0 -7
  25. package/dist/notification/v1/generated/validators/createChannelRequestBody.zod.d.ts +0 -7
  26. package/dist/notification/v1/generated/validators/createChannelRequestBody.zod.js +0 -7
  27. package/dist/notification/v1/generated/validators/cursorPagination.zod.d.ts +0 -7
  28. package/dist/notification/v1/generated/validators/cursorPagination.zod.js +0 -7
  29. package/dist/notification/v1/generated/validators/deleteTypePreferenceParams.zod.d.ts +0 -7
  30. package/dist/notification/v1/generated/validators/deleteTypePreferenceParams.zod.js +0 -7
  31. package/dist/notification/v1/generated/validators/emailOverrideCodeResource.zod.d.ts +0 -7
  32. package/dist/notification/v1/generated/validators/emailOverrideCodeResource.zod.js +0 -7
  33. package/dist/notification/v1/generated/validators/error.zod.d.ts +0 -7
  34. package/dist/notification/v1/generated/validators/error.zod.js +0 -7
  35. package/dist/notification/v1/generated/validators/errorStatus.zod.d.ts +0 -7
  36. package/dist/notification/v1/generated/validators/errorStatus.zod.js +0 -7
  37. package/dist/notification/v1/generated/validators/fieldViolation.zod.d.ts +0 -7
  38. package/dist/notification/v1/generated/validators/fieldViolation.zod.js +0 -7
  39. package/dist/notification/v1/generated/validators/lengthAwarePageNotificationResource.zod.d.ts +0 -7
  40. package/dist/notification/v1/generated/validators/lengthAwarePageNotificationResource.zod.js +0 -7
  41. package/dist/notification/v1/generated/validators/listNotificationsParams.zod.d.ts +0 -7
  42. package/dist/notification/v1/generated/validators/listNotificationsParams.zod.js +0 -7
  43. package/dist/notification/v1/generated/validators/listTypePreferencesParams.zod.d.ts +0 -7
  44. package/dist/notification/v1/generated/validators/listTypePreferencesParams.zod.js +0 -7
  45. package/dist/notification/v1/generated/validators/listUserChannelsParams.zod.d.ts +0 -7
  46. package/dist/notification/v1/generated/validators/listUserChannelsParams.zod.js +0 -7
  47. package/dist/notification/v1/generated/validators/markNotificationsReadRequestBody.zod.d.ts +0 -7
  48. package/dist/notification/v1/generated/validators/markNotificationsReadRequestBody.zod.js +0 -7
  49. package/dist/notification/v1/generated/validators/notificationAudience.zod.d.ts +0 -7
  50. package/dist/notification/v1/generated/validators/notificationAudience.zod.js +0 -7
  51. package/dist/notification/v1/generated/validators/notificationChannel.zod.d.ts +0 -7
  52. package/dist/notification/v1/generated/validators/notificationChannel.zod.js +0 -7
  53. package/dist/notification/v1/generated/validators/notificationKind.zod.d.ts +0 -7
  54. package/dist/notification/v1/generated/validators/notificationKind.zod.js +0 -7
  55. package/dist/notification/v1/generated/validators/notificationResource.zod.d.ts +0 -7
  56. package/dist/notification/v1/generated/validators/notificationResource.zod.js +0 -7
  57. package/dist/notification/v1/generated/validators/notificationScope.zod.d.ts +0 -7
  58. package/dist/notification/v1/generated/validators/notificationScope.zod.js +0 -7
  59. package/dist/notification/v1/generated/validators/notificationSeverity.zod.d.ts +0 -7
  60. package/dist/notification/v1/generated/validators/notificationSeverity.zod.js +0 -7
  61. package/dist/notification/v1/generated/validators/notificationTypeDescriptor.zod.d.ts +0 -7
  62. package/dist/notification/v1/generated/validators/notificationTypeDescriptor.zod.js +0 -7
  63. package/dist/notification/v1/generated/validators/notificationTypeListResponseBody.zod.d.ts +0 -7
  64. package/dist/notification/v1/generated/validators/notificationTypeListResponseBody.zod.js +0 -7
  65. package/dist/notification/v1/generated/validators/offsetPagination.zod.d.ts +0 -7
  66. package/dist/notification/v1/generated/validators/offsetPagination.zod.js +0 -7
  67. package/dist/notification/v1/generated/validators/preferencesResource.zod.d.ts +0 -7
  68. package/dist/notification/v1/generated/validators/preferencesResource.zod.js +0 -7
  69. package/dist/notification/v1/generated/validators/typePreferenceListResponseBody.zod.d.ts +0 -7
  70. package/dist/notification/v1/generated/validators/typePreferenceListResponseBody.zod.js +0 -7
  71. package/dist/notification/v1/generated/validators/typePreferenceResource.zod.d.ts +0 -7
  72. package/dist/notification/v1/generated/validators/typePreferenceResource.zod.js +0 -7
  73. package/dist/notification/v1/generated/validators/unreadCountResource.zod.d.ts +0 -7
  74. package/dist/notification/v1/generated/validators/unreadCountResource.zod.js +0 -7
  75. package/dist/notification/v1/generated/validators/updateChannelRequestBody.zod.d.ts +0 -7
  76. package/dist/notification/v1/generated/validators/updateChannelRequestBody.zod.js +0 -7
  77. package/dist/notification/v1/generated/validators/updatePreferencesRequestBody.zod.d.ts +0 -7
  78. package/dist/notification/v1/generated/validators/updatePreferencesRequestBody.zod.js +0 -7
  79. package/dist/notification/v1/generated/validators/updateTypePreferenceParams.zod.d.ts +0 -7
  80. package/dist/notification/v1/generated/validators/updateTypePreferenceParams.zod.js +0 -7
  81. package/dist/notification/v1/generated/validators/updateTypePreferenceRequestBody.zod.d.ts +0 -7
  82. package/dist/notification/v1/generated/validators/updateTypePreferenceRequestBody.zod.js +0 -7
  83. package/dist/routes.d.ts +0 -16
  84. package/dist/routes.js +0 -18
  85. package/package.json +1 -1
  86. package/dist/notification/v1/generated/validators/credentialSubjectKind.zod.d.ts +0 -67
  87. package/dist/notification/v1/generated/validators/credentialSubjectKind.zod.js +0 -65
  88. package/dist/notification/v1/generated/validators/credentialTicketResource.zod.d.ts +0 -75
  89. package/dist/notification/v1/generated/validators/credentialTicketResource.zod.js +0 -84
  90. package/dist/notification/v1/generated/validators/revealedCredentialResource.zod.d.ts +0 -73
  91. package/dist/notification/v1/generated/validators/revealedCredentialResource.zod.js +0 -77
@@ -50,16 +50,9 @@
50
50
  * Delivery to outbound channels is limited per channel, and bursts of alerts about one server are
51
51
  * summarised rather than sent individually. Nothing is summarised in the inbox: it always holds
52
52
  * every notification. A notification that was summarised or suppressed is still readable here.
53
- *
54
- * ## One-time credentials
55
- *
56
- * Some notifications carry a reference to a credential rather than the credential itself — the
57
- * initial password of a newly created instance, for example. That credential is readable exactly
58
- * once, expires on its own, and is destroyed as soon as it has been read. Requesting it a second
59
- * time returns `CREDENTIAL_TICKET_CONSUMED`.
60
53
  * OpenAPI spec version: 1.0.0
61
54
  */
62
- import type { AnnouncementListResource, AnnouncementReadResultResource, ChannelListResponseBody, ChannelResource, ConfirmEmailOverrideRequestBody, CountUnreadNotificationsParams, CreateChannelRequestBody, CredentialTicketResource, DeleteTypePreferenceParams, EmailOverrideCodeResource, Error, LengthAwarePageNotificationResource, ListNotificationsParams, ListTypePreferencesParams, ListUserChannelsParams, MarkNotificationsReadRequestBody, NotificationResource, NotificationTypeListResponseBody, PreferencesResource, RevealedCredentialResource, TypePreferenceListResponseBody, TypePreferenceResource, UnreadCountResource, UpdateChannelRequestBody, UpdatePreferencesRequestBody, UpdateTypePreferenceParams, UpdateTypePreferenceRequestBody } from "./models.js";
55
+ import type { AnnouncementListResource, AnnouncementReadResultResource, ChannelListResponseBody, ChannelResource, ConfirmEmailOverrideRequestBody, CountUnreadNotificationsParams, CreateChannelRequestBody, DeleteTypePreferenceParams, EmailOverrideCodeResource, Error, LengthAwarePageNotificationResource, ListNotificationsParams, ListTypePreferencesParams, ListUserChannelsParams, MarkNotificationsReadRequestBody, NotificationResource, NotificationTypeListResponseBody, PreferencesResource, TypePreferenceListResponseBody, TypePreferenceResource, UnreadCountResource, UpdateChannelRequestBody, UpdatePreferencesRequestBody, UpdateTypePreferenceParams, UpdateTypePreferenceRequestBody } from "./models.js";
63
56
  export type HTTPStatusCode1xx = 100 | 101 | 102 | 103;
64
57
  export type HTTPStatusCode2xx = 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207;
65
58
  export type HTTPStatusCode3xx = 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308;
@@ -707,62 +700,3 @@ export declare const getVerifyUserChannelUrl: (channelId: string) => string;
707
700
  * @summary Verify an outbound channel
708
701
  */
709
702
  export declare const verifyUserChannel: (channelId: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<verifyUserChannelResponse>;
710
- export type describeCredentialTicketResponse200 = {
711
- data: CredentialTicketResource;
712
- status: 200;
713
- };
714
- export type describeCredentialTicketResponseDefault = {
715
- data: Error;
716
- status: Exclude<HTTPStatusCodes, 200>;
717
- };
718
- export type describeCredentialTicketResponseSuccess = describeCredentialTicketResponse200 & {
719
- headers: Headers;
720
- };
721
- export type describeCredentialTicketResponseError = describeCredentialTicketResponseDefault & {
722
- headers: Headers;
723
- };
724
- export type describeCredentialTicketResponse = describeCredentialTicketResponseSuccess | describeCredentialTicketResponseError;
725
- export declare const getDescribeCredentialTicketUrl: (ticketId: string) => string;
726
- /**
727
- * Reports whether the credential is still available without consuming it. It never contains
728
- * the credential itself.
729
- *
730
- * A ticket addressed to someone else returns `CREDENTIAL_TICKET_NOT_FOUND`, the same answer
731
- * as one that does not exist.
732
- * @summary Describe a one-time credential
733
- */
734
- export declare const describeCredentialTicket: (ticketId: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<describeCredentialTicketResponse>;
735
- export type revealCredentialResponse200 = {
736
- data: RevealedCredentialResource;
737
- status: 200;
738
- };
739
- export type revealCredentialResponseDefault = {
740
- data: Error;
741
- status: Exclude<HTTPStatusCodes, 200>;
742
- };
743
- export type revealCredentialResponseSuccess = revealCredentialResponse200 & {
744
- headers: Headers;
745
- };
746
- export type revealCredentialResponseError = revealCredentialResponseDefault & {
747
- headers: Headers;
748
- };
749
- export type revealCredentialResponse = revealCredentialResponseSuccess | revealCredentialResponseError;
750
- export declare const getRevealCredentialUrl: (ticketId: string) => string;
751
- /**
752
- * Returns the credential and destroys it in the same step. **This is the only operation that
753
- * ever returns it, and it succeeds only once.**
754
- *
755
- * Every subsequent request returns `CREDENTIAL_TICKET_CONSUMED`, including one issued
756
- * concurrently with the first: exactly one caller receives the credential.
757
- *
758
- * A ticket that has expired returns `CREDENTIAL_TICKET_EXPIRED`, and one withdrawn by the
759
- * service that created it returns `CREDENTIAL_TICKET_REVOKED`. In all three cases the
760
- * credential is already gone and cannot be recovered; obtain a new one from the service that
761
- * owns the resource.
762
- *
763
- * This operation is a POST rather than a GET because a GET would be followed by link
764
- * scanners in mail clients and by browser prefetching, either of which would consume the
765
- * credential before the recipient opened it.
766
- * @summary Reveal a one-time credential
767
- */
768
- export declare const revealCredential: (ticketId: string, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<revealCredentialResponse>;
@@ -674,52 +674,3 @@ export const verifyUserChannel = async (channelId, options, fetchFn) => {
674
674
  const data = body ? JSON.parse(body) : {};
675
675
  return { data, status: res.status, headers: res.headers };
676
676
  };
677
- export const getDescribeCredentialTicketUrl = (ticketId) => {
678
- return `https://notification.leaflow.cloud/api/v1/credentials/${encodeURIComponent(String(ticketId))}`;
679
- };
680
- /**
681
- * Reports whether the credential is still available without consuming it. It never contains
682
- * the credential itself.
683
- *
684
- * A ticket addressed to someone else returns `CREDENTIAL_TICKET_NOT_FOUND`, the same answer
685
- * as one that does not exist.
686
- * @summary Describe a one-time credential
687
- */
688
- export const describeCredentialTicket = async (ticketId, options, fetchFn) => {
689
- const res = await (fetchFn ?? fetch)(getDescribeCredentialTicketUrl(ticketId), {
690
- ...options,
691
- method: "GET",
692
- });
693
- const body = [204, 205, 304].includes(res.status) ? null : await res.text();
694
- const data = body ? JSON.parse(body) : {};
695
- return { data, status: res.status, headers: res.headers };
696
- };
697
- export const getRevealCredentialUrl = (ticketId) => {
698
- return `https://notification.leaflow.cloud/api/v1/credentials/${encodeURIComponent(String(ticketId))}:reveal`;
699
- };
700
- /**
701
- * Returns the credential and destroys it in the same step. **This is the only operation that
702
- * ever returns it, and it succeeds only once.**
703
- *
704
- * Every subsequent request returns `CREDENTIAL_TICKET_CONSUMED`, including one issued
705
- * concurrently with the first: exactly one caller receives the credential.
706
- *
707
- * A ticket that has expired returns `CREDENTIAL_TICKET_EXPIRED`, and one withdrawn by the
708
- * service that created it returns `CREDENTIAL_TICKET_REVOKED`. In all three cases the
709
- * credential is already gone and cannot be recovered; obtain a new one from the service that
710
- * owns the resource.
711
- *
712
- * This operation is a POST rather than a GET because a GET would be followed by link
713
- * scanners in mail clients and by browser prefetching, either of which would consume the
714
- * credential before the recipient opened it.
715
- * @summary Reveal a one-time credential
716
- */
717
- export const revealCredential = async (ticketId, options, fetchFn) => {
718
- const res = await (fetchFn ?? fetch)(getRevealCredentialUrl(ticketId), {
719
- ...options,
720
- method: "POST",
721
- });
722
- const body = [204, 205, 304].includes(res.status) ? null : await res.text();
723
- const data = body ? JSON.parse(body) : {};
724
- return { data, status: res.status, headers: res.headers };
725
- };
@@ -50,13 +50,6 @@
50
50
  * Delivery to outbound channels is limited per channel, and bursts of alerts about one server are
51
51
  * summarised rather than sent individually. Nothing is summarised in the inbox: it always holds
52
52
  * every notification. A notification that was summarised or suppressed is still readable here.
53
- *
54
- * ## One-time credentials
55
- *
56
- * Some notifications carry a reference to a credential rather than the credential itself — the
57
- * initial password of a newly created instance, for example. That credential is readable exactly
58
- * once, expires on its own, and is destroyed as soon as it has been read. Requesting it a second
59
- * time returns `CREDENTIAL_TICKET_CONSUMED`.
60
53
  * OpenAPI spec version: 1.0.0
61
54
  */
62
55
  export interface FieldViolation {
@@ -539,55 +532,6 @@ export interface UpdateChannelRequestBody {
539
532
  */
540
533
  name?: string;
541
534
  }
542
- /**
543
- * What the credential belongs to.
544
- */
545
- export type CredentialSubjectKind = (typeof CredentialSubjectKind)[keyof typeof CredentialSubjectKind];
546
- export declare const CredentialSubjectKind: {
547
- readonly compute_instance: "compute_instance";
548
- };
549
- /**
550
- * A one-time credential, described without being consumed.
551
- */
552
- export interface CredentialTicketResource {
553
- /**
554
- * True when the credential can still be revealed. False once it has been revealed, has
555
- * expired, or was withdrawn — in all three cases it is already destroyed
556
- */
557
- available: boolean;
558
- /** After this moment the credential is destroyed whether or not it was read */
559
- expires_at: string;
560
- id: string;
561
- /**
562
- * When it was revealed; null if it has not been
563
- * @nullable
564
- */
565
- revealed_at: string | null;
566
- /**
567
- * When the service that issued it withdrew it; null if it did not
568
- * @nullable
569
- */
570
- revoked_at: string | null;
571
- /** The resource the credential belongs to */
572
- subject_id: string;
573
- subject_kind: CredentialSubjectKind;
574
- }
575
- /**
576
- * The credential itself. This shape is returned by exactly one operation, and that operation
577
- * succeeds at most once per ticket.
578
- */
579
- export interface RevealedCredentialResource {
580
- revealed_at: string;
581
- /** The credential. It is destroyed as this response is produced and cannot be obtained again */
582
- secret: string;
583
- subject_id: string;
584
- subject_kind: CredentialSubjectKind;
585
- /**
586
- * The account the credential belongs to, where the resource has one; null otherwise
587
- * @nullable
588
- */
589
- username: string | null;
590
- }
591
535
  /**
592
536
  * Pagination metadata for stable numbered pages. total_count is returned only when the operation can determine it without an unbounded scan.
593
537
  */
@@ -36,6 +36,3 @@ export const NotificationAudience = {
36
36
  project_admins: "project_admins",
37
37
  broadcast: "broadcast",
38
38
  };
39
- export const CredentialSubjectKind = {
40
- compute_instance: "compute_instance",
41
- };
@@ -50,13 +50,6 @@
50
50
  * Delivery to outbound channels is limited per channel, and bursts of alerts about one server are
51
51
  * summarised rather than sent individually. Nothing is summarised in the inbox: it always holds
52
52
  * every notification. A notification that was summarised or suppressed is still readable here.
53
- *
54
- * ## One-time credentials
55
- *
56
- * Some notifications carry a reference to a credential rather than the credential itself — the
57
- * initial password of a newly created instance, for example. That credential is readable exactly
58
- * once, expires on its own, and is destroyed as soon as it has been read. Requesting it a second
59
- * time returns `CREDENTIAL_TICKET_CONSUMED`.
60
53
  * OpenAPI spec version: 1.0.0
61
54
  */
62
55
  import * as zod from "zod";
@@ -352,34 +345,3 @@ export declare const DeleteUserChannelParams: zod.ZodObject<{
352
345
  export declare const VerifyUserChannelParams: zod.ZodObject<{
353
346
  channelId: zod.ZodUUID;
354
347
  }, zod.z.core.$strict>;
355
- /**
356
- * Reports whether the credential is still available without consuming it. It never contains
357
- * the credential itself.
358
- *
359
- * A ticket addressed to someone else returns `CREDENTIAL_TICKET_NOT_FOUND`, the same answer
360
- * as one that does not exist.
361
- * @summary Describe a one-time credential
362
- */
363
- export declare const DescribeCredentialTicketParams: zod.ZodObject<{
364
- ticketId: zod.ZodUUID;
365
- }, zod.z.core.$strict>;
366
- /**
367
- * Returns the credential and destroys it in the same step. **This is the only operation that
368
- * ever returns it, and it succeeds only once.**
369
- *
370
- * Every subsequent request returns `CREDENTIAL_TICKET_CONSUMED`, including one issued
371
- * concurrently with the first: exactly one caller receives the credential.
372
- *
373
- * A ticket that has expired returns `CREDENTIAL_TICKET_EXPIRED`, and one withdrawn by the
374
- * service that created it returns `CREDENTIAL_TICKET_REVOKED`. In all three cases the
375
- * credential is already gone and cannot be recovered; obtain a new one from the service that
376
- * owns the resource.
377
- *
378
- * This operation is a POST rather than a GET because a GET would be followed by link
379
- * scanners in mail clients and by browser prefetching, either of which would consume the
380
- * credential before the recipient opened it.
381
- * @summary Reveal a one-time credential
382
- */
383
- export declare const RevealCredentialParams: zod.ZodObject<{
384
- ticketId: zod.ZodUUID;
385
- }, zod.z.core.$strict>;
@@ -50,13 +50,6 @@
50
50
  * Delivery to outbound channels is limited per channel, and bursts of alerts about one server are
51
51
  * summarised rather than sent individually. Nothing is summarised in the inbox: it always holds
52
52
  * every notification. A notification that was summarised or suppressed is still readable here.
53
- *
54
- * ## One-time credentials
55
- *
56
- * Some notifications carry a reference to a credential rather than the credential itself — the
57
- * initial password of a newly created instance, for example. That credential is readable exactly
58
- * once, expires on its own, and is destroyed as soon as it has been read. Requesting it a second
59
- * time returns `CREDENTIAL_TICKET_CONSUMED`.
60
53
  * OpenAPI spec version: 1.0.0
61
54
  */
62
55
  import * as zod from "zod";
@@ -366,34 +359,3 @@ export const DeleteUserChannelParams = zod.strictObject({
366
359
  export const VerifyUserChannelParams = zod.strictObject({
367
360
  channelId: zod.uuid().describe("The outbound channel"),
368
361
  });
369
- /**
370
- * Reports whether the credential is still available without consuming it. It never contains
371
- * the credential itself.
372
- *
373
- * A ticket addressed to someone else returns `CREDENTIAL_TICKET_NOT_FOUND`, the same answer
374
- * as one that does not exist.
375
- * @summary Describe a one-time credential
376
- */
377
- export const DescribeCredentialTicketParams = zod.strictObject({
378
- ticketId: zod.uuid().describe("The one-time credential"),
379
- });
380
- /**
381
- * Returns the credential and destroys it in the same step. **This is the only operation that
382
- * ever returns it, and it succeeds only once.**
383
- *
384
- * Every subsequent request returns `CREDENTIAL_TICKET_CONSUMED`, including one issued
385
- * concurrently with the first: exactly one caller receives the credential.
386
- *
387
- * A ticket that has expired returns `CREDENTIAL_TICKET_EXPIRED`, and one withdrawn by the
388
- * service that created it returns `CREDENTIAL_TICKET_REVOKED`. In all three cases the
389
- * credential is already gone and cannot be recovered; obtain a new one from the service that
390
- * owns the resource.
391
- *
392
- * This operation is a POST rather than a GET because a GET would be followed by link
393
- * scanners in mail clients and by browser prefetching, either of which would consume the
394
- * credential before the recipient opened it.
395
- * @summary Reveal a one-time credential
396
- */
397
- export const RevealCredentialParams = zod.strictObject({
398
- ticketId: zod.uuid().describe("The one-time credential"),
399
- });
@@ -50,13 +50,6 @@
50
50
  * Delivery to outbound channels is limited per channel, and bursts of alerts about one server are
51
51
  * summarised rather than sent individually. Nothing is summarised in the inbox: it always holds
52
52
  * every notification. A notification that was summarised or suppressed is still readable here.
53
- *
54
- * ## One-time credentials
55
- *
56
- * Some notifications carry a reference to a credential rather than the credential itself — the
57
- * initial password of a newly created instance, for example. That credential is readable exactly
58
- * once, expires on its own, and is destroyed as soon as it has been read. Requesting it a second
59
- * time returns `CREDENTIAL_TICKET_CONSUMED`.
60
53
  * OpenAPI spec version: 1.0.0
61
54
  */
62
55
  import * as zod from "zod";
@@ -50,13 +50,6 @@
50
50
  * Delivery to outbound channels is limited per channel, and bursts of alerts about one server are
51
51
  * summarised rather than sent individually. Nothing is summarised in the inbox: it always holds
52
52
  * every notification. A notification that was summarised or suppressed is still readable here.
53
- *
54
- * ## One-time credentials
55
- *
56
- * Some notifications carry a reference to a credential rather than the credential itself — the
57
- * initial password of a newly created instance, for example. That credential is readable exactly
58
- * once, expires on its own, and is destroyed as soon as it has been read. Requesting it a second
59
- * time returns `CREDENTIAL_TICKET_CONSUMED`.
60
53
  * OpenAPI spec version: 1.0.0
61
54
  */
62
55
  import * as zod from "zod";
@@ -50,13 +50,6 @@
50
50
  * Delivery to outbound channels is limited per channel, and bursts of alerts about one server are
51
51
  * summarised rather than sent individually. Nothing is summarised in the inbox: it always holds
52
52
  * every notification. A notification that was summarised or suppressed is still readable here.
53
- *
54
- * ## One-time credentials
55
- *
56
- * Some notifications carry a reference to a credential rather than the credential itself — the
57
- * initial password of a newly created instance, for example. That credential is readable exactly
58
- * once, expires on its own, and is destroyed as soon as it has been read. Requesting it a second
59
- * time returns `CREDENTIAL_TICKET_CONSUMED`.
60
53
  * OpenAPI spec version: 1.0.0
61
54
  */
62
55
  import * as zod from "zod";
@@ -50,13 +50,6 @@
50
50
  * Delivery to outbound channels is limited per channel, and bursts of alerts about one server are
51
51
  * summarised rather than sent individually. Nothing is summarised in the inbox: it always holds
52
52
  * every notification. A notification that was summarised or suppressed is still readable here.
53
- *
54
- * ## One-time credentials
55
- *
56
- * Some notifications carry a reference to a credential rather than the credential itself — the
57
- * initial password of a newly created instance, for example. That credential is readable exactly
58
- * once, expires on its own, and is destroyed as soon as it has been read. Requesting it a second
59
- * time returns `CREDENTIAL_TICKET_CONSUMED`.
60
53
  * OpenAPI spec version: 1.0.0
61
54
  */
62
55
  import * as zod from "zod";
@@ -50,13 +50,6 @@
50
50
  * Delivery to outbound channels is limited per channel, and bursts of alerts about one server are
51
51
  * summarised rather than sent individually. Nothing is summarised in the inbox: it always holds
52
52
  * every notification. A notification that was summarised or suppressed is still readable here.
53
- *
54
- * ## One-time credentials
55
- *
56
- * Some notifications carry a reference to a credential rather than the credential itself — the
57
- * initial password of a newly created instance, for example. That credential is readable exactly
58
- * once, expires on its own, and is destroyed as soon as it has been read. Requesting it a second
59
- * time returns `CREDENTIAL_TICKET_CONSUMED`.
60
53
  * OpenAPI spec version: 1.0.0
61
54
  */
62
55
  import * as zod from "zod";
@@ -50,13 +50,6 @@
50
50
  * Delivery to outbound channels is limited per channel, and bursts of alerts about one server are
51
51
  * summarised rather than sent individually. Nothing is summarised in the inbox: it always holds
52
52
  * every notification. A notification that was summarised or suppressed is still readable here.
53
- *
54
- * ## One-time credentials
55
- *
56
- * Some notifications carry a reference to a credential rather than the credential itself — the
57
- * initial password of a newly created instance, for example. That credential is readable exactly
58
- * once, expires on its own, and is destroyed as soon as it has been read. Requesting it a second
59
- * time returns `CREDENTIAL_TICKET_CONSUMED`.
60
53
  * OpenAPI spec version: 1.0.0
61
54
  */
62
55
  import * as zod from "zod";
@@ -50,13 +50,6 @@
50
50
  * Delivery to outbound channels is limited per channel, and bursts of alerts about one server are
51
51
  * summarised rather than sent individually. Nothing is summarised in the inbox: it always holds
52
52
  * every notification. A notification that was summarised or suppressed is still readable here.
53
- *
54
- * ## One-time credentials
55
- *
56
- * Some notifications carry a reference to a credential rather than the credential itself — the
57
- * initial password of a newly created instance, for example. That credential is readable exactly
58
- * once, expires on its own, and is destroyed as soon as it has been read. Requesting it a second
59
- * time returns `CREDENTIAL_TICKET_CONSUMED`.
60
53
  * OpenAPI spec version: 1.0.0
61
54
  */
62
55
  import * as zod from "zod";
@@ -50,13 +50,6 @@
50
50
  * Delivery to outbound channels is limited per channel, and bursts of alerts about one server are
51
51
  * summarised rather than sent individually. Nothing is summarised in the inbox: it always holds
52
52
  * every notification. A notification that was summarised or suppressed is still readable here.
53
- *
54
- * ## One-time credentials
55
- *
56
- * Some notifications carry a reference to a credential rather than the credential itself — the
57
- * initial password of a newly created instance, for example. That credential is readable exactly
58
- * once, expires on its own, and is destroyed as soon as it has been read. Requesting it a second
59
- * time returns `CREDENTIAL_TICKET_CONSUMED`.
60
53
  * OpenAPI spec version: 1.0.0
61
54
  */
62
55
  import * as zod from "zod";
@@ -50,13 +50,6 @@
50
50
  * Delivery to outbound channels is limited per channel, and bursts of alerts about one server are
51
51
  * summarised rather than sent individually. Nothing is summarised in the inbox: it always holds
52
52
  * every notification. A notification that was summarised or suppressed is still readable here.
53
- *
54
- * ## One-time credentials
55
- *
56
- * Some notifications carry a reference to a credential rather than the credential itself — the
57
- * initial password of a newly created instance, for example. That credential is readable exactly
58
- * once, expires on its own, and is destroyed as soon as it has been read. Requesting it a second
59
- * time returns `CREDENTIAL_TICKET_CONSUMED`.
60
53
  * OpenAPI spec version: 1.0.0
61
54
  */
62
55
  import * as zod from "zod";
@@ -50,13 +50,6 @@
50
50
  * Delivery to outbound channels is limited per channel, and bursts of alerts about one server are
51
51
  * summarised rather than sent individually. Nothing is summarised in the inbox: it always holds
52
52
  * every notification. A notification that was summarised or suppressed is still readable here.
53
- *
54
- * ## One-time credentials
55
- *
56
- * Some notifications carry a reference to a credential rather than the credential itself — the
57
- * initial password of a newly created instance, for example. That credential is readable exactly
58
- * once, expires on its own, and is destroyed as soon as it has been read. Requesting it a second
59
- * time returns `CREDENTIAL_TICKET_CONSUMED`.
60
53
  * OpenAPI spec version: 1.0.0
61
54
  */
62
55
  import * as zod from "zod";
@@ -50,13 +50,6 @@
50
50
  * Delivery to outbound channels is limited per channel, and bursts of alerts about one server are
51
51
  * summarised rather than sent individually. Nothing is summarised in the inbox: it always holds
52
52
  * every notification. A notification that was summarised or suppressed is still readable here.
53
- *
54
- * ## One-time credentials
55
- *
56
- * Some notifications carry a reference to a credential rather than the credential itself — the
57
- * initial password of a newly created instance, for example. That credential is readable exactly
58
- * once, expires on its own, and is destroyed as soon as it has been read. Requesting it a second
59
- * time returns `CREDENTIAL_TICKET_CONSUMED`.
60
53
  * OpenAPI spec version: 1.0.0
61
54
  */
62
55
  import * as zod from "zod";
@@ -50,13 +50,6 @@
50
50
  * Delivery to outbound channels is limited per channel, and bursts of alerts about one server are
51
51
  * summarised rather than sent individually. Nothing is summarised in the inbox: it always holds
52
52
  * every notification. A notification that was summarised or suppressed is still readable here.
53
- *
54
- * ## One-time credentials
55
- *
56
- * Some notifications carry a reference to a credential rather than the credential itself — the
57
- * initial password of a newly created instance, for example. That credential is readable exactly
58
- * once, expires on its own, and is destroyed as soon as it has been read. Requesting it a second
59
- * time returns `CREDENTIAL_TICKET_CONSUMED`.
60
53
  * OpenAPI spec version: 1.0.0
61
54
  */
62
55
  import * as zod from "zod";
@@ -50,13 +50,6 @@
50
50
  * Delivery to outbound channels is limited per channel, and bursts of alerts about one server are
51
51
  * summarised rather than sent individually. Nothing is summarised in the inbox: it always holds
52
52
  * every notification. A notification that was summarised or suppressed is still readable here.
53
- *
54
- * ## One-time credentials
55
- *
56
- * Some notifications carry a reference to a credential rather than the credential itself — the
57
- * initial password of a newly created instance, for example. That credential is readable exactly
58
- * once, expires on its own, and is destroyed as soon as it has been read. Requesting it a second
59
- * time returns `CREDENTIAL_TICKET_CONSUMED`.
60
53
  * OpenAPI spec version: 1.0.0
61
54
  */
62
55
  import * as zod from "zod";
@@ -50,13 +50,6 @@
50
50
  * Delivery to outbound channels is limited per channel, and bursts of alerts about one server are
51
51
  * summarised rather than sent individually. Nothing is summarised in the inbox: it always holds
52
52
  * every notification. A notification that was summarised or suppressed is still readable here.
53
- *
54
- * ## One-time credentials
55
- *
56
- * Some notifications carry a reference to a credential rather than the credential itself — the
57
- * initial password of a newly created instance, for example. That credential is readable exactly
58
- * once, expires on its own, and is destroyed as soon as it has been read. Requesting it a second
59
- * time returns `CREDENTIAL_TICKET_CONSUMED`.
60
53
  * OpenAPI spec version: 1.0.0
61
54
  */
62
55
  import * as zod from "zod";
@@ -50,13 +50,6 @@
50
50
  * Delivery to outbound channels is limited per channel, and bursts of alerts about one server are
51
51
  * summarised rather than sent individually. Nothing is summarised in the inbox: it always holds
52
52
  * every notification. A notification that was summarised or suppressed is still readable here.
53
- *
54
- * ## One-time credentials
55
- *
56
- * Some notifications carry a reference to a credential rather than the credential itself — the
57
- * initial password of a newly created instance, for example. That credential is readable exactly
58
- * once, expires on its own, and is destroyed as soon as it has been read. Requesting it a second
59
- * time returns `CREDENTIAL_TICKET_CONSUMED`.
60
53
  * OpenAPI spec version: 1.0.0
61
54
  */
62
55
  import * as zod from "zod";
@@ -50,13 +50,6 @@
50
50
  * Delivery to outbound channels is limited per channel, and bursts of alerts about one server are
51
51
  * summarised rather than sent individually. Nothing is summarised in the inbox: it always holds
52
52
  * every notification. A notification that was summarised or suppressed is still readable here.
53
- *
54
- * ## One-time credentials
55
- *
56
- * Some notifications carry a reference to a credential rather than the credential itself — the
57
- * initial password of a newly created instance, for example. That credential is readable exactly
58
- * once, expires on its own, and is destroyed as soon as it has been read. Requesting it a second
59
- * time returns `CREDENTIAL_TICKET_CONSUMED`.
60
53
  * OpenAPI spec version: 1.0.0
61
54
  */
62
55
  import * as zod from "zod";
@@ -50,13 +50,6 @@
50
50
  * Delivery to outbound channels is limited per channel, and bursts of alerts about one server are
51
51
  * summarised rather than sent individually. Nothing is summarised in the inbox: it always holds
52
52
  * every notification. A notification that was summarised or suppressed is still readable here.
53
- *
54
- * ## One-time credentials
55
- *
56
- * Some notifications carry a reference to a credential rather than the credential itself — the
57
- * initial password of a newly created instance, for example. That credential is readable exactly
58
- * once, expires on its own, and is destroyed as soon as it has been read. Requesting it a second
59
- * time returns `CREDENTIAL_TICKET_CONSUMED`.
60
53
  * OpenAPI spec version: 1.0.0
61
54
  */
62
55
  import * as zod from "zod";
@@ -50,13 +50,6 @@
50
50
  * Delivery to outbound channels is limited per channel, and bursts of alerts about one server are
51
51
  * summarised rather than sent individually. Nothing is summarised in the inbox: it always holds
52
52
  * every notification. A notification that was summarised or suppressed is still readable here.
53
- *
54
- * ## One-time credentials
55
- *
56
- * Some notifications carry a reference to a credential rather than the credential itself — the
57
- * initial password of a newly created instance, for example. That credential is readable exactly
58
- * once, expires on its own, and is destroyed as soon as it has been read. Requesting it a second
59
- * time returns `CREDENTIAL_TICKET_CONSUMED`.
60
53
  * OpenAPI spec version: 1.0.0
61
54
  */
62
55
  import * as zod from "zod";
@@ -50,13 +50,6 @@
50
50
  * Delivery to outbound channels is limited per channel, and bursts of alerts about one server are
51
51
  * summarised rather than sent individually. Nothing is summarised in the inbox: it always holds
52
52
  * every notification. A notification that was summarised or suppressed is still readable here.
53
- *
54
- * ## One-time credentials
55
- *
56
- * Some notifications carry a reference to a credential rather than the credential itself — the
57
- * initial password of a newly created instance, for example. That credential is readable exactly
58
- * once, expires on its own, and is destroyed as soon as it has been read. Requesting it a second
59
- * time returns `CREDENTIAL_TICKET_CONSUMED`.
60
53
  * OpenAPI spec version: 1.0.0
61
54
  */
62
55
  import * as zod from "zod";
@@ -50,13 +50,6 @@
50
50
  * Delivery to outbound channels is limited per channel, and bursts of alerts about one server are
51
51
  * summarised rather than sent individually. Nothing is summarised in the inbox: it always holds
52
52
  * every notification. A notification that was summarised or suppressed is still readable here.
53
- *
54
- * ## One-time credentials
55
- *
56
- * Some notifications carry a reference to a credential rather than the credential itself — the
57
- * initial password of a newly created instance, for example. That credential is readable exactly
58
- * once, expires on its own, and is destroyed as soon as it has been read. Requesting it a second
59
- * time returns `CREDENTIAL_TICKET_CONSUMED`.
60
53
  * OpenAPI spec version: 1.0.0
61
54
  */
62
55
  import * as zod from "zod";
@@ -50,13 +50,6 @@
50
50
  * Delivery to outbound channels is limited per channel, and bursts of alerts about one server are
51
51
  * summarised rather than sent individually. Nothing is summarised in the inbox: it always holds
52
52
  * every notification. A notification that was summarised or suppressed is still readable here.
53
- *
54
- * ## One-time credentials
55
- *
56
- * Some notifications carry a reference to a credential rather than the credential itself — the
57
- * initial password of a newly created instance, for example. That credential is readable exactly
58
- * once, expires on its own, and is destroyed as soon as it has been read. Requesting it a second
59
- * time returns `CREDENTIAL_TICKET_CONSUMED`.
60
53
  * OpenAPI spec version: 1.0.0
61
54
  */
62
55
  import * as zod from "zod";
@@ -50,13 +50,6 @@
50
50
  * Delivery to outbound channels is limited per channel, and bursts of alerts about one server are
51
51
  * summarised rather than sent individually. Nothing is summarised in the inbox: it always holds
52
52
  * every notification. A notification that was summarised or suppressed is still readable here.
53
- *
54
- * ## One-time credentials
55
- *
56
- * Some notifications carry a reference to a credential rather than the credential itself — the
57
- * initial password of a newly created instance, for example. That credential is readable exactly
58
- * once, expires on its own, and is destroyed as soon as it has been read. Requesting it a second
59
- * time returns `CREDENTIAL_TICKET_CONSUMED`.
60
53
  * OpenAPI spec version: 1.0.0
61
54
  */
62
55
  import * as zod from "zod";