@rlvt/entity-manager-openapi-client 0.0.0-984a641 → 0.0.0-a421930

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/build/api.d.ts CHANGED
@@ -1,11 +1,22 @@
1
1
  import { AxiosInstance, AxiosRequestConfig } from "axios";
2
- import * as Types from "./definitions";
3
- export * from "./definitions";
2
+ import type { Providers, InvitationState } from "./definitions";
3
+ export { Providers, User, Partial__roleId_string_resourceGroupIds_string_Array___, Company, Partial_Pick_Company_meta__, Invitation, InvitationState, ResourceGroup, Partial_Pick_Pick_ResourceGroup___name_or_color__, Role, Partial_Pick_Pick_Role___name_or_rules_or_undefined__, UserProfile, Partial_Pick_SerializedUser_companyId_or_roleId_or_resourceGroupIds_or_email_or_lastPasswordUpdate_or_disabled_or_mustUpdatePassword_or_connection_or_profile_or_hasOtp_or_id_or_createdAt_or_updatedAt__, WithoutReadonly, WithoutWriteonly } from "./definitions";
4
4
  export default class {
5
5
  axios: AxiosInstance;
6
- constructor(config: AxiosRequestConfig);
6
+ constructor(configOrInstance: AxiosRequestConfig | AxiosInstance);
7
+ private oauthShopifyRedirect;
8
+ private oauthRedirect;
9
+ private oauthCallback;
10
+ private ssoRedirect;
11
+ private ssoCallback;
12
+ private ssoMetadata;
13
+ private getToken;
14
+ private describeToken;
15
+ private revokeToken;
7
16
  private getDefaultsCompany;
8
17
  private setDefaultsCompany;
18
+ private getCompany;
19
+ private updateCompany;
9
20
  private listInvitation;
10
21
  private createInvitation;
11
22
  private useInvitation;
@@ -20,12 +31,187 @@ export default class {
20
31
  private deleteRole;
21
32
  private listUser;
22
33
  private createUser;
34
+ private updatePasswordUser;
35
+ private resetPasswordUser;
23
36
  private updateUser;
24
37
  private deleteUser;
25
38
  private setRoleUser;
26
39
  private setResourceGroupsUser;
40
+ private setOtpUser;
41
+ get Authentification(): {
42
+ oauthShopifyRedirect: (params: {
43
+ shop: string;
44
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
45
+ status: "success";
46
+ program: string;
47
+ version: string;
48
+ datetime: string;
49
+ code?: number;
50
+ message: string;
51
+ data: {};
52
+ }>>;
53
+ oauthRedirect: (params: {
54
+ provider: Providers;
55
+ plan?: string;
56
+ companyName?: string;
57
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
58
+ status: "success";
59
+ program: string;
60
+ version: string;
61
+ datetime: string;
62
+ code?: number;
63
+ message: string;
64
+ data: {};
65
+ }>>;
66
+ oauthCallback: (params: {
67
+ provider: Providers;
68
+ code: string;
69
+ state: string;
70
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
71
+ status: "success";
72
+ program: string;
73
+ version: string;
74
+ datetime: string;
75
+ code?: number;
76
+ message: string;
77
+ data: {};
78
+ }>>;
79
+ ssoRedirect: (params: {
80
+ domain: string;
81
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
82
+ status: "success";
83
+ program: string;
84
+ version: string;
85
+ datetime: string;
86
+ code?: number;
87
+ message: string;
88
+ data: {};
89
+ }>>;
90
+ ssoCallback: (params: {
91
+ company: string;
92
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
93
+ status: "success";
94
+ program: string;
95
+ version: string;
96
+ datetime: string;
97
+ code?: number;
98
+ message: string;
99
+ data: {};
100
+ }>>;
101
+ ssoMetadata: (params: {
102
+ company: string;
103
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
104
+ status: "success";
105
+ program: string;
106
+ version: string;
107
+ datetime: string;
108
+ code?: number;
109
+ message: string;
110
+ data: string;
111
+ }>>;
112
+ getToken: (data: {
113
+ client_id: string;
114
+ grant_type: "password";
115
+ username: string;
116
+ password: string;
117
+ "x-otp-code"?: string;
118
+ } | {
119
+ client_id: string;
120
+ grant_type: "refresh_token";
121
+ refresh_token: string;
122
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
123
+ access_token: string;
124
+ expires_in: number;
125
+ refresh_token?: string;
126
+ token_type: "Bearer";
127
+ }>>;
128
+ describeToken: (params: {
129
+ token: string;
130
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
131
+ status: "success";
132
+ program: string;
133
+ version: string;
134
+ datetime: string;
135
+ code?: number;
136
+ message: string;
137
+ data: {
138
+ isValid: boolean;
139
+ revokedAt: Date;
140
+ expiresAt: Date;
141
+ user: {
142
+ readonly companyId: string & {
143
+ readonly?: "__readonly";
144
+ };
145
+ readonly roleId: string & {
146
+ readonly?: "__readonly";
147
+ };
148
+ readonly resourceGroupIds: string[];
149
+ readonly id: string & {
150
+ readonly?: "__readonly";
151
+ };
152
+ readonly disabled: (false & {
153
+ readonly?: "__readonly";
154
+ }) | (true & {
155
+ readonly?: "__readonly";
156
+ });
157
+ email: string;
158
+ readonly lastPasswordUpdate: Date & {
159
+ readonly?: "__readonly";
160
+ };
161
+ readonly mustUpdatePassword: (false & {
162
+ readonly?: "__readonly";
163
+ }) | (true & {
164
+ readonly?: "__readonly";
165
+ });
166
+ readonly connection: {
167
+ readonly?: "__readonly";
168
+ lastAttempts?: Date;
169
+ nbFail?: number;
170
+ };
171
+ profile?: {
172
+ firstname?: string;
173
+ lastname?: string;
174
+ jobtitle?: string;
175
+ phone?: string;
176
+ preferredLang?: string;
177
+ preferredRecipientId?: string;
178
+ preferredMessageId?: string;
179
+ preferredUtm?: {
180
+ medium?: string;
181
+ source?: string;
182
+ campaign?: string;
183
+ };
184
+ };
185
+ readonly hasOtp: (false & {
186
+ readonly?: "__readonly";
187
+ }) | (true & {
188
+ readonly?: "__readonly";
189
+ });
190
+ readonly createdAt: Date & {
191
+ readonly?: "__readonly";
192
+ };
193
+ readonly updatedAt: Date & {
194
+ readonly?: "__readonly";
195
+ };
196
+ };
197
+ };
198
+ }>>;
199
+ revokeToken: (params: {
200
+ token: string;
201
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
202
+ status: "success";
203
+ program: string;
204
+ version: string;
205
+ datetime: string;
206
+ code?: number;
207
+ message: string;
208
+ data: {
209
+ revoked: boolean;
210
+ };
211
+ }>>;
212
+ };
27
213
  get Company(): {
28
- getDefaults: (params: {}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
214
+ getDefaults: (options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
29
215
  status: "success";
30
216
  program: string;
31
217
  version: string;
@@ -37,7 +223,7 @@ export default class {
37
223
  resourceGroupIds: string[];
38
224
  };
39
225
  }>>;
40
- setDefaults: (params: {}, data: {
226
+ setDefaults: (data: {
41
227
  roleId?: string;
42
228
  resourceGroupIds?: string[];
43
229
  }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
@@ -49,11 +235,40 @@ export default class {
49
235
  message: string;
50
236
  data: {
51
237
  readonly id: string & {
52
- readonly?: undefined;
238
+ readonly?: "__readonly";
239
+ };
240
+ plan: {
241
+ name?: string;
242
+ quota: number;
243
+ startDate: Date;
244
+ endDate: Date;
245
+ };
246
+ password?: {
247
+ passwordDuration?: number;
248
+ nbSpCharacter?: number;
249
+ nbIsNotAlphabeticCharacter?: number;
250
+ nbNumberCharacter?: number;
251
+ nbLetterInLowercase?: number;
252
+ nbLetterInUppercase?: number;
253
+ nbCharacter?: number;
254
+ nbAttempts?: number;
255
+ timeEachAttempts?: number;
256
+ timeLockAfterNextAttempts?: number;
257
+ infiniteTimeLock?: boolean;
258
+ };
259
+ disabled: boolean;
260
+ meta: {
261
+ [x: string]: string | number | boolean;
262
+ };
263
+ name: string;
264
+ readonly createdAt: Date & {
265
+ readonly?: "__readonly";
266
+ };
267
+ readonly updatedAt: Date & {
268
+ readonly?: "__readonly";
53
269
  };
54
270
  defaultRoleId: string;
55
271
  defaultResourceGroupIds: string[];
56
- name: string;
57
272
  address?: {
58
273
  line1?: string;
59
274
  line2?: string;
@@ -65,6 +280,237 @@ export default class {
65
280
  name?: string;
66
281
  email?: string;
67
282
  };
283
+ securityPolicy: {
284
+ password: {
285
+ rules: {
286
+ type: "special-characters" | "numbers" | "characters" | "uppercases" | "lowercases";
287
+ options: {
288
+ minimum?: number;
289
+ maximum?: number;
290
+ };
291
+ }[];
292
+ duration: number;
293
+ attempts: {
294
+ maximum: number;
295
+ lockDuration: number;
296
+ };
297
+ };
298
+ };
299
+ sso?: {
300
+ domains: string[];
301
+ metadata: string;
302
+ emailProperty: string[] | "nameID"[];
303
+ mode: "invitation" | "create";
304
+ readonly identityProvider: {
305
+ readonly?: "__readonly";
306
+ entityMeta: {
307
+ meta: any;
308
+ xmlString: string;
309
+ };
310
+ entitySetting: {
311
+ metadata?: string | {
312
+ data: number[];
313
+ type: "Buffer";
314
+ };
315
+ entityID?: string;
316
+ authnRequestsSigned?: boolean;
317
+ wantAssertionsSigned?: boolean;
318
+ wantMessageSigned?: boolean;
319
+ wantLogoutResponseSigned?: boolean;
320
+ wantLogoutRequestSigned?: boolean;
321
+ privateKey?: string | {
322
+ data: number[];
323
+ type: "Buffer";
324
+ };
325
+ privateKeyPass?: string;
326
+ isAssertionEncrypted?: boolean;
327
+ requestSignatureAlgorithm?: string;
328
+ encPrivateKey?: string | {
329
+ data: number[];
330
+ type: "Buffer";
331
+ };
332
+ encPrivateKeyPass?: string | (import("./definitions").Buffer & string);
333
+ assertionConsumerService?: {
334
+ isDefault?: boolean;
335
+ Binding: string;
336
+ Location: string;
337
+ }[];
338
+ singleLogoutService?: {
339
+ isDefault?: boolean;
340
+ Binding: string;
341
+ Location: string;
342
+ }[];
343
+ signatureConfig?: {
344
+ prefix?: string;
345
+ location?: {
346
+ reference?: string;
347
+ action?: "append" | "prepend" | "before" | "after";
348
+ };
349
+ };
350
+ loginRequestTemplate?: {
351
+ context?: string;
352
+ };
353
+ logoutRequestTemplate?: {
354
+ context?: string;
355
+ };
356
+ signingCert?: string | {
357
+ data: number[];
358
+ type: "Buffer";
359
+ };
360
+ encryptCert?: string | {
361
+ data: number[];
362
+ type: "Buffer";
363
+ };
364
+ transformationAlgorithms?: string[];
365
+ nameIDFormat?: string[];
366
+ allowCreate?: boolean;
367
+ relayState?: string;
368
+ clockDrifts?: number[];
369
+ loginResponseTemplate?: {
370
+ attributes?: {
371
+ name: string;
372
+ nameFormat: string;
373
+ valueXsiType: string;
374
+ valueTag: string;
375
+ valueXmlnsXs?: string;
376
+ valueXmlnsXsi?: string;
377
+ }[];
378
+ context: string;
379
+ };
380
+ generateID?: {};
381
+ singleSignOnService?: {
382
+ isDefault?: boolean;
383
+ Binding: string;
384
+ Location: string;
385
+ }[];
386
+ messageSigningOrder?: string;
387
+ wantAuthnRequestsSigned?: boolean;
388
+ wantLogoutRequestSignedResponseSigned?: boolean;
389
+ tagPrefix?: {
390
+ [x: string]: string;
391
+ };
392
+ };
393
+ entityType: string;
394
+ };
395
+ readonly serviceProvider: {
396
+ readonly?: "__readonly";
397
+ entityMeta: {
398
+ meta: any;
399
+ xmlString: string;
400
+ };
401
+ entitySetting: {
402
+ metadata?: string | {
403
+ data: number[];
404
+ type: "Buffer";
405
+ };
406
+ entityID?: string;
407
+ authnRequestsSigned?: boolean;
408
+ wantAssertionsSigned?: boolean;
409
+ wantMessageSigned?: boolean;
410
+ wantLogoutResponseSigned?: boolean;
411
+ wantLogoutRequestSigned?: boolean;
412
+ privateKey?: string | {
413
+ data: number[];
414
+ type: "Buffer";
415
+ };
416
+ privateKeyPass?: string;
417
+ isAssertionEncrypted?: boolean;
418
+ requestSignatureAlgorithm?: string;
419
+ encPrivateKey?: string | {
420
+ data: number[];
421
+ type: "Buffer";
422
+ };
423
+ encPrivateKeyPass?: string | (import("./definitions").Buffer & string);
424
+ assertionConsumerService?: {
425
+ isDefault?: boolean;
426
+ Binding: string;
427
+ Location: string;
428
+ }[];
429
+ singleLogoutService?: {
430
+ isDefault?: boolean;
431
+ Binding: string;
432
+ Location: string;
433
+ }[];
434
+ signatureConfig?: {
435
+ prefix?: string;
436
+ location?: {
437
+ reference?: string;
438
+ action?: "append" | "prepend" | "before" | "after";
439
+ };
440
+ };
441
+ loginRequestTemplate?: {
442
+ context?: string;
443
+ };
444
+ logoutRequestTemplate?: {
445
+ context?: string;
446
+ };
447
+ signingCert?: string | {
448
+ data: number[];
449
+ type: "Buffer";
450
+ };
451
+ encryptCert?: string | {
452
+ data: number[];
453
+ type: "Buffer";
454
+ };
455
+ transformationAlgorithms?: string[];
456
+ nameIDFormat?: string[];
457
+ allowCreate?: boolean;
458
+ relayState?: string;
459
+ clockDrifts?: number[];
460
+ loginResponseTemplate?: {
461
+ attributes?: {
462
+ name: string;
463
+ nameFormat: string;
464
+ valueXsiType: string;
465
+ valueTag: string;
466
+ valueXmlnsXs?: string;
467
+ valueXmlnsXsi?: string;
468
+ }[];
469
+ context: string;
470
+ };
471
+ generateID?: {};
472
+ singleSignOnService?: {
473
+ isDefault?: boolean;
474
+ Binding: string;
475
+ Location: string;
476
+ }[];
477
+ messageSigningOrder?: string;
478
+ wantAuthnRequestsSigned?: boolean;
479
+ wantLogoutRequestSignedResponseSigned?: boolean;
480
+ tagPrefix?: {
481
+ [x: string]: string;
482
+ };
483
+ };
484
+ entityType: string;
485
+ };
486
+ };
487
+ custom?: {
488
+ colors?: string[];
489
+ };
490
+ retention: number;
491
+ features: {
492
+ [x: string]: boolean;
493
+ };
494
+ events: {
495
+ product_page: string;
496
+ add_cart: string;
497
+ purchase: string;
498
+ };
499
+ };
500
+ }>>;
501
+ get: (params: {
502
+ id: string;
503
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
504
+ status: "success";
505
+ program: string;
506
+ version: string;
507
+ datetime: string;
508
+ code?: number;
509
+ message: string;
510
+ data: {
511
+ readonly id: string & {
512
+ readonly?: "__readonly";
513
+ };
68
514
  plan: {
69
515
  name?: string;
70
516
  quota: number;
@@ -84,19 +530,523 @@ export default class {
84
530
  timeLockAfterNextAttempts?: number;
85
531
  infiniteTimeLock?: boolean;
86
532
  };
533
+ disabled: boolean;
534
+ meta: {
535
+ [x: string]: string | number | boolean;
536
+ };
537
+ name: string;
538
+ readonly createdAt: Date & {
539
+ readonly?: "__readonly";
540
+ };
541
+ readonly updatedAt: Date & {
542
+ readonly?: "__readonly";
543
+ };
544
+ defaultRoleId: string;
545
+ defaultResourceGroupIds: string[];
546
+ address?: {
547
+ line1?: string;
548
+ line2?: string;
549
+ zipcode?: string;
550
+ city?: string;
551
+ country?: string;
552
+ };
553
+ contact?: {
554
+ name?: string;
555
+ email?: string;
556
+ };
557
+ securityPolicy: {
558
+ password: {
559
+ rules: {
560
+ type: "special-characters" | "numbers" | "characters" | "uppercases" | "lowercases";
561
+ options: {
562
+ minimum?: number;
563
+ maximum?: number;
564
+ };
565
+ }[];
566
+ duration: number;
567
+ attempts: {
568
+ maximum: number;
569
+ lockDuration: number;
570
+ };
571
+ };
572
+ };
573
+ sso?: {
574
+ domains: string[];
575
+ metadata: string;
576
+ emailProperty: string[] | "nameID"[];
577
+ mode: "invitation" | "create";
578
+ readonly identityProvider: {
579
+ readonly?: "__readonly";
580
+ entityMeta: {
581
+ meta: any;
582
+ xmlString: string;
583
+ };
584
+ entitySetting: {
585
+ metadata?: string | {
586
+ data: number[];
587
+ type: "Buffer";
588
+ };
589
+ entityID?: string;
590
+ authnRequestsSigned?: boolean;
591
+ wantAssertionsSigned?: boolean;
592
+ wantMessageSigned?: boolean;
593
+ wantLogoutResponseSigned?: boolean;
594
+ wantLogoutRequestSigned?: boolean;
595
+ privateKey?: string | {
596
+ data: number[];
597
+ type: "Buffer";
598
+ };
599
+ privateKeyPass?: string;
600
+ isAssertionEncrypted?: boolean;
601
+ requestSignatureAlgorithm?: string;
602
+ encPrivateKey?: string | {
603
+ data: number[];
604
+ type: "Buffer";
605
+ };
606
+ encPrivateKeyPass?: string | (import("./definitions").Buffer & string);
607
+ assertionConsumerService?: {
608
+ isDefault?: boolean;
609
+ Binding: string;
610
+ Location: string;
611
+ }[];
612
+ singleLogoutService?: {
613
+ isDefault?: boolean;
614
+ Binding: string;
615
+ Location: string;
616
+ }[];
617
+ signatureConfig?: {
618
+ prefix?: string;
619
+ location?: {
620
+ reference?: string;
621
+ action?: "append" | "prepend" | "before" | "after";
622
+ };
623
+ };
624
+ loginRequestTemplate?: {
625
+ context?: string;
626
+ };
627
+ logoutRequestTemplate?: {
628
+ context?: string;
629
+ };
630
+ signingCert?: string | {
631
+ data: number[];
632
+ type: "Buffer";
633
+ };
634
+ encryptCert?: string | {
635
+ data: number[];
636
+ type: "Buffer";
637
+ };
638
+ transformationAlgorithms?: string[];
639
+ nameIDFormat?: string[];
640
+ allowCreate?: boolean;
641
+ relayState?: string;
642
+ clockDrifts?: number[];
643
+ loginResponseTemplate?: {
644
+ attributes?: {
645
+ name: string;
646
+ nameFormat: string;
647
+ valueXsiType: string;
648
+ valueTag: string;
649
+ valueXmlnsXs?: string;
650
+ valueXmlnsXsi?: string;
651
+ }[];
652
+ context: string;
653
+ };
654
+ generateID?: {};
655
+ singleSignOnService?: {
656
+ isDefault?: boolean;
657
+ Binding: string;
658
+ Location: string;
659
+ }[];
660
+ messageSigningOrder?: string;
661
+ wantAuthnRequestsSigned?: boolean;
662
+ wantLogoutRequestSignedResponseSigned?: boolean;
663
+ tagPrefix?: {
664
+ [x: string]: string;
665
+ };
666
+ };
667
+ entityType: string;
668
+ };
669
+ readonly serviceProvider: {
670
+ readonly?: "__readonly";
671
+ entityMeta: {
672
+ meta: any;
673
+ xmlString: string;
674
+ };
675
+ entitySetting: {
676
+ metadata?: string | {
677
+ data: number[];
678
+ type: "Buffer";
679
+ };
680
+ entityID?: string;
681
+ authnRequestsSigned?: boolean;
682
+ wantAssertionsSigned?: boolean;
683
+ wantMessageSigned?: boolean;
684
+ wantLogoutResponseSigned?: boolean;
685
+ wantLogoutRequestSigned?: boolean;
686
+ privateKey?: string | {
687
+ data: number[];
688
+ type: "Buffer";
689
+ };
690
+ privateKeyPass?: string;
691
+ isAssertionEncrypted?: boolean;
692
+ requestSignatureAlgorithm?: string;
693
+ encPrivateKey?: string | {
694
+ data: number[];
695
+ type: "Buffer";
696
+ };
697
+ encPrivateKeyPass?: string | (import("./definitions").Buffer & string);
698
+ assertionConsumerService?: {
699
+ isDefault?: boolean;
700
+ Binding: string;
701
+ Location: string;
702
+ }[];
703
+ singleLogoutService?: {
704
+ isDefault?: boolean;
705
+ Binding: string;
706
+ Location: string;
707
+ }[];
708
+ signatureConfig?: {
709
+ prefix?: string;
710
+ location?: {
711
+ reference?: string;
712
+ action?: "append" | "prepend" | "before" | "after";
713
+ };
714
+ };
715
+ loginRequestTemplate?: {
716
+ context?: string;
717
+ };
718
+ logoutRequestTemplate?: {
719
+ context?: string;
720
+ };
721
+ signingCert?: string | {
722
+ data: number[];
723
+ type: "Buffer";
724
+ };
725
+ encryptCert?: string | {
726
+ data: number[];
727
+ type: "Buffer";
728
+ };
729
+ transformationAlgorithms?: string[];
730
+ nameIDFormat?: string[];
731
+ allowCreate?: boolean;
732
+ relayState?: string;
733
+ clockDrifts?: number[];
734
+ loginResponseTemplate?: {
735
+ attributes?: {
736
+ name: string;
737
+ nameFormat: string;
738
+ valueXsiType: string;
739
+ valueTag: string;
740
+ valueXmlnsXs?: string;
741
+ valueXmlnsXsi?: string;
742
+ }[];
743
+ context: string;
744
+ };
745
+ generateID?: {};
746
+ singleSignOnService?: {
747
+ isDefault?: boolean;
748
+ Binding: string;
749
+ Location: string;
750
+ }[];
751
+ messageSigningOrder?: string;
752
+ wantAuthnRequestsSigned?: boolean;
753
+ wantLogoutRequestSignedResponseSigned?: boolean;
754
+ tagPrefix?: {
755
+ [x: string]: string;
756
+ };
757
+ };
758
+ entityType: string;
759
+ };
760
+ };
87
761
  custom?: {
88
762
  colors?: string[];
89
763
  };
90
764
  retention: number;
765
+ features: {
766
+ [x: string]: boolean;
767
+ };
91
768
  events: {
92
769
  product_page: string;
93
770
  add_cart: string;
94
771
  purchase: string;
95
772
  };
773
+ };
774
+ }>>;
775
+ update: (params: {
776
+ id: string;
777
+ }, data: {
778
+ meta?: {
779
+ [x: string]: string | number | boolean;
780
+ };
781
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
782
+ status: "success";
783
+ program: string;
784
+ version: string;
785
+ datetime: string;
786
+ code?: number;
787
+ message: string;
788
+ data: {
789
+ readonly id: string & {
790
+ readonly?: "__readonly";
791
+ };
792
+ plan: {
793
+ name?: string;
794
+ quota: number;
795
+ startDate: Date;
796
+ endDate: Date;
797
+ };
798
+ password?: {
799
+ passwordDuration?: number;
800
+ nbSpCharacter?: number;
801
+ nbIsNotAlphabeticCharacter?: number;
802
+ nbNumberCharacter?: number;
803
+ nbLetterInLowercase?: number;
804
+ nbLetterInUppercase?: number;
805
+ nbCharacter?: number;
806
+ nbAttempts?: number;
807
+ timeEachAttempts?: number;
808
+ timeLockAfterNextAttempts?: number;
809
+ infiniteTimeLock?: boolean;
810
+ };
96
811
  disabled: boolean;
97
812
  meta: {
98
- 'email-token'?: string;
99
- esp?: string;
813
+ [x: string]: string | number | boolean;
814
+ };
815
+ name: string;
816
+ readonly createdAt: Date & {
817
+ readonly?: "__readonly";
818
+ };
819
+ readonly updatedAt: Date & {
820
+ readonly?: "__readonly";
821
+ };
822
+ defaultRoleId: string;
823
+ defaultResourceGroupIds: string[];
824
+ address?: {
825
+ line1?: string;
826
+ line2?: string;
827
+ zipcode?: string;
828
+ city?: string;
829
+ country?: string;
830
+ };
831
+ contact?: {
832
+ name?: string;
833
+ email?: string;
834
+ };
835
+ securityPolicy: {
836
+ password: {
837
+ rules: {
838
+ type: "special-characters" | "numbers" | "characters" | "uppercases" | "lowercases";
839
+ options: {
840
+ minimum?: number;
841
+ maximum?: number;
842
+ };
843
+ }[];
844
+ duration: number;
845
+ attempts: {
846
+ maximum: number;
847
+ lockDuration: number;
848
+ };
849
+ };
850
+ };
851
+ sso?: {
852
+ domains: string[];
853
+ metadata: string;
854
+ emailProperty: string[] | "nameID"[];
855
+ mode: "invitation" | "create";
856
+ readonly identityProvider: {
857
+ readonly?: "__readonly";
858
+ entityMeta: {
859
+ meta: any;
860
+ xmlString: string;
861
+ };
862
+ entitySetting: {
863
+ metadata?: string | {
864
+ data: number[];
865
+ type: "Buffer";
866
+ };
867
+ entityID?: string;
868
+ authnRequestsSigned?: boolean;
869
+ wantAssertionsSigned?: boolean;
870
+ wantMessageSigned?: boolean;
871
+ wantLogoutResponseSigned?: boolean;
872
+ wantLogoutRequestSigned?: boolean;
873
+ privateKey?: string | {
874
+ data: number[];
875
+ type: "Buffer";
876
+ };
877
+ privateKeyPass?: string;
878
+ isAssertionEncrypted?: boolean;
879
+ requestSignatureAlgorithm?: string;
880
+ encPrivateKey?: string | {
881
+ data: number[];
882
+ type: "Buffer";
883
+ };
884
+ encPrivateKeyPass?: string | (import("./definitions").Buffer & string);
885
+ assertionConsumerService?: {
886
+ isDefault?: boolean;
887
+ Binding: string;
888
+ Location: string;
889
+ }[];
890
+ singleLogoutService?: {
891
+ isDefault?: boolean;
892
+ Binding: string;
893
+ Location: string;
894
+ }[];
895
+ signatureConfig?: {
896
+ prefix?: string;
897
+ location?: {
898
+ reference?: string;
899
+ action?: "append" | "prepend" | "before" | "after";
900
+ };
901
+ };
902
+ loginRequestTemplate?: {
903
+ context?: string;
904
+ };
905
+ logoutRequestTemplate?: {
906
+ context?: string;
907
+ };
908
+ signingCert?: string | {
909
+ data: number[];
910
+ type: "Buffer";
911
+ };
912
+ encryptCert?: string | {
913
+ data: number[];
914
+ type: "Buffer";
915
+ };
916
+ transformationAlgorithms?: string[];
917
+ nameIDFormat?: string[];
918
+ allowCreate?: boolean;
919
+ relayState?: string;
920
+ clockDrifts?: number[];
921
+ loginResponseTemplate?: {
922
+ attributes?: {
923
+ name: string;
924
+ nameFormat: string;
925
+ valueXsiType: string;
926
+ valueTag: string;
927
+ valueXmlnsXs?: string;
928
+ valueXmlnsXsi?: string;
929
+ }[];
930
+ context: string;
931
+ };
932
+ generateID?: {};
933
+ singleSignOnService?: {
934
+ isDefault?: boolean;
935
+ Binding: string;
936
+ Location: string;
937
+ }[];
938
+ messageSigningOrder?: string;
939
+ wantAuthnRequestsSigned?: boolean;
940
+ wantLogoutRequestSignedResponseSigned?: boolean;
941
+ tagPrefix?: {
942
+ [x: string]: string;
943
+ };
944
+ };
945
+ entityType: string;
946
+ };
947
+ readonly serviceProvider: {
948
+ readonly?: "__readonly";
949
+ entityMeta: {
950
+ meta: any;
951
+ xmlString: string;
952
+ };
953
+ entitySetting: {
954
+ metadata?: string | {
955
+ data: number[];
956
+ type: "Buffer";
957
+ };
958
+ entityID?: string;
959
+ authnRequestsSigned?: boolean;
960
+ wantAssertionsSigned?: boolean;
961
+ wantMessageSigned?: boolean;
962
+ wantLogoutResponseSigned?: boolean;
963
+ wantLogoutRequestSigned?: boolean;
964
+ privateKey?: string | {
965
+ data: number[];
966
+ type: "Buffer";
967
+ };
968
+ privateKeyPass?: string;
969
+ isAssertionEncrypted?: boolean;
970
+ requestSignatureAlgorithm?: string;
971
+ encPrivateKey?: string | {
972
+ data: number[];
973
+ type: "Buffer";
974
+ };
975
+ encPrivateKeyPass?: string | (import("./definitions").Buffer & string);
976
+ assertionConsumerService?: {
977
+ isDefault?: boolean;
978
+ Binding: string;
979
+ Location: string;
980
+ }[];
981
+ singleLogoutService?: {
982
+ isDefault?: boolean;
983
+ Binding: string;
984
+ Location: string;
985
+ }[];
986
+ signatureConfig?: {
987
+ prefix?: string;
988
+ location?: {
989
+ reference?: string;
990
+ action?: "append" | "prepend" | "before" | "after";
991
+ };
992
+ };
993
+ loginRequestTemplate?: {
994
+ context?: string;
995
+ };
996
+ logoutRequestTemplate?: {
997
+ context?: string;
998
+ };
999
+ signingCert?: string | {
1000
+ data: number[];
1001
+ type: "Buffer";
1002
+ };
1003
+ encryptCert?: string | {
1004
+ data: number[];
1005
+ type: "Buffer";
1006
+ };
1007
+ transformationAlgorithms?: string[];
1008
+ nameIDFormat?: string[];
1009
+ allowCreate?: boolean;
1010
+ relayState?: string;
1011
+ clockDrifts?: number[];
1012
+ loginResponseTemplate?: {
1013
+ attributes?: {
1014
+ name: string;
1015
+ nameFormat: string;
1016
+ valueXsiType: string;
1017
+ valueTag: string;
1018
+ valueXmlnsXs?: string;
1019
+ valueXmlnsXsi?: string;
1020
+ }[];
1021
+ context: string;
1022
+ };
1023
+ generateID?: {};
1024
+ singleSignOnService?: {
1025
+ isDefault?: boolean;
1026
+ Binding: string;
1027
+ Location: string;
1028
+ }[];
1029
+ messageSigningOrder?: string;
1030
+ wantAuthnRequestsSigned?: boolean;
1031
+ wantLogoutRequestSignedResponseSigned?: boolean;
1032
+ tagPrefix?: {
1033
+ [x: string]: string;
1034
+ };
1035
+ };
1036
+ entityType: string;
1037
+ };
1038
+ };
1039
+ custom?: {
1040
+ colors?: string[];
1041
+ };
1042
+ retention: number;
1043
+ features: {
1044
+ [x: string]: boolean;
1045
+ };
1046
+ events: {
1047
+ product_page: string;
1048
+ add_cart: string;
1049
+ purchase: string;
100
1050
  };
101
1051
  };
102
1052
  }>>;
@@ -105,7 +1055,7 @@ export default class {
105
1055
  list: (params: {
106
1056
  page?: number;
107
1057
  perPage?: number;
108
- state?: Types.InvitationState;
1058
+ state?: InvitationState;
109
1059
  }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
110
1060
  paginationCount: number;
111
1061
  paginationPage: number;
@@ -117,23 +1067,23 @@ export default class {
117
1067
  code?: number;
118
1068
  message: string;
119
1069
  data: {
1070
+ readonly companyId: string & {
1071
+ readonly?: "__readonly";
1072
+ };
120
1073
  readonly roleId: string & {
121
- readonly?: undefined;
1074
+ readonly?: "__readonly";
122
1075
  };
123
1076
  readonly resourceGroupIds: string[];
124
- readonly companyId: string & {
125
- readonly?: undefined;
126
- };
127
1077
  readonly id: string & {
128
- readonly?: undefined;
1078
+ readonly?: "__readonly";
129
1079
  };
1080
+ state: InvitationState;
130
1081
  email: string;
131
1082
  createdAt: Date;
132
1083
  usedAt?: Date;
133
- state: Types.InvitationState;
134
1084
  }[];
135
1085
  }>>;
136
- create: (params: {}, data: {
1086
+ create: (data: {
137
1087
  email: string;
138
1088
  resourceGroupIds?: string[];
139
1089
  roleId?: string;
@@ -145,20 +1095,20 @@ export default class {
145
1095
  code?: number;
146
1096
  message: string;
147
1097
  data: {
1098
+ readonly companyId: string & {
1099
+ readonly?: "__readonly";
1100
+ };
148
1101
  readonly roleId: string & {
149
- readonly?: undefined;
1102
+ readonly?: "__readonly";
150
1103
  };
151
1104
  readonly resourceGroupIds: string[];
152
- readonly companyId: string & {
153
- readonly?: undefined;
154
- };
155
1105
  readonly id: string & {
156
- readonly?: undefined;
1106
+ readonly?: "__readonly";
157
1107
  };
1108
+ state: InvitationState;
158
1109
  email: string;
159
1110
  createdAt: Date;
160
1111
  usedAt?: Date;
161
- state: Types.InvitationState;
162
1112
  };
163
1113
  }>>;
164
1114
  use: (params: {
@@ -184,25 +1134,25 @@ export default class {
184
1134
  code?: number;
185
1135
  message: string;
186
1136
  data: {
1137
+ readonly companyId: string & {
1138
+ readonly?: "__readonly";
1139
+ };
187
1140
  readonly roleId: string & {
188
- readonly?: undefined;
1141
+ readonly?: "__readonly";
189
1142
  };
190
1143
  readonly resourceGroupIds: string[];
191
- readonly companyId: string & {
192
- readonly?: undefined;
193
- };
194
1144
  readonly id: string & {
195
- readonly?: undefined;
1145
+ readonly?: "__readonly";
196
1146
  };
1147
+ state: InvitationState;
197
1148
  email: string;
198
1149
  createdAt: Date;
199
1150
  usedAt?: Date;
200
- state: Types.InvitationState;
201
1151
  };
202
1152
  }>>;
203
1153
  };
204
1154
  get ResourceGroup(): {
205
- list: (params: {}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
1155
+ list: (options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
206
1156
  status: "success";
207
1157
  program: string;
208
1158
  version: string;
@@ -211,10 +1161,10 @@ export default class {
211
1161
  message: string;
212
1162
  data: ({
213
1163
  readonly companyId: string & {
214
- readonly?: undefined;
1164
+ readonly?: "__readonly";
215
1165
  };
216
1166
  readonly id: string & {
217
- readonly?: undefined;
1167
+ readonly?: "__readonly";
218
1168
  };
219
1169
  name: string;
220
1170
  color?: string;
@@ -222,7 +1172,7 @@ export default class {
222
1172
  usersCount: number;
223
1173
  })[];
224
1174
  }>>;
225
- create: (params: {}, data: {
1175
+ create: (data: {
226
1176
  name: string;
227
1177
  color?: string;
228
1178
  }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
@@ -234,10 +1184,10 @@ export default class {
234
1184
  message: string;
235
1185
  data: {
236
1186
  readonly companyId: string & {
237
- readonly?: undefined;
1187
+ readonly?: "__readonly";
238
1188
  };
239
1189
  readonly id: string & {
240
- readonly?: undefined;
1190
+ readonly?: "__readonly";
241
1191
  };
242
1192
  name: string;
243
1193
  color?: string;
@@ -257,10 +1207,10 @@ export default class {
257
1207
  message: string;
258
1208
  data: {
259
1209
  readonly companyId: string & {
260
- readonly?: undefined;
1210
+ readonly?: "__readonly";
261
1211
  };
262
1212
  readonly id: string & {
263
- readonly?: undefined;
1213
+ readonly?: "__readonly";
264
1214
  };
265
1215
  name: string;
266
1216
  color?: string;
@@ -279,7 +1229,7 @@ export default class {
279
1229
  }>>;
280
1230
  };
281
1231
  get Role(): {
282
- list: (params: {}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
1232
+ list: (options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
283
1233
  status: "success";
284
1234
  program: string;
285
1235
  version: string;
@@ -288,40 +1238,44 @@ export default class {
288
1238
  message: string;
289
1239
  data: ({
290
1240
  readonly companyId: string & {
291
- readonly?: undefined;
1241
+ readonly?: "__readonly";
292
1242
  };
293
1243
  readonly id: string & {
294
- readonly?: undefined;
1244
+ readonly?: "__readonly";
295
1245
  };
296
1246
  name: string;
297
1247
  rules: {
1248
+ action: "create" | "read" | "update" | "delete" | "access";
298
1249
  fields?: string[];
299
- conditions?: never;
1250
+ conditions?: {
1251
+ [x: string]: any;
1252
+ };
300
1253
  inverted?: boolean;
301
1254
  reason?: string;
302
- action: "create" | "read" | "update" | "delete" | "access";
303
1255
  subject: "Company" | "Block" | "Campaign" | "BranchGroup" | "Datasource" | "OAuthClient" | "Statistics" | "BlockContent" | "User" | "Billing" | "Role" | "ResourceGroup" | "Invitation";
304
- mustMatch?: ("roleId" | "resourceGroupIds" | "companyId" | "id" | {
1256
+ mustMatch?: ("companyId" | "roleId" | "resourceGroupIds" | "id" | {
305
1257
  field: string;
306
- value: "roleId" | "resourceGroupIds" | "companyId" | "id";
1258
+ value: "companyId" | "roleId" | "resourceGroupIds" | "id";
307
1259
  })[];
308
1260
  }[];
309
1261
  } & {
310
1262
  usersCount: number;
311
1263
  })[];
312
1264
  }>>;
313
- create: (params: {}, data: {
1265
+ create: (data: {
314
1266
  name: string;
315
1267
  rules: {
1268
+ action: "create" | "read" | "update" | "delete" | "access";
316
1269
  fields?: string[];
317
- conditions?: never;
1270
+ conditions?: {
1271
+ [x: string]: any;
1272
+ };
318
1273
  inverted?: boolean;
319
1274
  reason?: string;
320
- action: "create" | "read" | "update" | "delete" | "access";
321
1275
  subject: "Company" | "Block" | "Campaign" | "BranchGroup" | "Datasource" | "OAuthClient" | "Statistics" | "BlockContent" | "User" | "Billing" | "Role" | "ResourceGroup" | "Invitation";
322
- mustMatch?: ("roleId" | "resourceGroupIds" | "companyId" | "id" | {
1276
+ mustMatch?: ("companyId" | "roleId" | "resourceGroupIds" | "id" | {
323
1277
  field: string;
324
- value: "roleId" | "resourceGroupIds" | "companyId" | "id";
1278
+ value: "companyId" | "roleId" | "resourceGroupIds" | "id";
325
1279
  })[];
326
1280
  }[];
327
1281
  }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
@@ -333,22 +1287,24 @@ export default class {
333
1287
  message: string;
334
1288
  data: {
335
1289
  readonly companyId: string & {
336
- readonly?: undefined;
1290
+ readonly?: "__readonly";
337
1291
  };
338
1292
  readonly id: string & {
339
- readonly?: undefined;
1293
+ readonly?: "__readonly";
340
1294
  };
341
1295
  name: string;
342
1296
  rules: {
1297
+ action: "create" | "read" | "update" | "delete" | "access";
343
1298
  fields?: string[];
344
- conditions?: never;
1299
+ conditions?: {
1300
+ [x: string]: any;
1301
+ };
345
1302
  inverted?: boolean;
346
1303
  reason?: string;
347
- action: "create" | "read" | "update" | "delete" | "access";
348
1304
  subject: "Company" | "Block" | "Campaign" | "BranchGroup" | "Datasource" | "OAuthClient" | "Statistics" | "BlockContent" | "User" | "Billing" | "Role" | "ResourceGroup" | "Invitation";
349
- mustMatch?: ("roleId" | "resourceGroupIds" | "companyId" | "id" | {
1305
+ mustMatch?: ("companyId" | "roleId" | "resourceGroupIds" | "id" | {
350
1306
  field: string;
351
- value: "roleId" | "resourceGroupIds" | "companyId" | "id";
1307
+ value: "companyId" | "roleId" | "resourceGroupIds" | "id";
352
1308
  })[];
353
1309
  }[];
354
1310
  };
@@ -358,15 +1314,17 @@ export default class {
358
1314
  }, data: {
359
1315
  name?: string;
360
1316
  rules?: {
1317
+ action: "create" | "read" | "update" | "delete" | "access";
361
1318
  fields?: string[];
362
- conditions?: never;
1319
+ conditions?: {
1320
+ [x: string]: any;
1321
+ };
363
1322
  inverted?: boolean;
364
1323
  reason?: string;
365
- action: "create" | "read" | "update" | "delete" | "access";
366
1324
  subject: "Company" | "Block" | "Campaign" | "BranchGroup" | "Datasource" | "OAuthClient" | "Statistics" | "BlockContent" | "User" | "Billing" | "Role" | "ResourceGroup" | "Invitation";
367
- mustMatch?: ("roleId" | "resourceGroupIds" | "companyId" | "id" | {
1325
+ mustMatch?: ("companyId" | "roleId" | "resourceGroupIds" | "id" | {
368
1326
  field: string;
369
- value: "roleId" | "resourceGroupIds" | "companyId" | "id";
1327
+ value: "companyId" | "roleId" | "resourceGroupIds" | "id";
370
1328
  })[];
371
1329
  }[];
372
1330
  }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
@@ -378,22 +1336,24 @@ export default class {
378
1336
  message: string;
379
1337
  data: {
380
1338
  readonly companyId: string & {
381
- readonly?: undefined;
1339
+ readonly?: "__readonly";
382
1340
  };
383
1341
  readonly id: string & {
384
- readonly?: undefined;
1342
+ readonly?: "__readonly";
385
1343
  };
386
1344
  name: string;
387
1345
  rules: {
1346
+ action: "create" | "read" | "update" | "delete" | "access";
388
1347
  fields?: string[];
389
- conditions?: never;
1348
+ conditions?: {
1349
+ [x: string]: any;
1350
+ };
390
1351
  inverted?: boolean;
391
1352
  reason?: string;
392
- action: "create" | "read" | "update" | "delete" | "access";
393
1353
  subject: "Company" | "Block" | "Campaign" | "BranchGroup" | "Datasource" | "OAuthClient" | "Statistics" | "BlockContent" | "User" | "Billing" | "Role" | "ResourceGroup" | "Invitation";
394
- mustMatch?: ("roleId" | "resourceGroupIds" | "companyId" | "id" | {
1354
+ mustMatch?: ("companyId" | "roleId" | "resourceGroupIds" | "id" | {
395
1355
  field: string;
396
- value: "roleId" | "resourceGroupIds" | "companyId" | "id";
1356
+ value: "companyId" | "roleId" | "resourceGroupIds" | "id";
397
1357
  })[];
398
1358
  }[];
399
1359
  };
@@ -425,37 +1385,32 @@ export default class {
425
1385
  code?: number;
426
1386
  message: string;
427
1387
  data: {
1388
+ readonly companyId: string & {
1389
+ readonly?: "__readonly";
1390
+ };
428
1391
  readonly roleId: string & {
429
- readonly?: undefined;
1392
+ readonly?: "__readonly";
430
1393
  };
431
1394
  readonly resourceGroupIds: string[];
432
- readonly companyId: string & {
433
- readonly?: undefined;
434
- };
435
1395
  readonly id: string & {
436
- readonly?: undefined;
1396
+ readonly?: "__readonly";
437
1397
  };
438
1398
  readonly disabled: (false & {
439
- readonly?: undefined;
1399
+ readonly?: "__readonly";
440
1400
  }) | (true & {
441
- readonly?: undefined;
1401
+ readonly?: "__readonly";
442
1402
  });
443
1403
  email: string;
444
- readonly createdAt: Date & {
445
- readonly?: undefined;
446
- };
447
- readonly updatedAt: Date & {
448
- readonly?: undefined;
449
- };
450
1404
  readonly lastPasswordUpdate: Date & {
451
- readonly?: undefined;
1405
+ readonly?: "__readonly";
452
1406
  };
453
1407
  readonly mustUpdatePassword: (false & {
454
- readonly?: undefined;
1408
+ readonly?: "__readonly";
455
1409
  }) | (true & {
456
- readonly?: undefined;
1410
+ readonly?: "__readonly";
457
1411
  });
458
1412
  readonly connection: {
1413
+ readonly?: "__readonly";
459
1414
  lastAttempts?: Date;
460
1415
  nbFail?: number;
461
1416
  };
@@ -473,9 +1428,20 @@ export default class {
473
1428
  campaign?: string;
474
1429
  };
475
1430
  };
1431
+ readonly hasOtp: (false & {
1432
+ readonly?: "__readonly";
1433
+ }) | (true & {
1434
+ readonly?: "__readonly";
1435
+ });
1436
+ readonly createdAt: Date & {
1437
+ readonly?: "__readonly";
1438
+ };
1439
+ readonly updatedAt: Date & {
1440
+ readonly?: "__readonly";
1441
+ };
476
1442
  }[];
477
1443
  }>>;
478
- create: (params: {}, data: {
1444
+ create: (data: {
479
1445
  invitationId: string;
480
1446
  profile: {
481
1447
  firstname?: string;
@@ -500,37 +1466,372 @@ export default class {
500
1466
  code?: number;
501
1467
  message: string;
502
1468
  data: {
503
- readonly roleId: string & {
504
- readonly?: undefined;
1469
+ user: {
1470
+ readonly companyId: string & {
1471
+ readonly?: "__readonly";
1472
+ };
1473
+ readonly roleId: string & {
1474
+ readonly?: "__readonly";
1475
+ };
1476
+ readonly resourceGroupIds: string[];
1477
+ readonly id: string & {
1478
+ readonly?: "__readonly";
1479
+ };
1480
+ readonly disabled: (false & {
1481
+ readonly?: "__readonly";
1482
+ }) | (true & {
1483
+ readonly?: "__readonly";
1484
+ });
1485
+ email: string;
1486
+ readonly lastPasswordUpdate: Date & {
1487
+ readonly?: "__readonly";
1488
+ };
1489
+ readonly mustUpdatePassword: (false & {
1490
+ readonly?: "__readonly";
1491
+ }) | (true & {
1492
+ readonly?: "__readonly";
1493
+ });
1494
+ readonly connection: {
1495
+ readonly?: "__readonly";
1496
+ lastAttempts?: Date;
1497
+ nbFail?: number;
1498
+ };
1499
+ profile?: {
1500
+ firstname?: string;
1501
+ lastname?: string;
1502
+ jobtitle?: string;
1503
+ phone?: string;
1504
+ preferredLang?: string;
1505
+ preferredRecipientId?: string;
1506
+ preferredMessageId?: string;
1507
+ preferredUtm?: {
1508
+ medium?: string;
1509
+ source?: string;
1510
+ campaign?: string;
1511
+ };
1512
+ };
1513
+ readonly hasOtp: (false & {
1514
+ readonly?: "__readonly";
1515
+ }) | (true & {
1516
+ readonly?: "__readonly";
1517
+ });
1518
+ readonly createdAt: Date & {
1519
+ readonly?: "__readonly";
1520
+ };
1521
+ readonly updatedAt: Date & {
1522
+ readonly?: "__readonly";
1523
+ };
505
1524
  };
506
- readonly resourceGroupIds: string[];
1525
+ company: {
1526
+ readonly id: string & {
1527
+ readonly?: "__readonly";
1528
+ };
1529
+ plan: {
1530
+ name?: string;
1531
+ quota: number;
1532
+ startDate: Date;
1533
+ endDate: Date;
1534
+ };
1535
+ password?: {
1536
+ passwordDuration?: number;
1537
+ nbSpCharacter?: number;
1538
+ nbIsNotAlphabeticCharacter?: number;
1539
+ nbNumberCharacter?: number;
1540
+ nbLetterInLowercase?: number;
1541
+ nbLetterInUppercase?: number;
1542
+ nbCharacter?: number;
1543
+ nbAttempts?: number;
1544
+ timeEachAttempts?: number;
1545
+ timeLockAfterNextAttempts?: number;
1546
+ infiniteTimeLock?: boolean;
1547
+ };
1548
+ disabled: boolean;
1549
+ meta: {
1550
+ [x: string]: string | number | boolean;
1551
+ };
1552
+ name: string;
1553
+ readonly createdAt: Date & {
1554
+ readonly?: "__readonly";
1555
+ };
1556
+ readonly updatedAt: Date & {
1557
+ readonly?: "__readonly";
1558
+ };
1559
+ defaultRoleId: string;
1560
+ defaultResourceGroupIds: string[];
1561
+ address?: {
1562
+ line1?: string;
1563
+ line2?: string;
1564
+ zipcode?: string;
1565
+ city?: string;
1566
+ country?: string;
1567
+ };
1568
+ contact?: {
1569
+ name?: string;
1570
+ email?: string;
1571
+ };
1572
+ securityPolicy: {
1573
+ password: {
1574
+ rules: {
1575
+ type: "special-characters" | "numbers" | "characters" | "uppercases" | "lowercases";
1576
+ options: {
1577
+ minimum?: number;
1578
+ maximum?: number;
1579
+ };
1580
+ }[];
1581
+ duration: number;
1582
+ attempts: {
1583
+ maximum: number;
1584
+ lockDuration: number;
1585
+ };
1586
+ };
1587
+ };
1588
+ sso?: {
1589
+ domains: string[];
1590
+ metadata: string;
1591
+ emailProperty: string[] | "nameID"[];
1592
+ mode: "invitation" | "create";
1593
+ readonly identityProvider: {
1594
+ readonly?: "__readonly";
1595
+ entityMeta: {
1596
+ meta: any;
1597
+ xmlString: string;
1598
+ };
1599
+ entitySetting: {
1600
+ metadata?: string | {
1601
+ data: number[];
1602
+ type: "Buffer";
1603
+ };
1604
+ entityID?: string;
1605
+ authnRequestsSigned?: boolean;
1606
+ wantAssertionsSigned?: boolean;
1607
+ wantMessageSigned?: boolean;
1608
+ wantLogoutResponseSigned?: boolean;
1609
+ wantLogoutRequestSigned?: boolean;
1610
+ privateKey?: string | {
1611
+ data: number[];
1612
+ type: "Buffer";
1613
+ };
1614
+ privateKeyPass?: string;
1615
+ isAssertionEncrypted?: boolean;
1616
+ requestSignatureAlgorithm?: string;
1617
+ encPrivateKey?: string | {
1618
+ data: number[];
1619
+ type: "Buffer";
1620
+ };
1621
+ encPrivateKeyPass?: string | (import("./definitions").Buffer & string);
1622
+ assertionConsumerService?: {
1623
+ isDefault?: boolean;
1624
+ Binding: string;
1625
+ Location: string;
1626
+ }[];
1627
+ singleLogoutService?: {
1628
+ isDefault?: boolean;
1629
+ Binding: string;
1630
+ Location: string;
1631
+ }[];
1632
+ signatureConfig?: {
1633
+ prefix?: string;
1634
+ location?: {
1635
+ reference?: string;
1636
+ action?: "append" | "prepend" | "before" | "after";
1637
+ };
1638
+ };
1639
+ loginRequestTemplate?: {
1640
+ context?: string;
1641
+ };
1642
+ logoutRequestTemplate?: {
1643
+ context?: string;
1644
+ };
1645
+ signingCert?: string | {
1646
+ data: number[];
1647
+ type: "Buffer";
1648
+ };
1649
+ encryptCert?: string | {
1650
+ data: number[];
1651
+ type: "Buffer";
1652
+ };
1653
+ transformationAlgorithms?: string[];
1654
+ nameIDFormat?: string[];
1655
+ allowCreate?: boolean;
1656
+ relayState?: string;
1657
+ clockDrifts?: number[];
1658
+ loginResponseTemplate?: {
1659
+ attributes?: {
1660
+ name: string;
1661
+ nameFormat: string;
1662
+ valueXsiType: string;
1663
+ valueTag: string;
1664
+ valueXmlnsXs?: string;
1665
+ valueXmlnsXsi?: string;
1666
+ }[];
1667
+ context: string;
1668
+ };
1669
+ generateID?: {};
1670
+ singleSignOnService?: {
1671
+ isDefault?: boolean;
1672
+ Binding: string;
1673
+ Location: string;
1674
+ }[];
1675
+ messageSigningOrder?: string;
1676
+ wantAuthnRequestsSigned?: boolean;
1677
+ wantLogoutRequestSignedResponseSigned?: boolean;
1678
+ tagPrefix?: {
1679
+ [x: string]: string;
1680
+ };
1681
+ };
1682
+ entityType: string;
1683
+ };
1684
+ readonly serviceProvider: {
1685
+ readonly?: "__readonly";
1686
+ entityMeta: {
1687
+ meta: any;
1688
+ xmlString: string;
1689
+ };
1690
+ entitySetting: {
1691
+ metadata?: string | {
1692
+ data: number[];
1693
+ type: "Buffer";
1694
+ };
1695
+ entityID?: string;
1696
+ authnRequestsSigned?: boolean;
1697
+ wantAssertionsSigned?: boolean;
1698
+ wantMessageSigned?: boolean;
1699
+ wantLogoutResponseSigned?: boolean;
1700
+ wantLogoutRequestSigned?: boolean;
1701
+ privateKey?: string | {
1702
+ data: number[];
1703
+ type: "Buffer";
1704
+ };
1705
+ privateKeyPass?: string;
1706
+ isAssertionEncrypted?: boolean;
1707
+ requestSignatureAlgorithm?: string;
1708
+ encPrivateKey?: string | {
1709
+ data: number[];
1710
+ type: "Buffer";
1711
+ };
1712
+ encPrivateKeyPass?: string | (import("./definitions").Buffer & string);
1713
+ assertionConsumerService?: {
1714
+ isDefault?: boolean;
1715
+ Binding: string;
1716
+ Location: string;
1717
+ }[];
1718
+ singleLogoutService?: {
1719
+ isDefault?: boolean;
1720
+ Binding: string;
1721
+ Location: string;
1722
+ }[];
1723
+ signatureConfig?: {
1724
+ prefix?: string;
1725
+ location?: {
1726
+ reference?: string;
1727
+ action?: "append" | "prepend" | "before" | "after";
1728
+ };
1729
+ };
1730
+ loginRequestTemplate?: {
1731
+ context?: string;
1732
+ };
1733
+ logoutRequestTemplate?: {
1734
+ context?: string;
1735
+ };
1736
+ signingCert?: string | {
1737
+ data: number[];
1738
+ type: "Buffer";
1739
+ };
1740
+ encryptCert?: string | {
1741
+ data: number[];
1742
+ type: "Buffer";
1743
+ };
1744
+ transformationAlgorithms?: string[];
1745
+ nameIDFormat?: string[];
1746
+ allowCreate?: boolean;
1747
+ relayState?: string;
1748
+ clockDrifts?: number[];
1749
+ loginResponseTemplate?: {
1750
+ attributes?: {
1751
+ name: string;
1752
+ nameFormat: string;
1753
+ valueXsiType: string;
1754
+ valueTag: string;
1755
+ valueXmlnsXs?: string;
1756
+ valueXmlnsXsi?: string;
1757
+ }[];
1758
+ context: string;
1759
+ };
1760
+ generateID?: {};
1761
+ singleSignOnService?: {
1762
+ isDefault?: boolean;
1763
+ Binding: string;
1764
+ Location: string;
1765
+ }[];
1766
+ messageSigningOrder?: string;
1767
+ wantAuthnRequestsSigned?: boolean;
1768
+ wantLogoutRequestSignedResponseSigned?: boolean;
1769
+ tagPrefix?: {
1770
+ [x: string]: string;
1771
+ };
1772
+ };
1773
+ entityType: string;
1774
+ };
1775
+ };
1776
+ custom?: {
1777
+ colors?: string[];
1778
+ };
1779
+ retention: number;
1780
+ features: {
1781
+ [x: string]: boolean;
1782
+ };
1783
+ events: {
1784
+ product_page: string;
1785
+ add_cart: string;
1786
+ purchase: string;
1787
+ };
1788
+ };
1789
+ };
1790
+ }>>;
1791
+ updatePassword: (data: ({
1792
+ email: string;
1793
+ password: string;
1794
+ } & {
1795
+ token: string;
1796
+ }) | ({
1797
+ email: string;
1798
+ password: string;
1799
+ } & {
1800
+ currentPassword: string;
1801
+ }), options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
1802
+ status: "success";
1803
+ program: string;
1804
+ version: string;
1805
+ datetime: string;
1806
+ code?: number;
1807
+ message: string;
1808
+ data: {
507
1809
  readonly companyId: string & {
508
- readonly?: undefined;
1810
+ readonly?: "__readonly";
1811
+ };
1812
+ readonly roleId: string & {
1813
+ readonly?: "__readonly";
509
1814
  };
1815
+ readonly resourceGroupIds: string[];
510
1816
  readonly id: string & {
511
- readonly?: undefined;
1817
+ readonly?: "__readonly";
512
1818
  };
513
1819
  readonly disabled: (false & {
514
- readonly?: undefined;
1820
+ readonly?: "__readonly";
515
1821
  }) | (true & {
516
- readonly?: undefined;
1822
+ readonly?: "__readonly";
517
1823
  });
518
1824
  email: string;
519
- readonly createdAt: Date & {
520
- readonly?: undefined;
521
- };
522
- readonly updatedAt: Date & {
523
- readonly?: undefined;
524
- };
525
1825
  readonly lastPasswordUpdate: Date & {
526
- readonly?: undefined;
1826
+ readonly?: "__readonly";
527
1827
  };
528
1828
  readonly mustUpdatePassword: (false & {
529
- readonly?: undefined;
1829
+ readonly?: "__readonly";
530
1830
  }) | (true & {
531
- readonly?: undefined;
1831
+ readonly?: "__readonly";
532
1832
  });
533
1833
  readonly connection: {
1834
+ readonly?: "__readonly";
534
1835
  lastAttempts?: Date;
535
1836
  nbFail?: number;
536
1837
  };
@@ -548,14 +1849,33 @@ export default class {
548
1849
  campaign?: string;
549
1850
  };
550
1851
  };
1852
+ readonly hasOtp: (false & {
1853
+ readonly?: "__readonly";
1854
+ }) | (true & {
1855
+ readonly?: "__readonly";
1856
+ });
1857
+ readonly createdAt: Date & {
1858
+ readonly?: "__readonly";
1859
+ };
1860
+ readonly updatedAt: Date & {
1861
+ readonly?: "__readonly";
1862
+ };
551
1863
  };
552
1864
  }>>;
1865
+ resetPassword: (data: {
1866
+ email: string;
1867
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
1868
+ status: "success";
1869
+ program: string;
1870
+ version: string;
1871
+ datetime: string;
1872
+ code?: number;
1873
+ message: string;
1874
+ data: {};
1875
+ }>>;
553
1876
  update: (params: {
554
1877
  id: string;
555
1878
  }, data: {
556
- password?: string & {
557
- writeonly?: undefined;
558
- };
559
1879
  email?: string;
560
1880
  profile?: {
561
1881
  firstname?: string;
@@ -579,37 +1899,32 @@ export default class {
579
1899
  code?: number;
580
1900
  message: string;
581
1901
  data: {
1902
+ readonly companyId: string & {
1903
+ readonly?: "__readonly";
1904
+ };
582
1905
  readonly roleId: string & {
583
- readonly?: undefined;
1906
+ readonly?: "__readonly";
584
1907
  };
585
1908
  readonly resourceGroupIds: string[];
586
- readonly companyId: string & {
587
- readonly?: undefined;
588
- };
589
1909
  readonly id: string & {
590
- readonly?: undefined;
1910
+ readonly?: "__readonly";
591
1911
  };
592
1912
  readonly disabled: (false & {
593
- readonly?: undefined;
1913
+ readonly?: "__readonly";
594
1914
  }) | (true & {
595
- readonly?: undefined;
1915
+ readonly?: "__readonly";
596
1916
  });
597
1917
  email: string;
598
- readonly createdAt: Date & {
599
- readonly?: undefined;
600
- };
601
- readonly updatedAt: Date & {
602
- readonly?: undefined;
603
- };
604
1918
  readonly lastPasswordUpdate: Date & {
605
- readonly?: undefined;
1919
+ readonly?: "__readonly";
606
1920
  };
607
1921
  readonly mustUpdatePassword: (false & {
608
- readonly?: undefined;
1922
+ readonly?: "__readonly";
609
1923
  }) | (true & {
610
- readonly?: undefined;
1924
+ readonly?: "__readonly";
611
1925
  });
612
1926
  readonly connection: {
1927
+ readonly?: "__readonly";
613
1928
  lastAttempts?: Date;
614
1929
  nbFail?: number;
615
1930
  };
@@ -627,6 +1942,17 @@ export default class {
627
1942
  campaign?: string;
628
1943
  };
629
1944
  };
1945
+ readonly hasOtp: (false & {
1946
+ readonly?: "__readonly";
1947
+ }) | (true & {
1948
+ readonly?: "__readonly";
1949
+ });
1950
+ readonly createdAt: Date & {
1951
+ readonly?: "__readonly";
1952
+ };
1953
+ readonly updatedAt: Date & {
1954
+ readonly?: "__readonly";
1955
+ };
630
1956
  };
631
1957
  }>>;
632
1958
  delete: (params: {
@@ -639,37 +1965,32 @@ export default class {
639
1965
  code?: number;
640
1966
  message: string;
641
1967
  data: {
1968
+ readonly companyId: string & {
1969
+ readonly?: "__readonly";
1970
+ };
642
1971
  readonly roleId: string & {
643
- readonly?: undefined;
1972
+ readonly?: "__readonly";
644
1973
  };
645
1974
  readonly resourceGroupIds: string[];
646
- readonly companyId: string & {
647
- readonly?: undefined;
648
- };
649
1975
  readonly id: string & {
650
- readonly?: undefined;
1976
+ readonly?: "__readonly";
651
1977
  };
652
1978
  readonly disabled: (false & {
653
- readonly?: undefined;
1979
+ readonly?: "__readonly";
654
1980
  }) | (true & {
655
- readonly?: undefined;
1981
+ readonly?: "__readonly";
656
1982
  });
657
1983
  email: string;
658
- readonly createdAt: Date & {
659
- readonly?: undefined;
660
- };
661
- readonly updatedAt: Date & {
662
- readonly?: undefined;
663
- };
664
1984
  readonly lastPasswordUpdate: Date & {
665
- readonly?: undefined;
1985
+ readonly?: "__readonly";
666
1986
  };
667
1987
  readonly mustUpdatePassword: (false & {
668
- readonly?: undefined;
1988
+ readonly?: "__readonly";
669
1989
  }) | (true & {
670
- readonly?: undefined;
1990
+ readonly?: "__readonly";
671
1991
  });
672
1992
  readonly connection: {
1993
+ readonly?: "__readonly";
673
1994
  lastAttempts?: Date;
674
1995
  nbFail?: number;
675
1996
  };
@@ -687,6 +2008,17 @@ export default class {
687
2008
  campaign?: string;
688
2009
  };
689
2010
  };
2011
+ readonly hasOtp: (false & {
2012
+ readonly?: "__readonly";
2013
+ }) | (true & {
2014
+ readonly?: "__readonly";
2015
+ });
2016
+ readonly createdAt: Date & {
2017
+ readonly?: "__readonly";
2018
+ };
2019
+ readonly updatedAt: Date & {
2020
+ readonly?: "__readonly";
2021
+ };
690
2022
  };
691
2023
  }>>;
692
2024
  setRole: (params: {
@@ -701,37 +2033,32 @@ export default class {
701
2033
  code?: number;
702
2034
  message: string;
703
2035
  data: {
2036
+ readonly companyId: string & {
2037
+ readonly?: "__readonly";
2038
+ };
704
2039
  readonly roleId: string & {
705
- readonly?: undefined;
2040
+ readonly?: "__readonly";
706
2041
  };
707
2042
  readonly resourceGroupIds: string[];
708
- readonly companyId: string & {
709
- readonly?: undefined;
710
- };
711
2043
  readonly id: string & {
712
- readonly?: undefined;
2044
+ readonly?: "__readonly";
713
2045
  };
714
2046
  readonly disabled: (false & {
715
- readonly?: undefined;
2047
+ readonly?: "__readonly";
716
2048
  }) | (true & {
717
- readonly?: undefined;
2049
+ readonly?: "__readonly";
718
2050
  });
719
2051
  email: string;
720
- readonly createdAt: Date & {
721
- readonly?: undefined;
722
- };
723
- readonly updatedAt: Date & {
724
- readonly?: undefined;
725
- };
726
2052
  readonly lastPasswordUpdate: Date & {
727
- readonly?: undefined;
2053
+ readonly?: "__readonly";
728
2054
  };
729
2055
  readonly mustUpdatePassword: (false & {
730
- readonly?: undefined;
2056
+ readonly?: "__readonly";
731
2057
  }) | (true & {
732
- readonly?: undefined;
2058
+ readonly?: "__readonly";
733
2059
  });
734
2060
  readonly connection: {
2061
+ readonly?: "__readonly";
735
2062
  lastAttempts?: Date;
736
2063
  nbFail?: number;
737
2064
  };
@@ -749,6 +2076,17 @@ export default class {
749
2076
  campaign?: string;
750
2077
  };
751
2078
  };
2079
+ readonly hasOtp: (false & {
2080
+ readonly?: "__readonly";
2081
+ }) | (true & {
2082
+ readonly?: "__readonly";
2083
+ });
2084
+ readonly createdAt: Date & {
2085
+ readonly?: "__readonly";
2086
+ };
2087
+ readonly updatedAt: Date & {
2088
+ readonly?: "__readonly";
2089
+ };
752
2090
  };
753
2091
  }>>;
754
2092
  setResourceGroups: (params: {
@@ -763,37 +2101,105 @@ export default class {
763
2101
  code?: number;
764
2102
  message: string;
765
2103
  data: {
2104
+ readonly companyId: string & {
2105
+ readonly?: "__readonly";
2106
+ };
766
2107
  readonly roleId: string & {
767
- readonly?: undefined;
2108
+ readonly?: "__readonly";
768
2109
  };
769
2110
  readonly resourceGroupIds: string[];
770
- readonly companyId: string & {
771
- readonly?: undefined;
772
- };
773
2111
  readonly id: string & {
774
- readonly?: undefined;
2112
+ readonly?: "__readonly";
775
2113
  };
776
2114
  readonly disabled: (false & {
777
- readonly?: undefined;
2115
+ readonly?: "__readonly";
778
2116
  }) | (true & {
779
- readonly?: undefined;
2117
+ readonly?: "__readonly";
780
2118
  });
781
2119
  email: string;
2120
+ readonly lastPasswordUpdate: Date & {
2121
+ readonly?: "__readonly";
2122
+ };
2123
+ readonly mustUpdatePassword: (false & {
2124
+ readonly?: "__readonly";
2125
+ }) | (true & {
2126
+ readonly?: "__readonly";
2127
+ });
2128
+ readonly connection: {
2129
+ readonly?: "__readonly";
2130
+ lastAttempts?: Date;
2131
+ nbFail?: number;
2132
+ };
2133
+ profile?: {
2134
+ firstname?: string;
2135
+ lastname?: string;
2136
+ jobtitle?: string;
2137
+ phone?: string;
2138
+ preferredLang?: string;
2139
+ preferredRecipientId?: string;
2140
+ preferredMessageId?: string;
2141
+ preferredUtm?: {
2142
+ medium?: string;
2143
+ source?: string;
2144
+ campaign?: string;
2145
+ };
2146
+ };
2147
+ readonly hasOtp: (false & {
2148
+ readonly?: "__readonly";
2149
+ }) | (true & {
2150
+ readonly?: "__readonly";
2151
+ });
782
2152
  readonly createdAt: Date & {
783
- readonly?: undefined;
2153
+ readonly?: "__readonly";
784
2154
  };
785
2155
  readonly updatedAt: Date & {
786
- readonly?: undefined;
2156
+ readonly?: "__readonly";
2157
+ };
2158
+ };
2159
+ }>>;
2160
+ setOtp: (params: {
2161
+ id: string;
2162
+ }, data: {
2163
+ status: "enabled";
2164
+ secret: string;
2165
+ code: string;
2166
+ } | {
2167
+ status: "disabled";
2168
+ code: string;
2169
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
2170
+ status: "success";
2171
+ program: string;
2172
+ version: string;
2173
+ datetime: string;
2174
+ code?: number;
2175
+ message: string;
2176
+ data: {
2177
+ readonly companyId: string & {
2178
+ readonly?: "__readonly";
2179
+ };
2180
+ readonly roleId: string & {
2181
+ readonly?: "__readonly";
787
2182
  };
2183
+ readonly resourceGroupIds: string[];
2184
+ readonly id: string & {
2185
+ readonly?: "__readonly";
2186
+ };
2187
+ readonly disabled: (false & {
2188
+ readonly?: "__readonly";
2189
+ }) | (true & {
2190
+ readonly?: "__readonly";
2191
+ });
2192
+ email: string;
788
2193
  readonly lastPasswordUpdate: Date & {
789
- readonly?: undefined;
2194
+ readonly?: "__readonly";
790
2195
  };
791
2196
  readonly mustUpdatePassword: (false & {
792
- readonly?: undefined;
2197
+ readonly?: "__readonly";
793
2198
  }) | (true & {
794
- readonly?: undefined;
2199
+ readonly?: "__readonly";
795
2200
  });
796
2201
  readonly connection: {
2202
+ readonly?: "__readonly";
797
2203
  lastAttempts?: Date;
798
2204
  nbFail?: number;
799
2205
  };
@@ -811,6 +2217,17 @@ export default class {
811
2217
  campaign?: string;
812
2218
  };
813
2219
  };
2220
+ readonly hasOtp: (false & {
2221
+ readonly?: "__readonly";
2222
+ }) | (true & {
2223
+ readonly?: "__readonly";
2224
+ });
2225
+ readonly createdAt: Date & {
2226
+ readonly?: "__readonly";
2227
+ };
2228
+ readonly updatedAt: Date & {
2229
+ readonly?: "__readonly";
2230
+ };
814
2231
  };
815
2232
  }>>;
816
2233
  };