@raystack/frontier 0.0.8 → 0.0.10
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/dist/index.d.ts +145 -27
- package/dist/index.js +63 -12
- package/dist/index.mjs +63 -12
- package/package.json +1 -1
- package/react/dist/index.d.ts +145 -27
- package/react/dist/index.js +986 -465
- package/react/dist/index.mjs +973 -452
package/dist/index.mjs
CHANGED
|
@@ -421,6 +421,23 @@ var V1Beta1 = class extends HttpClient {
|
|
|
421
421
|
type: "application/json" /* Json */,
|
|
422
422
|
format: "json"
|
|
423
423
|
}, params));
|
|
424
|
+
/**
|
|
425
|
+
* @description Returns true if a principal has required permissions to access a resource and false otherwise.<br/> Note the principal can be a user or a service account, and Frontier will the credentials from the current logged in principal from the session cookie (if any), or the client id and secret (in case of service users) or the access token (in case of human user accounts).
|
|
426
|
+
*
|
|
427
|
+
* @tags Authz
|
|
428
|
+
* @name FrontierServiceBatchCheckPermission
|
|
429
|
+
* @summary Batch check
|
|
430
|
+
* @request POST:/v1beta1/batchcheck
|
|
431
|
+
* @secure
|
|
432
|
+
*/
|
|
433
|
+
this.frontierServiceBatchCheckPermission = (body, params = {}) => this.request(__spreadValues({
|
|
434
|
+
path: `/v1beta1/batchcheck`,
|
|
435
|
+
method: "POST",
|
|
436
|
+
body,
|
|
437
|
+
secure: true,
|
|
438
|
+
type: "application/json" /* Json */,
|
|
439
|
+
format: "json"
|
|
440
|
+
}, params));
|
|
424
441
|
/**
|
|
425
442
|
* @description Returns true if a principal has required permissions to access a resource and false otherwise.<br/> Note the principal can be a user or a service account, and Frontier will the credentials from the current logged in principal from the session cookie (if any), or the client id and secret (in case of service users) or the access token (in case of human user accounts).
|
|
426
443
|
*
|
|
@@ -1057,9 +1074,10 @@ var V1Beta1 = class extends HttpClient {
|
|
|
1057
1074
|
* @request GET:/v1beta1/organizations/{orgId}/groups/{id}/users
|
|
1058
1075
|
* @secure
|
|
1059
1076
|
*/
|
|
1060
|
-
this.frontierServiceListGroupUsers = (orgId, id, params = {}) => this.request(__spreadValues({
|
|
1077
|
+
this.frontierServiceListGroupUsers = (orgId, id, query, params = {}) => this.request(__spreadValues({
|
|
1061
1078
|
path: `/v1beta1/organizations/${orgId}/groups/${id}/users`,
|
|
1062
1079
|
method: "GET",
|
|
1080
|
+
query,
|
|
1063
1081
|
secure: true,
|
|
1064
1082
|
format: "json"
|
|
1065
1083
|
}, params));
|
|
@@ -1461,11 +1479,11 @@ var V1Beta1 = class extends HttpClient {
|
|
|
1461
1479
|
* @tags Preference
|
|
1462
1480
|
* @name FrontierServiceDescribePreferences
|
|
1463
1481
|
* @summary Describe preferences
|
|
1464
|
-
* @request GET:/v1beta1/preferences/
|
|
1482
|
+
* @request GET:/v1beta1/preferences/traits
|
|
1465
1483
|
* @secure
|
|
1466
1484
|
*/
|
|
1467
1485
|
this.frontierServiceDescribePreferences = (params = {}) => this.request(__spreadValues({
|
|
1468
|
-
path: `/v1beta1/preferences/
|
|
1486
|
+
path: `/v1beta1/preferences/traits`,
|
|
1469
1487
|
method: "GET",
|
|
1470
1488
|
secure: true,
|
|
1471
1489
|
format: "json"
|
|
@@ -1610,6 +1628,22 @@ var V1Beta1 = class extends HttpClient {
|
|
|
1610
1628
|
secure: true,
|
|
1611
1629
|
format: "json"
|
|
1612
1630
|
}, params));
|
|
1631
|
+
/**
|
|
1632
|
+
* @description Returns a collection of users of a project. Filter by user permissions is supported.
|
|
1633
|
+
*
|
|
1634
|
+
* @tags Project
|
|
1635
|
+
* @name FrontierServiceListProjectServiceUsers
|
|
1636
|
+
* @summary List project serviceusers
|
|
1637
|
+
* @request GET:/v1beta1/projects/{id}/serviceusers
|
|
1638
|
+
* @secure
|
|
1639
|
+
*/
|
|
1640
|
+
this.frontierServiceListProjectServiceUsers = (id, query, params = {}) => this.request(__spreadValues({
|
|
1641
|
+
path: `/v1beta1/projects/${id}/serviceusers`,
|
|
1642
|
+
method: "GET",
|
|
1643
|
+
query,
|
|
1644
|
+
secure: true,
|
|
1645
|
+
format: "json"
|
|
1646
|
+
}, params));
|
|
1613
1647
|
/**
|
|
1614
1648
|
* @description Returns a collection of users of a project. Filter by user permissions is supported.
|
|
1615
1649
|
*
|
|
@@ -2129,12 +2163,12 @@ var V1Beta1 = class extends HttpClient {
|
|
|
2129
2163
|
* @description This API returns two list of organizations for the user. i) The list of orgs which the current user is already a part of ii) The list of organizations the user can join directly (based on domain whitelisted and verified by the org). This list will also contain orgs of which user is already a part of. Note: the domain needs to be verified by the org before the it is returned as one of the joinable orgs by domain
|
|
2130
2164
|
*
|
|
2131
2165
|
* @tags User
|
|
2132
|
-
* @name
|
|
2166
|
+
* @name FrontierServiceListOrganizationsByUser
|
|
2133
2167
|
* @summary Get user organizations
|
|
2134
2168
|
* @request GET:/v1beta1/users/{id}/organizations
|
|
2135
2169
|
* @secure
|
|
2136
2170
|
*/
|
|
2137
|
-
this.
|
|
2171
|
+
this.frontierServiceListOrganizationsByUser = (id, params = {}) => this.request(__spreadValues({
|
|
2138
2172
|
path: `/v1beta1/users/${id}/organizations`,
|
|
2139
2173
|
method: "GET",
|
|
2140
2174
|
secure: true,
|
|
@@ -2175,12 +2209,12 @@ var V1Beta1 = class extends HttpClient {
|
|
|
2175
2209
|
* @description Get all the projects a user belongs to.
|
|
2176
2210
|
*
|
|
2177
2211
|
* @tags User
|
|
2178
|
-
* @name
|
|
2212
|
+
* @name FrontierServiceListProjectsByUser
|
|
2179
2213
|
* @summary Get user projects
|
|
2180
2214
|
* @request GET:/v1beta1/users/{id}/projects
|
|
2181
2215
|
* @secure
|
|
2182
2216
|
*/
|
|
2183
|
-
this.
|
|
2217
|
+
this.frontierServiceListProjectsByUser = (id, params = {}) => this.request(__spreadValues({
|
|
2184
2218
|
path: `/v1beta1/users/${id}/projects`,
|
|
2185
2219
|
method: "GET",
|
|
2186
2220
|
secure: true,
|
|
@@ -2226,9 +2260,25 @@ var V1Beta1 = class extends HttpClient {
|
|
|
2226
2260
|
* @request GET:/v1beta1/users/self/groups
|
|
2227
2261
|
* @secure
|
|
2228
2262
|
*/
|
|
2229
|
-
this.frontierServiceListCurrentUserGroups = (params = {}) => this.request(__spreadValues({
|
|
2263
|
+
this.frontierServiceListCurrentUserGroups = (query, params = {}) => this.request(__spreadValues({
|
|
2230
2264
|
path: `/v1beta1/users/self/groups`,
|
|
2231
2265
|
method: "GET",
|
|
2266
|
+
query,
|
|
2267
|
+
secure: true,
|
|
2268
|
+
format: "json"
|
|
2269
|
+
}, params));
|
|
2270
|
+
/**
|
|
2271
|
+
* @description List all the invitations sent to current user.
|
|
2272
|
+
*
|
|
2273
|
+
* @tags User
|
|
2274
|
+
* @name FrontierServiceListCurrentUserInvitations
|
|
2275
|
+
* @summary List user invitations
|
|
2276
|
+
* @request GET:/v1beta1/users/self/invitations
|
|
2277
|
+
* @secure
|
|
2278
|
+
*/
|
|
2279
|
+
this.frontierServiceListCurrentUserInvitations = (params = {}) => this.request(__spreadValues({
|
|
2280
|
+
path: `/v1beta1/users/self/invitations`,
|
|
2281
|
+
method: "GET",
|
|
2232
2282
|
secure: true,
|
|
2233
2283
|
format: "json"
|
|
2234
2284
|
}, params));
|
|
@@ -2236,12 +2286,12 @@ var V1Beta1 = class extends HttpClient {
|
|
|
2236
2286
|
* @description This API returns two list of organizations for the current logged in user. i) The list of orgs which the current user is already a part of ii) The list of organizations the user can join directly (based on domain whitelisted and verified by the org). This list will also contain orgs of which user is already a part of. Note: the domain needs to be verified by the org before the it is returned as one of the joinable orgs by domain
|
|
2237
2287
|
*
|
|
2238
2288
|
* @tags User
|
|
2239
|
-
* @name
|
|
2289
|
+
* @name FrontierServiceListOrganizationsByCurrentUser
|
|
2240
2290
|
* @summary Get my organizations
|
|
2241
2291
|
* @request GET:/v1beta1/users/self/organizations
|
|
2242
2292
|
* @secure
|
|
2243
2293
|
*/
|
|
2244
|
-
this.
|
|
2294
|
+
this.frontierServiceListOrganizationsByCurrentUser = (params = {}) => this.request(__spreadValues({
|
|
2245
2295
|
path: `/v1beta1/users/self/organizations`,
|
|
2246
2296
|
method: "GET",
|
|
2247
2297
|
secure: true,
|
|
@@ -2283,14 +2333,15 @@ var V1Beta1 = class extends HttpClient {
|
|
|
2283
2333
|
* @description Get all projects the current user belongs to
|
|
2284
2334
|
*
|
|
2285
2335
|
* @tags User
|
|
2286
|
-
* @name
|
|
2336
|
+
* @name FrontierServiceListProjectsByCurrentUser
|
|
2287
2337
|
* @summary Get my projects
|
|
2288
2338
|
* @request GET:/v1beta1/users/self/projects
|
|
2289
2339
|
* @secure
|
|
2290
2340
|
*/
|
|
2291
|
-
this.
|
|
2341
|
+
this.frontierServiceListProjectsByCurrentUser = (query, params = {}) => this.request(__spreadValues({
|
|
2292
2342
|
path: `/v1beta1/users/self/projects`,
|
|
2293
2343
|
method: "GET",
|
|
2344
|
+
query,
|
|
2294
2345
|
secure: true,
|
|
2295
2346
|
format: "json"
|
|
2296
2347
|
}, params));
|
package/package.json
CHANGED
package/react/dist/index.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ interface OrganizationProfileProps {
|
|
|
46
46
|
organizationId: string;
|
|
47
47
|
defaultRoute?: string;
|
|
48
48
|
}
|
|
49
|
-
declare const router: Router<Route<any, "/", "/", string, "__root__", unknown, {}, {}, {}, {}, {}, {}, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, {}, (Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/", "/", string, "/", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, Route<Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/", "/", string, "/", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute>, "/delete", "/delete", string, "/delete", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute>[], _tanstack_router_core.AnyRoute> | Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/security", "/security", string, "/security", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute> | Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/members", "/members", string, "/members", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, Route<Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/members", "/members", string, "/members", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute>, "/modal", "/members/modal", string, "/members/modal", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute>[], _tanstack_router_core.AnyRoute> | Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/teams", "/teams", string, "/teams", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, Route<Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/teams", "/teams", string, "/teams", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute>, "/modal", "/teams/modal", string, "/teams/modal", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute>[], _tanstack_router_core.AnyRoute> | Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/domains", "/domains", string, "/domains", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, (Route<Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/domains", "/domains", string, "/domains", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute>, "/modal", "/domains/modal", string, "/domains/modal", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute> | Route<Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/domains", "/domains", string, "/domains", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute>, "/$domainId/verify", "/domains/$domainId/verify", string, "/domains/$domainId/verify", unknown, {}, {}, Record<"domainId", string>, Record<never, string> & Record<"domainId", string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute>)[], _tanstack_router_core.AnyRoute> | Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/teams/$teamId", "/teams/$teamId", string, "/teams/$teamId", unknown, {}, {}, Record<"teamId", string>, Record<"teamId", string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, Route<Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/teams/$teamId", "/teams/$teamId", string, "/teams/$teamId", unknown, {}, {}, Record<"teamId", string>, Record<"teamId", string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute>, "/delete", "/teams/$teamId/delete", string, "/teams/$teamId/delete", unknown, {}, {}, Record<never, string>, Record<"teamId", string> & Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute>[], _tanstack_router_core.AnyRoute> | Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/projects", "/projects", string, "/projects", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, Route<Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/projects", "/projects", string, "/projects", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute>, "/modal", "/projects/modal", string, "/projects/modal", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute>[], _tanstack_router_core.AnyRoute> | Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/projects/$projectId", "/projects/$projectId", string, "/projects/$projectId", unknown, {}, {}, Record<"projectId", string>, Record<"projectId", string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, Route<Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/projects/$projectId", "/projects/$projectId", string, "/projects/$projectId", unknown, {}, {}, Record<"projectId", string>, Record<"projectId", string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute>, "/delete", "/projects/$projectId/delete", string, "/projects/$projectId/delete", unknown, {}, {}, Record<never, string>, Record<"projectId", string> & Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute>[], _tanstack_router_core.AnyRoute> | Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/profile", "/profile", string, "/profile", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute> | Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/perferences", "/perferences", string, "/perferences", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute>)[], any>, Record<string, any>>;
|
|
49
|
+
declare const router: Router<Route<any, "/", "/", string, "__root__", unknown, {}, {}, {}, {}, {}, {}, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, {}, (Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/", "/", string, "/", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, Route<Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/", "/", string, "/", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute>, "/delete", "/delete", string, "/delete", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute>[], _tanstack_router_core.AnyRoute> | Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/security", "/security", string, "/security", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute> | Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/members", "/members", string, "/members", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, Route<Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/members", "/members", string, "/members", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute>, "/modal", "/members/modal", string, "/members/modal", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute>[], _tanstack_router_core.AnyRoute> | Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/teams", "/teams", string, "/teams", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, Route<Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/teams", "/teams", string, "/teams", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute>, "/modal", "/teams/modal", string, "/teams/modal", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute>[], _tanstack_router_core.AnyRoute> | Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/domains", "/domains", string, "/domains", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, (Route<Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/domains", "/domains", string, "/domains", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute>, "/modal", "/domains/modal", string, "/domains/modal", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute> | Route<Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/domains", "/domains", string, "/domains", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute>, "/$domainId/verify", "/domains/$domainId/verify", string, "/domains/$domainId/verify", unknown, {}, {}, Record<"domainId", string>, Record<never, string> & Record<"domainId", string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute>)[], _tanstack_router_core.AnyRoute> | Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/teams/$teamId", "/teams/$teamId", string, "/teams/$teamId", unknown, {}, {}, Record<"teamId", string>, Record<"teamId", string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, Route<Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/teams/$teamId", "/teams/$teamId", string, "/teams/$teamId", unknown, {}, {}, Record<"teamId", string>, Record<"teamId", string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute>, "/delete", "/teams/$teamId/delete", string, "/teams/$teamId/delete", unknown, {}, {}, Record<never, string>, Record<"teamId", string> & Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute>[], _tanstack_router_core.AnyRoute> | Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/projects", "/projects", string, "/projects", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, Route<Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/projects", "/projects", string, "/projects", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute>, "/modal", "/projects/modal", string, "/projects/modal", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute>[], _tanstack_router_core.AnyRoute> | Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/projects/$projectId", "/projects/$projectId", string, "/projects/$projectId", unknown, {}, {}, Record<"projectId", string>, Record<"projectId", string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, Route<Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/projects/$projectId", "/projects/$projectId", string, "/projects/$projectId", unknown, {}, {}, Record<"projectId", string>, Record<"projectId", string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute>, "/delete", "/projects/$projectId/delete", string, "/projects/$projectId/delete", unknown, {}, {}, Record<never, string>, Record<"projectId", string> & Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute>[], _tanstack_router_core.AnyRoute> | Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/profile", "/profile", string, "/profile", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute> | Route<RootRoute<unknown, {}, _tanstack_router_core.RouteContext, {}>, "/preferences", "/preferences", string, "/preferences", unknown, {}, {}, Record<never, string>, Record<never, string>, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.RouteContext, _tanstack_router_core.AnyContext, unknown, _tanstack_router_core.AnyRoute>)[], any>, Record<string, any>>;
|
|
50
50
|
declare const OrganizationProfile: ({ organizationId, defaultRoute }: OrganizationProfileProps) => JSX.Element;
|
|
51
51
|
declare module '@tanstack/react-router' {
|
|
52
52
|
interface Register {
|
|
@@ -214,12 +214,28 @@ interface V1Beta1AuthenticateResponse {
|
|
|
214
214
|
/** state is used for resuming authentication flow in applicable strategies */
|
|
215
215
|
state?: string;
|
|
216
216
|
}
|
|
217
|
+
interface V1Beta1BatchCheckPermissionBody {
|
|
218
|
+
/** the permission name to check. <br/> *Example:* `get` or `list` */
|
|
219
|
+
permission: string;
|
|
220
|
+
/** `namespace:uuid` or `namespace:name` of the org or project, and `namespace:urn` of a resource under a project. In case of an org/project either provide the complete namespace (app/organization) or Frontier can also parse aliases for the same as `org` or `project`. <br/> *Example:* `organization:92f69c3a-334b-4f25-90b8-4d4f3be6b825` or `app/project:project-name` or `compute/instance:92f69c3a-334b-4f25-90b8-4d4f3be6b825` */
|
|
221
|
+
resource?: string;
|
|
222
|
+
}
|
|
223
|
+
interface V1Beta1BatchCheckPermissionRequest {
|
|
224
|
+
bodies?: V1Beta1BatchCheckPermissionBody[];
|
|
225
|
+
}
|
|
226
|
+
interface V1Beta1BatchCheckPermissionResponse {
|
|
227
|
+
pairs?: V1Beta1BatchCheckPermissionResponsePair[];
|
|
228
|
+
}
|
|
229
|
+
interface V1Beta1BatchCheckPermissionResponsePair {
|
|
230
|
+
body?: V1Beta1BatchCheckPermissionBody;
|
|
231
|
+
status?: boolean;
|
|
232
|
+
}
|
|
217
233
|
interface V1Beta1CheckResourcePermissionRequest {
|
|
218
234
|
/** Deprecated. Use `resource` field instead. */
|
|
219
235
|
objectId?: string;
|
|
220
236
|
/** Deprecated. Use `resource` field instead. */
|
|
221
237
|
objectNamespace?: string;
|
|
222
|
-
/** the permission name to check. <br/> *Example:* `get
|
|
238
|
+
/** the permission name to check. <br/> *Example:* `get`, `list`, `compute.instance.create` */
|
|
223
239
|
permission: string;
|
|
224
240
|
/** `namespace:uuid` or `namespace:name` of the org or project, and `namespace:urn` of a resource under a project. In case of an org/project either provide the complete namespace (app/organization) or Frontier can also parse aliases for the same as `org` or `project`. <br/> *Example:* `organization:92f69c3a-334b-4f25-90b8-4d4f3be6b825` or `app/project:project-name` or `compute/instance:92f69c3a-334b-4f25-90b8-4d4f3be6b825` */
|
|
225
241
|
resource?: string;
|
|
@@ -381,14 +397,6 @@ interface V1Beta1GetOrganizationResponse {
|
|
|
381
397
|
interface V1Beta1GetOrganizationRoleResponse {
|
|
382
398
|
role?: V1Beta1Role;
|
|
383
399
|
}
|
|
384
|
-
interface V1Beta1GetOrganizationsByCurrentUserResponse {
|
|
385
|
-
organizations?: V1Beta1Organization[];
|
|
386
|
-
joinableViaDomain?: V1Beta1Organization[];
|
|
387
|
-
}
|
|
388
|
-
interface V1Beta1GetOrganizationsByUserResponse {
|
|
389
|
-
organizations?: V1Beta1Organization[];
|
|
390
|
-
joinableViaDomain?: V1Beta1Organization[];
|
|
391
|
-
}
|
|
392
400
|
interface V1Beta1GetPermissionResponse {
|
|
393
401
|
permission?: V1Beta1Permission;
|
|
394
402
|
}
|
|
@@ -401,12 +409,6 @@ interface V1Beta1GetProjectResourceResponse {
|
|
|
401
409
|
interface V1Beta1GetProjectResponse {
|
|
402
410
|
project?: V1Beta1Project;
|
|
403
411
|
}
|
|
404
|
-
interface V1Beta1GetProjectsByCurrentUserResponse {
|
|
405
|
-
projects?: V1Beta1Project[];
|
|
406
|
-
}
|
|
407
|
-
interface V1Beta1GetProjectsByUserResponse {
|
|
408
|
-
projects?: V1Beta1Project[];
|
|
409
|
-
}
|
|
410
412
|
interface V1Beta1GetRelationResponse {
|
|
411
413
|
relation?: V1Beta1Relation;
|
|
412
414
|
}
|
|
@@ -531,6 +533,14 @@ interface V1Beta1ListAuthStrategiesResponse {
|
|
|
531
533
|
}
|
|
532
534
|
interface V1Beta1ListCurrentUserGroupsResponse {
|
|
533
535
|
groups?: V1Beta1Group[];
|
|
536
|
+
accessPairs?: V1Beta1ListCurrentUserGroupsResponseAccessPair[];
|
|
537
|
+
}
|
|
538
|
+
interface V1Beta1ListCurrentUserGroupsResponseAccessPair {
|
|
539
|
+
groupId?: string;
|
|
540
|
+
permissions?: string[];
|
|
541
|
+
}
|
|
542
|
+
interface V1Beta1ListCurrentUserInvitationsResponse {
|
|
543
|
+
invitations?: V1Beta1Invitation[];
|
|
534
544
|
}
|
|
535
545
|
interface V1Beta1ListCurrentUserPreferencesResponse {
|
|
536
546
|
preferences?: V1Beta1Preference[];
|
|
@@ -540,6 +550,11 @@ interface V1Beta1ListGroupPreferencesResponse {
|
|
|
540
550
|
}
|
|
541
551
|
interface V1Beta1ListGroupUsersResponse {
|
|
542
552
|
users?: V1Beta1User[];
|
|
553
|
+
rolePairs?: V1Beta1ListGroupUsersResponseRolePair[];
|
|
554
|
+
}
|
|
555
|
+
interface V1Beta1ListGroupUsersResponseRolePair {
|
|
556
|
+
userId?: string;
|
|
557
|
+
roles?: V1Beta1Role[];
|
|
543
558
|
}
|
|
544
559
|
interface V1Beta1ListGroupsResponse {
|
|
545
560
|
groups?: V1Beta1Group[];
|
|
@@ -580,6 +595,14 @@ interface V1Beta1ListOrganizationServiceUsersResponse {
|
|
|
580
595
|
interface V1Beta1ListOrganizationUsersResponse {
|
|
581
596
|
users?: V1Beta1User[];
|
|
582
597
|
}
|
|
598
|
+
interface V1Beta1ListOrganizationsByCurrentUserResponse {
|
|
599
|
+
organizations?: V1Beta1Organization[];
|
|
600
|
+
joinableViaDomain?: V1Beta1Organization[];
|
|
601
|
+
}
|
|
602
|
+
interface V1Beta1ListOrganizationsByUserResponse {
|
|
603
|
+
organizations?: V1Beta1Organization[];
|
|
604
|
+
joinableViaDomain?: V1Beta1Organization[];
|
|
605
|
+
}
|
|
583
606
|
interface V1Beta1ListOrganizationsResponse {
|
|
584
607
|
organizations?: V1Beta1Organization[];
|
|
585
608
|
}
|
|
@@ -601,8 +624,32 @@ interface V1Beta1ListProjectPreferencesResponse {
|
|
|
601
624
|
interface V1Beta1ListProjectResourcesResponse {
|
|
602
625
|
resources?: V1Beta1Resource[];
|
|
603
626
|
}
|
|
627
|
+
interface V1Beta1ListProjectServiceUsersResponse {
|
|
628
|
+
serviceusers?: V1Beta1ServiceUser[];
|
|
629
|
+
rolePairs?: V1Beta1ListProjectServiceUsersResponseRolePair[];
|
|
630
|
+
}
|
|
631
|
+
interface V1Beta1ListProjectServiceUsersResponseRolePair {
|
|
632
|
+
serviceuserId?: string;
|
|
633
|
+
roles?: V1Beta1Role[];
|
|
634
|
+
}
|
|
604
635
|
interface V1Beta1ListProjectUsersResponse {
|
|
605
636
|
users?: V1Beta1User[];
|
|
637
|
+
rolePairs?: V1Beta1ListProjectUsersResponseRolePair[];
|
|
638
|
+
}
|
|
639
|
+
interface V1Beta1ListProjectUsersResponseRolePair {
|
|
640
|
+
userId?: string;
|
|
641
|
+
roles?: V1Beta1Role[];
|
|
642
|
+
}
|
|
643
|
+
interface V1Beta1ListProjectsByCurrentUserResponse {
|
|
644
|
+
projects?: V1Beta1Project[];
|
|
645
|
+
accessPairs?: V1Beta1ListProjectsByCurrentUserResponseAccessPair[];
|
|
646
|
+
}
|
|
647
|
+
interface V1Beta1ListProjectsByCurrentUserResponseAccessPair {
|
|
648
|
+
projectId?: string;
|
|
649
|
+
permissions?: string[];
|
|
650
|
+
}
|
|
651
|
+
interface V1Beta1ListProjectsByUserResponse {
|
|
652
|
+
projects?: V1Beta1Project[];
|
|
606
653
|
}
|
|
607
654
|
interface V1Beta1ListProjectsResponse {
|
|
608
655
|
projects?: V1Beta1Project[];
|
|
@@ -706,6 +753,13 @@ interface V1Beta1Organization {
|
|
|
706
753
|
* @example "2023-06-07T05:39:56.961Z"
|
|
707
754
|
*/
|
|
708
755
|
updatedAt?: string;
|
|
756
|
+
/**
|
|
757
|
+
* The state of the organization (enabled or disabled).
|
|
758
|
+
* @example "enabled"
|
|
759
|
+
*/
|
|
760
|
+
state?: string;
|
|
761
|
+
/** The base64 encoded image string of the organization avatar. Should be less than 2MB. */
|
|
762
|
+
avatar?: string;
|
|
709
763
|
}
|
|
710
764
|
interface V1Beta1OrganizationRequestBody {
|
|
711
765
|
/** The name of the organization. The name must be unique within the entire Frontier instance. The name can contain only alphanumeric characters, dashes and underscores.<br/>*Example:*`"frontier-org1-acme"` */
|
|
@@ -714,6 +768,11 @@ interface V1Beta1OrganizationRequestBody {
|
|
|
714
768
|
title?: string;
|
|
715
769
|
/** Metadata object for organizations that can hold key value pairs defined in Organization Metaschema. The metadata object can be used to store arbitrary information about the organization such as labels, descriptions etc. The default Organization Metaschema contains labels and descripton fields. Update the Organization Metaschema to add more fields. <br/>*Example*:`{"labels": {"key": "value"}, "description": "Organization description"}` */
|
|
716
770
|
metadata?: object;
|
|
771
|
+
/**
|
|
772
|
+
* The avatar is base64 encoded image data of the user. Can also be left empty. The image should be less than 200KB. Should follow the regex pattern `^data:image/(png|jpg|jpeg|gif);base64,([a-zA-Z0-9+/]+={0,2})+$`.
|
|
773
|
+
* @example "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAA"
|
|
774
|
+
*/
|
|
775
|
+
avatar?: string;
|
|
717
776
|
}
|
|
718
777
|
interface V1Beta1Permission {
|
|
719
778
|
id?: string;
|
|
@@ -1077,7 +1136,13 @@ interface V1Beta1User {
|
|
|
1077
1136
|
* @example "2023-06-07T05:39:56.961Z"
|
|
1078
1137
|
*/
|
|
1079
1138
|
updatedAt?: string;
|
|
1139
|
+
/**
|
|
1140
|
+
* The state of the user (enabled or disabled).
|
|
1141
|
+
* @example "enabled"
|
|
1142
|
+
*/
|
|
1080
1143
|
state?: string;
|
|
1144
|
+
/** The base64 encoded image string of the user avatar. Should be less than 2MB. */
|
|
1145
|
+
avatar?: string;
|
|
1081
1146
|
}
|
|
1082
1147
|
interface V1Beta1UserRequestBody {
|
|
1083
1148
|
/** The name of the user. The name must be unique within the entire Frontier instance. The name can contain only alphanumeric characters, dashes and underscores and must start with a letter. If not provided, Frontier automatically generates a name from the user email. */
|
|
@@ -1088,6 +1153,11 @@ interface V1Beta1UserRequestBody {
|
|
|
1088
1153
|
metadata?: object;
|
|
1089
1154
|
/** The title can contain any UTF-8 character, used to provide a human-readable name for the user. Can also be left empty. <br/>*Example:*`"John Doe"` */
|
|
1090
1155
|
title?: string;
|
|
1156
|
+
/**
|
|
1157
|
+
* The avatar is base64 encoded image data of the user. Can also be left empty. The image should be less than 200KB. Should follow the regex pattern `^data:image/(png|jpg|jpeg|gif);base64,([a-zA-Z0-9+/]+={0,2})+$`.
|
|
1158
|
+
* @example "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAA"
|
|
1159
|
+
*/
|
|
1160
|
+
avatar?: string;
|
|
1091
1161
|
}
|
|
1092
1162
|
interface V1Beta1VerifyOrganizationDomainResponse {
|
|
1093
1163
|
state?: string;
|
|
@@ -1357,6 +1427,16 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
1357
1427
|
* @secure
|
|
1358
1428
|
*/
|
|
1359
1429
|
frontierServiceAuthToken: (body: V1Beta1AuthTokenRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1AuthTokenResponse, RpcStatus>>;
|
|
1430
|
+
/**
|
|
1431
|
+
* @description Returns true if a principal has required permissions to access a resource and false otherwise.<br/> Note the principal can be a user or a service account, and Frontier will the credentials from the current logged in principal from the session cookie (if any), or the client id and secret (in case of service users) or the access token (in case of human user accounts).
|
|
1432
|
+
*
|
|
1433
|
+
* @tags Authz
|
|
1434
|
+
* @name FrontierServiceBatchCheckPermission
|
|
1435
|
+
* @summary Batch check
|
|
1436
|
+
* @request POST:/v1beta1/batchcheck
|
|
1437
|
+
* @secure
|
|
1438
|
+
*/
|
|
1439
|
+
frontierServiceBatchCheckPermission: (body: V1Beta1BatchCheckPermissionRequest, params?: RequestParams) => Promise<HttpResponse<V1Beta1BatchCheckPermissionResponse, RpcStatus>>;
|
|
1360
1440
|
/**
|
|
1361
1441
|
* @description Returns true if a principal has required permissions to access a resource and false otherwise.<br/> Note the principal can be a user or a service account, and Frontier will the credentials from the current logged in principal from the session cookie (if any), or the client id and secret (in case of service users) or the access token (in case of human user accounts).
|
|
1362
1442
|
*
|
|
@@ -1804,7 +1884,9 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
1804
1884
|
* @request GET:/v1beta1/organizations/{orgId}/groups/{id}/users
|
|
1805
1885
|
* @secure
|
|
1806
1886
|
*/
|
|
1807
|
-
frontierServiceListGroupUsers: (orgId: string, id: string,
|
|
1887
|
+
frontierServiceListGroupUsers: (orgId: string, id: string, query?: {
|
|
1888
|
+
withRoles?: boolean;
|
|
1889
|
+
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListGroupUsersResponse, RpcStatus>>;
|
|
1808
1890
|
/**
|
|
1809
1891
|
* @description Adds a principle(user and service-users) to a group, existing users in the group will be ignored. A group can't have nested groups as members.
|
|
1810
1892
|
*
|
|
@@ -2086,7 +2168,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
2086
2168
|
* @tags Preference
|
|
2087
2169
|
* @name FrontierServiceDescribePreferences
|
|
2088
2170
|
* @summary Describe preferences
|
|
2089
|
-
* @request GET:/v1beta1/preferences/
|
|
2171
|
+
* @request GET:/v1beta1/preferences/traits
|
|
2090
2172
|
* @secure
|
|
2091
2173
|
*/
|
|
2092
2174
|
frontierServiceDescribePreferences: (params?: RequestParams) => Promise<HttpResponse<V1Beta1DescribePreferencesResponse, RpcStatus>>;
|
|
@@ -2182,6 +2264,18 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
2182
2264
|
frontierServiceCreateProjectPreferences: (id: string, body: {
|
|
2183
2265
|
bodies?: V1Beta1PreferenceRequestBody[];
|
|
2184
2266
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1CreateProjectPreferencesResponse, RpcStatus>>;
|
|
2267
|
+
/**
|
|
2268
|
+
* @description Returns a collection of users of a project. Filter by user permissions is supported.
|
|
2269
|
+
*
|
|
2270
|
+
* @tags Project
|
|
2271
|
+
* @name FrontierServiceListProjectServiceUsers
|
|
2272
|
+
* @summary List project serviceusers
|
|
2273
|
+
* @request GET:/v1beta1/projects/{id}/serviceusers
|
|
2274
|
+
* @secure
|
|
2275
|
+
*/
|
|
2276
|
+
frontierServiceListProjectServiceUsers: (id: string, query?: {
|
|
2277
|
+
withRoles?: boolean;
|
|
2278
|
+
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListProjectServiceUsersResponse, RpcStatus>>;
|
|
2185
2279
|
/**
|
|
2186
2280
|
* @description Returns a collection of users of a project. Filter by user permissions is supported.
|
|
2187
2281
|
*
|
|
@@ -2193,6 +2287,7 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
2193
2287
|
*/
|
|
2194
2288
|
frontierServiceListProjectUsers: (id: string, query?: {
|
|
2195
2289
|
permissionFilter?: string;
|
|
2290
|
+
withRoles?: boolean;
|
|
2196
2291
|
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListProjectUsersResponse, RpcStatus>>;
|
|
2197
2292
|
/**
|
|
2198
2293
|
* No description
|
|
@@ -2557,12 +2652,12 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
2557
2652
|
* @description This API returns two list of organizations for the user. i) The list of orgs which the current user is already a part of ii) The list of organizations the user can join directly (based on domain whitelisted and verified by the org). This list will also contain orgs of which user is already a part of. Note: the domain needs to be verified by the org before the it is returned as one of the joinable orgs by domain
|
|
2558
2653
|
*
|
|
2559
2654
|
* @tags User
|
|
2560
|
-
* @name
|
|
2655
|
+
* @name FrontierServiceListOrganizationsByUser
|
|
2561
2656
|
* @summary Get user organizations
|
|
2562
2657
|
* @request GET:/v1beta1/users/{id}/organizations
|
|
2563
2658
|
* @secure
|
|
2564
2659
|
*/
|
|
2565
|
-
|
|
2660
|
+
frontierServiceListOrganizationsByUser: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationsByUserResponse, RpcStatus>>;
|
|
2566
2661
|
/**
|
|
2567
2662
|
* @description List a user preferences by ID.
|
|
2568
2663
|
*
|
|
@@ -2589,12 +2684,12 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
2589
2684
|
* @description Get all the projects a user belongs to.
|
|
2590
2685
|
*
|
|
2591
2686
|
* @tags User
|
|
2592
|
-
* @name
|
|
2687
|
+
* @name FrontierServiceListProjectsByUser
|
|
2593
2688
|
* @summary Get user projects
|
|
2594
2689
|
* @request GET:/v1beta1/users/{id}/projects
|
|
2595
2690
|
* @secure
|
|
2596
2691
|
*/
|
|
2597
|
-
|
|
2692
|
+
frontierServiceListProjectsByUser: (id: string, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListProjectsByUserResponse, RpcStatus>>;
|
|
2598
2693
|
/**
|
|
2599
2694
|
* No description
|
|
2600
2695
|
*
|
|
@@ -2624,17 +2719,31 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
2624
2719
|
* @request GET:/v1beta1/users/self/groups
|
|
2625
2720
|
* @secure
|
|
2626
2721
|
*/
|
|
2627
|
-
frontierServiceListCurrentUserGroups: (
|
|
2722
|
+
frontierServiceListCurrentUserGroups: (query?: {
|
|
2723
|
+
/** org_id is optional filter over an organization */
|
|
2724
|
+
orgId?: string;
|
|
2725
|
+
withPermissions?: string[];
|
|
2726
|
+
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListCurrentUserGroupsResponse, RpcStatus>>;
|
|
2727
|
+
/**
|
|
2728
|
+
* @description List all the invitations sent to current user.
|
|
2729
|
+
*
|
|
2730
|
+
* @tags User
|
|
2731
|
+
* @name FrontierServiceListCurrentUserInvitations
|
|
2732
|
+
* @summary List user invitations
|
|
2733
|
+
* @request GET:/v1beta1/users/self/invitations
|
|
2734
|
+
* @secure
|
|
2735
|
+
*/
|
|
2736
|
+
frontierServiceListCurrentUserInvitations: (params?: RequestParams) => Promise<HttpResponse<V1Beta1ListCurrentUserInvitationsResponse, RpcStatus>>;
|
|
2628
2737
|
/**
|
|
2629
2738
|
* @description This API returns two list of organizations for the current logged in user. i) The list of orgs which the current user is already a part of ii) The list of organizations the user can join directly (based on domain whitelisted and verified by the org). This list will also contain orgs of which user is already a part of. Note: the domain needs to be verified by the org before the it is returned as one of the joinable orgs by domain
|
|
2630
2739
|
*
|
|
2631
2740
|
* @tags User
|
|
2632
|
-
* @name
|
|
2741
|
+
* @name FrontierServiceListOrganizationsByCurrentUser
|
|
2633
2742
|
* @summary Get my organizations
|
|
2634
2743
|
* @request GET:/v1beta1/users/self/organizations
|
|
2635
2744
|
* @secure
|
|
2636
2745
|
*/
|
|
2637
|
-
|
|
2746
|
+
frontierServiceListOrganizationsByCurrentUser: (params?: RequestParams) => Promise<HttpResponse<V1Beta1ListOrganizationsByCurrentUserResponse, RpcStatus>>;
|
|
2638
2747
|
/**
|
|
2639
2748
|
* @description List a user preferences by ID.
|
|
2640
2749
|
*
|
|
@@ -2659,12 +2768,21 @@ declare class V1Beta1<SecurityDataType = unknown> extends HttpClient<SecurityDat
|
|
|
2659
2768
|
* @description Get all projects the current user belongs to
|
|
2660
2769
|
*
|
|
2661
2770
|
* @tags User
|
|
2662
|
-
* @name
|
|
2771
|
+
* @name FrontierServiceListProjectsByCurrentUser
|
|
2663
2772
|
* @summary Get my projects
|
|
2664
2773
|
* @request GET:/v1beta1/users/self/projects
|
|
2665
2774
|
* @secure
|
|
2666
2775
|
*/
|
|
2667
|
-
|
|
2776
|
+
frontierServiceListProjectsByCurrentUser: (query?: {
|
|
2777
|
+
/** org_id is optional and filter projects by org */
|
|
2778
|
+
orgId?: string;
|
|
2779
|
+
/**
|
|
2780
|
+
* list of permissions needs to be checked against each project
|
|
2781
|
+
* query params are set as with_permissions=get&with_permissions=delete
|
|
2782
|
+
* to be represented as array
|
|
2783
|
+
*/
|
|
2784
|
+
withPermissions?: string[];
|
|
2785
|
+
}, params?: RequestParams) => Promise<HttpResponse<V1Beta1ListProjectsByCurrentUserResponse, RpcStatus>>;
|
|
2668
2786
|
}
|
|
2669
2787
|
|
|
2670
2788
|
interface FrontierContextProviderProps {
|