@securitydept/basic-auth-context-client 0.2.0-beta.1 → 0.2.0-beta.2
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 +13 -0
- package/README.md +5 -0
- package/dist/index.d.mts +1 -79
- package/package.json +53 -32
package/LICENSE.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Zhou Yeheng <root@aitiotekt.com>
|
|
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.
|
package/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# @securitydept/basic-auth-context-client
|
|
2
|
+
|
|
3
|
+
Basic Auth Context Client of the SecurityDept TypeScript SDK, a layered authentication and authorization toolkit built as reusable Rust crates, a TypeScript client SDK workspace, and reference server/web apps.
|
|
4
|
+
|
|
5
|
+
Repository: [ethaxon/securitydept](https://github.com/ethaxon/securitydept)
|
package/dist/index.d.mts
CHANGED
|
@@ -1,83 +1,5 @@
|
|
|
1
1
|
import { a as AuthGuardResultKind, c as BasicAuthContextClientConfig, i as AuthGuardResult, l as BasicAuthZoneConfig, n as readBasicAuthBoundaryKind, o as BasicAuthBoundaryKind, r as AuthGuardRedirectStatus, s as BasicAuthBoundaryObservation, t as BasicAuthContextClient, u as ResolvedBasicAuthZone } from "./client-DU98lpa_.mjs";
|
|
2
2
|
|
|
3
|
-
//#region ../../../../node_modules/.pnpm/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.ts
|
|
4
|
-
/** The Standard Typed interface. This is a base type extended by other specs. */
|
|
5
|
-
interface StandardTypedV1<Input = unknown, Output = Input> {
|
|
6
|
-
/** The Standard properties. */
|
|
7
|
-
readonly "~standard": StandardTypedV1.Props<Input, Output>;
|
|
8
|
-
}
|
|
9
|
-
declare namespace StandardTypedV1 {
|
|
10
|
-
/** The Standard Typed properties interface. */
|
|
11
|
-
interface Props<Input = unknown, Output = Input> {
|
|
12
|
-
/** The version number of the standard. */
|
|
13
|
-
readonly version: 1;
|
|
14
|
-
/** The vendor name of the schema library. */
|
|
15
|
-
readonly vendor: string;
|
|
16
|
-
/** Inferred types associated with the schema. */
|
|
17
|
-
readonly types?: Types<Input, Output> | undefined;
|
|
18
|
-
}
|
|
19
|
-
/** The Standard Typed types interface. */
|
|
20
|
-
interface Types<Input = unknown, Output = Input> {
|
|
21
|
-
/** The input type of the schema. */
|
|
22
|
-
readonly input: Input;
|
|
23
|
-
/** The output type of the schema. */
|
|
24
|
-
readonly output: Output;
|
|
25
|
-
}
|
|
26
|
-
/** Infers the input type of a Standard Typed. */
|
|
27
|
-
type InferInput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["input"];
|
|
28
|
-
/** Infers the output type of a Standard Typed. */
|
|
29
|
-
type InferOutput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["output"];
|
|
30
|
-
}
|
|
31
|
-
/** The Standard Schema interface. */
|
|
32
|
-
interface StandardSchemaV1<Input = unknown, Output = Input> {
|
|
33
|
-
/** The Standard Schema properties. */
|
|
34
|
-
readonly "~standard": StandardSchemaV1.Props<Input, Output>;
|
|
35
|
-
}
|
|
36
|
-
declare namespace StandardSchemaV1 {
|
|
37
|
-
/** The Standard Schema properties interface. */
|
|
38
|
-
interface Props<Input = unknown, Output = Input> extends StandardTypedV1.Props<Input, Output> {
|
|
39
|
-
/** Validates unknown input values. */
|
|
40
|
-
readonly validate: (value: unknown, options?: StandardSchemaV1.Options | undefined) => Result<Output> | Promise<Result<Output>>;
|
|
41
|
-
}
|
|
42
|
-
/** The result interface of the validate function. */
|
|
43
|
-
type Result<Output> = SuccessResult<Output> | FailureResult;
|
|
44
|
-
/** The result interface if validation succeeds. */
|
|
45
|
-
interface SuccessResult<Output> {
|
|
46
|
-
/** The typed output value. */
|
|
47
|
-
readonly value: Output;
|
|
48
|
-
/** A falsy value for `issues` indicates success. */
|
|
49
|
-
readonly issues?: undefined;
|
|
50
|
-
}
|
|
51
|
-
interface Options {
|
|
52
|
-
/** Explicit support for additional vendor-specific parameters, if needed. */
|
|
53
|
-
readonly libraryOptions?: Record<string, unknown> | undefined;
|
|
54
|
-
}
|
|
55
|
-
/** The result interface if validation fails. */
|
|
56
|
-
interface FailureResult {
|
|
57
|
-
/** The issues of failed validation. */
|
|
58
|
-
readonly issues: ReadonlyArray<Issue>;
|
|
59
|
-
}
|
|
60
|
-
/** The issue interface of the failure output. */
|
|
61
|
-
interface Issue {
|
|
62
|
-
/** The error message of the issue. */
|
|
63
|
-
readonly message: string;
|
|
64
|
-
/** The path of the issue, if any. */
|
|
65
|
-
readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
|
|
66
|
-
}
|
|
67
|
-
/** The path segment interface of the issue. */
|
|
68
|
-
interface PathSegment {
|
|
69
|
-
/** The key representing a path segment. */
|
|
70
|
-
readonly key: PropertyKey;
|
|
71
|
-
}
|
|
72
|
-
/** The Standard types interface. */
|
|
73
|
-
interface Types<Input = unknown, Output = Input> extends StandardTypedV1.Types<Input, Output> {}
|
|
74
|
-
/** Infers the input type of a Standard. */
|
|
75
|
-
type InferInput<Schema extends StandardTypedV1> = StandardTypedV1.InferInput<Schema>;
|
|
76
|
-
/** Infers the output type of a Standard. */
|
|
77
|
-
type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;
|
|
78
|
-
}
|
|
79
|
-
/** The Standard JSON Schema interface. */
|
|
80
|
-
//#endregion
|
|
81
3
|
//#region src/schemas.d.ts
|
|
82
4
|
/**
|
|
83
5
|
* Schema for validating BasicAuthContextClientConfig.
|
|
@@ -88,7 +10,7 @@ declare namespace StandardSchemaV1 {
|
|
|
88
10
|
* - each zone has a non-empty `zonePrefix`
|
|
89
11
|
* - optional fields have correct types when provided
|
|
90
12
|
*/
|
|
91
|
-
declare const BasicAuthContextClientConfigSchema:
|
|
13
|
+
declare const BasicAuthContextClientConfigSchema: any;
|
|
92
14
|
//#endregion
|
|
93
15
|
export { AuthGuardRedirectStatus, type AuthGuardResult, AuthGuardResultKind, BasicAuthBoundaryKind, type BasicAuthBoundaryObservation, BasicAuthContextClient, type BasicAuthContextClientConfig, BasicAuthContextClientConfigSchema, type BasicAuthZoneConfig, type ResolvedBasicAuthZone, readBasicAuthBoundaryKind };
|
|
94
16
|
//# sourceMappingURL=index.d.mts.map
|
package/package.json
CHANGED
|
@@ -1,33 +1,54 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
2
|
+
"name": "@securitydept/basic-auth-context-client",
|
|
3
|
+
"version": "0.2.0-beta.2",
|
|
4
|
+
"description": "Basic Auth Context Client of the SecurityDept TypeScript SDK, a layered authentication and authorization toolkit built as reusable Rust crates, a TypeScript client SDK workspace, and reference server/web apps.",
|
|
5
|
+
"author": "Zhou Yeheng <root@aitiotekt.com>",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/ethaxon/securitydept.git",
|
|
10
|
+
"directory": "sdks/ts/packages/basic-auth-context-client"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://securitydept.ethaxon.com/",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/ethaxon/securitydept/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"securitydept",
|
|
18
|
+
"auth",
|
|
19
|
+
"authentication",
|
|
20
|
+
"authorization",
|
|
21
|
+
"oidc",
|
|
22
|
+
"oauth",
|
|
23
|
+
"sdk",
|
|
24
|
+
"typescript",
|
|
25
|
+
"token",
|
|
26
|
+
"credentials"
|
|
27
|
+
],
|
|
28
|
+
"type": "module",
|
|
29
|
+
"sideEffects": false,
|
|
30
|
+
"exports": {
|
|
31
|
+
".": {
|
|
32
|
+
"types": "./dist/index.d.mts",
|
|
33
|
+
"import": "./dist/index.mjs"
|
|
34
|
+
},
|
|
35
|
+
"./web": {
|
|
36
|
+
"types": "./dist/web/index.d.mts",
|
|
37
|
+
"import": "./dist/web/index.mjs"
|
|
38
|
+
},
|
|
39
|
+
"./server": {
|
|
40
|
+
"types": "./dist/server/index.d.mts",
|
|
41
|
+
"import": "./dist/server/index.mjs"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"files": [
|
|
45
|
+
"dist"
|
|
46
|
+
],
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"@securitydept/client": "0.2.0-beta.2"
|
|
49
|
+
},
|
|
50
|
+
"scripts": {
|
|
51
|
+
"build": "tsdown",
|
|
52
|
+
"typecheck": "tsc -b"
|
|
53
|
+
}
|
|
54
|
+
}
|