@gatwech/core 1.0.0-beta.20 → 1.0.0-beta.22
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/api/index.d.mts +1 -1
- package/dist/context/index.d.mts +1 -1
- package/dist/db/adapter/index.d.mts +1 -1
- package/dist/db/index.d.mts +1 -1
- package/dist/{index-D8uD3Sbr.d.mts → index-BL_t8cRp.d.mts} +13 -8
- package/dist/index.d.mts +1 -1
- package/dist/oauth2/index.d.mts +1 -1
- package/dist/social-providers/index.d.mts +1 -1
- package/dist/src/types/init-options.d.ts +13 -8
- package/package.json +1 -1
package/dist/api/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as optionsMiddleware, i as createAuthMiddleware, n as AuthMiddleware, r as createAuthEndpoint, t as AuthEndpoint } from "../index-
|
|
1
|
+
import { a as optionsMiddleware, i as createAuthMiddleware, n as AuthMiddleware, r as createAuthEndpoint, t as AuthEndpoint } from "../index-BL_t8cRp.mjs";
|
|
2
2
|
import "../index-CNtOUpmF.mjs";
|
|
3
3
|
export { AuthEndpoint, AuthMiddleware, createAuthEndpoint, createAuthMiddleware, optionsMiddleware };
|
package/dist/context/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as AuthContext, nt as DBAdapter, st as DBTransactionAdapter } from "../index-
|
|
1
|
+
import { d as AuthContext, nt as DBAdapter, st as DBTransactionAdapter } from "../index-BL_t8cRp.mjs";
|
|
2
2
|
import "../index-CNtOUpmF.mjs";
|
|
3
3
|
import { t as AsyncLocalStorage } from "../index-CRg-E-VF.mjs";
|
|
4
4
|
import { EndpointContext, InputContext } from "better-call";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { at as DBAdapterInstance, ct as Where, et as CleanedWhere, it as DBAdapterFactoryConfig, nt as DBAdapter, ot as DBAdapterSchemaCreation, rt as DBAdapterDebugLogOption, st as DBTransactionAdapter, tt as CustomAdapter } from "../../index-
|
|
1
|
+
import { at as DBAdapterInstance, ct as Where, et as CleanedWhere, it as DBAdapterFactoryConfig, nt as DBAdapter, ot as DBAdapterSchemaCreation, rt as DBAdapterDebugLogOption, st as DBTransactionAdapter, tt as CustomAdapter } from "../../index-BL_t8cRp.mjs";
|
|
2
2
|
import "../../index-CNtOUpmF.mjs";
|
|
3
3
|
export { CleanedWhere, CustomAdapter, DBAdapter, DBAdapterDebugLogOption, DBAdapterFactoryConfig, DBAdapterInstance, DBAdapterSchemaCreation, DBTransactionAdapter, Where };
|
package/dist/db/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { At as DBPreservedModels, Ct as rateLimitSchema, Dt as DBFieldAttribute, Et as PayvoAuthPluginDBSchema, Mt as PayvoAuthDBSchema, Nt as SecondaryStorage, Ot as DBFieldAttributeConfig, St as RateLimit, Tt as accountSchema, _t as User, bt as Session, dt as FieldAttributeConfig, ft as FieldType, gt as verificationSchema, ht as Verification, jt as DBPrimitive, kt as DBFieldType, lt as AuthPluginSchema, mt as Primitive, pt as PayvoAuthDbSchema, ut as FieldAttribute, vt as userSchema, wt as Account, xt as sessionSchema, yt as coreSchema } from "../index-
|
|
1
|
+
import { At as DBPreservedModels, Ct as rateLimitSchema, Dt as DBFieldAttribute, Et as PayvoAuthPluginDBSchema, Mt as PayvoAuthDBSchema, Nt as SecondaryStorage, Ot as DBFieldAttributeConfig, St as RateLimit, Tt as accountSchema, _t as User, bt as Session, dt as FieldAttributeConfig, ft as FieldType, gt as verificationSchema, ht as Verification, jt as DBPrimitive, kt as DBFieldType, lt as AuthPluginSchema, mt as Primitive, pt as PayvoAuthDbSchema, ut as FieldAttribute, vt as userSchema, wt as Account, xt as sessionSchema, yt as coreSchema } from "../index-BL_t8cRp.mjs";
|
|
2
2
|
import "../index-CNtOUpmF.mjs";
|
|
3
3
|
export { Account, AuthPluginSchema, DBFieldAttribute, DBFieldAttributeConfig, DBFieldType, DBPreservedModels, DBPrimitive, FieldAttribute, FieldAttributeConfig, FieldType, PayvoAuthDBSchema, PayvoAuthDbSchema, PayvoAuthPluginDBSchema, Primitive, RateLimit, SecondaryStorage, Session, User, Verification, accountSchema, coreSchema, rateLimitSchema, sessionSchema, userSchema, verificationSchema };
|
|
@@ -2390,9 +2390,10 @@ type PayvoAuthOptions = {
|
|
|
2390
2390
|
data: Optional<User & Record<string, any>>;
|
|
2391
2391
|
}>;
|
|
2392
2392
|
/**
|
|
2393
|
-
* Hook that is called after a user is updated.
|
|
2393
|
+
* Hook that is called after a user is updated. `data` holds the
|
|
2394
|
+
* fields that were written, after every `before` hook ran.
|
|
2394
2395
|
*/
|
|
2395
|
-
after?: (user: User & Record<string, unknown>, context?: GenericEndpointContext) => Promise<void>;
|
|
2396
|
+
after?: (user: User & Record<string, unknown>, context?: GenericEndpointContext, data?: Partial<User> & Record<string, unknown>) => Promise<void>;
|
|
2396
2397
|
};
|
|
2397
2398
|
delete?: {
|
|
2398
2399
|
/**
|
|
@@ -2437,9 +2438,10 @@ type PayvoAuthOptions = {
|
|
|
2437
2438
|
data: Optional<Session & Record<string, any>>;
|
|
2438
2439
|
}>;
|
|
2439
2440
|
/**
|
|
2440
|
-
* Hook that is called after a session is updated.
|
|
2441
|
+
* Hook that is called after a session is updated. `data` holds the
|
|
2442
|
+
* fields that were written, after every `before` hook ran.
|
|
2441
2443
|
*/
|
|
2442
|
-
after?: (session: Session & Record<string, unknown>, context?: GenericEndpointContext) => Promise<void>;
|
|
2444
|
+
after?: (session: Session & Record<string, unknown>, context?: GenericEndpointContext, data?: Partial<Session> & Record<string, unknown>) => Promise<void>;
|
|
2443
2445
|
};
|
|
2444
2446
|
delete?: {
|
|
2445
2447
|
/**
|
|
@@ -2484,9 +2486,10 @@ type PayvoAuthOptions = {
|
|
|
2484
2486
|
data: Optional<Account & Record<string, any>>;
|
|
2485
2487
|
}>;
|
|
2486
2488
|
/**
|
|
2487
|
-
* Hook that is called after a account is updated.
|
|
2489
|
+
* Hook that is called after a account is updated. `data` holds the
|
|
2490
|
+
* fields that were written, after every `before` hook ran.
|
|
2488
2491
|
*/
|
|
2489
|
-
after?: (account: Account & Record<string, unknown>, context?: GenericEndpointContext) => Promise<void>;
|
|
2492
|
+
after?: (account: Account & Record<string, unknown>, context?: GenericEndpointContext, data?: Partial<Account> & Record<string, unknown>) => Promise<void>;
|
|
2490
2493
|
};
|
|
2491
2494
|
delete?: {
|
|
2492
2495
|
/**
|
|
@@ -2528,9 +2531,11 @@ type PayvoAuthOptions = {
|
|
|
2528
2531
|
data: Optional<Verification & Record<string, any>>;
|
|
2529
2532
|
}>;
|
|
2530
2533
|
/**
|
|
2531
|
-
* Hook that is called after a verification is updated.
|
|
2534
|
+
* Hook that is called after a verification is updated. `data`
|
|
2535
|
+
* holds the fields that were written, after every `before` hook
|
|
2536
|
+
* ran.
|
|
2532
2537
|
*/
|
|
2533
|
-
after?: (verification: Verification & Record<string, unknown>, context?: GenericEndpointContext) => Promise<void>;
|
|
2538
|
+
after?: (verification: Verification & Record<string, unknown>, context?: GenericEndpointContext, data?: Partial<Verification> & Record<string, unknown>) => Promise<void>;
|
|
2534
2539
|
};
|
|
2535
2540
|
delete?: {
|
|
2536
2541
|
/**
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { F as LiteralUnion, I as Prettify, L as Primitive, M as Awaitable, N as AwaitableFunction, P as LiteralString, R as UnionToIntersection, _ as PayvoAuthRateLimitOptions, c as ClientStore, d as AuthContext, f as GenericEndpointContext, g as PayvoAuthOptions, h as PayvoAuthAdvancedOptions, l as PayvoAuthClientOptions, m as GenerateIdFn, o as StandardSchemaV1, p as InternalAdapter, s as ClientAtomListener, u as PayvoAuthClientPlugin, v as HookEndpointContext, y as PayvoAuthPlugin, z as PayvoAuthCookies } from "./index-
|
|
1
|
+
import { F as LiteralUnion, I as Prettify, L as Primitive, M as Awaitable, N as AwaitableFunction, P as LiteralString, R as UnionToIntersection, _ as PayvoAuthRateLimitOptions, c as ClientStore, d as AuthContext, f as GenericEndpointContext, g as PayvoAuthOptions, h as PayvoAuthAdvancedOptions, l as PayvoAuthClientOptions, m as GenerateIdFn, o as StandardSchemaV1, p as InternalAdapter, s as ClientAtomListener, u as PayvoAuthClientPlugin, v as HookEndpointContext, y as PayvoAuthPlugin, z as PayvoAuthCookies } from "./index-BL_t8cRp.mjs";
|
|
2
2
|
import "./index-CNtOUpmF.mjs";
|
|
3
3
|
export { AuthContext, Awaitable, AwaitableFunction, ClientAtomListener, ClientStore, GenerateIdFn, GenericEndpointContext, HookEndpointContext, InternalAdapter, LiteralString, LiteralUnion, PayvoAuthAdvancedOptions, PayvoAuthClientOptions, PayvoAuthClientPlugin, PayvoAuthCookies, PayvoAuthOptions, PayvoAuthPlugin, PayvoAuthRateLimitOptions, Prettify, Primitive, StandardSchemaV1, UnionToIntersection };
|
package/dist/oauth2/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as ProviderOptions, B as createAuthorizationCodeRequest, G as createRefreshAccessTokenRequest, H as validateToken, J as clientCredentialsToken, K as refreshAccessToken, Q as OAuthProvider, U as generateCodeChallenge, V as validateAuthorizationCode, W as getOAuth2Tokens, X as OAuth2Tokens, Y as createClientCredentialsTokenRequest, Z as OAuth2UserInfo, q as createAuthorizationURL } from "../index-
|
|
1
|
+
import { $ as ProviderOptions, B as createAuthorizationCodeRequest, G as createRefreshAccessTokenRequest, H as validateToken, J as clientCredentialsToken, K as refreshAccessToken, Q as OAuthProvider, U as generateCodeChallenge, V as validateAuthorizationCode, W as getOAuth2Tokens, X as OAuth2Tokens, Y as createClientCredentialsTokenRequest, Z as OAuth2UserInfo, q as createAuthorizationURL } from "../index-BL_t8cRp.mjs";
|
|
2
2
|
import "../index-CNtOUpmF.mjs";
|
|
3
3
|
export { OAuth2Tokens, OAuth2UserInfo, OAuthProvider, ProviderOptions, clientCredentialsToken, createAuthorizationCodeRequest, createAuthorizationURL, createClientCredentialsTokenRequest, createRefreshAccessTokenRequest, generateCodeChallenge, getOAuth2Tokens, refreshAccessToken, validateAuthorizationCode, validateToken };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as GithubProfile, C as SocialProviders, D as GoogleProfile, E as GoogleOptions, O as google, S as SocialProviderListEnum, T as socialProviders, b as SocialProvider, j as github, k as GithubOptions, w as socialProviderList, x as SocialProviderList } from "../index-
|
|
1
|
+
import { A as GithubProfile, C as SocialProviders, D as GoogleProfile, E as GoogleOptions, O as google, S as SocialProviderListEnum, T as socialProviders, b as SocialProvider, j as github, k as GithubOptions, w as socialProviderList, x as SocialProviderList } from "../index-BL_t8cRp.mjs";
|
|
2
2
|
import "../index-CNtOUpmF.mjs";
|
|
3
3
|
export { GithubOptions, GithubProfile, GoogleOptions, GoogleProfile, SocialProvider, SocialProviderList, SocialProviderListEnum, SocialProviders, github, google, socialProviderList, socialProviders };
|
|
@@ -903,9 +903,10 @@ export type PayvoAuthOptions = {
|
|
|
903
903
|
data: Optional<User & Record<string, any>>;
|
|
904
904
|
}>;
|
|
905
905
|
/**
|
|
906
|
-
* Hook that is called after a user is updated.
|
|
906
|
+
* Hook that is called after a user is updated. `data` holds the
|
|
907
|
+
* fields that were written, after every `before` hook ran.
|
|
907
908
|
*/
|
|
908
|
-
after?: (user: User & Record<string, unknown>, context?: GenericEndpointContext) => Promise<void>;
|
|
909
|
+
after?: (user: User & Record<string, unknown>, context?: GenericEndpointContext, data?: Partial<User> & Record<string, unknown>) => Promise<void>;
|
|
909
910
|
};
|
|
910
911
|
delete?: {
|
|
911
912
|
/**
|
|
@@ -950,9 +951,10 @@ export type PayvoAuthOptions = {
|
|
|
950
951
|
data: Optional<Session & Record<string, any>>;
|
|
951
952
|
}>;
|
|
952
953
|
/**
|
|
953
|
-
* Hook that is called after a session is updated.
|
|
954
|
+
* Hook that is called after a session is updated. `data` holds the
|
|
955
|
+
* fields that were written, after every `before` hook ran.
|
|
954
956
|
*/
|
|
955
|
-
after?: (session: Session & Record<string, unknown>, context?: GenericEndpointContext) => Promise<void>;
|
|
957
|
+
after?: (session: Session & Record<string, unknown>, context?: GenericEndpointContext, data?: Partial<Session> & Record<string, unknown>) => Promise<void>;
|
|
956
958
|
};
|
|
957
959
|
delete?: {
|
|
958
960
|
/**
|
|
@@ -997,9 +999,10 @@ export type PayvoAuthOptions = {
|
|
|
997
999
|
data: Optional<Account & Record<string, any>>;
|
|
998
1000
|
}>;
|
|
999
1001
|
/**
|
|
1000
|
-
* Hook that is called after a account is updated.
|
|
1002
|
+
* Hook that is called after a account is updated. `data` holds the
|
|
1003
|
+
* fields that were written, after every `before` hook ran.
|
|
1001
1004
|
*/
|
|
1002
|
-
after?: (account: Account & Record<string, unknown>, context?: GenericEndpointContext) => Promise<void>;
|
|
1005
|
+
after?: (account: Account & Record<string, unknown>, context?: GenericEndpointContext, data?: Partial<Account> & Record<string, unknown>) => Promise<void>;
|
|
1003
1006
|
};
|
|
1004
1007
|
delete?: {
|
|
1005
1008
|
/**
|
|
@@ -1041,9 +1044,11 @@ export type PayvoAuthOptions = {
|
|
|
1041
1044
|
data: Optional<Verification & Record<string, any>>;
|
|
1042
1045
|
}>;
|
|
1043
1046
|
/**
|
|
1044
|
-
* Hook that is called after a verification is updated.
|
|
1047
|
+
* Hook that is called after a verification is updated. `data`
|
|
1048
|
+
* holds the fields that were written, after every `before` hook
|
|
1049
|
+
* ran.
|
|
1045
1050
|
*/
|
|
1046
|
-
after?: (verification: Verification & Record<string, unknown>, context?: GenericEndpointContext) => Promise<void>;
|
|
1051
|
+
after?: (verification: Verification & Record<string, unknown>, context?: GenericEndpointContext, data?: Partial<Verification> & Record<string, unknown>) => Promise<void>;
|
|
1047
1052
|
};
|
|
1048
1053
|
delete?: {
|
|
1049
1054
|
/**
|