@farthershore/client 0.1.0 → 0.2.0
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/CHANGELOG.md +162 -0
- package/README.md +9 -8
- package/dist/index.js +66 -54
- package/dist/types/api.generated.d.ts +13 -7
- package/dist/types/generated/schemas.d.ts +3670 -0
- package/dist/types/helpers/wait-for-frontend-build.d.ts +12 -4
- package/dist/types/index.d.ts +2 -2
- package/dist/types/operations/agents.d.ts +204 -12
- package/dist/types/operations/agreements.d.ts +139 -9
- package/dist/types/operations/analytics.d.ts +27 -5
- package/dist/types/operations/audit-notifications.d.ts +64 -7
- package/dist/types/operations/auth.d.ts +12 -4
- package/dist/types/operations/backends.d.ts +211 -9
- package/dist/types/operations/billing.d.ts +60 -4
- package/dist/types/operations/businesses.d.ts +730 -27
- package/dist/types/operations/change-sets.d.ts +426 -7
- package/dist/types/operations/consumers.d.ts +133 -14
- package/dist/types/operations/define.d.ts +16 -5
- package/dist/types/operations/environments.d.ts +40 -4
- package/dist/types/operations/frontend.d.ts +20 -2
- package/dist/types/operations/index.d.ts +3930 -193
- package/dist/types/operations/maker-tokens.d.ts +175 -11
- package/dist/types/operations/organizations.d.ts +321 -19
- package/dist/types/operations/personas.d.ts +98 -8
- package/dist/types/operations/plans-usage.d.ts +69 -3
- package/dist/types/operations/platform.d.ts +420 -12
- package/dist/types/operations/portal.d.ts +409 -16
- package/dist/types/operations/promo-codes.d.ts +126 -6
- package/dist/types/operations/variables.d.ts +170 -7
- package/dist/types/operations/webhooks.d.ts +77 -14
- package/dist/types/surface-types.d.ts +25 -3
- package/dist/types/transport.d.ts +5 -10
- package/dist/types/types.d.ts +382 -411
- package/dist/types/version.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/** Which businesses an org token may act on (default: all, current and future). */
|
|
2
|
+
type MakerTokenBusinessScopeInput = {
|
|
3
|
+
mode: "ALL";
|
|
4
|
+
} | {
|
|
5
|
+
mode: "SELECTED";
|
|
6
|
+
businessIds: readonly string[];
|
|
7
|
+
};
|
|
2
8
|
type TokenRef = {
|
|
3
9
|
tokenId: string;
|
|
4
10
|
};
|
|
@@ -6,25 +12,183 @@ type ApprovalRef = {
|
|
|
6
12
|
approvalId: string;
|
|
7
13
|
};
|
|
8
14
|
export declare const makerTokenOperations: {
|
|
9
|
-
"makerTokens.permissionCatalog.read": import("./define.js").OperationEntry<void,
|
|
15
|
+
"makerTokens.permissionCatalog.read": import("./define.js").OperationEntry<void, {
|
|
16
|
+
entries: {
|
|
17
|
+
subject: string;
|
|
18
|
+
title: string;
|
|
19
|
+
permissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
|
|
20
|
+
}[];
|
|
21
|
+
}, {
|
|
22
|
+
entries: {
|
|
23
|
+
subject: string;
|
|
24
|
+
title: string;
|
|
25
|
+
permissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
|
|
26
|
+
}[];
|
|
27
|
+
}>;
|
|
10
28
|
"makerTokens.list": import("./define.js").OperationEntry<{
|
|
11
29
|
limit?: number;
|
|
12
30
|
offset?: number;
|
|
13
|
-
} | undefined,
|
|
31
|
+
} | undefined, {
|
|
32
|
+
data: import("../generated/schemas.js").components["schemas"]["MakerTokenSummary"][];
|
|
33
|
+
pagination: {
|
|
34
|
+
total: number;
|
|
35
|
+
limit: number;
|
|
36
|
+
offset: number;
|
|
37
|
+
hasMore: boolean;
|
|
38
|
+
};
|
|
39
|
+
}, {
|
|
40
|
+
data: import("../generated/schemas.js").components["schemas"]["MakerTokenSummary"][];
|
|
41
|
+
pagination: {
|
|
42
|
+
total: number;
|
|
43
|
+
limit: number;
|
|
44
|
+
offset: number;
|
|
45
|
+
hasMore: boolean;
|
|
46
|
+
};
|
|
47
|
+
}>;
|
|
14
48
|
"makerTokens.create": import("./define.js").OperationEntry<{
|
|
15
49
|
name: string;
|
|
16
50
|
requestedPermissions: readonly string[];
|
|
17
|
-
businessScope?:
|
|
18
|
-
},
|
|
51
|
+
businessScope?: MakerTokenBusinessScopeInput;
|
|
52
|
+
}, {
|
|
53
|
+
status: "ACTIVE";
|
|
54
|
+
id: string;
|
|
55
|
+
organizationId: string;
|
|
56
|
+
name: string;
|
|
57
|
+
variant: "PERSONAL" | "ORG";
|
|
58
|
+
provisioningState: "ACTIVE";
|
|
59
|
+
grantedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
|
|
60
|
+
businessScope: import("../generated/schemas.js").components["schemas"]["MakerTokenBusinessScopeSummary"];
|
|
61
|
+
lastFour: string;
|
|
62
|
+
createdAt: string | null;
|
|
63
|
+
lastUsedAt: string | null;
|
|
64
|
+
revokedAt: string | null;
|
|
65
|
+
origin: "USER" | "PLATFORM";
|
|
66
|
+
purpose: string | null;
|
|
67
|
+
token: string;
|
|
68
|
+
} | {
|
|
69
|
+
status: "PENDING";
|
|
70
|
+
makerTokenId: string;
|
|
71
|
+
approvalId: string;
|
|
72
|
+
requestedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
|
|
73
|
+
grantedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
|
|
74
|
+
excessPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
|
|
75
|
+
eligibleApproverIds: string[];
|
|
76
|
+
}, {
|
|
77
|
+
status: "ACTIVE";
|
|
78
|
+
id: string;
|
|
79
|
+
organizationId: string;
|
|
80
|
+
name: string;
|
|
81
|
+
variant: "PERSONAL" | "ORG";
|
|
82
|
+
provisioningState: "ACTIVE";
|
|
83
|
+
grantedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
|
|
84
|
+
businessScope: import("../generated/schemas.js").components["schemas"]["MakerTokenBusinessScopeSummary"];
|
|
85
|
+
lastFour: string;
|
|
86
|
+
createdAt: string | null;
|
|
87
|
+
lastUsedAt: string | null;
|
|
88
|
+
revokedAt: string | null;
|
|
89
|
+
origin: "USER" | "PLATFORM";
|
|
90
|
+
purpose: string | null;
|
|
91
|
+
token: string;
|
|
92
|
+
} | {
|
|
93
|
+
status: "PENDING";
|
|
94
|
+
makerTokenId: string;
|
|
95
|
+
approvalId: string;
|
|
96
|
+
requestedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
|
|
97
|
+
grantedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
|
|
98
|
+
excessPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
|
|
99
|
+
eligibleApproverIds: string[];
|
|
100
|
+
}>;
|
|
19
101
|
"makerTokens.update": import("./define.js").OperationEntry<TokenRef & {
|
|
20
102
|
requestedPermissions: readonly string[];
|
|
21
|
-
},
|
|
22
|
-
|
|
103
|
+
}, {
|
|
104
|
+
status: "ACTIVE";
|
|
105
|
+
makerTokenId: string;
|
|
106
|
+
requestedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
|
|
107
|
+
grantedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
|
|
108
|
+
} | {
|
|
109
|
+
status: "PENDING";
|
|
110
|
+
makerTokenId: string;
|
|
111
|
+
approvalId: string;
|
|
112
|
+
requestedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
|
|
113
|
+
activePermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
|
|
114
|
+
excessPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
|
|
115
|
+
eligibleApproverIds: string[];
|
|
116
|
+
}, {
|
|
117
|
+
status: "ACTIVE";
|
|
118
|
+
makerTokenId: string;
|
|
119
|
+
requestedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
|
|
120
|
+
grantedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
|
|
121
|
+
} | {
|
|
122
|
+
status: "PENDING";
|
|
123
|
+
makerTokenId: string;
|
|
124
|
+
approvalId: string;
|
|
125
|
+
requestedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
|
|
126
|
+
activePermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
|
|
127
|
+
excessPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
|
|
128
|
+
eligibleApproverIds: string[];
|
|
129
|
+
}>;
|
|
130
|
+
"makerTokens.approvalList": import("./define.js").OperationEntry<void, {
|
|
131
|
+
id: string;
|
|
132
|
+
operation: "CREATE" | "UPDATE";
|
|
133
|
+
makerTokenId: string;
|
|
134
|
+
requestedBy: string;
|
|
135
|
+
requestedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
|
|
136
|
+
excessPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
|
|
137
|
+
createdAt: string;
|
|
138
|
+
makerToken: {
|
|
139
|
+
name: string;
|
|
140
|
+
grantedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
|
|
141
|
+
};
|
|
142
|
+
}[], {
|
|
143
|
+
id: string;
|
|
144
|
+
operation: "CREATE" | "UPDATE";
|
|
145
|
+
makerTokenId: string;
|
|
146
|
+
requestedBy: string;
|
|
147
|
+
requestedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
|
|
148
|
+
excessPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
|
|
149
|
+
createdAt: string;
|
|
150
|
+
makerToken: {
|
|
151
|
+
name: string;
|
|
152
|
+
grantedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
|
|
153
|
+
};
|
|
154
|
+
}[]>;
|
|
23
155
|
"makerTokens.approve": import("./define.js").OperationEntry<ApprovalRef & {
|
|
24
156
|
grantedPermissions?: readonly string[];
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
157
|
+
}, {
|
|
158
|
+
status: "ACTIVE";
|
|
159
|
+
approvalId: string;
|
|
160
|
+
makerTokenId: string;
|
|
161
|
+
requestedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
|
|
162
|
+
grantedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
|
|
163
|
+
token?: string;
|
|
164
|
+
lastFour?: string;
|
|
165
|
+
}, {
|
|
166
|
+
status: "ACTIVE";
|
|
167
|
+
approvalId: string;
|
|
168
|
+
makerTokenId: string;
|
|
169
|
+
requestedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
|
|
170
|
+
grantedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
|
|
171
|
+
token?: string;
|
|
172
|
+
lastFour?: string;
|
|
173
|
+
}>;
|
|
174
|
+
"makerTokens.deny": import("./define.js").OperationEntry<ApprovalRef, {
|
|
175
|
+
status: "DENIED";
|
|
176
|
+
approvalId: string;
|
|
177
|
+
makerTokenId: string;
|
|
178
|
+
}, {
|
|
179
|
+
status: "DENIED";
|
|
180
|
+
approvalId: string;
|
|
181
|
+
makerTokenId: string;
|
|
182
|
+
}>;
|
|
183
|
+
"makerTokens.rotate": import("./define.js").OperationEntry<TokenRef, {
|
|
184
|
+
id: string;
|
|
185
|
+
lastFour: string;
|
|
186
|
+
token: string;
|
|
187
|
+
}, {
|
|
188
|
+
id: string;
|
|
189
|
+
lastFour: string;
|
|
190
|
+
token: string;
|
|
191
|
+
}>;
|
|
192
|
+
"makerTokens.revoke": import("./define.js").OperationEntry<TokenRef, void, void>;
|
|
29
193
|
};
|
|
30
194
|
export {};
|
|
@@ -9,63 +9,365 @@ type MemberRef = OrganizationRef & {
|
|
|
9
9
|
memberUserId: string;
|
|
10
10
|
};
|
|
11
11
|
export declare const organizationOperations: {
|
|
12
|
-
"organizations.list": import("./define.js").OperationEntry<void,
|
|
12
|
+
"organizations.list": import("./define.js").OperationEntry<void, {
|
|
13
|
+
organization: import("../generated/schemas.js").components["schemas"]["OrganizationSummary"];
|
|
14
|
+
roleKey: string | null;
|
|
15
|
+
principalKind: "browser_user" | "cli_user" | "maker_token";
|
|
16
|
+
}[], {
|
|
17
|
+
organization: import("../generated/schemas.js").components["schemas"]["OrganizationSummary"];
|
|
18
|
+
roleKey: string | null;
|
|
19
|
+
principalKind: "browser_user" | "cli_user" | "maker_token";
|
|
20
|
+
}[]>;
|
|
13
21
|
"organizations.create": import("./define.js").OperationEntry<{
|
|
14
22
|
name: string;
|
|
15
23
|
type: "team" | "company";
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
|
|
24
|
+
}, {
|
|
25
|
+
organization: import("../generated/schemas.js").components["schemas"]["OrganizationSummary"];
|
|
26
|
+
roleKey: "owner";
|
|
27
|
+
}, {
|
|
28
|
+
organization: import("../generated/schemas.js").components["schemas"]["OrganizationSummary"];
|
|
29
|
+
roleKey: "owner";
|
|
30
|
+
}>;
|
|
31
|
+
"organizations.delete": import("./define.js").OperationEntry<OrganizationRef, void, void>;
|
|
32
|
+
"organizations.overview.read": import("./define.js").OperationEntry<OrganizationRef, {
|
|
33
|
+
organization: {
|
|
34
|
+
mrrCents: number | null;
|
|
35
|
+
mrrDeltaPct: number | null;
|
|
36
|
+
activeSubscribers: number | null;
|
|
37
|
+
subscribersDelta7d: number | null;
|
|
38
|
+
requests7d: number | null;
|
|
39
|
+
requestsToday: number | null;
|
|
40
|
+
requestsSeries7d: number[] | null;
|
|
41
|
+
limitDenials24h: number | null;
|
|
42
|
+
limitDenialsPct24h: number | null;
|
|
43
|
+
planUsage: {
|
|
44
|
+
used: number;
|
|
45
|
+
cap: number | null;
|
|
46
|
+
unit: string;
|
|
47
|
+
periodLabel: string;
|
|
48
|
+
} | null;
|
|
49
|
+
stripeConnected: boolean;
|
|
50
|
+
};
|
|
51
|
+
businesses: import("../generated/schemas.js").components["schemas"]["OrganizationOverviewBusiness"][];
|
|
52
|
+
recentActivity: import("../generated/schemas.js").components["schemas"]["OrganizationOverviewActivity"][];
|
|
53
|
+
}, {
|
|
54
|
+
organization: {
|
|
55
|
+
mrrCents: number | null;
|
|
56
|
+
mrrDeltaPct: number | null;
|
|
57
|
+
activeSubscribers: number | null;
|
|
58
|
+
subscribersDelta7d: number | null;
|
|
59
|
+
requests7d: number | null;
|
|
60
|
+
requestsToday: number | null;
|
|
61
|
+
requestsSeries7d: number[] | null;
|
|
62
|
+
limitDenials24h: number | null;
|
|
63
|
+
limitDenialsPct24h: number | null;
|
|
64
|
+
planUsage: {
|
|
65
|
+
used: number;
|
|
66
|
+
cap: number | null;
|
|
67
|
+
unit: string;
|
|
68
|
+
periodLabel: string;
|
|
69
|
+
} | null;
|
|
70
|
+
stripeConnected: boolean;
|
|
71
|
+
};
|
|
72
|
+
businesses: import("../generated/schemas.js").components["schemas"]["OrganizationOverviewBusiness"][];
|
|
73
|
+
recentActivity: import("../generated/schemas.js").components["schemas"]["OrganizationOverviewActivity"][];
|
|
74
|
+
}>;
|
|
19
75
|
"organizations.bulletin.read": import("./define.js").OperationEntry<OrganizationRef & {
|
|
20
76
|
kind?: string;
|
|
21
77
|
status?: string;
|
|
22
78
|
cursor?: string;
|
|
23
79
|
limit?: number;
|
|
24
|
-
},
|
|
80
|
+
}, {
|
|
81
|
+
items: import("../generated/schemas.js").components["schemas"]["OrganizationBulletinPost"][];
|
|
82
|
+
nextCursor: string | null;
|
|
83
|
+
}, {
|
|
84
|
+
items: import("../generated/schemas.js").components["schemas"]["OrganizationBulletinPost"][];
|
|
85
|
+
nextCursor: string | null;
|
|
86
|
+
}>;
|
|
25
87
|
"organizations.role.list": import("./define.js").OperationEntry<OrganizationRef & {
|
|
26
88
|
query?: ListQuery;
|
|
27
|
-
},
|
|
28
|
-
|
|
89
|
+
}, {
|
|
90
|
+
roles: import("../generated/schemas.js").components["schemas"]["OrganizationRole"][];
|
|
91
|
+
permissionCatalog: {
|
|
92
|
+
key: import("../generated/schemas.js").components["schemas"]["PlatformPermission"];
|
|
93
|
+
title: string;
|
|
94
|
+
description: string;
|
|
95
|
+
domain: string;
|
|
96
|
+
effect: "read" | "write";
|
|
97
|
+
delegation: "maker_token" | "user_session_only" | "browser_only";
|
|
98
|
+
}[];
|
|
99
|
+
grantablePermissionKeys: import("../generated/schemas.js").components["schemas"]["PlatformPermission"][];
|
|
100
|
+
permissions: {
|
|
101
|
+
canCreate: boolean;
|
|
102
|
+
canEdit: boolean;
|
|
103
|
+
canDelete: boolean;
|
|
104
|
+
};
|
|
105
|
+
}, {
|
|
106
|
+
roles: import("../generated/schemas.js").components["schemas"]["OrganizationRole"][];
|
|
107
|
+
permissionCatalog: {
|
|
108
|
+
key: import("../generated/schemas.js").components["schemas"]["PlatformPermission"];
|
|
109
|
+
title: string;
|
|
110
|
+
description: string;
|
|
111
|
+
domain: string;
|
|
112
|
+
effect: "read" | "write";
|
|
113
|
+
delegation: "maker_token" | "user_session_only" | "browser_only";
|
|
114
|
+
}[];
|
|
115
|
+
grantablePermissionKeys: import("../generated/schemas.js").components["schemas"]["PlatformPermission"][];
|
|
116
|
+
permissions: {
|
|
117
|
+
canCreate: boolean;
|
|
118
|
+
canEdit: boolean;
|
|
119
|
+
canDelete: boolean;
|
|
120
|
+
};
|
|
121
|
+
}>;
|
|
122
|
+
"organizations.role.show": import("./define.js").OperationEntry<RoleRef, {
|
|
123
|
+
id: string;
|
|
124
|
+
organizationId: string;
|
|
125
|
+
key: string;
|
|
126
|
+
name: string;
|
|
127
|
+
description: string | null;
|
|
128
|
+
builtIn: boolean;
|
|
129
|
+
permissions: import("../generated/schemas.js").components["schemas"]["PlatformPermission"][];
|
|
130
|
+
memberCount: number;
|
|
131
|
+
canEdit: boolean;
|
|
132
|
+
canDelete: boolean;
|
|
133
|
+
createdAt: string;
|
|
134
|
+
updatedAt: string;
|
|
135
|
+
}, {
|
|
136
|
+
id: string;
|
|
137
|
+
organizationId: string;
|
|
138
|
+
key: string;
|
|
139
|
+
name: string;
|
|
140
|
+
description: string | null;
|
|
141
|
+
builtIn: boolean;
|
|
142
|
+
permissions: import("../generated/schemas.js").components["schemas"]["PlatformPermission"][];
|
|
143
|
+
memberCount: number;
|
|
144
|
+
canEdit: boolean;
|
|
145
|
+
canDelete: boolean;
|
|
146
|
+
createdAt: string;
|
|
147
|
+
updatedAt: string;
|
|
148
|
+
}>;
|
|
29
149
|
"organizations.role.create": import("./define.js").OperationEntry<OrganizationRef & {
|
|
30
150
|
key: string;
|
|
31
151
|
name: string;
|
|
32
152
|
description?: string;
|
|
33
153
|
permissions: string[];
|
|
34
|
-
},
|
|
154
|
+
}, {
|
|
155
|
+
id: string;
|
|
156
|
+
organizationId: string;
|
|
157
|
+
key: string;
|
|
158
|
+
name: string;
|
|
159
|
+
description: string | null;
|
|
160
|
+
builtIn: boolean;
|
|
161
|
+
permissions: import("../generated/schemas.js").components["schemas"]["PlatformPermission"][];
|
|
162
|
+
memberCount: number;
|
|
163
|
+
canEdit: boolean;
|
|
164
|
+
canDelete: boolean;
|
|
165
|
+
createdAt: string;
|
|
166
|
+
updatedAt: string;
|
|
167
|
+
}, {
|
|
168
|
+
id: string;
|
|
169
|
+
organizationId: string;
|
|
170
|
+
key: string;
|
|
171
|
+
name: string;
|
|
172
|
+
description: string | null;
|
|
173
|
+
builtIn: boolean;
|
|
174
|
+
permissions: import("../generated/schemas.js").components["schemas"]["PlatformPermission"][];
|
|
175
|
+
memberCount: number;
|
|
176
|
+
canEdit: boolean;
|
|
177
|
+
canDelete: boolean;
|
|
178
|
+
createdAt: string;
|
|
179
|
+
updatedAt: string;
|
|
180
|
+
}>;
|
|
35
181
|
"organizations.role.update": import("./define.js").OperationEntry<OrganizationRef & {
|
|
36
182
|
roleKey: string;
|
|
37
183
|
} & {
|
|
38
184
|
name?: string;
|
|
39
185
|
description?: string | null;
|
|
40
186
|
permissions?: string[];
|
|
41
|
-
},
|
|
42
|
-
|
|
187
|
+
}, {
|
|
188
|
+
id: string;
|
|
189
|
+
organizationId: string;
|
|
190
|
+
key: string;
|
|
191
|
+
name: string;
|
|
192
|
+
description: string | null;
|
|
193
|
+
builtIn: boolean;
|
|
194
|
+
permissions: import("../generated/schemas.js").components["schemas"]["PlatformPermission"][];
|
|
195
|
+
memberCount: number;
|
|
196
|
+
canEdit: boolean;
|
|
197
|
+
canDelete: boolean;
|
|
198
|
+
createdAt: string;
|
|
199
|
+
updatedAt: string;
|
|
200
|
+
}, {
|
|
201
|
+
id: string;
|
|
202
|
+
organizationId: string;
|
|
203
|
+
key: string;
|
|
204
|
+
name: string;
|
|
205
|
+
description: string | null;
|
|
206
|
+
builtIn: boolean;
|
|
207
|
+
permissions: import("../generated/schemas.js").components["schemas"]["PlatformPermission"][];
|
|
208
|
+
memberCount: number;
|
|
209
|
+
canEdit: boolean;
|
|
210
|
+
canDelete: boolean;
|
|
211
|
+
createdAt: string;
|
|
212
|
+
updatedAt: string;
|
|
213
|
+
}>;
|
|
214
|
+
"organizations.role.delete": import("./define.js").OperationEntry<RoleRef, void, void>;
|
|
43
215
|
"organizations.member.list": import("./define.js").OperationEntry<OrganizationRef & {
|
|
44
216
|
query?: ListQuery;
|
|
45
217
|
limit?: number;
|
|
46
218
|
offset?: number;
|
|
47
|
-
},
|
|
219
|
+
}, {
|
|
220
|
+
primaryOwnerUserId: string;
|
|
221
|
+
viewerRoleKey: string;
|
|
222
|
+
members: import("../generated/schemas.js").components["schemas"]["OrganizationMember"][];
|
|
223
|
+
pagination: {
|
|
224
|
+
total: number;
|
|
225
|
+
limit: number;
|
|
226
|
+
offset: number;
|
|
227
|
+
hasMore: boolean;
|
|
228
|
+
};
|
|
229
|
+
organizationType: "personal";
|
|
230
|
+
ownershipMode: "fixed_single";
|
|
231
|
+
permissions: {
|
|
232
|
+
canInvite: boolean;
|
|
233
|
+
allowedInvitationRoleKeys: string[];
|
|
234
|
+
canManageRoles: boolean;
|
|
235
|
+
canTransferPrimaryOwnership: false;
|
|
236
|
+
};
|
|
237
|
+
} | {
|
|
238
|
+
primaryOwnerUserId: string;
|
|
239
|
+
viewerRoleKey: string;
|
|
240
|
+
members: import("../generated/schemas.js").components["schemas"]["OrganizationMember"][];
|
|
241
|
+
pagination: {
|
|
242
|
+
total: number;
|
|
243
|
+
limit: number;
|
|
244
|
+
offset: number;
|
|
245
|
+
hasMore: boolean;
|
|
246
|
+
};
|
|
247
|
+
organizationType: "team" | "company";
|
|
248
|
+
ownershipMode: "transferable_multi";
|
|
249
|
+
permissions: import("../generated/schemas.js").components["schemas"]["OrganizationViewerPermissions"];
|
|
250
|
+
}, {
|
|
251
|
+
primaryOwnerUserId: string;
|
|
252
|
+
viewerRoleKey: string;
|
|
253
|
+
members: import("../generated/schemas.js").components["schemas"]["OrganizationMember"][];
|
|
254
|
+
pagination: {
|
|
255
|
+
total: number;
|
|
256
|
+
limit: number;
|
|
257
|
+
offset: number;
|
|
258
|
+
hasMore: boolean;
|
|
259
|
+
};
|
|
260
|
+
organizationType: "personal";
|
|
261
|
+
ownershipMode: "fixed_single";
|
|
262
|
+
permissions: {
|
|
263
|
+
canInvite: boolean;
|
|
264
|
+
allowedInvitationRoleKeys: string[];
|
|
265
|
+
canManageRoles: boolean;
|
|
266
|
+
canTransferPrimaryOwnership: false;
|
|
267
|
+
};
|
|
268
|
+
} | {
|
|
269
|
+
primaryOwnerUserId: string;
|
|
270
|
+
viewerRoleKey: string;
|
|
271
|
+
members: import("../generated/schemas.js").components["schemas"]["OrganizationMember"][];
|
|
272
|
+
pagination: {
|
|
273
|
+
total: number;
|
|
274
|
+
limit: number;
|
|
275
|
+
offset: number;
|
|
276
|
+
hasMore: boolean;
|
|
277
|
+
};
|
|
278
|
+
organizationType: "team" | "company";
|
|
279
|
+
ownershipMode: "transferable_multi";
|
|
280
|
+
permissions: import("../generated/schemas.js").components["schemas"]["OrganizationViewerPermissions"];
|
|
281
|
+
}>;
|
|
48
282
|
"organizations.member.update": import("./define.js").OperationEntry<OrganizationRef & {
|
|
49
283
|
memberUserId: string;
|
|
50
284
|
} & {
|
|
51
285
|
roleKey: string;
|
|
52
|
-
},
|
|
53
|
-
|
|
286
|
+
}, {
|
|
287
|
+
userId: string;
|
|
288
|
+
roleKey: string;
|
|
289
|
+
}, {
|
|
290
|
+
userId: string;
|
|
291
|
+
roleKey: string;
|
|
292
|
+
}>;
|
|
293
|
+
"organizations.member.remove": import("./define.js").OperationEntry<MemberRef, void, void>;
|
|
54
294
|
"organizations.ownership.transfer": import("./define.js").OperationEntry<OrganizationRef & {
|
|
55
295
|
newOwnerUserId: string;
|
|
56
|
-
},
|
|
296
|
+
}, {
|
|
297
|
+
organizationId: string;
|
|
298
|
+
previousPrimaryOwnerUserId: string;
|
|
299
|
+
primaryOwnerUserId: string;
|
|
300
|
+
}, {
|
|
301
|
+
organizationId: string;
|
|
302
|
+
previousPrimaryOwnerUserId: string;
|
|
303
|
+
primaryOwnerUserId: string;
|
|
304
|
+
}>;
|
|
57
305
|
"organizations.invitation.create": import("./define.js").OperationEntry<OrganizationRef & {
|
|
58
306
|
email: string;
|
|
59
307
|
roleKey: string;
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
|
|
308
|
+
}, {
|
|
309
|
+
id: string;
|
|
310
|
+
email: string;
|
|
311
|
+
roleKey: string | null;
|
|
312
|
+
role: import("../generated/schemas.js").components["schemas"]["OrganizationRole"] | null;
|
|
313
|
+
status: "pending";
|
|
314
|
+
expiresAt: string;
|
|
315
|
+
organizationId: string;
|
|
316
|
+
}, {
|
|
317
|
+
id: string;
|
|
318
|
+
email: string;
|
|
319
|
+
roleKey: string | null;
|
|
320
|
+
role: import("../generated/schemas.js").components["schemas"]["OrganizationRole"] | null;
|
|
321
|
+
status: "pending";
|
|
322
|
+
expiresAt: string;
|
|
323
|
+
organizationId: string;
|
|
324
|
+
}>;
|
|
325
|
+
"organizations.invitation.list": import("./define.js").OperationEntry<void, {
|
|
326
|
+
id: string;
|
|
327
|
+
email: string;
|
|
328
|
+
roleKey: string | null;
|
|
329
|
+
role: import("../generated/schemas.js").components["schemas"]["OrganizationRole"] | null;
|
|
330
|
+
status: "pending";
|
|
331
|
+
expiresAt: string;
|
|
332
|
+
organization: import("../generated/schemas.js").components["schemas"]["OrganizationSummary"];
|
|
333
|
+
}[], {
|
|
334
|
+
id: string;
|
|
335
|
+
email: string;
|
|
336
|
+
roleKey: string | null;
|
|
337
|
+
role: import("../generated/schemas.js").components["schemas"]["OrganizationRole"] | null;
|
|
338
|
+
status: "pending";
|
|
339
|
+
expiresAt: string;
|
|
340
|
+
organization: import("../generated/schemas.js").components["schemas"]["OrganizationSummary"];
|
|
341
|
+
}[]>;
|
|
342
|
+
"organizations.invitation.listSent": import("./define.js").OperationEntry<OrganizationRef, {
|
|
343
|
+
id: string;
|
|
344
|
+
email: string;
|
|
345
|
+
roleKey: string | null;
|
|
346
|
+
role: import("../generated/schemas.js").components["schemas"]["OrganizationRole"] | null;
|
|
347
|
+
status: "pending";
|
|
348
|
+
expiresAt: string;
|
|
349
|
+
createdAt: string;
|
|
350
|
+
}[], {
|
|
351
|
+
id: string;
|
|
352
|
+
email: string;
|
|
353
|
+
roleKey: string | null;
|
|
354
|
+
role: import("../generated/schemas.js").components["schemas"]["OrganizationRole"] | null;
|
|
355
|
+
status: "pending";
|
|
356
|
+
expiresAt: string;
|
|
357
|
+
createdAt: string;
|
|
358
|
+
}[]>;
|
|
63
359
|
"organizations.invitation.revoke": import("./define.js").OperationEntry<OrganizationRef & {
|
|
64
360
|
invitationId: string;
|
|
65
|
-
}, void>;
|
|
361
|
+
}, void, void>;
|
|
66
362
|
"organizations.invitation.accept": import("./define.js").OperationEntry<{
|
|
67
363
|
invitationId: string;
|
|
68
364
|
token: string;
|
|
69
|
-
},
|
|
365
|
+
}, {
|
|
366
|
+
organization: import("../generated/schemas.js").components["schemas"]["OrganizationSummary"];
|
|
367
|
+
roleKey: string;
|
|
368
|
+
}, {
|
|
369
|
+
organization: import("../generated/schemas.js").components["schemas"]["OrganizationSummary"];
|
|
370
|
+
roleKey: string;
|
|
371
|
+
}>;
|
|
70
372
|
};
|
|
71
373
|
export {};
|