@rlvt/entity-manager-openapi-client 0.0.0-d2162c3 → 0.0.0-de4740c

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,10 +1,26 @@
1
1
  import { AxiosInstance, AxiosRequestConfig } from "axios";
2
- 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";
3
4
  export default class {
4
5
  axios: AxiosInstance;
5
- 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;
6
16
  private getDefaultsCompany;
7
17
  private setDefaultsCompany;
18
+ private getCompany;
19
+ private updateCompany;
20
+ private listInvitation;
21
+ private createInvitation;
22
+ private useInvitation;
23
+ private deleteInvitation;
8
24
  private listResourceGroup;
9
25
  private createResourceGroup;
10
26
  private updateResourceGroup;
@@ -15,12 +31,187 @@ export default class {
15
31
  private deleteRole;
16
32
  private listUser;
17
33
  private createUser;
34
+ private updatePasswordUser;
35
+ private resetPasswordUser;
18
36
  private updateUser;
19
37
  private deleteUser;
20
38
  private setRoleUser;
21
39
  private setResourceGroupsUser;
40
+ private setOtpUser;
41
+ get Authentification(): {
42
+ oauthShopifyRedirect: (params: {
43
+ shop: string;
44
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
45
+ status: "success";
46
+ program: string;
47
+ version: string;
48
+ datetime: string;
49
+ code?: number;
50
+ message: string;
51
+ data: {};
52
+ }>>;
53
+ oauthRedirect: (params: {
54
+ provider: Providers;
55
+ plan?: string;
56
+ companyName?: string;
57
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
58
+ status: "success";
59
+ program: string;
60
+ version: string;
61
+ datetime: string;
62
+ code?: number;
63
+ message: string;
64
+ data: {};
65
+ }>>;
66
+ oauthCallback: (params: {
67
+ provider: Providers;
68
+ code: string;
69
+ state: string;
70
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
71
+ status: "success";
72
+ program: string;
73
+ version: string;
74
+ datetime: string;
75
+ code?: number;
76
+ message: string;
77
+ data: {};
78
+ }>>;
79
+ ssoRedirect: (params: {
80
+ domain: string;
81
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
82
+ status: "success";
83
+ program: string;
84
+ version: string;
85
+ datetime: string;
86
+ code?: number;
87
+ message: string;
88
+ data: {};
89
+ }>>;
90
+ ssoCallback: (params: {
91
+ company: string;
92
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
93
+ status: "success";
94
+ program: string;
95
+ version: string;
96
+ datetime: string;
97
+ code?: number;
98
+ message: string;
99
+ data: {};
100
+ }>>;
101
+ ssoMetadata: (params: {
102
+ company: string;
103
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
104
+ status: "success";
105
+ program: string;
106
+ version: string;
107
+ datetime: string;
108
+ code?: number;
109
+ message: string;
110
+ data: string;
111
+ }>>;
112
+ getToken: (data: {
113
+ client_id: string;
114
+ grant_type: "password";
115
+ username: string;
116
+ password: string;
117
+ "x-otp-code"?: string;
118
+ } | {
119
+ client_id: string;
120
+ grant_type: "refresh_token";
121
+ refresh_token: string;
122
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
123
+ access_token: string;
124
+ expires_in: number;
125
+ refresh_token?: string;
126
+ token_type: "Bearer";
127
+ }>>;
128
+ describeToken: (params: {
129
+ token: string;
130
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
131
+ status: "success";
132
+ program: string;
133
+ version: string;
134
+ datetime: string;
135
+ code?: number;
136
+ message: string;
137
+ data: {
138
+ isValid: boolean;
139
+ revokedAt: Date;
140
+ expiresAt: Date;
141
+ user: {
142
+ readonly companyId: string & {
143
+ readonly?: "__readonly";
144
+ };
145
+ readonly roleId: string & {
146
+ readonly?: "__readonly";
147
+ };
148
+ readonly resourceGroupIds: string[];
149
+ readonly id: string & {
150
+ readonly?: "__readonly";
151
+ };
152
+ readonly disabled: (false & {
153
+ readonly?: "__readonly";
154
+ }) | (true & {
155
+ readonly?: "__readonly";
156
+ });
157
+ email: string;
158
+ readonly lastPasswordUpdate: Date & {
159
+ readonly?: "__readonly";
160
+ };
161
+ readonly mustUpdatePassword: (false & {
162
+ readonly?: "__readonly";
163
+ }) | (true & {
164
+ readonly?: "__readonly";
165
+ });
166
+ readonly connection: {
167
+ readonly?: "__readonly";
168
+ lastAttempts?: Date;
169
+ nbFail?: number;
170
+ };
171
+ profile?: {
172
+ firstname?: string;
173
+ lastname?: string;
174
+ jobtitle?: string;
175
+ phone?: string;
176
+ preferredLang?: string;
177
+ preferredRecipientId?: string;
178
+ preferredMessageId?: string;
179
+ preferredUtm?: {
180
+ medium?: string;
181
+ source?: string;
182
+ campaign?: string;
183
+ };
184
+ };
185
+ readonly hasOtp: (false & {
186
+ readonly?: "__readonly";
187
+ }) | (true & {
188
+ readonly?: "__readonly";
189
+ });
190
+ readonly createdAt: Date & {
191
+ readonly?: "__readonly";
192
+ };
193
+ readonly updatedAt: Date & {
194
+ readonly?: "__readonly";
195
+ };
196
+ };
197
+ };
198
+ }>>;
199
+ revokeToken: (params: {
200
+ token: string;
201
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
202
+ status: "success";
203
+ program: string;
204
+ version: string;
205
+ datetime: string;
206
+ code?: number;
207
+ message: string;
208
+ data: {
209
+ revoked: boolean;
210
+ };
211
+ }>>;
212
+ };
22
213
  get Company(): {
23
- getDefaults: (params: {}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
214
+ getDefaults: (options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
24
215
  status: "success";
25
216
  program: string;
26
217
  version: string;
@@ -32,7 +223,7 @@ export default class {
32
223
  resourceGroupIds: string[];
33
224
  };
34
225
  }>>;
35
- setDefaults: (params: {}, data: {
226
+ setDefaults: (data: {
36
227
  roleId?: string;
37
228
  resourceGroupIds?: string[];
38
229
  }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
@@ -43,9 +234,41 @@ export default class {
43
234
  code?: number;
44
235
  message: string;
45
236
  data: {
237
+ readonly id: string & {
238
+ readonly?: "__readonly";
239
+ };
240
+ plan: {
241
+ name?: string;
242
+ quota: number;
243
+ startDate: Date;
244
+ endDate: Date;
245
+ };
246
+ password?: {
247
+ passwordDuration?: number;
248
+ nbSpCharacter?: number;
249
+ nbIsNotAlphabeticCharacter?: number;
250
+ nbNumberCharacter?: number;
251
+ nbLetterInLowercase?: number;
252
+ nbLetterInUppercase?: number;
253
+ nbCharacter?: number;
254
+ nbAttempts?: number;
255
+ timeEachAttempts?: number;
256
+ timeLockAfterNextAttempts?: number;
257
+ infiniteTimeLock?: boolean;
258
+ };
259
+ disabled: boolean;
260
+ meta: {
261
+ [x: string]: string | number | boolean;
262
+ };
263
+ name: string;
264
+ readonly createdAt: Date & {
265
+ readonly?: "__readonly";
266
+ };
267
+ readonly updatedAt: Date & {
268
+ readonly?: "__readonly";
269
+ };
46
270
  defaultRoleId: string;
47
271
  defaultResourceGroupIds: string[];
48
- name: string;
49
272
  address?: {
50
273
  line1?: string;
51
274
  line2?: string;
@@ -57,6 +280,237 @@ export default class {
57
280
  name?: string;
58
281
  email?: string;
59
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
+ };
60
514
  plan: {
61
515
  name?: string;
62
516
  quota: number;
@@ -76,25 +530,536 @@ export default class {
76
530
  timeLockAfterNextAttempts?: number;
77
531
  infiniteTimeLock?: boolean;
78
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
+ };
79
761
  custom?: {
80
762
  colors?: string[];
81
763
  };
82
764
  retention: number;
765
+ features: {
766
+ [x: string]: boolean;
767
+ };
83
768
  events: {
84
769
  product_page: string;
85
770
  add_cart: string;
86
771
  purchase: string;
87
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
+ };
88
811
  disabled: boolean;
89
812
  meta: {
90
- 'email-token'?: string;
91
- 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;
92
1050
  };
93
1051
  };
94
1052
  }>>;
95
1053
  };
96
- get ResourceGroup(): {
97
- list: (params: {}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
1054
+ get Invitation(): {
1055
+ list: (params: {
1056
+ page?: number;
1057
+ perPage?: number;
1058
+ state?: InvitationState;
1059
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
1060
+ paginationCount: number;
1061
+ paginationPage: number;
1062
+ paginationLimit: number;
98
1063
  status: "success";
99
1064
  program: string;
100
1065
  version: string;
@@ -103,16 +1068,111 @@ export default class {
103
1068
  message: string;
104
1069
  data: {
105
1070
  readonly companyId: string & {
106
- readonly?: undefined;
1071
+ readonly?: "__readonly";
107
1072
  };
1073
+ readonly roleId: string & {
1074
+ readonly?: "__readonly";
1075
+ };
1076
+ readonly resourceGroupIds: string[];
108
1077
  readonly id: string & {
109
- readonly?: undefined;
1078
+ readonly?: "__readonly";
1079
+ };
1080
+ state: InvitationState;
1081
+ email: string;
1082
+ createdAt: Date;
1083
+ usedAt?: Date;
1084
+ }[];
1085
+ }>>;
1086
+ create: (data: {
1087
+ email: string;
1088
+ resourceGroupIds?: string[];
1089
+ roleId?: string;
1090
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
1091
+ status: "success";
1092
+ program: string;
1093
+ version: string;
1094
+ datetime: string;
1095
+ code?: number;
1096
+ message: string;
1097
+ data: {
1098
+ readonly companyId: string & {
1099
+ readonly?: "__readonly";
1100
+ };
1101
+ readonly roleId: string & {
1102
+ readonly?: "__readonly";
1103
+ };
1104
+ readonly resourceGroupIds: string[];
1105
+ readonly id: string & {
1106
+ readonly?: "__readonly";
1107
+ };
1108
+ state: InvitationState;
1109
+ email: string;
1110
+ createdAt: Date;
1111
+ usedAt?: Date;
1112
+ };
1113
+ }>>;
1114
+ use: (params: {
1115
+ id: string;
1116
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
1117
+ status: "success";
1118
+ program: string;
1119
+ version: string;
1120
+ datetime: string;
1121
+ code?: number;
1122
+ message: string;
1123
+ data: {
1124
+ id: string;
1125
+ };
1126
+ }>>;
1127
+ delete: (params: {
1128
+ id: string;
1129
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
1130
+ status: "success";
1131
+ program: string;
1132
+ version: string;
1133
+ datetime: string;
1134
+ code?: number;
1135
+ message: string;
1136
+ data: {
1137
+ readonly companyId: string & {
1138
+ readonly?: "__readonly";
1139
+ };
1140
+ readonly roleId: string & {
1141
+ readonly?: "__readonly";
1142
+ };
1143
+ readonly resourceGroupIds: string[];
1144
+ readonly id: string & {
1145
+ readonly?: "__readonly";
1146
+ };
1147
+ state: InvitationState;
1148
+ email: string;
1149
+ createdAt: Date;
1150
+ usedAt?: Date;
1151
+ };
1152
+ }>>;
1153
+ };
1154
+ get ResourceGroup(): {
1155
+ list: (options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
1156
+ status: "success";
1157
+ program: string;
1158
+ version: string;
1159
+ datetime: string;
1160
+ code?: number;
1161
+ message: string;
1162
+ data: ({
1163
+ readonly companyId: string & {
1164
+ readonly?: "__readonly";
1165
+ };
1166
+ readonly id: string & {
1167
+ readonly?: "__readonly";
110
1168
  };
111
1169
  name: string;
112
1170
  color?: string;
113
- }[];
1171
+ } & {
1172
+ usersCount: number;
1173
+ })[];
114
1174
  }>>;
115
- create: (params: {}, data: {
1175
+ create: (data: {
116
1176
  name: string;
117
1177
  color?: string;
118
1178
  }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
@@ -124,10 +1184,10 @@ export default class {
124
1184
  message: string;
125
1185
  data: {
126
1186
  readonly companyId: string & {
127
- readonly?: undefined;
1187
+ readonly?: "__readonly";
128
1188
  };
129
1189
  readonly id: string & {
130
- readonly?: undefined;
1190
+ readonly?: "__readonly";
131
1191
  };
132
1192
  name: string;
133
1193
  color?: string;
@@ -147,10 +1207,10 @@ export default class {
147
1207
  message: string;
148
1208
  data: {
149
1209
  readonly companyId: string & {
150
- readonly?: undefined;
1210
+ readonly?: "__readonly";
151
1211
  };
152
1212
  readonly id: string & {
153
- readonly?: undefined;
1213
+ readonly?: "__readonly";
154
1214
  };
155
1215
  name: string;
156
1216
  color?: string;
@@ -169,47 +1229,53 @@ export default class {
169
1229
  }>>;
170
1230
  };
171
1231
  get Role(): {
172
- list: (params: {}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
1232
+ list: (options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
173
1233
  status: "success";
174
1234
  program: string;
175
1235
  version: string;
176
1236
  datetime: string;
177
1237
  code?: number;
178
1238
  message: string;
179
- data: {
1239
+ data: ({
180
1240
  readonly companyId: string & {
181
- readonly?: undefined;
1241
+ readonly?: "__readonly";
182
1242
  };
183
1243
  readonly id: string & {
184
- readonly?: undefined;
1244
+ readonly?: "__readonly";
185
1245
  };
186
1246
  name: string;
187
1247
  rules: {
1248
+ action: "create" | "read" | "update" | "delete" | "access";
188
1249
  fields?: string[];
189
- conditions?: never;
1250
+ conditions?: {
1251
+ [x: string]: any;
1252
+ };
190
1253
  inverted?: boolean;
191
1254
  reason?: string;
192
- action: string;
193
- subject: string;
194
- mustMatch?: ("roleId" | "resourceGroupIds" | "companyId" | "id" | {
1255
+ subject: "Company" | "Block" | "Campaign" | "BranchGroup" | "Datasource" | "OAuthClient" | "Statistics" | "BlockContent" | "User" | "Billing" | "Role" | "ResourceGroup" | "Invitation";
1256
+ mustMatch?: ("companyId" | "roleId" | "resourceGroupIds" | "id" | {
195
1257
  field: string;
196
- value: "roleId" | "resourceGroupIds" | "companyId" | "id";
1258
+ value: "companyId" | "roleId" | "resourceGroupIds" | "id";
197
1259
  })[];
198
1260
  }[];
199
- }[];
1261
+ } & {
1262
+ usersCount: number;
1263
+ })[];
200
1264
  }>>;
201
- create: (params: {}, data: {
1265
+ create: (data: {
202
1266
  name: string;
203
1267
  rules: {
1268
+ action: "create" | "read" | "update" | "delete" | "access";
204
1269
  fields?: string[];
205
- conditions?: never;
1270
+ conditions?: {
1271
+ [x: string]: any;
1272
+ };
206
1273
  inverted?: boolean;
207
1274
  reason?: string;
208
- action: string;
209
- subject: string;
210
- mustMatch?: ("roleId" | "resourceGroupIds" | "companyId" | "id" | {
1275
+ subject: "Company" | "Block" | "Campaign" | "BranchGroup" | "Datasource" | "OAuthClient" | "Statistics" | "BlockContent" | "User" | "Billing" | "Role" | "ResourceGroup" | "Invitation";
1276
+ mustMatch?: ("companyId" | "roleId" | "resourceGroupIds" | "id" | {
211
1277
  field: string;
212
- value: "roleId" | "resourceGroupIds" | "companyId" | "id";
1278
+ value: "companyId" | "roleId" | "resourceGroupIds" | "id";
213
1279
  })[];
214
1280
  }[];
215
1281
  }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
@@ -221,22 +1287,24 @@ export default class {
221
1287
  message: string;
222
1288
  data: {
223
1289
  readonly companyId: string & {
224
- readonly?: undefined;
1290
+ readonly?: "__readonly";
225
1291
  };
226
1292
  readonly id: string & {
227
- readonly?: undefined;
1293
+ readonly?: "__readonly";
228
1294
  };
229
1295
  name: string;
230
1296
  rules: {
1297
+ action: "create" | "read" | "update" | "delete" | "access";
231
1298
  fields?: string[];
232
- conditions?: never;
1299
+ conditions?: {
1300
+ [x: string]: any;
1301
+ };
233
1302
  inverted?: boolean;
234
1303
  reason?: string;
235
- action: string;
236
- subject: string;
237
- mustMatch?: ("roleId" | "resourceGroupIds" | "companyId" | "id" | {
1304
+ subject: "Company" | "Block" | "Campaign" | "BranchGroup" | "Datasource" | "OAuthClient" | "Statistics" | "BlockContent" | "User" | "Billing" | "Role" | "ResourceGroup" | "Invitation";
1305
+ mustMatch?: ("companyId" | "roleId" | "resourceGroupIds" | "id" | {
238
1306
  field: string;
239
- value: "roleId" | "resourceGroupIds" | "companyId" | "id";
1307
+ value: "companyId" | "roleId" | "resourceGroupIds" | "id";
240
1308
  })[];
241
1309
  }[];
242
1310
  };
@@ -246,15 +1314,17 @@ export default class {
246
1314
  }, data: {
247
1315
  name?: string;
248
1316
  rules?: {
1317
+ action: "create" | "read" | "update" | "delete" | "access";
249
1318
  fields?: string[];
250
- conditions?: never;
1319
+ conditions?: {
1320
+ [x: string]: any;
1321
+ };
251
1322
  inverted?: boolean;
252
1323
  reason?: string;
253
- action: string;
254
- subject: string;
255
- mustMatch?: ("roleId" | "resourceGroupIds" | "companyId" | "id" | {
1324
+ subject: "Company" | "Block" | "Campaign" | "BranchGroup" | "Datasource" | "OAuthClient" | "Statistics" | "BlockContent" | "User" | "Billing" | "Role" | "ResourceGroup" | "Invitation";
1325
+ mustMatch?: ("companyId" | "roleId" | "resourceGroupIds" | "id" | {
256
1326
  field: string;
257
- value: "roleId" | "resourceGroupIds" | "companyId" | "id";
1327
+ value: "companyId" | "roleId" | "resourceGroupIds" | "id";
258
1328
  })[];
259
1329
  }[];
260
1330
  }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
@@ -266,22 +1336,24 @@ export default class {
266
1336
  message: string;
267
1337
  data: {
268
1338
  readonly companyId: string & {
269
- readonly?: undefined;
1339
+ readonly?: "__readonly";
270
1340
  };
271
1341
  readonly id: string & {
272
- readonly?: undefined;
1342
+ readonly?: "__readonly";
273
1343
  };
274
1344
  name: string;
275
1345
  rules: {
1346
+ action: "create" | "read" | "update" | "delete" | "access";
276
1347
  fields?: string[];
277
- conditions?: never;
1348
+ conditions?: {
1349
+ [x: string]: any;
1350
+ };
278
1351
  inverted?: boolean;
279
1352
  reason?: string;
280
- action: string;
281
- subject: string;
282
- mustMatch?: ("roleId" | "resourceGroupIds" | "companyId" | "id" | {
1353
+ subject: "Company" | "Block" | "Campaign" | "BranchGroup" | "Datasource" | "OAuthClient" | "Statistics" | "BlockContent" | "User" | "Billing" | "Role" | "ResourceGroup" | "Invitation";
1354
+ mustMatch?: ("companyId" | "roleId" | "resourceGroupIds" | "id" | {
283
1355
  field: string;
284
- value: "roleId" | "resourceGroupIds" | "companyId" | "id";
1356
+ value: "companyId" | "roleId" | "resourceGroupIds" | "id";
285
1357
  })[];
286
1358
  }[];
287
1359
  };
@@ -313,28 +1385,32 @@ export default class {
313
1385
  code?: number;
314
1386
  message: string;
315
1387
  data: {
1388
+ readonly companyId: string & {
1389
+ readonly?: "__readonly";
1390
+ };
316
1391
  readonly roleId: string & {
317
- readonly?: undefined;
1392
+ readonly?: "__readonly";
318
1393
  };
319
1394
  readonly resourceGroupIds: string[];
320
- readonly companyId: string & {
321
- readonly?: undefined;
1395
+ readonly id: string & {
1396
+ readonly?: "__readonly";
322
1397
  };
323
1398
  readonly disabled: (false & {
324
- readonly?: undefined;
1399
+ readonly?: "__readonly";
325
1400
  }) | (true & {
326
- readonly?: undefined;
1401
+ readonly?: "__readonly";
327
1402
  });
328
1403
  email: string;
329
1404
  readonly lastPasswordUpdate: Date & {
330
- readonly?: undefined;
1405
+ readonly?: "__readonly";
331
1406
  };
332
1407
  readonly mustUpdatePassword: (false & {
333
- readonly?: undefined;
1408
+ readonly?: "__readonly";
334
1409
  }) | (true & {
335
- readonly?: undefined;
1410
+ readonly?: "__readonly";
336
1411
  });
337
1412
  readonly connection: {
1413
+ readonly?: "__readonly";
338
1414
  lastAttempts?: Date;
339
1415
  nbFail?: number;
340
1416
  };
@@ -344,24 +1420,44 @@ export default class {
344
1420
  jobtitle?: string;
345
1421
  phone?: string;
346
1422
  preferredLang?: string;
1423
+ preferredRecipientId?: string;
1424
+ preferredMessageId?: string;
1425
+ preferredUtm?: {
1426
+ medium?: string;
1427
+ source?: string;
1428
+ campaign?: string;
1429
+ };
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";
347
1441
  };
348
1442
  }[];
349
1443
  }>>;
350
- create: (params: {}, data: {
351
- password: string & {
352
- writeonly?: undefined;
353
- };
354
- email: string;
355
- profile?: {
1444
+ create: (data: {
1445
+ invitationId: string;
1446
+ profile: {
356
1447
  firstname?: string;
357
1448
  lastname?: string;
358
1449
  jobtitle?: string;
359
1450
  phone?: string;
360
1451
  preferredLang?: string;
1452
+ preferredRecipientId?: string;
1453
+ preferredMessageId?: string;
1454
+ preferredUtm?: {
1455
+ medium?: string;
1456
+ source?: string;
1457
+ campaign?: string;
1458
+ };
361
1459
  };
362
- } & {
363
- resourceGroupIds: string[];
364
- roleId: string;
1460
+ password: string;
365
1461
  }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
366
1462
  status: "success";
367
1463
  program: string;
@@ -370,28 +1466,372 @@ export default class {
370
1466
  code?: number;
371
1467
  message: string;
372
1468
  data: {
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
+ };
1524
+ };
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: {
1809
+ readonly companyId: string & {
1810
+ readonly?: "__readonly";
1811
+ };
373
1812
  readonly roleId: string & {
374
- readonly?: undefined;
1813
+ readonly?: "__readonly";
375
1814
  };
376
1815
  readonly resourceGroupIds: string[];
377
- readonly companyId: string & {
378
- readonly?: undefined;
1816
+ readonly id: string & {
1817
+ readonly?: "__readonly";
379
1818
  };
380
1819
  readonly disabled: (false & {
381
- readonly?: undefined;
1820
+ readonly?: "__readonly";
382
1821
  }) | (true & {
383
- readonly?: undefined;
1822
+ readonly?: "__readonly";
384
1823
  });
385
1824
  email: string;
386
1825
  readonly lastPasswordUpdate: Date & {
387
- readonly?: undefined;
1826
+ readonly?: "__readonly";
388
1827
  };
389
1828
  readonly mustUpdatePassword: (false & {
390
- readonly?: undefined;
1829
+ readonly?: "__readonly";
391
1830
  }) | (true & {
392
- readonly?: undefined;
1831
+ readonly?: "__readonly";
393
1832
  });
394
1833
  readonly connection: {
1834
+ readonly?: "__readonly";
395
1835
  lastAttempts?: Date;
396
1836
  nbFail?: number;
397
1837
  };
@@ -401,15 +1841,41 @@ export default class {
401
1841
  jobtitle?: string;
402
1842
  phone?: string;
403
1843
  preferredLang?: string;
1844
+ preferredRecipientId?: string;
1845
+ preferredMessageId?: string;
1846
+ preferredUtm?: {
1847
+ medium?: string;
1848
+ source?: string;
1849
+ campaign?: string;
1850
+ };
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";
404
1862
  };
405
1863
  };
406
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
+ }>>;
407
1876
  update: (params: {
408
1877
  id: string;
409
1878
  }, data: {
410
- password?: string & {
411
- writeonly?: undefined;
412
- };
413
1879
  email?: string;
414
1880
  profile?: {
415
1881
  firstname?: string;
@@ -417,6 +1883,13 @@ export default class {
417
1883
  jobtitle?: string;
418
1884
  phone?: string;
419
1885
  preferredLang?: string;
1886
+ preferredRecipientId?: string;
1887
+ preferredMessageId?: string;
1888
+ preferredUtm?: {
1889
+ medium?: string;
1890
+ source?: string;
1891
+ campaign?: string;
1892
+ };
420
1893
  };
421
1894
  }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
422
1895
  status: "success";
@@ -426,28 +1899,32 @@ export default class {
426
1899
  code?: number;
427
1900
  message: string;
428
1901
  data: {
1902
+ readonly companyId: string & {
1903
+ readonly?: "__readonly";
1904
+ };
429
1905
  readonly roleId: string & {
430
- readonly?: undefined;
1906
+ readonly?: "__readonly";
431
1907
  };
432
1908
  readonly resourceGroupIds: string[];
433
- readonly companyId: string & {
434
- readonly?: undefined;
1909
+ readonly id: string & {
1910
+ readonly?: "__readonly";
435
1911
  };
436
1912
  readonly disabled: (false & {
437
- readonly?: undefined;
1913
+ readonly?: "__readonly";
438
1914
  }) | (true & {
439
- readonly?: undefined;
1915
+ readonly?: "__readonly";
440
1916
  });
441
1917
  email: string;
442
1918
  readonly lastPasswordUpdate: Date & {
443
- readonly?: undefined;
1919
+ readonly?: "__readonly";
444
1920
  };
445
1921
  readonly mustUpdatePassword: (false & {
446
- readonly?: undefined;
1922
+ readonly?: "__readonly";
447
1923
  }) | (true & {
448
- readonly?: undefined;
1924
+ readonly?: "__readonly";
449
1925
  });
450
1926
  readonly connection: {
1927
+ readonly?: "__readonly";
451
1928
  lastAttempts?: Date;
452
1929
  nbFail?: number;
453
1930
  };
@@ -457,6 +1934,24 @@ export default class {
457
1934
  jobtitle?: string;
458
1935
  phone?: string;
459
1936
  preferredLang?: string;
1937
+ preferredRecipientId?: string;
1938
+ preferredMessageId?: string;
1939
+ preferredUtm?: {
1940
+ medium?: string;
1941
+ source?: string;
1942
+ campaign?: string;
1943
+ };
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";
460
1955
  };
461
1956
  };
462
1957
  }>>;
@@ -470,28 +1965,32 @@ export default class {
470
1965
  code?: number;
471
1966
  message: string;
472
1967
  data: {
1968
+ readonly companyId: string & {
1969
+ readonly?: "__readonly";
1970
+ };
473
1971
  readonly roleId: string & {
474
- readonly?: undefined;
1972
+ readonly?: "__readonly";
475
1973
  };
476
1974
  readonly resourceGroupIds: string[];
477
- readonly companyId: string & {
478
- readonly?: undefined;
1975
+ readonly id: string & {
1976
+ readonly?: "__readonly";
479
1977
  };
480
1978
  readonly disabled: (false & {
481
- readonly?: undefined;
1979
+ readonly?: "__readonly";
482
1980
  }) | (true & {
483
- readonly?: undefined;
1981
+ readonly?: "__readonly";
484
1982
  });
485
1983
  email: string;
486
1984
  readonly lastPasswordUpdate: Date & {
487
- readonly?: undefined;
1985
+ readonly?: "__readonly";
488
1986
  };
489
1987
  readonly mustUpdatePassword: (false & {
490
- readonly?: undefined;
1988
+ readonly?: "__readonly";
491
1989
  }) | (true & {
492
- readonly?: undefined;
1990
+ readonly?: "__readonly";
493
1991
  });
494
1992
  readonly connection: {
1993
+ readonly?: "__readonly";
495
1994
  lastAttempts?: Date;
496
1995
  nbFail?: number;
497
1996
  };
@@ -501,6 +2000,24 @@ export default class {
501
2000
  jobtitle?: string;
502
2001
  phone?: string;
503
2002
  preferredLang?: string;
2003
+ preferredRecipientId?: string;
2004
+ preferredMessageId?: string;
2005
+ preferredUtm?: {
2006
+ medium?: string;
2007
+ source?: string;
2008
+ campaign?: string;
2009
+ };
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";
504
2021
  };
505
2022
  };
506
2023
  }>>;
@@ -516,28 +2033,32 @@ export default class {
516
2033
  code?: number;
517
2034
  message: string;
518
2035
  data: {
2036
+ readonly companyId: string & {
2037
+ readonly?: "__readonly";
2038
+ };
519
2039
  readonly roleId: string & {
520
- readonly?: undefined;
2040
+ readonly?: "__readonly";
521
2041
  };
522
2042
  readonly resourceGroupIds: string[];
523
- readonly companyId: string & {
524
- readonly?: undefined;
2043
+ readonly id: string & {
2044
+ readonly?: "__readonly";
525
2045
  };
526
2046
  readonly disabled: (false & {
527
- readonly?: undefined;
2047
+ readonly?: "__readonly";
528
2048
  }) | (true & {
529
- readonly?: undefined;
2049
+ readonly?: "__readonly";
530
2050
  });
531
2051
  email: string;
532
2052
  readonly lastPasswordUpdate: Date & {
533
- readonly?: undefined;
2053
+ readonly?: "__readonly";
534
2054
  };
535
2055
  readonly mustUpdatePassword: (false & {
536
- readonly?: undefined;
2056
+ readonly?: "__readonly";
537
2057
  }) | (true & {
538
- readonly?: undefined;
2058
+ readonly?: "__readonly";
539
2059
  });
540
2060
  readonly connection: {
2061
+ readonly?: "__readonly";
541
2062
  lastAttempts?: Date;
542
2063
  nbFail?: number;
543
2064
  };
@@ -547,6 +2068,24 @@ export default class {
547
2068
  jobtitle?: string;
548
2069
  phone?: string;
549
2070
  preferredLang?: string;
2071
+ preferredRecipientId?: string;
2072
+ preferredMessageId?: string;
2073
+ preferredUtm?: {
2074
+ medium?: string;
2075
+ source?: string;
2076
+ campaign?: string;
2077
+ };
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";
550
2089
  };
551
2090
  };
552
2091
  }>>;
@@ -562,28 +2101,105 @@ export default class {
562
2101
  code?: number;
563
2102
  message: string;
564
2103
  data: {
2104
+ readonly companyId: string & {
2105
+ readonly?: "__readonly";
2106
+ };
565
2107
  readonly roleId: string & {
566
- readonly?: undefined;
2108
+ readonly?: "__readonly";
567
2109
  };
568
2110
  readonly resourceGroupIds: string[];
2111
+ readonly id: string & {
2112
+ readonly?: "__readonly";
2113
+ };
2114
+ readonly disabled: (false & {
2115
+ readonly?: "__readonly";
2116
+ }) | (true & {
2117
+ readonly?: "__readonly";
2118
+ });
2119
+ email: string;
2120
+ readonly lastPasswordUpdate: Date & {
2121
+ readonly?: "__readonly";
2122
+ };
2123
+ readonly mustUpdatePassword: (false & {
2124
+ readonly?: "__readonly";
2125
+ }) | (true & {
2126
+ readonly?: "__readonly";
2127
+ });
2128
+ readonly connection: {
2129
+ readonly?: "__readonly";
2130
+ lastAttempts?: Date;
2131
+ nbFail?: number;
2132
+ };
2133
+ profile?: {
2134
+ firstname?: string;
2135
+ lastname?: string;
2136
+ jobtitle?: string;
2137
+ phone?: string;
2138
+ preferredLang?: string;
2139
+ preferredRecipientId?: string;
2140
+ preferredMessageId?: string;
2141
+ preferredUtm?: {
2142
+ medium?: string;
2143
+ source?: string;
2144
+ campaign?: string;
2145
+ };
2146
+ };
2147
+ readonly hasOtp: (false & {
2148
+ readonly?: "__readonly";
2149
+ }) | (true & {
2150
+ readonly?: "__readonly";
2151
+ });
2152
+ readonly createdAt: Date & {
2153
+ readonly?: "__readonly";
2154
+ };
2155
+ readonly updatedAt: Date & {
2156
+ readonly?: "__readonly";
2157
+ };
2158
+ };
2159
+ }>>;
2160
+ setOtp: (params: {
2161
+ id: string;
2162
+ }, data: {
2163
+ status: "enabled";
2164
+ secret: string;
2165
+ code: string;
2166
+ } | {
2167
+ status: "disabled";
2168
+ code: string;
2169
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
2170
+ status: "success";
2171
+ program: string;
2172
+ version: string;
2173
+ datetime: string;
2174
+ code?: number;
2175
+ message: string;
2176
+ data: {
569
2177
  readonly companyId: string & {
570
- readonly?: undefined;
2178
+ readonly?: "__readonly";
2179
+ };
2180
+ readonly roleId: string & {
2181
+ readonly?: "__readonly";
2182
+ };
2183
+ readonly resourceGroupIds: string[];
2184
+ readonly id: string & {
2185
+ readonly?: "__readonly";
571
2186
  };
572
2187
  readonly disabled: (false & {
573
- readonly?: undefined;
2188
+ readonly?: "__readonly";
574
2189
  }) | (true & {
575
- readonly?: undefined;
2190
+ readonly?: "__readonly";
576
2191
  });
577
2192
  email: string;
578
2193
  readonly lastPasswordUpdate: Date & {
579
- readonly?: undefined;
2194
+ readonly?: "__readonly";
580
2195
  };
581
2196
  readonly mustUpdatePassword: (false & {
582
- readonly?: undefined;
2197
+ readonly?: "__readonly";
583
2198
  }) | (true & {
584
- readonly?: undefined;
2199
+ readonly?: "__readonly";
585
2200
  });
586
2201
  readonly connection: {
2202
+ readonly?: "__readonly";
587
2203
  lastAttempts?: Date;
588
2204
  nbFail?: number;
589
2205
  };
@@ -593,6 +2209,24 @@ export default class {
593
2209
  jobtitle?: string;
594
2210
  phone?: string;
595
2211
  preferredLang?: string;
2212
+ preferredRecipientId?: string;
2213
+ preferredMessageId?: string;
2214
+ preferredUtm?: {
2215
+ medium?: string;
2216
+ source?: string;
2217
+ campaign?: string;
2218
+ };
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";
596
2230
  };
597
2231
  };
598
2232
  }>>;