@rlvt/entity-manager-openapi-client 0.0.0-3023eab → 0.0.0-365a49c

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,1683 +1,1930 @@
1
- /**
2
- * entity-manager
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 3023eabd0801f8668b51d7511243580ef56af993
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { Configuration } from './configuration';
13
- import { AxiosPromise, AxiosInstance } from 'axios';
14
- import { RequestArgs, BaseAPI } from './base';
15
- /**
16
- *
17
- * @export
18
- * @interface InlineObject
19
- */
20
- export interface InlineObject {
21
- /**
22
- *
23
- * @type {string}
24
- * @memberof InlineObject
25
- */
26
- id: string;
27
- }
28
- /**
29
- *
30
- * @export
31
- * @interface InlineObject1
32
- */
33
- export interface InlineObject1 {
34
- /**
35
- *
36
- * @type {Array<string>}
37
- * @memberof InlineObject1
38
- */
39
- ids: Array<string>;
40
- }
41
- /**
42
- *
43
- * @export
44
- * @interface InlineResponse200
45
- */
46
- export interface InlineResponse200 {
47
- /**
48
- *
49
- * @type {string}
50
- * @memberof InlineResponse200
51
- */
52
- status: InlineResponse200StatusEnum;
53
- /**
54
- *
55
- * @type {string}
56
- * @memberof InlineResponse200
57
- */
58
- program: string;
59
- /**
60
- *
61
- * @type {string}
62
- * @memberof InlineResponse200
63
- */
64
- version: string;
65
- /**
66
- *
67
- * @type {string}
68
- * @memberof InlineResponse200
69
- */
70
- datetime: string;
71
- /**
72
- *
73
- * @type {number}
74
- * @memberof InlineResponse200
75
- */
76
- code?: number;
77
- /**
78
- *
79
- * @type {string}
80
- * @memberof InlineResponse200
81
- */
82
- message: string;
83
- /**
84
- *
85
- * @type {InlineResponse200Data}
86
- * @memberof InlineResponse200
87
- */
88
- data: InlineResponse200Data;
89
- }
90
- /**
91
- * @export
92
- * @enum {string}
93
- */
94
- export declare enum InlineResponse200StatusEnum {
95
- SUCCESS = "success"
96
- }
97
- /**
98
- *
99
- * @export
100
- * @interface InlineResponse2001
101
- */
102
- export interface InlineResponse2001 {
103
- /**
104
- *
105
- * @type {string}
106
- * @memberof InlineResponse2001
107
- */
108
- status: InlineResponse2001StatusEnum;
109
- /**
110
- *
111
- * @type {string}
112
- * @memberof InlineResponse2001
113
- */
114
- program: string;
115
- /**
116
- *
117
- * @type {string}
118
- * @memberof InlineResponse2001
119
- */
120
- version: string;
121
- /**
122
- *
123
- * @type {string}
124
- * @memberof InlineResponse2001
125
- */
126
- datetime: string;
127
- /**
128
- *
129
- * @type {number}
130
- * @memberof InlineResponse2001
131
- */
132
- code?: number;
133
- /**
134
- *
135
- * @type {string}
136
- * @memberof InlineResponse2001
137
- */
138
- message: string;
139
- /**
140
- *
141
- * @type {SerializedCompany}
142
- * @memberof InlineResponse2001
143
- */
144
- data: SerializedCompany;
145
- }
146
- /**
147
- * @export
148
- * @enum {string}
149
- */
150
- export declare enum InlineResponse2001StatusEnum {
151
- SUCCESS = "success"
152
- }
153
- /**
154
- *
155
- * @export
156
- * @interface InlineResponse2002
157
- */
158
- export interface InlineResponse2002 {
159
- /**
160
- *
161
- * @type {string}
162
- * @memberof InlineResponse2002
163
- */
164
- status: InlineResponse2002StatusEnum;
165
- /**
166
- *
167
- * @type {string}
168
- * @memberof InlineResponse2002
169
- */
170
- program: string;
171
- /**
172
- *
173
- * @type {string}
174
- * @memberof InlineResponse2002
175
- */
176
- version: string;
177
- /**
178
- *
179
- * @type {string}
180
- * @memberof InlineResponse2002
181
- */
182
- datetime: string;
183
- /**
184
- *
185
- * @type {number}
186
- * @memberof InlineResponse2002
187
- */
188
- code?: number;
189
- /**
190
- *
191
- * @type {string}
192
- * @memberof InlineResponse2002
193
- */
194
- message: string;
195
- /**
196
- *
197
- * @type {Array<SerializedResourceGroup>}
198
- * @memberof InlineResponse2002
199
- */
200
- data: Array<SerializedResourceGroup>;
201
- }
202
- /**
203
- * @export
204
- * @enum {string}
205
- */
206
- export declare enum InlineResponse2002StatusEnum {
207
- SUCCESS = "success"
208
- }
209
- /**
210
- *
211
- * @export
212
- * @interface InlineResponse2003
213
- */
214
- export interface InlineResponse2003 {
215
- /**
216
- *
217
- * @type {string}
218
- * @memberof InlineResponse2003
219
- */
220
- status: InlineResponse2003StatusEnum;
221
- /**
222
- *
223
- * @type {string}
224
- * @memberof InlineResponse2003
225
- */
226
- program: string;
227
- /**
228
- *
229
- * @type {string}
230
- * @memberof InlineResponse2003
231
- */
232
- version: string;
233
- /**
234
- *
235
- * @type {string}
236
- * @memberof InlineResponse2003
237
- */
238
- datetime: string;
239
- /**
240
- *
241
- * @type {number}
242
- * @memberof InlineResponse2003
243
- */
244
- code?: number;
245
- /**
246
- *
247
- * @type {string}
248
- * @memberof InlineResponse2003
249
- */
250
- message: string;
251
- /**
252
- *
253
- * @type {SerializedResourceGroup}
254
- * @memberof InlineResponse2003
255
- */
256
- data: SerializedResourceGroup;
257
- }
258
- /**
259
- * @export
260
- * @enum {string}
261
- */
262
- export declare enum InlineResponse2003StatusEnum {
263
- SUCCESS = "success"
264
- }
265
- /**
266
- *
267
- * @export
268
- * @interface InlineResponse2004
269
- */
270
- export interface InlineResponse2004 {
271
- /**
272
- *
273
- * @type {string}
274
- * @memberof InlineResponse2004
275
- */
276
- status: InlineResponse2004StatusEnum;
277
- /**
278
- *
279
- * @type {string}
280
- * @memberof InlineResponse2004
281
- */
282
- program: string;
283
- /**
284
- *
285
- * @type {string}
286
- * @memberof InlineResponse2004
287
- */
288
- version: string;
289
- /**
290
- *
291
- * @type {string}
292
- * @memberof InlineResponse2004
293
- */
294
- datetime: string;
295
- /**
296
- *
297
- * @type {number}
298
- * @memberof InlineResponse2004
299
- */
300
- code?: number;
301
- /**
302
- *
303
- * @type {string}
304
- * @memberof InlineResponse2004
305
- */
306
- message: string;
307
- /**
308
- *
309
- * @type {object}
310
- * @memberof InlineResponse2004
311
- */
312
- data: object;
313
- }
314
- /**
315
- * @export
316
- * @enum {string}
317
- */
318
- export declare enum InlineResponse2004StatusEnum {
319
- SUCCESS = "success"
320
- }
321
- /**
322
- *
323
- * @export
324
- * @interface InlineResponse2005
325
- */
326
- export interface InlineResponse2005 {
327
- /**
328
- *
329
- * @type {string}
330
- * @memberof InlineResponse2005
331
- */
332
- status: InlineResponse2005StatusEnum;
333
- /**
334
- *
335
- * @type {string}
336
- * @memberof InlineResponse2005
337
- */
338
- program: string;
339
- /**
340
- *
341
- * @type {string}
342
- * @memberof InlineResponse2005
343
- */
344
- version: string;
345
- /**
346
- *
347
- * @type {string}
348
- * @memberof InlineResponse2005
349
- */
350
- datetime: string;
351
- /**
352
- *
353
- * @type {number}
354
- * @memberof InlineResponse2005
355
- */
356
- code?: number;
357
- /**
358
- *
359
- * @type {string}
360
- * @memberof InlineResponse2005
361
- */
362
- message: string;
363
- /**
364
- *
365
- * @type {Array<SerializedRole>}
366
- * @memberof InlineResponse2005
367
- */
368
- data: Array<SerializedRole>;
369
- }
370
- /**
371
- * @export
372
- * @enum {string}
373
- */
374
- export declare enum InlineResponse2005StatusEnum {
375
- SUCCESS = "success"
376
- }
377
- /**
378
- *
379
- * @export
380
- * @interface InlineResponse2006
381
- */
382
- export interface InlineResponse2006 {
383
- /**
384
- *
385
- * @type {string}
386
- * @memberof InlineResponse2006
387
- */
388
- status: InlineResponse2006StatusEnum;
389
- /**
390
- *
391
- * @type {string}
392
- * @memberof InlineResponse2006
393
- */
394
- program: string;
395
- /**
396
- *
397
- * @type {string}
398
- * @memberof InlineResponse2006
399
- */
400
- version: string;
401
- /**
402
- *
403
- * @type {string}
404
- * @memberof InlineResponse2006
405
- */
406
- datetime: string;
407
- /**
408
- *
409
- * @type {number}
410
- * @memberof InlineResponse2006
411
- */
412
- code?: number;
413
- /**
414
- *
415
- * @type {string}
416
- * @memberof InlineResponse2006
417
- */
418
- message: string;
419
- /**
420
- *
421
- * @type {SerializedRole}
422
- * @memberof InlineResponse2006
423
- */
424
- data: SerializedRole;
425
- }
426
- /**
427
- * @export
428
- * @enum {string}
429
- */
430
- export declare enum InlineResponse2006StatusEnum {
431
- SUCCESS = "success"
432
- }
433
- /**
434
- *
435
- * @export
436
- * @interface InlineResponse2007
437
- */
438
- export interface InlineResponse2007 {
439
- /**
440
- *
441
- * @type {string}
442
- * @memberof InlineResponse2007
443
- */
444
- status: InlineResponse2007StatusEnum;
445
- /**
446
- *
447
- * @type {string}
448
- * @memberof InlineResponse2007
449
- */
450
- program: string;
451
- /**
452
- *
453
- * @type {string}
454
- * @memberof InlineResponse2007
455
- */
456
- version: string;
457
- /**
458
- *
459
- * @type {string}
460
- * @memberof InlineResponse2007
461
- */
462
- datetime: string;
463
- /**
464
- *
465
- * @type {number}
466
- * @memberof InlineResponse2007
467
- */
468
- code?: number;
469
- /**
470
- *
471
- * @type {string}
472
- * @memberof InlineResponse2007
473
- */
474
- message: string;
475
- /**
476
- *
477
- * @type {SerializedUser}
478
- * @memberof InlineResponse2007
479
- */
480
- data: SerializedUser;
481
- }
482
- /**
483
- * @export
484
- * @enum {string}
485
- */
486
- export declare enum InlineResponse2007StatusEnum {
487
- SUCCESS = "success"
488
- }
489
- /**
490
- *
491
- * @export
492
- * @interface InlineResponse200Data
493
- */
494
- export interface InlineResponse200Data {
495
- /**
496
- *
497
- * @type {string}
498
- * @memberof InlineResponse200Data
499
- */
500
- roleId: string;
501
- /**
502
- *
503
- * @type {Array<string>}
504
- * @memberof InlineResponse200Data
505
- */
506
- resourceGroupIds: Array<string>;
507
- }
508
- /**
509
- *
510
- * @export
511
- * @interface PartialPickPickResourceGroupNameOrColor
512
- */
513
- export interface PartialPickPickResourceGroupNameOrColor {
514
- /**
515
- *
516
- * @type {string}
517
- * @memberof PartialPickPickResourceGroupNameOrColor
518
- */
519
- name?: string;
520
- /**
521
- *
522
- * @type {string}
523
- * @memberof PartialPickPickResourceGroupNameOrColor
524
- */
525
- color?: string;
526
- }
527
- /**
528
- *
529
- * @export
530
- * @interface PartialPickPickRoleNameOrRulesOrUndefined
531
- */
532
- export interface PartialPickPickRoleNameOrRulesOrUndefined {
533
- /**
534
- *
535
- * @type {string}
536
- * @memberof PartialPickPickRoleNameOrRulesOrUndefined
537
- */
538
- name?: string;
539
- /**
540
- *
541
- * @type {Array<RoleRule>}
542
- * @memberof PartialPickPickRoleNameOrRulesOrUndefined
543
- */
544
- rules?: Array<RoleRule>;
545
- }
546
- /**
547
- *
548
- * @export
549
- * @interface PartialRoleIdStringResourceGroupIdsStringArray
550
- */
551
- export interface PartialRoleIdStringResourceGroupIdsStringArray {
552
- /**
553
- *
554
- * @type {string}
555
- * @memberof PartialRoleIdStringResourceGroupIdsStringArray
556
- */
557
- roleId?: string;
558
- /**
559
- *
560
- * @type {Array<string>}
561
- * @memberof PartialRoleIdStringResourceGroupIdsStringArray
562
- */
563
- resourceGroupIds?: Array<string>;
564
- }
565
- /**
566
- *
567
- * @export
568
- * @interface PasswordPolicy
569
- */
570
- export interface PasswordPolicy {
571
- /**
572
- *
573
- * @type {number}
574
- * @memberof PasswordPolicy
575
- */
576
- passwordDuration?: number;
577
- /**
578
- *
579
- * @type {number}
580
- * @memberof PasswordPolicy
581
- */
582
- nbSpCharacter?: number;
583
- /**
584
- *
585
- * @type {number}
586
- * @memberof PasswordPolicy
587
- */
588
- nbIsNotAlphabeticCharacter?: number;
589
- /**
590
- *
591
- * @type {number}
592
- * @memberof PasswordPolicy
593
- */
594
- nbNumberCharacter?: number;
595
- /**
596
- *
597
- * @type {number}
598
- * @memberof PasswordPolicy
599
- */
600
- nbLetterInLowercase?: number;
601
- /**
602
- *
603
- * @type {number}
604
- * @memberof PasswordPolicy
605
- */
606
- nbLetterInUppercase?: number;
607
- /**
608
- *
609
- * @type {number}
610
- * @memberof PasswordPolicy
611
- */
612
- nbCharacter?: number;
613
- /**
614
- *
615
- * @type {number}
616
- * @memberof PasswordPolicy
617
- */
618
- nbAttempts?: number;
619
- /**
620
- *
621
- * @type {number}
622
- * @memberof PasswordPolicy
623
- */
624
- timeEachAttempts?: number;
625
- /**
626
- *
627
- * @type {number}
628
- * @memberof PasswordPolicy
629
- */
630
- timeLockAfterNextAttempts?: number;
631
- /**
632
- *
633
- * @type {boolean}
634
- * @memberof PasswordPolicy
635
- */
636
- infiniteTimeLock?: boolean;
637
- }
638
- /**
639
- *
640
- * @export
641
- * @interface Plan
642
- */
643
- export interface Plan {
644
- /**
645
- *
646
- * @type {number}
647
- * @memberof Plan
648
- */
649
- quota: number;
650
- /**
651
- *
652
- * @type {string}
653
- * @memberof Plan
654
- */
655
- name?: string;
656
- }
657
- /**
658
- *
659
- * @export
660
- * @interface RecordProductPageOrAddCartOrPurchaseString
661
- */
662
- export interface RecordProductPageOrAddCartOrPurchaseString {
663
- /**
664
- *
665
- * @type {string}
666
- * @memberof RecordProductPageOrAddCartOrPurchaseString
667
- */
668
- product_page: string;
669
- /**
670
- *
671
- * @type {string}
672
- * @memberof RecordProductPageOrAddCartOrPurchaseString
673
- */
674
- add_cart: string;
675
- /**
676
- *
677
- * @type {string}
678
- * @memberof RecordProductPageOrAddCartOrPurchaseString
679
- */
680
- purchase: string;
681
- }
682
- /**
683
- *
684
- * @export
685
- * @interface RoleRule
686
- */
687
- export interface RoleRule {
688
- /**
689
- *
690
- * @type {Array<string>}
691
- * @memberof RoleRule
692
- */
693
- fields?: Array<string>;
694
- /**
695
- *
696
- * @type {{ [key: string]: any; }}
697
- * @memberof RoleRule
698
- */
699
- conditions?: {
700
- [key: string]: any;
1
+ import { AxiosInstance, AxiosRequestConfig } from "axios";
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
+ export default class {
5
+ axios: AxiosInstance;
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;
16
+ private getDefaultsCompany;
17
+ private setDefaultsCompany;
18
+ private getCompany;
19
+ private listInvitation;
20
+ private createInvitation;
21
+ private useInvitation;
22
+ private deleteInvitation;
23
+ private listResourceGroup;
24
+ private createResourceGroup;
25
+ private updateResourceGroup;
26
+ private deleteResourceGroup;
27
+ private listRole;
28
+ private createRole;
29
+ private updateRole;
30
+ private deleteRole;
31
+ private listUser;
32
+ private createUser;
33
+ private updatePasswordUser;
34
+ private resetPasswordUser;
35
+ private updateUser;
36
+ private deleteUser;
37
+ private setRoleUser;
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
+ };
212
+ get Company(): {
213
+ getDefaults: (options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
214
+ status: "success";
215
+ program: string;
216
+ version: string;
217
+ datetime: string;
218
+ code?: number;
219
+ message: string;
220
+ data: {
221
+ roleId: string;
222
+ resourceGroupIds: string[];
223
+ };
224
+ }>>;
225
+ setDefaults: (data: {
226
+ roleId?: string;
227
+ resourceGroupIds?: string[];
228
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
229
+ status: "success";
230
+ program: string;
231
+ version: string;
232
+ datetime: string;
233
+ code?: number;
234
+ message: string;
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
+ };
266
+ defaultRoleId: string;
267
+ defaultResourceGroupIds: string[];
268
+ address?: {
269
+ line1?: string;
270
+ line2?: string;
271
+ zipcode?: string;
272
+ city?: string;
273
+ country?: string;
274
+ };
275
+ contact?: {
276
+ name?: string;
277
+ email?: string;
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
+ };
508
+ plan: {
509
+ name?: string;
510
+ quota: number;
511
+ startDate: Date;
512
+ endDate: Date;
513
+ };
514
+ password?: {
515
+ passwordDuration?: number;
516
+ nbSpCharacter?: number;
517
+ nbIsNotAlphabeticCharacter?: number;
518
+ nbNumberCharacter?: number;
519
+ nbLetterInLowercase?: number;
520
+ nbLetterInUppercase?: number;
521
+ nbCharacter?: number;
522
+ nbAttempts?: number;
523
+ timeEachAttempts?: number;
524
+ timeLockAfterNextAttempts?: number;
525
+ infiniteTimeLock?: boolean;
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
+ };
748
+ custom?: {
749
+ colors?: string[];
750
+ };
751
+ retention: number;
752
+ features: {};
753
+ events: {
754
+ product_page: string;
755
+ add_cart: string;
756
+ purchase: string;
757
+ };
758
+ meta: {
759
+ "email-token"?: string;
760
+ esp?: string;
761
+ };
762
+ };
763
+ }>>;
764
+ };
765
+ get Invitation(): {
766
+ list: (params: {
767
+ page?: number;
768
+ perPage?: number;
769
+ state?: InvitationState;
770
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
771
+ paginationCount: number;
772
+ paginationPage: number;
773
+ paginationLimit: number;
774
+ status: "success";
775
+ program: string;
776
+ version: string;
777
+ datetime: string;
778
+ code?: number;
779
+ message: string;
780
+ data: {
781
+ readonly companyId: string & {
782
+ readonly?: "__readonly";
783
+ };
784
+ readonly roleId: string & {
785
+ readonly?: "__readonly";
786
+ };
787
+ readonly resourceGroupIds: string[];
788
+ readonly id: string & {
789
+ readonly?: "__readonly";
790
+ };
791
+ state: InvitationState;
792
+ email: string;
793
+ createdAt: Date;
794
+ usedAt?: Date;
795
+ }[];
796
+ }>>;
797
+ create: (data: {
798
+ email: string;
799
+ resourceGroupIds?: string[];
800
+ roleId?: string;
801
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
802
+ status: "success";
803
+ program: string;
804
+ version: string;
805
+ datetime: string;
806
+ code?: number;
807
+ message: string;
808
+ data: {
809
+ readonly companyId: string & {
810
+ readonly?: "__readonly";
811
+ };
812
+ readonly roleId: string & {
813
+ readonly?: "__readonly";
814
+ };
815
+ readonly resourceGroupIds: string[];
816
+ readonly id: string & {
817
+ readonly?: "__readonly";
818
+ };
819
+ state: InvitationState;
820
+ email: string;
821
+ createdAt: Date;
822
+ usedAt?: Date;
823
+ };
824
+ }>>;
825
+ use: (params: {
826
+ id: string;
827
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
828
+ status: "success";
829
+ program: string;
830
+ version: string;
831
+ datetime: string;
832
+ code?: number;
833
+ message: string;
834
+ data: {
835
+ id: string;
836
+ };
837
+ }>>;
838
+ delete: (params: {
839
+ id: string;
840
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
841
+ status: "success";
842
+ program: string;
843
+ version: string;
844
+ datetime: string;
845
+ code?: number;
846
+ message: string;
847
+ data: {
848
+ readonly companyId: string & {
849
+ readonly?: "__readonly";
850
+ };
851
+ readonly roleId: string & {
852
+ readonly?: "__readonly";
853
+ };
854
+ readonly resourceGroupIds: string[];
855
+ readonly id: string & {
856
+ readonly?: "__readonly";
857
+ };
858
+ state: InvitationState;
859
+ email: string;
860
+ createdAt: Date;
861
+ usedAt?: Date;
862
+ };
863
+ }>>;
864
+ };
865
+ get ResourceGroup(): {
866
+ list: (options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
867
+ status: "success";
868
+ program: string;
869
+ version: string;
870
+ datetime: string;
871
+ code?: number;
872
+ message: string;
873
+ data: ({
874
+ readonly companyId: string & {
875
+ readonly?: "__readonly";
876
+ };
877
+ readonly id: string & {
878
+ readonly?: "__readonly";
879
+ };
880
+ name: string;
881
+ color?: string;
882
+ } & {
883
+ usersCount: number;
884
+ })[];
885
+ }>>;
886
+ create: (data: {
887
+ name: string;
888
+ color?: string;
889
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
890
+ status: "success";
891
+ program: string;
892
+ version: string;
893
+ datetime: string;
894
+ code?: number;
895
+ message: string;
896
+ data: {
897
+ readonly companyId: string & {
898
+ readonly?: "__readonly";
899
+ };
900
+ readonly id: string & {
901
+ readonly?: "__readonly";
902
+ };
903
+ name: string;
904
+ color?: string;
905
+ };
906
+ }>>;
907
+ update: (params: {
908
+ id: string;
909
+ }, data: {
910
+ name?: string;
911
+ color?: string;
912
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
913
+ status: "success";
914
+ program: string;
915
+ version: string;
916
+ datetime: string;
917
+ code?: number;
918
+ message: string;
919
+ data: {
920
+ readonly companyId: string & {
921
+ readonly?: "__readonly";
922
+ };
923
+ readonly id: string & {
924
+ readonly?: "__readonly";
925
+ };
926
+ name: string;
927
+ color?: string;
928
+ };
929
+ }>>;
930
+ delete: (params: {
931
+ id: string;
932
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
933
+ status: "success";
934
+ program: string;
935
+ version: string;
936
+ datetime: string;
937
+ code?: number;
938
+ message: string;
939
+ data: {};
940
+ }>>;
941
+ };
942
+ get Role(): {
943
+ list: (options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
944
+ status: "success";
945
+ program: string;
946
+ version: string;
947
+ datetime: string;
948
+ code?: number;
949
+ message: string;
950
+ data: ({
951
+ readonly companyId: string & {
952
+ readonly?: "__readonly";
953
+ };
954
+ readonly id: string & {
955
+ readonly?: "__readonly";
956
+ };
957
+ name: string;
958
+ rules: {
959
+ action: "create" | "read" | "update" | "delete" | "access";
960
+ fields?: string[];
961
+ conditions?: {};
962
+ inverted?: boolean;
963
+ reason?: string;
964
+ subject: "Company" | "Block" | "Campaign" | "BranchGroup" | "Datasource" | "OAuthClient" | "Statistics" | "BlockContent" | "User" | "Billing" | "Role" | "ResourceGroup" | "Invitation";
965
+ mustMatch?: ("companyId" | "roleId" | "resourceGroupIds" | "id" | {
966
+ field: string;
967
+ value: "companyId" | "roleId" | "resourceGroupIds" | "id";
968
+ })[];
969
+ }[];
970
+ } & {
971
+ usersCount: number;
972
+ })[];
973
+ }>>;
974
+ create: (data: {
975
+ name: string;
976
+ rules: {
977
+ action: "create" | "read" | "update" | "delete" | "access";
978
+ fields?: string[];
979
+ conditions?: {};
980
+ inverted?: boolean;
981
+ reason?: string;
982
+ subject: "Company" | "Block" | "Campaign" | "BranchGroup" | "Datasource" | "OAuthClient" | "Statistics" | "BlockContent" | "User" | "Billing" | "Role" | "ResourceGroup" | "Invitation";
983
+ mustMatch?: ("companyId" | "roleId" | "resourceGroupIds" | "id" | {
984
+ field: string;
985
+ value: "companyId" | "roleId" | "resourceGroupIds" | "id";
986
+ })[];
987
+ }[];
988
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
989
+ status: "success";
990
+ program: string;
991
+ version: string;
992
+ datetime: string;
993
+ code?: number;
994
+ message: string;
995
+ data: {
996
+ readonly companyId: string & {
997
+ readonly?: "__readonly";
998
+ };
999
+ readonly id: string & {
1000
+ readonly?: "__readonly";
1001
+ };
1002
+ name: string;
1003
+ rules: {
1004
+ action: "create" | "read" | "update" | "delete" | "access";
1005
+ fields?: string[];
1006
+ conditions?: {};
1007
+ inverted?: boolean;
1008
+ reason?: string;
1009
+ subject: "Company" | "Block" | "Campaign" | "BranchGroup" | "Datasource" | "OAuthClient" | "Statistics" | "BlockContent" | "User" | "Billing" | "Role" | "ResourceGroup" | "Invitation";
1010
+ mustMatch?: ("companyId" | "roleId" | "resourceGroupIds" | "id" | {
1011
+ field: string;
1012
+ value: "companyId" | "roleId" | "resourceGroupIds" | "id";
1013
+ })[];
1014
+ }[];
1015
+ };
1016
+ }>>;
1017
+ update: (params: {
1018
+ id: string;
1019
+ }, data: {
1020
+ name?: string;
1021
+ rules?: {
1022
+ action: "create" | "read" | "update" | "delete" | "access";
1023
+ fields?: string[];
1024
+ conditions?: {};
1025
+ inverted?: boolean;
1026
+ reason?: string;
1027
+ subject: "Company" | "Block" | "Campaign" | "BranchGroup" | "Datasource" | "OAuthClient" | "Statistics" | "BlockContent" | "User" | "Billing" | "Role" | "ResourceGroup" | "Invitation";
1028
+ mustMatch?: ("companyId" | "roleId" | "resourceGroupIds" | "id" | {
1029
+ field: string;
1030
+ value: "companyId" | "roleId" | "resourceGroupIds" | "id";
1031
+ })[];
1032
+ }[];
1033
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
1034
+ status: "success";
1035
+ program: string;
1036
+ version: string;
1037
+ datetime: string;
1038
+ code?: number;
1039
+ message: string;
1040
+ data: {
1041
+ readonly companyId: string & {
1042
+ readonly?: "__readonly";
1043
+ };
1044
+ readonly id: string & {
1045
+ readonly?: "__readonly";
1046
+ };
1047
+ name: string;
1048
+ rules: {
1049
+ action: "create" | "read" | "update" | "delete" | "access";
1050
+ fields?: string[];
1051
+ conditions?: {};
1052
+ inverted?: boolean;
1053
+ reason?: string;
1054
+ subject: "Company" | "Block" | "Campaign" | "BranchGroup" | "Datasource" | "OAuthClient" | "Statistics" | "BlockContent" | "User" | "Billing" | "Role" | "ResourceGroup" | "Invitation";
1055
+ mustMatch?: ("companyId" | "roleId" | "resourceGroupIds" | "id" | {
1056
+ field: string;
1057
+ value: "companyId" | "roleId" | "resourceGroupIds" | "id";
1058
+ })[];
1059
+ }[];
1060
+ };
1061
+ }>>;
1062
+ delete: (params: {
1063
+ id: string;
1064
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
1065
+ status: "success";
1066
+ program: string;
1067
+ version: string;
1068
+ datetime: string;
1069
+ code?: number;
1070
+ message: string;
1071
+ data: {};
1072
+ }>>;
1073
+ };
1074
+ get User(): {
1075
+ list: (params: {
1076
+ page?: number;
1077
+ perPage?: number;
1078
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
1079
+ paginationCount: number;
1080
+ paginationPage: number;
1081
+ paginationLimit: number;
1082
+ status: "success";
1083
+ program: string;
1084
+ version: string;
1085
+ datetime: string;
1086
+ code?: number;
1087
+ message: string;
1088
+ data: {
1089
+ readonly companyId: string & {
1090
+ readonly?: "__readonly";
1091
+ };
1092
+ readonly roleId: string & {
1093
+ readonly?: "__readonly";
1094
+ };
1095
+ readonly resourceGroupIds: string[];
1096
+ readonly id: string & {
1097
+ readonly?: "__readonly";
1098
+ };
1099
+ readonly disabled: (false & {
1100
+ readonly?: "__readonly";
1101
+ }) | (true & {
1102
+ readonly?: "__readonly";
1103
+ });
1104
+ email: string;
1105
+ readonly lastPasswordUpdate: Date & {
1106
+ readonly?: "__readonly";
1107
+ };
1108
+ readonly mustUpdatePassword: (false & {
1109
+ readonly?: "__readonly";
1110
+ }) | (true & {
1111
+ readonly?: "__readonly";
1112
+ });
1113
+ readonly connection: {
1114
+ readonly?: "__readonly";
1115
+ lastAttempts?: Date;
1116
+ nbFail?: number;
1117
+ };
1118
+ profile?: {
1119
+ firstname?: string;
1120
+ lastname?: string;
1121
+ jobtitle?: string;
1122
+ phone?: string;
1123
+ preferredLang?: string;
1124
+ preferredRecipientId?: string;
1125
+ preferredMessageId?: string;
1126
+ preferredUtm?: {
1127
+ medium?: string;
1128
+ source?: string;
1129
+ campaign?: string;
1130
+ };
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
+ };
1143
+ }[];
1144
+ }>>;
1145
+ create: (data: {
1146
+ invitationId: string;
1147
+ profile: {
1148
+ firstname?: string;
1149
+ lastname?: string;
1150
+ jobtitle?: string;
1151
+ phone?: string;
1152
+ preferredLang?: string;
1153
+ preferredRecipientId?: string;
1154
+ preferredMessageId?: string;
1155
+ preferredUtm?: {
1156
+ medium?: string;
1157
+ source?: string;
1158
+ campaign?: string;
1159
+ };
1160
+ };
1161
+ password: string;
1162
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
1163
+ status: "success";
1164
+ program: string;
1165
+ version: string;
1166
+ datetime: string;
1167
+ code?: number;
1168
+ message: string;
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
+ };
1508
+ readonly roleId: string & {
1509
+ readonly?: "__readonly";
1510
+ };
1511
+ readonly resourceGroupIds: string[];
1512
+ readonly id: string & {
1513
+ readonly?: "__readonly";
1514
+ };
1515
+ readonly disabled: (false & {
1516
+ readonly?: "__readonly";
1517
+ }) | (true & {
1518
+ readonly?: "__readonly";
1519
+ });
1520
+ email: string;
1521
+ readonly lastPasswordUpdate: Date & {
1522
+ readonly?: "__readonly";
1523
+ };
1524
+ readonly mustUpdatePassword: (false & {
1525
+ readonly?: "__readonly";
1526
+ }) | (true & {
1527
+ readonly?: "__readonly";
1528
+ });
1529
+ readonly connection: {
1530
+ readonly?: "__readonly";
1531
+ lastAttempts?: Date;
1532
+ nbFail?: number;
1533
+ };
1534
+ profile?: {
1535
+ firstname?: string;
1536
+ lastname?: string;
1537
+ jobtitle?: string;
1538
+ phone?: string;
1539
+ preferredLang?: string;
1540
+ preferredRecipientId?: string;
1541
+ preferredMessageId?: string;
1542
+ preferredUtm?: {
1543
+ medium?: string;
1544
+ source?: string;
1545
+ campaign?: string;
1546
+ };
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
+ };
1559
+ };
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
+ }>>;
1572
+ update: (params: {
1573
+ id: string;
1574
+ }, data: {
1575
+ email?: string;
1576
+ profile?: {
1577
+ firstname?: string;
1578
+ lastname?: string;
1579
+ jobtitle?: string;
1580
+ phone?: string;
1581
+ preferredLang?: string;
1582
+ preferredRecipientId?: string;
1583
+ preferredMessageId?: string;
1584
+ preferredUtm?: {
1585
+ medium?: string;
1586
+ source?: string;
1587
+ campaign?: string;
1588
+ };
1589
+ };
1590
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
1591
+ status: "success";
1592
+ program: string;
1593
+ version: string;
1594
+ datetime: string;
1595
+ code?: number;
1596
+ message: string;
1597
+ data: {
1598
+ readonly companyId: string & {
1599
+ readonly?: "__readonly";
1600
+ };
1601
+ readonly roleId: string & {
1602
+ readonly?: "__readonly";
1603
+ };
1604
+ readonly resourceGroupIds: string[];
1605
+ readonly id: string & {
1606
+ readonly?: "__readonly";
1607
+ };
1608
+ readonly disabled: (false & {
1609
+ readonly?: "__readonly";
1610
+ }) | (true & {
1611
+ readonly?: "__readonly";
1612
+ });
1613
+ email: string;
1614
+ readonly lastPasswordUpdate: Date & {
1615
+ readonly?: "__readonly";
1616
+ };
1617
+ readonly mustUpdatePassword: (false & {
1618
+ readonly?: "__readonly";
1619
+ }) | (true & {
1620
+ readonly?: "__readonly";
1621
+ });
1622
+ readonly connection: {
1623
+ readonly?: "__readonly";
1624
+ lastAttempts?: Date;
1625
+ nbFail?: number;
1626
+ };
1627
+ profile?: {
1628
+ firstname?: string;
1629
+ lastname?: string;
1630
+ jobtitle?: string;
1631
+ phone?: string;
1632
+ preferredLang?: string;
1633
+ preferredRecipientId?: string;
1634
+ preferredMessageId?: string;
1635
+ preferredUtm?: {
1636
+ medium?: string;
1637
+ source?: string;
1638
+ campaign?: string;
1639
+ };
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
+ };
1652
+ };
1653
+ }>>;
1654
+ delete: (params: {
1655
+ id: string;
1656
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
1657
+ status: "success";
1658
+ program: string;
1659
+ version: string;
1660
+ datetime: string;
1661
+ code?: number;
1662
+ message: string;
1663
+ data: {
1664
+ readonly companyId: string & {
1665
+ readonly?: "__readonly";
1666
+ };
1667
+ readonly roleId: string & {
1668
+ readonly?: "__readonly";
1669
+ };
1670
+ readonly resourceGroupIds: string[];
1671
+ readonly id: string & {
1672
+ readonly?: "__readonly";
1673
+ };
1674
+ readonly disabled: (false & {
1675
+ readonly?: "__readonly";
1676
+ }) | (true & {
1677
+ readonly?: "__readonly";
1678
+ });
1679
+ email: string;
1680
+ readonly lastPasswordUpdate: Date & {
1681
+ readonly?: "__readonly";
1682
+ };
1683
+ readonly mustUpdatePassword: (false & {
1684
+ readonly?: "__readonly";
1685
+ }) | (true & {
1686
+ readonly?: "__readonly";
1687
+ });
1688
+ readonly connection: {
1689
+ readonly?: "__readonly";
1690
+ lastAttempts?: Date;
1691
+ nbFail?: number;
1692
+ };
1693
+ profile?: {
1694
+ firstname?: string;
1695
+ lastname?: string;
1696
+ jobtitle?: string;
1697
+ phone?: string;
1698
+ preferredLang?: string;
1699
+ preferredRecipientId?: string;
1700
+ preferredMessageId?: string;
1701
+ preferredUtm?: {
1702
+ medium?: string;
1703
+ source?: string;
1704
+ campaign?: string;
1705
+ };
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
+ };
1718
+ };
1719
+ }>>;
1720
+ setRole: (params: {
1721
+ id: string;
1722
+ }, data: {
1723
+ id: string;
1724
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
1725
+ status: "success";
1726
+ program: string;
1727
+ version: string;
1728
+ datetime: string;
1729
+ code?: number;
1730
+ message: string;
1731
+ data: {
1732
+ readonly companyId: string & {
1733
+ readonly?: "__readonly";
1734
+ };
1735
+ readonly roleId: string & {
1736
+ readonly?: "__readonly";
1737
+ };
1738
+ readonly resourceGroupIds: string[];
1739
+ readonly id: string & {
1740
+ readonly?: "__readonly";
1741
+ };
1742
+ readonly disabled: (false & {
1743
+ readonly?: "__readonly";
1744
+ }) | (true & {
1745
+ readonly?: "__readonly";
1746
+ });
1747
+ email: string;
1748
+ readonly lastPasswordUpdate: Date & {
1749
+ readonly?: "__readonly";
1750
+ };
1751
+ readonly mustUpdatePassword: (false & {
1752
+ readonly?: "__readonly";
1753
+ }) | (true & {
1754
+ readonly?: "__readonly";
1755
+ });
1756
+ readonly connection: {
1757
+ readonly?: "__readonly";
1758
+ lastAttempts?: Date;
1759
+ nbFail?: number;
1760
+ };
1761
+ profile?: {
1762
+ firstname?: string;
1763
+ lastname?: string;
1764
+ jobtitle?: string;
1765
+ phone?: string;
1766
+ preferredLang?: string;
1767
+ preferredRecipientId?: string;
1768
+ preferredMessageId?: string;
1769
+ preferredUtm?: {
1770
+ medium?: string;
1771
+ source?: string;
1772
+ campaign?: string;
1773
+ };
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
+ };
1786
+ };
1787
+ }>>;
1788
+ setResourceGroups: (params: {
1789
+ id: string;
1790
+ }, data: {
1791
+ ids: string[];
1792
+ }, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
1793
+ status: "success";
1794
+ program: string;
1795
+ version: string;
1796
+ datetime: string;
1797
+ code?: number;
1798
+ message: string;
1799
+ data: {
1800
+ readonly companyId: string & {
1801
+ readonly?: "__readonly";
1802
+ };
1803
+ readonly roleId: string & {
1804
+ readonly?: "__readonly";
1805
+ };
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: {
1873
+ readonly companyId: string & {
1874
+ readonly?: "__readonly";
1875
+ };
1876
+ readonly roleId: string & {
1877
+ readonly?: "__readonly";
1878
+ };
1879
+ readonly resourceGroupIds: string[];
1880
+ readonly id: string & {
1881
+ readonly?: "__readonly";
1882
+ };
1883
+ readonly disabled: (false & {
1884
+ readonly?: "__readonly";
1885
+ }) | (true & {
1886
+ readonly?: "__readonly";
1887
+ });
1888
+ email: string;
1889
+ readonly lastPasswordUpdate: Date & {
1890
+ readonly?: "__readonly";
1891
+ };
1892
+ readonly mustUpdatePassword: (false & {
1893
+ readonly?: "__readonly";
1894
+ }) | (true & {
1895
+ readonly?: "__readonly";
1896
+ });
1897
+ readonly connection: {
1898
+ readonly?: "__readonly";
1899
+ lastAttempts?: Date;
1900
+ nbFail?: number;
1901
+ };
1902
+ profile?: {
1903
+ firstname?: string;
1904
+ lastname?: string;
1905
+ jobtitle?: string;
1906
+ phone?: string;
1907
+ preferredLang?: string;
1908
+ preferredRecipientId?: string;
1909
+ preferredMessageId?: string;
1910
+ preferredUtm?: {
1911
+ medium?: string;
1912
+ source?: string;
1913
+ campaign?: string;
1914
+ };
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
+ };
1927
+ };
1928
+ }>>;
701
1929
  };
702
- /**
703
- *
704
- * @type {boolean}
705
- * @memberof RoleRule
706
- */
707
- inverted?: boolean;
708
- /**
709
- *
710
- * @type {string}
711
- * @memberof RoleRule
712
- */
713
- reason?: string;
714
- /**
715
- *
716
- * @type {string}
717
- * @memberof RoleRule
718
- */
719
- action: string;
720
- /**
721
- *
722
- * @type {string}
723
- * @memberof RoleRule
724
- */
725
- subject: string;
726
- /**
727
- *
728
- * @type {Array<string | object>}
729
- * @memberof RoleRule
730
- */
731
- mustMatch?: Array<string | object>;
732
- }
733
- /**
734
- *
735
- * @export
736
- * @interface SerializedCompany
737
- */
738
- export interface SerializedCompany {
739
- /**
740
- *
741
- * @type {string}
742
- * @memberof SerializedCompany
743
- */
744
- defaultRoleId: string;
745
- /**
746
- *
747
- * @type {Array<string>}
748
- * @memberof SerializedCompany
749
- */
750
- defaultResourceGroupIds: Array<string>;
751
- /**
752
- *
753
- * @type {string}
754
- * @memberof SerializedCompany
755
- */
756
- name: string;
757
- /**
758
- *
759
- * @type {SerializedCompanyAddress}
760
- * @memberof SerializedCompany
761
- */
762
- address?: SerializedCompanyAddress;
763
- /**
764
- *
765
- * @type {SerializedCompanyContact}
766
- * @memberof SerializedCompany
767
- */
768
- contact?: SerializedCompanyContact;
769
- /**
770
- *
771
- * @type {Plan & object}
772
- * @memberof SerializedCompany
773
- */
774
- plan: Plan & object;
775
- /**
776
- *
777
- * @type {PasswordPolicy}
778
- * @memberof SerializedCompany
779
- */
780
- password?: PasswordPolicy;
781
- /**
782
- *
783
- * @type {SerializedCompanyCustom}
784
- * @memberof SerializedCompany
785
- */
786
- custom?: SerializedCompanyCustom;
787
- /**
788
- *
789
- * @type {number}
790
- * @memberof SerializedCompany
791
- */
792
- retention: number;
793
- /**
794
- *
795
- * @type {object}
796
- * @memberof SerializedCompany
797
- */
798
- features: object;
799
- /**
800
- *
801
- * @type {RecordProductPageOrAddCartOrPurchaseString}
802
- * @memberof SerializedCompany
803
- */
804
- events: RecordProductPageOrAddCartOrPurchaseString;
805
- /**
806
- *
807
- * @type {boolean}
808
- * @memberof SerializedCompany
809
- */
810
- disabled: boolean;
811
- /**
812
- *
813
- * @type {SerializedCompanyMeta}
814
- * @memberof SerializedCompany
815
- */
816
- meta: SerializedCompanyMeta;
817
- }
818
- /**
819
- *
820
- * @export
821
- * @interface SerializedCompanyAddress
822
- */
823
- export interface SerializedCompanyAddress {
824
- /**
825
- *
826
- * @type {string}
827
- * @memberof SerializedCompanyAddress
828
- */
829
- line1?: string;
830
- /**
831
- *
832
- * @type {string}
833
- * @memberof SerializedCompanyAddress
834
- */
835
- line2?: string;
836
- /**
837
- *
838
- * @type {string}
839
- * @memberof SerializedCompanyAddress
840
- */
841
- zipcode?: string;
842
- /**
843
- *
844
- * @type {string}
845
- * @memberof SerializedCompanyAddress
846
- */
847
- city?: string;
848
- /**
849
- *
850
- * @type {string}
851
- * @memberof SerializedCompanyAddress
852
- */
853
- country?: string;
854
- }
855
- /**
856
- *
857
- * @export
858
- * @interface SerializedCompanyContact
859
- */
860
- export interface SerializedCompanyContact {
861
- /**
862
- *
863
- * @type {string}
864
- * @memberof SerializedCompanyContact
865
- */
866
- name?: string;
867
- /**
868
- *
869
- * @type {string}
870
- * @memberof SerializedCompanyContact
871
- */
872
- email?: string;
873
- }
874
- /**
875
- *
876
- * @export
877
- * @interface SerializedCompanyCustom
878
- */
879
- export interface SerializedCompanyCustom {
880
- /**
881
- *
882
- * @type {Array<string>}
883
- * @memberof SerializedCompanyCustom
884
- */
885
- colors?: Array<string>;
886
- }
887
- /**
888
- *
889
- * @export
890
- * @interface SerializedCompanyMeta
891
- */
892
- export interface SerializedCompanyMeta {
893
- /**
894
- *
895
- * @type {string}
896
- * @memberof SerializedCompanyMeta
897
- */
898
- email_token?: string;
899
- /**
900
- *
901
- * @type {string}
902
- * @memberof SerializedCompanyMeta
903
- */
904
- esp?: string;
905
- }
906
- /**
907
- *
908
- * @export
909
- * @interface SerializedResourceGroup
910
- */
911
- export interface SerializedResourceGroup {
912
- /**
913
- *
914
- * @type {string}
915
- * @memberof SerializedResourceGroup
916
- */
917
- id: string;
918
- /**
919
- *
920
- * @type {string}
921
- * @memberof SerializedResourceGroup
922
- */
923
- companyId: string;
924
- /**
925
- *
926
- * @type {string}
927
- * @memberof SerializedResourceGroup
928
- */
929
- name: string;
930
- /**
931
- *
932
- * @type {string}
933
- * @memberof SerializedResourceGroup
934
- */
935
- color?: string;
936
- }
937
- /**
938
- *
939
- * @export
940
- * @interface SerializedRole
941
- */
942
- export interface SerializedRole {
943
- /**
944
- *
945
- * @type {string}
946
- * @memberof SerializedRole
947
- */
948
- id: string;
949
- /**
950
- *
951
- * @type {string}
952
- * @memberof SerializedRole
953
- */
954
- companyId: string;
955
- /**
956
- *
957
- * @type {string}
958
- * @memberof SerializedRole
959
- */
960
- name: string;
961
- /**
962
- *
963
- * @type {Array<RoleRule>}
964
- * @memberof SerializedRole
965
- */
966
- rules: Array<RoleRule>;
967
- }
968
- /**
969
- *
970
- * @export
971
- * @interface SerializedUser
972
- */
973
- export interface SerializedUser {
974
- /**
975
- *
976
- * @type {string}
977
- * @memberof SerializedUser
978
- */
979
- companyId: string;
980
- /**
981
- *
982
- * @type {string}
983
- * @memberof SerializedUser
984
- */
985
- roleId: string;
986
- /**
987
- *
988
- * @type {Array<string>}
989
- * @memberof SerializedUser
990
- */
991
- resourceGroupIds: Array<string>;
992
- /**
993
- *
994
- * @type {string}
995
- * @memberof SerializedUser
996
- */
997
- password: string;
998
- /**
999
- *
1000
- * @type {boolean}
1001
- * @memberof SerializedUser
1002
- */
1003
- disabled: boolean;
1004
- /**
1005
- *
1006
- * @type {string}
1007
- * @memberof SerializedUser
1008
- */
1009
- email: string;
1010
- /**
1011
- *
1012
- * @type {string}
1013
- * @memberof SerializedUser
1014
- */
1015
- lastPasswordUpdate: string;
1016
- /**
1017
- *
1018
- * @type {boolean}
1019
- * @memberof SerializedUser
1020
- */
1021
- mustUpdatePassword: boolean;
1022
- /**
1023
- *
1024
- * @type {SerializedUserConnection}
1025
- * @memberof SerializedUser
1026
- */
1027
- connection: SerializedUserConnection;
1028
- /**
1029
- *
1030
- * @type {UserProfile}
1031
- * @memberof SerializedUser
1032
- */
1033
- profile?: UserProfile;
1034
- }
1035
- /**
1036
- *
1037
- * @export
1038
- * @interface SerializedUserConnection
1039
- */
1040
- export interface SerializedUserConnection {
1041
- /**
1042
- *
1043
- * @type {string}
1044
- * @memberof SerializedUserConnection
1045
- */
1046
- lastAttempts?: string;
1047
- /**
1048
- *
1049
- * @type {number}
1050
- * @memberof SerializedUserConnection
1051
- */
1052
- nbFail?: number;
1053
- }
1054
- /**
1055
- *
1056
- * @export
1057
- * @interface UserProfile
1058
- */
1059
- export interface UserProfile {
1060
- /**
1061
- *
1062
- * @type {string}
1063
- * @memberof UserProfile
1064
- */
1065
- firstname?: string;
1066
- /**
1067
- *
1068
- * @type {string}
1069
- * @memberof UserProfile
1070
- */
1071
- lastname?: string;
1072
- /**
1073
- *
1074
- * @type {string}
1075
- * @memberof UserProfile
1076
- */
1077
- jobtitle?: string;
1078
- /**
1079
- *
1080
- * @type {string}
1081
- * @memberof UserProfile
1082
- */
1083
- phone?: string;
1084
- /**
1085
- *
1086
- * @type {string}
1087
- * @memberof UserProfile
1088
- */
1089
- preferredLang?: string;
1090
- }
1091
- /**
1092
- * CompanyApi - axios parameter creator
1093
- * @export
1094
- */
1095
- export declare const CompanyApiAxiosParamCreator: (configuration?: Configuration) => {
1096
- /**
1097
- *
1098
- * @param {*} [options] Override http request option.
1099
- * @throws {RequiredError}
1100
- */
1101
- getCompanyDefaults: (options?: any) => Promise<RequestArgs>;
1102
- /**
1103
- *
1104
- * @param {PartialRoleIdStringResourceGroupIdsStringArray} partialRoleIdStringResourceGroupIdsStringArray
1105
- * @param {*} [options] Override http request option.
1106
- * @throws {RequiredError}
1107
- */
1108
- setCompanyDefaults: (partialRoleIdStringResourceGroupIdsStringArray: PartialRoleIdStringResourceGroupIdsStringArray, options?: any) => Promise<RequestArgs>;
1109
- };
1110
- /**
1111
- * CompanyApi - functional programming interface
1112
- * @export
1113
- */
1114
- export declare const CompanyApiFp: (configuration?: Configuration) => {
1115
- /**
1116
- *
1117
- * @param {*} [options] Override http request option.
1118
- * @throws {RequiredError}
1119
- */
1120
- getCompanyDefaults(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>>;
1121
- /**
1122
- *
1123
- * @param {PartialRoleIdStringResourceGroupIdsStringArray} partialRoleIdStringResourceGroupIdsStringArray
1124
- * @param {*} [options] Override http request option.
1125
- * @throws {RequiredError}
1126
- */
1127
- setCompanyDefaults(partialRoleIdStringResourceGroupIdsStringArray: PartialRoleIdStringResourceGroupIdsStringArray, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2001>>;
1128
- };
1129
- /**
1130
- * CompanyApi - factory interface
1131
- * @export
1132
- */
1133
- export declare const CompanyApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1134
- /**
1135
- *
1136
- * @param {*} [options] Override http request option.
1137
- * @throws {RequiredError}
1138
- */
1139
- getCompanyDefaults(options?: any): AxiosPromise<InlineResponse200>;
1140
- /**
1141
- *
1142
- * @param {PartialRoleIdStringResourceGroupIdsStringArray} partialRoleIdStringResourceGroupIdsStringArray
1143
- * @param {*} [options] Override http request option.
1144
- * @throws {RequiredError}
1145
- */
1146
- setCompanyDefaults(partialRoleIdStringResourceGroupIdsStringArray: PartialRoleIdStringResourceGroupIdsStringArray, options?: any): AxiosPromise<InlineResponse2001>;
1147
- };
1148
- /**
1149
- * Request parameters for setCompanyDefaults operation in CompanyApi.
1150
- * @export
1151
- * @interface CompanyApiSetCompanyDefaultsRequest
1152
- */
1153
- export interface CompanyApiSetCompanyDefaultsRequest {
1154
- /**
1155
- *
1156
- * @type {PartialRoleIdStringResourceGroupIdsStringArray}
1157
- * @memberof CompanyApiSetCompanyDefaults
1158
- */
1159
- readonly partialRoleIdStringResourceGroupIdsStringArray: PartialRoleIdStringResourceGroupIdsStringArray;
1160
- }
1161
- /**
1162
- * CompanyApi - object-oriented interface
1163
- * @export
1164
- * @class CompanyApi
1165
- * @extends {BaseAPI}
1166
- */
1167
- export declare class CompanyApi extends BaseAPI {
1168
- /**
1169
- *
1170
- * @param {*} [options] Override http request option.
1171
- * @throws {RequiredError}
1172
- * @memberof CompanyApi
1173
- */
1174
- getCompanyDefaults(options?: any): Promise<import("axios").AxiosResponse<InlineResponse200>>;
1175
- /**
1176
- *
1177
- * @param {CompanyApiSetCompanyDefaultsRequest} requestParameters Request parameters.
1178
- * @param {*} [options] Override http request option.
1179
- * @throws {RequiredError}
1180
- * @memberof CompanyApi
1181
- */
1182
- setCompanyDefaults(requestParameters: CompanyApiSetCompanyDefaultsRequest, options?: any): Promise<import("axios").AxiosResponse<InlineResponse2001>>;
1183
- }
1184
- /**
1185
- * ResourceGroupApi - axios parameter creator
1186
- * @export
1187
- */
1188
- export declare const ResourceGroupApiAxiosParamCreator: (configuration?: Configuration) => {
1189
- /**
1190
- *
1191
- * @param {SerializedResourceGroup} body
1192
- * @param {*} [options] Override http request option.
1193
- * @throws {RequiredError}
1194
- */
1195
- createResourceGroup: (body: SerializedResourceGroup, options?: any) => Promise<RequestArgs>;
1196
- /**
1197
- *
1198
- * @param {string} id
1199
- * @param {*} [options] Override http request option.
1200
- * @throws {RequiredError}
1201
- */
1202
- deleteResourceGroup: (id: string, options?: any) => Promise<RequestArgs>;
1203
- /**
1204
- *
1205
- * @param {*} [options] Override http request option.
1206
- * @throws {RequiredError}
1207
- */
1208
- getResourceGroups: (options?: any) => Promise<RequestArgs>;
1209
- /**
1210
- *
1211
- * @param {string} id
1212
- * @param {PartialPickPickResourceGroupNameOrColor} partialPickPickResourceGroupNameOrColor
1213
- * @param {*} [options] Override http request option.
1214
- * @throws {RequiredError}
1215
- */
1216
- updateResourceGroup: (id: string, partialPickPickResourceGroupNameOrColor: PartialPickPickResourceGroupNameOrColor, options?: any) => Promise<RequestArgs>;
1217
- };
1218
- /**
1219
- * ResourceGroupApi - functional programming interface
1220
- * @export
1221
- */
1222
- export declare const ResourceGroupApiFp: (configuration?: Configuration) => {
1223
- /**
1224
- *
1225
- * @param {SerializedResourceGroup} body
1226
- * @param {*} [options] Override http request option.
1227
- * @throws {RequiredError}
1228
- */
1229
- createResourceGroup(body: SerializedResourceGroup, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2003>>;
1230
- /**
1231
- *
1232
- * @param {string} id
1233
- * @param {*} [options] Override http request option.
1234
- * @throws {RequiredError}
1235
- */
1236
- deleteResourceGroup(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2004>>;
1237
- /**
1238
- *
1239
- * @param {*} [options] Override http request option.
1240
- * @throws {RequiredError}
1241
- */
1242
- getResourceGroups(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2002>>;
1243
- /**
1244
- *
1245
- * @param {string} id
1246
- * @param {PartialPickPickResourceGroupNameOrColor} partialPickPickResourceGroupNameOrColor
1247
- * @param {*} [options] Override http request option.
1248
- * @throws {RequiredError}
1249
- */
1250
- updateResourceGroup(id: string, partialPickPickResourceGroupNameOrColor: PartialPickPickResourceGroupNameOrColor, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2003>>;
1251
- };
1252
- /**
1253
- * ResourceGroupApi - factory interface
1254
- * @export
1255
- */
1256
- export declare const ResourceGroupApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1257
- /**
1258
- *
1259
- * @param {SerializedResourceGroup} body
1260
- * @param {*} [options] Override http request option.
1261
- * @throws {RequiredError}
1262
- */
1263
- createResourceGroup(body: SerializedResourceGroup, options?: any): AxiosPromise<InlineResponse2003>;
1264
- /**
1265
- *
1266
- * @param {string} id
1267
- * @param {*} [options] Override http request option.
1268
- * @throws {RequiredError}
1269
- */
1270
- deleteResourceGroup(id: string, options?: any): AxiosPromise<InlineResponse2004>;
1271
- /**
1272
- *
1273
- * @param {*} [options] Override http request option.
1274
- * @throws {RequiredError}
1275
- */
1276
- getResourceGroups(options?: any): AxiosPromise<InlineResponse2002>;
1277
- /**
1278
- *
1279
- * @param {string} id
1280
- * @param {PartialPickPickResourceGroupNameOrColor} partialPickPickResourceGroupNameOrColor
1281
- * @param {*} [options] Override http request option.
1282
- * @throws {RequiredError}
1283
- */
1284
- updateResourceGroup(id: string, partialPickPickResourceGroupNameOrColor: PartialPickPickResourceGroupNameOrColor, options?: any): AxiosPromise<InlineResponse2003>;
1285
- };
1286
- /**
1287
- * Request parameters for createResourceGroup operation in ResourceGroupApi.
1288
- * @export
1289
- * @interface ResourceGroupApiCreateResourceGroupRequest
1290
- */
1291
- export interface ResourceGroupApiCreateResourceGroupRequest {
1292
- /**
1293
- *
1294
- * @type {SerializedResourceGroup}
1295
- * @memberof ResourceGroupApiCreateResourceGroup
1296
- */
1297
- readonly body: SerializedResourceGroup;
1298
- }
1299
- /**
1300
- * Request parameters for deleteResourceGroup operation in ResourceGroupApi.
1301
- * @export
1302
- * @interface ResourceGroupApiDeleteResourceGroupRequest
1303
- */
1304
- export interface ResourceGroupApiDeleteResourceGroupRequest {
1305
- /**
1306
- *
1307
- * @type {string}
1308
- * @memberof ResourceGroupApiDeleteResourceGroup
1309
- */
1310
- readonly id: string;
1311
- }
1312
- /**
1313
- * Request parameters for updateResourceGroup operation in ResourceGroupApi.
1314
- * @export
1315
- * @interface ResourceGroupApiUpdateResourceGroupRequest
1316
- */
1317
- export interface ResourceGroupApiUpdateResourceGroupRequest {
1318
- /**
1319
- *
1320
- * @type {string}
1321
- * @memberof ResourceGroupApiUpdateResourceGroup
1322
- */
1323
- readonly id: string;
1324
- /**
1325
- *
1326
- * @type {PartialPickPickResourceGroupNameOrColor}
1327
- * @memberof ResourceGroupApiUpdateResourceGroup
1328
- */
1329
- readonly partialPickPickResourceGroupNameOrColor: PartialPickPickResourceGroupNameOrColor;
1330
- }
1331
- /**
1332
- * ResourceGroupApi - object-oriented interface
1333
- * @export
1334
- * @class ResourceGroupApi
1335
- * @extends {BaseAPI}
1336
- */
1337
- export declare class ResourceGroupApi extends BaseAPI {
1338
- /**
1339
- *
1340
- * @param {ResourceGroupApiCreateResourceGroupRequest} requestParameters Request parameters.
1341
- * @param {*} [options] Override http request option.
1342
- * @throws {RequiredError}
1343
- * @memberof ResourceGroupApi
1344
- */
1345
- createResourceGroup(requestParameters: ResourceGroupApiCreateResourceGroupRequest, options?: any): Promise<import("axios").AxiosResponse<InlineResponse2003>>;
1346
- /**
1347
- *
1348
- * @param {ResourceGroupApiDeleteResourceGroupRequest} requestParameters Request parameters.
1349
- * @param {*} [options] Override http request option.
1350
- * @throws {RequiredError}
1351
- * @memberof ResourceGroupApi
1352
- */
1353
- deleteResourceGroup(requestParameters: ResourceGroupApiDeleteResourceGroupRequest, options?: any): Promise<import("axios").AxiosResponse<InlineResponse2004>>;
1354
- /**
1355
- *
1356
- * @param {*} [options] Override http request option.
1357
- * @throws {RequiredError}
1358
- * @memberof ResourceGroupApi
1359
- */
1360
- getResourceGroups(options?: any): Promise<import("axios").AxiosResponse<InlineResponse2002>>;
1361
- /**
1362
- *
1363
- * @param {ResourceGroupApiUpdateResourceGroupRequest} requestParameters Request parameters.
1364
- * @param {*} [options] Override http request option.
1365
- * @throws {RequiredError}
1366
- * @memberof ResourceGroupApi
1367
- */
1368
- updateResourceGroup(requestParameters: ResourceGroupApiUpdateResourceGroupRequest, options?: any): Promise<import("axios").AxiosResponse<InlineResponse2003>>;
1369
- }
1370
- /**
1371
- * RoleApi - axios parameter creator
1372
- * @export
1373
- */
1374
- export declare const RoleApiAxiosParamCreator: (configuration?: Configuration) => {
1375
- /**
1376
- *
1377
- * @param {SerializedRole} body
1378
- * @param {*} [options] Override http request option.
1379
- * @throws {RequiredError}
1380
- */
1381
- createRole: (body: SerializedRole, options?: any) => Promise<RequestArgs>;
1382
- /**
1383
- *
1384
- * @param {string} id
1385
- * @param {*} [options] Override http request option.
1386
- * @throws {RequiredError}
1387
- */
1388
- deleteRole: (id: string, options?: any) => Promise<RequestArgs>;
1389
- /**
1390
- *
1391
- * @param {*} [options] Override http request option.
1392
- * @throws {RequiredError}
1393
- */
1394
- getRoles: (options?: any) => Promise<RequestArgs>;
1395
- /**
1396
- *
1397
- * @param {string} id
1398
- * @param {PartialPickPickRoleNameOrRulesOrUndefined} partialPickPickRoleNameOrRulesOrUndefined
1399
- * @param {*} [options] Override http request option.
1400
- * @throws {RequiredError}
1401
- */
1402
- updateRole: (id: string, partialPickPickRoleNameOrRulesOrUndefined: PartialPickPickRoleNameOrRulesOrUndefined, options?: any) => Promise<RequestArgs>;
1403
- };
1404
- /**
1405
- * RoleApi - functional programming interface
1406
- * @export
1407
- */
1408
- export declare const RoleApiFp: (configuration?: Configuration) => {
1409
- /**
1410
- *
1411
- * @param {SerializedRole} body
1412
- * @param {*} [options] Override http request option.
1413
- * @throws {RequiredError}
1414
- */
1415
- createRole(body: SerializedRole, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2006>>;
1416
- /**
1417
- *
1418
- * @param {string} id
1419
- * @param {*} [options] Override http request option.
1420
- * @throws {RequiredError}
1421
- */
1422
- deleteRole(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2004>>;
1423
- /**
1424
- *
1425
- * @param {*} [options] Override http request option.
1426
- * @throws {RequiredError}
1427
- */
1428
- getRoles(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2005>>;
1429
- /**
1430
- *
1431
- * @param {string} id
1432
- * @param {PartialPickPickRoleNameOrRulesOrUndefined} partialPickPickRoleNameOrRulesOrUndefined
1433
- * @param {*} [options] Override http request option.
1434
- * @throws {RequiredError}
1435
- */
1436
- updateRole(id: string, partialPickPickRoleNameOrRulesOrUndefined: PartialPickPickRoleNameOrRulesOrUndefined, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2006>>;
1437
- };
1438
- /**
1439
- * RoleApi - factory interface
1440
- * @export
1441
- */
1442
- export declare const RoleApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1443
- /**
1444
- *
1445
- * @param {SerializedRole} body
1446
- * @param {*} [options] Override http request option.
1447
- * @throws {RequiredError}
1448
- */
1449
- createRole(body: SerializedRole, options?: any): AxiosPromise<InlineResponse2006>;
1450
- /**
1451
- *
1452
- * @param {string} id
1453
- * @param {*} [options] Override http request option.
1454
- * @throws {RequiredError}
1455
- */
1456
- deleteRole(id: string, options?: any): AxiosPromise<InlineResponse2004>;
1457
- /**
1458
- *
1459
- * @param {*} [options] Override http request option.
1460
- * @throws {RequiredError}
1461
- */
1462
- getRoles(options?: any): AxiosPromise<InlineResponse2005>;
1463
- /**
1464
- *
1465
- * @param {string} id
1466
- * @param {PartialPickPickRoleNameOrRulesOrUndefined} partialPickPickRoleNameOrRulesOrUndefined
1467
- * @param {*} [options] Override http request option.
1468
- * @throws {RequiredError}
1469
- */
1470
- updateRole(id: string, partialPickPickRoleNameOrRulesOrUndefined: PartialPickPickRoleNameOrRulesOrUndefined, options?: any): AxiosPromise<InlineResponse2006>;
1471
- };
1472
- /**
1473
- * Request parameters for createRole operation in RoleApi.
1474
- * @export
1475
- * @interface RoleApiCreateRoleRequest
1476
- */
1477
- export interface RoleApiCreateRoleRequest {
1478
- /**
1479
- *
1480
- * @type {SerializedRole}
1481
- * @memberof RoleApiCreateRole
1482
- */
1483
- readonly body: SerializedRole;
1484
- }
1485
- /**
1486
- * Request parameters for deleteRole operation in RoleApi.
1487
- * @export
1488
- * @interface RoleApiDeleteRoleRequest
1489
- */
1490
- export interface RoleApiDeleteRoleRequest {
1491
- /**
1492
- *
1493
- * @type {string}
1494
- * @memberof RoleApiDeleteRole
1495
- */
1496
- readonly id: string;
1497
- }
1498
- /**
1499
- * Request parameters for updateRole operation in RoleApi.
1500
- * @export
1501
- * @interface RoleApiUpdateRoleRequest
1502
- */
1503
- export interface RoleApiUpdateRoleRequest {
1504
- /**
1505
- *
1506
- * @type {string}
1507
- * @memberof RoleApiUpdateRole
1508
- */
1509
- readonly id: string;
1510
- /**
1511
- *
1512
- * @type {PartialPickPickRoleNameOrRulesOrUndefined}
1513
- * @memberof RoleApiUpdateRole
1514
- */
1515
- readonly partialPickPickRoleNameOrRulesOrUndefined: PartialPickPickRoleNameOrRulesOrUndefined;
1516
- }
1517
- /**
1518
- * RoleApi - object-oriented interface
1519
- * @export
1520
- * @class RoleApi
1521
- * @extends {BaseAPI}
1522
- */
1523
- export declare class RoleApi extends BaseAPI {
1524
- /**
1525
- *
1526
- * @param {RoleApiCreateRoleRequest} requestParameters Request parameters.
1527
- * @param {*} [options] Override http request option.
1528
- * @throws {RequiredError}
1529
- * @memberof RoleApi
1530
- */
1531
- createRole(requestParameters: RoleApiCreateRoleRequest, options?: any): Promise<import("axios").AxiosResponse<InlineResponse2006>>;
1532
- /**
1533
- *
1534
- * @param {RoleApiDeleteRoleRequest} requestParameters Request parameters.
1535
- * @param {*} [options] Override http request option.
1536
- * @throws {RequiredError}
1537
- * @memberof RoleApi
1538
- */
1539
- deleteRole(requestParameters: RoleApiDeleteRoleRequest, options?: any): Promise<import("axios").AxiosResponse<InlineResponse2004>>;
1540
- /**
1541
- *
1542
- * @param {*} [options] Override http request option.
1543
- * @throws {RequiredError}
1544
- * @memberof RoleApi
1545
- */
1546
- getRoles(options?: any): Promise<import("axios").AxiosResponse<InlineResponse2005>>;
1547
- /**
1548
- *
1549
- * @param {RoleApiUpdateRoleRequest} requestParameters Request parameters.
1550
- * @param {*} [options] Override http request option.
1551
- * @throws {RequiredError}
1552
- * @memberof RoleApi
1553
- */
1554
- updateRole(requestParameters: RoleApiUpdateRoleRequest, options?: any): Promise<import("axios").AxiosResponse<InlineResponse2006>>;
1555
- }
1556
- /**
1557
- * UserApi - axios parameter creator
1558
- * @export
1559
- */
1560
- export declare const UserApiAxiosParamCreator: (configuration?: Configuration) => {
1561
- /**
1562
- *
1563
- * @param {string} id
1564
- * @param {InlineObject1} inlineObject1
1565
- * @param {*} [options] Override http request option.
1566
- * @throws {RequiredError}
1567
- */
1568
- setUserResourceGroups: (id: string, inlineObject1: InlineObject1, options?: any) => Promise<RequestArgs>;
1569
- /**
1570
- *
1571
- * @param {string} id
1572
- * @param {InlineObject} inlineObject
1573
- * @param {*} [options] Override http request option.
1574
- * @throws {RequiredError}
1575
- */
1576
- setUserRole: (id: string, inlineObject: InlineObject, options?: any) => Promise<RequestArgs>;
1577
- };
1578
- /**
1579
- * UserApi - functional programming interface
1580
- * @export
1581
- */
1582
- export declare const UserApiFp: (configuration?: Configuration) => {
1583
- /**
1584
- *
1585
- * @param {string} id
1586
- * @param {InlineObject1} inlineObject1
1587
- * @param {*} [options] Override http request option.
1588
- * @throws {RequiredError}
1589
- */
1590
- setUserResourceGroups(id: string, inlineObject1: InlineObject1, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2007>>;
1591
- /**
1592
- *
1593
- * @param {string} id
1594
- * @param {InlineObject} inlineObject
1595
- * @param {*} [options] Override http request option.
1596
- * @throws {RequiredError}
1597
- */
1598
- setUserRole(id: string, inlineObject: InlineObject, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2007>>;
1599
- };
1600
- /**
1601
- * UserApi - factory interface
1602
- * @export
1603
- */
1604
- export declare const UserApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1605
- /**
1606
- *
1607
- * @param {string} id
1608
- * @param {InlineObject1} inlineObject1
1609
- * @param {*} [options] Override http request option.
1610
- * @throws {RequiredError}
1611
- */
1612
- setUserResourceGroups(id: string, inlineObject1: InlineObject1, options?: any): AxiosPromise<InlineResponse2007>;
1613
- /**
1614
- *
1615
- * @param {string} id
1616
- * @param {InlineObject} inlineObject
1617
- * @param {*} [options] Override http request option.
1618
- * @throws {RequiredError}
1619
- */
1620
- setUserRole(id: string, inlineObject: InlineObject, options?: any): AxiosPromise<InlineResponse2007>;
1621
- };
1622
- /**
1623
- * Request parameters for setUserResourceGroups operation in UserApi.
1624
- * @export
1625
- * @interface UserApiSetUserResourceGroupsRequest
1626
- */
1627
- export interface UserApiSetUserResourceGroupsRequest {
1628
- /**
1629
- *
1630
- * @type {string}
1631
- * @memberof UserApiSetUserResourceGroups
1632
- */
1633
- readonly id: string;
1634
- /**
1635
- *
1636
- * @type {InlineObject1}
1637
- * @memberof UserApiSetUserResourceGroups
1638
- */
1639
- readonly inlineObject1: InlineObject1;
1640
- }
1641
- /**
1642
- * Request parameters for setUserRole operation in UserApi.
1643
- * @export
1644
- * @interface UserApiSetUserRoleRequest
1645
- */
1646
- export interface UserApiSetUserRoleRequest {
1647
- /**
1648
- *
1649
- * @type {string}
1650
- * @memberof UserApiSetUserRole
1651
- */
1652
- readonly id: string;
1653
- /**
1654
- *
1655
- * @type {InlineObject}
1656
- * @memberof UserApiSetUserRole
1657
- */
1658
- readonly inlineObject: InlineObject;
1659
- }
1660
- /**
1661
- * UserApi - object-oriented interface
1662
- * @export
1663
- * @class UserApi
1664
- * @extends {BaseAPI}
1665
- */
1666
- export declare class UserApi extends BaseAPI {
1667
- /**
1668
- *
1669
- * @param {UserApiSetUserResourceGroupsRequest} requestParameters Request parameters.
1670
- * @param {*} [options] Override http request option.
1671
- * @throws {RequiredError}
1672
- * @memberof UserApi
1673
- */
1674
- setUserResourceGroups(requestParameters: UserApiSetUserResourceGroupsRequest, options?: any): Promise<import("axios").AxiosResponse<InlineResponse2007>>;
1675
- /**
1676
- *
1677
- * @param {UserApiSetUserRoleRequest} requestParameters Request parameters.
1678
- * @param {*} [options] Override http request option.
1679
- * @throws {RequiredError}
1680
- * @memberof UserApi
1681
- */
1682
- setUserRole(requestParameters: UserApiSetUserRoleRequest, options?: any): Promise<import("axios").AxiosResponse<InlineResponse2007>>;
1683
1930
  }