b23-lib 1.2.3 → 1.2.5
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/dist/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +6 -2
- package/dist/index.mjs +3 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -247,11 +247,14 @@ type AuthUtilityConfig = {
|
|
|
247
247
|
adminPrivateKeys?: StringifiedJSONArray;
|
|
248
248
|
adminPublicKeys?: StringifiedJSONArray;
|
|
249
249
|
};
|
|
250
|
+
declare const DefaultAuthUtilityConfig: AuthUtilityConfig;
|
|
251
|
+
type AuthTokenType = 'Anon' | 'User' | 'System' | 'Admin';
|
|
250
252
|
type AuthMiddlewareConfig = {
|
|
251
253
|
allowAnonymous?: boolean;
|
|
252
254
|
allowSystem?: boolean;
|
|
253
255
|
allowUser?: boolean;
|
|
254
256
|
};
|
|
257
|
+
declare const DefaultAuthMiddlewareConfig: AuthMiddlewareConfig;
|
|
255
258
|
declare class AuthUtility {
|
|
256
259
|
private maxTokenAge;
|
|
257
260
|
private userPrivateKeys;
|
|
@@ -316,4 +319,4 @@ declare const Logger: {
|
|
|
316
319
|
logInvalidPayload: (functionName: string, errorMessage: string) => void;
|
|
317
320
|
};
|
|
318
321
|
|
|
319
|
-
export { AuthUtility
|
|
322
|
+
export { type AuthMiddlewareConfig, type AuthTokenType, AuthUtility, type AuthUtilityConfig, DefaultAuthMiddlewareConfig, DefaultAuthUtilityConfig, DynamoDBUtility as DynamoDB, Fetch, Logger, ResponseUtility, Schema, _default as Utils };
|
package/dist/index.d.ts
CHANGED
|
@@ -247,11 +247,14 @@ type AuthUtilityConfig = {
|
|
|
247
247
|
adminPrivateKeys?: StringifiedJSONArray;
|
|
248
248
|
adminPublicKeys?: StringifiedJSONArray;
|
|
249
249
|
};
|
|
250
|
+
declare const DefaultAuthUtilityConfig: AuthUtilityConfig;
|
|
251
|
+
type AuthTokenType = 'Anon' | 'User' | 'System' | 'Admin';
|
|
250
252
|
type AuthMiddlewareConfig = {
|
|
251
253
|
allowAnonymous?: boolean;
|
|
252
254
|
allowSystem?: boolean;
|
|
253
255
|
allowUser?: boolean;
|
|
254
256
|
};
|
|
257
|
+
declare const DefaultAuthMiddlewareConfig: AuthMiddlewareConfig;
|
|
255
258
|
declare class AuthUtility {
|
|
256
259
|
private maxTokenAge;
|
|
257
260
|
private userPrivateKeys;
|
|
@@ -316,4 +319,4 @@ declare const Logger: {
|
|
|
316
319
|
logInvalidPayload: (functionName: string, errorMessage: string) => void;
|
|
317
320
|
};
|
|
318
321
|
|
|
319
|
-
export { AuthUtility
|
|
322
|
+
export { type AuthMiddlewareConfig, type AuthTokenType, AuthUtility, type AuthUtilityConfig, DefaultAuthMiddlewareConfig, DefaultAuthUtilityConfig, DynamoDBUtility as DynamoDB, Fetch, Logger, ResponseUtility, Schema, _default as Utils };
|
package/dist/index.js
CHANGED
|
@@ -30,7 +30,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
// src/index.ts
|
|
31
31
|
var src_exports = {};
|
|
32
32
|
__export(src_exports, {
|
|
33
|
-
|
|
33
|
+
AuthUtility: () => Auth_default,
|
|
34
|
+
DefaultAuthMiddlewareConfig: () => DefaultAuthMiddlewareConfig,
|
|
35
|
+
DefaultAuthUtilityConfig: () => DefaultAuthUtilityConfig,
|
|
34
36
|
DynamoDB: () => Dynamodb_default,
|
|
35
37
|
Fetch: () => fetch_default,
|
|
36
38
|
Logger: () => Logger_default,
|
|
@@ -762,7 +764,9 @@ var Fetch = async (baseURL, endpoint, method = "GET", headers = {}, payload) =>
|
|
|
762
764
|
var fetch_default = Fetch;
|
|
763
765
|
// Annotate the CommonJS export names for ESM import in node:
|
|
764
766
|
0 && (module.exports = {
|
|
765
|
-
|
|
767
|
+
AuthUtility,
|
|
768
|
+
DefaultAuthMiddlewareConfig,
|
|
769
|
+
DefaultAuthUtilityConfig,
|
|
766
770
|
DynamoDB,
|
|
767
771
|
Fetch,
|
|
768
772
|
Logger,
|
package/dist/index.mjs
CHANGED
|
@@ -734,7 +734,9 @@ var Fetch = async (baseURL, endpoint, method = "GET", headers = {}, payload) =>
|
|
|
734
734
|
};
|
|
735
735
|
var fetch_default = Fetch;
|
|
736
736
|
export {
|
|
737
|
-
Auth_default as
|
|
737
|
+
Auth_default as AuthUtility,
|
|
738
|
+
DefaultAuthMiddlewareConfig,
|
|
739
|
+
DefaultAuthUtilityConfig,
|
|
738
740
|
Dynamodb_default as DynamoDB,
|
|
739
741
|
fetch_default as Fetch,
|
|
740
742
|
Logger_default as Logger,
|