@owlmeans/auth 0.1.18-rc.4 → 0.1.18-rc.40
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 +288 -45
- package/agent-meta/manifest.json +2 -2
- package/agent-meta/skills/auth/SKILL.md +131 -32
- package/agent-meta/skills/auth-protocol/SKILL.md +165 -90
- package/build/allowance/index.d.ts +1 -1
- package/build/allowance/index.d.ts.map +1 -1
- package/build/allowance/index.js +1 -1
- package/build/allowance/index.js.map +1 -1
- package/build/allowance/{model.d.ts → schemas.d.ts} +1 -1
- package/build/allowance/schemas.d.ts.map +1 -0
- package/build/allowance/{model.js → schemas.js} +7 -5
- package/build/allowance/schemas.js.map +1 -0
- package/build/auth/index.d.ts +1 -1
- package/build/auth/index.d.ts.map +1 -1
- package/build/auth/index.js +1 -1
- package/build/auth/index.js.map +1 -1
- package/build/auth/{model.d.ts → schemas.d.ts} +1 -1
- package/build/auth/schemas.d.ts.map +1 -0
- package/build/auth/{model.js → schemas.js} +4 -4
- package/build/auth/schemas.js.map +1 -0
- package/build/consts.d.ts +11 -1
- package/build/consts.d.ts.map +1 -1
- package/build/consts.js +12 -2
- package/build/consts.js.map +1 -1
- package/build/entity/index.d.ts +1 -1
- package/build/entity/index.js +1 -1
- package/build/entity/{profile.d.ts → schemas.d.ts} +1 -1
- package/build/entity/schemas.d.ts.map +1 -0
- package/build/entity/{profile.js → schemas.js} +4 -4
- package/build/entity/{profile.js.map → schemas.js.map} +1 -1
- package/build/errors.d.ts +15 -0
- package/build/errors.d.ts.map +1 -1
- package/build/errors.js +19 -0
- package/build/errors.js.map +1 -1
- package/build/helper/types.d.ts +22 -0
- package/build/helper/types.d.ts.map +1 -0
- package/build/helper/types.js +2 -0
- package/build/helper/types.js.map +1 -0
- package/build/helper.d.ts +9 -3
- package/build/helper.d.ts.map +1 -1
- package/build/helper.js +30 -17
- package/build/helper.js.map +1 -1
- package/build/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js.map +1 -1
- package/build/permission/index.d.ts +1 -1
- package/build/permission/index.d.ts.map +1 -1
- package/build/permission/index.js +1 -1
- package/build/permission/index.js.map +1 -1
- package/build/permission/{model.d.ts → schemas.d.ts} +1 -1
- package/build/permission/schemas.d.ts.map +1 -0
- package/build/permission/{model.js → schemas.js} +1 -1
- package/build/permission/schemas.js.map +1 -0
- package/build/rely/index.d.ts +1 -1
- package/build/rely/index.d.ts.map +1 -1
- package/build/rely/index.js +1 -1
- package/build/rely/index.js.map +1 -1
- package/build/rely/{model.d.ts → schemas.d.ts} +1 -1
- package/build/rely/schemas.d.ts.map +1 -0
- package/build/rely/{model.js → schemas.js} +1 -1
- package/build/rely/schemas.js.map +1 -0
- package/build/supervisor.d.ts +0 -8
- package/build/supervisor.d.ts.map +1 -1
- package/build/types.d.ts +23 -1
- package/build/types.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/allowance/index.ts +1 -1
- package/src/allowance/{model.ts → schemas.ts} +6 -4
- package/src/auth/index.ts +1 -1
- package/src/auth/{model.ts → schemas.ts} +3 -3
- package/src/consts.ts +14 -2
- package/src/entity/index.ts +1 -1
- package/src/entity/{profile.ts → schemas.ts} +3 -3
- package/src/errors.ts +22 -1
- package/src/helper/types.ts +22 -0
- package/src/helper.ts +44 -21
- package/src/index.ts +1 -0
- package/src/permission/index.ts +1 -1
- package/src/rely/index.ts +1 -1
- package/src/supervisor.ts +0 -8
- package/src/types.ts +30 -7
- package/tests/errors.spec.ts +19 -0
- package/build/.gitkeep +0 -0
- package/build/allowance/model.d.ts.map +0 -1
- package/build/allowance/model.js.map +0 -1
- package/build/auth/model.d.ts.map +0 -1
- package/build/auth/model.js.map +0 -1
- package/build/entity/profile.d.ts.map +0 -1
- package/build/permission/model.d.ts.map +0 -1
- package/build/permission/model.js.map +0 -1
- package/build/rely/model.d.ts.map +0 -1
- package/build/rely/model.js.map +0 -1
- /package/src/permission/{model.ts → schemas.ts} +0 -0
- /package/src/rely/{model.ts → schemas.ts} +0 -0
package/src/errors.ts
CHANGED
|
@@ -9,9 +9,17 @@ export class AuthError extends ResilientError {
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* The request names an authentication method, provider or identity this server does not know — an
|
|
14
|
+
* unregistered plugin type, a sign-in method a gate refuses, a request carrying no organization.
|
|
15
|
+
* That is the caller's request, not a crashed server, so it answers 400 (`httpStatus`, read by
|
|
16
|
+
* `@owlmeans/server-api`). It is outside the authorization family on purpose: a failed credential
|
|
17
|
+
* stays 401 (`AuthorizationError`) and a refused permission 403 (`AuthForbidden`).
|
|
18
|
+
*/
|
|
12
19
|
export class AuthUnknown extends AuthError {
|
|
13
20
|
public static override typeName: string = `${AuthError.typeName}Unknown`
|
|
14
|
-
|
|
21
|
+
public static httpStatus = 400
|
|
22
|
+
|
|
15
23
|
constructor(message: string = 'error') {
|
|
16
24
|
super(`unknown:${message}`)
|
|
17
25
|
this.type = AuthUnknown.typeName
|
|
@@ -27,6 +35,18 @@ export class AuthManagerError extends AuthError {
|
|
|
27
35
|
}
|
|
28
36
|
}
|
|
29
37
|
|
|
38
|
+
/** An authentication authority could not be consulted, so access must fail closed. */
|
|
39
|
+
export class AuthUnavailable extends AuthError {
|
|
40
|
+
public static override typeName: string = `${AuthError.typeName}Unavailable`
|
|
41
|
+
public static httpStatus = 503
|
|
42
|
+
public static allowServerErrorStatus = true
|
|
43
|
+
|
|
44
|
+
constructor(message: string = 'unavailable') {
|
|
45
|
+
super(`unavailable:${message}`)
|
|
46
|
+
this.type = AuthUnavailable.typeName
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
30
50
|
export class AuthManagerUnsupported extends AuthManagerError {
|
|
31
51
|
public static override typeName: string = `${AuthManagerError.typeName}Unsupported`
|
|
32
52
|
|
|
@@ -120,6 +140,7 @@ export class ProfileConsistencyError extends ProfileError {
|
|
|
120
140
|
ResilientError.registerErrorClass(AuthError)
|
|
121
141
|
ResilientError.registerErrorClass(AuthUnknown)
|
|
122
142
|
ResilientError.registerErrorClass(AuthManagerError)
|
|
143
|
+
ResilientError.registerErrorClass(AuthUnavailable)
|
|
123
144
|
ResilientError.registerErrorClass(AuthManagerUnsupported)
|
|
124
145
|
ResilientError.registerErrorClass(AuthenFailed)
|
|
125
146
|
ResilientError.registerErrorClass(AuthenExists)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Auth, AuthCredentials, AuthToken, Authorization } from '../types.js'
|
|
2
|
+
|
|
3
|
+
/** Checks of the authentication payloads that cross the wire. */
|
|
4
|
+
export interface AuthHelper {
|
|
5
|
+
/** Whether a value satisfies the `Auth` schema. */
|
|
6
|
+
verifyAuth: (auth: Auth) => boolean
|
|
7
|
+
/** Whether a value satisfies the `AuthCredentials` schema. */
|
|
8
|
+
verifyAuthCredentials: (auth: AuthCredentials) => boolean
|
|
9
|
+
isAuth: (auth: unknown) => auth is Auth
|
|
10
|
+
isAuthCredentials: (auth: unknown) => auth is AuthCredentials
|
|
11
|
+
isAuthToken: (auth: unknown) => auth is AuthToken
|
|
12
|
+
/**
|
|
13
|
+
* The organization slug carried by an auth payload, tolerating tokens minted before the field
|
|
14
|
+
* was named.
|
|
15
|
+
*
|
|
16
|
+
* Tokens outlive deployments: one signed with the previous release still arrives with the value
|
|
17
|
+
* under `entityId`, and it stays valid until it expires. Everything that reads the organization
|
|
18
|
+
* off a payload goes through here so that window needs no second code path — and so the day the
|
|
19
|
+
* fallback can be deleted is a single-line change rather than an audit.
|
|
20
|
+
*/
|
|
21
|
+
entitySlugOf: (payload?: Partial<Authorization> | null) => string | undefined
|
|
22
|
+
}
|
package/src/helper.ts
CHANGED
|
@@ -1,32 +1,55 @@
|
|
|
1
|
-
import type { Auth, AuthCredentials, AuthToken } from './types.js'
|
|
1
|
+
import type { Auth, AuthCredentials, AuthToken, Authorization } from './types.js'
|
|
2
2
|
import { Ajv } from 'ajv'
|
|
3
3
|
import formatsPlugin from 'ajv-formats'
|
|
4
|
-
import { AuthCredentialsSchema, AuthSchema } from './allowance/
|
|
4
|
+
import { AuthCredentialsSchema, AuthSchema } from './allowance/schemas.js'
|
|
5
|
+
import type { AuthHelper } from './helper/types.js'
|
|
5
6
|
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
export const createAuthHelper = (): AuthHelper => {
|
|
8
|
+
const ajv = new Ajv({ strict: false })
|
|
9
|
+
// @TODO There is some serious type mismatch probably because of wrong versions resolution
|
|
10
|
+
formatsPlugin(ajv as any)
|
|
9
11
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
const verifyAuth = (auth: Auth): boolean => {
|
|
13
|
+
const validate = ajv.compile(AuthSchema)
|
|
12
14
|
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
+
return validate(auth)
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const verifyAuthCredentials = (auth: AuthCredentials): boolean => {
|
|
19
|
+
const validate = ajv.compile(AuthCredentialsSchema)
|
|
20
|
+
|
|
21
|
+
return validate(auth)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const isAuth = (auth: unknown): auth is Auth =>
|
|
25
|
+
typeof auth === 'object' && auth != null
|
|
26
|
+
&& ("token" in auth) && ("isUser" in auth)
|
|
15
27
|
|
|
16
|
-
|
|
17
|
-
|
|
28
|
+
const isAuthCredentials = (auth: unknown): auth is AuthCredentials =>
|
|
29
|
+
typeof auth === 'object' && auth != null
|
|
30
|
+
&& ("challenge" in auth) && ("credential" in auth)
|
|
18
31
|
|
|
19
|
-
|
|
32
|
+
const isAuthToken = (auth: unknown): auth is AuthToken =>
|
|
33
|
+
typeof auth === 'object' && auth != null
|
|
34
|
+
&& ("token" in auth) && typeof auth.token === 'string'
|
|
35
|
+
|
|
36
|
+
const entitySlugOf = (payload?: Partial<Authorization> | null): string | undefined =>
|
|
37
|
+
payload?.entitySlug ?? (payload as { entityId?: string } | null | undefined)?.entityId
|
|
38
|
+
|
|
39
|
+
return { verifyAuth, verifyAuthCredentials, isAuth, isAuthCredentials, isAuthToken, entitySlugOf }
|
|
20
40
|
}
|
|
21
41
|
|
|
22
|
-
export const
|
|
23
|
-
|
|
24
|
-
|
|
42
|
+
export const authHelper = createAuthHelper()
|
|
43
|
+
|
|
44
|
+
/** @deprecated compat:factory-refactor — use `authHelper.isAuth(…)` */
|
|
45
|
+
export const isAuth = (auth: unknown): auth is Auth => authHelper.isAuth(auth)
|
|
46
|
+
|
|
47
|
+
/** @deprecated compat:factory-refactor — use `authHelper.isAuthCredentials(…)` */
|
|
48
|
+
export const isAuthCredentials = (auth: unknown): auth is AuthCredentials => authHelper.isAuthCredentials(auth)
|
|
25
49
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
&& ("challenge" in auth) && ("credential" in auth)
|
|
50
|
+
/** @deprecated compat:factory-refactor — use `authHelper.isAuthToken(…)` */
|
|
51
|
+
export const isAuthToken = (auth: unknown): auth is AuthToken => authHelper.isAuthToken(auth)
|
|
29
52
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
53
|
+
/** @deprecated compat:factory-refactor — use `authHelper.entitySlugOf(…)` */
|
|
54
|
+
export const entitySlugOf = (payload?: Partial<Authorization> | null): string | undefined =>
|
|
55
|
+
authHelper.entitySlugOf(payload)
|
package/src/index.ts
CHANGED
package/src/permission/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
export * from './
|
|
2
|
+
export * from './schemas.js'
|
package/src/rely/index.ts
CHANGED
package/src/supervisor.ts
CHANGED
|
@@ -14,11 +14,3 @@ export const buildSupervisorPayload = (
|
|
|
14
14
|
challenge: string, userId: string, salt: string
|
|
15
15
|
): { challenge: string, userId: string, salt: string } => ({ challenge, userId, salt })
|
|
16
16
|
|
|
17
|
-
/**
|
|
18
|
-
* Shape of the value packed into `AuthCredentials.credential` by the supervisor
|
|
19
|
-
* web plugin: the client `salt` plus the `signature` over `buildSupervisorPayload`.
|
|
20
|
-
*/
|
|
21
|
-
export interface SupervisorCredentialPayload {
|
|
22
|
-
salt: string
|
|
23
|
-
signature: string
|
|
24
|
-
}
|
package/src/types.ts
CHANGED
|
@@ -15,7 +15,7 @@ export interface AuthCredentials extends AuthPayload {
|
|
|
15
15
|
ProfilePayload:
|
|
16
16
|
groups?: string[]
|
|
17
17
|
Authorization:
|
|
18
|
-
|
|
18
|
+
entitySlug?: string
|
|
19
19
|
scopes: string[]
|
|
20
20
|
permissions?: PermissionSet[]
|
|
21
21
|
attributes?: AttributeSet[]
|
|
@@ -47,7 +47,7 @@ export interface AuthPayload extends ProfilePayload {
|
|
|
47
47
|
ProfilePayload:
|
|
48
48
|
groups?: string[]
|
|
49
49
|
Authorization:
|
|
50
|
-
|
|
50
|
+
entitySlug?: string
|
|
51
51
|
scopes: string[]
|
|
52
52
|
permissions?: PermissionSet[]
|
|
53
53
|
attributes?: AttributeSet[]
|
|
@@ -65,7 +65,7 @@ export interface ProfilePayload extends Authorization {
|
|
|
65
65
|
groups?: string[]
|
|
66
66
|
/**
|
|
67
67
|
Authorization:
|
|
68
|
-
|
|
68
|
+
entitySlug?: string
|
|
69
69
|
scopes: string[]
|
|
70
70
|
permissions?: PermissionSet[]
|
|
71
71
|
attributes?: AttributeSet[]
|
|
@@ -75,7 +75,17 @@ export interface ProfilePayload extends Authorization {
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
export interface Authorization {
|
|
78
|
-
|
|
78
|
+
/**
|
|
79
|
+
* The organization entity's slug — renameable, and the ONLY entity value that travels on the
|
|
80
|
+
* wire: in tokens, in URLs and in request bodies.
|
|
81
|
+
*
|
|
82
|
+
* It is deliberately NOT a database key. An implementation that stores things per organization
|
|
83
|
+
* keeps its own stable `entityId` on its records and resolves this slug to it at the boundary,
|
|
84
|
+
* so a rename costs one registry write instead of a migration of every collection, object name
|
|
85
|
+
* and third-party record that ever referenced the organization. Basic auth knows nothing about
|
|
86
|
+
* that id — see `@owlmeans/auth-common`'s entity resolver for the contract that does.
|
|
87
|
+
*/
|
|
88
|
+
entitySlug?: string
|
|
79
89
|
scopes: string[]
|
|
80
90
|
permissions?: PermissionSet[]
|
|
81
91
|
attributes?: AttributeSet[]
|
|
@@ -98,7 +108,7 @@ export interface Profile extends ProfilePayload {
|
|
|
98
108
|
ProfilePayload:
|
|
99
109
|
groups?: string[]
|
|
100
110
|
Authorization:
|
|
101
|
-
|
|
111
|
+
entitySlug?: string
|
|
102
112
|
scopes: string[]
|
|
103
113
|
permissions?: PermissionSet[]
|
|
104
114
|
attributes?: AttributeSet[]
|
|
@@ -111,6 +121,10 @@ export interface Auth extends AuthPayload {
|
|
|
111
121
|
token: string
|
|
112
122
|
isUser: boolean
|
|
113
123
|
createdAt: Date
|
|
124
|
+
/** Opaque session registry key; it is not an organization identifier. */
|
|
125
|
+
sessionId?: string
|
|
126
|
+
/** Monotonic authorization revision supplied by the session registry. */
|
|
127
|
+
authorizationVersion?: number
|
|
114
128
|
/**
|
|
115
129
|
AuthPayload:
|
|
116
130
|
type: string
|
|
@@ -122,7 +136,7 @@ export interface Auth extends AuthPayload {
|
|
|
122
136
|
ProfilePayload:
|
|
123
137
|
groups?: string[]
|
|
124
138
|
Authorization:
|
|
125
|
-
|
|
139
|
+
entitySlug?: string
|
|
126
140
|
scopes: string[]
|
|
127
141
|
permissions?: PermissionSet[]
|
|
128
142
|
attributes?: AttributeSet[]
|
|
@@ -160,7 +174,7 @@ export interface AllowanceRequest extends Partial<AuthPayload> {
|
|
|
160
174
|
ProfilePayload:
|
|
161
175
|
groups?: string[]
|
|
162
176
|
Authorization:
|
|
163
|
-
|
|
177
|
+
entitySlug?: string
|
|
164
178
|
scopes?: string[]
|
|
165
179
|
permissions?: PermissionSet[]
|
|
166
180
|
attributes?: AttributeSet[]
|
|
@@ -176,3 +190,12 @@ export interface AllowanceResponse {
|
|
|
176
190
|
export interface AuthToken {
|
|
177
191
|
token: string
|
|
178
192
|
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Shape of the value packed into `AuthCredentials.credential` by the supervisor
|
|
196
|
+
* web plugin: the client `salt` plus the `signature` over `buildSupervisorPayload`.
|
|
197
|
+
*/
|
|
198
|
+
export interface SupervisorCredentialPayload {
|
|
199
|
+
salt: string
|
|
200
|
+
signature: string
|
|
201
|
+
}
|
package/tests/errors.spec.ts
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
AuthorizationError,
|
|
6
6
|
AuthenFailed,
|
|
7
7
|
AuthenPayloadError,
|
|
8
|
+
AuthUnknown,
|
|
8
9
|
} from '@owlmeans/auth'
|
|
9
10
|
|
|
10
11
|
describe('@owlmeans/auth — error inheritance chain', () => {
|
|
@@ -49,3 +50,21 @@ describe('@owlmeans/auth — error inheritance chain', () => {
|
|
|
49
50
|
expect(thrown).toHaveLength(3)
|
|
50
51
|
})
|
|
51
52
|
})
|
|
53
|
+
|
|
54
|
+
describe('@owlmeans/auth — declared HTTP statuses', () => {
|
|
55
|
+
// An unknown method, provider or identity is the caller's request — never a crashed server (500).
|
|
56
|
+
test('AuthUnknown declares 400 and stays outside the authorization family', () => {
|
|
57
|
+
const err = new AuthUnknown('email-otp')
|
|
58
|
+
expect(AuthUnknown.httpStatus).toBe(400)
|
|
59
|
+
expect((err.constructor as { httpStatus?: unknown }).httpStatus).toBe(400)
|
|
60
|
+
expect(err).toBeInstanceOf(AuthError)
|
|
61
|
+
expect(err).not.toBeInstanceOf(AuthorizationError)
|
|
62
|
+
})
|
|
63
|
+
|
|
64
|
+
// Their 401/403 comes from the family mapping in `@owlmeans/server-api`, never from a declaration.
|
|
65
|
+
test('the authorization family declares no status of its own', () => {
|
|
66
|
+
for (const refusal of [AuthorizationError, AuthForbidden]) {
|
|
67
|
+
expect([refusal.typeName, (refusal as { httpStatus?: unknown }).httpStatus]).toEqual([refusal.typeName, undefined])
|
|
68
|
+
}
|
|
69
|
+
})
|
|
70
|
+
})
|
package/build/.gitkeep
DELETED
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/allowance/model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AACzC,OAAO,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAQvF,eAAO,MAAM,wBAAwB,EAAE,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,CAkBvF,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,cAAc,CAAC,gBAAgB,CAQnE,CAAA;AAED,eAAO,MAAM,qBAAqB,EAAE,cAAc,CAAC,eAAe,CAajE,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,cAAc,CAAC,IAAI,CAa3C,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/allowance/model.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,cAAc,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,aAAa,EAAE,UAAU,EAC9E,gBAAgB,EAAE,cAAc,EACjC,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAEhF,MAAM,CAAC,MAAM,wBAAwB,GAAuD;IAC1F,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,IAAI,EAAE,EAAE,GAAG,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC3C,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;QACzE,MAAM,EAAE,EAAE,GAAG,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC5C,S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E,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;KAC1E;IACD,QAAQ,EAAE,EAAE;IACZ,oBAAoB,EAAE,KAAK;CAC5B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../src/entity/profile.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AACzC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAI1C,eAAO,MAAM,aAAa,EAAE,cAAc,CAAC,OAAO,CAiBjD,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/permission/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AACpC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAGtE,eAAO,MAAM,iBAAiB,EAAE,cAAc,CAAC,WAAW,CAIzD,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,cAAc,CAAC,aAAa,CAU7D,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,cAAc,CAAC,YAAY,CAQ3D,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/permission/model.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAE1F,MAAM,CAAC,MAAM,iBAAiB,GAAgC;IAC5D,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,EAAE,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE;IACrE,QAAQ,EAAE,EAAE;CACb,CAAA;AAED,MAAM,CAAC,MAAM,mBAAmB,GAAkC;IAChE,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE;QACvE,KAAK,EAAE,gBAAgB;QACvB,WAAW,EAAE,iBAAiB;QAC9B,SAAS,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,mBAAmB,EAAE,QAAQ,EAAE,IAAI,EAAE;KACzE;IACD,QAAQ,EAAE,CAAC,OAAO,EAAE,aAAa,CAAC;IAClC,oBAAoB,EAAE,KAAK;CAC5B,CAAA;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAiC;IAC9D,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,KAAK,EAAE,gBAAgB;QACvB,UAAU,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,oBAAoB,EAAE;KAC3D;IACD,QAAQ,EAAE,CAAC,OAAO,EAAE,YAAY,CAAC;IACjC,oBAAoB,EAAE,KAAK;CAC5B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/rely/model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAE3C,eAAO,MAAM,mBAAmB,EAAE,cAAc,CAAC,SAAS,CAUzD,CAAA"}
|
package/build/rely/model.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/rely/model.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,mBAAmB,GAA8B;IAC5D,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE;QACpE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE;QACtE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE;QACrE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE;KACvD;IACD,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,oBAAoB,EAAE,KAAK;CAC5B,CAAA"}
|
|
File without changes
|
|
File without changes
|