@rlvt/entity-manager-openapi-client 0.0.0-caecf55 → 0.0.0-ccaf458

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
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,13 +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;
27
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
+ };
28
213
  get Company(): {
29
- getDefaults: (params: {}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
214
+ getDefaults: (options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
30
215
  status: "success";
31
216
  program: string;
32
217
  version: string;
@@ -38,7 +223,7 @@ export default class {
38
223
  resourceGroupIds: string[];
39
224
  };
40
225
  }>>;
41
- setDefaults: (params: {}, data: {
226
+ setDefaults: (data: {
42
227
  roleId?: string;
43
228
  resourceGroupIds?: string[];
44
229
  }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
@@ -52,9 +237,38 @@ export default class {
52
237
  readonly id: string & {
53
238
  readonly?: "__readonly";
54
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";
269
+ };
55
270
  defaultRoleId: string;
56
271
  defaultResourceGroupIds: string[];
57
- name: string;
58
272
  address?: {
59
273
  line1?: string;
60
274
  line2?: string;
@@ -66,6 +280,237 @@ export default class {
66
280
  name?: string;
67
281
  email?: string;
68
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
+ };
69
514
  plan: {
70
515
  name?: string;
71
516
  quota: number;
@@ -85,6 +530,234 @@ export default class {
85
530
  timeLockAfterNextAttempts?: number;
86
531
  infiniteTimeLock?: boolean;
87
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
+ };
88
761
  custom?: {
89
762
  colors?: string[];
90
763
  };
@@ -97,10 +770,283 @@ export default class {
97
770
  add_cart: string;
98
771
  purchase: string;
99
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
+ };
100
811
  disabled: boolean;
101
812
  meta: {
102
- 'email-token'?: string;
103
- 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;
104
1050
  };
105
1051
  };
106
1052
  }>>;
@@ -109,7 +1055,7 @@ export default class {
109
1055
  list: (params: {
110
1056
  page?: number;
111
1057
  perPage?: number;
112
- state?: Types.InvitationState;
1058
+ state?: InvitationState;
113
1059
  }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
114
1060
  paginationCount: number;
115
1061
  paginationPage: number;
@@ -121,23 +1067,23 @@ export default class {
121
1067
  code?: number;
122
1068
  message: string;
123
1069
  data: {
124
- readonly roleId: string & {
1070
+ readonly companyId: string & {
125
1071
  readonly?: "__readonly";
126
1072
  };
127
- readonly resourceGroupIds: string[];
128
- readonly companyId: string & {
1073
+ readonly roleId: string & {
129
1074
  readonly?: "__readonly";
130
1075
  };
1076
+ readonly resourceGroupIds: string[];
131
1077
  readonly id: string & {
132
1078
  readonly?: "__readonly";
133
1079
  };
1080
+ state: InvitationState;
134
1081
  email: string;
135
1082
  createdAt: Date;
136
1083
  usedAt?: Date;
137
- state: Types.InvitationState;
138
1084
  }[];
139
1085
  }>>;
140
- create: (params: {}, data: {
1086
+ create: (data: {
141
1087
  email: string;
142
1088
  resourceGroupIds?: string[];
143
1089
  roleId?: string;
@@ -149,20 +1095,20 @@ export default class {
149
1095
  code?: number;
150
1096
  message: string;
151
1097
  data: {
152
- readonly roleId: string & {
1098
+ readonly companyId: string & {
153
1099
  readonly?: "__readonly";
154
1100
  };
155
- readonly resourceGroupIds: string[];
156
- readonly companyId: string & {
1101
+ readonly roleId: string & {
157
1102
  readonly?: "__readonly";
158
1103
  };
1104
+ readonly resourceGroupIds: string[];
159
1105
  readonly id: string & {
160
1106
  readonly?: "__readonly";
161
1107
  };
1108
+ state: InvitationState;
162
1109
  email: string;
163
1110
  createdAt: Date;
164
1111
  usedAt?: Date;
165
- state: Types.InvitationState;
166
1112
  };
167
1113
  }>>;
168
1114
  use: (params: {
@@ -188,25 +1134,25 @@ export default class {
188
1134
  code?: number;
189
1135
  message: string;
190
1136
  data: {
191
- readonly roleId: string & {
1137
+ readonly companyId: string & {
192
1138
  readonly?: "__readonly";
193
1139
  };
194
- readonly resourceGroupIds: string[];
195
- readonly companyId: string & {
1140
+ readonly roleId: string & {
196
1141
  readonly?: "__readonly";
197
1142
  };
1143
+ readonly resourceGroupIds: string[];
198
1144
  readonly id: string & {
199
1145
  readonly?: "__readonly";
200
1146
  };
1147
+ state: InvitationState;
201
1148
  email: string;
202
1149
  createdAt: Date;
203
1150
  usedAt?: Date;
204
- state: Types.InvitationState;
205
1151
  };
206
1152
  }>>;
207
1153
  };
208
1154
  get ResourceGroup(): {
209
- list: (params: {}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
1155
+ list: (options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
210
1156
  status: "success";
211
1157
  program: string;
212
1158
  version: string;
@@ -226,7 +1172,7 @@ export default class {
226
1172
  usersCount: number;
227
1173
  })[];
228
1174
  }>>;
229
- create: (params: {}, data: {
1175
+ create: (data: {
230
1176
  name: string;
231
1177
  color?: string;
232
1178
  }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
@@ -283,7 +1229,7 @@ export default class {
283
1229
  }>>;
284
1230
  };
285
1231
  get Role(): {
286
- list: (params: {}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
1232
+ list: (options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
287
1233
  status: "success";
288
1234
  program: string;
289
1235
  version: string;
@@ -299,37 +1245,37 @@ export default class {
299
1245
  };
300
1246
  name: string;
301
1247
  rules: {
1248
+ action: "create" | "read" | "update" | "delete" | "access";
302
1249
  fields?: string[];
303
1250
  conditions?: {
304
1251
  [x: string]: any;
305
1252
  };
306
1253
  inverted?: boolean;
307
1254
  reason?: string;
308
- action: "create" | "read" | "update" | "delete" | "access";
309
1255
  subject: "Company" | "Block" | "Campaign" | "BranchGroup" | "Datasource" | "OAuthClient" | "Statistics" | "BlockContent" | "User" | "Billing" | "Role" | "ResourceGroup" | "Invitation";
310
- mustMatch?: ("roleId" | "resourceGroupIds" | "companyId" | "id" | {
1256
+ mustMatch?: ("companyId" | "roleId" | "resourceGroupIds" | "id" | {
311
1257
  field: string;
312
- value: "roleId" | "resourceGroupIds" | "companyId" | "id";
1258
+ value: "companyId" | "roleId" | "resourceGroupIds" | "id";
313
1259
  })[];
314
1260
  }[];
315
1261
  } & {
316
1262
  usersCount: number;
317
1263
  })[];
318
1264
  }>>;
319
- create: (params: {}, data: {
1265
+ create: (data: {
320
1266
  name: string;
321
1267
  rules: {
1268
+ action: "create" | "read" | "update" | "delete" | "access";
322
1269
  fields?: string[];
323
1270
  conditions?: {
324
1271
  [x: string]: any;
325
1272
  };
326
1273
  inverted?: boolean;
327
1274
  reason?: string;
328
- action: "create" | "read" | "update" | "delete" | "access";
329
1275
  subject: "Company" | "Block" | "Campaign" | "BranchGroup" | "Datasource" | "OAuthClient" | "Statistics" | "BlockContent" | "User" | "Billing" | "Role" | "ResourceGroup" | "Invitation";
330
- mustMatch?: ("roleId" | "resourceGroupIds" | "companyId" | "id" | {
1276
+ mustMatch?: ("companyId" | "roleId" | "resourceGroupIds" | "id" | {
331
1277
  field: string;
332
- value: "roleId" | "resourceGroupIds" | "companyId" | "id";
1278
+ value: "companyId" | "roleId" | "resourceGroupIds" | "id";
333
1279
  })[];
334
1280
  }[];
335
1281
  }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
@@ -348,17 +1294,17 @@ export default class {
348
1294
  };
349
1295
  name: string;
350
1296
  rules: {
1297
+ action: "create" | "read" | "update" | "delete" | "access";
351
1298
  fields?: string[];
352
1299
  conditions?: {
353
1300
  [x: string]: any;
354
1301
  };
355
1302
  inverted?: boolean;
356
1303
  reason?: string;
357
- action: "create" | "read" | "update" | "delete" | "access";
358
1304
  subject: "Company" | "Block" | "Campaign" | "BranchGroup" | "Datasource" | "OAuthClient" | "Statistics" | "BlockContent" | "User" | "Billing" | "Role" | "ResourceGroup" | "Invitation";
359
- mustMatch?: ("roleId" | "resourceGroupIds" | "companyId" | "id" | {
1305
+ mustMatch?: ("companyId" | "roleId" | "resourceGroupIds" | "id" | {
360
1306
  field: string;
361
- value: "roleId" | "resourceGroupIds" | "companyId" | "id";
1307
+ value: "companyId" | "roleId" | "resourceGroupIds" | "id";
362
1308
  })[];
363
1309
  }[];
364
1310
  };
@@ -368,17 +1314,17 @@ export default class {
368
1314
  }, data: {
369
1315
  name?: string;
370
1316
  rules?: {
1317
+ action: "create" | "read" | "update" | "delete" | "access";
371
1318
  fields?: string[];
372
1319
  conditions?: {
373
1320
  [x: string]: any;
374
1321
  };
375
1322
  inverted?: boolean;
376
1323
  reason?: string;
377
- action: "create" | "read" | "update" | "delete" | "access";
378
1324
  subject: "Company" | "Block" | "Campaign" | "BranchGroup" | "Datasource" | "OAuthClient" | "Statistics" | "BlockContent" | "User" | "Billing" | "Role" | "ResourceGroup" | "Invitation";
379
- mustMatch?: ("roleId" | "resourceGroupIds" | "companyId" | "id" | {
1325
+ mustMatch?: ("companyId" | "roleId" | "resourceGroupIds" | "id" | {
380
1326
  field: string;
381
- value: "roleId" | "resourceGroupIds" | "companyId" | "id";
1327
+ value: "companyId" | "roleId" | "resourceGroupIds" | "id";
382
1328
  })[];
383
1329
  }[];
384
1330
  }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
@@ -397,17 +1343,17 @@ export default class {
397
1343
  };
398
1344
  name: string;
399
1345
  rules: {
1346
+ action: "create" | "read" | "update" | "delete" | "access";
400
1347
  fields?: string[];
401
1348
  conditions?: {
402
1349
  [x: string]: any;
403
1350
  };
404
1351
  inverted?: boolean;
405
1352
  reason?: string;
406
- action: "create" | "read" | "update" | "delete" | "access";
407
1353
  subject: "Company" | "Block" | "Campaign" | "BranchGroup" | "Datasource" | "OAuthClient" | "Statistics" | "BlockContent" | "User" | "Billing" | "Role" | "ResourceGroup" | "Invitation";
408
- mustMatch?: ("roleId" | "resourceGroupIds" | "companyId" | "id" | {
1354
+ mustMatch?: ("companyId" | "roleId" | "resourceGroupIds" | "id" | {
409
1355
  field: string;
410
- value: "roleId" | "resourceGroupIds" | "companyId" | "id";
1356
+ value: "companyId" | "roleId" | "resourceGroupIds" | "id";
411
1357
  })[];
412
1358
  }[];
413
1359
  };
@@ -439,13 +1385,13 @@ export default class {
439
1385
  code?: number;
440
1386
  message: string;
441
1387
  data: {
442
- readonly roleId: string & {
1388
+ readonly companyId: string & {
443
1389
  readonly?: "__readonly";
444
1390
  };
445
- readonly resourceGroupIds: string[];
446
- readonly companyId: string & {
1391
+ readonly roleId: string & {
447
1392
  readonly?: "__readonly";
448
1393
  };
1394
+ readonly resourceGroupIds: string[];
449
1395
  readonly id: string & {
450
1396
  readonly?: "__readonly";
451
1397
  };
@@ -455,12 +1401,6 @@ export default class {
455
1401
  readonly?: "__readonly";
456
1402
  });
457
1403
  email: string;
458
- readonly createdAt: Date & {
459
- readonly?: "__readonly";
460
- };
461
- readonly updatedAt: Date & {
462
- readonly?: "__readonly";
463
- };
464
1404
  readonly lastPasswordUpdate: Date & {
465
1405
  readonly?: "__readonly";
466
1406
  };
@@ -488,9 +1428,20 @@ export default class {
488
1428
  campaign?: string;
489
1429
  };
490
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
+ };
491
1442
  }[];
492
1443
  }>>;
493
- create: (params: {}, data: {
1444
+ create: (data: {
494
1445
  invitationId: string;
495
1446
  profile: {
496
1447
  firstname?: string;
@@ -515,13 +1466,353 @@ export default class {
515
1466
  code?: number;
516
1467
  message: string;
517
1468
  data: {
518
- readonly roleId: string & {
519
- readonly?: "__readonly";
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
+ };
520
1524
  };
521
- 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: {
522
1809
  readonly companyId: string & {
523
1810
  readonly?: "__readonly";
524
1811
  };
1812
+ readonly roleId: string & {
1813
+ readonly?: "__readonly";
1814
+ };
1815
+ readonly resourceGroupIds: string[];
525
1816
  readonly id: string & {
526
1817
  readonly?: "__readonly";
527
1818
  };
@@ -531,12 +1822,6 @@ export default class {
531
1822
  readonly?: "__readonly";
532
1823
  });
533
1824
  email: string;
534
- readonly createdAt: Date & {
535
- readonly?: "__readonly";
536
- };
537
- readonly updatedAt: Date & {
538
- readonly?: "__readonly";
539
- };
540
1825
  readonly lastPasswordUpdate: Date & {
541
1826
  readonly?: "__readonly";
542
1827
  };
@@ -564,14 +1849,33 @@ export default class {
564
1849
  campaign?: string;
565
1850
  };
566
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
+ };
567
1863
  };
568
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
+ }>>;
569
1876
  update: (params: {
570
1877
  id: string;
571
1878
  }, data: {
572
- password?: string & {
573
- writeonly?: "__writeonly";
574
- };
575
1879
  email?: string;
576
1880
  profile?: {
577
1881
  firstname?: string;
@@ -595,13 +1899,13 @@ export default class {
595
1899
  code?: number;
596
1900
  message: string;
597
1901
  data: {
598
- readonly roleId: string & {
1902
+ readonly companyId: string & {
599
1903
  readonly?: "__readonly";
600
1904
  };
601
- readonly resourceGroupIds: string[];
602
- readonly companyId: string & {
1905
+ readonly roleId: string & {
603
1906
  readonly?: "__readonly";
604
1907
  };
1908
+ readonly resourceGroupIds: string[];
605
1909
  readonly id: string & {
606
1910
  readonly?: "__readonly";
607
1911
  };
@@ -611,12 +1915,6 @@ export default class {
611
1915
  readonly?: "__readonly";
612
1916
  });
613
1917
  email: string;
614
- readonly createdAt: Date & {
615
- readonly?: "__readonly";
616
- };
617
- readonly updatedAt: Date & {
618
- readonly?: "__readonly";
619
- };
620
1918
  readonly lastPasswordUpdate: Date & {
621
1919
  readonly?: "__readonly";
622
1920
  };
@@ -644,6 +1942,17 @@ export default class {
644
1942
  campaign?: string;
645
1943
  };
646
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
+ };
647
1956
  };
648
1957
  }>>;
649
1958
  delete: (params: {
@@ -656,13 +1965,13 @@ export default class {
656
1965
  code?: number;
657
1966
  message: string;
658
1967
  data: {
659
- readonly roleId: string & {
1968
+ readonly companyId: string & {
660
1969
  readonly?: "__readonly";
661
1970
  };
662
- readonly resourceGroupIds: string[];
663
- readonly companyId: string & {
1971
+ readonly roleId: string & {
664
1972
  readonly?: "__readonly";
665
1973
  };
1974
+ readonly resourceGroupIds: string[];
666
1975
  readonly id: string & {
667
1976
  readonly?: "__readonly";
668
1977
  };
@@ -672,12 +1981,6 @@ export default class {
672
1981
  readonly?: "__readonly";
673
1982
  });
674
1983
  email: string;
675
- readonly createdAt: Date & {
676
- readonly?: "__readonly";
677
- };
678
- readonly updatedAt: Date & {
679
- readonly?: "__readonly";
680
- };
681
1984
  readonly lastPasswordUpdate: Date & {
682
1985
  readonly?: "__readonly";
683
1986
  };
@@ -705,6 +2008,17 @@ export default class {
705
2008
  campaign?: string;
706
2009
  };
707
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
+ };
708
2022
  };
709
2023
  }>>;
710
2024
  setRole: (params: {
@@ -719,13 +2033,13 @@ export default class {
719
2033
  code?: number;
720
2034
  message: string;
721
2035
  data: {
722
- readonly roleId: string & {
2036
+ readonly companyId: string & {
723
2037
  readonly?: "__readonly";
724
2038
  };
725
- readonly resourceGroupIds: string[];
726
- readonly companyId: string & {
2039
+ readonly roleId: string & {
727
2040
  readonly?: "__readonly";
728
2041
  };
2042
+ readonly resourceGroupIds: string[];
729
2043
  readonly id: string & {
730
2044
  readonly?: "__readonly";
731
2045
  };
@@ -735,12 +2049,6 @@ export default class {
735
2049
  readonly?: "__readonly";
736
2050
  });
737
2051
  email: string;
738
- readonly createdAt: Date & {
739
- readonly?: "__readonly";
740
- };
741
- readonly updatedAt: Date & {
742
- readonly?: "__readonly";
743
- };
744
2052
  readonly lastPasswordUpdate: Date & {
745
2053
  readonly?: "__readonly";
746
2054
  };
@@ -768,6 +2076,17 @@ export default class {
768
2076
  campaign?: string;
769
2077
  };
770
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
+ };
771
2090
  };
772
2091
  }>>;
773
2092
  setResourceGroups: (params: {
@@ -782,13 +2101,13 @@ export default class {
782
2101
  code?: number;
783
2102
  message: string;
784
2103
  data: {
785
- readonly roleId: string & {
2104
+ readonly companyId: string & {
786
2105
  readonly?: "__readonly";
787
2106
  };
788
- readonly resourceGroupIds: string[];
789
- readonly companyId: string & {
2107
+ readonly roleId: string & {
790
2108
  readonly?: "__readonly";
791
2109
  };
2110
+ readonly resourceGroupIds: string[];
792
2111
  readonly id: string & {
793
2112
  readonly?: "__readonly";
794
2113
  };
@@ -798,12 +2117,6 @@ export default class {
798
2117
  readonly?: "__readonly";
799
2118
  });
800
2119
  email: string;
801
- readonly createdAt: Date & {
802
- readonly?: "__readonly";
803
- };
804
- readonly updatedAt: Date & {
805
- readonly?: "__readonly";
806
- };
807
2120
  readonly lastPasswordUpdate: Date & {
808
2121
  readonly?: "__readonly";
809
2122
  };
@@ -831,6 +2144,17 @@ export default class {
831
2144
  campaign?: string;
832
2145
  };
833
2146
  };
2147
+ readonly hasOtp: (false & {
2148
+ readonly?: "__readonly";
2149
+ }) | (true & {
2150
+ readonly?: "__readonly";
2151
+ });
2152
+ readonly createdAt: Date & {
2153
+ readonly?: "__readonly";
2154
+ };
2155
+ readonly updatedAt: Date & {
2156
+ readonly?: "__readonly";
2157
+ };
834
2158
  };
835
2159
  }>>;
836
2160
  setOtp: (params: {
@@ -850,13 +2174,13 @@ export default class {
850
2174
  code?: number;
851
2175
  message: string;
852
2176
  data: {
853
- readonly roleId: string & {
2177
+ readonly companyId: string & {
854
2178
  readonly?: "__readonly";
855
2179
  };
856
- readonly resourceGroupIds: string[];
857
- readonly companyId: string & {
2180
+ readonly roleId: string & {
858
2181
  readonly?: "__readonly";
859
2182
  };
2183
+ readonly resourceGroupIds: string[];
860
2184
  readonly id: string & {
861
2185
  readonly?: "__readonly";
862
2186
  };
@@ -866,12 +2190,6 @@ export default class {
866
2190
  readonly?: "__readonly";
867
2191
  });
868
2192
  email: string;
869
- readonly createdAt: Date & {
870
- readonly?: "__readonly";
871
- };
872
- readonly updatedAt: Date & {
873
- readonly?: "__readonly";
874
- };
875
2193
  readonly lastPasswordUpdate: Date & {
876
2194
  readonly?: "__readonly";
877
2195
  };
@@ -899,6 +2217,17 @@ export default class {
899
2217
  campaign?: string;
900
2218
  };
901
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
+ };
902
2231
  };
903
2232
  }>>;
904
2233
  };