@fusebase/fusebase-gate-sdk 2.7.2-sdk.2 → 2.8.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.
|
@@ -26,7 +26,7 @@ export declare class AppMagicLinksApi {
|
|
|
26
26
|
bulkCreateAppMagicLinks(params: {
|
|
27
27
|
path: {
|
|
28
28
|
orgId: orgIdInPathRequired;
|
|
29
|
-
|
|
29
|
+
productId: string;
|
|
30
30
|
};
|
|
31
31
|
headers?: Record<string, string>;
|
|
32
32
|
body: BulkCreateAppMagicLinksRequestContract;
|
|
@@ -38,19 +38,19 @@ export declare class AppMagicLinksApi {
|
|
|
38
38
|
createAppMagicLink(params: {
|
|
39
39
|
path: {
|
|
40
40
|
orgId: orgIdInPathRequired;
|
|
41
|
-
|
|
41
|
+
productId: string;
|
|
42
42
|
};
|
|
43
43
|
headers?: Record<string, string>;
|
|
44
44
|
body: CreateAppMagicLinkRequestContract;
|
|
45
45
|
}): Promise<CreateAppMagicLinkResponseContract>;
|
|
46
46
|
/**
|
|
47
47
|
* List app magic links (support/debug)
|
|
48
|
-
* Owner/admin support/debug flow. Lists the app's active (non-revoked) magic links, newest first, with an optional email filter. Never returns token material — only row metadata (email, mode, redirectPath, timestamps). Pair with revokeAppMagicLink to find and clear an orphaned invite. Requires app_magic_link.write and org access.
|
|
48
|
+
* Owner/admin support/debug flow. Lists the app's active (non-revoked) magic links, newest first, with an optional email filter. Never returns token material — only row metadata (email, mode, redirectPath, timestamps). Pair with revokeAppMagicLink to find and clear an orphaned invite. Requires app_magic_link.write and org access.
|
|
49
49
|
*/
|
|
50
50
|
listAppMagicLinks(params: {
|
|
51
51
|
path: {
|
|
52
52
|
orgId: orgIdInPathRequired;
|
|
53
|
-
|
|
53
|
+
productId: string;
|
|
54
54
|
};
|
|
55
55
|
query?: {
|
|
56
56
|
email?: string;
|
|
@@ -59,12 +59,12 @@ export declare class AppMagicLinksApi {
|
|
|
59
59
|
}): Promise<ListAppMagicLinksResponseContract>;
|
|
60
60
|
/**
|
|
61
61
|
* Remove an app access principal
|
|
62
|
-
* Owner/admin flow. Removes an access principal from every feature (App) of the product — the symmetric inverse of the invite grant that appends a principal to every feature.
|
|
62
|
+
* Owner/admin flow. Removes an access principal from every feature (App) of the product — the symmetric inverse of the invite grant that appends a principal to every feature. Idempotent: removing a principal that is not present returns removed=false. Returns 404 when the product has no apps. Requires app_magic_link.write and org access.
|
|
63
63
|
*/
|
|
64
64
|
removeAppAccessPrincipal(params: {
|
|
65
65
|
path: {
|
|
66
66
|
orgId: orgIdInPathRequired;
|
|
67
|
-
|
|
67
|
+
productId: string;
|
|
68
68
|
};
|
|
69
69
|
headers?: Record<string, string>;
|
|
70
70
|
body: RemoveAppAccessPrincipalRequestContract;
|
|
@@ -82,24 +82,24 @@ export declare class AppMagicLinksApi {
|
|
|
82
82
|
}): Promise<RequestAppMagicLinkResponseContract>;
|
|
83
83
|
/**
|
|
84
84
|
* Create an app magic link without sending the platform email
|
|
85
|
-
* No-email sibling of createAppMagicLink. Same input/output and side effects (user provisioning, principal + org-member grants), but the platform does NOT send the magic_link_app email — the response carries magicLinkUrl so a white-label app can deliver its own branded email. NIM-42663 / NIM-43179: when the recipient is an existing FuseBase account that has never activated a magic link of this org, id/magicLinkUrl are withheld and the platform sends the magic_link_app email itself, so the invite still reaches the recipient. Requires app_magic_link.write and org access.
|
|
85
|
+
* No-email sibling of createAppMagicLink. Same input/output and side effects (user provisioning, principal + org-member grants), but the platform does NOT send the magic_link_app email — the response carries magicLinkUrl so a white-label app can deliver its own branded email. NIM-42663 / NIM-43179: when the recipient is an existing FuseBase account that has never activated a magic link of this org, id/magicLinkUrl are withheld and the platform sends the magic_link_app email itself, so the invite still reaches the recipient. Requires app_magic_link.write and org access.
|
|
86
86
|
*/
|
|
87
87
|
requestAppMagicLinkURL(params: {
|
|
88
88
|
path: {
|
|
89
89
|
orgId: orgIdInPathRequired;
|
|
90
|
-
|
|
90
|
+
productId: string;
|
|
91
91
|
};
|
|
92
92
|
headers?: Record<string, string>;
|
|
93
93
|
body: CreateAppMagicLinkRequestContract;
|
|
94
94
|
}): Promise<CreateAppMagicLinkResponseContract>;
|
|
95
95
|
/**
|
|
96
96
|
* Revoke an app magic link
|
|
97
|
-
* Owner/admin revoke flow. Soft-deletes the magic link identified by globalId so it can no longer be activated (activation then returns 404) and the recipient email can be invited again — the fix for orphaned invites that block re-invites for 24h. Returns 404 when the link does not exist under the org/app on the path or is already revoked. Requires app_magic_link.write and org access.
|
|
97
|
+
* Owner/admin revoke flow. Soft-deletes the magic link identified by globalId so it can no longer be activated (activation then returns 404) and the recipient email can be invited again — the fix for orphaned invites that block re-invites for 24h. Returns 404 when the link does not exist under the org/app on the path or is already revoked. Requires app_magic_link.write and org access.
|
|
98
98
|
*/
|
|
99
99
|
revokeAppMagicLink(params: {
|
|
100
100
|
path: {
|
|
101
101
|
orgId: orgIdInPathRequired;
|
|
102
|
-
|
|
102
|
+
productId: string;
|
|
103
103
|
globalId: string;
|
|
104
104
|
};
|
|
105
105
|
headers?: Record<string, string>;
|
|
@@ -32,7 +32,7 @@ class AppMagicLinksApi {
|
|
|
32
32
|
async bulkCreateAppMagicLinks(params) {
|
|
33
33
|
return this.client.request({
|
|
34
34
|
method: "POST",
|
|
35
|
-
path: "/:orgId/apps/:
|
|
35
|
+
path: "/:orgId/apps/:productId/magic-links/bulk",
|
|
36
36
|
pathParams: params.path,
|
|
37
37
|
headers: params.headers,
|
|
38
38
|
body: params.body,
|
|
@@ -47,7 +47,7 @@ class AppMagicLinksApi {
|
|
|
47
47
|
async createAppMagicLink(params) {
|
|
48
48
|
return this.client.request({
|
|
49
49
|
method: "POST",
|
|
50
|
-
path: "/:orgId/apps/:
|
|
50
|
+
path: "/:orgId/apps/:productId/magic-links",
|
|
51
51
|
pathParams: params.path,
|
|
52
52
|
headers: params.headers,
|
|
53
53
|
body: params.body,
|
|
@@ -57,12 +57,12 @@ class AppMagicLinksApi {
|
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
59
|
* List app magic links (support/debug)
|
|
60
|
-
* Owner/admin support/debug flow. Lists the app's active (non-revoked) magic links, newest first, with an optional email filter. Never returns token material — only row metadata (email, mode, redirectPath, timestamps). Pair with revokeAppMagicLink to find and clear an orphaned invite. Requires app_magic_link.write and org access.
|
|
60
|
+
* Owner/admin support/debug flow. Lists the app's active (non-revoked) magic links, newest first, with an optional email filter. Never returns token material — only row metadata (email, mode, redirectPath, timestamps). Pair with revokeAppMagicLink to find and clear an orphaned invite. Requires app_magic_link.write and org access.
|
|
61
61
|
*/
|
|
62
62
|
async listAppMagicLinks(params) {
|
|
63
63
|
return this.client.request({
|
|
64
64
|
method: "GET",
|
|
65
|
-
path: "/:orgId/apps/:
|
|
65
|
+
path: "/:orgId/apps/:productId/magic-links",
|
|
66
66
|
pathParams: params.path,
|
|
67
67
|
query: params.query,
|
|
68
68
|
headers: params.headers,
|
|
@@ -72,12 +72,12 @@ class AppMagicLinksApi {
|
|
|
72
72
|
}
|
|
73
73
|
/**
|
|
74
74
|
* Remove an app access principal
|
|
75
|
-
* Owner/admin flow. Removes an access principal from every feature (App) of the product — the symmetric inverse of the invite grant that appends a principal to every feature.
|
|
75
|
+
* Owner/admin flow. Removes an access principal from every feature (App) of the product — the symmetric inverse of the invite grant that appends a principal to every feature. Idempotent: removing a principal that is not present returns removed=false. Returns 404 when the product has no apps. Requires app_magic_link.write and org access.
|
|
76
76
|
*/
|
|
77
77
|
async removeAppAccessPrincipal(params) {
|
|
78
78
|
return this.client.request({
|
|
79
79
|
method: "POST",
|
|
80
|
-
path: "/:orgId/apps/:
|
|
80
|
+
path: "/:orgId/apps/:productId/access-principals/remove",
|
|
81
81
|
pathParams: params.path,
|
|
82
82
|
headers: params.headers,
|
|
83
83
|
body: params.body,
|
|
@@ -102,12 +102,12 @@ class AppMagicLinksApi {
|
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
104
104
|
* Create an app magic link without sending the platform email
|
|
105
|
-
* No-email sibling of createAppMagicLink. Same input/output and side effects (user provisioning, principal + org-member grants), but the platform does NOT send the magic_link_app email — the response carries magicLinkUrl so a white-label app can deliver its own branded email. NIM-42663 / NIM-43179: when the recipient is an existing FuseBase account that has never activated a magic link of this org, id/magicLinkUrl are withheld and the platform sends the magic_link_app email itself, so the invite still reaches the recipient. Requires app_magic_link.write and org access.
|
|
105
|
+
* No-email sibling of createAppMagicLink. Same input/output and side effects (user provisioning, principal + org-member grants), but the platform does NOT send the magic_link_app email — the response carries magicLinkUrl so a white-label app can deliver its own branded email. NIM-42663 / NIM-43179: when the recipient is an existing FuseBase account that has never activated a magic link of this org, id/magicLinkUrl are withheld and the platform sends the magic_link_app email itself, so the invite still reaches the recipient. Requires app_magic_link.write and org access.
|
|
106
106
|
*/
|
|
107
107
|
async requestAppMagicLinkURL(params) {
|
|
108
108
|
return this.client.request({
|
|
109
109
|
method: "POST",
|
|
110
|
-
path: "/:orgId/apps/:
|
|
110
|
+
path: "/:orgId/apps/:productId/magic-link-url",
|
|
111
111
|
pathParams: params.path,
|
|
112
112
|
headers: params.headers,
|
|
113
113
|
body: params.body,
|
|
@@ -117,12 +117,12 @@ class AppMagicLinksApi {
|
|
|
117
117
|
}
|
|
118
118
|
/**
|
|
119
119
|
* Revoke an app magic link
|
|
120
|
-
* Owner/admin revoke flow. Soft-deletes the magic link identified by globalId so it can no longer be activated (activation then returns 404) and the recipient email can be invited again — the fix for orphaned invites that block re-invites for 24h. Returns 404 when the link does not exist under the org/app on the path or is already revoked. Requires app_magic_link.write and org access.
|
|
120
|
+
* Owner/admin revoke flow. Soft-deletes the magic link identified by globalId so it can no longer be activated (activation then returns 404) and the recipient email can be invited again — the fix for orphaned invites that block re-invites for 24h. Returns 404 when the link does not exist under the org/app on the path or is already revoked. Requires app_magic_link.write and org access.
|
|
121
121
|
*/
|
|
122
122
|
async revokeAppMagicLink(params) {
|
|
123
123
|
return this.client.request({
|
|
124
124
|
method: "POST",
|
|
125
|
-
path: "/:orgId/apps/:
|
|
125
|
+
path: "/:orgId/apps/:productId/magic-links/:globalId/revoke",
|
|
126
126
|
pathParams: params.path,
|
|
127
127
|
headers: params.headers,
|
|
128
128
|
opId: "revokeAppMagicLink",
|
|
@@ -40,10 +40,16 @@ export interface CreateAppMagicLinkRequestContract {
|
|
|
40
40
|
*/
|
|
41
41
|
meta?: string | null;
|
|
42
42
|
/**
|
|
43
|
-
* Optional child App
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
43
|
+
* Optional child App globalId the link should target, so a multi-app product
|
|
44
|
+
* can route sign-in per app. The email URL and activation tokens are scoped
|
|
45
|
+
* to this App's host. Omit to fall back to the product's first App (no
|
|
46
|
+
* behavior change).
|
|
47
|
+
* @nullable true
|
|
48
|
+
*/
|
|
49
|
+
appId?: string | null;
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated Old name for `appId`. Still accepted for deployed apps; `appId`
|
|
52
|
+
* wins when both are sent.
|
|
47
53
|
* @nullable true
|
|
48
54
|
*/
|
|
49
55
|
appFeatureId?: string | null;
|
|
@@ -156,7 +162,12 @@ export interface ActivateAppMagicLinkResponseContract {
|
|
|
156
162
|
*/
|
|
157
163
|
expiresAt: number;
|
|
158
164
|
/**
|
|
159
|
-
* globalId of the resolved
|
|
165
|
+
* globalId of the resolved App whose access the tokens are scoped to.
|
|
166
|
+
*/
|
|
167
|
+
appId: string;
|
|
168
|
+
/**
|
|
169
|
+
* @deprecated Old name for `appId`, always carrying the same value. Kept for
|
|
170
|
+
* deployed apps that still read it.
|
|
160
171
|
*/
|
|
161
172
|
appFeatureId: string;
|
|
162
173
|
/**
|
|
@@ -274,9 +285,15 @@ export interface BulkAppMagicLinkInvitationContract {
|
|
|
274
285
|
*/
|
|
275
286
|
meta?: string | null;
|
|
276
287
|
/**
|
|
277
|
-
* Optional child App
|
|
278
|
-
*
|
|
279
|
-
*
|
|
288
|
+
* Optional child App globalId the link should target, so a multi-app product
|
|
289
|
+
* can route sign-in per app. Omit to fall back to the product's first App
|
|
290
|
+
* (no behavior change).
|
|
291
|
+
* @nullable true
|
|
292
|
+
*/
|
|
293
|
+
appId?: string | null;
|
|
294
|
+
/**
|
|
295
|
+
* @deprecated Old name for `appId`. Still accepted for deployed apps; `appId`
|
|
296
|
+
* wins when both are sent.
|
|
280
297
|
* @nullable true
|
|
281
298
|
*/
|
|
282
299
|
appFeatureId?: string | null;
|
package/package.json
CHANGED
package/release-notes/latest.md
CHANGED