@portaidentity/sdk 1.7.2 → 1.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.
- package/CHANGELOG.md +10 -0
- package/README.md +71 -42
- package/dist/agent.d.ts +15 -1
- package/dist/agent.d.ts.map +1 -1
- package/dist/agent.js +473 -69
- package/dist/agent.js.map +1 -1
- package/dist/auth/cli-auth.d.ts +45 -71
- package/dist/auth/cli-auth.d.ts.map +1 -1
- package/dist/auth/cli-auth.js +208 -144
- package/dist/auth/cli-auth.js.map +1 -1
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/domains/applications.d.ts +22 -3
- package/dist/domains/applications.d.ts.map +1 -1
- package/dist/domains/applications.js +90 -20
- package/dist/domains/applications.js.map +1 -1
- package/dist/domains/branding.d.ts +47 -16
- package/dist/domains/branding.d.ts.map +1 -1
- package/dist/domains/branding.js +28 -5
- package/dist/domains/branding.js.map +1 -1
- package/dist/domains/clients.d.ts +23 -6
- package/dist/domains/clients.d.ts.map +1 -1
- package/dist/domains/clients.js +121 -21
- package/dist/domains/clients.js.map +1 -1
- package/dist/domains/config.d.ts +20 -3
- package/dist/domains/config.d.ts.map +1 -1
- package/dist/domains/config.js +30 -3
- package/dist/domains/config.js.map +1 -1
- package/dist/domains/custom-claims.d.ts +2 -1
- package/dist/domains/custom-claims.d.ts.map +1 -1
- package/dist/domains/custom-claims.js +2 -2
- package/dist/domains/custom-claims.js.map +1 -1
- package/dist/domains/exports.d.ts +6 -1
- package/dist/domains/exports.d.ts.map +1 -1
- package/dist/domains/exports.js +27 -1
- package/dist/domains/exports.js.map +1 -1
- package/dist/domains/helpers.d.ts +31 -0
- package/dist/domains/helpers.d.ts.map +1 -1
- package/dist/domains/helpers.js +72 -1
- package/dist/domains/helpers.js.map +1 -1
- package/dist/domains/imports.d.ts +8 -7
- package/dist/domains/imports.d.ts.map +1 -1
- package/dist/domains/imports.js +158 -14
- package/dist/domains/imports.js.map +1 -1
- package/dist/domains/index.d.ts +1 -1
- package/dist/domains/index.d.ts.map +1 -1
- package/dist/domains/organizations.d.ts +2 -9
- package/dist/domains/organizations.d.ts.map +1 -1
- package/dist/domains/organizations.js +2 -13
- package/dist/domains/organizations.js.map +1 -1
- package/dist/domains/permissions.d.ts +22 -4
- package/dist/domains/permissions.d.ts.map +1 -1
- package/dist/domains/permissions.js +47 -13
- package/dist/domains/permissions.js.map +1 -1
- package/dist/domains/roles.d.ts +26 -16
- package/dist/domains/roles.d.ts.map +1 -1
- package/dist/domains/roles.js +61 -31
- package/dist/domains/roles.js.map +1 -1
- package/dist/domains/user-roles.d.ts +9 -4
- package/dist/domains/user-roles.d.ts.map +1 -1
- package/dist/domains/user-roles.js +32 -6
- package/dist/domains/user-roles.js.map +1 -1
- package/dist/domains/users.d.ts +31 -26
- package/dist/domains/users.d.ts.map +1 -1
- package/dist/domains/users.js +56 -46
- package/dist/domains/users.js.map +1 -1
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.d.ts.map +1 -1
- package/dist/errors/index.js +18 -1
- package/dist/errors/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.d.ts.map +1 -1
- package/dist/pagination/index.d.ts +5 -1
- package/dist/pagination/index.d.ts.map +1 -1
- package/dist/pagination/index.js +2 -2
- package/dist/pagination/index.js.map +1 -1
- package/dist/types/applications.d.ts +27 -6
- package/dist/types/applications.d.ts.map +1 -1
- package/dist/types/branding.d.ts +38 -11
- package/dist/types/branding.d.ts.map +1 -1
- package/dist/types/branding.js +0 -5
- package/dist/types/branding.js.map +1 -1
- package/dist/types/bulk.d.ts +2 -4
- package/dist/types/bulk.d.ts.map +1 -1
- package/dist/types/clients.d.ts +98 -13
- package/dist/types/clients.d.ts.map +1 -1
- package/dist/types/common.d.ts +26 -3
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/config.d.ts +57 -21
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/config.js +1 -8
- package/dist/types/config.js.map +1 -1
- package/dist/types/exports.d.ts +17 -0
- package/dist/types/exports.d.ts.map +1 -1
- package/dist/types/imports.d.ts +388 -84
- package/dist/types/imports.d.ts.map +1 -1
- package/dist/types/imports.js +1 -7
- package/dist/types/imports.js.map +1 -1
- package/dist/types/index.d.ts +14 -14
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/organizations.d.ts +5 -9
- package/dist/types/organizations.d.ts.map +1 -1
- package/dist/types/permissions.d.ts +21 -6
- package/dist/types/permissions.d.ts.map +1 -1
- package/dist/types/roles.d.ts +3 -1
- package/dist/types/roles.d.ts.map +1 -1
- package/dist/types/user-roles.d.ts +4 -10
- package/dist/types/user-roles.d.ts.map +1 -1
- package/dist/types/users.d.ts +102 -15
- package/dist/types/users.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -2
package/dist/types/imports.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Data import / provisioning types for the Porta SDK.
|
|
3
|
-
*
|
|
4
|
-
* Types mirror the server's public data-import response shapes exactly.
|
|
5
|
-
*
|
|
6
|
-
* @module types/imports
|
|
7
|
-
*/
|
|
1
|
+
/** Public wire types for selective Porta manifest import and export. */
|
|
8
2
|
export {};
|
|
9
3
|
//# sourceMappingURL=imports.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imports.js","sourceRoot":"","sources":["../../src/types/imports.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"imports.js","sourceRoot":"","sources":["../../src/types/imports.ts"],"names":[],"mappings":"AAAA,wEAAwE"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module types
|
|
5
5
|
*/
|
|
6
|
-
export type { ListParams, PaginatedResponse, ETagResponse, HistoryEntry, } from './common.js';
|
|
7
|
-
export type { Organization, OrganizationStatus, TwoFactorPolicy, LoginMethod, CreateOrganizationInput, UpdateOrganizationInput,
|
|
6
|
+
export type { ListParams, PaginatedResponse, ETagResponse, HistoryEntry, HistoryResult, } from './common.js';
|
|
7
|
+
export type { Organization, OrganizationStatus, TwoFactorPolicy, LoginMethod, CreateOrganizationInput, UpdateOrganizationInput, } from './organizations.js';
|
|
8
8
|
export type { Application, ApplicationStatus, CreateApplicationInput, UpdateApplicationInput, ApplicationModule, CreateModuleInput, UpdateModuleInput, } from './applications.js';
|
|
9
|
-
export type { Client, ClientStatus, ClientType, GrantType, ResponseType, CreateClientInput, UpdateClientInput, ClientSecret, GenerateSecretInput, GeneratedSecret, } from './clients.js';
|
|
10
|
-
export type { User, UserStatus, CreateUserInput, UpdateUserInput, InviteUserInput, SetPasswordInput, UserListParams, } from './users.js';
|
|
11
|
-
export type { Role, CreateRoleInput, UpdateRoleInput, RoleWithPermissions
|
|
12
|
-
export type { Permission, CreatePermissionInput, } from './permissions.js';
|
|
9
|
+
export type { Client, ClientStatus, ClientType, ApplicationType, ClientSecretStatus, GrantType, ResponseType, TokenEndpointAuthMethod, CreateClientInput, UpdateClientInput, ClientSecret, GenerateSecretInput, GeneratedSecret, } from './clients.js';
|
|
10
|
+
export type { User, UserStatus, AddressInput, CreateUserInput, UpdateUserInput, InviteUserInput, InviteUserResult, SetPasswordInput, UserListParams, } from './users.js';
|
|
11
|
+
export type { Role, CreateRoleInput, UpdateRoleInput, RoleWithPermissions } from './roles.js';
|
|
12
|
+
export type { Permission, CreatePermissionInput, UpdatePermissionInput } from './permissions.js';
|
|
13
13
|
export type { ClaimDefinition, ClaimValueType, CreateClaimDefinitionInput, UpdateClaimDefinitionInput, UserClaimValue, SetUserClaimInput, } from './custom-claims.js';
|
|
14
|
-
export type { ConfigEntry, SetConfigInput, } from './config.js';
|
|
14
|
+
export type { ConfigKey, ConfigValue, ConfigGroup, ConfigValueType, ConfigUnit, ConfigApplicationMode, ConfigEntry, SetConfigInput, ConfigUpdateResult, ConfigBatchUpdateResult, } from './config.js';
|
|
15
15
|
export type { SigningKey } from './keys.js';
|
|
16
|
-
export type { AuditEntry, AuditListParams
|
|
16
|
+
export type { AuditEntry, AuditListParams } from './audit.js';
|
|
17
17
|
export type { DashboardStats, StatsOverview, OrgStats, StatusCounts, UserStatsCounts, LoginActivity, LoginActivityWindows, SystemHealth, } from './stats.js';
|
|
18
|
-
export type { AdminSession, SessionListParams, RevokeUserSessionsResult
|
|
18
|
+
export type { AdminSession, SessionListParams, RevokeUserSessionsResult } from './sessions.js';
|
|
19
19
|
export type { BulkOrgAction, BulkUserAction, BulkOrgStatusInput, BulkUserStatusInput, BulkItemResult, BulkOperationResult, } from './bulk.js';
|
|
20
|
-
export type {
|
|
21
|
-
export type { ExportEntityType, ExportFormat, ExportParams, } from './exports.js';
|
|
20
|
+
export type { BrandingAsset, BrandingAssetContentType, BrandingAssetUploadInput, UpdateBrandingSettingsInput, } from './branding.js';
|
|
21
|
+
export type { ExportEntityType, ExportFormat, ExportParams, ExportManifestRequest, ExportManifestResponse, } from './exports.js';
|
|
22
22
|
export type { TwoFactorMethod, TwoFactorStatus, TwoFactorPolicyResult, TwoFactorSummary, RegenerateRecoveryCodesResult, } from './two-factor.js';
|
|
23
|
-
export type
|
|
24
|
-
export type {
|
|
25
|
-
export type { UserClaimEntry, SetUserClaimValueInput
|
|
23
|
+
export type * from './imports.js';
|
|
24
|
+
export type { UserRoleRemovalResult } from './user-roles.js';
|
|
25
|
+
export type { UserClaimEntry, SetUserClaimValueInput } from './user-claims.js';
|
|
26
26
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,YAAY,EACV,UAAU,EACV,iBAAiB,EACjB,YAAY,EACZ,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,YAAY,EACV,UAAU,EACV,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,aAAa,GACd,MAAM,aAAa,CAAC;AAGrB,YAAY,EACV,YAAY,EACZ,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,oBAAoB,CAAC;AAG5B,YAAY,EACV,WAAW,EACX,iBAAiB,EACjB,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAG3B,YAAY,EACV,MAAM,EACN,YAAY,EACZ,UAAU,EACV,eAAe,EACf,kBAAkB,EAClB,SAAS,EACT,YAAY,EACZ,uBAAuB,EACvB,iBAAiB,EACjB,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,EACnB,eAAe,GAChB,MAAM,cAAc,CAAC;AAGtB,YAAY,EACV,IAAI,EACJ,UAAU,EACV,YAAY,EACZ,eAAe,EACf,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,GACf,MAAM,YAAY,CAAC;AAGpB,YAAY,EAAE,IAAI,EAAE,eAAe,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAG9F,YAAY,EAAE,UAAU,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAGjG,YAAY,EACV,eAAe,EACf,cAAc,EACd,0BAA0B,EAC1B,0BAA0B,EAC1B,cAAc,EACd,iBAAiB,GAClB,MAAM,oBAAoB,CAAC;AAG5B,YAAY,EACV,SAAS,EACT,WAAW,EACX,WAAW,EACX,eAAe,EACf,UAAU,EACV,qBAAqB,EACrB,WAAW,EACX,cAAc,EACd,kBAAkB,EAClB,uBAAuB,GACxB,MAAM,aAAa,CAAC;AAGrB,YAAY,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAG5C,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAG9D,YAAY,EACV,cAAc,EACd,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,YAAY,GACb,MAAM,YAAY,CAAC;AAGpB,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AAG/F,YAAY,EACV,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,mBAAmB,GACpB,MAAM,WAAW,CAAC;AAGnB,YAAY,EACV,aAAa,EACb,wBAAwB,EACxB,wBAAwB,EACxB,2BAA2B,GAC5B,MAAM,eAAe,CAAC;AAGvB,YAAY,EACV,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,cAAc,CAAC;AAKtB,YAAY,EACV,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,gBAAgB,EAChB,6BAA6B,GAC9B,MAAM,iBAAiB,CAAC;AAGzB,mBAAmB,cAAc,CAAC;AAGlC,YAAY,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAG7D,YAAY,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module types/organizations
|
|
5
5
|
*/
|
|
6
|
-
export type OrganizationStatus = 'active' | 'suspended'
|
|
6
|
+
export type OrganizationStatus = 'active' | 'suspended';
|
|
7
7
|
export type TwoFactorPolicy = 'optional' | 'required_email' | 'required_totp' | 'required_any';
|
|
8
8
|
export type LoginMethod = 'password' | 'magic_link';
|
|
9
9
|
export interface Organization {
|
|
@@ -36,8 +36,8 @@ export interface OrganizationBrandingInput {
|
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* Input for creating an organization — mirrors the server
|
|
39
|
-
* `createOrganizationSchema`. The server does
|
|
40
|
-
* on create
|
|
39
|
+
* `createOrganizationSchema`. The server does not accept `twoFactorPolicy`
|
|
40
|
+
* on create; branding is a nested object, not flat fields.
|
|
41
41
|
*/
|
|
42
42
|
export interface CreateOrganizationInput {
|
|
43
43
|
name: string;
|
|
@@ -48,8 +48,8 @@ export interface CreateOrganizationInput {
|
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
50
|
* Input for updating an organization — mirrors the server
|
|
51
|
-
* `updateOrganizationSchema`. The server does
|
|
52
|
-
* `twoFactorPolicy` on update
|
|
51
|
+
* `updateOrganizationSchema`. The server does not accept `slug` or
|
|
52
|
+
* `twoFactorPolicy` on update; branding is a nested object.
|
|
53
53
|
*/
|
|
54
54
|
export interface UpdateOrganizationInput {
|
|
55
55
|
name?: string;
|
|
@@ -57,8 +57,4 @@ export interface UpdateOrganizationInput {
|
|
|
57
57
|
defaultLoginMethods?: LoginMethod[];
|
|
58
58
|
branding?: OrganizationBrandingInput;
|
|
59
59
|
}
|
|
60
|
-
export interface BrandingInput {
|
|
61
|
-
logo?: Blob | Buffer;
|
|
62
|
-
favicon?: Blob | Buffer;
|
|
63
|
-
}
|
|
64
60
|
//# sourceMappingURL=organizations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../src/types/organizations.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,WAAW,
|
|
1
|
+
{"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../src/types/organizations.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,WAAW,CAAC;AACxD,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,gBAAgB,GAAG,eAAe,GAAG,cAAc,CAAC;AAC/F,MAAM,MAAM,WAAW,GA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AmB,CAAC,EAAE,WAAW,EAAE,CAAC;IACpC,QAAQ,CAAC,EAAE,yBAAyB,CAAC;CACtC"}
|
|
@@ -3,24 +3,39 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module types/permissions
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* A permission — mirrors the server `mapRowToPermission` (src/rbac/types.ts).
|
|
8
|
-
* The server projection has no `updatedAt` field; it was SDK drift (AR-18).
|
|
9
|
-
*/
|
|
6
|
+
/** A permission granted to roles within one application. */
|
|
10
7
|
export interface Permission {
|
|
8
|
+
/** Stable permission identifier. */
|
|
11
9
|
id: string;
|
|
10
|
+
/** Application that owns the permission. */
|
|
12
11
|
applicationId: string;
|
|
12
|
+
/** Optional application module that groups the permission. */
|
|
13
13
|
moduleId: string | null;
|
|
14
|
+
/** Human-readable permission name. */
|
|
14
15
|
name: string;
|
|
16
|
+
/** Stable permission key used in authority checks. */
|
|
15
17
|
slug: string;
|
|
18
|
+
/** Optional explanation shown to administrators. */
|
|
16
19
|
description: string | null;
|
|
20
|
+
/** ISO 8601 creation time. */
|
|
17
21
|
createdAt: string;
|
|
18
22
|
}
|
|
23
|
+
/** Input for creating a permission under the application in the request path. */
|
|
19
24
|
export interface CreatePermissionInput {
|
|
20
|
-
|
|
25
|
+
/** Human-readable permission name. */
|
|
21
26
|
name: string;
|
|
22
|
-
|
|
27
|
+
/** Exact permission claim value expected by the application, such as `CAN_ADD_ORDER`. */
|
|
28
|
+
slug: string;
|
|
29
|
+
/** Optional explanation shown to administrators. */
|
|
23
30
|
description?: string;
|
|
31
|
+
/** Optional application module identifier. */
|
|
24
32
|
moduleId?: string;
|
|
25
33
|
}
|
|
34
|
+
/** Mutable permission metadata. The permission slug remains immutable. */
|
|
35
|
+
export interface UpdatePermissionInput {
|
|
36
|
+
/** Replacement display name. */
|
|
37
|
+
name?: string;
|
|
38
|
+
/** Replacement description, or `null` to clear it. */
|
|
39
|
+
description?: string | null;
|
|
40
|
+
}
|
|
26
41
|
//# sourceMappingURL=permissions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../src/types/permissions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH
|
|
1
|
+
{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../src/types/permissions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,4DAA4D;AAC5D,MAAM,WAAW,UAAU;IACzB,oCAAoC;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,4CAA4C;IAC5C,aAAa,EAAE,MAAM,CAAC;IACtB,8DAA8D;IAC9D,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,sCAAsC;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,sDAAsD;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,oDAAoD;IACpD,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,8BAA8B;IAC9B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,iFAAiF;AACjF,MAAM,WAAW,qBAAqB;IACpC,sCAAsC;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,yFAAyF;IACzF,IAAI,EAAE,MAAM,CAAC;IACb,oDAAoD;IACpD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,0EAA0E;AAC1E,MAAM,WAAW,qBAAqB;IACpC,gCAAgC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B"}
|
package/dist/types/roles.d.ts
CHANGED
|
@@ -8,19 +8,21 @@ export interface Role {
|
|
|
8
8
|
id: string;
|
|
9
9
|
applicationId: string;
|
|
10
10
|
name: string;
|
|
11
|
+
/** Exact role claim value emitted to the application. */
|
|
11
12
|
slug: string;
|
|
12
13
|
description: string | null;
|
|
13
14
|
createdAt: string;
|
|
14
15
|
updatedAt: string;
|
|
15
16
|
}
|
|
16
17
|
export interface CreateRoleInput {
|
|
17
|
-
applicationId: string;
|
|
18
18
|
name: string;
|
|
19
|
+
/** Optional exact claim value; Porta derives a kebab-case value from `name` when omitted. */
|
|
19
20
|
slug?: string;
|
|
20
21
|
description?: string;
|
|
21
22
|
}
|
|
22
23
|
export interface UpdateRoleInput {
|
|
23
24
|
name?: string;
|
|
25
|
+
/** Replacement exact claim value. */
|
|
24
26
|
slug?: string;
|
|
25
27
|
description?: string | null;
|
|
26
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../src/types/roles.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,
|
|
1
|
+
{"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../src/types/roles.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,yDAAyD;IACzD,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,6FAA6F;IAC7F,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,mEAAmE;AACnE,MAAM,WAAW,mBAAoB,SAAQ,IAAI;IAC/C,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B"}
|
|
@@ -3,15 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module types/user-roles
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
roleSlug: string;
|
|
11
|
-
applicationId: string;
|
|
12
|
-
assignedAt: string;
|
|
13
|
-
}
|
|
14
|
-
export interface AssignRoleInput {
|
|
15
|
-
roleId: string;
|
|
6
|
+
/** Result returned after assigned roles are removed from a user. */
|
|
7
|
+
export interface UserRoleRemovalResult {
|
|
8
|
+
/** Whether the current caller must authenticate again after the committed removal. */
|
|
9
|
+
reauthenticationRequired: boolean;
|
|
16
10
|
}
|
|
17
11
|
//# sourceMappingURL=user-roles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-roles.d.ts","sourceRoot":"","sources":["../../src/types/user-roles.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,
|
|
1
|
+
{"version":3,"file":"user-roles.d.ts","sourceRoot":"","sources":["../../src/types/user-roles.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,oEAAoE;AACpE,MAAM,WAAW,qBAAqB;IACpC,sFAAsF;IACtF,wBAAwB,EAAE,OAAO,CAAC;CACnC"}
|
package/dist/types/users.d.ts
CHANGED
|
@@ -7,11 +7,10 @@ import type { TwoFactorMethod } from './two-factor.js';
|
|
|
7
7
|
/**
|
|
8
8
|
* User status values — mirrors the server `UserStatus` (src/users/types.ts).
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* `deactivated` status on the server — those were SDK drift (AR-4).
|
|
10
|
+
* Administrators move accounts between active and inactive. Locked is an
|
|
11
|
+
* automatic failed-login protection state cleared by the server cooldown.
|
|
13
12
|
*/
|
|
14
|
-
export type UserStatus = 'active' | 'inactive' | '
|
|
13
|
+
export type UserStatus = 'active' | 'inactive' | 'locked';
|
|
15
14
|
/**
|
|
16
15
|
* A Porta user — full parity with the server `User` (src/users/types.ts,
|
|
17
16
|
* `mapRowToUser`, 36 fields). All server timestamp `Date`s are serialized
|
|
@@ -58,25 +57,95 @@ export interface User {
|
|
|
58
57
|
updatedAt: string;
|
|
59
58
|
}
|
|
60
59
|
/**
|
|
61
|
-
*
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
* Address fields accepted when creating or updating a user.
|
|
61
|
+
*/
|
|
62
|
+
export interface AddressInput {
|
|
63
|
+
/** Street address, or null to clear it during an update. */
|
|
64
|
+
street?: string | null;
|
|
65
|
+
/** City or locality, or null to clear it during an update. */
|
|
66
|
+
locality?: string | null;
|
|
67
|
+
/** State, province, or region, or null to clear it during an update. */
|
|
68
|
+
region?: string | null;
|
|
69
|
+
/** Postal code, or null to clear it during an update. */
|
|
70
|
+
postalCode?: string | null;
|
|
71
|
+
/** Two-letter country code, or null to clear it during an update. */
|
|
72
|
+
country?: string | null;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Input for creating a user in an organization.
|
|
64
76
|
*/
|
|
65
77
|
export interface CreateUserInput {
|
|
78
|
+
/** Organization that will own the user. */
|
|
66
79
|
organizationId: string;
|
|
80
|
+
/** User's email address. */
|
|
67
81
|
email: string;
|
|
82
|
+
/** Optional initial password. */
|
|
83
|
+
password?: string;
|
|
84
|
+
/** OIDC given name. */
|
|
68
85
|
givenName?: string;
|
|
86
|
+
/** OIDC family name. */
|
|
69
87
|
familyName?: string;
|
|
70
|
-
|
|
88
|
+
/** OIDC middle name. */
|
|
89
|
+
middleName?: string;
|
|
90
|
+
/** OIDC nickname. */
|
|
91
|
+
nickname?: string;
|
|
92
|
+
/** OIDC preferred username. */
|
|
93
|
+
preferredUsername?: string;
|
|
94
|
+
/** OIDC profile URL. */
|
|
95
|
+
profileUrl?: string;
|
|
96
|
+
/** OIDC picture URL. */
|
|
97
|
+
pictureUrl?: string;
|
|
98
|
+
/** OIDC website URL. */
|
|
99
|
+
websiteUrl?: string;
|
|
100
|
+
/** OIDC gender value. */
|
|
101
|
+
gender?: string;
|
|
102
|
+
/** OIDC birthdate in YYYY-MM-DD form. */
|
|
103
|
+
birthdate?: string;
|
|
104
|
+
/** OIDC time-zone identifier. */
|
|
105
|
+
zoneinfo?: string;
|
|
106
|
+
/** OIDC locale. */
|
|
107
|
+
locale?: string;
|
|
108
|
+
/** OIDC phone number. */
|
|
109
|
+
phoneNumber?: string;
|
|
110
|
+
/** Structured OIDC address fields. */
|
|
111
|
+
address?: AddressInput;
|
|
71
112
|
}
|
|
72
113
|
/**
|
|
73
|
-
* Input for updating a user profile
|
|
74
|
-
*
|
|
114
|
+
* Input for updating a user's mutable profile fields.
|
|
115
|
+
*
|
|
116
|
+
* `undefined` leaves a field unchanged. `null` clears a nullable field.
|
|
75
117
|
*/
|
|
76
118
|
export interface UpdateUserInput {
|
|
77
|
-
|
|
119
|
+
/** OIDC given name. */
|
|
78
120
|
givenName?: string | null;
|
|
121
|
+
/** OIDC family name. */
|
|
79
122
|
familyName?: string | null;
|
|
123
|
+
/** OIDC middle name. */
|
|
124
|
+
middleName?: string | null;
|
|
125
|
+
/** OIDC nickname. */
|
|
126
|
+
nickname?: string | null;
|
|
127
|
+
/** OIDC preferred username. */
|
|
128
|
+
preferredUsername?: string | null;
|
|
129
|
+
/** OIDC profile URL. */
|
|
130
|
+
profileUrl?: string | null;
|
|
131
|
+
/** OIDC picture URL. */
|
|
132
|
+
pictureUrl?: string | null;
|
|
133
|
+
/** OIDC website URL. */
|
|
134
|
+
websiteUrl?: string | null;
|
|
135
|
+
/** OIDC gender value. */
|
|
136
|
+
gender?: string | null;
|
|
137
|
+
/** OIDC birthdate in YYYY-MM-DD form. */
|
|
138
|
+
birthdate?: string | null;
|
|
139
|
+
/** OIDC time-zone identifier. */
|
|
140
|
+
zoneinfo?: string | null;
|
|
141
|
+
/** OIDC locale. */
|
|
142
|
+
locale?: string | null;
|
|
143
|
+
/** OIDC phone number. */
|
|
144
|
+
phoneNumber?: string | null;
|
|
145
|
+
/** Whether the user's phone number has been verified. */
|
|
146
|
+
phoneNumberVerified?: boolean;
|
|
147
|
+
/** Structured address fields to update or clear individually. */
|
|
148
|
+
address?: AddressInput;
|
|
80
149
|
}
|
|
81
150
|
/**
|
|
82
151
|
* Input for inviting a user — mirrors the server `inviteUserSchema`
|
|
@@ -101,18 +170,36 @@ export interface InviteUserInput {
|
|
|
101
170
|
}>;
|
|
102
171
|
locale?: string;
|
|
103
172
|
}
|
|
173
|
+
/** Result returned after an invitation request is accepted. */
|
|
174
|
+
export interface InviteUserResult {
|
|
175
|
+
/** ID of the invited user. */
|
|
176
|
+
userId: string;
|
|
177
|
+
/** Email address that received the invitation. */
|
|
178
|
+
email: string;
|
|
179
|
+
/** Whether the invitation created a new user. */
|
|
180
|
+
created: boolean;
|
|
181
|
+
/** Whether the invitation email was sent. */
|
|
182
|
+
invitationSent: boolean;
|
|
183
|
+
/** ISO 8601 expiration time for the invitation. */
|
|
184
|
+
expiresAt: string;
|
|
185
|
+
}
|
|
104
186
|
export interface SetPasswordInput {
|
|
105
187
|
password: string;
|
|
106
188
|
}
|
|
107
189
|
export interface UserListParams {
|
|
190
|
+
/** One-based page number for offset pagination. */
|
|
108
191
|
page?: number;
|
|
192
|
+
/** Requested number of users. */
|
|
109
193
|
pageSize?: number;
|
|
194
|
+
/** Opaque cursor for cursor pagination. */
|
|
110
195
|
cursor?: string;
|
|
196
|
+
/** Email or profile search text. */
|
|
111
197
|
search?: string;
|
|
112
|
-
|
|
113
|
-
order?: 'asc' | 'desc';
|
|
198
|
+
/** User status filter. */
|
|
114
199
|
status?: UserStatus;
|
|
115
|
-
|
|
116
|
-
|
|
200
|
+
/** API column used for sorting. */
|
|
201
|
+
sortBy?: 'email' | 'given_name' | 'family_name' | 'created_at' | 'last_login_at';
|
|
202
|
+
/** Sort direction. */
|
|
203
|
+
sortOrder?: 'asc' | 'desc';
|
|
117
204
|
}
|
|
118
205
|
//# sourceMappingURL=users.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/types/users.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAMvD
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/types/users.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAMvD;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,CAAC;AAM1D;;;;;;GAMG;AACH,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,MAAM,CAAC;IAGvB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAGjC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;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AAE,CAAC,CAAC;IACrF,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,+DAA+D;AAC/D,MAAM,WAAW,gBAAgB;IAC/B,8BAA8B;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,OAAO,EAAE,OAAO,CAAC;IACjB,6CAA6C;IAC7C,cAAc,EAAE,OAAO,CAAC;IACxB,mDAAmD;IACnD,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAMD,MAAM,WAAW,cAAc;IAC7B,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2CAA2C;IAC3C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oCAAoC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,0BAA0B;IAC1B,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,mCAAmC;IACnC,MAAM,CAAC,EAAE,OAAO,GAAG,YAAY,GAAG,aAAa,GAAG,YAAY,GAAG,eAAe,CAAC;IACjF,sBAAsB;IACtB,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CAC5B"}
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@portaidentity/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Universal TypeScript SDK for the Porta Admin API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -30,9 +30,10 @@
|
|
|
30
30
|
"scripts": {
|
|
31
31
|
"build": "../../node_modules/@typescript/native/bin/tsc",
|
|
32
32
|
"test": "vitest run",
|
|
33
|
+
"test:coverage": "vitest run --coverage",
|
|
33
34
|
"test:watch": "vitest",
|
|
34
35
|
"lint": "eslint 'src/**/*.ts' 'tests/**/*.ts'",
|
|
35
|
-
"typecheck": "../../node_modules/@typescript/native/bin/tsc --noEmit",
|
|
36
|
+
"typecheck": "../../node_modules/@typescript/native/bin/tsc --noEmit && ../../node_modules/@typescript/native/bin/tsc --project tests/type-contracts/tsconfig.json",
|
|
36
37
|
"verify": "yarn lint && yarn typecheck && yarn test && yarn build",
|
|
37
38
|
"clean": "rm -rf dist"
|
|
38
39
|
},
|