@grantjs/schema 1.4.0 → 1.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grantjs/schema",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "description": "GraphQL schema and generated types for Grant",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -562,6 +562,7 @@ export type CreateOrganizationInput = {
562
562
 
563
563
  export type CreateOrganizationInvitationInput = {
564
564
  email: Scalars['String']['input'];
565
+ emailVerificationProofTokenHash?: InputMaybe<Scalars['String']['input']>;
565
566
  expiresAt: Scalars['Date']['input'];
566
567
  invitedAt?: InputMaybe<Scalars['Date']['input']>;
567
568
  invitedBy: Scalars['ID']['input'];
@@ -705,6 +706,16 @@ export type DeleteUserSessionInput = {
705
706
  id: Scalars['ID']['input'];
706
707
  };
707
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
+
708
719
  export type ExchangeApiKeyInput = {
709
720
  clientId: Scalars['String']['input'];
710
721
  clientSecret: Scalars['String']['input'];
@@ -862,6 +873,7 @@ export type IsAuthorizedPermissionInput = {
862
873
  };
863
874
 
864
875
  export type LoginInput = {
876
+ emailVerificationProof?: InputMaybe<EmailVerificationProofInput>;
865
877
  provider: UserAuthenticationMethodProvider;
866
878
  providerData: Scalars['JSON']['input'];
867
879
  providerId: Scalars['String']['input'];
@@ -2374,6 +2386,7 @@ export type RefreshSessionResponse = {
2374
2386
  };
2375
2387
 
2376
2388
  export type RegisterInput = {
2389
+ emailVerificationProof?: InputMaybe<EmailVerificationProofInput>;
2377
2390
  provider: UserAuthenticationMethodProvider;
2378
2391
  providerData: Scalars['JSON']['input'];
2379
2392
  providerId: Scalars['String']['input'];
@@ -3046,6 +3059,7 @@ export type UpdateOrganizationInput = {
3046
3059
 
3047
3060
  export type UpdateOrganizationInvitationInput = {
3048
3061
  acceptedAt?: InputMaybe<Scalars['Date']['input']>;
3062
+ emailVerificationProofTokenHash?: InputMaybe<Scalars['String']['input']>;
3049
3063
  expiresAt?: InputMaybe<Scalars['Date']['input']>;
3050
3064
  invitedAt?: InputMaybe<Scalars['Date']['input']>;
3051
3065
  status?: InputMaybe<OrganizationInvitationStatus>;
@@ -3750,6 +3764,8 @@ export type ResolversTypes = ResolversObject<{
3750
3764
  DeleteMyAccountsInput: DeleteMyAccountsInput;
3751
3765
  DeleteUserAuthenticationMethodInput: DeleteUserAuthenticationMethodInput;
3752
3766
  DeleteUserSessionInput: DeleteUserSessionInput;
3767
+ EmailVerificationProofInput: EmailVerificationProofInput;
3768
+ EmailVerificationProofType: EmailVerificationProofType;
3753
3769
  ExchangeApiKeyInput: ExchangeApiKeyInput;
3754
3770
  ExchangeApiKeyResult: ResolverTypeWrapper<ExchangeApiKeyResult>;
3755
3771
  GenerateMyMfaRecoveryCodesInput: GenerateMyMfaRecoveryCodesInput;
@@ -4107,6 +4123,7 @@ export type ResolversParentTypes = ResolversObject<{
4107
4123
  DeleteMyAccountsInput: DeleteMyAccountsInput;
4108
4124
  DeleteUserAuthenticationMethodInput: DeleteUserAuthenticationMethodInput;
4109
4125
  DeleteUserSessionInput: DeleteUserSessionInput;
4126
+ EmailVerificationProofInput: EmailVerificationProofInput;
4110
4127
  ExchangeApiKeyInput: ExchangeApiKeyInput;
4111
4128
  ExchangeApiKeyResult: ExchangeApiKeyResult;
4112
4129
  GenerateMyMfaRecoveryCodesInput: GenerateMyMfaRecoveryCodesInput;
@@ -560,6 +560,7 @@ export type CreateOrganizationInput = {
560
560
 
561
561
  export type CreateOrganizationInvitationInput = {
562
562
  email: Scalars['String']['input'];
563
+ emailVerificationProofTokenHash?: InputMaybe<Scalars['String']['input']>;
563
564
  expiresAt: Scalars['Date']['input'];
564
565
  invitedAt?: InputMaybe<Scalars['Date']['input']>;
565
566
  invitedBy: Scalars['ID']['input'];
@@ -703,6 +704,16 @@ export type DeleteUserSessionInput = {
703
704
  id: Scalars['ID']['input'];
704
705
  };
705
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
+
706
717
  export type ExchangeApiKeyInput = {
707
718
  clientId: Scalars['String']['input'];
708
719
  clientSecret: Scalars['String']['input'];
@@ -860,6 +871,7 @@ export type IsAuthorizedPermissionInput = {
860
871
  };
861
872
 
862
873
  export type LoginInput = {
874
+ emailVerificationProof?: InputMaybe<EmailVerificationProofInput>;
863
875
  provider: UserAuthenticationMethodProvider;
864
876
  providerData: Scalars['JSON']['input'];
865
877
  providerId: Scalars['String']['input'];
@@ -2372,6 +2384,7 @@ export type RefreshSessionResponse = {
2372
2384
  };
2373
2385
 
2374
2386
  export type RegisterInput = {
2387
+ emailVerificationProof?: InputMaybe<EmailVerificationProofInput>;
2375
2388
  provider: UserAuthenticationMethodProvider;
2376
2389
  providerData: Scalars['JSON']['input'];
2377
2390
  providerId: Scalars['String']['input'];
@@ -3044,6 +3057,7 @@ export type UpdateOrganizationInput = {
3044
3057
 
3045
3058
  export type UpdateOrganizationInvitationInput = {
3046
3059
  acceptedAt?: InputMaybe<Scalars['Date']['input']>;
3060
+ emailVerificationProofTokenHash?: InputMaybe<Scalars['String']['input']>;
3047
3061
  expiresAt?: InputMaybe<Scalars['Date']['input']>;
3048
3062
  invitedAt?: InputMaybe<Scalars['Date']['input']>;
3049
3063
  status?: InputMaybe<OrganizationInvitationStatus>;
@@ -0,0 +1,5 @@
1
+ input EmailVerificationProofInput {
2
+ type: EmailVerificationProofType!
3
+ token: String!
4
+ emailProofToken: String!
5
+ }
@@ -2,4 +2,5 @@ input LoginInput {
2
2
  provider: UserAuthenticationMethodProvider!
3
3
  providerId: String!
4
4
  providerData: JSON!
5
+ emailVerificationProof: EmailVerificationProofInput
5
6
  }
@@ -3,4 +3,5 @@ input RegisterInput {
3
3
  provider: UserAuthenticationMethodProvider!
4
4
  providerId: String!
5
5
  providerData: JSON!
6
+ emailVerificationProof: EmailVerificationProofInput
6
7
  }
@@ -0,0 +1,3 @@
1
+ enum EmailVerificationProofType {
2
+ ORGANIZATION_INVITATION
3
+ }
@@ -3,6 +3,7 @@ input CreateOrganizationInvitationInput {
3
3
  email: String!
4
4
  roleId: ID!
5
5
  token: String!
6
+ emailVerificationProofTokenHash: String
6
7
  expiresAt: Date!
7
8
  invitedBy: ID!
8
9
  invitedAt: Date
@@ -2,6 +2,7 @@ input UpdateOrganizationInvitationInput {
2
2
  status: OrganizationInvitationStatus
3
3
  acceptedAt: Date
4
4
  token: String
5
+ emailVerificationProofTokenHash: String
5
6
  expiresAt: Date
6
7
  invitedAt: Date
7
8
  }