@fusebase/fusebase-gate-sdk 2.5.4 → 2.6.1

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.
@@ -54,14 +54,21 @@ export interface CreateAppMagicLinkRequestContract {
54
54
  export interface CreateAppMagicLinkResponseContract {
55
55
  /**
56
56
  * globalId of the magic link row, also the value passed to the activation
57
- * endpoint.
57
+ * endpoint. NIM-42663: omitted together with `magicLinkUrl` when the link
58
+ * may not be handed to the caller.
58
59
  */
59
- id: string;
60
+ id?: string;
60
61
  /**
61
62
  * Fully qualified URL to the app `/link` route with `id` (and optional
62
63
  * `redirect`) query params.
64
+ *
65
+ * NIM-42663: omitted when the recipient email belongs to an existing
66
+ * FuseBase account that is not already a member of this organization —
67
+ * activating a link logs the caller in as that user, so the link is only
68
+ * emailed to the address itself. Present when the invite provisions a
69
+ * brand-new account or targets an existing org member.
63
70
  */
64
- magicLinkUrl: string;
71
+ magicLinkUrl?: string;
65
72
  /**
66
73
  * Unix timestamp (seconds) when the link expires (createdAt + ttlSeconds,
67
74
  * defaulting to 24h when ttlSeconds is omitted).
@@ -175,8 +182,13 @@ export interface RevokeAppMagicLinkResponseContract {
175
182
  * material — only metadata safe for an owner/support view.
176
183
  */
177
184
  export interface AppMagicLinkSummaryContract {
178
- /** globalId of the magic link row. */
179
- id: string;
185
+ /**
186
+ * globalId of the magic link row. NIM-42663: omitted for links whose URL was
187
+ * never disclosed to the owner (self-service links, and invites to existing
188
+ * accounts outside the org) — the id activates the link. Such a link cannot
189
+ * be revoked by id; remove the recipient's access principal instead.
190
+ */
191
+ id?: string;
180
192
  /**
181
193
  * Recipient email the link was issued to.
182
194
  * @nullable true