@axinom/mosaic-user-auth 0.6.4-rc.2 → 0.6.4-rc.21

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": "@axinom/mosaic-user-auth",
3
- "version": "0.6.4-rc.2",
3
+ "version": "0.6.4-rc.21",
4
4
  "description": "Integration utilities from user-service for application frontends",
5
5
  "author": "Axinom",
6
6
  "license": "PROPRIETARY",
@@ -27,11 +27,11 @@
27
27
  "test:ci": "jest --reporters=default --reporters=jest-junit --coverage --coverageReporters=cobertura --coverageReporters=html"
28
28
  },
29
29
  "dependencies": {
30
- "@axinom/mosaic-user-auth-utils": "^0.8.4-rc.2",
30
+ "@axinom/mosaic-user-auth-utils": "^0.8.4-rc.21",
31
31
  "graphql-tag": "^2.11.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@graphql-codegen/cli": "^2.6.2",
34
+ "@graphql-codegen/cli": "^4.0.1",
35
35
  "graphql": "^15.4.0",
36
36
  "jest": "^29",
37
37
  "rimraf": "^3.0.2",
@@ -47,5 +47,5 @@
47
47
  "publishConfig": {
48
48
  "access": "public"
49
49
  },
50
- "gitHead": "b502d5754bc06046d4edb7a80be165c498a7390c"
50
+ "gitHead": "df13367a88d317969e5b2c3960268938fa07c41f"
51
51
  }
@@ -60,6 +60,24 @@ export type CheckEndUserSignUpOtpPayload = {
60
60
  isOtpValid: Scalars['Boolean'];
61
61
  };
62
62
 
63
+ export type ClearResetPasswordWebhookSecretInput = {
64
+ userStoreId: Scalars['String'];
65
+ };
66
+
67
+ export type ClearResetPasswordWebhookSecretPayload = {
68
+ __typename?: 'ClearResetPasswordWebhookSecretPayload';
69
+ deletedSecret: Scalars['String'];
70
+ };
71
+
72
+ export type ClearUserSignUpWebhookSecretInput = {
73
+ userStoreId: Scalars['String'];
74
+ };
75
+
76
+ export type ClearUserSignUpWebhookSecretPayload = {
77
+ __typename?: 'ClearUserSignUpWebhookSecretPayload';
78
+ deletedSecret: Scalars['String'];
79
+ };
80
+
63
81
  export type CompleteEndUserPasswordResetInput = {
64
82
  newPassword: Scalars['String'];
65
83
  resetOtp: Scalars['String'];
@@ -355,6 +373,24 @@ export type GenerateOAuthClientSecretPayload = {
355
373
  newClientSecret: Scalars['String'];
356
374
  };
357
375
 
376
+ export type GenerateResetPasswordWebhookSecretInput = {
377
+ userStoreId: Scalars['String'];
378
+ };
379
+
380
+ export type GenerateResetPasswordWebhookSecretPayload = {
381
+ __typename?: 'GenerateResetPasswordWebhookSecretPayload';
382
+ secret: Scalars['String'];
383
+ };
384
+
385
+ export type GenerateUserSignUpWebhookSecretInput = {
386
+ userStoreId: Scalars['String'];
387
+ };
388
+
389
+ export type GenerateUserSignUpWebhookSecretPayload = {
390
+ __typename?: 'GenerateUserSignUpWebhookSecretPayload';
391
+ secret: Scalars['String'];
392
+ };
393
+
358
394
  export type IdpUser = {
359
395
  __typename?: 'IdpUser';
360
396
  createdAt: Scalars['Datetime'];
@@ -472,6 +508,7 @@ export type IdpUserInput = {
472
508
 
473
509
  /** Represents an update to a `IdpUser`. Fields that are set will be updated. */
474
510
  export type IdpUserPatch = {
511
+ emailVerified?: Maybe<Scalars['Boolean']>;
475
512
  firstName?: Maybe<Scalars['String']>;
476
513
  idpUserStoreId?: Maybe<Scalars['UUID']>;
477
514
  lastName?: Maybe<Scalars['String']>;
@@ -553,10 +590,12 @@ export type IdpUserStore = {
553
590
  /** Reads and enables pagination through a set of `IdpUser`. */
554
591
  idpUsers: IdpUsersConnection;
555
592
  name: Scalars['String'];
593
+ resetPasswordWebhookSecretIsSet: Scalars['Boolean'];
556
594
  tenantId: Scalars['UUID'];
557
595
  updatedAt: Scalars['Datetime'];
558
596
  updatedBy: Scalars['String'];
559
597
  userSignUpWebhook?: Maybe<Scalars['String']>;
598
+ userSignUpWebhookSecretIsSet: Scalars['Boolean'];
560
599
  };
561
600
 
562
601
 
@@ -602,6 +641,8 @@ export type IdpUserStoreCondition = {
602
641
  id?: Maybe<Scalars['UUID']>;
603
642
  /** Checks for equality with the object’s `name` field. */
604
643
  name?: Maybe<Scalars['String']>;
644
+ /** Checks for equality with the object’s `resetPasswordWebhookSecretIsSet` field. */
645
+ resetPasswordWebhookSecretIsSet?: Maybe<Scalars['Boolean']>;
605
646
  /** Checks for equality with the object’s `tenantId` field. */
606
647
  tenantId?: Maybe<Scalars['UUID']>;
607
648
  /** Checks for equality with the object’s `updatedAt` field. */
@@ -610,6 +651,8 @@ export type IdpUserStoreCondition = {
610
651
  updatedBy?: Maybe<Scalars['String']>;
611
652
  /** Checks for equality with the object’s `userSignUpWebhook` field. */
612
653
  userSignUpWebhook?: Maybe<Scalars['String']>;
654
+ /** Checks for equality with the object’s `userSignUpWebhookSecretIsSet` field. */
655
+ userSignUpWebhookSecretIsSet?: Maybe<Scalars['Boolean']>;
613
656
  };
614
657
 
615
658
  /** A filter to be used against `IdpUserStore` object types. All fields are combined with a logical ‘and.’ */
@@ -642,6 +685,8 @@ export type IdpUserStoreFilter = {
642
685
  not?: Maybe<IdpUserStoreFilter>;
643
686
  /** Checks for any expressions in this list. */
644
687
  or?: Maybe<Array<IdpUserStoreFilter>>;
688
+ /** Filter by the object’s `resetPasswordWebhookSecretIsSet` field. */
689
+ resetPasswordWebhookSecretIsSet?: Maybe<BooleanFilter>;
645
690
  /** Filter by the object’s `tenantId` field. */
646
691
  tenantId?: Maybe<UuidFilter>;
647
692
  /** Filter by the object’s `updatedAt` field. */
@@ -650,6 +695,8 @@ export type IdpUserStoreFilter = {
650
695
  updatedBy?: Maybe<StringFilter>;
651
696
  /** Filter by the object’s `userSignUpWebhook` field. */
652
697
  userSignUpWebhook?: Maybe<StringFilter>;
698
+ /** Filter by the object’s `userSignUpWebhookSecretIsSet` field. */
699
+ userSignUpWebhookSecretIsSet?: Maybe<BooleanFilter>;
653
700
  };
654
701
 
655
702
  /** An input for mutations affecting `IdpUserStore` */
@@ -657,7 +704,9 @@ export type IdpUserStoreInput = {
657
704
  category?: Maybe<UserStoreCategory>;
658
705
  forgotPasswordWebhook?: Maybe<Scalars['String']>;
659
706
  name: Scalars['String'];
707
+ resetPasswordWebhookSecretIsSet?: Maybe<Scalars['Boolean']>;
660
708
  userSignUpWebhook?: Maybe<Scalars['String']>;
709
+ userSignUpWebhookSecretIsSet?: Maybe<Scalars['Boolean']>;
661
710
  };
662
711
 
663
712
  /** Represents an update to a `IdpUserStore`. Fields that are set will be updated. */
@@ -665,7 +714,9 @@ export type IdpUserStorePatch = {
665
714
  category?: Maybe<UserStoreCategory>;
666
715
  forgotPasswordWebhook?: Maybe<Scalars['String']>;
667
716
  name?: Maybe<Scalars['String']>;
717
+ resetPasswordWebhookSecretIsSet?: Maybe<Scalars['Boolean']>;
668
718
  userSignUpWebhook?: Maybe<Scalars['String']>;
719
+ userSignUpWebhookSecretIsSet?: Maybe<Scalars['Boolean']>;
669
720
  };
670
721
 
671
722
  /** A connection to a list of `IdpUserStore` values. */
@@ -709,6 +760,8 @@ export enum IdpUserStoresOrderBy {
709
760
  NATURAL = 'NATURAL',
710
761
  PRIMARY_KEY_ASC = 'PRIMARY_KEY_ASC',
711
762
  PRIMARY_KEY_DESC = 'PRIMARY_KEY_DESC',
763
+ RESET_PASSWORD_WEBHOOK_SECRET_IS_SET_ASC = 'RESET_PASSWORD_WEBHOOK_SECRET_IS_SET_ASC',
764
+ RESET_PASSWORD_WEBHOOK_SECRET_IS_SET_DESC = 'RESET_PASSWORD_WEBHOOK_SECRET_IS_SET_DESC',
712
765
  TENANT_ID_ASC = 'TENANT_ID_ASC',
713
766
  TENANT_ID_DESC = 'TENANT_ID_DESC',
714
767
  UPDATED_AT_ASC = 'UPDATED_AT_ASC',
@@ -716,7 +769,9 @@ export enum IdpUserStoresOrderBy {
716
769
  UPDATED_BY_ASC = 'UPDATED_BY_ASC',
717
770
  UPDATED_BY_DESC = 'UPDATED_BY_DESC',
718
771
  USER_SIGN_UP_WEBHOOK_ASC = 'USER_SIGN_UP_WEBHOOK_ASC',
719
- USER_SIGN_UP_WEBHOOK_DESC = 'USER_SIGN_UP_WEBHOOK_DESC'
772
+ USER_SIGN_UP_WEBHOOK_DESC = 'USER_SIGN_UP_WEBHOOK_DESC',
773
+ USER_SIGN_UP_WEBHOOK_SECRET_IS_SET_ASC = 'USER_SIGN_UP_WEBHOOK_SECRET_IS_SET_ASC',
774
+ USER_SIGN_UP_WEBHOOK_SECRET_IS_SET_DESC = 'USER_SIGN_UP_WEBHOOK_SECRET_IS_SET_DESC'
720
775
  }
721
776
 
722
777
  /** A filter to be used against many `EnvironmentClientMapping` object types. All fields are combined with a logical ‘and.’ */
@@ -779,6 +834,8 @@ export type Mutation = {
779
834
  checkEndUserPasswordResetOtp: CheckEndUserPasswordResetOtpPayload;
780
835
  /** Check End-User Sign Up Otp */
781
836
  checkEndUserSignUpOtp: CheckEndUserSignUpOtpPayload;
837
+ clearResetPasswordWebhookSecret: ClearResetPasswordWebhookSecretPayload;
838
+ clearUserSignUpWebhookSecret: ClearUserSignUpWebhookSecretPayload;
782
839
  /** Complete End-User Reset Password Flow */
783
840
  completeEndUserPasswordReset: CompleteEndUserPasswordResetPayload;
784
841
  /** Start Sign Up as an End-User */
@@ -795,6 +852,8 @@ export type Mutation = {
795
852
  deleteIdpUserStore?: Maybe<DeleteIdpUserStorePayload>;
796
853
  /** Generate the client secret of an OAuth client */
797
854
  generateOAuthClientSecret: GenerateOAuthClientSecretPayload;
855
+ generateResetPasswordWebhookSecret: GenerateResetPasswordWebhookSecretPayload;
856
+ generateUserSignUpWebhookSecret: GenerateUserSignUpWebhookSecretPayload;
798
857
  /** Start End-User Reset Password Flow */
799
858
  initiateEndUserPasswordReset: InitiateEndUserPasswordResetPayload;
800
859
  /** Initiate Sign Up as an End-User */
@@ -820,6 +879,18 @@ export type MutationCheckEndUserSignUpOtpArgs = {
820
879
  };
821
880
 
822
881
 
882
+ /** The root mutation type which contains root level fields which mutate data. */
883
+ export type MutationClearResetPasswordWebhookSecretArgs = {
884
+ input: ClearResetPasswordWebhookSecretInput;
885
+ };
886
+
887
+
888
+ /** The root mutation type which contains root level fields which mutate data. */
889
+ export type MutationClearUserSignUpWebhookSecretArgs = {
890
+ input: ClearUserSignUpWebhookSecretInput;
891
+ };
892
+
893
+
823
894
  /** The root mutation type which contains root level fields which mutate data. */
824
895
  export type MutationCompleteEndUserPasswordResetArgs = {
825
896
  input?: Maybe<CompleteEndUserPasswordResetInput>;
@@ -868,6 +939,18 @@ export type MutationGenerateOAuthClientSecretArgs = {
868
939
  };
869
940
 
870
941
 
942
+ /** The root mutation type which contains root level fields which mutate data. */
943
+ export type MutationGenerateResetPasswordWebhookSecretArgs = {
944
+ input: GenerateResetPasswordWebhookSecretInput;
945
+ };
946
+
947
+
948
+ /** The root mutation type which contains root level fields which mutate data. */
949
+ export type MutationGenerateUserSignUpWebhookSecretArgs = {
950
+ input: GenerateUserSignUpWebhookSecretInput;
951
+ };
952
+
953
+
871
954
  /** The root mutation type which contains root level fields which mutate data. */
872
955
  export type MutationInitiateEndUserPasswordResetArgs = {
873
956
  input?: Maybe<InitiateEndUserPasswordResetInput>;
@@ -181,6 +181,8 @@ export enum ErrorCodesEnum {
181
181
  ERROR_WRAPPER = 'ERROR_WRAPPER',
182
182
  /** A GraphQL validation error has occurred. Please make sure that the GraphQL request is made with correct syntax or parameters. */
183
183
  GRAPHQL_VALIDATION_FAILED = 'GRAPHQL_VALIDATION_FAILED',
184
+ /** The Hosting service is not accessible. Please contact Axinom support. */
185
+ HOSTING_SERVICE_NOT_ACCESSIBLE = 'HOSTING_SERVICE_NOT_ACCESSIBLE',
184
186
  /** The Identity service is not accessible. Please contact Axinom support. */
185
187
  IDENTITY_SERVICE_NOT_ACCESSIBLE = 'IDENTITY_SERVICE_NOT_ACCESSIBLE',
186
188
  /** An unhandled and unexpected error has occurred. Please contact the service support. */
@@ -211,6 +213,8 @@ export enum ErrorCodesEnum {
211
213
  NOT_GENERIC_AUTHENTICATED_SUBJECT = 'NOT_GENERIC_AUTHENTICATED_SUBJECT',
212
214
  /** The object is not a ManagementAuthenticationContext */
213
215
  NOT_MANAGEMENT_AUTHENTICATION_CONTEXT = 'NOT_MANAGEMENT_AUTHENTICATION_CONTEXT',
216
+ /** The %s is missing required properties: %s. */
217
+ OBJECT_IS_MISSING_PROPERTIES = 'OBJECT_IS_MISSING_PROPERTIES',
214
218
  /** Service Configuration does not exist for the environment. */
215
219
  SERVICE_CONFIG_ERROR = 'SERVICE_CONFIG_ERROR',
216
220
  /** Session ID not found. Cannot set an Active Profile. */
@@ -219,16 +223,36 @@ export enum ErrorCodesEnum {
219
223
  SIGNING_KEY_NOT_FOUND = 'SIGNING_KEY_NOT_FOUND',
220
224
  /** An application startup error has occurred. The actual message will have more information. */
221
225
  STARTUP_ERROR = 'STARTUP_ERROR',
226
+ /** User is authenticated, but subject information was not found. Please contact Axinom Support. */
227
+ SUBJECT_INFORMATION_NOT_FOUND = 'SUBJECT_INFORMATION_NOT_FOUND',
228
+ /** Unable to get the %s secret. Please contact Axinom Support. */
229
+ UNABLE_TO_GET_SECRET = 'UNABLE_TO_GET_SECRET',
230
+ /** Unable to set the %s secret. Please contact Axinom Support. */
231
+ UNABLE_TO_SET_SECRET = 'UNABLE_TO_SET_SECRET',
222
232
  /** An unhandled database-related error has occurred. Please contact the service support. */
223
233
  UNHANDLED_DATABASE_ERROR = 'UNHANDLED_DATABASE_ERROR',
224
234
  /** An unhandled error has occurred. Please contact the service support. */
225
235
  UNHANDLED_ERROR = 'UNHANDLED_ERROR',
226
236
  /** Cannot delete the user account without signing in. */
227
237
  USER_ACCOUNT_DELETE_NOT_ALLOWED = 'USER_ACCOUNT_DELETE_NOT_ALLOWED',
238
+ /** No payload was found in User Info Retrieval webhook response. */
239
+ USER_INFO_WEBHOOK_RESPONSE_PAYLOAD_NOT_FOUND = 'USER_INFO_WEBHOOK_RESPONSE_PAYLOAD_NOT_FOUND',
228
240
  /** User is not authorized to access the operation. */
229
241
  USER_NOT_AUTHORIZED = 'USER_NOT_AUTHORIZED',
230
242
  /** The User service is not accessible. Please contact Axinom support. */
231
243
  USER_SERVICE_NOT_ACCESSIBLE = 'USER_SERVICE_NOT_ACCESSIBLE',
244
+ /** The %s is not an object. */
245
+ VALUE_IS_NOT_OBJECT = 'VALUE_IS_NOT_OBJECT',
246
+ /** Unable to make a request to the webhook URL '%s'. Please make sure that the endpoint is reachable. */
247
+ WEBHOOK_ENDPOINT_NOT_REACHABLE = 'WEBHOOK_ENDPOINT_NOT_REACHABLE',
248
+ /** A webhook request has failed. A more concrete error message will be returned with this code. */
249
+ WEBHOOK_REQUEST_FAILURE = 'WEBHOOK_REQUEST_FAILURE',
250
+ /** The webhook for the URL '%s' responded with error(s). Please check the details for more information. */
251
+ WEBHOOK_RESPONDED_WITH_ERRORS = 'WEBHOOK_RESPONDED_WITH_ERRORS',
252
+ /** The request to get the %s secret succeeded, but the secret was not found. Please contact Axinom Support. */
253
+ WEBHOOK_SECRET_NOT_FOUND = 'WEBHOOK_SECRET_NOT_FOUND',
254
+ /** The %s secret is not set. Please call an appropriate mutation to generate it. */
255
+ WEBHOOK_SECRET_NOT_SET = 'WEBHOOK_SECRET_NOT_SET',
232
256
  /** Websocket not found in ExtendedGraphQLContext. This is a development time issue. A reference to the websocket must be included in Postgraphile build options. */
233
257
  WEBSOCKET_NOT_FOUND = 'WEBSOCKET_NOT_FOUND'
234
258
  }
@@ -478,46 +502,6 @@ export type StringFilter = {
478
502
  startsWithInsensitive?: Maybe<Scalars['String']>;
479
503
  };
480
504
 
481
- /** A filter to be used against String List fields. All fields are combined with a logical ‘and.’ */
482
- export type StringListFilter = {
483
- /** Any array item is equal to the specified value. */
484
- anyEqualTo?: Maybe<Scalars['String']>;
485
- /** Any array item is greater than the specified value. */
486
- anyGreaterThan?: Maybe<Scalars['String']>;
487
- /** Any array item is greater than or equal to the specified value. */
488
- anyGreaterThanOrEqualTo?: Maybe<Scalars['String']>;
489
- /** Any array item is less than the specified value. */
490
- anyLessThan?: Maybe<Scalars['String']>;
491
- /** Any array item is less than or equal to the specified value. */
492
- anyLessThanOrEqualTo?: Maybe<Scalars['String']>;
493
- /** Any array item is not equal to the specified value. */
494
- anyNotEqualTo?: Maybe<Scalars['String']>;
495
- /** Contained by the specified list of values. */
496
- containedBy?: Maybe<Array<Maybe<Scalars['String']>>>;
497
- /** Contains the specified list of values. */
498
- contains?: Maybe<Array<Maybe<Scalars['String']>>>;
499
- /** Not equal to the specified value, treating null like an ordinary value. */
500
- distinctFrom?: Maybe<Array<Maybe<Scalars['String']>>>;
501
- /** Equal to the specified value. */
502
- equalTo?: Maybe<Array<Maybe<Scalars['String']>>>;
503
- /** Greater than the specified value. */
504
- greaterThan?: Maybe<Array<Maybe<Scalars['String']>>>;
505
- /** Greater than or equal to the specified value. */
506
- greaterThanOrEqualTo?: Maybe<Array<Maybe<Scalars['String']>>>;
507
- /** Is null (if `true` is specified) or is not null (if `false` is specified). */
508
- isNull?: Maybe<Scalars['Boolean']>;
509
- /** Less than the specified value. */
510
- lessThan?: Maybe<Array<Maybe<Scalars['String']>>>;
511
- /** Less than or equal to the specified value. */
512
- lessThanOrEqualTo?: Maybe<Array<Maybe<Scalars['String']>>>;
513
- /** Equal to the specified value, treating null like an ordinary value. */
514
- notDistinctFrom?: Maybe<Array<Maybe<Scalars['String']>>>;
515
- /** Not equal to the specified value. */
516
- notEqualTo?: Maybe<Array<Maybe<Scalars['String']>>>;
517
- /** Overlaps the specified list of values. */
518
- overlaps?: Maybe<Array<Maybe<Scalars['String']>>>;
519
- };
520
-
521
505
  /** All input for the `updateUserProfile` mutation. */
522
506
  export type UpdateUserProfileInput = {
523
507
  /**
@@ -556,7 +540,7 @@ export type User = {
556
540
  __typename?: 'User';
557
541
  createdDate: Scalars['Datetime'];
558
542
  createdUser: Scalars['String'];
559
- email?: Maybe<Array<Maybe<Scalars['String']>>>;
543
+ email?: Maybe<Scalars['String']>;
560
544
  enabled: Scalars['Boolean'];
561
545
  environmentId: Scalars['UUID'];
562
546
  id: Scalars['UUID'];
@@ -576,7 +560,7 @@ export type UserCondition = {
576
560
  /** Checks for equality with the object’s `createdUser` field. */
577
561
  createdUser?: Maybe<Scalars['String']>;
578
562
  /** Checks for equality with the object’s `email` field. */
579
- email?: Maybe<Array<Maybe<Scalars['String']>>>;
563
+ email?: Maybe<Scalars['String']>;
580
564
  /** Checks for equality with the object’s `enabled` field. */
581
565
  enabled?: Maybe<Scalars['Boolean']>;
582
566
  /** Checks for equality with the object’s `environmentId` field. */
@@ -608,7 +592,7 @@ export type UserFilter = {
608
592
  /** Filter by the object’s `createdUser` field. */
609
593
  createdUser?: Maybe<StringFilter>;
610
594
  /** Filter by the object’s `email` field. */
611
- email?: Maybe<StringListFilter>;
595
+ email?: Maybe<StringFilter>;
612
596
  /** Filter by the object’s `enabled` field. */
613
597
  enabled?: Maybe<BooleanFilter>;
614
598
  /** Filter by the object’s `environmentId` field. */