@passflow/core 0.49.0 → 0.49.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.
- package/README.md +23 -2
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +21 -10
- package/dist/index.d.ts +21 -10
- package/dist/index.mjs +246 -238
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2258,22 +2258,30 @@ export type PassflowInvitePayload = {
|
|
|
2258
2258
|
invite_token: string;
|
|
2259
2259
|
scopes: string[];
|
|
2260
2260
|
};
|
|
2261
|
+
/**
|
|
2262
|
+
* One member of a tenant group, as listed in `PassflowTenantResponse.users_in_groups`:
|
|
2263
|
+
* the user's profile fields plus the roles the user holds in that group.
|
|
2264
|
+
*/
|
|
2261
2265
|
export type PassflowUserWithRoles = {
|
|
2262
|
-
|
|
2263
|
-
username
|
|
2264
|
-
email
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
group_id: string;
|
|
2268
|
-
role_id: string;
|
|
2266
|
+
id: string;
|
|
2267
|
+
username?: string;
|
|
2268
|
+
email?: string;
|
|
2269
|
+
/** Always present; an empty string when the user has no phone number. */
|
|
2270
|
+
phone?: string;
|
|
2269
2271
|
preferred_username?: string;
|
|
2270
2272
|
given_name?: string;
|
|
2273
|
+
middle_name?: string;
|
|
2271
2274
|
family_name?: string;
|
|
2272
2275
|
nickname?: string;
|
|
2273
2276
|
picture?: string;
|
|
2274
|
-
|
|
2277
|
+
email_verified?: boolean;
|
|
2278
|
+
phone_verified?: boolean;
|
|
2279
|
+
/** Maps role id to role name. Absent when the user has no role in the group. */
|
|
2280
|
+
roles?: {
|
|
2275
2281
|
[role_id: string]: string;
|
|
2276
2282
|
};
|
|
2283
|
+
/** How the user entered the tenant, e.g. `owner`, `invite`, `auto_join`. Absent for older memberships. */
|
|
2284
|
+
joined_via?: string;
|
|
2277
2285
|
};
|
|
2278
2286
|
export type PassflowGroup = {
|
|
2279
2287
|
id: string;
|
|
@@ -2290,12 +2298,14 @@ export type PassflowRole = {
|
|
|
2290
2298
|
export type PassflowTenantResponse = {
|
|
2291
2299
|
tenant_id: string;
|
|
2292
2300
|
tenant_name: string;
|
|
2293
|
-
|
|
2301
|
+
/** Maps group id to the members of that group. Absent when the tenant has no members. */
|
|
2302
|
+
users_in_groups?: Record<string, PassflowUserWithRoles[]>;
|
|
2294
2303
|
groups?: PassflowGroup[];
|
|
2295
2304
|
roles?: PassflowRole[];
|
|
2296
2305
|
};
|
|
2297
2306
|
/**
|
|
2298
|
-
*
|
|
2307
|
+
* @deprecated The server never sends this shape: `users_in_groups` maps a group id to
|
|
2308
|
+
* `PassflowUserWithRoles[]`.
|
|
2299
2309
|
*/
|
|
2300
2310
|
export type PassflowUserInGroup = {
|
|
2301
2311
|
user: {
|
|
@@ -5413,6 +5423,7 @@ export declare class InvitationService {
|
|
|
5413
5423
|
*/
|
|
5414
5424
|
export interface User {
|
|
5415
5425
|
id: string;
|
|
5426
|
+
/** Display name: preferred username, else given and family name, else nickname, else username. */
|
|
5416
5427
|
name: string | null;
|
|
5417
5428
|
email: string | null;
|
|
5418
5429
|
phone: string | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -2258,22 +2258,30 @@ export type PassflowInvitePayload = {
|
|
|
2258
2258
|
invite_token: string;
|
|
2259
2259
|
scopes: string[];
|
|
2260
2260
|
};
|
|
2261
|
+
/**
|
|
2262
|
+
* One member of a tenant group, as listed in `PassflowTenantResponse.users_in_groups`:
|
|
2263
|
+
* the user's profile fields plus the roles the user holds in that group.
|
|
2264
|
+
*/
|
|
2261
2265
|
export type PassflowUserWithRoles = {
|
|
2262
|
-
|
|
2263
|
-
username
|
|
2264
|
-
email
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
group_id: string;
|
|
2268
|
-
role_id: string;
|
|
2266
|
+
id: string;
|
|
2267
|
+
username?: string;
|
|
2268
|
+
email?: string;
|
|
2269
|
+
/** Always present; an empty string when the user has no phone number. */
|
|
2270
|
+
phone?: string;
|
|
2269
2271
|
preferred_username?: string;
|
|
2270
2272
|
given_name?: string;
|
|
2273
|
+
middle_name?: string;
|
|
2271
2274
|
family_name?: string;
|
|
2272
2275
|
nickname?: string;
|
|
2273
2276
|
picture?: string;
|
|
2274
|
-
|
|
2277
|
+
email_verified?: boolean;
|
|
2278
|
+
phone_verified?: boolean;
|
|
2279
|
+
/** Maps role id to role name. Absent when the user has no role in the group. */
|
|
2280
|
+
roles?: {
|
|
2275
2281
|
[role_id: string]: string;
|
|
2276
2282
|
};
|
|
2283
|
+
/** How the user entered the tenant, e.g. `owner`, `invite`, `auto_join`. Absent for older memberships. */
|
|
2284
|
+
joined_via?: string;
|
|
2277
2285
|
};
|
|
2278
2286
|
export type PassflowGroup = {
|
|
2279
2287
|
id: string;
|
|
@@ -2290,12 +2298,14 @@ export type PassflowRole = {
|
|
|
2290
2298
|
export type PassflowTenantResponse = {
|
|
2291
2299
|
tenant_id: string;
|
|
2292
2300
|
tenant_name: string;
|
|
2293
|
-
|
|
2301
|
+
/** Maps group id to the members of that group. Absent when the tenant has no members. */
|
|
2302
|
+
users_in_groups?: Record<string, PassflowUserWithRoles[]>;
|
|
2294
2303
|
groups?: PassflowGroup[];
|
|
2295
2304
|
roles?: PassflowRole[];
|
|
2296
2305
|
};
|
|
2297
2306
|
/**
|
|
2298
|
-
*
|
|
2307
|
+
* @deprecated The server never sends this shape: `users_in_groups` maps a group id to
|
|
2308
|
+
* `PassflowUserWithRoles[]`.
|
|
2299
2309
|
*/
|
|
2300
2310
|
export type PassflowUserInGroup = {
|
|
2301
2311
|
user: {
|
|
@@ -5413,6 +5423,7 @@ export declare class InvitationService {
|
|
|
5413
5423
|
*/
|
|
5414
5424
|
export interface User {
|
|
5415
5425
|
id: string;
|
|
5426
|
+
/** Display name: preferred username, else given and family name, else nickname, else username. */
|
|
5416
5427
|
name: string | null;
|
|
5417
5428
|
email: string | null;
|
|
5418
5429
|
phone: string | null;
|