@xylex-group/athena 2.0.0 → 2.3.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/README.md +287 -95
- package/dist/browser.cjs +4791 -0
- package/dist/browser.cjs.map +1 -0
- package/dist/browser.d.cts +25 -0
- package/dist/browser.d.ts +25 -0
- package/dist/browser.js +4745 -0
- package/dist/browser.js.map +1 -0
- package/dist/cli/index.cjs +2087 -220
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.d.cts +3 -2
- package/dist/cli/index.d.ts +3 -2
- package/dist/cli/index.js +2089 -222
- package/dist/cli/index.js.map +1 -1
- package/dist/cookies.cjs +890 -0
- package/dist/cookies.cjs.map +1 -0
- package/dist/cookies.d.cts +174 -0
- package/dist/cookies.d.ts +174 -0
- package/dist/cookies.js +869 -0
- package/dist/cookies.js.map +1 -0
- package/dist/index.cjs +3046 -1200
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -408
- package/dist/index.d.ts +8 -408
- package/dist/index.js +3045 -1202
- package/dist/index.js.map +1 -1
- package/dist/{model-form-CVOtC8jq.d.ts → model-form-BpDXlbxb.d.ts} +97 -2
- package/dist/{model-form-hXkvHS_3.d.cts → model-form-hoE2jHIi.d.cts} +97 -2
- package/dist/pipeline-BNIw8pDQ.d.ts +8 -0
- package/dist/pipeline-DNIpEsN8.d.cts +8 -0
- package/dist/react-email-BvyCZnfW.d.cts +610 -0
- package/dist/react-email-qPA1wjFV.d.ts +610 -0
- package/dist/react.cjs +30 -9
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +4 -4
- package/dist/react.d.ts +4 -4
- package/dist/react.js +30 -9
- package/dist/react.js.map +1 -1
- package/dist/{types-BnzoaNRC.d.cts → types-A5e97acl.d.cts} +2 -1
- package/dist/{types-BnzoaNRC.d.ts → types-A5e97acl.d.ts} +2 -1
- package/dist/{pipeline-CQgV-Yfo.d.ts → types-BnD22-vb.d.ts} +2 -7
- package/dist/{pipeline-C-cN0ACi.d.cts → types-bDlr4u7p.d.cts} +2 -7
- package/dist/utils.cjs +153 -0
- package/dist/utils.cjs.map +1 -0
- package/dist/utils.d.cts +23 -0
- package/dist/utils.d.ts +23 -0
- package/dist/utils.js +146 -0
- package/dist/utils.js.map +1 -0
- package/package.json +87 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as AthenaGatewayErrorCode, X as AthenaGatewayEndpointPath, Y as AthenaGatewayMethod, c as AthenaGatewayErrorDetails, Q as AthenaGatewayResponse, J as AnyModelDef, z as RowOf, o as InsertOf, U as UpdateOf } from './types-A5e97acl.js';
|
|
2
2
|
|
|
3
3
|
type AthenaAuthMethod = 'GET' | 'POST';
|
|
4
4
|
type AthenaAuthCredentials = 'omit' | 'same-origin' | 'include';
|
|
@@ -211,6 +211,7 @@ interface AthenaAuthLinkedAccount {
|
|
|
211
211
|
}
|
|
212
212
|
type AthenaAuthPermissionSet = Record<string, unknown> | string[];
|
|
213
213
|
type AthenaAuthLooseRecord = Record<string, unknown>;
|
|
214
|
+
type AthenaAuthReactEmailProps = Record<string, unknown>;
|
|
214
215
|
interface AthenaSetPasswordRequest {
|
|
215
216
|
newPassword: string;
|
|
216
217
|
}
|
|
@@ -515,6 +516,56 @@ interface AthenaAdminEmailGetQuery {
|
|
|
515
516
|
interface AthenaAdminEmailGetResponse {
|
|
516
517
|
email?: AthenaAuthLooseRecord;
|
|
517
518
|
}
|
|
519
|
+
interface AthenaAuthReactEmailRenderInput {
|
|
520
|
+
/**
|
|
521
|
+
* React email element instance (for example: `<WelcomeEmail {...props} />`).
|
|
522
|
+
*/
|
|
523
|
+
element?: unknown;
|
|
524
|
+
/**
|
|
525
|
+
* React email component function. Use with `props` when you prefer component + props inputs.
|
|
526
|
+
*/
|
|
527
|
+
component?: AthenaAuthReactEmailComponent;
|
|
528
|
+
/**
|
|
529
|
+
* Props passed to `component` when `element` is omitted.
|
|
530
|
+
*/
|
|
531
|
+
props?: AthenaAuthReactEmailProps;
|
|
532
|
+
/**
|
|
533
|
+
* When true, run `pretty(...)` on rendered HTML when available.
|
|
534
|
+
*/
|
|
535
|
+
pretty?: boolean;
|
|
536
|
+
/**
|
|
537
|
+
* Override plain-text output. If omitted, text is auto-derived when possible.
|
|
538
|
+
*/
|
|
539
|
+
text?: string;
|
|
540
|
+
/**
|
|
541
|
+
* Disable derived plain-text generation. Defaults to `true`.
|
|
542
|
+
*/
|
|
543
|
+
includePlainText?: boolean;
|
|
544
|
+
}
|
|
545
|
+
type AthenaAuthReactEmailComponent<TProps extends AthenaAuthReactEmailProps = AthenaAuthReactEmailProps> = (props: TProps) => unknown;
|
|
546
|
+
interface AthenaAuthReactEmailRenderOptions {
|
|
547
|
+
pretty?: boolean;
|
|
548
|
+
includePlainText?: boolean;
|
|
549
|
+
}
|
|
550
|
+
type AthenaAuthReactEmailEventPhase = 'render:start' | 'render:success' | 'render:error';
|
|
551
|
+
interface AthenaAuthReactEmailRenderEvent {
|
|
552
|
+
phase: AthenaAuthReactEmailEventPhase;
|
|
553
|
+
timestamp: string;
|
|
554
|
+
route?: string;
|
|
555
|
+
durationMs?: number;
|
|
556
|
+
message?: string;
|
|
557
|
+
error?: string;
|
|
558
|
+
}
|
|
559
|
+
interface AthenaAuthReactEmailConfig {
|
|
560
|
+
/**
|
|
561
|
+
* Optional default render settings used when request payloads omit `pretty` or `includePlainText`.
|
|
562
|
+
*/
|
|
563
|
+
defaults?: AthenaAuthReactEmailRenderOptions;
|
|
564
|
+
/**
|
|
565
|
+
* Optional observer for render lifecycle events.
|
|
566
|
+
*/
|
|
567
|
+
observe?: (event: AthenaAuthReactEmailRenderEvent) => void;
|
|
568
|
+
}
|
|
518
569
|
interface AthenaAdminEmailCreateRequest {
|
|
519
570
|
recipientEmail: string;
|
|
520
571
|
subject: string;
|
|
@@ -522,6 +573,10 @@ interface AthenaAdminEmailCreateRequest {
|
|
|
522
573
|
fromName?: string;
|
|
523
574
|
textBody?: string;
|
|
524
575
|
htmlBody?: string;
|
|
576
|
+
/**
|
|
577
|
+
* Optional React Email render input. When provided, `htmlBody` is derived automatically.
|
|
578
|
+
*/
|
|
579
|
+
react?: AthenaAuthReactEmailRenderInput;
|
|
525
580
|
provider: string;
|
|
526
581
|
flow?: string;
|
|
527
582
|
metadata?: AthenaAuthLooseRecord;
|
|
@@ -534,6 +589,10 @@ interface AthenaAdminEmailUpdateRequest {
|
|
|
534
589
|
fromName?: string | null;
|
|
535
590
|
textBody?: string | null;
|
|
536
591
|
htmlBody?: string | null;
|
|
592
|
+
/**
|
|
593
|
+
* Optional React Email render input. When provided, `htmlBody` is derived automatically.
|
|
594
|
+
*/
|
|
595
|
+
react?: AthenaAuthReactEmailRenderInput;
|
|
537
596
|
provider?: string;
|
|
538
597
|
flow?: string | null;
|
|
539
598
|
metadata?: AthenaAuthLooseRecord;
|
|
@@ -605,6 +664,10 @@ interface AthenaAdminEmailTemplateCreateRequest {
|
|
|
605
664
|
subjectTemplate: string;
|
|
606
665
|
textTemplate?: string;
|
|
607
666
|
htmlTemplate?: string;
|
|
667
|
+
/**
|
|
668
|
+
* Optional React Email render input. When provided, `htmlTemplate` is derived automatically.
|
|
669
|
+
*/
|
|
670
|
+
react?: AthenaAuthReactEmailRenderInput;
|
|
608
671
|
variables?: string[];
|
|
609
672
|
isActive?: boolean;
|
|
610
673
|
metadata?: AthenaAuthLooseRecord;
|
|
@@ -616,6 +679,10 @@ interface AthenaAdminEmailTemplateUpdateRequest {
|
|
|
616
679
|
subjectTemplate?: string;
|
|
617
680
|
textTemplate?: string | null;
|
|
618
681
|
htmlTemplate?: string | null;
|
|
682
|
+
/**
|
|
683
|
+
* Optional React Email render input. When provided, `htmlTemplate` is derived automatically.
|
|
684
|
+
*/
|
|
685
|
+
react?: AthenaAuthReactEmailRenderInput;
|
|
619
686
|
variables?: string[];
|
|
620
687
|
isActive?: boolean;
|
|
621
688
|
metadata?: AthenaAuthLooseRecord;
|
|
@@ -796,6 +863,34 @@ interface AthenaAuthFetchCompatibleInput {
|
|
|
796
863
|
}
|
|
797
864
|
interface AthenaAuthClientConfig extends AthenaAuthCallOptions {
|
|
798
865
|
fetch?: typeof fetch;
|
|
866
|
+
reactEmail?: AthenaAuthReactEmailConfig;
|
|
867
|
+
}
|
|
868
|
+
interface AthenaAuthEmailTemplateDefinition<TProps extends AthenaAuthReactEmailProps = AthenaAuthReactEmailProps> {
|
|
869
|
+
component: AthenaAuthReactEmailComponent<TProps>;
|
|
870
|
+
templateKey?: string;
|
|
871
|
+
subjectTemplate?: string;
|
|
872
|
+
defaults?: AthenaAuthReactEmailRenderOptions;
|
|
873
|
+
}
|
|
874
|
+
interface AthenaAuthEmailTemplateReactOverrides {
|
|
875
|
+
pretty?: boolean;
|
|
876
|
+
text?: string;
|
|
877
|
+
includePlainText?: boolean;
|
|
878
|
+
}
|
|
879
|
+
interface AthenaAuthEmailTemplateCreateFromDefinitionInput<TProps extends AthenaAuthReactEmailProps = AthenaAuthReactEmailProps> extends Omit<AthenaAdminEmailTemplateCreateRequest, 'react' | 'htmlTemplate' | 'textTemplate' | 'variables' | 'templateKey' | 'subjectTemplate'> {
|
|
880
|
+
props: TProps;
|
|
881
|
+
templateKey?: string;
|
|
882
|
+
subjectTemplate?: string;
|
|
883
|
+
react?: AthenaAuthEmailTemplateReactOverrides;
|
|
884
|
+
}
|
|
885
|
+
interface AthenaAuthEmailTemplateUpdateFromDefinitionInput<TProps extends AthenaAuthReactEmailProps = AthenaAuthReactEmailProps> extends Omit<AthenaAdminEmailTemplateUpdateRequest, 'react' | 'htmlTemplate' | 'textTemplate' | 'variables'> {
|
|
886
|
+
props: TProps;
|
|
887
|
+
react?: AthenaAuthEmailTemplateReactOverrides;
|
|
888
|
+
}
|
|
889
|
+
interface AthenaAuthEmailTemplateBuilder<TProps extends AthenaAuthReactEmailProps = AthenaAuthReactEmailProps> {
|
|
890
|
+
component: AthenaAuthReactEmailComponent<TProps>;
|
|
891
|
+
react: (props: TProps, overrides?: AthenaAuthEmailTemplateReactOverrides) => AthenaAuthReactEmailRenderInput;
|
|
892
|
+
toTemplateCreate: (input: AthenaAuthEmailTemplateCreateFromDefinitionInput<TProps>) => AthenaAdminEmailTemplateCreateRequest;
|
|
893
|
+
toTemplateUpdate: (input: AthenaAuthEmailTemplateUpdateFromDefinitionInput<TProps>) => AthenaAdminEmailTemplateUpdateRequest;
|
|
799
894
|
}
|
|
800
895
|
type AthenaAuthGenericInput = AthenaAuthFetchCompatibleInput & Record<string, unknown>;
|
|
801
896
|
type AthenaAuthGenericQueryInput = AthenaAuthFetchCompatibleInput & {
|
|
@@ -1281,4 +1376,4 @@ interface ModelFormAdapter<TModel extends AnyModelDef> {
|
|
|
1281
1376
|
*/
|
|
1282
1377
|
declare function createModelFormAdapter<TModel extends AnyModelDef>(model: TModel): ModelFormAdapter<TModel>;
|
|
1283
1378
|
|
|
1284
|
-
export { type
|
|
1379
|
+
export { type AthenaLinkSocialRequest as $, type AthenaAuthAdminUserSessionRevokeBinding as A, type AthenaAuthReactEmailProps as B, type AthenaAuthReactEmailRenderEvent as C, type AthenaAuthReactEmailRenderInput as D, type AthenaAuthReactEmailRenderOptions as E, type AthenaAuthRequestInput as F, type AthenaAuthResetPasswordBinding as G, type AthenaAuthResult as H, type AthenaAuthRevokeSessionRequest as I, type AthenaAuthSdkClient as J, type AthenaAuthSession as K, type AthenaAuthSessionResponse as L, type AthenaAuthSessionRevokeBinding as M, type AthenaAuthSignInResponse as N, type AthenaAuthSignOutResponse as O, type AthenaAuthSocialRedirectResponse as P, type AthenaAuthStatusResponse as Q, type AthenaAuthUser as R, type AthenaChangeEmailRequest as S, type AthenaChangePasswordRequest as T, type AthenaDeleteUserCallbackRequest as U, type AthenaDeleteUserRequest as V, type AthenaDeleteUserResponse as W, type AthenaEmailSignInRequest as X, type AthenaEmailSignUpRequest as Y, type AthenaForgetPasswordRequest as Z, AthenaGatewayError as _, type AthenaAuthBindings as a, type AthenaOAuthAccountTokenRequest as a0, type AthenaOAuthTokenBundle as a1, type AthenaResetPasswordRequest as a2, type AthenaSendVerificationEmailRequest as a3, type AthenaSocialSignInRequest as a4, type AthenaUnlinkAccountRequest as a5, type AthenaUpdateUserRequest as a6, type AthenaUsernameSignInRequest as a7, type AthenaVerifyEmailRequest as a8, type ModelFormAdapter as a9, type ModelFormDefaults as aa, type ModelFormNullishMode as ab, type ModelFormValues as ac, type ToModelFormDefaultsOptions as ad, type ToModelPayloadOptions as ae, createModelFormAdapter as af, isAthenaGatewayError as ag, toModelFormDefaults as ah, toModelPayload as ai, type AthenaAuthFetchCompatibleInput as aj, type AthenaAuthCallOptions as b, type AthenaAuthClientConfig as c, type AthenaAuthCredentials as d, type AthenaAuthEmailChangeResponse as e, type AthenaAuthEmailTemplateBuilder as f, type AthenaAuthEmailTemplateCreateFromDefinitionInput as g, type AthenaAuthEmailTemplateDefinition as h, type AthenaAuthEmailTemplateReactOverrides as i, type AthenaAuthEmailTemplateUpdateFromDefinitionInput as j, type AthenaAuthEndpointPath as k, type AthenaAuthErrorCode as l, type AthenaAuthErrorDetails as m, type AthenaAuthGenericInput as n, type AthenaAuthGenericQueryInput as o, type AthenaAuthLinkedAccount as p, type AthenaAuthMethod as q, type AthenaAuthOrganization as r, type AthenaAuthOrganizationBindings as s, type AthenaAuthOrganizationInvitation as t, type AthenaAuthOrganizationMember as u, type AthenaAuthQueryPrimitive as v, type AthenaAuthQueryValue as w, type AthenaAuthReactEmailComponent as x, type AthenaAuthReactEmailConfig as y, type AthenaAuthReactEmailEventPhase as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as AthenaGatewayErrorCode, X as AthenaGatewayEndpointPath, Y as AthenaGatewayMethod, c as AthenaGatewayErrorDetails, Q as AthenaGatewayResponse, J as AnyModelDef, z as RowOf, o as InsertOf, U as UpdateOf } from './types-A5e97acl.cjs';
|
|
2
2
|
|
|
3
3
|
type AthenaAuthMethod = 'GET' | 'POST';
|
|
4
4
|
type AthenaAuthCredentials = 'omit' | 'same-origin' | 'include';
|
|
@@ -211,6 +211,7 @@ interface AthenaAuthLinkedAccount {
|
|
|
211
211
|
}
|
|
212
212
|
type AthenaAuthPermissionSet = Record<string, unknown> | string[];
|
|
213
213
|
type AthenaAuthLooseRecord = Record<string, unknown>;
|
|
214
|
+
type AthenaAuthReactEmailProps = Record<string, unknown>;
|
|
214
215
|
interface AthenaSetPasswordRequest {
|
|
215
216
|
newPassword: string;
|
|
216
217
|
}
|
|
@@ -515,6 +516,56 @@ interface AthenaAdminEmailGetQuery {
|
|
|
515
516
|
interface AthenaAdminEmailGetResponse {
|
|
516
517
|
email?: AthenaAuthLooseRecord;
|
|
517
518
|
}
|
|
519
|
+
interface AthenaAuthReactEmailRenderInput {
|
|
520
|
+
/**
|
|
521
|
+
* React email element instance (for example: `<WelcomeEmail {...props} />`).
|
|
522
|
+
*/
|
|
523
|
+
element?: unknown;
|
|
524
|
+
/**
|
|
525
|
+
* React email component function. Use with `props` when you prefer component + props inputs.
|
|
526
|
+
*/
|
|
527
|
+
component?: AthenaAuthReactEmailComponent;
|
|
528
|
+
/**
|
|
529
|
+
* Props passed to `component` when `element` is omitted.
|
|
530
|
+
*/
|
|
531
|
+
props?: AthenaAuthReactEmailProps;
|
|
532
|
+
/**
|
|
533
|
+
* When true, run `pretty(...)` on rendered HTML when available.
|
|
534
|
+
*/
|
|
535
|
+
pretty?: boolean;
|
|
536
|
+
/**
|
|
537
|
+
* Override plain-text output. If omitted, text is auto-derived when possible.
|
|
538
|
+
*/
|
|
539
|
+
text?: string;
|
|
540
|
+
/**
|
|
541
|
+
* Disable derived plain-text generation. Defaults to `true`.
|
|
542
|
+
*/
|
|
543
|
+
includePlainText?: boolean;
|
|
544
|
+
}
|
|
545
|
+
type AthenaAuthReactEmailComponent<TProps extends AthenaAuthReactEmailProps = AthenaAuthReactEmailProps> = (props: TProps) => unknown;
|
|
546
|
+
interface AthenaAuthReactEmailRenderOptions {
|
|
547
|
+
pretty?: boolean;
|
|
548
|
+
includePlainText?: boolean;
|
|
549
|
+
}
|
|
550
|
+
type AthenaAuthReactEmailEventPhase = 'render:start' | 'render:success' | 'render:error';
|
|
551
|
+
interface AthenaAuthReactEmailRenderEvent {
|
|
552
|
+
phase: AthenaAuthReactEmailEventPhase;
|
|
553
|
+
timestamp: string;
|
|
554
|
+
route?: string;
|
|
555
|
+
durationMs?: number;
|
|
556
|
+
message?: string;
|
|
557
|
+
error?: string;
|
|
558
|
+
}
|
|
559
|
+
interface AthenaAuthReactEmailConfig {
|
|
560
|
+
/**
|
|
561
|
+
* Optional default render settings used when request payloads omit `pretty` or `includePlainText`.
|
|
562
|
+
*/
|
|
563
|
+
defaults?: AthenaAuthReactEmailRenderOptions;
|
|
564
|
+
/**
|
|
565
|
+
* Optional observer for render lifecycle events.
|
|
566
|
+
*/
|
|
567
|
+
observe?: (event: AthenaAuthReactEmailRenderEvent) => void;
|
|
568
|
+
}
|
|
518
569
|
interface AthenaAdminEmailCreateRequest {
|
|
519
570
|
recipientEmail: string;
|
|
520
571
|
subject: string;
|
|
@@ -522,6 +573,10 @@ interface AthenaAdminEmailCreateRequest {
|
|
|
522
573
|
fromName?: string;
|
|
523
574
|
textBody?: string;
|
|
524
575
|
htmlBody?: string;
|
|
576
|
+
/**
|
|
577
|
+
* Optional React Email render input. When provided, `htmlBody` is derived automatically.
|
|
578
|
+
*/
|
|
579
|
+
react?: AthenaAuthReactEmailRenderInput;
|
|
525
580
|
provider: string;
|
|
526
581
|
flow?: string;
|
|
527
582
|
metadata?: AthenaAuthLooseRecord;
|
|
@@ -534,6 +589,10 @@ interface AthenaAdminEmailUpdateRequest {
|
|
|
534
589
|
fromName?: string | null;
|
|
535
590
|
textBody?: string | null;
|
|
536
591
|
htmlBody?: string | null;
|
|
592
|
+
/**
|
|
593
|
+
* Optional React Email render input. When provided, `htmlBody` is derived automatically.
|
|
594
|
+
*/
|
|
595
|
+
react?: AthenaAuthReactEmailRenderInput;
|
|
537
596
|
provider?: string;
|
|
538
597
|
flow?: string | null;
|
|
539
598
|
metadata?: AthenaAuthLooseRecord;
|
|
@@ -605,6 +664,10 @@ interface AthenaAdminEmailTemplateCreateRequest {
|
|
|
605
664
|
subjectTemplate: string;
|
|
606
665
|
textTemplate?: string;
|
|
607
666
|
htmlTemplate?: string;
|
|
667
|
+
/**
|
|
668
|
+
* Optional React Email render input. When provided, `htmlTemplate` is derived automatically.
|
|
669
|
+
*/
|
|
670
|
+
react?: AthenaAuthReactEmailRenderInput;
|
|
608
671
|
variables?: string[];
|
|
609
672
|
isActive?: boolean;
|
|
610
673
|
metadata?: AthenaAuthLooseRecord;
|
|
@@ -616,6 +679,10 @@ interface AthenaAdminEmailTemplateUpdateRequest {
|
|
|
616
679
|
subjectTemplate?: string;
|
|
617
680
|
textTemplate?: string | null;
|
|
618
681
|
htmlTemplate?: string | null;
|
|
682
|
+
/**
|
|
683
|
+
* Optional React Email render input. When provided, `htmlTemplate` is derived automatically.
|
|
684
|
+
*/
|
|
685
|
+
react?: AthenaAuthReactEmailRenderInput;
|
|
619
686
|
variables?: string[];
|
|
620
687
|
isActive?: boolean;
|
|
621
688
|
metadata?: AthenaAuthLooseRecord;
|
|
@@ -796,6 +863,34 @@ interface AthenaAuthFetchCompatibleInput {
|
|
|
796
863
|
}
|
|
797
864
|
interface AthenaAuthClientConfig extends AthenaAuthCallOptions {
|
|
798
865
|
fetch?: typeof fetch;
|
|
866
|
+
reactEmail?: AthenaAuthReactEmailConfig;
|
|
867
|
+
}
|
|
868
|
+
interface AthenaAuthEmailTemplateDefinition<TProps extends AthenaAuthReactEmailProps = AthenaAuthReactEmailProps> {
|
|
869
|
+
component: AthenaAuthReactEmailComponent<TProps>;
|
|
870
|
+
templateKey?: string;
|
|
871
|
+
subjectTemplate?: string;
|
|
872
|
+
defaults?: AthenaAuthReactEmailRenderOptions;
|
|
873
|
+
}
|
|
874
|
+
interface AthenaAuthEmailTemplateReactOverrides {
|
|
875
|
+
pretty?: boolean;
|
|
876
|
+
text?: string;
|
|
877
|
+
includePlainText?: boolean;
|
|
878
|
+
}
|
|
879
|
+
interface AthenaAuthEmailTemplateCreateFromDefinitionInput<TProps extends AthenaAuthReactEmailProps = AthenaAuthReactEmailProps> extends Omit<AthenaAdminEmailTemplateCreateRequest, 'react' | 'htmlTemplate' | 'textTemplate' | 'variables' | 'templateKey' | 'subjectTemplate'> {
|
|
880
|
+
props: TProps;
|
|
881
|
+
templateKey?: string;
|
|
882
|
+
subjectTemplate?: string;
|
|
883
|
+
react?: AthenaAuthEmailTemplateReactOverrides;
|
|
884
|
+
}
|
|
885
|
+
interface AthenaAuthEmailTemplateUpdateFromDefinitionInput<TProps extends AthenaAuthReactEmailProps = AthenaAuthReactEmailProps> extends Omit<AthenaAdminEmailTemplateUpdateRequest, 'react' | 'htmlTemplate' | 'textTemplate' | 'variables'> {
|
|
886
|
+
props: TProps;
|
|
887
|
+
react?: AthenaAuthEmailTemplateReactOverrides;
|
|
888
|
+
}
|
|
889
|
+
interface AthenaAuthEmailTemplateBuilder<TProps extends AthenaAuthReactEmailProps = AthenaAuthReactEmailProps> {
|
|
890
|
+
component: AthenaAuthReactEmailComponent<TProps>;
|
|
891
|
+
react: (props: TProps, overrides?: AthenaAuthEmailTemplateReactOverrides) => AthenaAuthReactEmailRenderInput;
|
|
892
|
+
toTemplateCreate: (input: AthenaAuthEmailTemplateCreateFromDefinitionInput<TProps>) => AthenaAdminEmailTemplateCreateRequest;
|
|
893
|
+
toTemplateUpdate: (input: AthenaAuthEmailTemplateUpdateFromDefinitionInput<TProps>) => AthenaAdminEmailTemplateUpdateRequest;
|
|
799
894
|
}
|
|
800
895
|
type AthenaAuthGenericInput = AthenaAuthFetchCompatibleInput & Record<string, unknown>;
|
|
801
896
|
type AthenaAuthGenericQueryInput = AthenaAuthFetchCompatibleInput & {
|
|
@@ -1281,4 +1376,4 @@ interface ModelFormAdapter<TModel extends AnyModelDef> {
|
|
|
1281
1376
|
*/
|
|
1282
1377
|
declare function createModelFormAdapter<TModel extends AnyModelDef>(model: TModel): ModelFormAdapter<TModel>;
|
|
1283
1378
|
|
|
1284
|
-
export { type
|
|
1379
|
+
export { type AthenaLinkSocialRequest as $, type AthenaAuthAdminUserSessionRevokeBinding as A, type AthenaAuthReactEmailProps as B, type AthenaAuthReactEmailRenderEvent as C, type AthenaAuthReactEmailRenderInput as D, type AthenaAuthReactEmailRenderOptions as E, type AthenaAuthRequestInput as F, type AthenaAuthResetPasswordBinding as G, type AthenaAuthResult as H, type AthenaAuthRevokeSessionRequest as I, type AthenaAuthSdkClient as J, type AthenaAuthSession as K, type AthenaAuthSessionResponse as L, type AthenaAuthSessionRevokeBinding as M, type AthenaAuthSignInResponse as N, type AthenaAuthSignOutResponse as O, type AthenaAuthSocialRedirectResponse as P, type AthenaAuthStatusResponse as Q, type AthenaAuthUser as R, type AthenaChangeEmailRequest as S, type AthenaChangePasswordRequest as T, type AthenaDeleteUserCallbackRequest as U, type AthenaDeleteUserRequest as V, type AthenaDeleteUserResponse as W, type AthenaEmailSignInRequest as X, type AthenaEmailSignUpRequest as Y, type AthenaForgetPasswordRequest as Z, AthenaGatewayError as _, type AthenaAuthBindings as a, type AthenaOAuthAccountTokenRequest as a0, type AthenaOAuthTokenBundle as a1, type AthenaResetPasswordRequest as a2, type AthenaSendVerificationEmailRequest as a3, type AthenaSocialSignInRequest as a4, type AthenaUnlinkAccountRequest as a5, type AthenaUpdateUserRequest as a6, type AthenaUsernameSignInRequest as a7, type AthenaVerifyEmailRequest as a8, type ModelFormAdapter as a9, type ModelFormDefaults as aa, type ModelFormNullishMode as ab, type ModelFormValues as ac, type ToModelFormDefaultsOptions as ad, type ToModelPayloadOptions as ae, createModelFormAdapter as af, isAthenaGatewayError as ag, toModelFormDefaults as ah, toModelPayload as ai, type AthenaAuthFetchCompatibleInput as aj, type AthenaAuthCallOptions as b, type AthenaAuthClientConfig as c, type AthenaAuthCredentials as d, type AthenaAuthEmailChangeResponse as e, type AthenaAuthEmailTemplateBuilder as f, type AthenaAuthEmailTemplateCreateFromDefinitionInput as g, type AthenaAuthEmailTemplateDefinition as h, type AthenaAuthEmailTemplateReactOverrides as i, type AthenaAuthEmailTemplateUpdateFromDefinitionInput as j, type AthenaAuthEndpointPath as k, type AthenaAuthErrorCode as l, type AthenaAuthErrorDetails as m, type AthenaAuthGenericInput as n, type AthenaAuthGenericQueryInput as o, type AthenaAuthLinkedAccount as p, type AthenaAuthMethod as q, type AthenaAuthOrganization as r, type AthenaAuthOrganizationBindings as s, type AthenaAuthOrganizationInvitation as t, type AthenaAuthOrganizationMember as u, type AthenaAuthQueryPrimitive as v, type AthenaAuthQueryValue as w, type AthenaAuthReactEmailComponent as x, type AthenaAuthReactEmailConfig as y, type AthenaAuthReactEmailEventPhase as z };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { R as RunGeneratorOptions, l as RunGeneratorResult } from './types-BnD22-vb.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* End-to-end generator execution: load config, introspect, render, and optionally write files.
|
|
5
|
+
*/
|
|
6
|
+
declare function runSchemaGenerator(options?: RunGeneratorOptions): Promise<RunGeneratorResult>;
|
|
7
|
+
|
|
8
|
+
export { runSchemaGenerator as r };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { R as RunGeneratorOptions, l as RunGeneratorResult } from './types-bDlr4u7p.cjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* End-to-end generator execution: load config, introspect, render, and optionally write files.
|
|
5
|
+
*/
|
|
6
|
+
declare function runSchemaGenerator(options?: RunGeneratorOptions): Promise<RunGeneratorResult>;
|
|
7
|
+
|
|
8
|
+
export { runSchemaGenerator as r };
|