@rlvt/entity-manager-openapi-client 0.0.0-6f5de79 → 0.0.0-87d3b39

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,21 @@
1
1
  import { AxiosInstance, AxiosRequestConfig } from "axios";
2
- import * as Types from "./definitions";
3
- export * from "./definitions";
2
+ import type { Providers, User, Partial__roleId_string_resourceGroupIds_string_Array___, Company, 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";
3
+ export type { Providers, User, Partial__roleId_string_resourceGroupIds_string_Array___, Company, 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 };
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;
9
19
  private listInvitation;
10
20
  private createInvitation;
11
21
  private useInvitation;
@@ -20,12 +30,187 @@ export default class {
20
30
  private deleteRole;
21
31
  private listUser;
22
32
  private createUser;
33
+ private updatePasswordUser;
34
+ private resetPasswordUser;
23
35
  private updateUser;
24
36
  private deleteUser;
25
37
  private setRoleUser;
26
38
  private setResourceGroupsUser;
39
+ private setOtpUser;
40
+ get Authentification(): {
41
+ oauthShopifyRedirect: (params: {
42
+ shop: string;
43
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
44
+ status: "success";
45
+ program: string;
46
+ version: string;
47
+ datetime: string;
48
+ code?: number;
49
+ message: string;
50
+ data: {};
51
+ }>>;
52
+ oauthRedirect: (params: {
53
+ provider: Providers;
54
+ plan?: string;
55
+ companyName?: string;
56
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
57
+ status: "success";
58
+ program: string;
59
+ version: string;
60
+ datetime: string;
61
+ code?: number;
62
+ message: string;
63
+ data: {};
64
+ }>>;
65
+ oauthCallback: (params: {
66
+ provider: Providers;
67
+ code: string;
68
+ state: string;
69
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
70
+ status: "success";
71
+ program: string;
72
+ version: string;
73
+ datetime: string;
74
+ code?: number;
75
+ message: string;
76
+ data: {};
77
+ }>>;
78
+ ssoRedirect: (params: {
79
+ domain: string;
80
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
81
+ status: "success";
82
+ program: string;
83
+ version: string;
84
+ datetime: string;
85
+ code?: number;
86
+ message: string;
87
+ data: {};
88
+ }>>;
89
+ ssoCallback: (params: {
90
+ company: string;
91
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
92
+ status: "success";
93
+ program: string;
94
+ version: string;
95
+ datetime: string;
96
+ code?: number;
97
+ message: string;
98
+ data: {};
99
+ }>>;
100
+ ssoMetadata: (params: {
101
+ company: string;
102
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
103
+ status: "success";
104
+ program: string;
105
+ version: string;
106
+ datetime: string;
107
+ code?: number;
108
+ message: string;
109
+ data: string;
110
+ }>>;
111
+ getToken: (data: {
112
+ client_id: string;
113
+ grant_type: "password";
114
+ username: string;
115
+ password: string;
116
+ "x-otp-code"?: string;
117
+ } | {
118
+ client_id: string;
119
+ grant_type: "refresh_token";
120
+ refresh_token: string;
121
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
122
+ access_token: string;
123
+ expires_in: number;
124
+ refresh_token?: string;
125
+ token_type: "Bearer";
126
+ }>>;
127
+ describeToken: (params: {
128
+ token: string;
129
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
130
+ status: "success";
131
+ program: string;
132
+ version: string;
133
+ datetime: string;
134
+ code?: number;
135
+ message: string;
136
+ data: {
137
+ isValid: boolean;
138
+ revokedAt: Date;
139
+ expiresAt: Date;
140
+ user: {
141
+ readonly companyId: string & {
142
+ readonly?: "__readonly";
143
+ };
144
+ readonly roleId: string & {
145
+ readonly?: "__readonly";
146
+ };
147
+ readonly resourceGroupIds: string[];
148
+ readonly id: string & {
149
+ readonly?: "__readonly";
150
+ };
151
+ readonly disabled: (false & {
152
+ readonly?: "__readonly";
153
+ }) | (true & {
154
+ readonly?: "__readonly";
155
+ });
156
+ email: string;
157
+ readonly lastPasswordUpdate: Date & {
158
+ readonly?: "__readonly";
159
+ };
160
+ readonly mustUpdatePassword: (false & {
161
+ readonly?: "__readonly";
162
+ }) | (true & {
163
+ readonly?: "__readonly";
164
+ });
165
+ readonly connection: {
166
+ readonly?: "__readonly";
167
+ lastAttempts?: Date;
168
+ nbFail?: number;
169
+ };
170
+ profile?: {
171
+ firstname?: string;
172
+ lastname?: string;
173
+ jobtitle?: string;
174
+ phone?: string;
175
+ preferredLang?: string;
176
+ preferredRecipientId?: string;
177
+ preferredMessageId?: string;
178
+ preferredUtm?: {
179
+ medium?: string;
180
+ source?: string;
181
+ campaign?: string;
182
+ };
183
+ };
184
+ readonly hasOtp: (false & {
185
+ readonly?: "__readonly";
186
+ }) | (true & {
187
+ readonly?: "__readonly";
188
+ });
189
+ readonly createdAt: Date & {
190
+ readonly?: "__readonly";
191
+ };
192
+ readonly updatedAt: Date & {
193
+ readonly?: "__readonly";
194
+ };
195
+ };
196
+ };
197
+ }>>;
198
+ revokeToken: (params: {
199
+ token: string;
200
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
201
+ status: "success";
202
+ program: string;
203
+ version: string;
204
+ datetime: string;
205
+ code?: number;
206
+ message: string;
207
+ data: {
208
+ revoked: boolean;
209
+ };
210
+ }>>;
211
+ };
27
212
  get Company(): {
28
- getDefaults: (params: {}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
213
+ getDefaults: (options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
29
214
  status: "success";
30
215
  program: string;
31
216
  version: string;
@@ -37,7 +222,7 @@ export default class {
37
222
  resourceGroupIds: string[];
38
223
  };
39
224
  }>>;
40
- setDefaults: (params: {}, data: {
225
+ setDefaults: (data: {
41
226
  roleId?: string;
42
227
  resourceGroupIds?: string[];
43
228
  }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
@@ -48,9 +233,38 @@ export default class {
48
233
  code?: number;
49
234
  message: string;
50
235
  data: {
236
+ readonly id: string & {
237
+ readonly?: "__readonly";
238
+ };
239
+ plan: {
240
+ name?: string;
241
+ quota: number;
242
+ startDate: Date;
243
+ endDate: Date;
244
+ };
245
+ password?: {
246
+ passwordDuration?: number;
247
+ nbSpCharacter?: number;
248
+ nbIsNotAlphabeticCharacter?: number;
249
+ nbNumberCharacter?: number;
250
+ nbLetterInLowercase?: number;
251
+ nbLetterInUppercase?: number;
252
+ nbCharacter?: number;
253
+ nbAttempts?: number;
254
+ timeEachAttempts?: number;
255
+ timeLockAfterNextAttempts?: number;
256
+ infiniteTimeLock?: boolean;
257
+ };
258
+ disabled: boolean;
259
+ name: string;
260
+ readonly createdAt: Date & {
261
+ readonly?: "__readonly";
262
+ };
263
+ readonly updatedAt: Date & {
264
+ readonly?: "__readonly";
265
+ };
51
266
  defaultRoleId: string;
52
267
  defaultResourceGroupIds: string[];
53
- name: string;
54
268
  address?: {
55
269
  line1?: string;
56
270
  line2?: string;
@@ -62,6 +276,235 @@ export default class {
62
276
  name?: string;
63
277
  email?: string;
64
278
  };
279
+ securityPolicy: {
280
+ password: {
281
+ rules: {
282
+ type: "special-characters" | "numbers" | "characters" | "uppercases" | "lowercases";
283
+ options: {
284
+ minimum?: number;
285
+ maximum?: number;
286
+ };
287
+ }[];
288
+ duration: number;
289
+ attempts: {
290
+ maximum: number;
291
+ lockDuration: number;
292
+ };
293
+ };
294
+ };
295
+ sso?: {
296
+ domains: string[];
297
+ metadata: string;
298
+ emailProperty: string[] | "nameID"[];
299
+ mode: "invitation" | "create";
300
+ readonly identityProvider: {
301
+ readonly?: "__readonly";
302
+ entityMeta: {
303
+ meta: any;
304
+ xmlString: string;
305
+ };
306
+ entitySetting: {
307
+ metadata?: string | {
308
+ data: number[];
309
+ type: "Buffer";
310
+ };
311
+ entityID?: string;
312
+ authnRequestsSigned?: boolean;
313
+ wantAssertionsSigned?: boolean;
314
+ wantMessageSigned?: boolean;
315
+ wantLogoutResponseSigned?: boolean;
316
+ wantLogoutRequestSigned?: boolean;
317
+ privateKey?: string | {
318
+ data: number[];
319
+ type: "Buffer";
320
+ };
321
+ privateKeyPass?: string;
322
+ isAssertionEncrypted?: boolean;
323
+ requestSignatureAlgorithm?: string;
324
+ encPrivateKey?: string | {
325
+ data: number[];
326
+ type: "Buffer";
327
+ };
328
+ encPrivateKeyPass?: string | (import("./definitions").Buffer & string);
329
+ assertionConsumerService?: {
330
+ isDefault?: boolean;
331
+ Binding: string;
332
+ Location: string;
333
+ }[];
334
+ singleLogoutService?: {
335
+ isDefault?: boolean;
336
+ Binding: string;
337
+ Location: string;
338
+ }[];
339
+ signatureConfig?: {
340
+ prefix?: string;
341
+ location?: {
342
+ reference?: string;
343
+ action?: "append" | "prepend" | "before" | "after";
344
+ };
345
+ };
346
+ loginRequestTemplate?: {
347
+ context?: string;
348
+ };
349
+ logoutRequestTemplate?: {
350
+ context?: string;
351
+ };
352
+ signingCert?: string | {
353
+ data: number[];
354
+ type: "Buffer";
355
+ };
356
+ encryptCert?: string | {
357
+ data: number[];
358
+ type: "Buffer";
359
+ };
360
+ transformationAlgorithms?: string[];
361
+ nameIDFormat?: string[];
362
+ allowCreate?: boolean;
363
+ relayState?: string;
364
+ clockDrifts?: number[];
365
+ loginResponseTemplate?: {
366
+ attributes?: {
367
+ name: string;
368
+ nameFormat: string;
369
+ valueXsiType: string;
370
+ valueTag: string;
371
+ valueXmlnsXs?: string;
372
+ valueXmlnsXsi?: string;
373
+ }[];
374
+ context: string;
375
+ };
376
+ generateID?: {};
377
+ singleSignOnService?: {
378
+ isDefault?: boolean;
379
+ Binding: string;
380
+ Location: string;
381
+ }[];
382
+ messageSigningOrder?: string;
383
+ wantAuthnRequestsSigned?: boolean;
384
+ wantLogoutRequestSignedResponseSigned?: boolean;
385
+ tagPrefix?: {};
386
+ };
387
+ entityType: string;
388
+ };
389
+ readonly serviceProvider: {
390
+ readonly?: "__readonly";
391
+ entityMeta: {
392
+ meta: any;
393
+ xmlString: string;
394
+ };
395
+ entitySetting: {
396
+ metadata?: string | {
397
+ data: number[];
398
+ type: "Buffer";
399
+ };
400
+ entityID?: string;
401
+ authnRequestsSigned?: boolean;
402
+ wantAssertionsSigned?: boolean;
403
+ wantMessageSigned?: boolean;
404
+ wantLogoutResponseSigned?: boolean;
405
+ wantLogoutRequestSigned?: boolean;
406
+ privateKey?: string | {
407
+ data: number[];
408
+ type: "Buffer";
409
+ };
410
+ privateKeyPass?: string;
411
+ isAssertionEncrypted?: boolean;
412
+ requestSignatureAlgorithm?: string;
413
+ encPrivateKey?: string | {
414
+ data: number[];
415
+ type: "Buffer";
416
+ };
417
+ encPrivateKeyPass?: string | (import("./definitions").Buffer & string);
418
+ assertionConsumerService?: {
419
+ isDefault?: boolean;
420
+ Binding: string;
421
+ Location: string;
422
+ }[];
423
+ singleLogoutService?: {
424
+ isDefault?: boolean;
425
+ Binding: string;
426
+ Location: string;
427
+ }[];
428
+ signatureConfig?: {
429
+ prefix?: string;
430
+ location?: {
431
+ reference?: string;
432
+ action?: "append" | "prepend" | "before" | "after";
433
+ };
434
+ };
435
+ loginRequestTemplate?: {
436
+ context?: string;
437
+ };
438
+ logoutRequestTemplate?: {
439
+ context?: string;
440
+ };
441
+ signingCert?: string | {
442
+ data: number[];
443
+ type: "Buffer";
444
+ };
445
+ encryptCert?: string | {
446
+ data: number[];
447
+ type: "Buffer";
448
+ };
449
+ transformationAlgorithms?: string[];
450
+ nameIDFormat?: string[];
451
+ allowCreate?: boolean;
452
+ relayState?: string;
453
+ clockDrifts?: number[];
454
+ loginResponseTemplate?: {
455
+ attributes?: {
456
+ name: string;
457
+ nameFormat: string;
458
+ valueXsiType: string;
459
+ valueTag: string;
460
+ valueXmlnsXs?: string;
461
+ valueXmlnsXsi?: string;
462
+ }[];
463
+ context: string;
464
+ };
465
+ generateID?: {};
466
+ singleSignOnService?: {
467
+ isDefault?: boolean;
468
+ Binding: string;
469
+ Location: string;
470
+ }[];
471
+ messageSigningOrder?: string;
472
+ wantAuthnRequestsSigned?: boolean;
473
+ wantLogoutRequestSignedResponseSigned?: boolean;
474
+ tagPrefix?: {};
475
+ };
476
+ entityType: string;
477
+ };
478
+ };
479
+ custom?: {
480
+ colors?: string[];
481
+ };
482
+ retention: number;
483
+ features: {};
484
+ events: {
485
+ product_page: string;
486
+ add_cart: string;
487
+ purchase: string;
488
+ };
489
+ meta: {
490
+ "email-token"?: string;
491
+ esp?: string;
492
+ };
493
+ };
494
+ }>>;
495
+ get: (params: {
496
+ id: string;
497
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
498
+ status: "success";
499
+ program: string;
500
+ version: string;
501
+ datetime: string;
502
+ code?: number;
503
+ message: string;
504
+ data: {
505
+ readonly id: string & {
506
+ readonly?: "__readonly";
507
+ };
65
508
  plan: {
66
509
  name?: string;
67
510
  quota: number;
@@ -81,18 +524,239 @@ export default class {
81
524
  timeLockAfterNextAttempts?: number;
82
525
  infiniteTimeLock?: boolean;
83
526
  };
527
+ disabled: boolean;
528
+ name: string;
529
+ readonly createdAt: Date & {
530
+ readonly?: "__readonly";
531
+ };
532
+ readonly updatedAt: Date & {
533
+ readonly?: "__readonly";
534
+ };
535
+ defaultRoleId: string;
536
+ defaultResourceGroupIds: string[];
537
+ address?: {
538
+ line1?: string;
539
+ line2?: string;
540
+ zipcode?: string;
541
+ city?: string;
542
+ country?: string;
543
+ };
544
+ contact?: {
545
+ name?: string;
546
+ email?: string;
547
+ };
548
+ securityPolicy: {
549
+ password: {
550
+ rules: {
551
+ type: "special-characters" | "numbers" | "characters" | "uppercases" | "lowercases";
552
+ options: {
553
+ minimum?: number;
554
+ maximum?: number;
555
+ };
556
+ }[];
557
+ duration: number;
558
+ attempts: {
559
+ maximum: number;
560
+ lockDuration: number;
561
+ };
562
+ };
563
+ };
564
+ sso?: {
565
+ domains: string[];
566
+ metadata: string;
567
+ emailProperty: string[] | "nameID"[];
568
+ mode: "invitation" | "create";
569
+ readonly identityProvider: {
570
+ readonly?: "__readonly";
571
+ entityMeta: {
572
+ meta: any;
573
+ xmlString: string;
574
+ };
575
+ entitySetting: {
576
+ metadata?: string | {
577
+ data: number[];
578
+ type: "Buffer";
579
+ };
580
+ entityID?: string;
581
+ authnRequestsSigned?: boolean;
582
+ wantAssertionsSigned?: boolean;
583
+ wantMessageSigned?: boolean;
584
+ wantLogoutResponseSigned?: boolean;
585
+ wantLogoutRequestSigned?: boolean;
586
+ privateKey?: string | {
587
+ data: number[];
588
+ type: "Buffer";
589
+ };
590
+ privateKeyPass?: string;
591
+ isAssertionEncrypted?: boolean;
592
+ requestSignatureAlgorithm?: string;
593
+ encPrivateKey?: string | {
594
+ data: number[];
595
+ type: "Buffer";
596
+ };
597
+ encPrivateKeyPass?: string | (import("./definitions").Buffer & string);
598
+ assertionConsumerService?: {
599
+ isDefault?: boolean;
600
+ Binding: string;
601
+ Location: string;
602
+ }[];
603
+ singleLogoutService?: {
604
+ isDefault?: boolean;
605
+ Binding: string;
606
+ Location: string;
607
+ }[];
608
+ signatureConfig?: {
609
+ prefix?: string;
610
+ location?: {
611
+ reference?: string;
612
+ action?: "append" | "prepend" | "before" | "after";
613
+ };
614
+ };
615
+ loginRequestTemplate?: {
616
+ context?: string;
617
+ };
618
+ logoutRequestTemplate?: {
619
+ context?: string;
620
+ };
621
+ signingCert?: string | {
622
+ data: number[];
623
+ type: "Buffer";
624
+ };
625
+ encryptCert?: string | {
626
+ data: number[];
627
+ type: "Buffer";
628
+ };
629
+ transformationAlgorithms?: string[];
630
+ nameIDFormat?: string[];
631
+ allowCreate?: boolean;
632
+ relayState?: string;
633
+ clockDrifts?: number[];
634
+ loginResponseTemplate?: {
635
+ attributes?: {
636
+ name: string;
637
+ nameFormat: string;
638
+ valueXsiType: string;
639
+ valueTag: string;
640
+ valueXmlnsXs?: string;
641
+ valueXmlnsXsi?: string;
642
+ }[];
643
+ context: string;
644
+ };
645
+ generateID?: {};
646
+ singleSignOnService?: {
647
+ isDefault?: boolean;
648
+ Binding: string;
649
+ Location: string;
650
+ }[];
651
+ messageSigningOrder?: string;
652
+ wantAuthnRequestsSigned?: boolean;
653
+ wantLogoutRequestSignedResponseSigned?: boolean;
654
+ tagPrefix?: {};
655
+ };
656
+ entityType: string;
657
+ };
658
+ readonly serviceProvider: {
659
+ readonly?: "__readonly";
660
+ entityMeta: {
661
+ meta: any;
662
+ xmlString: string;
663
+ };
664
+ entitySetting: {
665
+ metadata?: string | {
666
+ data: number[];
667
+ type: "Buffer";
668
+ };
669
+ entityID?: string;
670
+ authnRequestsSigned?: boolean;
671
+ wantAssertionsSigned?: boolean;
672
+ wantMessageSigned?: boolean;
673
+ wantLogoutResponseSigned?: boolean;
674
+ wantLogoutRequestSigned?: boolean;
675
+ privateKey?: string | {
676
+ data: number[];
677
+ type: "Buffer";
678
+ };
679
+ privateKeyPass?: string;
680
+ isAssertionEncrypted?: boolean;
681
+ requestSignatureAlgorithm?: string;
682
+ encPrivateKey?: string | {
683
+ data: number[];
684
+ type: "Buffer";
685
+ };
686
+ encPrivateKeyPass?: string | (import("./definitions").Buffer & string);
687
+ assertionConsumerService?: {
688
+ isDefault?: boolean;
689
+ Binding: string;
690
+ Location: string;
691
+ }[];
692
+ singleLogoutService?: {
693
+ isDefault?: boolean;
694
+ Binding: string;
695
+ Location: string;
696
+ }[];
697
+ signatureConfig?: {
698
+ prefix?: string;
699
+ location?: {
700
+ reference?: string;
701
+ action?: "append" | "prepend" | "before" | "after";
702
+ };
703
+ };
704
+ loginRequestTemplate?: {
705
+ context?: string;
706
+ };
707
+ logoutRequestTemplate?: {
708
+ context?: string;
709
+ };
710
+ signingCert?: string | {
711
+ data: number[];
712
+ type: "Buffer";
713
+ };
714
+ encryptCert?: string | {
715
+ data: number[];
716
+ type: "Buffer";
717
+ };
718
+ transformationAlgorithms?: string[];
719
+ nameIDFormat?: string[];
720
+ allowCreate?: boolean;
721
+ relayState?: string;
722
+ clockDrifts?: number[];
723
+ loginResponseTemplate?: {
724
+ attributes?: {
725
+ name: string;
726
+ nameFormat: string;
727
+ valueXsiType: string;
728
+ valueTag: string;
729
+ valueXmlnsXs?: string;
730
+ valueXmlnsXsi?: string;
731
+ }[];
732
+ context: string;
733
+ };
734
+ generateID?: {};
735
+ singleSignOnService?: {
736
+ isDefault?: boolean;
737
+ Binding: string;
738
+ Location: string;
739
+ }[];
740
+ messageSigningOrder?: string;
741
+ wantAuthnRequestsSigned?: boolean;
742
+ wantLogoutRequestSignedResponseSigned?: boolean;
743
+ tagPrefix?: {};
744
+ };
745
+ entityType: string;
746
+ };
747
+ };
84
748
  custom?: {
85
749
  colors?: string[];
86
750
  };
87
751
  retention: number;
752
+ features: {};
88
753
  events: {
89
754
  product_page: string;
90
755
  add_cart: string;
91
756
  purchase: string;
92
757
  };
93
- disabled: boolean;
94
758
  meta: {
95
- 'email-token'?: string;
759
+ "email-token"?: string;
96
760
  esp?: string;
97
761
  };
98
762
  };
@@ -102,7 +766,7 @@ export default class {
102
766
  list: (params: {
103
767
  page?: number;
104
768
  perPage?: number;
105
- state?: Types.InvitationState;
769
+ state?: InvitationState;
106
770
  }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
107
771
  paginationCount: number;
108
772
  paginationPage: number;
@@ -114,22 +778,23 @@ export default class {
114
778
  code?: number;
115
779
  message: string;
116
780
  data: {
117
- roleId?: {
118
- generationTime: number;
119
- };
120
- resourceGroupIds?: {
121
- generationTime: number;
122
- }[];
123
781
  readonly companyId: string & {
124
- readonly?: undefined;
782
+ readonly?: "__readonly";
783
+ };
784
+ readonly roleId: string & {
785
+ readonly?: "__readonly";
125
786
  };
787
+ readonly resourceGroupIds: string[];
788
+ readonly id: string & {
789
+ readonly?: "__readonly";
790
+ };
791
+ state: InvitationState;
126
792
  email: string;
127
793
  createdAt: Date;
128
794
  usedAt?: Date;
129
- state: Types.InvitationState;
130
795
  }[];
131
796
  }>>;
132
- create: (params: {}, data: {
797
+ create: (data: {
133
798
  email: string;
134
799
  resourceGroupIds?: string[];
135
800
  roleId?: string;
@@ -141,19 +806,20 @@ export default class {
141
806
  code?: number;
142
807
  message: string;
143
808
  data: {
144
- roleId?: {
145
- generationTime: number;
146
- };
147
- resourceGroupIds?: {
148
- generationTime: number;
149
- }[];
150
809
  readonly companyId: string & {
151
- readonly?: undefined;
810
+ readonly?: "__readonly";
152
811
  };
812
+ readonly roleId: string & {
813
+ readonly?: "__readonly";
814
+ };
815
+ readonly resourceGroupIds: string[];
816
+ readonly id: string & {
817
+ readonly?: "__readonly";
818
+ };
819
+ state: InvitationState;
153
820
  email: string;
154
821
  createdAt: Date;
155
822
  usedAt?: Date;
156
- state: Types.InvitationState;
157
823
  };
158
824
  }>>;
159
825
  use: (params: {
@@ -179,24 +845,25 @@ export default class {
179
845
  code?: number;
180
846
  message: string;
181
847
  data: {
182
- roleId?: {
183
- generationTime: number;
184
- };
185
- resourceGroupIds?: {
186
- generationTime: number;
187
- }[];
188
848
  readonly companyId: string & {
189
- readonly?: undefined;
849
+ readonly?: "__readonly";
850
+ };
851
+ readonly roleId: string & {
852
+ readonly?: "__readonly";
853
+ };
854
+ readonly resourceGroupIds: string[];
855
+ readonly id: string & {
856
+ readonly?: "__readonly";
190
857
  };
858
+ state: InvitationState;
191
859
  email: string;
192
860
  createdAt: Date;
193
861
  usedAt?: Date;
194
- state: Types.InvitationState;
195
862
  };
196
863
  }>>;
197
864
  };
198
865
  get ResourceGroup(): {
199
- list: (params: {}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
866
+ list: (options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
200
867
  status: "success";
201
868
  program: string;
202
869
  version: string;
@@ -205,10 +872,10 @@ export default class {
205
872
  message: string;
206
873
  data: ({
207
874
  readonly companyId: string & {
208
- readonly?: undefined;
875
+ readonly?: "__readonly";
209
876
  };
210
877
  readonly id: string & {
211
- readonly?: undefined;
878
+ readonly?: "__readonly";
212
879
  };
213
880
  name: string;
214
881
  color?: string;
@@ -216,7 +883,7 @@ export default class {
216
883
  usersCount: number;
217
884
  })[];
218
885
  }>>;
219
- create: (params: {}, data: {
886
+ create: (data: {
220
887
  name: string;
221
888
  color?: string;
222
889
  }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
@@ -228,10 +895,10 @@ export default class {
228
895
  message: string;
229
896
  data: {
230
897
  readonly companyId: string & {
231
- readonly?: undefined;
898
+ readonly?: "__readonly";
232
899
  };
233
900
  readonly id: string & {
234
- readonly?: undefined;
901
+ readonly?: "__readonly";
235
902
  };
236
903
  name: string;
237
904
  color?: string;
@@ -251,10 +918,10 @@ export default class {
251
918
  message: string;
252
919
  data: {
253
920
  readonly companyId: string & {
254
- readonly?: undefined;
921
+ readonly?: "__readonly";
255
922
  };
256
923
  readonly id: string & {
257
- readonly?: undefined;
924
+ readonly?: "__readonly";
258
925
  };
259
926
  name: string;
260
927
  color?: string;
@@ -273,7 +940,7 @@ export default class {
273
940
  }>>;
274
941
  };
275
942
  get Role(): {
276
- list: (params: {}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
943
+ list: (options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
277
944
  status: "success";
278
945
  program: string;
279
946
  version: string;
@@ -282,40 +949,40 @@ export default class {
282
949
  message: string;
283
950
  data: ({
284
951
  readonly companyId: string & {
285
- readonly?: undefined;
952
+ readonly?: "__readonly";
286
953
  };
287
954
  readonly id: string & {
288
- readonly?: undefined;
955
+ readonly?: "__readonly";
289
956
  };
290
957
  name: string;
291
958
  rules: {
959
+ action: "create" | "read" | "update" | "delete" | "access";
292
960
  fields?: string[];
293
- conditions?: never;
961
+ conditions?: {};
294
962
  inverted?: boolean;
295
963
  reason?: string;
296
- action: "create" | "read" | "update" | "delete" | "access";
297
964
  subject: "Company" | "Block" | "Campaign" | "BranchGroup" | "Datasource" | "OAuthClient" | "Statistics" | "BlockContent" | "User" | "Billing" | "Role" | "ResourceGroup" | "Invitation";
298
- mustMatch?: ("roleId" | "resourceGroupIds" | "companyId" | "id" | {
965
+ mustMatch?: ("companyId" | "roleId" | "resourceGroupIds" | "id" | {
299
966
  field: string;
300
- value: "roleId" | "resourceGroupIds" | "companyId" | "id";
967
+ value: "companyId" | "roleId" | "resourceGroupIds" | "id";
301
968
  })[];
302
969
  }[];
303
970
  } & {
304
971
  usersCount: number;
305
972
  })[];
306
973
  }>>;
307
- create: (params: {}, data: {
974
+ create: (data: {
308
975
  name: string;
309
976
  rules: {
977
+ action: "create" | "read" | "update" | "delete" | "access";
310
978
  fields?: string[];
311
- conditions?: never;
979
+ conditions?: {};
312
980
  inverted?: boolean;
313
981
  reason?: string;
314
- action: "create" | "read" | "update" | "delete" | "access";
315
982
  subject: "Company" | "Block" | "Campaign" | "BranchGroup" | "Datasource" | "OAuthClient" | "Statistics" | "BlockContent" | "User" | "Billing" | "Role" | "ResourceGroup" | "Invitation";
316
- mustMatch?: ("roleId" | "resourceGroupIds" | "companyId" | "id" | {
983
+ mustMatch?: ("companyId" | "roleId" | "resourceGroupIds" | "id" | {
317
984
  field: string;
318
- value: "roleId" | "resourceGroupIds" | "companyId" | "id";
985
+ value: "companyId" | "roleId" | "resourceGroupIds" | "id";
319
986
  })[];
320
987
  }[];
321
988
  }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
@@ -327,22 +994,22 @@ export default class {
327
994
  message: string;
328
995
  data: {
329
996
  readonly companyId: string & {
330
- readonly?: undefined;
997
+ readonly?: "__readonly";
331
998
  };
332
999
  readonly id: string & {
333
- readonly?: undefined;
1000
+ readonly?: "__readonly";
334
1001
  };
335
1002
  name: string;
336
1003
  rules: {
1004
+ action: "create" | "read" | "update" | "delete" | "access";
337
1005
  fields?: string[];
338
- conditions?: never;
1006
+ conditions?: {};
339
1007
  inverted?: boolean;
340
1008
  reason?: string;
341
- action: "create" | "read" | "update" | "delete" | "access";
342
1009
  subject: "Company" | "Block" | "Campaign" | "BranchGroup" | "Datasource" | "OAuthClient" | "Statistics" | "BlockContent" | "User" | "Billing" | "Role" | "ResourceGroup" | "Invitation";
343
- mustMatch?: ("roleId" | "resourceGroupIds" | "companyId" | "id" | {
1010
+ mustMatch?: ("companyId" | "roleId" | "resourceGroupIds" | "id" | {
344
1011
  field: string;
345
- value: "roleId" | "resourceGroupIds" | "companyId" | "id";
1012
+ value: "companyId" | "roleId" | "resourceGroupIds" | "id";
346
1013
  })[];
347
1014
  }[];
348
1015
  };
@@ -352,15 +1019,15 @@ export default class {
352
1019
  }, data: {
353
1020
  name?: string;
354
1021
  rules?: {
1022
+ action: "create" | "read" | "update" | "delete" | "access";
355
1023
  fields?: string[];
356
- conditions?: never;
1024
+ conditions?: {};
357
1025
  inverted?: boolean;
358
1026
  reason?: string;
359
- action: "create" | "read" | "update" | "delete" | "access";
360
1027
  subject: "Company" | "Block" | "Campaign" | "BranchGroup" | "Datasource" | "OAuthClient" | "Statistics" | "BlockContent" | "User" | "Billing" | "Role" | "ResourceGroup" | "Invitation";
361
- mustMatch?: ("roleId" | "resourceGroupIds" | "companyId" | "id" | {
1028
+ mustMatch?: ("companyId" | "roleId" | "resourceGroupIds" | "id" | {
362
1029
  field: string;
363
- value: "roleId" | "resourceGroupIds" | "companyId" | "id";
1030
+ value: "companyId" | "roleId" | "resourceGroupIds" | "id";
364
1031
  })[];
365
1032
  }[];
366
1033
  }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
@@ -372,22 +1039,22 @@ export default class {
372
1039
  message: string;
373
1040
  data: {
374
1041
  readonly companyId: string & {
375
- readonly?: undefined;
1042
+ readonly?: "__readonly";
376
1043
  };
377
1044
  readonly id: string & {
378
- readonly?: undefined;
1045
+ readonly?: "__readonly";
379
1046
  };
380
1047
  name: string;
381
1048
  rules: {
1049
+ action: "create" | "read" | "update" | "delete" | "access";
382
1050
  fields?: string[];
383
- conditions?: never;
1051
+ conditions?: {};
384
1052
  inverted?: boolean;
385
1053
  reason?: string;
386
- action: "create" | "read" | "update" | "delete" | "access";
387
1054
  subject: "Company" | "Block" | "Campaign" | "BranchGroup" | "Datasource" | "OAuthClient" | "Statistics" | "BlockContent" | "User" | "Billing" | "Role" | "ResourceGroup" | "Invitation";
388
- mustMatch?: ("roleId" | "resourceGroupIds" | "companyId" | "id" | {
1055
+ mustMatch?: ("companyId" | "roleId" | "resourceGroupIds" | "id" | {
389
1056
  field: string;
390
- value: "roleId" | "resourceGroupIds" | "companyId" | "id";
1057
+ value: "companyId" | "roleId" | "resourceGroupIds" | "id";
391
1058
  })[];
392
1059
  }[];
393
1060
  };
@@ -419,28 +1086,32 @@ export default class {
419
1086
  code?: number;
420
1087
  message: string;
421
1088
  data: {
1089
+ readonly companyId: string & {
1090
+ readonly?: "__readonly";
1091
+ };
422
1092
  readonly roleId: string & {
423
- readonly?: undefined;
1093
+ readonly?: "__readonly";
424
1094
  };
425
1095
  readonly resourceGroupIds: string[];
426
- readonly companyId: string & {
427
- readonly?: undefined;
1096
+ readonly id: string & {
1097
+ readonly?: "__readonly";
428
1098
  };
429
1099
  readonly disabled: (false & {
430
- readonly?: undefined;
1100
+ readonly?: "__readonly";
431
1101
  }) | (true & {
432
- readonly?: undefined;
1102
+ readonly?: "__readonly";
433
1103
  });
434
1104
  email: string;
435
1105
  readonly lastPasswordUpdate: Date & {
436
- readonly?: undefined;
1106
+ readonly?: "__readonly";
437
1107
  };
438
1108
  readonly mustUpdatePassword: (false & {
439
- readonly?: undefined;
1109
+ readonly?: "__readonly";
440
1110
  }) | (true & {
441
- readonly?: undefined;
1111
+ readonly?: "__readonly";
442
1112
  });
443
1113
  readonly connection: {
1114
+ readonly?: "__readonly";
444
1115
  lastAttempts?: Date;
445
1116
  nbFail?: number;
446
1117
  };
@@ -458,9 +1129,20 @@ export default class {
458
1129
  campaign?: string;
459
1130
  };
460
1131
  };
1132
+ readonly hasOtp: (false & {
1133
+ readonly?: "__readonly";
1134
+ }) | (true & {
1135
+ readonly?: "__readonly";
1136
+ });
1137
+ readonly createdAt: Date & {
1138
+ readonly?: "__readonly";
1139
+ };
1140
+ readonly updatedAt: Date & {
1141
+ readonly?: "__readonly";
1142
+ };
461
1143
  }[];
462
1144
  }>>;
463
- create: (params: {}, data: {
1145
+ create: (data: {
464
1146
  invitationId: string;
465
1147
  profile: {
466
1148
  firstname?: string;
@@ -485,28 +1167,367 @@ export default class {
485
1167
  code?: number;
486
1168
  message: string;
487
1169
  data: {
1170
+ user: {
1171
+ readonly companyId: string & {
1172
+ readonly?: "__readonly";
1173
+ };
1174
+ readonly roleId: string & {
1175
+ readonly?: "__readonly";
1176
+ };
1177
+ readonly resourceGroupIds: string[];
1178
+ readonly id: string & {
1179
+ readonly?: "__readonly";
1180
+ };
1181
+ readonly disabled: (false & {
1182
+ readonly?: "__readonly";
1183
+ }) | (true & {
1184
+ readonly?: "__readonly";
1185
+ });
1186
+ email: string;
1187
+ readonly lastPasswordUpdate: Date & {
1188
+ readonly?: "__readonly";
1189
+ };
1190
+ readonly mustUpdatePassword: (false & {
1191
+ readonly?: "__readonly";
1192
+ }) | (true & {
1193
+ readonly?: "__readonly";
1194
+ });
1195
+ readonly connection: {
1196
+ readonly?: "__readonly";
1197
+ lastAttempts?: Date;
1198
+ nbFail?: number;
1199
+ };
1200
+ profile?: {
1201
+ firstname?: string;
1202
+ lastname?: string;
1203
+ jobtitle?: string;
1204
+ phone?: string;
1205
+ preferredLang?: string;
1206
+ preferredRecipientId?: string;
1207
+ preferredMessageId?: string;
1208
+ preferredUtm?: {
1209
+ medium?: string;
1210
+ source?: string;
1211
+ campaign?: string;
1212
+ };
1213
+ };
1214
+ readonly hasOtp: (false & {
1215
+ readonly?: "__readonly";
1216
+ }) | (true & {
1217
+ readonly?: "__readonly";
1218
+ });
1219
+ readonly createdAt: Date & {
1220
+ readonly?: "__readonly";
1221
+ };
1222
+ readonly updatedAt: Date & {
1223
+ readonly?: "__readonly";
1224
+ };
1225
+ };
1226
+ company: {
1227
+ readonly id: string & {
1228
+ readonly?: "__readonly";
1229
+ };
1230
+ plan: {
1231
+ name?: string;
1232
+ quota: number;
1233
+ startDate: Date;
1234
+ endDate: Date;
1235
+ };
1236
+ password?: {
1237
+ passwordDuration?: number;
1238
+ nbSpCharacter?: number;
1239
+ nbIsNotAlphabeticCharacter?: number;
1240
+ nbNumberCharacter?: number;
1241
+ nbLetterInLowercase?: number;
1242
+ nbLetterInUppercase?: number;
1243
+ nbCharacter?: number;
1244
+ nbAttempts?: number;
1245
+ timeEachAttempts?: number;
1246
+ timeLockAfterNextAttempts?: number;
1247
+ infiniteTimeLock?: boolean;
1248
+ };
1249
+ disabled: boolean;
1250
+ name: string;
1251
+ readonly createdAt: Date & {
1252
+ readonly?: "__readonly";
1253
+ };
1254
+ readonly updatedAt: Date & {
1255
+ readonly?: "__readonly";
1256
+ };
1257
+ defaultRoleId: string;
1258
+ defaultResourceGroupIds: string[];
1259
+ address?: {
1260
+ line1?: string;
1261
+ line2?: string;
1262
+ zipcode?: string;
1263
+ city?: string;
1264
+ country?: string;
1265
+ };
1266
+ contact?: {
1267
+ name?: string;
1268
+ email?: string;
1269
+ };
1270
+ securityPolicy: {
1271
+ password: {
1272
+ rules: {
1273
+ type: "special-characters" | "numbers" | "characters" | "uppercases" | "lowercases";
1274
+ options: {
1275
+ minimum?: number;
1276
+ maximum?: number;
1277
+ };
1278
+ }[];
1279
+ duration: number;
1280
+ attempts: {
1281
+ maximum: number;
1282
+ lockDuration: number;
1283
+ };
1284
+ };
1285
+ };
1286
+ sso?: {
1287
+ domains: string[];
1288
+ metadata: string;
1289
+ emailProperty: string[] | "nameID"[];
1290
+ mode: "invitation" | "create";
1291
+ readonly identityProvider: {
1292
+ readonly?: "__readonly";
1293
+ entityMeta: {
1294
+ meta: any;
1295
+ xmlString: string;
1296
+ };
1297
+ entitySetting: {
1298
+ metadata?: string | {
1299
+ data: number[];
1300
+ type: "Buffer";
1301
+ };
1302
+ entityID?: string;
1303
+ authnRequestsSigned?: boolean;
1304
+ wantAssertionsSigned?: boolean;
1305
+ wantMessageSigned?: boolean;
1306
+ wantLogoutResponseSigned?: boolean;
1307
+ wantLogoutRequestSigned?: boolean;
1308
+ privateKey?: string | {
1309
+ data: number[];
1310
+ type: "Buffer";
1311
+ };
1312
+ privateKeyPass?: string;
1313
+ isAssertionEncrypted?: boolean;
1314
+ requestSignatureAlgorithm?: string;
1315
+ encPrivateKey?: string | {
1316
+ data: number[];
1317
+ type: "Buffer";
1318
+ };
1319
+ encPrivateKeyPass?: string | (import("./definitions").Buffer & string);
1320
+ assertionConsumerService?: {
1321
+ isDefault?: boolean;
1322
+ Binding: string;
1323
+ Location: string;
1324
+ }[];
1325
+ singleLogoutService?: {
1326
+ isDefault?: boolean;
1327
+ Binding: string;
1328
+ Location: string;
1329
+ }[];
1330
+ signatureConfig?: {
1331
+ prefix?: string;
1332
+ location?: {
1333
+ reference?: string;
1334
+ action?: "append" | "prepend" | "before" | "after";
1335
+ };
1336
+ };
1337
+ loginRequestTemplate?: {
1338
+ context?: string;
1339
+ };
1340
+ logoutRequestTemplate?: {
1341
+ context?: string;
1342
+ };
1343
+ signingCert?: string | {
1344
+ data: number[];
1345
+ type: "Buffer";
1346
+ };
1347
+ encryptCert?: string | {
1348
+ data: number[];
1349
+ type: "Buffer";
1350
+ };
1351
+ transformationAlgorithms?: string[];
1352
+ nameIDFormat?: string[];
1353
+ allowCreate?: boolean;
1354
+ relayState?: string;
1355
+ clockDrifts?: number[];
1356
+ loginResponseTemplate?: {
1357
+ attributes?: {
1358
+ name: string;
1359
+ nameFormat: string;
1360
+ valueXsiType: string;
1361
+ valueTag: string;
1362
+ valueXmlnsXs?: string;
1363
+ valueXmlnsXsi?: string;
1364
+ }[];
1365
+ context: string;
1366
+ };
1367
+ generateID?: {};
1368
+ singleSignOnService?: {
1369
+ isDefault?: boolean;
1370
+ Binding: string;
1371
+ Location: string;
1372
+ }[];
1373
+ messageSigningOrder?: string;
1374
+ wantAuthnRequestsSigned?: boolean;
1375
+ wantLogoutRequestSignedResponseSigned?: boolean;
1376
+ tagPrefix?: {};
1377
+ };
1378
+ entityType: string;
1379
+ };
1380
+ readonly serviceProvider: {
1381
+ readonly?: "__readonly";
1382
+ entityMeta: {
1383
+ meta: any;
1384
+ xmlString: string;
1385
+ };
1386
+ entitySetting: {
1387
+ metadata?: string | {
1388
+ data: number[];
1389
+ type: "Buffer";
1390
+ };
1391
+ entityID?: string;
1392
+ authnRequestsSigned?: boolean;
1393
+ wantAssertionsSigned?: boolean;
1394
+ wantMessageSigned?: boolean;
1395
+ wantLogoutResponseSigned?: boolean;
1396
+ wantLogoutRequestSigned?: boolean;
1397
+ privateKey?: string | {
1398
+ data: number[];
1399
+ type: "Buffer";
1400
+ };
1401
+ privateKeyPass?: string;
1402
+ isAssertionEncrypted?: boolean;
1403
+ requestSignatureAlgorithm?: string;
1404
+ encPrivateKey?: string | {
1405
+ data: number[];
1406
+ type: "Buffer";
1407
+ };
1408
+ encPrivateKeyPass?: string | (import("./definitions").Buffer & string);
1409
+ assertionConsumerService?: {
1410
+ isDefault?: boolean;
1411
+ Binding: string;
1412
+ Location: string;
1413
+ }[];
1414
+ singleLogoutService?: {
1415
+ isDefault?: boolean;
1416
+ Binding: string;
1417
+ Location: string;
1418
+ }[];
1419
+ signatureConfig?: {
1420
+ prefix?: string;
1421
+ location?: {
1422
+ reference?: string;
1423
+ action?: "append" | "prepend" | "before" | "after";
1424
+ };
1425
+ };
1426
+ loginRequestTemplate?: {
1427
+ context?: string;
1428
+ };
1429
+ logoutRequestTemplate?: {
1430
+ context?: string;
1431
+ };
1432
+ signingCert?: string | {
1433
+ data: number[];
1434
+ type: "Buffer";
1435
+ };
1436
+ encryptCert?: string | {
1437
+ data: number[];
1438
+ type: "Buffer";
1439
+ };
1440
+ transformationAlgorithms?: string[];
1441
+ nameIDFormat?: string[];
1442
+ allowCreate?: boolean;
1443
+ relayState?: string;
1444
+ clockDrifts?: number[];
1445
+ loginResponseTemplate?: {
1446
+ attributes?: {
1447
+ name: string;
1448
+ nameFormat: string;
1449
+ valueXsiType: string;
1450
+ valueTag: string;
1451
+ valueXmlnsXs?: string;
1452
+ valueXmlnsXsi?: string;
1453
+ }[];
1454
+ context: string;
1455
+ };
1456
+ generateID?: {};
1457
+ singleSignOnService?: {
1458
+ isDefault?: boolean;
1459
+ Binding: string;
1460
+ Location: string;
1461
+ }[];
1462
+ messageSigningOrder?: string;
1463
+ wantAuthnRequestsSigned?: boolean;
1464
+ wantLogoutRequestSignedResponseSigned?: boolean;
1465
+ tagPrefix?: {};
1466
+ };
1467
+ entityType: string;
1468
+ };
1469
+ };
1470
+ custom?: {
1471
+ colors?: string[];
1472
+ };
1473
+ retention: number;
1474
+ features: {};
1475
+ events: {
1476
+ product_page: string;
1477
+ add_cart: string;
1478
+ purchase: string;
1479
+ };
1480
+ meta: {
1481
+ "email-token"?: string;
1482
+ esp?: string;
1483
+ };
1484
+ };
1485
+ };
1486
+ }>>;
1487
+ updatePassword: (data: ({
1488
+ email: string;
1489
+ password: string;
1490
+ } & {
1491
+ token: string;
1492
+ }) | ({
1493
+ email: string;
1494
+ password: string;
1495
+ } & {
1496
+ currentPassword: string;
1497
+ }), options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
1498
+ status: "success";
1499
+ program: string;
1500
+ version: string;
1501
+ datetime: string;
1502
+ code?: number;
1503
+ message: string;
1504
+ data: {
1505
+ readonly companyId: string & {
1506
+ readonly?: "__readonly";
1507
+ };
488
1508
  readonly roleId: string & {
489
- readonly?: undefined;
1509
+ readonly?: "__readonly";
490
1510
  };
491
1511
  readonly resourceGroupIds: string[];
492
- readonly companyId: string & {
493
- readonly?: undefined;
1512
+ readonly id: string & {
1513
+ readonly?: "__readonly";
494
1514
  };
495
1515
  readonly disabled: (false & {
496
- readonly?: undefined;
1516
+ readonly?: "__readonly";
497
1517
  }) | (true & {
498
- readonly?: undefined;
1518
+ readonly?: "__readonly";
499
1519
  });
500
1520
  email: string;
501
1521
  readonly lastPasswordUpdate: Date & {
502
- readonly?: undefined;
1522
+ readonly?: "__readonly";
503
1523
  };
504
1524
  readonly mustUpdatePassword: (false & {
505
- readonly?: undefined;
1525
+ readonly?: "__readonly";
506
1526
  }) | (true & {
507
- readonly?: undefined;
1527
+ readonly?: "__readonly";
508
1528
  });
509
1529
  readonly connection: {
1530
+ readonly?: "__readonly";
510
1531
  lastAttempts?: Date;
511
1532
  nbFail?: number;
512
1533
  };
@@ -524,14 +1545,33 @@ export default class {
524
1545
  campaign?: string;
525
1546
  };
526
1547
  };
1548
+ readonly hasOtp: (false & {
1549
+ readonly?: "__readonly";
1550
+ }) | (true & {
1551
+ readonly?: "__readonly";
1552
+ });
1553
+ readonly createdAt: Date & {
1554
+ readonly?: "__readonly";
1555
+ };
1556
+ readonly updatedAt: Date & {
1557
+ readonly?: "__readonly";
1558
+ };
527
1559
  };
528
1560
  }>>;
1561
+ resetPassword: (data: {
1562
+ email: string;
1563
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
1564
+ status: "success";
1565
+ program: string;
1566
+ version: string;
1567
+ datetime: string;
1568
+ code?: number;
1569
+ message: string;
1570
+ data: {};
1571
+ }>>;
529
1572
  update: (params: {
530
1573
  id: string;
531
1574
  }, data: {
532
- password?: string & {
533
- writeonly?: undefined;
534
- };
535
1575
  email?: string;
536
1576
  profile?: {
537
1577
  firstname?: string;
@@ -555,28 +1595,32 @@ export default class {
555
1595
  code?: number;
556
1596
  message: string;
557
1597
  data: {
1598
+ readonly companyId: string & {
1599
+ readonly?: "__readonly";
1600
+ };
558
1601
  readonly roleId: string & {
559
- readonly?: undefined;
1602
+ readonly?: "__readonly";
560
1603
  };
561
1604
  readonly resourceGroupIds: string[];
562
- readonly companyId: string & {
563
- readonly?: undefined;
1605
+ readonly id: string & {
1606
+ readonly?: "__readonly";
564
1607
  };
565
1608
  readonly disabled: (false & {
566
- readonly?: undefined;
1609
+ readonly?: "__readonly";
567
1610
  }) | (true & {
568
- readonly?: undefined;
1611
+ readonly?: "__readonly";
569
1612
  });
570
1613
  email: string;
571
1614
  readonly lastPasswordUpdate: Date & {
572
- readonly?: undefined;
1615
+ readonly?: "__readonly";
573
1616
  };
574
1617
  readonly mustUpdatePassword: (false & {
575
- readonly?: undefined;
1618
+ readonly?: "__readonly";
576
1619
  }) | (true & {
577
- readonly?: undefined;
1620
+ readonly?: "__readonly";
578
1621
  });
579
1622
  readonly connection: {
1623
+ readonly?: "__readonly";
580
1624
  lastAttempts?: Date;
581
1625
  nbFail?: number;
582
1626
  };
@@ -594,6 +1638,17 @@ export default class {
594
1638
  campaign?: string;
595
1639
  };
596
1640
  };
1641
+ readonly hasOtp: (false & {
1642
+ readonly?: "__readonly";
1643
+ }) | (true & {
1644
+ readonly?: "__readonly";
1645
+ });
1646
+ readonly createdAt: Date & {
1647
+ readonly?: "__readonly";
1648
+ };
1649
+ readonly updatedAt: Date & {
1650
+ readonly?: "__readonly";
1651
+ };
597
1652
  };
598
1653
  }>>;
599
1654
  delete: (params: {
@@ -606,28 +1661,32 @@ export default class {
606
1661
  code?: number;
607
1662
  message: string;
608
1663
  data: {
1664
+ readonly companyId: string & {
1665
+ readonly?: "__readonly";
1666
+ };
609
1667
  readonly roleId: string & {
610
- readonly?: undefined;
1668
+ readonly?: "__readonly";
611
1669
  };
612
1670
  readonly resourceGroupIds: string[];
613
- readonly companyId: string & {
614
- readonly?: undefined;
1671
+ readonly id: string & {
1672
+ readonly?: "__readonly";
615
1673
  };
616
1674
  readonly disabled: (false & {
617
- readonly?: undefined;
1675
+ readonly?: "__readonly";
618
1676
  }) | (true & {
619
- readonly?: undefined;
1677
+ readonly?: "__readonly";
620
1678
  });
621
1679
  email: string;
622
1680
  readonly lastPasswordUpdate: Date & {
623
- readonly?: undefined;
1681
+ readonly?: "__readonly";
624
1682
  };
625
1683
  readonly mustUpdatePassword: (false & {
626
- readonly?: undefined;
1684
+ readonly?: "__readonly";
627
1685
  }) | (true & {
628
- readonly?: undefined;
1686
+ readonly?: "__readonly";
629
1687
  });
630
1688
  readonly connection: {
1689
+ readonly?: "__readonly";
631
1690
  lastAttempts?: Date;
632
1691
  nbFail?: number;
633
1692
  };
@@ -645,6 +1704,17 @@ export default class {
645
1704
  campaign?: string;
646
1705
  };
647
1706
  };
1707
+ readonly hasOtp: (false & {
1708
+ readonly?: "__readonly";
1709
+ }) | (true & {
1710
+ readonly?: "__readonly";
1711
+ });
1712
+ readonly createdAt: Date & {
1713
+ readonly?: "__readonly";
1714
+ };
1715
+ readonly updatedAt: Date & {
1716
+ readonly?: "__readonly";
1717
+ };
648
1718
  };
649
1719
  }>>;
650
1720
  setRole: (params: {
@@ -659,28 +1729,32 @@ export default class {
659
1729
  code?: number;
660
1730
  message: string;
661
1731
  data: {
1732
+ readonly companyId: string & {
1733
+ readonly?: "__readonly";
1734
+ };
662
1735
  readonly roleId: string & {
663
- readonly?: undefined;
1736
+ readonly?: "__readonly";
664
1737
  };
665
1738
  readonly resourceGroupIds: string[];
666
- readonly companyId: string & {
667
- readonly?: undefined;
1739
+ readonly id: string & {
1740
+ readonly?: "__readonly";
668
1741
  };
669
1742
  readonly disabled: (false & {
670
- readonly?: undefined;
1743
+ readonly?: "__readonly";
671
1744
  }) | (true & {
672
- readonly?: undefined;
1745
+ readonly?: "__readonly";
673
1746
  });
674
1747
  email: string;
675
1748
  readonly lastPasswordUpdate: Date & {
676
- readonly?: undefined;
1749
+ readonly?: "__readonly";
677
1750
  };
678
1751
  readonly mustUpdatePassword: (false & {
679
- readonly?: undefined;
1752
+ readonly?: "__readonly";
680
1753
  }) | (true & {
681
- readonly?: undefined;
1754
+ readonly?: "__readonly";
682
1755
  });
683
1756
  readonly connection: {
1757
+ readonly?: "__readonly";
684
1758
  lastAttempts?: Date;
685
1759
  nbFail?: number;
686
1760
  };
@@ -698,6 +1772,17 @@ export default class {
698
1772
  campaign?: string;
699
1773
  };
700
1774
  };
1775
+ readonly hasOtp: (false & {
1776
+ readonly?: "__readonly";
1777
+ }) | (true & {
1778
+ readonly?: "__readonly";
1779
+ });
1780
+ readonly createdAt: Date & {
1781
+ readonly?: "__readonly";
1782
+ };
1783
+ readonly updatedAt: Date & {
1784
+ readonly?: "__readonly";
1785
+ };
701
1786
  };
702
1787
  }>>;
703
1788
  setResourceGroups: (params: {
@@ -712,28 +1797,105 @@ export default class {
712
1797
  code?: number;
713
1798
  message: string;
714
1799
  data: {
1800
+ readonly companyId: string & {
1801
+ readonly?: "__readonly";
1802
+ };
715
1803
  readonly roleId: string & {
716
- readonly?: undefined;
1804
+ readonly?: "__readonly";
717
1805
  };
718
1806
  readonly resourceGroupIds: string[];
1807
+ readonly id: string & {
1808
+ readonly?: "__readonly";
1809
+ };
1810
+ readonly disabled: (false & {
1811
+ readonly?: "__readonly";
1812
+ }) | (true & {
1813
+ readonly?: "__readonly";
1814
+ });
1815
+ email: string;
1816
+ readonly lastPasswordUpdate: Date & {
1817
+ readonly?: "__readonly";
1818
+ };
1819
+ readonly mustUpdatePassword: (false & {
1820
+ readonly?: "__readonly";
1821
+ }) | (true & {
1822
+ readonly?: "__readonly";
1823
+ });
1824
+ readonly connection: {
1825
+ readonly?: "__readonly";
1826
+ lastAttempts?: Date;
1827
+ nbFail?: number;
1828
+ };
1829
+ profile?: {
1830
+ firstname?: string;
1831
+ lastname?: string;
1832
+ jobtitle?: string;
1833
+ phone?: string;
1834
+ preferredLang?: string;
1835
+ preferredRecipientId?: string;
1836
+ preferredMessageId?: string;
1837
+ preferredUtm?: {
1838
+ medium?: string;
1839
+ source?: string;
1840
+ campaign?: string;
1841
+ };
1842
+ };
1843
+ readonly hasOtp: (false & {
1844
+ readonly?: "__readonly";
1845
+ }) | (true & {
1846
+ readonly?: "__readonly";
1847
+ });
1848
+ readonly createdAt: Date & {
1849
+ readonly?: "__readonly";
1850
+ };
1851
+ readonly updatedAt: Date & {
1852
+ readonly?: "__readonly";
1853
+ };
1854
+ };
1855
+ }>>;
1856
+ setOtp: (params: {
1857
+ id: string;
1858
+ }, data: {
1859
+ status: "enabled";
1860
+ secret: string;
1861
+ code: string;
1862
+ } | {
1863
+ status: "disabled";
1864
+ code: string;
1865
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
1866
+ status: "success";
1867
+ program: string;
1868
+ version: string;
1869
+ datetime: string;
1870
+ code?: number;
1871
+ message: string;
1872
+ data: {
719
1873
  readonly companyId: string & {
720
- readonly?: undefined;
1874
+ readonly?: "__readonly";
1875
+ };
1876
+ readonly roleId: string & {
1877
+ readonly?: "__readonly";
1878
+ };
1879
+ readonly resourceGroupIds: string[];
1880
+ readonly id: string & {
1881
+ readonly?: "__readonly";
721
1882
  };
722
1883
  readonly disabled: (false & {
723
- readonly?: undefined;
1884
+ readonly?: "__readonly";
724
1885
  }) | (true & {
725
- readonly?: undefined;
1886
+ readonly?: "__readonly";
726
1887
  });
727
1888
  email: string;
728
1889
  readonly lastPasswordUpdate: Date & {
729
- readonly?: undefined;
1890
+ readonly?: "__readonly";
730
1891
  };
731
1892
  readonly mustUpdatePassword: (false & {
732
- readonly?: undefined;
1893
+ readonly?: "__readonly";
733
1894
  }) | (true & {
734
- readonly?: undefined;
1895
+ readonly?: "__readonly";
735
1896
  });
736
1897
  readonly connection: {
1898
+ readonly?: "__readonly";
737
1899
  lastAttempts?: Date;
738
1900
  nbFail?: number;
739
1901
  };
@@ -751,6 +1913,17 @@ export default class {
751
1913
  campaign?: string;
752
1914
  };
753
1915
  };
1916
+ readonly hasOtp: (false & {
1917
+ readonly?: "__readonly";
1918
+ }) | (true & {
1919
+ readonly?: "__readonly";
1920
+ });
1921
+ readonly createdAt: Date & {
1922
+ readonly?: "__readonly";
1923
+ };
1924
+ readonly updatedAt: Date & {
1925
+ readonly?: "__readonly";
1926
+ };
754
1927
  };
755
1928
  }>>;
756
1929
  };