@grantjs/schema 1.3.3 → 1.4.1
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/package.json +1 -1
- package/src/generated/resolvers.ts +28 -0
- package/src/generated/schema-types.ts +25 -0
- package/src/schema/auth/inputs/email-verification-proof.graphql +5 -0
- package/src/schema/auth/inputs/login.graphql +1 -0
- package/src/schema/auth/inputs/register.graphql +1 -0
- package/src/schema/auth/types/email-verification-proof-type.graphql +3 -0
- package/src/schema/organization-invitations/inputs/create-organization-invitation.graphql +1 -0
- package/src/schema/organization-invitations/inputs/update-organization-invitation.graphql +1 -0
- package/src/schema/projects/inputs/sync-project-cdm.graphql +11 -0
package/package.json
CHANGED
|
@@ -443,8 +443,19 @@ export enum CdmIfMissing {
|
|
|
443
443
|
}
|
|
444
444
|
|
|
445
445
|
export type CdmKeyResolverInput = {
|
|
446
|
+
/**
|
|
447
|
+
* `id` references an existing Grant user id. `email` resolves or creates a
|
|
448
|
+
* global passwordless email authentication method. Other values are treated as
|
|
449
|
+
* CDM-local external keys for project import/export.
|
|
450
|
+
*/
|
|
446
451
|
findBy?: InputMaybe<CdmFindBy>;
|
|
447
452
|
ifMissing?: InputMaybe<CdmIfMissing>;
|
|
453
|
+
/**
|
|
454
|
+
* Identifier value. For `findBy: email`, Grant normalizes this to lowercase
|
|
455
|
+
* and resolves it against the global email authentication method catalog.
|
|
456
|
+
* Imported email authentication methods start unverified until a later inbox
|
|
457
|
+
* proof flow, such as project OAuth email magic link, verifies them.
|
|
458
|
+
*/
|
|
448
459
|
value: Scalars['String']['input'];
|
|
449
460
|
};
|
|
450
461
|
|
|
@@ -551,6 +562,7 @@ export type CreateOrganizationInput = {
|
|
|
551
562
|
|
|
552
563
|
export type CreateOrganizationInvitationInput = {
|
|
553
564
|
email: Scalars['String']['input'];
|
|
565
|
+
emailVerificationProofTokenHash?: InputMaybe<Scalars['String']['input']>;
|
|
554
566
|
expiresAt: Scalars['Date']['input'];
|
|
555
567
|
invitedAt?: InputMaybe<Scalars['Date']['input']>;
|
|
556
568
|
invitedBy: Scalars['ID']['input'];
|
|
@@ -694,6 +706,16 @@ export type DeleteUserSessionInput = {
|
|
|
694
706
|
id: Scalars['ID']['input'];
|
|
695
707
|
};
|
|
696
708
|
|
|
709
|
+
export type EmailVerificationProofInput = {
|
|
710
|
+
emailProofToken: Scalars['String']['input'];
|
|
711
|
+
token: Scalars['String']['input'];
|
|
712
|
+
type: EmailVerificationProofType;
|
|
713
|
+
};
|
|
714
|
+
|
|
715
|
+
export enum EmailVerificationProofType {
|
|
716
|
+
OrganizationInvitation = 'ORGANIZATION_INVITATION',
|
|
717
|
+
}
|
|
718
|
+
|
|
697
719
|
export type ExchangeApiKeyInput = {
|
|
698
720
|
clientId: Scalars['String']['input'];
|
|
699
721
|
clientSecret: Scalars['String']['input'];
|
|
@@ -851,6 +873,7 @@ export type IsAuthorizedPermissionInput = {
|
|
|
851
873
|
};
|
|
852
874
|
|
|
853
875
|
export type LoginInput = {
|
|
876
|
+
emailVerificationProof?: InputMaybe<EmailVerificationProofInput>;
|
|
854
877
|
provider: UserAuthenticationMethodProvider;
|
|
855
878
|
providerData: Scalars['JSON']['input'];
|
|
856
879
|
providerId: Scalars['String']['input'];
|
|
@@ -2363,6 +2386,7 @@ export type RefreshSessionResponse = {
|
|
|
2363
2386
|
};
|
|
2364
2387
|
|
|
2365
2388
|
export type RegisterInput = {
|
|
2389
|
+
emailVerificationProof?: InputMaybe<EmailVerificationProofInput>;
|
|
2366
2390
|
provider: UserAuthenticationMethodProvider;
|
|
2367
2391
|
providerData: Scalars['JSON']['input'];
|
|
2368
2392
|
providerId: Scalars['String']['input'];
|
|
@@ -3035,6 +3059,7 @@ export type UpdateOrganizationInput = {
|
|
|
3035
3059
|
|
|
3036
3060
|
export type UpdateOrganizationInvitationInput = {
|
|
3037
3061
|
acceptedAt?: InputMaybe<Scalars['Date']['input']>;
|
|
3062
|
+
emailVerificationProofTokenHash?: InputMaybe<Scalars['String']['input']>;
|
|
3038
3063
|
expiresAt?: InputMaybe<Scalars['Date']['input']>;
|
|
3039
3064
|
invitedAt?: InputMaybe<Scalars['Date']['input']>;
|
|
3040
3065
|
status?: InputMaybe<OrganizationInvitationStatus>;
|
|
@@ -3739,6 +3764,8 @@ export type ResolversTypes = ResolversObject<{
|
|
|
3739
3764
|
DeleteMyAccountsInput: DeleteMyAccountsInput;
|
|
3740
3765
|
DeleteUserAuthenticationMethodInput: DeleteUserAuthenticationMethodInput;
|
|
3741
3766
|
DeleteUserSessionInput: DeleteUserSessionInput;
|
|
3767
|
+
EmailVerificationProofInput: EmailVerificationProofInput;
|
|
3768
|
+
EmailVerificationProofType: EmailVerificationProofType;
|
|
3742
3769
|
ExchangeApiKeyInput: ExchangeApiKeyInput;
|
|
3743
3770
|
ExchangeApiKeyResult: ResolverTypeWrapper<ExchangeApiKeyResult>;
|
|
3744
3771
|
GenerateMyMfaRecoveryCodesInput: GenerateMyMfaRecoveryCodesInput;
|
|
@@ -4096,6 +4123,7 @@ export type ResolversParentTypes = ResolversObject<{
|
|
|
4096
4123
|
DeleteMyAccountsInput: DeleteMyAccountsInput;
|
|
4097
4124
|
DeleteUserAuthenticationMethodInput: DeleteUserAuthenticationMethodInput;
|
|
4098
4125
|
DeleteUserSessionInput: DeleteUserSessionInput;
|
|
4126
|
+
EmailVerificationProofInput: EmailVerificationProofInput;
|
|
4099
4127
|
ExchangeApiKeyInput: ExchangeApiKeyInput;
|
|
4100
4128
|
ExchangeApiKeyResult: ExchangeApiKeyResult;
|
|
4101
4129
|
GenerateMyMfaRecoveryCodesInput: GenerateMyMfaRecoveryCodesInput;
|
|
@@ -441,8 +441,19 @@ export enum CdmIfMissing {
|
|
|
441
441
|
}
|
|
442
442
|
|
|
443
443
|
export type CdmKeyResolverInput = {
|
|
444
|
+
/**
|
|
445
|
+
* `id` references an existing Grant user id. `email` resolves or creates a
|
|
446
|
+
* global passwordless email authentication method. Other values are treated as
|
|
447
|
+
* CDM-local external keys for project import/export.
|
|
448
|
+
*/
|
|
444
449
|
findBy?: InputMaybe<CdmFindBy>;
|
|
445
450
|
ifMissing?: InputMaybe<CdmIfMissing>;
|
|
451
|
+
/**
|
|
452
|
+
* Identifier value. For `findBy: email`, Grant normalizes this to lowercase
|
|
453
|
+
* and resolves it against the global email authentication method catalog.
|
|
454
|
+
* Imported email authentication methods start unverified until a later inbox
|
|
455
|
+
* proof flow, such as project OAuth email magic link, verifies them.
|
|
456
|
+
*/
|
|
446
457
|
value: Scalars['String']['input'];
|
|
447
458
|
};
|
|
448
459
|
|
|
@@ -549,6 +560,7 @@ export type CreateOrganizationInput = {
|
|
|
549
560
|
|
|
550
561
|
export type CreateOrganizationInvitationInput = {
|
|
551
562
|
email: Scalars['String']['input'];
|
|
563
|
+
emailVerificationProofTokenHash?: InputMaybe<Scalars['String']['input']>;
|
|
552
564
|
expiresAt: Scalars['Date']['input'];
|
|
553
565
|
invitedAt?: InputMaybe<Scalars['Date']['input']>;
|
|
554
566
|
invitedBy: Scalars['ID']['input'];
|
|
@@ -692,6 +704,16 @@ export type DeleteUserSessionInput = {
|
|
|
692
704
|
id: Scalars['ID']['input'];
|
|
693
705
|
};
|
|
694
706
|
|
|
707
|
+
export type EmailVerificationProofInput = {
|
|
708
|
+
emailProofToken: Scalars['String']['input'];
|
|
709
|
+
token: Scalars['String']['input'];
|
|
710
|
+
type: EmailVerificationProofType;
|
|
711
|
+
};
|
|
712
|
+
|
|
713
|
+
export enum EmailVerificationProofType {
|
|
714
|
+
OrganizationInvitation = 'ORGANIZATION_INVITATION',
|
|
715
|
+
}
|
|
716
|
+
|
|
695
717
|
export type ExchangeApiKeyInput = {
|
|
696
718
|
clientId: Scalars['String']['input'];
|
|
697
719
|
clientSecret: Scalars['String']['input'];
|
|
@@ -849,6 +871,7 @@ export type IsAuthorizedPermissionInput = {
|
|
|
849
871
|
};
|
|
850
872
|
|
|
851
873
|
export type LoginInput = {
|
|
874
|
+
emailVerificationProof?: InputMaybe<EmailVerificationProofInput>;
|
|
852
875
|
provider: UserAuthenticationMethodProvider;
|
|
853
876
|
providerData: Scalars['JSON']['input'];
|
|
854
877
|
providerId: Scalars['String']['input'];
|
|
@@ -2361,6 +2384,7 @@ export type RefreshSessionResponse = {
|
|
|
2361
2384
|
};
|
|
2362
2385
|
|
|
2363
2386
|
export type RegisterInput = {
|
|
2387
|
+
emailVerificationProof?: InputMaybe<EmailVerificationProofInput>;
|
|
2364
2388
|
provider: UserAuthenticationMethodProvider;
|
|
2365
2389
|
providerData: Scalars['JSON']['input'];
|
|
2366
2390
|
providerId: Scalars['String']['input'];
|
|
@@ -3033,6 +3057,7 @@ export type UpdateOrganizationInput = {
|
|
|
3033
3057
|
|
|
3034
3058
|
export type UpdateOrganizationInvitationInput = {
|
|
3035
3059
|
acceptedAt?: InputMaybe<Scalars['Date']['input']>;
|
|
3060
|
+
emailVerificationProofTokenHash?: InputMaybe<Scalars['String']['input']>;
|
|
3036
3061
|
expiresAt?: InputMaybe<Scalars['Date']['input']>;
|
|
3037
3062
|
invitedAt?: InputMaybe<Scalars['Date']['input']>;
|
|
3038
3063
|
status?: InputMaybe<OrganizationInvitationStatus>;
|
|
@@ -30,7 +30,18 @@ input CdmModeInput {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
input CdmKeyResolverInput {
|
|
33
|
+
"""
|
|
34
|
+
Identifier value. For `findBy: email`, Grant normalizes this to lowercase
|
|
35
|
+
and resolves it against the global email authentication method catalog.
|
|
36
|
+
Imported email authentication methods start unverified until a later inbox
|
|
37
|
+
proof flow, such as project OAuth email magic link, verifies them.
|
|
38
|
+
"""
|
|
33
39
|
value: String!
|
|
40
|
+
"""
|
|
41
|
+
`id` references an existing Grant user id. `email` resolves or creates a
|
|
42
|
+
global passwordless email authentication method. Other values are treated as
|
|
43
|
+
CDM-local external keys for project import/export.
|
|
44
|
+
"""
|
|
34
45
|
findBy: CdmFindBy
|
|
35
46
|
ifMissing: CdmIfMissing
|
|
36
47
|
}
|