@flipdish/authorization 0.0.342-rc.1787325938 → 0.0.344-rc.1787564453
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/api.ts +403 -488
- package/configuration.ts +1 -1
- package/dist/api.d.ts +330 -339
- package/dist/api.js +217 -392
- package/dist/configuration.js +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -23,116 +23,6 @@ import type { RequestArgs } from './base';
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
25
|
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @export
|
|
29
|
-
* @interface AccessBlockStateResponse
|
|
30
|
-
*/
|
|
31
|
-
export interface AccessBlockStateResponse {
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {AccessBlockStateResponseBlockedPrincipal}
|
|
35
|
-
* @memberof AccessBlockStateResponse
|
|
36
|
-
*/
|
|
37
|
-
'principal': AccessBlockStateResponseBlockedPrincipal;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof AccessBlockStateResponse
|
|
42
|
-
*/
|
|
43
|
-
'reason'?: string;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {string}
|
|
47
|
-
* @memberof AccessBlockStateResponse
|
|
48
|
-
*/
|
|
49
|
-
'blockedAt': string;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {AccessBlockStateResponseBlockedBlockedBy}
|
|
53
|
-
* @memberof AccessBlockStateResponse
|
|
54
|
-
*/
|
|
55
|
-
'blockedBy': AccessBlockStateResponseBlockedBlockedBy;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
* @export
|
|
60
|
-
* @interface AccessBlockStateResponseBlocked
|
|
61
|
-
*/
|
|
62
|
-
export interface AccessBlockStateResponseBlocked {
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
* @type {AccessBlockStateResponseBlockedPrincipal}
|
|
66
|
-
* @memberof AccessBlockStateResponseBlocked
|
|
67
|
-
*/
|
|
68
|
-
'principal': AccessBlockStateResponseBlockedPrincipal;
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
* @type {string}
|
|
72
|
-
* @memberof AccessBlockStateResponseBlocked
|
|
73
|
-
*/
|
|
74
|
-
'reason'?: string;
|
|
75
|
-
/**
|
|
76
|
-
*
|
|
77
|
-
* @type {string}
|
|
78
|
-
* @memberof AccessBlockStateResponseBlocked
|
|
79
|
-
*/
|
|
80
|
-
'blockedAt': string;
|
|
81
|
-
/**
|
|
82
|
-
*
|
|
83
|
-
* @type {AccessBlockStateResponseBlockedBlockedBy}
|
|
84
|
-
* @memberof AccessBlockStateResponseBlocked
|
|
85
|
-
*/
|
|
86
|
-
'blockedBy': AccessBlockStateResponseBlockedBlockedBy;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
*
|
|
90
|
-
* @export
|
|
91
|
-
* @interface AccessBlockStateResponseBlockedBlockedBy
|
|
92
|
-
*/
|
|
93
|
-
export interface AccessBlockStateResponseBlockedBlockedBy {
|
|
94
|
-
/**
|
|
95
|
-
*
|
|
96
|
-
* @type {string}
|
|
97
|
-
* @memberof AccessBlockStateResponseBlockedBlockedBy
|
|
98
|
-
*/
|
|
99
|
-
'principalId': string;
|
|
100
|
-
/**
|
|
101
|
-
*
|
|
102
|
-
* @type {string}
|
|
103
|
-
* @memberof AccessBlockStateResponseBlockedBlockedBy
|
|
104
|
-
*/
|
|
105
|
-
'email': string;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
*
|
|
109
|
-
* @export
|
|
110
|
-
* @interface AccessBlockStateResponseBlockedPrincipal
|
|
111
|
-
*/
|
|
112
|
-
export interface AccessBlockStateResponseBlockedPrincipal {
|
|
113
|
-
/**
|
|
114
|
-
*
|
|
115
|
-
* @type {string}
|
|
116
|
-
* @memberof AccessBlockStateResponseBlockedPrincipal
|
|
117
|
-
*/
|
|
118
|
-
'type': AccessBlockStateResponseBlockedPrincipalTypeEnum;
|
|
119
|
-
/**
|
|
120
|
-
*
|
|
121
|
-
* @type {string}
|
|
122
|
-
* @memberof AccessBlockStateResponseBlockedPrincipal
|
|
123
|
-
*/
|
|
124
|
-
'id': string;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export const AccessBlockStateResponseBlockedPrincipalTypeEnum = {
|
|
128
|
-
User: 'User',
|
|
129
|
-
Automation: 'Automation',
|
|
130
|
-
Kiosk: 'Kiosk',
|
|
131
|
-
Terminal: 'Terminal'
|
|
132
|
-
} as const;
|
|
133
|
-
|
|
134
|
-
export type AccessBlockStateResponseBlockedPrincipalTypeEnum = typeof AccessBlockStateResponseBlockedPrincipalTypeEnum[keyof typeof AccessBlockStateResponseBlockedPrincipalTypeEnum];
|
|
135
|
-
|
|
136
26
|
/**
|
|
137
27
|
*
|
|
138
28
|
* @export
|
|
@@ -866,25 +756,6 @@ export interface AuthorizeBatchChecks400ResponseAnyOfInner {
|
|
|
866
756
|
*/
|
|
867
757
|
export interface AuthorizeBatchChecks400ResponseAnyOfInnerPathInner {
|
|
868
758
|
}
|
|
869
|
-
/**
|
|
870
|
-
*
|
|
871
|
-
* @export
|
|
872
|
-
* @interface BlockPrincipalAccessRequest
|
|
873
|
-
*/
|
|
874
|
-
export interface BlockPrincipalAccessRequest {
|
|
875
|
-
/**
|
|
876
|
-
*
|
|
877
|
-
* @type {AccessBlockStateResponseBlockedPrincipal}
|
|
878
|
-
* @memberof BlockPrincipalAccessRequest
|
|
879
|
-
*/
|
|
880
|
-
'principal': AccessBlockStateResponseBlockedPrincipal;
|
|
881
|
-
/**
|
|
882
|
-
*
|
|
883
|
-
* @type {string}
|
|
884
|
-
* @memberof BlockPrincipalAccessRequest
|
|
885
|
-
*/
|
|
886
|
-
'reason'?: string;
|
|
887
|
-
}
|
|
888
759
|
/**
|
|
889
760
|
*
|
|
890
761
|
* @export
|
|
@@ -1892,19 +1763,6 @@ export interface ListPermissionsSuccessResponse {
|
|
|
1892
1763
|
*/
|
|
1893
1764
|
'permissions': Permissions & Array<Permissions>;
|
|
1894
1765
|
}
|
|
1895
|
-
/**
|
|
1896
|
-
*
|
|
1897
|
-
* @export
|
|
1898
|
-
* @interface ListPrincipalAccessBlocksResponse
|
|
1899
|
-
*/
|
|
1900
|
-
export interface ListPrincipalAccessBlocksResponse {
|
|
1901
|
-
/**
|
|
1902
|
-
*
|
|
1903
|
-
* @type {Array<AccessBlockStateResponse>}
|
|
1904
|
-
* @memberof ListPrincipalAccessBlocksResponse
|
|
1905
|
-
*/
|
|
1906
|
-
'items': Array<AccessBlockStateResponse>;
|
|
1907
|
-
}
|
|
1908
1766
|
/**
|
|
1909
1767
|
* Successful roles retrieval response
|
|
1910
1768
|
* @export
|
|
@@ -1918,6 +1776,19 @@ export interface ListRolesSuccessResponse {
|
|
|
1918
1776
|
*/
|
|
1919
1777
|
'roles': Array<RoleNames>;
|
|
1920
1778
|
}
|
|
1779
|
+
/**
|
|
1780
|
+
* The caller\'s active staff access grants
|
|
1781
|
+
* @export
|
|
1782
|
+
* @interface ListStaffAccessGrantsResponse
|
|
1783
|
+
*/
|
|
1784
|
+
export interface ListStaffAccessGrantsResponse {
|
|
1785
|
+
/**
|
|
1786
|
+
*
|
|
1787
|
+
* @type {Array<StaffAccessGrant>}
|
|
1788
|
+
* @memberof ListStaffAccessGrantsResponse
|
|
1789
|
+
*/
|
|
1790
|
+
'grants': Array<StaffAccessGrant>;
|
|
1791
|
+
}
|
|
1921
1792
|
/**
|
|
1922
1793
|
* Permissions
|
|
1923
1794
|
* @export
|
|
@@ -1988,7 +1859,6 @@ export const Permissions = {
|
|
|
1988
1859
|
ViewMenu: 'ViewMenu',
|
|
1989
1860
|
CreateGlobalApiKey: 'CreateGlobalAPIKey',
|
|
1990
1861
|
ListGlobalApiKeys: 'ListGlobalAPIKeys',
|
|
1991
|
-
BlockPrincipalAccess: 'BlockPrincipalAccess',
|
|
1992
1862
|
CreateMenu: 'CreateMenu',
|
|
1993
1863
|
UpdateMenu: 'UpdateMenu',
|
|
1994
1864
|
DeleteMenu: 'DeleteMenu',
|
|
@@ -2653,43 +2523,244 @@ export type RoleNames = typeof RoleNames[keyof typeof RoleNames];
|
|
|
2653
2523
|
|
|
2654
2524
|
|
|
2655
2525
|
/**
|
|
2656
|
-
*
|
|
2526
|
+
* A temporary staff access grant
|
|
2657
2527
|
* @export
|
|
2658
|
-
* @interface
|
|
2528
|
+
* @interface StaffAccessGrant
|
|
2659
2529
|
*/
|
|
2660
|
-
export interface
|
|
2530
|
+
export interface StaffAccessGrant {
|
|
2531
|
+
/**
|
|
2532
|
+
*
|
|
2533
|
+
* @type {string}
|
|
2534
|
+
* @memberof StaffAccessGrant
|
|
2535
|
+
*/
|
|
2536
|
+
'grantId': string;
|
|
2537
|
+
/**
|
|
2538
|
+
*
|
|
2539
|
+
* @type {string}
|
|
2540
|
+
* @memberof StaffAccessGrant
|
|
2541
|
+
*/
|
|
2542
|
+
'principalType': StaffAccessGrantPrincipalTypeEnum;
|
|
2543
|
+
/**
|
|
2544
|
+
*
|
|
2545
|
+
* @type {string}
|
|
2546
|
+
* @memberof StaffAccessGrant
|
|
2547
|
+
*/
|
|
2548
|
+
'principalId': string;
|
|
2549
|
+
/**
|
|
2550
|
+
*
|
|
2551
|
+
* @type {string}
|
|
2552
|
+
* @memberof StaffAccessGrant
|
|
2553
|
+
*/
|
|
2554
|
+
'email': string;
|
|
2555
|
+
/**
|
|
2556
|
+
*
|
|
2557
|
+
* @type {string}
|
|
2558
|
+
* @memberof StaffAccessGrant
|
|
2559
|
+
*/
|
|
2560
|
+
'orgId': string;
|
|
2561
|
+
/**
|
|
2562
|
+
*
|
|
2563
|
+
* @type {string}
|
|
2564
|
+
* @memberof StaffAccessGrant
|
|
2565
|
+
*/
|
|
2566
|
+
'roleName': string;
|
|
2567
|
+
/**
|
|
2568
|
+
*
|
|
2569
|
+
* @type {Array<string>}
|
|
2570
|
+
* @memberof StaffAccessGrant
|
|
2571
|
+
*/
|
|
2572
|
+
'propertyIds': Array<string>;
|
|
2573
|
+
/**
|
|
2574
|
+
*
|
|
2575
|
+
* @type {Array<string>}
|
|
2576
|
+
* @memberof StaffAccessGrant
|
|
2577
|
+
*/
|
|
2578
|
+
'brandIds': Array<string>;
|
|
2579
|
+
/**
|
|
2580
|
+
*
|
|
2581
|
+
* @type {Array<string>}
|
|
2582
|
+
* @memberof StaffAccessGrant
|
|
2583
|
+
*/
|
|
2584
|
+
'salesChannelIds': Array<string>;
|
|
2585
|
+
/**
|
|
2586
|
+
*
|
|
2587
|
+
* @type {string}
|
|
2588
|
+
* @memberof StaffAccessGrant
|
|
2589
|
+
*/
|
|
2590
|
+
'startsAt': string;
|
|
2661
2591
|
/**
|
|
2662
2592
|
*
|
|
2663
|
-
* @type {
|
|
2664
|
-
* @memberof
|
|
2593
|
+
* @type {string}
|
|
2594
|
+
* @memberof StaffAccessGrant
|
|
2595
|
+
*/
|
|
2596
|
+
'expiresAt': string;
|
|
2597
|
+
/**
|
|
2598
|
+
*
|
|
2599
|
+
* @type {string}
|
|
2600
|
+
* @memberof StaffAccessGrant
|
|
2665
2601
|
*/
|
|
2666
|
-
'
|
|
2602
|
+
'status': StaffAccessGrantStatusEnum;
|
|
2667
2603
|
}
|
|
2604
|
+
|
|
2605
|
+
export const StaffAccessGrantPrincipalTypeEnum = {
|
|
2606
|
+
User: 'User',
|
|
2607
|
+
Automation: 'Automation',
|
|
2608
|
+
Kiosk: 'Kiosk',
|
|
2609
|
+
Terminal: 'Terminal'
|
|
2610
|
+
} as const;
|
|
2611
|
+
|
|
2612
|
+
export type StaffAccessGrantPrincipalTypeEnum = typeof StaffAccessGrantPrincipalTypeEnum[keyof typeof StaffAccessGrantPrincipalTypeEnum];
|
|
2613
|
+
export const StaffAccessGrantStatusEnum = {
|
|
2614
|
+
Active: 'active',
|
|
2615
|
+
Expired: 'expired'
|
|
2616
|
+
} as const;
|
|
2617
|
+
|
|
2618
|
+
export type StaffAccessGrantStatusEnum = typeof StaffAccessGrantStatusEnum[keyof typeof StaffAccessGrantStatusEnum];
|
|
2619
|
+
|
|
2668
2620
|
/**
|
|
2669
2621
|
*
|
|
2670
2622
|
* @export
|
|
2671
|
-
* @interface
|
|
2623
|
+
* @interface StaffAccessGrantRequestBody
|
|
2624
|
+
*/
|
|
2625
|
+
export interface StaffAccessGrantRequestBody {
|
|
2626
|
+
/**
|
|
2627
|
+
* Must match the authenticated caller
|
|
2628
|
+
* @type {string}
|
|
2629
|
+
* @memberof StaffAccessGrantRequestBody
|
|
2630
|
+
*/
|
|
2631
|
+
'userId': string;
|
|
2632
|
+
/**
|
|
2633
|
+
* The org to grant temporary access to
|
|
2634
|
+
* @type {string}
|
|
2635
|
+
* @memberof StaffAccessGrantRequestBody
|
|
2636
|
+
*/
|
|
2637
|
+
'orgId': string;
|
|
2638
|
+
/**
|
|
2639
|
+
* Role the pass grants
|
|
2640
|
+
* @type {string}
|
|
2641
|
+
* @memberof StaffAccessGrantRequestBody
|
|
2642
|
+
*/
|
|
2643
|
+
'roleName': StaffAccessGrantRequestBodyRoleNameEnum;
|
|
2644
|
+
/**
|
|
2645
|
+
* Optional property scope
|
|
2646
|
+
* @type {Array<string>}
|
|
2647
|
+
* @memberof StaffAccessGrantRequestBody
|
|
2648
|
+
*/
|
|
2649
|
+
'propertyIds'?: Array<string>;
|
|
2650
|
+
/**
|
|
2651
|
+
* Optional brand scope
|
|
2652
|
+
* @type {Array<string>}
|
|
2653
|
+
* @memberof StaffAccessGrantRequestBody
|
|
2654
|
+
*/
|
|
2655
|
+
'brandIds'?: Array<string>;
|
|
2656
|
+
/**
|
|
2657
|
+
* Optional sales channel scope
|
|
2658
|
+
* @type {Array<string>}
|
|
2659
|
+
* @memberof StaffAccessGrantRequestBody
|
|
2660
|
+
*/
|
|
2661
|
+
'salesChannelIds'?: Array<string>;
|
|
2662
|
+
}
|
|
2663
|
+
|
|
2664
|
+
export const StaffAccessGrantRequestBodyRoleNameEnum = {
|
|
2665
|
+
Owner: 'Owner'
|
|
2666
|
+
} as const;
|
|
2667
|
+
|
|
2668
|
+
export type StaffAccessGrantRequestBodyRoleNameEnum = typeof StaffAccessGrantRequestBodyRoleNameEnum[keyof typeof StaffAccessGrantRequestBodyRoleNameEnum];
|
|
2669
|
+
|
|
2670
|
+
/**
|
|
2671
|
+
* The staff access grant that was created or refreshed
|
|
2672
|
+
* @export
|
|
2673
|
+
* @interface StaffAccessGrantResponse
|
|
2672
2674
|
*/
|
|
2673
|
-
export interface
|
|
2675
|
+
export interface StaffAccessGrantResponse {
|
|
2674
2676
|
/**
|
|
2675
2677
|
*
|
|
2676
|
-
* @type {
|
|
2677
|
-
* @memberof
|
|
2678
|
+
* @type {string}
|
|
2679
|
+
* @memberof StaffAccessGrantResponse
|
|
2678
2680
|
*/
|
|
2679
|
-
'
|
|
2681
|
+
'grantId': string;
|
|
2680
2682
|
/**
|
|
2681
2683
|
*
|
|
2682
|
-
* @type {
|
|
2683
|
-
* @memberof
|
|
2684
|
+
* @type {string}
|
|
2685
|
+
* @memberof StaffAccessGrantResponse
|
|
2686
|
+
*/
|
|
2687
|
+
'principalType': StaffAccessGrantResponsePrincipalTypeEnum;
|
|
2688
|
+
/**
|
|
2689
|
+
*
|
|
2690
|
+
* @type {string}
|
|
2691
|
+
* @memberof StaffAccessGrantResponse
|
|
2692
|
+
*/
|
|
2693
|
+
'principalId': string;
|
|
2694
|
+
/**
|
|
2695
|
+
*
|
|
2696
|
+
* @type {string}
|
|
2697
|
+
* @memberof StaffAccessGrantResponse
|
|
2698
|
+
*/
|
|
2699
|
+
'email': string;
|
|
2700
|
+
/**
|
|
2701
|
+
*
|
|
2702
|
+
* @type {string}
|
|
2703
|
+
* @memberof StaffAccessGrantResponse
|
|
2704
|
+
*/
|
|
2705
|
+
'orgId': string;
|
|
2706
|
+
/**
|
|
2707
|
+
*
|
|
2708
|
+
* @type {string}
|
|
2709
|
+
* @memberof StaffAccessGrantResponse
|
|
2710
|
+
*/
|
|
2711
|
+
'roleName': string;
|
|
2712
|
+
/**
|
|
2713
|
+
*
|
|
2714
|
+
* @type {Array<string>}
|
|
2715
|
+
* @memberof StaffAccessGrantResponse
|
|
2716
|
+
*/
|
|
2717
|
+
'propertyIds': Array<string>;
|
|
2718
|
+
/**
|
|
2719
|
+
*
|
|
2720
|
+
* @type {Array<string>}
|
|
2721
|
+
* @memberof StaffAccessGrantResponse
|
|
2722
|
+
*/
|
|
2723
|
+
'brandIds': Array<string>;
|
|
2724
|
+
/**
|
|
2725
|
+
*
|
|
2726
|
+
* @type {Array<string>}
|
|
2727
|
+
* @memberof StaffAccessGrantResponse
|
|
2728
|
+
*/
|
|
2729
|
+
'salesChannelIds': Array<string>;
|
|
2730
|
+
/**
|
|
2731
|
+
*
|
|
2732
|
+
* @type {string}
|
|
2733
|
+
* @memberof StaffAccessGrantResponse
|
|
2734
|
+
*/
|
|
2735
|
+
'startsAt': string;
|
|
2736
|
+
/**
|
|
2737
|
+
*
|
|
2738
|
+
* @type {string}
|
|
2739
|
+
* @memberof StaffAccessGrantResponse
|
|
2740
|
+
*/
|
|
2741
|
+
'expiresAt': string;
|
|
2742
|
+
/**
|
|
2743
|
+
*
|
|
2744
|
+
* @type {string}
|
|
2745
|
+
* @memberof StaffAccessGrantResponse
|
|
2684
2746
|
*/
|
|
2685
|
-
'
|
|
2747
|
+
'status': StaffAccessGrantResponseStatusEnum;
|
|
2686
2748
|
}
|
|
2687
2749
|
|
|
2688
|
-
export const
|
|
2689
|
-
|
|
2750
|
+
export const StaffAccessGrantResponsePrincipalTypeEnum = {
|
|
2751
|
+
User: 'User',
|
|
2752
|
+
Automation: 'Automation',
|
|
2753
|
+
Kiosk: 'Kiosk',
|
|
2754
|
+
Terminal: 'Terminal'
|
|
2755
|
+
} as const;
|
|
2756
|
+
|
|
2757
|
+
export type StaffAccessGrantResponsePrincipalTypeEnum = typeof StaffAccessGrantResponsePrincipalTypeEnum[keyof typeof StaffAccessGrantResponsePrincipalTypeEnum];
|
|
2758
|
+
export const StaffAccessGrantResponseStatusEnum = {
|
|
2759
|
+
Active: 'active',
|
|
2760
|
+
Expired: 'expired'
|
|
2690
2761
|
} as const;
|
|
2691
2762
|
|
|
2692
|
-
export type
|
|
2763
|
+
export type StaffAccessGrantResponseStatusEnum = typeof StaffAccessGrantResponseStatusEnum[keyof typeof StaffAccessGrantResponseStatusEnum];
|
|
2693
2764
|
|
|
2694
2765
|
/**
|
|
2695
2766
|
*
|
|
@@ -4684,20 +4755,24 @@ export class JoinAccessApi extends BaseAPI {
|
|
|
4684
4755
|
|
|
4685
4756
|
|
|
4686
4757
|
/**
|
|
4687
|
-
*
|
|
4758
|
+
* RoleAssignmentApi - axios parameter creator
|
|
4688
4759
|
* @export
|
|
4689
4760
|
*/
|
|
4690
|
-
export const
|
|
4761
|
+
export const RoleAssignmentApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4691
4762
|
return {
|
|
4692
4763
|
/**
|
|
4693
|
-
*
|
|
4694
|
-
* @summary
|
|
4695
|
-
* @param {
|
|
4696
|
-
* @param {
|
|
4764
|
+
* Apply a role assignment for the target user without invoking legacy teammate/Zeus role assignment flows.
|
|
4765
|
+
* @summary Apply role assignment
|
|
4766
|
+
* @param {string} orgId
|
|
4767
|
+
* @param {RoleAssignmentRequestBody} [roleAssignmentRequestBody]
|
|
4768
|
+
* @param {*} [options] Override http request option.
|
|
4697
4769
|
* @throws {RequiredError}
|
|
4698
4770
|
*/
|
|
4699
|
-
|
|
4700
|
-
|
|
4771
|
+
applyRoleAssignment: async (orgId: string, roleAssignmentRequestBody?: RoleAssignmentRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4772
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
4773
|
+
assertParamExists('applyRoleAssignment', 'orgId', orgId)
|
|
4774
|
+
const localVarPath = `/orgs/{orgId}/roleAssignments/apply`
|
|
4775
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
4701
4776
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4702
4777
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4703
4778
|
let baseOptions;
|
|
@@ -4719,7 +4794,7 @@ export const PrincipalAccessBlockApiAxiosParamCreator = function (configuration?
|
|
|
4719
4794
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4720
4795
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4721
4796
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4722
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
4797
|
+
localVarRequestOptions.data = serializeDataIfNeeded(roleAssignmentRequestBody, localVarRequestOptions, configuration)
|
|
4723
4798
|
|
|
4724
4799
|
return {
|
|
4725
4800
|
url: toPathString(localVarUrlObj),
|
|
@@ -4727,19 +4802,18 @@ export const PrincipalAccessBlockApiAxiosParamCreator = function (configuration?
|
|
|
4727
4802
|
};
|
|
4728
4803
|
},
|
|
4729
4804
|
/**
|
|
4730
|
-
*
|
|
4731
|
-
* @summary
|
|
4732
|
-
* @param {
|
|
4733
|
-
* @param {
|
|
4805
|
+
* Rematerializes a role assignment and applies the resulting policy assignments
|
|
4806
|
+
* @summary Rematerialize Role Assignment
|
|
4807
|
+
* @param {string} orgId
|
|
4808
|
+
* @param {RematerializeRoleAssignmentRequestBody} [rematerializeRoleAssignmentRequestBody]
|
|
4734
4809
|
* @param {*} [options] Override http request option.
|
|
4735
4810
|
* @throws {RequiredError}
|
|
4736
4811
|
*/
|
|
4737
|
-
|
|
4738
|
-
// verify required parameter '
|
|
4739
|
-
assertParamExists('
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
const localVarPath = `/principals/block`;
|
|
4812
|
+
rematerializeRoleAssignmentV2: async (orgId: string, rematerializeRoleAssignmentRequestBody?: RematerializeRoleAssignmentRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4813
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
4814
|
+
assertParamExists('rematerializeRoleAssignmentV2', 'orgId', orgId)
|
|
4815
|
+
const localVarPath = `/orgs/{orgId}/roleAssignments/rematerialize`
|
|
4816
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
4743
4817
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4744
4818
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4745
4819
|
let baseOptions;
|
|
@@ -4747,64 +4821,21 @@ export const PrincipalAccessBlockApiAxiosParamCreator = function (configuration?
|
|
|
4747
4821
|
baseOptions = configuration.baseOptions;
|
|
4748
4822
|
}
|
|
4749
4823
|
|
|
4750
|
-
const localVarRequestOptions = { method: '
|
|
4824
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4751
4825
|
const localVarHeaderParameter = {} as any;
|
|
4752
4826
|
const localVarQueryParameter = {} as any;
|
|
4753
4827
|
|
|
4754
4828
|
// authentication ApiKeyAuth required
|
|
4755
4829
|
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
4756
4830
|
|
|
4757
|
-
if (type !== undefined) {
|
|
4758
|
-
localVarQueryParameter['type'] = type;
|
|
4759
|
-
}
|
|
4760
|
-
|
|
4761
|
-
if (id !== undefined) {
|
|
4762
|
-
localVarQueryParameter['id'] = id;
|
|
4763
|
-
}
|
|
4764
|
-
|
|
4765
4831
|
|
|
4766
4832
|
|
|
4767
|
-
|
|
4768
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4769
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4770
|
-
|
|
4771
|
-
return {
|
|
4772
|
-
url: toPathString(localVarUrlObj),
|
|
4773
|
-
options: localVarRequestOptions,
|
|
4774
|
-
};
|
|
4775
|
-
},
|
|
4776
|
-
/**
|
|
4777
|
-
* List currently blocked principals. Optional type filter. Requires BlockPrincipalAccess.
|
|
4778
|
-
* @summary List principal access blocks
|
|
4779
|
-
* @param {ListPrincipalAccessBlocksTypeEnum} [type]
|
|
4780
|
-
* @param {*} [options] Override http request option.
|
|
4781
|
-
* @throws {RequiredError}
|
|
4782
|
-
*/
|
|
4783
|
-
listPrincipalAccessBlocks: async (type?: ListPrincipalAccessBlocksTypeEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4784
|
-
const localVarPath = `/principals/blocks`;
|
|
4785
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4786
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4787
|
-
let baseOptions;
|
|
4788
|
-
if (configuration) {
|
|
4789
|
-
baseOptions = configuration.baseOptions;
|
|
4790
|
-
}
|
|
4791
|
-
|
|
4792
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4793
|
-
const localVarHeaderParameter = {} as any;
|
|
4794
|
-
const localVarQueryParameter = {} as any;
|
|
4795
|
-
|
|
4796
|
-
// authentication ApiKeyAuth required
|
|
4797
|
-
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
4798
|
-
|
|
4799
|
-
if (type !== undefined) {
|
|
4800
|
-
localVarQueryParameter['type'] = type;
|
|
4801
|
-
}
|
|
4802
|
-
|
|
4833
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4803
4834
|
|
|
4804
|
-
|
|
4805
4835
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4806
4836
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4807
4837
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4838
|
+
localVarRequestOptions.data = serializeDataIfNeeded(rematerializeRoleAssignmentRequestBody, localVarRequestOptions, configuration)
|
|
4808
4839
|
|
|
4809
4840
|
return {
|
|
4810
4841
|
url: toPathString(localVarUrlObj),
|
|
@@ -4812,14 +4843,18 @@ export const PrincipalAccessBlockApiAxiosParamCreator = function (configuration?
|
|
|
4812
4843
|
};
|
|
4813
4844
|
},
|
|
4814
4845
|
/**
|
|
4815
|
-
*
|
|
4816
|
-
* @summary
|
|
4817
|
-
* @param {
|
|
4846
|
+
* Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
|
|
4847
|
+
* @summary Remove teammate
|
|
4848
|
+
* @param {string} orgId
|
|
4849
|
+
* @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
|
|
4818
4850
|
* @param {*} [options] Override http request option.
|
|
4819
4851
|
* @throws {RequiredError}
|
|
4820
4852
|
*/
|
|
4821
|
-
|
|
4822
|
-
|
|
4853
|
+
removeTeammate: async (orgId: string, removeTeammateRequestBody?: RemoveTeammateRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4854
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
4855
|
+
assertParamExists('removeTeammate', 'orgId', orgId)
|
|
4856
|
+
const localVarPath = `/orgs/{orgId}/roleAssignments/remove`
|
|
4857
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
4823
4858
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4824
4859
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4825
4860
|
let baseOptions;
|
|
@@ -4841,7 +4876,7 @@ export const PrincipalAccessBlockApiAxiosParamCreator = function (configuration?
|
|
|
4841
4876
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4842
4877
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4843
4878
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4844
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
4879
|
+
localVarRequestOptions.data = serializeDataIfNeeded(removeTeammateRequestBody, localVarRequestOptions, configuration)
|
|
4845
4880
|
|
|
4846
4881
|
return {
|
|
4847
4882
|
url: toPathString(localVarUrlObj),
|
|
@@ -4852,216 +4887,167 @@ export const PrincipalAccessBlockApiAxiosParamCreator = function (configuration?
|
|
|
4852
4887
|
};
|
|
4853
4888
|
|
|
4854
4889
|
/**
|
|
4855
|
-
*
|
|
4890
|
+
* RoleAssignmentApi - functional programming interface
|
|
4856
4891
|
* @export
|
|
4857
4892
|
*/
|
|
4858
|
-
export const
|
|
4859
|
-
const localVarAxiosParamCreator =
|
|
4893
|
+
export const RoleAssignmentApiFp = function(configuration?: Configuration) {
|
|
4894
|
+
const localVarAxiosParamCreator = RoleAssignmentApiAxiosParamCreator(configuration)
|
|
4860
4895
|
return {
|
|
4861
4896
|
/**
|
|
4862
|
-
*
|
|
4863
|
-
* @summary
|
|
4864
|
-
* @param {
|
|
4865
|
-
* @param {
|
|
4866
|
-
* @throws {RequiredError}
|
|
4867
|
-
*/
|
|
4868
|
-
async blockPrincipalAccess(blockPrincipalAccessRequest?: BlockPrincipalAccessRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccessBlockStateResponseBlocked>> {
|
|
4869
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.blockPrincipalAccess(blockPrincipalAccessRequest, options);
|
|
4870
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4871
|
-
const localVarOperationServerBasePath = operationServerMap['PrincipalAccessBlockApi.blockPrincipalAccess']?.[localVarOperationServerIndex]?.url;
|
|
4872
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4873
|
-
},
|
|
4874
|
-
/**
|
|
4875
|
-
* Get the current access block for a principal. Requires BlockPrincipalAccess.
|
|
4876
|
-
* @summary Get principal access block
|
|
4877
|
-
* @param {GetPrincipalAccessBlockTypeEnum} type
|
|
4878
|
-
* @param {string} id
|
|
4897
|
+
* Apply a role assignment for the target user without invoking legacy teammate/Zeus role assignment flows.
|
|
4898
|
+
* @summary Apply role assignment
|
|
4899
|
+
* @param {string} orgId
|
|
4900
|
+
* @param {RoleAssignmentRequestBody} [roleAssignmentRequestBody]
|
|
4879
4901
|
* @param {*} [options] Override http request option.
|
|
4880
4902
|
* @throws {RequiredError}
|
|
4881
4903
|
*/
|
|
4882
|
-
async
|
|
4883
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
4904
|
+
async applyRoleAssignment(orgId: string, roleAssignmentRequestBody?: RoleAssignmentRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoleAssignmentSuccessResponse>> {
|
|
4905
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.applyRoleAssignment(orgId, roleAssignmentRequestBody, options);
|
|
4884
4906
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4885
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
4907
|
+
const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.applyRoleAssignment']?.[localVarOperationServerIndex]?.url;
|
|
4886
4908
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4887
4909
|
},
|
|
4888
4910
|
/**
|
|
4889
|
-
*
|
|
4890
|
-
* @summary
|
|
4891
|
-
* @param {
|
|
4911
|
+
* Rematerializes a role assignment and applies the resulting policy assignments
|
|
4912
|
+
* @summary Rematerialize Role Assignment
|
|
4913
|
+
* @param {string} orgId
|
|
4914
|
+
* @param {RematerializeRoleAssignmentRequestBody} [rematerializeRoleAssignmentRequestBody]
|
|
4892
4915
|
* @param {*} [options] Override http request option.
|
|
4893
4916
|
* @throws {RequiredError}
|
|
4894
4917
|
*/
|
|
4895
|
-
async
|
|
4896
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
4918
|
+
async rematerializeRoleAssignmentV2(orgId: string, rematerializeRoleAssignmentRequestBody?: RematerializeRoleAssignmentRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RematerializeRoleAssignmentSuccessResponse>> {
|
|
4919
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentRequestBody, options);
|
|
4897
4920
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4898
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
4921
|
+
const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.rematerializeRoleAssignmentV2']?.[localVarOperationServerIndex]?.url;
|
|
4899
4922
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4900
4923
|
},
|
|
4901
4924
|
/**
|
|
4902
|
-
*
|
|
4903
|
-
* @summary
|
|
4904
|
-
* @param {
|
|
4925
|
+
* Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
|
|
4926
|
+
* @summary Remove teammate
|
|
4927
|
+
* @param {string} orgId
|
|
4928
|
+
* @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
|
|
4905
4929
|
* @param {*} [options] Override http request option.
|
|
4906
4930
|
* @throws {RequiredError}
|
|
4907
4931
|
*/
|
|
4908
|
-
async
|
|
4909
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
4932
|
+
async removeTeammate(orgId: string, removeTeammateRequestBody?: RemoveTeammateRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RemoveTeammateSuccessResponse>> {
|
|
4933
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeTeammate(orgId, removeTeammateRequestBody, options);
|
|
4910
4934
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4911
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
4935
|
+
const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.removeTeammate']?.[localVarOperationServerIndex]?.url;
|
|
4912
4936
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4913
4937
|
},
|
|
4914
4938
|
}
|
|
4915
4939
|
};
|
|
4916
4940
|
|
|
4917
4941
|
/**
|
|
4918
|
-
*
|
|
4942
|
+
* RoleAssignmentApi - factory interface
|
|
4919
4943
|
* @export
|
|
4920
4944
|
*/
|
|
4921
|
-
export const
|
|
4922
|
-
const localVarFp =
|
|
4945
|
+
export const RoleAssignmentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4946
|
+
const localVarFp = RoleAssignmentApiFp(configuration)
|
|
4923
4947
|
return {
|
|
4924
4948
|
/**
|
|
4925
|
-
*
|
|
4926
|
-
* @summary
|
|
4927
|
-
* @param {
|
|
4928
|
-
* @param {
|
|
4929
|
-
* @throws {RequiredError}
|
|
4930
|
-
*/
|
|
4931
|
-
blockPrincipalAccess(blockPrincipalAccessRequest?: BlockPrincipalAccessRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccessBlockStateResponseBlocked> {
|
|
4932
|
-
return localVarFp.blockPrincipalAccess(blockPrincipalAccessRequest, options).then((request) => request(axios, basePath));
|
|
4933
|
-
},
|
|
4934
|
-
/**
|
|
4935
|
-
* Get the current access block for a principal. Requires BlockPrincipalAccess.
|
|
4936
|
-
* @summary Get principal access block
|
|
4937
|
-
* @param {GetPrincipalAccessBlockTypeEnum} type
|
|
4938
|
-
* @param {string} id
|
|
4949
|
+
* Apply a role assignment for the target user without invoking legacy teammate/Zeus role assignment flows.
|
|
4950
|
+
* @summary Apply role assignment
|
|
4951
|
+
* @param {string} orgId
|
|
4952
|
+
* @param {RoleAssignmentRequestBody} [roleAssignmentRequestBody]
|
|
4939
4953
|
* @param {*} [options] Override http request option.
|
|
4940
4954
|
* @throws {RequiredError}
|
|
4941
4955
|
*/
|
|
4942
|
-
|
|
4943
|
-
return localVarFp.
|
|
4956
|
+
applyRoleAssignment(orgId: string, roleAssignmentRequestBody?: RoleAssignmentRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<RoleAssignmentSuccessResponse> {
|
|
4957
|
+
return localVarFp.applyRoleAssignment(orgId, roleAssignmentRequestBody, options).then((request) => request(axios, basePath));
|
|
4944
4958
|
},
|
|
4945
4959
|
/**
|
|
4946
|
-
*
|
|
4947
|
-
* @summary
|
|
4948
|
-
* @param {
|
|
4960
|
+
* Rematerializes a role assignment and applies the resulting policy assignments
|
|
4961
|
+
* @summary Rematerialize Role Assignment
|
|
4962
|
+
* @param {string} orgId
|
|
4963
|
+
* @param {RematerializeRoleAssignmentRequestBody} [rematerializeRoleAssignmentRequestBody]
|
|
4949
4964
|
* @param {*} [options] Override http request option.
|
|
4950
4965
|
* @throws {RequiredError}
|
|
4951
4966
|
*/
|
|
4952
|
-
|
|
4953
|
-
return localVarFp.
|
|
4967
|
+
rematerializeRoleAssignmentV2(orgId: string, rematerializeRoleAssignmentRequestBody?: RematerializeRoleAssignmentRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<RematerializeRoleAssignmentSuccessResponse> {
|
|
4968
|
+
return localVarFp.rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentRequestBody, options).then((request) => request(axios, basePath));
|
|
4954
4969
|
},
|
|
4955
4970
|
/**
|
|
4956
|
-
*
|
|
4957
|
-
* @summary
|
|
4958
|
-
* @param {
|
|
4971
|
+
* Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
|
|
4972
|
+
* @summary Remove teammate
|
|
4973
|
+
* @param {string} orgId
|
|
4974
|
+
* @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
|
|
4959
4975
|
* @param {*} [options] Override http request option.
|
|
4960
4976
|
* @throws {RequiredError}
|
|
4961
4977
|
*/
|
|
4962
|
-
|
|
4963
|
-
return localVarFp.
|
|
4978
|
+
removeTeammate(orgId: string, removeTeammateRequestBody?: RemoveTeammateRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<RemoveTeammateSuccessResponse> {
|
|
4979
|
+
return localVarFp.removeTeammate(orgId, removeTeammateRequestBody, options).then((request) => request(axios, basePath));
|
|
4964
4980
|
},
|
|
4965
4981
|
};
|
|
4966
4982
|
};
|
|
4967
4983
|
|
|
4968
4984
|
/**
|
|
4969
|
-
*
|
|
4985
|
+
* RoleAssignmentApi - object-oriented interface
|
|
4970
4986
|
* @export
|
|
4971
|
-
* @class
|
|
4987
|
+
* @class RoleAssignmentApi
|
|
4972
4988
|
* @extends {BaseAPI}
|
|
4973
4989
|
*/
|
|
4974
|
-
export class
|
|
4975
|
-
/**
|
|
4976
|
-
* Write an access_block flag that denies all authorization checks for the principal until unblocked. Authentication still succeeds. Requires BlockPrincipalAccess.
|
|
4977
|
-
* @summary Block principal access
|
|
4978
|
-
* @param {BlockPrincipalAccessRequest} [blockPrincipalAccessRequest]
|
|
4979
|
-
* @param {*} [options] Override http request option.
|
|
4980
|
-
* @throws {RequiredError}
|
|
4981
|
-
* @memberof PrincipalAccessBlockApi
|
|
4982
|
-
*/
|
|
4983
|
-
public blockPrincipalAccess(blockPrincipalAccessRequest?: BlockPrincipalAccessRequest, options?: RawAxiosRequestConfig) {
|
|
4984
|
-
return PrincipalAccessBlockApiFp(this.configuration).blockPrincipalAccess(blockPrincipalAccessRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4985
|
-
}
|
|
4986
|
-
|
|
4990
|
+
export class RoleAssignmentApi extends BaseAPI {
|
|
4987
4991
|
/**
|
|
4988
|
-
*
|
|
4989
|
-
* @summary
|
|
4990
|
-
* @param {
|
|
4991
|
-
* @param {
|
|
4992
|
+
* Apply a role assignment for the target user without invoking legacy teammate/Zeus role assignment flows.
|
|
4993
|
+
* @summary Apply role assignment
|
|
4994
|
+
* @param {string} orgId
|
|
4995
|
+
* @param {RoleAssignmentRequestBody} [roleAssignmentRequestBody]
|
|
4992
4996
|
* @param {*} [options] Override http request option.
|
|
4993
4997
|
* @throws {RequiredError}
|
|
4994
|
-
* @memberof
|
|
4998
|
+
* @memberof RoleAssignmentApi
|
|
4995
4999
|
*/
|
|
4996
|
-
public
|
|
4997
|
-
return
|
|
5000
|
+
public applyRoleAssignment(orgId: string, roleAssignmentRequestBody?: RoleAssignmentRequestBody, options?: RawAxiosRequestConfig) {
|
|
5001
|
+
return RoleAssignmentApiFp(this.configuration).applyRoleAssignment(orgId, roleAssignmentRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
4998
5002
|
}
|
|
4999
5003
|
|
|
5000
5004
|
/**
|
|
5001
|
-
*
|
|
5002
|
-
* @summary
|
|
5003
|
-
* @param {
|
|
5005
|
+
* Rematerializes a role assignment and applies the resulting policy assignments
|
|
5006
|
+
* @summary Rematerialize Role Assignment
|
|
5007
|
+
* @param {string} orgId
|
|
5008
|
+
* @param {RematerializeRoleAssignmentRequestBody} [rematerializeRoleAssignmentRequestBody]
|
|
5004
5009
|
* @param {*} [options] Override http request option.
|
|
5005
5010
|
* @throws {RequiredError}
|
|
5006
|
-
* @memberof
|
|
5011
|
+
* @memberof RoleAssignmentApi
|
|
5007
5012
|
*/
|
|
5008
|
-
public
|
|
5009
|
-
return
|
|
5013
|
+
public rematerializeRoleAssignmentV2(orgId: string, rematerializeRoleAssignmentRequestBody?: RematerializeRoleAssignmentRequestBody, options?: RawAxiosRequestConfig) {
|
|
5014
|
+
return RoleAssignmentApiFp(this.configuration).rematerializeRoleAssignmentV2(orgId, rematerializeRoleAssignmentRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
5010
5015
|
}
|
|
5011
5016
|
|
|
5012
5017
|
/**
|
|
5013
|
-
*
|
|
5014
|
-
* @summary
|
|
5015
|
-
* @param {
|
|
5018
|
+
* Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
|
|
5019
|
+
* @summary Remove teammate
|
|
5020
|
+
* @param {string} orgId
|
|
5021
|
+
* @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
|
|
5016
5022
|
* @param {*} [options] Override http request option.
|
|
5017
5023
|
* @throws {RequiredError}
|
|
5018
|
-
* @memberof
|
|
5024
|
+
* @memberof RoleAssignmentApi
|
|
5019
5025
|
*/
|
|
5020
|
-
public
|
|
5021
|
-
return
|
|
5026
|
+
public removeTeammate(orgId: string, removeTeammateRequestBody?: RemoveTeammateRequestBody, options?: RawAxiosRequestConfig) {
|
|
5027
|
+
return RoleAssignmentApiFp(this.configuration).removeTeammate(orgId, removeTeammateRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
5022
5028
|
}
|
|
5023
5029
|
}
|
|
5024
5030
|
|
|
5025
|
-
/**
|
|
5026
|
-
* @export
|
|
5027
|
-
*/
|
|
5028
|
-
export const GetPrincipalAccessBlockTypeEnum = {
|
|
5029
|
-
User: 'User',
|
|
5030
|
-
Automation: 'Automation',
|
|
5031
|
-
Kiosk: 'Kiosk',
|
|
5032
|
-
Terminal: 'Terminal'
|
|
5033
|
-
} as const;
|
|
5034
|
-
export type GetPrincipalAccessBlockTypeEnum = typeof GetPrincipalAccessBlockTypeEnum[keyof typeof GetPrincipalAccessBlockTypeEnum];
|
|
5035
|
-
/**
|
|
5036
|
-
* @export
|
|
5037
|
-
*/
|
|
5038
|
-
export const ListPrincipalAccessBlocksTypeEnum = {
|
|
5039
|
-
User: 'User',
|
|
5040
|
-
Automation: 'Automation',
|
|
5041
|
-
Kiosk: 'Kiosk',
|
|
5042
|
-
Terminal: 'Terminal'
|
|
5043
|
-
} as const;
|
|
5044
|
-
export type ListPrincipalAccessBlocksTypeEnum = typeof ListPrincipalAccessBlocksTypeEnum[keyof typeof ListPrincipalAccessBlocksTypeEnum];
|
|
5045
5031
|
|
|
5046
5032
|
|
|
5047
5033
|
/**
|
|
5048
|
-
*
|
|
5034
|
+
* StaffAccessApi - axios parameter creator
|
|
5049
5035
|
* @export
|
|
5050
5036
|
*/
|
|
5051
|
-
export const
|
|
5037
|
+
export const StaffAccessApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
5052
5038
|
return {
|
|
5053
5039
|
/**
|
|
5054
|
-
*
|
|
5055
|
-
* @summary
|
|
5040
|
+
* Grants the authenticated caller temporary Owner access to a single org. Requesting again while a pass is active extends it rather than creating a second one.
|
|
5041
|
+
* @summary Create a staff access pass
|
|
5056
5042
|
* @param {string} orgId
|
|
5057
|
-
* @param {
|
|
5043
|
+
* @param {StaffAccessGrantRequestBody} [staffAccessGrantRequestBody]
|
|
5058
5044
|
* @param {*} [options] Override http request option.
|
|
5059
5045
|
* @throws {RequiredError}
|
|
5060
5046
|
*/
|
|
5061
|
-
|
|
5047
|
+
createStaffAccessGrant: async (orgId: string, staffAccessGrantRequestBody?: StaffAccessGrantRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5062
5048
|
// verify required parameter 'orgId' is not null or undefined
|
|
5063
|
-
assertParamExists('
|
|
5064
|
-
const localVarPath = `/orgs/{orgId}/
|
|
5049
|
+
assertParamExists('createStaffAccessGrant', 'orgId', orgId)
|
|
5050
|
+
const localVarPath = `/staffAccess/orgs/{orgId}/grants`
|
|
5065
5051
|
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
5066
5052
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5067
5053
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5084,7 +5070,7 @@ export const RoleAssignmentApiAxiosParamCreator = function (configuration?: Conf
|
|
|
5084
5070
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5085
5071
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5086
5072
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5087
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
5073
|
+
localVarRequestOptions.data = serializeDataIfNeeded(staffAccessGrantRequestBody, localVarRequestOptions, configuration)
|
|
5088
5074
|
|
|
5089
5075
|
return {
|
|
5090
5076
|
url: toPathString(localVarUrlObj),
|
|
@@ -5092,17 +5078,17 @@ export const RoleAssignmentApiAxiosParamCreator = function (configuration?: Conf
|
|
|
5092
5078
|
};
|
|
5093
5079
|
},
|
|
5094
5080
|
/**
|
|
5095
|
-
*
|
|
5096
|
-
* @summary
|
|
5081
|
+
* Returns the authenticated caller\'s active pass for the requested org.
|
|
5082
|
+
* @summary List the caller\'s active staff access pass for an org
|
|
5097
5083
|
* @param {string} orgId
|
|
5098
|
-
* @param {
|
|
5084
|
+
* @param {ListMyStaffAccessGrantsStatusEnum} [status] Only active grants are returned. The caller comes from the auth context
|
|
5099
5085
|
* @param {*} [options] Override http request option.
|
|
5100
5086
|
* @throws {RequiredError}
|
|
5101
5087
|
*/
|
|
5102
|
-
|
|
5088
|
+
listMyStaffAccessGrants: async (orgId: string, status?: ListMyStaffAccessGrantsStatusEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5103
5089
|
// verify required parameter 'orgId' is not null or undefined
|
|
5104
|
-
assertParamExists('
|
|
5105
|
-
const localVarPath = `/orgs/{orgId}/
|
|
5090
|
+
assertParamExists('listMyStaffAccessGrants', 'orgId', orgId)
|
|
5091
|
+
const localVarPath = `/staffAccess/orgs/{orgId}/grants`
|
|
5106
5092
|
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
5107
5093
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5108
5094
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5111,62 +5097,22 @@ export const RoleAssignmentApiAxiosParamCreator = function (configuration?: Conf
|
|
|
5111
5097
|
baseOptions = configuration.baseOptions;
|
|
5112
5098
|
}
|
|
5113
5099
|
|
|
5114
|
-
const localVarRequestOptions = { method: '
|
|
5100
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5115
5101
|
const localVarHeaderParameter = {} as any;
|
|
5116
5102
|
const localVarQueryParameter = {} as any;
|
|
5117
5103
|
|
|
5118
5104
|
// authentication ApiKeyAuth required
|
|
5119
5105
|
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
5120
5106
|
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5124
|
-
|
|
5125
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5126
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5127
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5128
|
-
localVarRequestOptions.data = serializeDataIfNeeded(rematerializeRoleAssignmentRequestBody, localVarRequestOptions, configuration)
|
|
5129
|
-
|
|
5130
|
-
return {
|
|
5131
|
-
url: toPathString(localVarUrlObj),
|
|
5132
|
-
options: localVarRequestOptions,
|
|
5133
|
-
};
|
|
5134
|
-
},
|
|
5135
|
-
/**
|
|
5136
|
-
* Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
|
|
5137
|
-
* @summary Remove teammate
|
|
5138
|
-
* @param {string} orgId
|
|
5139
|
-
* @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
|
|
5140
|
-
* @param {*} [options] Override http request option.
|
|
5141
|
-
* @throws {RequiredError}
|
|
5142
|
-
*/
|
|
5143
|
-
removeTeammate: async (orgId: string, removeTeammateRequestBody?: RemoveTeammateRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5144
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
5145
|
-
assertParamExists('removeTeammate', 'orgId', orgId)
|
|
5146
|
-
const localVarPath = `/orgs/{orgId}/roleAssignments/remove`
|
|
5147
|
-
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
5148
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5149
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5150
|
-
let baseOptions;
|
|
5151
|
-
if (configuration) {
|
|
5152
|
-
baseOptions = configuration.baseOptions;
|
|
5107
|
+
if (status !== undefined) {
|
|
5108
|
+
localVarQueryParameter['status'] = status;
|
|
5153
5109
|
}
|
|
5154
5110
|
|
|
5155
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
5156
|
-
const localVarHeaderParameter = {} as any;
|
|
5157
|
-
const localVarQueryParameter = {} as any;
|
|
5158
|
-
|
|
5159
|
-
// authentication ApiKeyAuth required
|
|
5160
|
-
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
5161
|
-
|
|
5162
5111
|
|
|
5163
5112
|
|
|
5164
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5165
|
-
|
|
5166
5113
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5167
5114
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5168
5115
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5169
|
-
localVarRequestOptions.data = serializeDataIfNeeded(removeTeammateRequestBody, localVarRequestOptions, configuration)
|
|
5170
5116
|
|
|
5171
5117
|
return {
|
|
5172
5118
|
url: toPathString(localVarUrlObj),
|
|
@@ -5177,147 +5123,116 @@ export const RoleAssignmentApiAxiosParamCreator = function (configuration?: Conf
|
|
|
5177
5123
|
};
|
|
5178
5124
|
|
|
5179
5125
|
/**
|
|
5180
|
-
*
|
|
5126
|
+
* StaffAccessApi - functional programming interface
|
|
5181
5127
|
* @export
|
|
5182
5128
|
*/
|
|
5183
|
-
export const
|
|
5184
|
-
const localVarAxiosParamCreator =
|
|
5129
|
+
export const StaffAccessApiFp = function(configuration?: Configuration) {
|
|
5130
|
+
const localVarAxiosParamCreator = StaffAccessApiAxiosParamCreator(configuration)
|
|
5185
5131
|
return {
|
|
5186
5132
|
/**
|
|
5187
|
-
*
|
|
5188
|
-
* @summary
|
|
5189
|
-
* @param {string} orgId
|
|
5190
|
-
* @param {RoleAssignmentRequestBody} [roleAssignmentRequestBody]
|
|
5191
|
-
* @param {*} [options] Override http request option.
|
|
5192
|
-
* @throws {RequiredError}
|
|
5193
|
-
*/
|
|
5194
|
-
async applyRoleAssignment(orgId: string, roleAssignmentRequestBody?: RoleAssignmentRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoleAssignmentSuccessResponse>> {
|
|
5195
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.applyRoleAssignment(orgId, roleAssignmentRequestBody, options);
|
|
5196
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5197
|
-
const localVarOperationServerBasePath = operationServerMap['RoleAssignmentApi.applyRoleAssignment']?.[localVarOperationServerIndex]?.url;
|
|
5198
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5199
|
-
},
|
|
5200
|
-
/**
|
|
5201
|
-
* Rematerializes a role assignment and applies the resulting policy assignments
|
|
5202
|
-
* @summary Rematerialize Role Assignment
|
|
5133
|
+
* Grants the authenticated caller temporary Owner access to a single org. Requesting again while a pass is active extends it rather than creating a second one.
|
|
5134
|
+
* @summary Create a staff access pass
|
|
5203
5135
|
* @param {string} orgId
|
|
5204
|
-
* @param {
|
|
5136
|
+
* @param {StaffAccessGrantRequestBody} [staffAccessGrantRequestBody]
|
|
5205
5137
|
* @param {*} [options] Override http request option.
|
|
5206
5138
|
* @throws {RequiredError}
|
|
5207
5139
|
*/
|
|
5208
|
-
async
|
|
5209
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5140
|
+
async createStaffAccessGrant(orgId: string, staffAccessGrantRequestBody?: StaffAccessGrantRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffAccessGrantResponse>> {
|
|
5141
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createStaffAccessGrant(orgId, staffAccessGrantRequestBody, options);
|
|
5210
5142
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5211
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
5143
|
+
const localVarOperationServerBasePath = operationServerMap['StaffAccessApi.createStaffAccessGrant']?.[localVarOperationServerIndex]?.url;
|
|
5212
5144
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5213
5145
|
},
|
|
5214
5146
|
/**
|
|
5215
|
-
*
|
|
5216
|
-
* @summary
|
|
5147
|
+
* Returns the authenticated caller\'s active pass for the requested org.
|
|
5148
|
+
* @summary List the caller\'s active staff access pass for an org
|
|
5217
5149
|
* @param {string} orgId
|
|
5218
|
-
* @param {
|
|
5150
|
+
* @param {ListMyStaffAccessGrantsStatusEnum} [status] Only active grants are returned. The caller comes from the auth context
|
|
5219
5151
|
* @param {*} [options] Override http request option.
|
|
5220
5152
|
* @throws {RequiredError}
|
|
5221
5153
|
*/
|
|
5222
|
-
async
|
|
5223
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5154
|
+
async listMyStaffAccessGrants(orgId: string, status?: ListMyStaffAccessGrantsStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListStaffAccessGrantsResponse>> {
|
|
5155
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listMyStaffAccessGrants(orgId, status, options);
|
|
5224
5156
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5225
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
5157
|
+
const localVarOperationServerBasePath = operationServerMap['StaffAccessApi.listMyStaffAccessGrants']?.[localVarOperationServerIndex]?.url;
|
|
5226
5158
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5227
5159
|
},
|
|
5228
5160
|
}
|
|
5229
5161
|
};
|
|
5230
5162
|
|
|
5231
5163
|
/**
|
|
5232
|
-
*
|
|
5164
|
+
* StaffAccessApi - factory interface
|
|
5233
5165
|
* @export
|
|
5234
5166
|
*/
|
|
5235
|
-
export const
|
|
5236
|
-
const localVarFp =
|
|
5167
|
+
export const StaffAccessApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
5168
|
+
const localVarFp = StaffAccessApiFp(configuration)
|
|
5237
5169
|
return {
|
|
5238
5170
|
/**
|
|
5239
|
-
*
|
|
5240
|
-
* @summary
|
|
5171
|
+
* Grants the authenticated caller temporary Owner access to a single org. Requesting again while a pass is active extends it rather than creating a second one.
|
|
5172
|
+
* @summary Create a staff access pass
|
|
5241
5173
|
* @param {string} orgId
|
|
5242
|
-
* @param {
|
|
5174
|
+
* @param {StaffAccessGrantRequestBody} [staffAccessGrantRequestBody]
|
|
5243
5175
|
* @param {*} [options] Override http request option.
|
|
5244
5176
|
* @throws {RequiredError}
|
|
5245
5177
|
*/
|
|
5246
|
-
|
|
5247
|
-
return localVarFp.
|
|
5178
|
+
createStaffAccessGrant(orgId: string, staffAccessGrantRequestBody?: StaffAccessGrantRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<StaffAccessGrantResponse> {
|
|
5179
|
+
return localVarFp.createStaffAccessGrant(orgId, staffAccessGrantRequestBody, options).then((request) => request(axios, basePath));
|
|
5248
5180
|
},
|
|
5249
5181
|
/**
|
|
5250
|
-
*
|
|
5251
|
-
* @summary
|
|
5182
|
+
* Returns the authenticated caller\'s active pass for the requested org.
|
|
5183
|
+
* @summary List the caller\'s active staff access pass for an org
|
|
5252
5184
|
* @param {string} orgId
|
|
5253
|
-
* @param {
|
|
5185
|
+
* @param {ListMyStaffAccessGrantsStatusEnum} [status] Only active grants are returned. The caller comes from the auth context
|
|
5254
5186
|
* @param {*} [options] Override http request option.
|
|
5255
5187
|
* @throws {RequiredError}
|
|
5256
5188
|
*/
|
|
5257
|
-
|
|
5258
|
-
return localVarFp.
|
|
5259
|
-
},
|
|
5260
|
-
/**
|
|
5261
|
-
* Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
|
|
5262
|
-
* @summary Remove teammate
|
|
5263
|
-
* @param {string} orgId
|
|
5264
|
-
* @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
|
|
5265
|
-
* @param {*} [options] Override http request option.
|
|
5266
|
-
* @throws {RequiredError}
|
|
5267
|
-
*/
|
|
5268
|
-
removeTeammate(orgId: string, removeTeammateRequestBody?: RemoveTeammateRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<RemoveTeammateSuccessResponse> {
|
|
5269
|
-
return localVarFp.removeTeammate(orgId, removeTeammateRequestBody, options).then((request) => request(axios, basePath));
|
|
5189
|
+
listMyStaffAccessGrants(orgId: string, status?: ListMyStaffAccessGrantsStatusEnum, options?: RawAxiosRequestConfig): AxiosPromise<ListStaffAccessGrantsResponse> {
|
|
5190
|
+
return localVarFp.listMyStaffAccessGrants(orgId, status, options).then((request) => request(axios, basePath));
|
|
5270
5191
|
},
|
|
5271
5192
|
};
|
|
5272
5193
|
};
|
|
5273
5194
|
|
|
5274
5195
|
/**
|
|
5275
|
-
*
|
|
5196
|
+
* StaffAccessApi - object-oriented interface
|
|
5276
5197
|
* @export
|
|
5277
|
-
* @class
|
|
5198
|
+
* @class StaffAccessApi
|
|
5278
5199
|
* @extends {BaseAPI}
|
|
5279
5200
|
*/
|
|
5280
|
-
export class
|
|
5201
|
+
export class StaffAccessApi extends BaseAPI {
|
|
5281
5202
|
/**
|
|
5282
|
-
*
|
|
5283
|
-
* @summary
|
|
5203
|
+
* Grants the authenticated caller temporary Owner access to a single org. Requesting again while a pass is active extends it rather than creating a second one.
|
|
5204
|
+
* @summary Create a staff access pass
|
|
5284
5205
|
* @param {string} orgId
|
|
5285
|
-
* @param {
|
|
5206
|
+
* @param {StaffAccessGrantRequestBody} [staffAccessGrantRequestBody]
|
|
5286
5207
|
* @param {*} [options] Override http request option.
|
|
5287
5208
|
* @throws {RequiredError}
|
|
5288
|
-
* @memberof
|
|
5209
|
+
* @memberof StaffAccessApi
|
|
5289
5210
|
*/
|
|
5290
|
-
public
|
|
5291
|
-
return
|
|
5211
|
+
public createStaffAccessGrant(orgId: string, staffAccessGrantRequestBody?: StaffAccessGrantRequestBody, options?: RawAxiosRequestConfig) {
|
|
5212
|
+
return StaffAccessApiFp(this.configuration).createStaffAccessGrant(orgId, staffAccessGrantRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
5292
5213
|
}
|
|
5293
5214
|
|
|
5294
5215
|
/**
|
|
5295
|
-
*
|
|
5296
|
-
* @summary
|
|
5216
|
+
* Returns the authenticated caller\'s active pass for the requested org.
|
|
5217
|
+
* @summary List the caller\'s active staff access pass for an org
|
|
5297
5218
|
* @param {string} orgId
|
|
5298
|
-
* @param {
|
|
5219
|
+
* @param {ListMyStaffAccessGrantsStatusEnum} [status] Only active grants are returned. The caller comes from the auth context
|
|
5299
5220
|
* @param {*} [options] Override http request option.
|
|
5300
5221
|
* @throws {RequiredError}
|
|
5301
|
-
* @memberof
|
|
5222
|
+
* @memberof StaffAccessApi
|
|
5302
5223
|
*/
|
|
5303
|
-
public
|
|
5304
|
-
return
|
|
5305
|
-
}
|
|
5306
|
-
|
|
5307
|
-
/**
|
|
5308
|
-
* Revokes all V2 role assignments for the teammate in this org, reconciles away their policies, and removes them from the org user list. Does not delete the teammate account in Zeus.
|
|
5309
|
-
* @summary Remove teammate
|
|
5310
|
-
* @param {string} orgId
|
|
5311
|
-
* @param {RemoveTeammateRequestBody} [removeTeammateRequestBody]
|
|
5312
|
-
* @param {*} [options] Override http request option.
|
|
5313
|
-
* @throws {RequiredError}
|
|
5314
|
-
* @memberof RoleAssignmentApi
|
|
5315
|
-
*/
|
|
5316
|
-
public removeTeammate(orgId: string, removeTeammateRequestBody?: RemoveTeammateRequestBody, options?: RawAxiosRequestConfig) {
|
|
5317
|
-
return RoleAssignmentApiFp(this.configuration).removeTeammate(orgId, removeTeammateRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
5224
|
+
public listMyStaffAccessGrants(orgId: string, status?: ListMyStaffAccessGrantsStatusEnum, options?: RawAxiosRequestConfig) {
|
|
5225
|
+
return StaffAccessApiFp(this.configuration).listMyStaffAccessGrants(orgId, status, options).then((request) => request(this.axios, this.basePath));
|
|
5318
5226
|
}
|
|
5319
5227
|
}
|
|
5320
5228
|
|
|
5229
|
+
/**
|
|
5230
|
+
* @export
|
|
5231
|
+
*/
|
|
5232
|
+
export const ListMyStaffAccessGrantsStatusEnum = {
|
|
5233
|
+
Active: 'active'
|
|
5234
|
+
} as const;
|
|
5235
|
+
export type ListMyStaffAccessGrantsStatusEnum = typeof ListMyStaffAccessGrantsStatusEnum[keyof typeof ListMyStaffAccessGrantsStatusEnum];
|
|
5321
5236
|
|
|
5322
5237
|
|
|
5323
5238
|
/**
|