@dads-framework/identity 0.0.0-stage → 0.2.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/LICENSE.md +21 -0
- package/README.md +145 -2
- package/dist/identity-types.d.ts +25 -0
- package/dist/identity-types.d.ts.map +1 -0
- package/dist/identity-types.js +2 -0
- package/dist/identity-types.js.map +1 -0
- package/dist/identity.tsbuildinfo +1 -0
- package/dist/impersonation/audit.d.ts +15 -0
- package/dist/impersonation/audit.d.ts.map +1 -0
- package/dist/impersonation/audit.js +24 -0
- package/dist/impersonation/audit.js.map +1 -0
- package/dist/impersonation/create-impersonation.d.ts +3 -0
- package/dist/impersonation/create-impersonation.d.ts.map +1 -0
- package/dist/impersonation/create-impersonation.js +170 -0
- package/dist/impersonation/create-impersonation.js.map +1 -0
- package/dist/impersonation/index.d.ts +4 -0
- package/dist/impersonation/index.d.ts.map +1 -0
- package/dist/impersonation/index.js +3 -0
- package/dist/impersonation/index.js.map +1 -0
- package/dist/impersonation/types.d.ts +56 -0
- package/dist/impersonation/types.d.ts.map +1 -0
- package/dist/impersonation/types.js +2 -0
- package/dist/impersonation/types.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/normalize-identity-email.d.ts +3 -0
- package/dist/normalize-identity-email.d.ts.map +1 -0
- package/dist/normalize-identity-email.js +9 -0
- package/dist/normalize-identity-email.js.map +1 -0
- package/dist/scim/directory.d.ts +55 -0
- package/dist/scim/directory.d.ts.map +1 -0
- package/dist/scim/directory.js +14 -0
- package/dist/scim/directory.js.map +1 -0
- package/dist/scim/discovery.d.ts +2 -0
- package/dist/scim/discovery.d.ts.map +1 -0
- package/dist/scim/discovery.js +128 -0
- package/dist/scim/discovery.js.map +1 -0
- package/dist/scim/group-data.d.ts +5 -0
- package/dist/scim/group-data.d.ts.map +1 -0
- package/dist/scim/group-data.js +38 -0
- package/dist/scim/group-data.js.map +1 -0
- package/dist/scim/group-directory.d.ts +33 -0
- package/dist/scim/group-directory.d.ts.map +1 -0
- package/dist/scim/group-directory.js +2 -0
- package/dist/scim/group-directory.js.map +1 -0
- package/dist/scim/group-handler.d.ts +3 -0
- package/dist/scim/group-handler.d.ts.map +1 -0
- package/dist/scim/group-handler.js +87 -0
- package/dist/scim/group-handler.js.map +1 -0
- package/dist/scim/handler.d.ts +11 -0
- package/dist/scim/handler.d.ts.map +1 -0
- package/dist/scim/handler.js +126 -0
- package/dist/scim/handler.js.map +1 -0
- package/dist/scim/index.d.ts +6 -0
- package/dist/scim/index.d.ts.map +1 -0
- package/dist/scim/index.js +3 -0
- package/dist/scim/index.js.map +1 -0
- package/dist/scim/patch-group.d.ts +3 -0
- package/dist/scim/patch-group.d.ts.map +1 -0
- package/dist/scim/patch-group.js +94 -0
- package/dist/scim/patch-group.js.map +1 -0
- package/dist/scim/patch-operations.d.ts +7 -0
- package/dist/scim/patch-operations.d.ts.map +1 -0
- package/dist/scim/patch-operations.js +33 -0
- package/dist/scim/patch-operations.js.map +1 -0
- package/dist/scim/patch-user.d.ts +3 -0
- package/dist/scim/patch-user.d.ts.map +1 -0
- package/dist/scim/patch-user.js +84 -0
- package/dist/scim/patch-user.js.map +1 -0
- package/dist/scim/protocol.d.ts +23 -0
- package/dist/scim/protocol.d.ts.map +1 -0
- package/dist/scim/protocol.js +114 -0
- package/dist/scim/protocol.js.map +1 -0
- package/dist/scim/resource-projection.d.ts +5 -0
- package/dist/scim/resource-projection.d.ts.map +1 -0
- package/dist/scim/resource-projection.js +35 -0
- package/dist/scim/resource-projection.js.map +1 -0
- package/dist/scim/user-data.d.ts +5 -0
- package/dist/scim/user-data.d.ts.map +1 -0
- package/dist/scim/user-data.js +74 -0
- package/dist/scim/user-data.js.map +1 -0
- package/dist/scim/user-query.d.ts +6 -0
- package/dist/scim/user-query.d.ts.map +1 -0
- package/dist/scim/user-query.js +59 -0
- package/dist/scim/user-query.js.map +1 -0
- package/dist/scim/user-response.d.ts +3 -0
- package/dist/scim/user-response.d.ts.map +1 -0
- package/dist/scim/user-response.js +18 -0
- package/dist/scim/user-response.js.map +1 -0
- package/dist/testing/identity-session-conformance.d.ts +12 -0
- package/dist/testing/identity-session-conformance.d.ts.map +1 -0
- package/dist/testing/identity-session-conformance.js +30 -0
- package/dist/testing/identity-session-conformance.js.map +1 -0
- package/dist/testing/in-memory-identity.d.ts +7 -0
- package/dist/testing/in-memory-identity.d.ts.map +1 -0
- package/dist/testing/in-memory-identity.js +45 -0
- package/dist/testing/in-memory-identity.js.map +1 -0
- package/dist/testing/index.d.ts +3 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +3 -0
- package/dist/testing/index.js.map +1 -0
- package/package.json +45 -4
- package/src/impersonation/README.md +35 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Bryton Cooper
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,146 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @dads-framework/identity
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The account, session, and mail contracts used by Dads applications and their identity adapters.
|
|
4
|
+
|
|
5
|
+
## Try it
|
|
6
|
+
|
|
7
|
+
In the generated starter, [`assembly/session-subjects.ts`](../../../apps/kit-workbench/assembly/session-subjects.ts) reads the
|
|
8
|
+
`Identity` session and maps the authenticated account to an authorization
|
|
9
|
+
subject at the HTTP boundary.
|
|
10
|
+
|
|
11
|
+
Use Node.js 22 or later. The test adapter uses an explicitly seeded cookie
|
|
12
|
+
and a fixed clock. It needs no identity provider or database.
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
npm install @dads-framework/identity
|
|
16
|
+
npm install -D tsx
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Save as `read-session.mts` and run `npx tsx read-session.mts`.
|
|
20
|
+
|
|
21
|
+
<!-- dads:check-example -->
|
|
22
|
+
|
|
23
|
+
```ts
|
|
24
|
+
import type { Identity } from "@dads-framework/identity";
|
|
25
|
+
import {
|
|
26
|
+
inMemoryIdentity,
|
|
27
|
+
inMemoryIdentityCookie,
|
|
28
|
+
} from "@dads-framework/identity/testing";
|
|
29
|
+
|
|
30
|
+
async function currentAccount(identity: Identity, headers: Headers) {
|
|
31
|
+
const session = await identity.readSession(headers);
|
|
32
|
+
return session?.account ?? null;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const identity = inMemoryIdentity(
|
|
36
|
+
{
|
|
37
|
+
fixture: {
|
|
38
|
+
account: {
|
|
39
|
+
id: "alice",
|
|
40
|
+
email: "alice@example.test",
|
|
41
|
+
emailVerified: true,
|
|
42
|
+
},
|
|
43
|
+
expiresAt: new Date("2030-01-02T00:00:00Z"),
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
() => new Date("2030-01-01T00:00:00Z"),
|
|
47
|
+
);
|
|
48
|
+
const headers = new Headers({ cookie: inMemoryIdentityCookie("fixture") });
|
|
49
|
+
console.log((await currentAccount(identity, headers))?.id);
|
|
50
|
+
console.log(await currentAccount(identity, new Headers()));
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
The script prints `alice` for the seeded session and `null` without a cookie.
|
|
54
|
+
|
|
55
|
+
## Use it
|
|
56
|
+
|
|
57
|
+
The application mounts `Identity.handle` at the adapter's HTTP boundary and
|
|
58
|
+
calls `Identity.readSession` in server-side authentication. Map a successful
|
|
59
|
+
lookup to the application's account or authorization subject. An email
|
|
60
|
+
address or user ID from a request body is never proof of identity.
|
|
61
|
+
|
|
62
|
+
`normalizeIdentityEmail` accepts an untrusted value and returns a normalized
|
|
63
|
+
email address for invitations or `null` when it cannot use the value.
|
|
64
|
+
|
|
65
|
+
## What it refuses to do
|
|
66
|
+
|
|
67
|
+
This package has no database, password implementation, network calls, or role
|
|
68
|
+
policy. The identity adapter verifies the session and the application decides
|
|
69
|
+
what its account can access.
|
|
70
|
+
|
|
71
|
+
## Contract
|
|
72
|
+
|
|
73
|
+
`IdentitySession.account` contains an ID, email, and email verification flag.
|
|
74
|
+
`expiresAt` is the server-side session expiration. A missing, expired, or revoked
|
|
75
|
+
session resolves to `null`. Operational failures can reject the lookup and
|
|
76
|
+
must fail closed in the application.
|
|
77
|
+
|
|
78
|
+
`EnqueueIdentityEmail` receives an address and a confidential link.
|
|
79
|
+
Applications own message delivery and keep addresses and links out of logs.
|
|
80
|
+
|
|
81
|
+
## Testing sessions
|
|
82
|
+
|
|
83
|
+
`@dads-framework/identity/testing` provides `inMemoryIdentity` for tests that
|
|
84
|
+
seed verified sessions and control their clock.
|
|
85
|
+
`verifyIdentitySessionConformance` runs the same read, expiry, and revocation
|
|
86
|
+
laws against that stand-in and the database adapter.
|
|
87
|
+
|
|
88
|
+
## SCIM user provisioning
|
|
89
|
+
|
|
90
|
+
Import `createScimHandler` from `@dads-framework/identity/scim` and mount
|
|
91
|
+
its Fetch handler at the configured SCIM URL. This example assumes the
|
|
92
|
+
application supplies a `ScimDirectory` and a bearer credential lookup.
|
|
93
|
+
|
|
94
|
+
```ts
|
|
95
|
+
import {
|
|
96
|
+
createScimHandler,
|
|
97
|
+
type ScimDirectory,
|
|
98
|
+
} from "@dads-framework/identity/scim";
|
|
99
|
+
|
|
100
|
+
export function provisioning(
|
|
101
|
+
directory: ScimDirectory,
|
|
102
|
+
tenantForCredential: (token: string) => Promise<string | null>,
|
|
103
|
+
) {
|
|
104
|
+
return createScimHandler({
|
|
105
|
+
baseUrl: "https://example.com/scim/v2",
|
|
106
|
+
authenticate: tenantForCredential,
|
|
107
|
+
directory,
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
The credential lookup returns the credential's tenant identifier or `null`.
|
|
113
|
+
Every directory call uses that tenant. The application owns credential issuance,
|
|
114
|
+
revocation, and storage, and serves the handler over HTTPS. The directory
|
|
115
|
+
allocates stable IDs, scopes every read and write, enforces case-insensitive
|
|
116
|
+
`userName` uniqueness within a tenant, and runs each update callback atomically.
|
|
117
|
+
A throwing update must roll back. IDs must fit in a single URL path segment.
|
|
118
|
+
A successful delete makes the user undiscoverable and retires its ID.
|
|
119
|
+
|
|
120
|
+
The handler implements SCIM User create, get, list, replace, patch, and delete.
|
|
121
|
+
Request bodies are limited to 64 KiB.
|
|
122
|
+
Set `active` to `false` to deactivate. List supports one-based `startIndex`,
|
|
123
|
+
`count` up to 100, and a single `eq` filter on `id`, `userName`, `externalId`,
|
|
124
|
+
`displayName`, `active`, or `emails.value`. PATCH supports add, replace, and
|
|
125
|
+
remove on supported writable fields, including individual `name` fields and
|
|
126
|
+
the whole `emails` collection. The schema endpoint lists supported User fields.
|
|
127
|
+
Service provider discovery advertises unsupported bulk, sort, password change,
|
|
128
|
+
and ETag capabilities. User schema extensions and filtered User PATCH paths
|
|
129
|
+
are outside this profile.
|
|
130
|
+
|
|
131
|
+
Supply a `ScimGroupDirectory` as the optional `groups` handler option to
|
|
132
|
+
expose Groups in discovery. The Group profile supports create, get, list,
|
|
133
|
+
replace, patch, and delete. List accepts an `eq` filter on `displayName`,
|
|
134
|
+
`externalId`, or `id`. PATCH supports adding and replacing the whole
|
|
135
|
+
`members` collection and removing members through `members[value eq "user-id"]`
|
|
136
|
+
or an explicit list of member values. Groups accept up to 1,000 members per
|
|
137
|
+
resource. Each member must refer to a SCIM User in the credential tenant.
|
|
138
|
+
The directory validates those references in the same transaction as the write.
|
|
139
|
+
SCIM group membership is directory data. Application roles are managed separately.
|
|
140
|
+
|
|
141
|
+
See [SCIM Core Schema](https://www.rfc-editor.org/rfc/rfc7643) and
|
|
142
|
+
[SCIM Protocol](https://www.rfc-editor.org/rfc/rfc7644).
|
|
143
|
+
|
|
144
|
+
## Staff impersonation
|
|
145
|
+
|
|
146
|
+
Use a short-lived grant to let a staff member act as a specific account in one tenant. The caller keeps their own session, so the audit trail can record who acted and on whose behalf. [Configure staff impersonation](./src/impersonation/README.md)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** Account identity proven by a server-side session lookup. */
|
|
2
|
+
export type IdentityAccount = {
|
|
3
|
+
readonly id: string;
|
|
4
|
+
readonly email: string;
|
|
5
|
+
readonly emailVerified: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type IdentitySession = {
|
|
8
|
+
readonly account: IdentityAccount;
|
|
9
|
+
/** Stable server-side session identifier. Never a session credential. */
|
|
10
|
+
readonly sessionId?: string;
|
|
11
|
+
readonly expiresAt: Date;
|
|
12
|
+
};
|
|
13
|
+
/** Mount the handler at the application's identity route boundary. */
|
|
14
|
+
export type Identity = {
|
|
15
|
+
readonly handle: (request: Request) => Promise<Response>;
|
|
16
|
+
readonly readSession: (headers: Headers) => Promise<IdentitySession | null>;
|
|
17
|
+
};
|
|
18
|
+
export type IdentityEmail = {
|
|
19
|
+
readonly kind: "verify-email" | "reset-password" | "account-invitation";
|
|
20
|
+
readonly to: string;
|
|
21
|
+
readonly url: string;
|
|
22
|
+
};
|
|
23
|
+
/** Enqueue confidential messages through the application's mail transport. */
|
|
24
|
+
export type EnqueueIdentityEmail = (message: IdentityEmail) => Promise<void>;
|
|
25
|
+
//# sourceMappingURL=identity-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identity-types.d.ts","sourceRoot":"","sources":["../src/identity-types.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,yEAAyE;IACzE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC;CAC1B,CAAC;AAEF,sEAAsE;AACtE,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IACzD,QAAQ,CAAC,WAAW,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,CAAC;CAC7E,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,IAAI,EAAE,cAAc,GAAG,gBAAgB,GAAG,oBAAoB,CAAC;IACxE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,8EAA8E;AAC9E,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,EAAE,aAAa,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identity-types.js","sourceRoot":"","sources":["../src/identity-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":"7.0.2","root":[[64,88]],"packageJsons":["../../../../node_modules/@types/node/package.json","../../../../node_modules/buffer/package.json","../../../../node_modules/events/package.json","../../../../node_modules/process/package.json","../../../../node_modules/punycode/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/undici-types/package.json","../package.json"],"missingPackageJsons":["../../../../node_modules/@types/assert/package.json","../../../../node_modules/@types/assert/strict/package.json","../../../../node_modules/@types/async_hooks/package.json","../../../../node_modules/@types/child_process/package.json","../../../../node_modules/@types/cluster/package.json","../../../../node_modules/@types/console/package.json","../../../../node_modules/@types/constants/package.json","../../../../node_modules/@types/crypto/package.json","../../../../node_modules/@types/dgram/package.json","../../../../node_modules/@types/diagnostics_channel/package.json","../../../../node_modules/@types/dns/package.json","../../../../node_modules/@types/dns/promises/package.json","../../../../node_modules/@types/domain/package.json","../../../../node_modules/@types/events/package.json","../../../../node_modules/@types/fs/package.json","../../../../node_modules/@types/fs/promises/package.json","../../../../node_modules/@types/http/package.json","../../../../node_modules/@types/http2/package.json","../../../../node_modules/@types/https/package.json","../../../../node_modules/@types/inspector/package.json","../../../../node_modules/@types/inspector/promises/package.json","../../../../node_modules/@types/module/package.json","../../../../node_modules/@types/net/package.json","../../../../node_modules/@types/node/assert/package.json","../../../../node_modules/@types/node/compatibility/package.json","../../../../node_modules/@types/node/dns/package.json","../../../../node_modules/@types/node/fs/package.json","../../../../node_modules/@types/node/readline/package.json","../../../../node_modules/@types/node/stream/package.json","../../../../node_modules/@types/node/timers/package.json","../../../../node_modules/@types/node/web-globals/package.json","../../../../node_modules/@types/os/package.json","../../../../node_modules/@types/path/package.json","../../../../node_modules/@types/path/posix/package.json","../../../../node_modules/@types/path/win32/package.json","../../../../node_modules/@types/perf_hooks/package.json","../../../../node_modules/@types/process/package.json","../../../../node_modules/@types/punycode/package.json","../../../../node_modules/@types/querystring/package.json","../../../../node_modules/@types/readline/package.json","../../../../node_modules/@types/readline/promises/package.json","../../../../node_modules/@types/repl/package.json","../../../../node_modules/@types/stream/consumers/package.json","../../../../node_modules/@types/stream/package.json","../../../../node_modules/@types/stream/promises/package.json","../../../../node_modules/@types/stream/web/package.json","../../../../node_modules/@types/string_decoder/package.json","../../../../node_modules/@types/timers/package.json","../../../../node_modules/@types/timers/promises/package.json","../../../../node_modules/@types/tls/package.json","../../../../node_modules/@types/trace_events/package.json","../../../../node_modules/@types/tty/package.json","../../../../node_modules/@types/url/package.json","../../../../node_modules/@types/util/package.json","../../../../node_modules/@types/util/types/package.json","../../../../node_modules/@types/v8/package.json","../../../../node_modules/@types/vm/package.json","../../../../node_modules/@types/wasi/package.json","../../../../node_modules/@types/worker_threads/package.json","../../../../node_modules/@types/zlib/package.json","../../../../node_modules/assert/package.json","../../../../node_modules/assert/strict/package.json","../../../../node_modules/async_hooks/package.json","../../../../node_modules/child_process/package.json","../../../../node_modules/cluster/package.json","../../../../node_modules/console/package.json","../../../../node_modules/constants/package.json","../../../../node_modules/crypto/package.json","../../../../node_modules/dgram/package.json","../../../../node_modules/diagnostics_channel/package.json","../../../../node_modules/dns/package.json","../../../../node_modules/dns/promises/package.json","../../../../node_modules/domain/package.json","../../../../node_modules/fs/package.json","../../../../node_modules/fs/promises/package.json","../../../../node_modules/http/package.json","../../../../node_modules/http2/package.json","../../../../node_modules/https/package.json","../../../../node_modules/inspector/package.json","../../../../node_modules/inspector/promises/package.json","../../../../node_modules/module/package.json","../../../../node_modules/net/package.json","../../../../node_modules/os/package.json","../../../../node_modules/path/package.json","../../../../node_modules/path/posix/package.json","../../../../node_modules/path/win32/package.json","../../../../node_modules/perf_hooks/package.json","../../../../node_modules/querystring/package.json","../../../../node_modules/readline/package.json","../../../../node_modules/readline/promises/package.json","../../../../node_modules/repl/package.json","../../../../node_modules/stream/consumers/package.json","../../../../node_modules/stream/package.json","../../../../node_modules/stream/promises/package.json","../../../../node_modules/stream/web/package.json","../../../../node_modules/timers/package.json","../../../../node_modules/timers/promises/package.json","../../../../node_modules/tls/package.json","../../../../node_modules/trace_events/package.json","../../../../node_modules/tty/package.json","../../../../node_modules/url/package.json","../../../../node_modules/util/package.json","../../../../node_modules/util/types/package.json","../../../../node_modules/v8/package.json","../../../../node_modules/vm/package.json","../../../../node_modules/wasi/package.json","../../../../node_modules/worker_threads/package.json","../../../../node_modules/zlib/package.json"],"fileNames":["lib.es5.d.ts","lib.es2015.d.ts","lib.es2016.d.ts","lib.es2017.d.ts","lib.es2018.d.ts","lib.es2019.d.ts","lib.es2020.d.ts","lib.es2021.d.ts","lib.es2022.d.ts","lib.es2023.d.ts","lib.es2015.core.d.ts","lib.es2015.collection.d.ts","lib.es2015.generator.d.ts","lib.es2015.iterable.d.ts","lib.es2015.promise.d.ts","lib.es2015.proxy.d.ts","lib.es2015.reflect.d.ts","lib.es2015.symbol.d.ts","lib.es2015.symbol.wellknown.d.ts","lib.es2016.array.include.d.ts","lib.es2016.intl.d.ts","lib.es2017.arraybuffer.d.ts","lib.es2017.date.d.ts","lib.es2017.object.d.ts","lib.es2017.sharedmemory.d.ts","lib.es2017.string.d.ts","lib.es2017.intl.d.ts","lib.es2017.typedarrays.d.ts","lib.es2018.asyncgenerator.d.ts","lib.es2018.asynciterable.d.ts","lib.es2018.intl.d.ts","lib.es2018.promise.d.ts","lib.es2018.regexp.d.ts","lib.es2019.array.d.ts","lib.es2019.object.d.ts","lib.es2019.string.d.ts","lib.es2019.symbol.d.ts","lib.es2019.intl.d.ts","lib.es2020.bigint.d.ts","lib.es2020.date.d.ts","lib.es2020.promise.d.ts","lib.es2020.sharedmemory.d.ts","lib.es2020.string.d.ts","lib.es2020.symbol.wellknown.d.ts","lib.es2020.intl.d.ts","lib.es2020.number.d.ts","lib.es2021.promise.d.ts","lib.es2021.string.d.ts","lib.es2021.weakref.d.ts","lib.es2021.intl.d.ts","lib.es2022.array.d.ts","lib.es2022.error.d.ts","lib.es2022.intl.d.ts","lib.es2022.object.d.ts","lib.es2022.string.d.ts","lib.es2022.regexp.d.ts","lib.es2023.array.d.ts","lib.es2023.collection.d.ts","lib.es2023.intl.d.ts","lib.es2025.float16.d.ts","lib.esnext.disposable.d.ts","lib.decorators.d.ts","lib.decorators.legacy.d.ts","../src/identity-types.ts","../src/normalize-identity-email.ts","../src/index.ts","../src/impersonation/types.ts","../src/impersonation/audit.ts","../src/impersonation/create-impersonation.ts","../src/impersonation/index.ts","../src/scim/directory.ts","../src/scim/protocol.ts","../src/scim/user-data.ts","../src/scim/user-query.ts","../src/scim/discovery.ts","../src/scim/group-directory.ts","../src/scim/group-data.ts","../src/scim/patch-operations.ts","../src/scim/patch-group.ts","../src/scim/resource-projection.ts","../src/scim/group-handler.ts","../src/scim/patch-user.ts","../src/scim/user-response.ts","../src/scim/handler.ts","../src/scim/index.ts","../src/testing/identity-session-conformance.ts","../src/testing/in-memory-identity.ts","../src/testing/index.ts","../../../../node_modules/@types/node/compatibility/iterators.d.ts","../../../../node_modules/@types/node/globals.typedarray.d.ts","../../../../node_modules/@types/node/buffer.buffer.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../../node_modules/@types/node/web-globals/crypto.d.ts","../../../../node_modules/@types/node/web-globals/domexception.d.ts","../../../../node_modules/@types/node/web-globals/events.d.ts","../../../../node_modules/undici-types/utility.d.ts","../../../../node_modules/undici-types/header.d.ts","../../../../node_modules/undici-types/readable.d.ts","../../../../node_modules/undici-types/fetch.d.ts","../../../../node_modules/undici-types/formdata.d.ts","../../../../node_modules/undici-types/connector.d.ts","../../../../node_modules/undici-types/client-stats.d.ts","../../../../node_modules/undici-types/client.d.ts","../../../../node_modules/undici-types/errors.d.ts","../../../../node_modules/undici-types/dispatcher.d.ts","../../../../node_modules/undici-types/global-dispatcher.d.ts","../../../../node_modules/undici-types/global-origin.d.ts","../../../../node_modules/undici-types/pool-stats.d.ts","../../../../node_modules/undici-types/pool.d.ts","../../../../node_modules/undici-types/handlers.d.ts","../../../../node_modules/undici-types/balanced-pool.d.ts","../../../../node_modules/undici-types/round-robin-pool.d.ts","../../../../node_modules/undici-types/h2c-client.d.ts","../../../../node_modules/undici-types/agent.d.ts","../../../../node_modules/undici-types/mock-interceptor.d.ts","../../../../node_modules/undici-types/mock-call-history.d.ts","../../../../node_modules/undici-types/mock-agent.d.ts","../../../../node_modules/undici-types/mock-client.d.ts","../../../../node_modules/undici-types/mock-pool.d.ts","../../../../node_modules/undici-types/snapshot-agent.d.ts","../../../../node_modules/undici-types/mock-errors.d.ts","../../../../node_modules/undici-types/proxy-agent.d.ts","../../../../node_modules/undici-types/env-http-proxy-agent.d.ts","../../../../node_modules/undici-types/retry-handler.d.ts","../../../../node_modules/undici-types/retry-agent.d.ts","../../../../node_modules/undici-types/api.d.ts","../../../../node_modules/undici-types/cache-interceptor.d.ts","../../../../node_modules/undici-types/interceptors.d.ts","../../../../node_modules/undici-types/util.d.ts","../../../../node_modules/undici-types/cookies.d.ts","../../../../node_modules/undici-types/patch.d.ts","../../../../node_modules/undici-types/websocket.d.ts","../../../../node_modules/undici-types/eventsource.d.ts","../../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../../node_modules/undici-types/content-type.d.ts","../../../../node_modules/undici-types/cache.d.ts","../../../../node_modules/undici-types/index.d.ts","../../../../node_modules/@types/node/web-globals/fetch.d.ts","../../../../node_modules/@types/node/web-globals/navigator.d.ts","../../../../node_modules/@types/node/web-globals/storage.d.ts","../../../../node_modules/@types/node/web-globals/streams.d.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/buffer/index.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/inspector.generated.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/readline/promises.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/sea.d.ts","../../../../node_modules/@types/node/sqlite.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/@types/node/stream/web.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/test.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/index.d.ts"],"fileInfos":[{"version":"16934abaab7026ac114da441aabea1a0","affectsGlobalScope":true,"impliedNodeFormat":1},"d4306fb2e47f74835e8674ffac07d76f","e437c5c1302869326c3bb93da85bbbcf","e4324975a566567b21d350615f1fc6ac","333b1b9a2a9ac3b8497dba5c63b5ba50","6cffacd662b6eb5fa7a36aa2ea366bfa","b4c34f9c23304dbef2d23698637ed638","e5cb86a5fc491796ecd1d2dd348d208f","feb6c6fb19cdb246a5d8acb36a6901c7","9443a7f109277ffaa79d893ed2549995",{"version":"926204c28cd3d073865348473ae28d2e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f25e42c801b2cb3cf2b39792006a9beb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6344b55f26a4e81d9608777dbfb877dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3c0ed28e53d3695b363e256ec1c023fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4c2761daba7f17141c25baa0821ac5da","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b87656acabd63e69379ff6ffcfe52fc7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"597469522da047a5af5222cc6989f405","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1708ea4d34dc37fadadc63ca01127e80","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"55d97a8c6fbf34a30450a7b1e5f7a298","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0ee05eb59426d33e374226d8dcfa708b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e347c14030993906efcfbb88915b6a05","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b0231263857c9b6a03641acdc9280ceb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3b15c4a83b598cacb4067676e6f0abed","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b417d97b7934cef63b1889abec0bbfbf","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"09a6cf4032ebba60ce22a501e663f881","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2b056277dd138e8f5650fc04e20eaa8d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e22cc07e3f3cc242ba52fa3f8ea1fc58","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c45da767a1bfbb220848df1bc4029e4","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b44c3e0fbaf2130cdcf6ac38b120ffa1","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b612fb5cf8e5d964b92063a75207632a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02705151a5e1551b9162a9ed8ab763f7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"41025e398be9215d32e4337335da8f0b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"52684c2b1f353a5538e4f275182a54cd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6dedb6a4f90d1df3a6fbe5693e44886c","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ca3f36fe3562c07e0f0d71c2bebd3f6d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"409974d6129befbb8226ddd1c6558568","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4d9cfde2a1ae1b4925f1f9bc10848e5d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7e1daecc66dd564144e3bb1a0266b5fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a8e1d9bb35fd0637f2f9fd2b2a54f2ec","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4f168501772a6543182765bfd5f2fbfe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a19c80aad1b2162103496f5ba293a732","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b69afa63cd5d059851c78adb2856ee09","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ae2fc5d954e9b0f5feee3d481b953c27","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1cfd3091a071d8b6feec15277643bafe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1da2c1f258970fd3cc91184f69e91a9d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a0d87491913d843139e0c993650a3235","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4ef72aa378127e7b7abba915b0110b1e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3ec74c6a7d4463f0254db3a74cf75646","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"84c2bdfa470d075526cce6322d81b0b6","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0b3844c2b8c73e4e1ab91431411cad11","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4fc71cf4a15b8d99675a31df77f26e07","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d1b49564ddaeca3df5b6dbae925d2242","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6a25be566d60ccfc2d6e8b7bfdeefa83","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8a20e27646985dfd58c57ca6566553dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9969f02ad3cdcbf4f709405cda44167f","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c9be4792a7a4f42c15ae7360bf28779","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8cf777fe00349b71ee9c4b6f3fe7fd19","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"74f96bc192530c9723f572bfff3d3078","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1df91c56b25955c56387426f378173c5","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0219894bfe5042c7e1aa2d22e4a91ed0","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"be41035d7b941482a1e1ae6a5c5dcca5","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f64453cbf9671f28158677fa5c43967a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"33f317af5428801f944a478d2c1e38e5","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7d94fcbbed5c5c0f222fc9ad3ed1f364","signature":"2756015015ba85f1164dd113f7bde448","impliedNodeFormat":99},{"version":"9075a0db67e32df49f403b54c177b456","signature":"5807c0d89a79a671f9a1eabd5bcecbad","impliedNodeFormat":99},{"version":"ee8ba5a0037ec392b439c24748b98db8","signature":"b9e803b5f65b7844eaa00cade4d9fbfe","impliedNodeFormat":99},{"version":"cdbe41edaed1034b7016dd6374d3514f","signature":"03719b07fe5345c2262839240699c132","impliedNodeFormat":99},{"version":"f0a0dfc079317bc84d48d8501afdddaa","signature":"f991a6e58550cb8a4266f8dc851f44b2","impliedNodeFormat":99},{"version":"d0820f56513efa86ecb94893108598e1","signature":"ccf6c3a25ccf2ae1d493052c5b819011","impliedNodeFormat":99},{"version":"1d9cc391f2c2e64df75eb7f4f5309e32","signature":"3a200be786aff8d16b0549e9b1e91bb9","impliedNodeFormat":99},{"version":"27412df34aab900c636382f93b147800","signature":"1cc4dc7e3ae75e8dafc0958b6e33447f","impliedNodeFormat":99},{"version":"bdacbc78064e67bb37240ab183ee6970","signature":"c24f3dceb6e50b9ef3906f41a3513359","impliedNodeFormat":99},{"version":"b58edaa26debc4ecc9a8128b9458b78c","signature":"8f4bc4d9e2972822f49d0cee313d6f06","impliedNodeFormat":99},{"version":"adeebf857d0b9dc8a651cf00077cd981","signature":"80e4073586a6862ebc426ce6837c2cf4","impliedNodeFormat":99},{"version":"6b79af7e18652890cb009bcdb3d330b5","signature":"6a02ea167cb5b6760e13b95ccd7480f2","impliedNodeFormat":99},{"version":"9cbecbca3565e8917aeee9694b033a46","signature":"b5ce92bbf6a079ac016bda0813ceebfd","impliedNodeFormat":99},{"version":"062aa0f98ba529b48f6e7de364ea9a96","signature":"4aadb82b43a6a5a5638c572f4c154311","impliedNodeFormat":99},{"version":"8b1002d2ea7dadf23ecd9d01720aae8a","signature":"aa592c5ac900ad4817a52af9fbd1cc37","impliedNodeFormat":99},{"version":"44af71d291ab740a28559d88d1d16479","signature":"1e45a01f12269f95cb78459742fa75a8","impliedNodeFormat":99},{"version":"9392a4600ef18e8623c9ad4a664c44be","signature":"5e2e1a0b8b52c703d4593de3b0ad723c","impliedNodeFormat":99},{"version":"f4139ed19e85fdee54c6caf1b3684526","signature":"e6fb15f597d69bdf9278562cebde9ec2","impliedNodeFormat":99},{"version":"b51391bce036e90ceb3bb136784a0c49","signature":"f8f8ab1b04a47aa790277b185a85bd31","impliedNodeFormat":99},{"version":"57fc360ec80fe42e0a9a076a4d14e3cf","signature":"6751975152b24b9be1c9dd84d12226e2","impliedNodeFormat":99},{"version":"db61433c24dec21964a053ccba49be2b","signature":"12f4cc3b495058f61baea10182d6ad16","impliedNodeFormat":99},{"version":"bdb298dcec403af84ec5fb251e4c2692","signature":"e6542cd908cd3255533c55afc92beda9","impliedNodeFormat":99},{"version":"7158b19e3219f0e15b63910f2fa932d2","signature":"65e51da710d402a4f1184e7845bd49d6","impliedNodeFormat":99},{"version":"52c899c9dc8804f19c90618a0cc87ffa","signature":"44acc31fd48dd958d1858d18b7bd6931","impliedNodeFormat":99},{"version":"7c70265554bc7a79d61219866c94eef6","signature":"72fa9cb68721fd274bafd58a5ef5c55c","impliedNodeFormat":99},{"version":"2514e9a2749c0fc18d2f478e9e1e641e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6ae4c332ecb24e76c1e47c0e21d4663d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"69ee0752d1e70c56ca160360425752a9","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"bf33440030f0a0fae7d1efd6c293a8d2","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9af0a7e3ef1c42cd066b9f8d365cc1ba","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7b772cebc7136c34fc77954aef70519d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9eca652586205dc5b07f9ba57b1c8500","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ec5f75939754ce94652189ec7d0d3058","affectsGlobalScope":true,"impliedNodeFormat":1},"49133c0dfbc32ab95668c3443dea49e5","85c2cf74d24d4069fac4686501a2d7e3","9f970a4ba4bb3ed6326d46b3ddab3f63","f444b82bb192c8ecc7c9a06cba5c1fba","75de66fc4824402123c0d694ccc0a085","db51f206bae5021bd84c7079251e08e9","fcd1a513c1e5802916fa602e8b8e64bc","aedc93367cdc148d7dd56ef6fd5ef308","8e2bc11d0328ba95e490a741c44a215d","d63481078bffe02fbaf6694a35815dc7","705645fe223430c696f47b708d592ca8","28d57c837c94adb42add03d499793cab","8c01a9bbae8449be21b3e018d59a74ac","44d3b7d58481743f4726cf411e667164","679024f8e9f58a112f4badf119c4d612","74d351e4ed233e82c6d74c444c1a6b86","94d8e37d28e92494f484dd9afe8f043c","79db245997e9261ae21e5f3d93e3493b","c3659054228b00c4e2a22d9ebea8b4f0","d7e5f7a0f1f883f28458f684106e7643","c2364011a80b6a9e3cc0e77895bad577","38da5c670190f4a35cbc204ca6c616bf","d95cc0eb29beed58f5ce72db21398f53","ecd53256b1ec7379c73316eaf392a69c","db5a9211b779628398011a5b8f5b8b5d","69c7bb9c3befe9ae37eed0e6a6310fee","1cba93fafccb7b2655f0e75229185e83","094ecadae30f65a82b77343dde77a666","f75df12d75dd783b03a0329b95abdb25","b438b08b2f0ed94a95a75c8990d9021b","f2becd2589591db92ab14e803eb8bdd5","8dec66ce34e6fe771e58a92b7068edc0","30f12c2660896a33bd3c3a126392c80a","0468c0ccd0ec7770b76481b165564d62","188234d616a4f50ed9b14c8f84a39f33","4c116bcf0a47ea8fbf4072f380925fa7","22111ccb71c0e95ff0796144b40eed2b","add85ec26ba695fc99c698dbec065f8c","5bfde23f96fc502b5413d772c35e1abf","b744265d8ad12b7d4d5c5dc35d18d44e","eff32168b8348b822afeed9cbf61afa7","acaa6ef6fcd5ba662929d6036121a616",{"version":"dd1cf1cc3aa21cd78b4869a44d98c6d9","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"292c9398a407b33b1d9c9812b673387a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"45df94b3c51b898624bacc2bcd6d9eb2","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7d352f71d1b1bcc12c79dd0e4597537c","affectsGlobalScope":true,"impliedNodeFormat":1},"db11b80743ed5356b81d763a708788e6","39078ea063fcaf72bd3cca7e0d13d017","f81aa09811fa65ac6f354ab0018d3c38","e2f0114efc512fd95bdc12c81d5e8d6a",{"version":"282318b178d190157a4deacb14f3040a","affectsGlobalScope":true,"impliedNodeFormat":1},"aafe512c4216100fd65028f9b2afce83","54c5c3dcfdb5f7cf5fbbccfff6ead3fa",{"version":"dc14f078230582a2f8fb2138bfcf4f85","affectsGlobalScope":true,"impliedNodeFormat":1},"b2b472cd0bf0f8d5f022e00ca1c401f4","370d966b810b687a9e58851208cb3d4c","39b3089f3df8d14e0f2ddac0479872d9","cc7a57e86f908c313649aea8d90377e1","5c271f10d8a9b9a1206bc82a4fe5b84d","fbe31979333ec391d8b59e8f42236e8e","6751c8c175fac6bbe7b935582cdfdca7",{"version":"a3f111d2a29b6cdd04fc4b41aa560c86","affectsGlobalScope":true,"impliedNodeFormat":1},"5f4ac576bcdc670a8489c881b23a2b17","a500e7362abeae2d2f1fefea525dc869","02a1ccf1ef65bfbf65865ac4ce346974","d589d01c82f6793f20d2f5c838462e3d","dbe700f7f1fa52fd220c7ee2c6617ebc","579675a2c3b0f8c532a82ad9cbd5d384","b2e8f93606aeb2dee2a4cc9272c56973",{"version":"a8e5d3e42303570b1114b6cd9ef9f38a","affectsGlobalScope":true,"impliedNodeFormat":1},"0003c8459d069181cc4856724fcf2832","c9053dbbe4fa2853f2d3f73b9a2fee81","4e458316a6083cbd2bba2fd29f674dd5",{"version":"3cccee1f2c106192d18ac4e08119f872","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"057189402e597cd50262b082723f21ff","affectsGlobalScope":true,"impliedNodeFormat":1},"6b26581aa2587701d570206a0db8c9ee","88a29e2aac8082c0910733950159e1ca","10282f14d9c2a5cbf3bcf2b1c8cebeaf","0f80958d77cd6301b43c1d7904e3e4bc","3bdc645524ab0d2f6795d3a008833bd7","deb50b47eb75a5566532a763fa1324fa","6e61cd09c2e15845909de3ed59a00b37","3e4ffe5f2733e0589b2612bd86f6cec3","c8206d568b54e5ea06131963eecd576a","15878f4f50c2e562c0768eb735c2aed5",{"version":"cb8f7733bee3d973c152a75fad9f6da6","affectsGlobalScope":true,"impliedNodeFormat":1},"dd404118e8bd70aff746f7d31e46270b","a0fa4618173795c74b488178ea77f951",{"version":"6b8649a280031d9e86955db721cfad87","affectsGlobalScope":true,"impliedNodeFormat":1},"4bc8f13c472858fb74f77388c0c5d885","75ab229142dad0ca2ff14d02d52f11f9","c72d2516d1e8910caca33c4dff75fcd4","f0231f36cb7117fbe9271ff19ef0f5f4",{"version":"8a642eed2a45ac7028479b6089a04842","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1e6ddb6b86dc5d86e75ba797d5324346","affectsGlobalScope":true,"impliedNodeFormat":1},"701aef085585b152042aa216b06bb4b8","e9bc5b1de50e48fa9857b64091673883","9268959cff1006c82e6abbd73824db97",{"version":"8f1c048bd5761910f5ea340fe4d792cd","affectsGlobalScope":true,"impliedNodeFormat":1},"6b1f3649b0eabeaca20c778fcc5f270c","eb567c7b5824aab578f75bbccf9f4b05"],"fileIdsList":[[91,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,138,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[89,90,91,92,93,94,95,96,139,140,141,142,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,195,196],[91,138,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,138,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195],[91,103,106,109,110,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,106,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,106,110,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,100,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,104,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,102,103,106,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197],[91,100,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197],[91,102,106,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,97,98,99,101,105,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,106,115,123,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,98,104,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,106,132,133,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,98,101,106,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197],[91,97,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,100,101,102,104,105,106,107,108,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,133,134,135,136,137,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,106,125,128,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,106,115,116,117,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,104,106,116,118,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,105,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,98,100,106,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,106,110,116,118,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,110,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,104,106,109,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,98,102,106,115,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,106,125,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,118,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[91,100,106,132,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197],[67,91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[64,67,68,91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[67,68,69,91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[64,91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[64,65,91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[72,73,74,91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[72,73,76,91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[72,74,76,77,79,80,91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[71,72,73,74,75,76,81,82,83,91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[71,76,84,91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[72,76,77,78,91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[72,91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[71,72,73,78,91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[71,72,91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[71,72,80,91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196],[86,87,91,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196]],"options":{"composite":true,"declaration":true,"declarationMap":true,"exactOptionalPropertyTypes":true,"module":199,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noPropertyAccessFromIndexSignature":true,"noUncheckedIndexedAccess":true,"noImplicitOverride":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"strict":true,"sourceMap":true,"target":10,"tsBuildInfoFile":"./identity.tsbuildinfo","useUnknownInCatchVariables":true,"verbatimModuleSyntax":true},"referencedMap":[[143,1],[144,2],[145,3],[91,4],[147,5],[148,6],[149,7],[89,8],[150,9],[151,10],[152,11],[153,12],[154,13],[155,14],[156,15],[157,16],[158,17],[159,18],[160,19],[92,8],[90,8],[161,20],[162,21],[163,22],[197,23],[164,24],[165,25],[166,26],[167,27],[168,28],[169,29],[170,30],[171,31],[172,32],[173,33],[174,34],[175,35],[176,36],[177,37],[178,38],[179,39],[181,40],[180,41],[182,42],[183,43],[184,44],[185,45],[186,46],[187,47],[188,48],[189,49],[190,50],[191,51],[192,52],[193,53],[194,54],[93,8],[94,8],[95,8],[96,8],[139,55],[140,8],[141,8],[142,8],[195,56],[196,57],[62,8],[63,8],[12,8],[11,8],[2,8],[13,8],[14,8],[15,8],[16,8],[17,8],[18,8],[19,8],[20,8],[3,8],[21,8],[22,8],[4,8],[23,8],[27,8],[24,8],[25,8],[26,8],[28,8],[29,8],[30,8],[5,8],[31,8],[32,8],[33,8],[34,8],[6,8],[38,8],[35,8],[36,8],[37,8],[39,8],[7,8],[40,8],[45,8],[46,8],[41,8],[42,8],[43,8],[44,8],[8,8],[50,8],[47,8],[48,8],[49,8],[51,8],[9,8],[52,8],[53,8],[54,8],[56,8],[55,8],[57,8],[58,8],[10,8],[59,8],[60,8],[1,8],[61,8],[146,8],[115,58],[127,59],[112,60],[128,8],[137,61],[103,62],[104,63],[102,8],[136,64],[131,65],[135,66],[106,67],[124,68],[105,69],[134,70],[100,71],[101,65],[107,59],[108,8],[114,66],[111,59],[98,72],[138,73],[129,74],[118,75],[117,59],[119,76],[122,77],[116,78],[120,79],[132,64],[109,80],[110,81],[123,82],[99,8],[126,83],[125,59],[113,81],[121,84],[130,8],[97,8],[133,85],[64,8],[68,86],[69,87],[70,88],[67,89],[66,90],[65,8],[71,8],[75,91],[77,92],[76,8],[81,93],[84,94],[85,95],[79,96],[78,97],[82,98],[72,8],[80,97],[73,99],[74,99],[83,100],[86,89],[87,89],[88,101]],"latestChangedDtsFile":"./testing/index.d.ts"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ImpersonationAuditEvent, ImpersonationOptions } from "./types.js";
|
|
2
|
+
type AttemptFields = Omit<ImpersonationAuditEvent, "outcome" | "occurredAtMs">;
|
|
3
|
+
export type AuditContext = {
|
|
4
|
+
-readonly [Key in keyof AttemptFields]: AttemptFields[Key];
|
|
5
|
+
};
|
|
6
|
+
export declare class ImpersonationAuditError extends Error {
|
|
7
|
+
readonly event: ImpersonationAuditEvent;
|
|
8
|
+
constructor(event: ImpersonationAuditEvent, cause: unknown);
|
|
9
|
+
}
|
|
10
|
+
export declare function createImpersonationAudit(writeAudit: ImpersonationOptions["writeAudit"], now: () => number, context: AuditContext): {
|
|
11
|
+
audit: (outcome: ImpersonationAuditEvent["outcome"]) => Promise<void>;
|
|
12
|
+
authorizedEvent: () => ImpersonationAuditEvent;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=audit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../src/impersonation/audit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEhF,KAAK,aAAa,GAAG,IAAI,CAAC,uBAAuB,EAAE,SAAS,GAAG,cAAc,CAAC,CAAC;AAC/E,MAAM,MAAM,YAAY,GAAG;IACzB,CAAC,UAAU,GAAG,IAAI,MAAM,aAAa,GAAG,aAAa,CAAC,GAAG,CAAC;CAC3D,CAAC;AAEF,qBAAa,uBAAwB,SAAQ,KAAK;IAE9C,QAAQ,CAAC,KAAK,EAAE,uBAAuB;IADzC,YACW,KAAK,EAAE,uBAAuB,EACvC,KAAK,EAAE,OAAO,EAIf;CACF;AAED,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,oBAAoB,CAAC,YAAY,CAAC,EAC9C,GAAG,EAAE,MAAM,MAAM,EACjB,OAAO,EAAE,YAAY;qBAQS,uBAAuB,CAAC,SAAS,CAAC;;EASjE"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export class ImpersonationAuditError extends Error {
|
|
2
|
+
event;
|
|
3
|
+
constructor(event, cause) {
|
|
4
|
+
super("Impersonation audit write failed", { cause });
|
|
5
|
+
this.event = event;
|
|
6
|
+
this.name = "ImpersonationAuditError";
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export function createImpersonationAudit(writeAudit, now, context) {
|
|
10
|
+
function eventFor(outcome) {
|
|
11
|
+
return { ...context, outcome, occurredAtMs: now() };
|
|
12
|
+
}
|
|
13
|
+
const audit = async (outcome) => {
|
|
14
|
+
const event = eventFor(outcome);
|
|
15
|
+
try {
|
|
16
|
+
await writeAudit(event);
|
|
17
|
+
}
|
|
18
|
+
catch (error) {
|
|
19
|
+
throw new ImpersonationAuditError(event, error);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
return { audit, authorizedEvent: () => eventFor("authorized") };
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=audit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit.js","sourceRoot":"","sources":["../../src/impersonation/audit.ts"],"names":[],"mappings":"AAOA,MAAM,OAAO,uBAAwB,SAAQ,KAAK;IAErC,KAAK;IADhB,YACW,KAA8B,EACvC,KAAc;QAEd,KAAK,CAAC,kCAAkC,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;qBAH5C,KAAK;QAId,IAAI,CAAC,IAAI,GAAG,yBAAyB,CAAC;IACxC,CAAC;CACF;AAED,MAAM,UAAU,wBAAwB,CACtC,UAA8C,EAC9C,GAAiB,EACjB,OAAqB;IAErB,SAAS,QAAQ,CACf,OAA2C;QAE3C,OAAO,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,EAAE,EAAE,CAAC;IACtD,CAAC;IAED,MAAM,KAAK,GAAG,KAAK,EAAE,OAA2C,EAAE,EAAE;QAClE,MAAM,KAAK,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC;QAChC,IAAI,CAAC;YACH,MAAM,UAAU,CAAC,KAAK,CAAC,CAAC;QAC1B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,IAAI,uBAAuB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QAClD,CAAC;IACH,CAAC,CAAC;IACF,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC;AAClE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-impersonation.d.ts","sourceRoot":"","sources":["../../src/impersonation/create-impersonation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,aAAa,EAGb,oBAAoB,EAGrB,MAAM,YAAY,CAAC;AAqBpB,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,oBAAoB,GAC5B,aAAa,CA+Mf"}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { randomUUID } from "node:crypto";
|
|
2
|
+
import { createImpersonationAudit, ImpersonationAuditError } from "./audit.js";
|
|
3
|
+
function publicGrant(grant) {
|
|
4
|
+
return {
|
|
5
|
+
id: grant.id,
|
|
6
|
+
staffAccountId: grant.staffAccountId,
|
|
7
|
+
effectiveAccountId: grant.effectiveAccountId,
|
|
8
|
+
tenantId: grant.tenantId,
|
|
9
|
+
expiresAtMs: grant.expiresAtMs,
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
function validId(value) {
|
|
13
|
+
return (typeof value === "string" &&
|
|
14
|
+
value.length <= 256 &&
|
|
15
|
+
value.trim().length > 0 &&
|
|
16
|
+
!value.includes("\0"));
|
|
17
|
+
}
|
|
18
|
+
export function createImpersonation(options) {
|
|
19
|
+
const { authorize, identity, lifetimeMs, store, writeAudit, now = Date.now, } = options;
|
|
20
|
+
if (!Number.isSafeInteger(lifetimeMs) || lifetimeMs <= 0) {
|
|
21
|
+
throw new RangeError("Impersonation lifetime must be a positive integer");
|
|
22
|
+
}
|
|
23
|
+
function attempt(action, headers, initial) {
|
|
24
|
+
const context = {
|
|
25
|
+
action,
|
|
26
|
+
actorAccountId: null,
|
|
27
|
+
staffAccountId: null,
|
|
28
|
+
effectiveAccountId: validId(initial.effectiveAccountId)
|
|
29
|
+
? initial.effectiveAccountId
|
|
30
|
+
: null,
|
|
31
|
+
tenantId: validId(initial.tenantId) ? initial.tenantId : null,
|
|
32
|
+
grantId: validId(initial.grantId) ? initial.grantId : null,
|
|
33
|
+
};
|
|
34
|
+
const { audit, authorizedEvent } = createImpersonationAudit(writeAudit, now, context);
|
|
35
|
+
const session = async () => {
|
|
36
|
+
const session = await identity.readSession(headers);
|
|
37
|
+
context.actorAccountId = session?.account.id ?? null;
|
|
38
|
+
return session && session.expiresAt.getTime() > now() ? session : null;
|
|
39
|
+
};
|
|
40
|
+
const recordGrant = (grant) => {
|
|
41
|
+
context.staffAccountId = grant.staffAccountId;
|
|
42
|
+
context.effectiveAccountId = grant.effectiveAccountId;
|
|
43
|
+
context.tenantId = grant.tenantId;
|
|
44
|
+
context.grantId = grant.id;
|
|
45
|
+
};
|
|
46
|
+
const readGrant = async (id) => {
|
|
47
|
+
const grant = validId(id) ? await store.read(id) : null;
|
|
48
|
+
if (grant?.id !== id)
|
|
49
|
+
return null;
|
|
50
|
+
recordGrant(grant);
|
|
51
|
+
return grant;
|
|
52
|
+
};
|
|
53
|
+
const run = async (work) => {
|
|
54
|
+
try {
|
|
55
|
+
return await work();
|
|
56
|
+
}
|
|
57
|
+
catch (error) {
|
|
58
|
+
if (!(error instanceof ImpersonationAuditError))
|
|
59
|
+
await audit("error");
|
|
60
|
+
throw error;
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
return { session, recordGrant, readGrant, run, audit, authorizedEvent };
|
|
64
|
+
}
|
|
65
|
+
async function start(headers, scope) {
|
|
66
|
+
const request = attempt("start", headers, scope);
|
|
67
|
+
return request.run(async () => {
|
|
68
|
+
const session = await request.session();
|
|
69
|
+
const { tenantId, effectiveAccountId } = scope;
|
|
70
|
+
if (!session ||
|
|
71
|
+
!validId(session.sessionId) ||
|
|
72
|
+
!validId(tenantId) ||
|
|
73
|
+
!validId(effectiveAccountId)) {
|
|
74
|
+
await request.audit("denied");
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
const staffAccountId = session.account.id;
|
|
78
|
+
const grant = {
|
|
79
|
+
id: randomUUID(),
|
|
80
|
+
tenantId,
|
|
81
|
+
effectiveAccountId,
|
|
82
|
+
staffAccountId,
|
|
83
|
+
staffSessionId: session.sessionId,
|
|
84
|
+
expiresAtMs: Math.min(now() + lifetimeMs, session.expiresAt.getTime()),
|
|
85
|
+
};
|
|
86
|
+
request.recordGrant(grant);
|
|
87
|
+
if (staffAccountId === effectiveAccountId ||
|
|
88
|
+
!(await permitted("start", staffAccountId, grant))) {
|
|
89
|
+
await request.audit("denied");
|
|
90
|
+
return null;
|
|
91
|
+
}
|
|
92
|
+
if (grant.expiresAtMs > now()) {
|
|
93
|
+
await store.insert(grant, request.authorizedEvent());
|
|
94
|
+
if (grant.expiresAtMs > now())
|
|
95
|
+
return publicGrant(grant);
|
|
96
|
+
}
|
|
97
|
+
await request.audit("denied");
|
|
98
|
+
return null;
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
async function use(headers, input) {
|
|
102
|
+
const request = attempt("use", headers, input);
|
|
103
|
+
return request.run(async () => {
|
|
104
|
+
const session = await request.session();
|
|
105
|
+
const grant = await request.readGrant(input.grantId);
|
|
106
|
+
if (session && grant && matchesUse(session, input.tenantId, grant)) {
|
|
107
|
+
if (await permitted("use", session.account.id, grant)) {
|
|
108
|
+
await request.audit("authorized");
|
|
109
|
+
if (await stillActive(grant, session.expiresAt.getTime()))
|
|
110
|
+
return publicGrant(grant);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
await request.audit("denied");
|
|
114
|
+
return null;
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
function matchesUse(session, tenantId, grant) {
|
|
118
|
+
return (ownsGrant(session, grant) &&
|
|
119
|
+
grant.tenantId === tenantId &&
|
|
120
|
+
grant.expiresAtMs > now());
|
|
121
|
+
}
|
|
122
|
+
function ownsGrant(session, grant) {
|
|
123
|
+
return (session.account.id === grant.staffAccountId &&
|
|
124
|
+
session.sessionId === grant.staffSessionId);
|
|
125
|
+
}
|
|
126
|
+
async function stillActive(grant, sessionExpiresAtMs) {
|
|
127
|
+
const current = await store.read(grant.id);
|
|
128
|
+
return (current?.id === grant.id &&
|
|
129
|
+
current.staffAccountId === grant.staffAccountId &&
|
|
130
|
+
current.staffSessionId === grant.staffSessionId &&
|
|
131
|
+
current.effectiveAccountId === grant.effectiveAccountId &&
|
|
132
|
+
current.tenantId === grant.tenantId &&
|
|
133
|
+
current.expiresAtMs === grant.expiresAtMs &&
|
|
134
|
+
Math.min(grant.expiresAtMs, sessionExpiresAtMs) > now());
|
|
135
|
+
}
|
|
136
|
+
function permitted(action, actorAccountId, grant) {
|
|
137
|
+
return authorize({
|
|
138
|
+
action,
|
|
139
|
+
actorAccountId,
|
|
140
|
+
staffAccountId: grant.staffAccountId,
|
|
141
|
+
effectiveAccountId: grant.effectiveAccountId,
|
|
142
|
+
tenantId: grant.tenantId,
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
async function end(action, headers, grantId) {
|
|
146
|
+
const request = attempt(action, headers, { grantId });
|
|
147
|
+
return request.run(async () => {
|
|
148
|
+
const session = await request.session();
|
|
149
|
+
const grant = await request.readGrant(grantId);
|
|
150
|
+
if (session && grant && (await mayEnd(action, session, grant))) {
|
|
151
|
+
if (await store.remove(grant.id, request.authorizedEvent()))
|
|
152
|
+
return true;
|
|
153
|
+
}
|
|
154
|
+
await request.audit("denied");
|
|
155
|
+
return false;
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
function mayEnd(action, session, grant) {
|
|
159
|
+
return action === "stop"
|
|
160
|
+
? ownsGrant(session, grant)
|
|
161
|
+
: permitted(action, session.account.id, grant);
|
|
162
|
+
}
|
|
163
|
+
return {
|
|
164
|
+
start,
|
|
165
|
+
use,
|
|
166
|
+
stop: (headers, grantId) => end("stop", headers, grantId),
|
|
167
|
+
revoke: (headers, grantId) => end("revoke", headers, grantId),
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
//# sourceMappingURL=create-impersonation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-impersonation.js","sourceRoot":"","sources":["../../src/impersonation/create-impersonation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGzC,OAAO,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAU/E,SAAS,WAAW,CAAC,KAA+B;IAClD,OAAO;QACL,EAAE,EAAE,KAAK,CAAC,EAAE;QACZ,cAAc,EAAE,KAAK,CAAC,cAAc;QACpC,kBAAkB,EAAE,KAAK,CAAC,kBAAkB;QAC5C,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,WAAW,EAAE,KAAK,CAAC,WAAW;KAC/B,CAAC;AACJ,CAAC;AAED,SAAS,OAAO,CAAC,KAAc;IAC7B,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ;QACzB,KAAK,CAAC,MAAM,IAAI,GAAG;QACnB,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC;QACvB,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CACtB,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,mBAAmB,CACjC,OAA6B;IAE7B,MAAM,EACJ,SAAS,EACT,QAAQ,EACR,UAAU,EACV,KAAK,EACL,UAAU,EACV,GAAG,GAAG,IAAI,CAAC,GAAG,GACf,GAAG,OAAO,CAAC;IACZ,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC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KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,OAAO,CAAC,eAAe,EAAE,CAAC;oBACzD,OAAO,IAAI,CAAC;YAChB,CAAC;YACD,MAAM,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;YAC9B,OAAO,KAAK,CAAC;QACf,CAAC,CAAC,CAAC;IACL,CAAC;IAED,SAAS,MAAM,CACb,MAAyB,EACzB,OAAwB,EACxB,KAA+B;QAE/B,OAAO,MAAM,KAAK,MAAM;YACtB,CAAC,CAAC,SAAS,CAAC,OAAO,EAAE,KAAK,CAAC;YAC3B,CAAC,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;IACnD,CAAC;IAED,OAAO;QACL,KAAK;QACL,GAAG;QACH,IAAI,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC;QACzD,MAAM,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC;KAC9D,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { ImpersonationAuditError } from "./audit.js";
|
|
2
|
+
export { createImpersonation } from "./create-impersonation.js";
|
|
3
|
+
export type { Impersonation, ImpersonationAction, ImpersonationAuditEvent, ImpersonationGrant, ImpersonationOptions, ImpersonationScope, ImpersonationStore, ImpersonationStoredGrant, } from "./types.js";
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/impersonation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,YAAY,EACV,aAAa,EACb,mBAAmB,EACnB,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/impersonation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC"}
|