@raystack/frontier 0.29.1 → 0.30.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.
@@ -0,0 +1,3469 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ var __objRest = (source, exclude) => {
21
+ var target = {};
22
+ for (var prop in source)
23
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
24
+ target[prop] = source[prop];
25
+ if (source != null && __getOwnPropSymbols)
26
+ for (var prop of __getOwnPropSymbols(source)) {
27
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
28
+ target[prop] = source[prop];
29
+ }
30
+ return target;
31
+ };
32
+ var __async = (__this, __arguments, generator) => {
33
+ return new Promise((resolve, reject) => {
34
+ var fulfilled = (value) => {
35
+ try {
36
+ step(generator.next(value));
37
+ } catch (e) {
38
+ reject(e);
39
+ }
40
+ };
41
+ var rejected = (value) => {
42
+ try {
43
+ step(generator.throw(value));
44
+ } catch (e) {
45
+ reject(e);
46
+ }
47
+ };
48
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
49
+ step((generator = generator.apply(__this, __arguments)).next());
50
+ });
51
+ };
52
+
53
+ // api-client/http-client.ts
54
+ var HttpClient = class {
55
+ constructor(apiConfig = {}) {
56
+ this.baseUrl = "http://127.0.0.1:7400";
57
+ this.securityData = null;
58
+ this.abortControllers = /* @__PURE__ */ new Map();
59
+ this.customFetch = (...fetchParams) => fetch(...fetchParams);
60
+ this.baseApiParams = {
61
+ credentials: "same-origin",
62
+ headers: {},
63
+ redirect: "follow",
64
+ referrerPolicy: "no-referrer"
65
+ };
66
+ this.setSecurityData = (data) => {
67
+ this.securityData = data;
68
+ };
69
+ this.contentFormatters = {
70
+ ["application/json" /* Json */]: (input) => input !== null && (typeof input === "object" || typeof input === "string") ? JSON.stringify(input) : input,
71
+ ["text/plain" /* Text */]: (input) => input !== null && typeof input !== "string" ? JSON.stringify(input) : input,
72
+ ["multipart/form-data" /* FormData */]: (input) => Object.keys(input || {}).reduce((formData, key) => {
73
+ const property = input[key];
74
+ formData.append(
75
+ key,
76
+ property instanceof Blob ? property : typeof property === "object" && property !== null ? JSON.stringify(property) : `${property}`
77
+ );
78
+ return formData;
79
+ }, new FormData()),
80
+ ["application/x-www-form-urlencoded" /* UrlEncoded */]: (input) => this.toQueryString(input)
81
+ };
82
+ this.createAbortSignal = (cancelToken) => {
83
+ if (this.abortControllers.has(cancelToken)) {
84
+ const abortController2 = this.abortControllers.get(cancelToken);
85
+ if (abortController2) {
86
+ return abortController2.signal;
87
+ }
88
+ return void 0;
89
+ }
90
+ const abortController = new AbortController();
91
+ this.abortControllers.set(cancelToken, abortController);
92
+ return abortController.signal;
93
+ };
94
+ this.abortRequest = (cancelToken) => {
95
+ const abortController = this.abortControllers.get(cancelToken);
96
+ if (abortController) {
97
+ abortController.abort();
98
+ this.abortControllers.delete(cancelToken);
99
+ }
100
+ };
101
+ this.request = (_a) => __async(this, null, function* () {
102
+ var _b = _a, {
103
+ body,
104
+ secure,
105
+ path,
106
+ type,
107
+ query,
108
+ format,
109
+ baseUrl,
110
+ cancelToken
111
+ } = _b, params = __objRest(_b, [
112
+ "body",
113
+ "secure",
114
+ "path",
115
+ "type",
116
+ "query",
117
+ "format",
118
+ "baseUrl",
119
+ "cancelToken"
120
+ ]);
121
+ const secureParams = (typeof secure === "boolean" ? secure : this.baseApiParams.secure) && this.securityWorker && (yield this.securityWorker(this.securityData)) || {};
122
+ const requestParams = this.mergeRequestParams(params, secureParams);
123
+ const queryString = query && this.toQueryString(query);
124
+ const payloadFormatter = this.contentFormatters[type || "application/json" /* Json */];
125
+ const responseFormat = format || requestParams.format;
126
+ return this.customFetch(`${baseUrl || this.baseUrl || ""}${path}${queryString ? `?${queryString}` : ""}`, __spreadProps(__spreadValues({}, requestParams), {
127
+ headers: __spreadValues(__spreadValues({}, requestParams.headers || {}), type && type !== "multipart/form-data" /* FormData */ ? { "Content-Type": type } : {}),
128
+ signal: (cancelToken ? this.createAbortSignal(cancelToken) : requestParams.signal) || null,
129
+ body: typeof body === "undefined" || body === null ? null : payloadFormatter(body)
130
+ })).then((response) => __async(this, null, function* () {
131
+ const r = response;
132
+ r.data = null;
133
+ r.error = null;
134
+ const data = !responseFormat ? r : yield response[responseFormat]().then((data2) => {
135
+ if (r.ok) {
136
+ r.data = data2;
137
+ } else {
138
+ r.error = data2;
139
+ }
140
+ return r;
141
+ }).catch((e) => {
142
+ r.error = e;
143
+ return r;
144
+ });
145
+ if (cancelToken) {
146
+ this.abortControllers.delete(cancelToken);
147
+ }
148
+ if (!response.ok)
149
+ throw data;
150
+ return data;
151
+ }));
152
+ });
153
+ Object.assign(this, apiConfig);
154
+ }
155
+ encodeQueryParam(key, value) {
156
+ const encodedKey = encodeURIComponent(key);
157
+ return `${encodedKey}=${encodeURIComponent(typeof value === "number" ? value : `${value}`)}`;
158
+ }
159
+ addQueryParam(query, key) {
160
+ return this.encodeQueryParam(key, query[key]);
161
+ }
162
+ addArrayQueryParam(query, key) {
163
+ const value = query[key];
164
+ return value.map((v) => this.encodeQueryParam(key, v)).join("&");
165
+ }
166
+ toQueryString(rawQuery) {
167
+ const query = rawQuery || {};
168
+ const keys = Object.keys(query).filter((key) => "undefined" !== typeof query[key]);
169
+ return keys.map((key) => Array.isArray(query[key]) ? this.addArrayQueryParam(query, key) : this.addQueryParam(query, key)).join("&");
170
+ }
171
+ addQueryParams(rawQuery) {
172
+ const queryString = this.toQueryString(rawQuery);
173
+ return queryString ? `?${queryString}` : "";
174
+ }
175
+ mergeRequestParams(params1, params2) {
176
+ return __spreadProps(__spreadValues(__spreadValues(__spreadValues({}, this.baseApiParams), params1), params2 || {}), {
177
+ headers: __spreadValues(__spreadValues(__spreadValues({}, this.baseApiParams.headers || {}), params1.headers || {}), params2 && params2.headers || {})
178
+ });
179
+ }
180
+ };
181
+
182
+ // api-client/V1Beta1.ts
183
+ var V1Beta1 = class extends HttpClient {
184
+ constructor() {
185
+ super(...arguments);
186
+ /**
187
+ * @description Lists all the billing accounts from all the organizations in a Frontier instance. It can be filtered by organization.
188
+ *
189
+ * @tags Billing
190
+ * @name AdminServiceListAllBillingAccounts
191
+ * @summary List all billing accounts
192
+ * @request GET:/v1beta1/admin/billing/accounts
193
+ * @secure
194
+ */
195
+ this.adminServiceListAllBillingAccounts = (query, params = {}) => this.request(__spreadValues({
196
+ path: `/v1beta1/admin/billing/accounts`,
197
+ method: "GET",
198
+ query,
199
+ secure: true,
200
+ format: "json"
201
+ }, params));
202
+ /**
203
+ * @description Lists all the invoices from all the organizations in a Frontier instance. It can be filtered by organization.
204
+ *
205
+ * @tags Invoice
206
+ * @name AdminServiceListAllInvoices
207
+ * @summary List all invoices
208
+ * @request GET:/v1beta1/admin/billing/invoices
209
+ * @secure
210
+ */
211
+ this.adminServiceListAllInvoices = (query, params = {}) => this.request(__spreadValues({
212
+ path: `/v1beta1/admin/billing/invoices`,
213
+ method: "GET",
214
+ query,
215
+ secure: true,
216
+ format: "json"
217
+ }, params));
218
+ /**
219
+ * @description Returns true if a principal has required permissions to access a resource and false otherwise.<br/> Note the principal can be a user, group or a service account.
220
+ *
221
+ * @tags Authz
222
+ * @name AdminServiceCheckFederatedResourcePermission
223
+ * @summary Check
224
+ * @request POST:/v1beta1/admin/check
225
+ * @secure
226
+ */
227
+ this.adminServiceCheckFederatedResourcePermission = (body, params = {}) => this.request(__spreadValues({
228
+ path: `/v1beta1/admin/check`,
229
+ method: "POST",
230
+ body,
231
+ secure: true,
232
+ type: "application/json" /* Json */,
233
+ format: "json"
234
+ }, params));
235
+ /**
236
+ * @description Lists all the groups from all the organizations in a Frontier instance. It can be filtered by organization and state.
237
+ *
238
+ * @tags Group
239
+ * @name AdminServiceListGroups
240
+ * @summary List all groups
241
+ * @request GET:/v1beta1/admin/groups
242
+ * @secure
243
+ */
244
+ this.adminServiceListGroups = (query, params = {}) => this.request(__spreadValues({
245
+ path: `/v1beta1/admin/groups`,
246
+ method: "GET",
247
+ query,
248
+ secure: true,
249
+ format: "json"
250
+ }, params));
251
+ /**
252
+ * @description Lists all the organizations in a Frontier instance. It can be filtered by user and state.
253
+ *
254
+ * @tags Organization
255
+ * @name AdminServiceListAllOrganizations
256
+ * @summary List all organizations
257
+ * @request GET:/v1beta1/admin/organizations
258
+ * @secure
259
+ */
260
+ this.adminServiceListAllOrganizations = (query, params = {}) => this.request(__spreadValues({
261
+ path: `/v1beta1/admin/organizations`,
262
+ method: "GET",
263
+ query,
264
+ secure: true,
265
+ format: "json"
266
+ }, params));
267
+ /**
268
+ * @description Checkout a product to buy it one time or start a subscription plan on a billing account manually. It bypasses billing engine.
269
+ *
270
+ * @tags Checkout
271
+ * @name AdminServiceDelegatedCheckout
272
+ * @summary Checkout a product or subscription
273
+ * @request POST:/v1beta1/admin/organizations/{org_id}/billing/{billing_id}/checkouts
274
+ * @secure
275
+ */
276
+ this.adminServiceDelegatedCheckout = (orgId, billingId, body, params = {}) => this.request(__spreadValues({
277
+ path: `/v1beta1/admin/organizations/${orgId}/billing/${billingId}/checkouts`,
278
+ method: "POST",
279
+ body,
280
+ secure: true,
281
+ type: "application/json" /* Json */,
282
+ format: "json"
283
+ }, params));
284
+ /**
285
+ * @description Revert billing usage for a billing account.
286
+ *
287
+ * @tags Billing
288
+ * @name AdminServiceRevertBillingUsage
289
+ * @summary Revert billing usage
290
+ * @request POST:/v1beta1/admin/organizations/{org_id}/billing/{billing_id}/usage/{usage_id}/revert
291
+ * @secure
292
+ */
293
+ this.adminServiceRevertBillingUsage = (orgId, billingId, usageId, body, params = {}) => this.request(__spreadValues({
294
+ path: `/v1beta1/admin/organizations/${orgId}/billing/${billingId}/usage/${usageId}/revert`,
295
+ method: "POST",
296
+ body,
297
+ secure: true,
298
+ type: "application/json" /* Json */,
299
+ format: "json"
300
+ }, params));
301
+ /**
302
+ * @description Checkout a product to buy it one time or start a subscription plan on a billing account manually. It bypasses billing engine.
303
+ *
304
+ * @tags Checkout
305
+ * @name AdminServiceDelegatedCheckout2
306
+ * @summary Checkout a product or subscription
307
+ * @request POST:/v1beta1/admin/organizations/{org_id}/billing/checkouts
308
+ * @secure
309
+ */
310
+ this.adminServiceDelegatedCheckout2 = (orgId, body, params = {}) => this.request(__spreadValues({
311
+ path: `/v1beta1/admin/organizations/${orgId}/billing/checkouts`,
312
+ method: "POST",
313
+ body,
314
+ secure: true,
315
+ type: "application/json" /* Json */,
316
+ format: "json"
317
+ }, params));
318
+ /**
319
+ * @description Lists all the users added to the platform.
320
+ *
321
+ * @tags Platform
322
+ * @name AdminServiceListPlatformUsers
323
+ * @summary List platform users
324
+ * @request GET:/v1beta1/admin/platform/users
325
+ * @secure
326
+ */
327
+ this.adminServiceListPlatformUsers = (params = {}) => this.request(__spreadValues({
328
+ path: `/v1beta1/admin/platform/users`,
329
+ method: "GET",
330
+ secure: true,
331
+ format: "json"
332
+ }, params));
333
+ /**
334
+ * @description Adds a user to the platform.
335
+ *
336
+ * @tags Platform
337
+ * @name AdminServiceAddPlatformUser
338
+ * @summary Add platform user
339
+ * @request POST:/v1beta1/admin/platform/users
340
+ * @secure
341
+ */
342
+ this.adminServiceAddPlatformUser = (body, params = {}) => this.request(__spreadValues({
343
+ path: `/v1beta1/admin/platform/users`,
344
+ method: "POST",
345
+ body,
346
+ secure: true,
347
+ type: "application/json" /* Json */,
348
+ format: "json"
349
+ }, params));
350
+ /**
351
+ * @description Removes a user from the platform.
352
+ *
353
+ * @tags Platform
354
+ * @name AdminServiceRemovePlatformUser
355
+ * @summary Remove platform user
356
+ * @request POST:/v1beta1/admin/platform/users/remove
357
+ * @secure
358
+ */
359
+ this.adminServiceRemovePlatformUser = (body, params = {}) => this.request(__spreadValues({
360
+ path: `/v1beta1/admin/platform/users/remove`,
361
+ method: "POST",
362
+ body,
363
+ secure: true,
364
+ type: "application/json" /* Json */,
365
+ format: "json"
366
+ }, params));
367
+ /**
368
+ * @description Lists all the projects from all the organizations in a Frontier instance. It can be filtered by organization and state.
369
+ *
370
+ * @tags Project
371
+ * @name AdminServiceListProjects
372
+ * @summary List all projects
373
+ * @request GET:/v1beta1/admin/projects
374
+ * @secure
375
+ */
376
+ this.adminServiceListProjects = (query, params = {}) => this.request(__spreadValues({
377
+ path: `/v1beta1/admin/projects`,
378
+ method: "GET",
379
+ query,
380
+ secure: true,
381
+ format: "json"
382
+ }, params));
383
+ /**
384
+ * No description
385
+ *
386
+ * @tags Relation
387
+ * @name AdminServiceListRelations
388
+ * @summary List all relations
389
+ * @request GET:/v1beta1/admin/relations
390
+ * @secure
391
+ */
392
+ this.adminServiceListRelations = (query, params = {}) => this.request(__spreadValues({
393
+ path: `/v1beta1/admin/relations`,
394
+ method: "GET",
395
+ query,
396
+ secure: true,
397
+ format: "json"
398
+ }, params));
399
+ /**
400
+ * @description Lists all the resources from all the organizations in a Frontier instance. It can be filtered by user, project, organization and namespace.
401
+ *
402
+ * @tags Resource
403
+ * @name AdminServiceListResources
404
+ * @summary List all resources
405
+ * @request GET:/v1beta1/admin/resources
406
+ * @secure
407
+ */
408
+ this.adminServiceListResources = (query, params = {}) => this.request(__spreadValues({
409
+ path: `/v1beta1/admin/resources`,
410
+ method: "GET",
411
+ query,
412
+ secure: true,
413
+ format: "json"
414
+ }, params));
415
+ /**
416
+ * @description Lists all the users from all the organizations in a Frontier instance. It can be filtered by keyword, organization, group and state.
417
+ *
418
+ * @tags User
419
+ * @name AdminServiceListAllUsers
420
+ * @summary List all users
421
+ * @request GET:/v1beta1/admin/users
422
+ * @secure
423
+ */
424
+ this.adminServiceListAllUsers = (query, params = {}) => this.request(__spreadValues({
425
+ path: `/v1beta1/admin/users`,
426
+ method: "GET",
427
+ query,
428
+ secure: true,
429
+ format: "json"
430
+ }, params));
431
+ /**
432
+ * @description List all webhooks.
433
+ *
434
+ * @tags Webhook
435
+ * @name AdminServiceListWebhooks
436
+ * @summary List webhooks
437
+ * @request GET:/v1beta1/admin/webhooks
438
+ * @secure
439
+ */
440
+ this.adminServiceListWebhooks = (params = {}) => this.request(__spreadValues({
441
+ path: `/v1beta1/admin/webhooks`,
442
+ method: "GET",
443
+ secure: true,
444
+ format: "json"
445
+ }, params));
446
+ /**
447
+ * @description Create a new webhook.
448
+ *
449
+ * @tags Webhook
450
+ * @name AdminServiceCreateWebhook
451
+ * @summary Create webhook
452
+ * @request POST:/v1beta1/admin/webhooks
453
+ * @secure
454
+ */
455
+ this.adminServiceCreateWebhook = (body, params = {}) => this.request(__spreadValues({
456
+ path: `/v1beta1/admin/webhooks`,
457
+ method: "POST",
458
+ body,
459
+ secure: true,
460
+ type: "application/json" /* Json */,
461
+ format: "json"
462
+ }, params));
463
+ /**
464
+ * @description Delete a webhook.
465
+ *
466
+ * @tags Webhook
467
+ * @name AdminServiceDeleteWebhook
468
+ * @summary Delete webhook
469
+ * @request DELETE:/v1beta1/admin/webhooks/{id}
470
+ * @secure
471
+ */
472
+ this.adminServiceDeleteWebhook = (id, params = {}) => this.request(__spreadValues({
473
+ path: `/v1beta1/admin/webhooks/${id}`,
474
+ method: "DELETE",
475
+ secure: true,
476
+ format: "json"
477
+ }, params));
478
+ /**
479
+ * @description Update a webhook.
480
+ *
481
+ * @tags Webhook
482
+ * @name AdminServiceUpdateWebhook
483
+ * @summary Update webhook
484
+ * @request PUT:/v1beta1/admin/webhooks/{id}
485
+ * @secure
486
+ */
487
+ this.adminServiceUpdateWebhook = (id, body, params = {}) => this.request(__spreadValues({
488
+ path: `/v1beta1/admin/webhooks/${id}`,
489
+ method: "PUT",
490
+ body,
491
+ secure: true,
492
+ type: "application/json" /* Json */,
493
+ format: "json"
494
+ }, params));
495
+ /**
496
+ * @description Returns a list of identity providers configured on an instance level in Frontier. e.g Google, AzureAD, Github etc
497
+ *
498
+ * @tags Authn
499
+ * @name FrontierServiceListAuthStrategies
500
+ * @summary List authentication strategies
501
+ * @request GET:/v1beta1/auth
502
+ * @secure
503
+ */
504
+ this.frontierServiceListAuthStrategies = (params = {}) => this.request(__spreadValues({
505
+ path: `/v1beta1/auth`,
506
+ method: "GET",
507
+ secure: true,
508
+ format: "json"
509
+ }, params));
510
+ /**
511
+ * @description Callback from a strategy. This is the endpoint where the strategy will redirect the user after successful authentication. This endpoint will be called with the code and state query parameters. The code will be used to get the access token from the strategy and the state will be used to get the return_to url from the session and redirect the user to that url.
512
+ *
513
+ * @tags Authn
514
+ * @name FrontierServiceAuthCallback
515
+ * @summary Callback from a strategy
516
+ * @request GET:/v1beta1/auth/callback
517
+ * @secure
518
+ */
519
+ this.frontierServiceAuthCallback = (query, params = {}) => this.request(__spreadValues({
520
+ path: `/v1beta1/auth/callback`,
521
+ method: "GET",
522
+ query,
523
+ secure: true,
524
+ format: "json"
525
+ }, params));
526
+ /**
527
+ * @description Callback from a strategy. This is the endpoint where the strategy will redirect the user after successful authentication. This endpoint will be called with the code and state query parameters. The code will be used to get the access token from the strategy and the state will be used to get the return_to url from the session and redirect the user to that url.
528
+ *
529
+ * @tags Authn
530
+ * @name FrontierServiceAuthCallback2
531
+ * @summary Callback from a strategy
532
+ * @request POST:/v1beta1/auth/callback
533
+ * @secure
534
+ */
535
+ this.frontierServiceAuthCallback2 = (body, params = {}) => this.request(__spreadValues({
536
+ path: `/v1beta1/auth/callback`,
537
+ method: "POST",
538
+ body,
539
+ secure: true,
540
+ type: "application/json" /* Json */,
541
+ format: "json"
542
+ }, params));
543
+ /**
544
+ * No description
545
+ *
546
+ * @tags Authz
547
+ * @name FrontierServiceGetJwKs
548
+ * @summary Get well known JWKs
549
+ * @request GET:/v1beta1/auth/jwks
550
+ * @secure
551
+ */
552
+ this.frontierServiceGetJwKs = (params = {}) => this.request(__spreadValues({
553
+ path: `/v1beta1/auth/jwks`,
554
+ method: "GET",
555
+ secure: true,
556
+ format: "json"
557
+ }, params));
558
+ /**
559
+ * No description
560
+ *
561
+ * @tags Authn
562
+ * @name FrontierServiceAuthLogout
563
+ * @summary Logout from a strategy
564
+ * @request GET:/v1beta1/auth/logout
565
+ * @secure
566
+ */
567
+ this.frontierServiceAuthLogout = (params = {}) => this.request(__spreadValues({
568
+ path: `/v1beta1/auth/logout`,
569
+ method: "GET",
570
+ secure: true,
571
+ format: "json"
572
+ }, params));
573
+ /**
574
+ * No description
575
+ *
576
+ * @tags Authn
577
+ * @name FrontierServiceAuthLogout2
578
+ * @summary Logout from a strategy
579
+ * @request DELETE:/v1beta1/auth/logout
580
+ * @secure
581
+ */
582
+ this.frontierServiceAuthLogout2 = (params = {}) => this.request(__spreadValues({
583
+ path: `/v1beta1/auth/logout`,
584
+ method: "DELETE",
585
+ secure: true,
586
+ format: "json"
587
+ }, params));
588
+ /**
589
+ * @description Authenticate a user with a strategy. By default, after successful authentication no operation will be performed to apply redirection in case of browsers, provide a url in the authenticate request body that will be used for redirection after authentication. Also set redirect as true for redirecting the user request to the redirect_url after successful authentication.
590
+ *
591
+ * @tags Authn
592
+ * @name FrontierServiceAuthenticate
593
+ * @summary Authenticate with a strategy
594
+ * @request GET:/v1beta1/auth/register/{strategy_name}
595
+ * @secure
596
+ */
597
+ this.frontierServiceAuthenticate = (strategyName, query, params = {}) => this.request(__spreadValues({
598
+ path: `/v1beta1/auth/register/${strategyName}`,
599
+ method: "GET",
600
+ query,
601
+ secure: true,
602
+ format: "json"
603
+ }, params));
604
+ /**
605
+ * @description Authenticate a user with a strategy. By default, after successful authentication no operation will be performed to apply redirection in case of browsers, provide a url in the authenticate request body that will be used for redirection after authentication. Also set redirect as true for redirecting the user request to the redirect_url after successful authentication.
606
+ *
607
+ * @tags Authn
608
+ * @name FrontierServiceAuthenticate2
609
+ * @summary Authenticate with a strategy
610
+ * @request POST:/v1beta1/auth/register/{strategy_name}
611
+ * @secure
612
+ */
613
+ this.frontierServiceAuthenticate2 = (strategyName, body, params = {}) => this.request(__spreadValues({
614
+ path: `/v1beta1/auth/register/${strategyName}`,
615
+ method: "POST",
616
+ body,
617
+ secure: true,
618
+ type: "application/json" /* Json */,
619
+ format: "json"
620
+ }, params));
621
+ /**
622
+ * @description Access token can be generated by providing the credentials in the request body/header. The credentials can be client id and secret or service account generated key jwt. Use the generated access token in Authorization header to access the frontier resources.
623
+ *
624
+ * @tags Authn
625
+ * @name FrontierServiceAuthToken
626
+ * @summary Generate access token by given credentials
627
+ * @request POST:/v1beta1/auth/token
628
+ * @secure
629
+ */
630
+ this.frontierServiceAuthToken = (body, params = {}) => this.request(__spreadValues({
631
+ path: `/v1beta1/auth/token`,
632
+ method: "POST",
633
+ body,
634
+ secure: true,
635
+ type: "application/json" /* Json */,
636
+ format: "json"
637
+ }, params));
638
+ /**
639
+ * @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).
640
+ *
641
+ * @tags Authz
642
+ * @name FrontierServiceBatchCheckPermission
643
+ * @summary Batch check
644
+ * @request POST:/v1beta1/batchcheck
645
+ * @secure
646
+ */
647
+ this.frontierServiceBatchCheckPermission = (body, params = {}) => this.request(__spreadValues({
648
+ path: `/v1beta1/batchcheck`,
649
+ method: "POST",
650
+ body,
651
+ secure: true,
652
+ type: "application/json" /* Json */,
653
+ format: "json"
654
+ }, params));
655
+ /**
656
+ * @description List all features
657
+ *
658
+ * @tags Feature
659
+ * @name FrontierServiceListFeatures
660
+ * @summary List features
661
+ * @request GET:/v1beta1/billing/features
662
+ * @secure
663
+ */
664
+ this.frontierServiceListFeatures = (params = {}) => this.request(__spreadValues({
665
+ path: `/v1beta1/billing/features`,
666
+ method: "GET",
667
+ secure: true,
668
+ format: "json"
669
+ }, params));
670
+ /**
671
+ * @description Create a new feature for platform.
672
+ *
673
+ * @tags Feature
674
+ * @name FrontierServiceCreateFeature
675
+ * @summary Create feature
676
+ * @request POST:/v1beta1/billing/features
677
+ * @secure
678
+ */
679
+ this.frontierServiceCreateFeature = (body, params = {}) => this.request(__spreadValues({
680
+ path: `/v1beta1/billing/features`,
681
+ method: "POST",
682
+ body,
683
+ secure: true,
684
+ type: "application/json" /* Json */,
685
+ format: "json"
686
+ }, params));
687
+ /**
688
+ * @description Get a feature by ID.
689
+ *
690
+ * @tags Feature
691
+ * @name FrontierServiceGetFeature
692
+ * @summary Get feature
693
+ * @request GET:/v1beta1/billing/features/{id}
694
+ * @secure
695
+ */
696
+ this.frontierServiceGetFeature = (id, params = {}) => this.request(__spreadValues({
697
+ path: `/v1beta1/billing/features/${id}`,
698
+ method: "GET",
699
+ secure: true,
700
+ format: "json"
701
+ }, params));
702
+ /**
703
+ * @description Update a feature by ID.
704
+ *
705
+ * @tags Feature
706
+ * @name FrontierServiceUpdateFeature
707
+ * @summary Update feature
708
+ * @request PUT:/v1beta1/billing/features/{id}
709
+ * @secure
710
+ */
711
+ this.frontierServiceUpdateFeature = (id, body, params = {}) => this.request(__spreadValues({
712
+ path: `/v1beta1/billing/features/${id}`,
713
+ method: "PUT",
714
+ body,
715
+ secure: true,
716
+ type: "application/json" /* Json */,
717
+ format: "json"
718
+ }, params));
719
+ /**
720
+ * @description List all plans.
721
+ *
722
+ * @tags Plan
723
+ * @name FrontierServiceListPlans
724
+ * @summary List plans
725
+ * @request GET:/v1beta1/billing/plans
726
+ * @secure
727
+ */
728
+ this.frontierServiceListPlans = (params = {}) => this.request(__spreadValues({
729
+ path: `/v1beta1/billing/plans`,
730
+ method: "GET",
731
+ secure: true,
732
+ format: "json"
733
+ }, params));
734
+ /**
735
+ * @description Create a new plan for platform.
736
+ *
737
+ * @tags Plan
738
+ * @name FrontierServiceCreatePlan
739
+ * @summary Create plan
740
+ * @request POST:/v1beta1/billing/plans
741
+ * @secure
742
+ */
743
+ this.frontierServiceCreatePlan = (body, params = {}) => this.request(__spreadValues({
744
+ path: `/v1beta1/billing/plans`,
745
+ method: "POST",
746
+ body,
747
+ secure: true,
748
+ type: "application/json" /* Json */,
749
+ format: "json"
750
+ }, params));
751
+ /**
752
+ * @description Get a plan by ID.
753
+ *
754
+ * @tags Plan
755
+ * @name FrontierServiceGetPlan
756
+ * @summary Get plan
757
+ * @request GET:/v1beta1/billing/plans/{id}
758
+ * @secure
759
+ */
760
+ this.frontierServiceGetPlan = (id, params = {}) => this.request(__spreadValues({
761
+ path: `/v1beta1/billing/plans/${id}`,
762
+ method: "GET",
763
+ secure: true,
764
+ format: "json"
765
+ }, params));
766
+ /**
767
+ * @description Update a plan by ID.
768
+ *
769
+ * @tags Plan
770
+ * @name FrontierServiceUpdatePlan
771
+ * @summary Update plan
772
+ * @request PUT:/v1beta1/billing/plans/{id}
773
+ * @secure
774
+ */
775
+ this.frontierServiceUpdatePlan = (id, body, params = {}) => this.request(__spreadValues({
776
+ path: `/v1beta1/billing/plans/${id}`,
777
+ method: "PUT",
778
+ body,
779
+ secure: true,
780
+ type: "application/json" /* Json */,
781
+ format: "json"
782
+ }, params));
783
+ /**
784
+ * @description List all products of a platform.
785
+ *
786
+ * @tags Product
787
+ * @name FrontierServiceListProducts
788
+ * @summary List products
789
+ * @request GET:/v1beta1/billing/products
790
+ * @secure
791
+ */
792
+ this.frontierServiceListProducts = (params = {}) => this.request(__spreadValues({
793
+ path: `/v1beta1/billing/products`,
794
+ method: "GET",
795
+ secure: true,
796
+ format: "json"
797
+ }, params));
798
+ /**
799
+ * @description Create a new product for platform.
800
+ *
801
+ * @tags Product
802
+ * @name FrontierServiceCreateProduct
803
+ * @summary Create product
804
+ * @request POST:/v1beta1/billing/products
805
+ * @secure
806
+ */
807
+ this.frontierServiceCreateProduct = (body, params = {}) => this.request(__spreadValues({
808
+ path: `/v1beta1/billing/products`,
809
+ method: "POST",
810
+ body,
811
+ secure: true,
812
+ type: "application/json" /* Json */,
813
+ format: "json"
814
+ }, params));
815
+ /**
816
+ * @description Get a product by ID.
817
+ *
818
+ * @tags Product
819
+ * @name FrontierServiceGetProduct
820
+ * @summary Get product
821
+ * @request GET:/v1beta1/billing/products/{id}
822
+ * @secure
823
+ */
824
+ this.frontierServiceGetProduct = (id, params = {}) => this.request(__spreadValues({
825
+ path: `/v1beta1/billing/products/${id}`,
826
+ method: "GET",
827
+ secure: true,
828
+ format: "json"
829
+ }, params));
830
+ /**
831
+ * @description Update a product by ID.
832
+ *
833
+ * @tags Product
834
+ * @name FrontierServiceUpdateProduct
835
+ * @summary Update product
836
+ * @request PUT:/v1beta1/billing/products/{id}
837
+ * @secure
838
+ */
839
+ this.frontierServiceUpdateProduct = (id, body, params = {}) => this.request(__spreadValues({
840
+ path: `/v1beta1/billing/products/${id}`,
841
+ method: "PUT",
842
+ body,
843
+ secure: true,
844
+ type: "application/json" /* Json */,
845
+ format: "json"
846
+ }, params));
847
+ /**
848
+ * @description Accepts a Billing webhook and processes it.
849
+ *
850
+ * @tags Webhook
851
+ * @name FrontierServiceBillingWebhookCallback
852
+ * @summary Accept Billing webhook
853
+ * @request POST:/v1beta1/billing/webhooks/callback/{provider}
854
+ * @secure
855
+ */
856
+ this.frontierServiceBillingWebhookCallback = (provider, body, params = {}) => this.request(__spreadValues({
857
+ path: `/v1beta1/billing/webhooks/callback/${provider}`,
858
+ method: "POST",
859
+ body,
860
+ secure: true,
861
+ type: "application/json" /* Json */,
862
+ format: "json"
863
+ }, params));
864
+ /**
865
+ * @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. Frontier will extract principal from the current logged in session cookie (if any), or the client id and secret (in case of service users) or the access token.
866
+ *
867
+ * @tags Authz
868
+ * @name FrontierServiceCheckResourcePermission
869
+ * @summary Check
870
+ * @request POST:/v1beta1/check
871
+ * @secure
872
+ */
873
+ this.frontierServiceCheckResourcePermission = (body, params = {}) => this.request(__spreadValues({
874
+ path: `/v1beta1/check`,
875
+ method: "POST",
876
+ body,
877
+ secure: true,
878
+ type: "application/json" /* Json */,
879
+ format: "json"
880
+ }, params));
881
+ /**
882
+ * @description List a group preferences by ID.
883
+ *
884
+ * @tags Preference
885
+ * @name FrontierServiceListGroupPreferences
886
+ * @summary List group preferences
887
+ * @request GET:/v1beta1/groups/{id}/preferences
888
+ * @secure
889
+ */
890
+ this.frontierServiceListGroupPreferences = (id, params = {}) => this.request(__spreadValues({
891
+ path: `/v1beta1/groups/${id}/preferences`,
892
+ method: "GET",
893
+ secure: true,
894
+ format: "json"
895
+ }, params));
896
+ /**
897
+ * @description Create a new group preferences. The group preferences **name** must be unique within the group and can contain only alphanumeric characters, dashes and underscores.
898
+ *
899
+ * @tags Preference
900
+ * @name FrontierServiceCreateGroupPreferences
901
+ * @summary Create group preferences
902
+ * @request POST:/v1beta1/groups/{id}/preferences
903
+ * @secure
904
+ */
905
+ this.frontierServiceCreateGroupPreferences = (id, body, params = {}) => this.request(__spreadValues({
906
+ path: `/v1beta1/groups/${id}/preferences`,
907
+ method: "POST",
908
+ body,
909
+ secure: true,
910
+ format: "json"
911
+ }, params));
912
+ /**
913
+ * @description Returns a list of all metaschemas configured on an instance level in Frontier. e.g user, project, organization etc
914
+ *
915
+ * @tags MetaSchema
916
+ * @name FrontierServiceListMetaSchemas
917
+ * @summary List metaschemas
918
+ * @request GET:/v1beta1/meta/schemas
919
+ * @secure
920
+ */
921
+ this.frontierServiceListMetaSchemas = (params = {}) => this.request(__spreadValues({
922
+ path: `/v1beta1/meta/schemas`,
923
+ method: "GET",
924
+ secure: true,
925
+ format: "json"
926
+ }, params));
927
+ /**
928
+ * @description Create a new metadata schema. The metaschema **name** must be unique within the entire Frontier instance and can contain only alphanumeric characters, dashes and underscores. The metaschema **schema** must be a valid JSON schema.Please refer to https://json-schema.org/ to know more about json schema. <br/>*Example:* `{name:"user",schema:{"type":"object","properties":{"label":{"type":"object","additionalProperties":{"type":"string"}},"description":{"type":"string"}}}}`
929
+ *
930
+ * @tags MetaSchema
931
+ * @name FrontierServiceCreateMetaSchema
932
+ * @summary Create metaschema
933
+ * @request POST:/v1beta1/meta/schemas
934
+ * @secure
935
+ */
936
+ this.frontierServiceCreateMetaSchema = (body, params = {}) => this.request(__spreadValues({
937
+ path: `/v1beta1/meta/schemas`,
938
+ method: "POST",
939
+ body,
940
+ secure: true,
941
+ format: "json"
942
+ }, params));
943
+ /**
944
+ * @description Get a metadata schema by ID.
945
+ *
946
+ * @tags MetaSchema
947
+ * @name FrontierServiceGetMetaSchema
948
+ * @summary Get metaschema
949
+ * @request GET:/v1beta1/meta/schemas/{id}
950
+ * @secure
951
+ */
952
+ this.frontierServiceGetMetaSchema = (id, params = {}) => this.request(__spreadValues({
953
+ path: `/v1beta1/meta/schemas/${id}`,
954
+ method: "GET",
955
+ secure: true,
956
+ format: "json"
957
+ }, params));
958
+ /**
959
+ * @description Delete a metadata schema permanently. Once deleted the metaschema won't be used to validate the metadata. For example, if a metaschema(with `label` and `description` fields) is used to validate the metadata of a user, then deleting the metaschema will not validate the metadata of the user and metadata field can contain any key-value pair(and say another field called `foo` can be inserted in a user's metadata).
960
+ *
961
+ * @tags MetaSchema
962
+ * @name FrontierServiceDeleteMetaSchema
963
+ * @summary Delete metaschema
964
+ * @request DELETE:/v1beta1/meta/schemas/{id}
965
+ * @secure
966
+ */
967
+ this.frontierServiceDeleteMetaSchema = (id, params = {}) => this.request(__spreadValues({
968
+ path: `/v1beta1/meta/schemas/${id}`,
969
+ method: "DELETE",
970
+ secure: true,
971
+ format: "json"
972
+ }, params));
973
+ /**
974
+ * @description Update a metadata schema. Only `schema` field of a metaschema can be updated. The metaschema `schema` must be a valid JSON schema.Please refer to https://json-schema.org/ to know more about json schema. <br/>*Example:* `{name:"user",schema:{"type":"object","properties":{"label":{"type":"object","additionalProperties":{"type":"string"}},"description":{"type":"string"}}}}`
975
+ *
976
+ * @tags MetaSchema
977
+ * @name FrontierServiceUpdateMetaSchema
978
+ * @summary Update metaschema
979
+ * @request PUT:/v1beta1/meta/schemas/{id}
980
+ * @secure
981
+ */
982
+ this.frontierServiceUpdateMetaSchema = (id, body, params = {}) => this.request(__spreadValues({
983
+ path: `/v1beta1/meta/schemas/${id}`,
984
+ method: "PUT",
985
+ body,
986
+ secure: true,
987
+ format: "json"
988
+ }, params));
989
+ /**
990
+ * @description Returns the list of all namespaces in a Frontier instance
991
+ *
992
+ * @tags Namespace
993
+ * @name FrontierServiceListNamespaces
994
+ * @summary Get all namespaces
995
+ * @request GET:/v1beta1/namespaces
996
+ * @secure
997
+ */
998
+ this.frontierServiceListNamespaces = (params = {}) => this.request(__spreadValues({
999
+ path: `/v1beta1/namespaces`,
1000
+ method: "GET",
1001
+ secure: true,
1002
+ format: "json"
1003
+ }, params));
1004
+ /**
1005
+ * @description Returns a namespace by ID
1006
+ *
1007
+ * @tags Namespace
1008
+ * @name FrontierServiceGetNamespace
1009
+ * @summary Get namespace
1010
+ * @request GET:/v1beta1/namespaces/{id}
1011
+ * @secure
1012
+ */
1013
+ this.frontierServiceGetNamespace = (id, params = {}) => this.request(__spreadValues({
1014
+ path: `/v1beta1/namespaces/${id}`,
1015
+ method: "GET",
1016
+ secure: true,
1017
+ format: "json"
1018
+ }, params));
1019
+ /**
1020
+ * @description Returns a list of organizations. It can be filtered by userID or organization state.
1021
+ *
1022
+ * @tags Organization
1023
+ * @name FrontierServiceListOrganizations
1024
+ * @summary List organizations
1025
+ * @request GET:/v1beta1/organizations
1026
+ * @secure
1027
+ */
1028
+ this.frontierServiceListOrganizations = (query, params = {}) => this.request(__spreadValues({
1029
+ path: `/v1beta1/organizations`,
1030
+ method: "GET",
1031
+ query,
1032
+ secure: true,
1033
+ format: "json"
1034
+ }, params));
1035
+ /**
1036
+ * No description
1037
+ *
1038
+ * @tags Organization
1039
+ * @name FrontierServiceCreateOrganization
1040
+ * @summary Create organization
1041
+ * @request POST:/v1beta1/organizations
1042
+ * @secure
1043
+ */
1044
+ this.frontierServiceCreateOrganization = (body, params = {}) => this.request(__spreadValues({
1045
+ path: `/v1beta1/organizations`,
1046
+ method: "POST",
1047
+ body,
1048
+ secure: true,
1049
+ format: "json"
1050
+ }, params));
1051
+ /**
1052
+ * @description Get organization by ID or name
1053
+ *
1054
+ * @tags Organization
1055
+ * @name FrontierServiceGetOrganization
1056
+ * @summary Get organization
1057
+ * @request GET:/v1beta1/organizations/{id}
1058
+ * @secure
1059
+ */
1060
+ this.frontierServiceGetOrganization = (id, params = {}) => this.request(__spreadValues({
1061
+ path: `/v1beta1/organizations/${id}`,
1062
+ method: "GET",
1063
+ secure: true,
1064
+ format: "json"
1065
+ }, params));
1066
+ /**
1067
+ * @description Delete an organization and all of its relations permanently. The organization users will not be deleted from Frontier.
1068
+ *
1069
+ * @tags Organization
1070
+ * @name FrontierServiceDeleteOrganization
1071
+ * @summary Delete organization
1072
+ * @request DELETE:/v1beta1/organizations/{id}
1073
+ * @secure
1074
+ */
1075
+ this.frontierServiceDeleteOrganization = (id, params = {}) => this.request(__spreadValues({
1076
+ path: `/v1beta1/organizations/${id}`,
1077
+ method: "DELETE",
1078
+ secure: true,
1079
+ format: "json"
1080
+ }, params));
1081
+ /**
1082
+ * @description Update organization by ID
1083
+ *
1084
+ * @tags Organization
1085
+ * @name FrontierServiceUpdateOrganization
1086
+ * @summary Update organization
1087
+ * @request PUT:/v1beta1/organizations/{id}
1088
+ * @secure
1089
+ */
1090
+ this.frontierServiceUpdateOrganization = (id, body, params = {}) => this.request(__spreadValues({
1091
+ path: `/v1beta1/organizations/${id}`,
1092
+ method: "PUT",
1093
+ body,
1094
+ secure: true,
1095
+ format: "json"
1096
+ }, params));
1097
+ /**
1098
+ * @description Returns a list admins of an organization
1099
+ *
1100
+ * @tags Organization
1101
+ * @name FrontierServiceListOrganizationAdmins
1102
+ * @summary List organization admins
1103
+ * @request GET:/v1beta1/organizations/{id}/admins
1104
+ * @secure
1105
+ */
1106
+ this.frontierServiceListOrganizationAdmins = (id, params = {}) => this.request(__spreadValues({
1107
+ path: `/v1beta1/organizations/${id}/admins`,
1108
+ method: "GET",
1109
+ secure: true,
1110
+ format: "json"
1111
+ }, params));
1112
+ /**
1113
+ * @description Sets the state of the organization as disabled. The existing users in the org will not be able to access any organization resources.
1114
+ *
1115
+ * @tags Organization
1116
+ * @name FrontierServiceDisableOrganization
1117
+ * @summary Disable organization
1118
+ * @request POST:/v1beta1/organizations/{id}/disable
1119
+ * @secure
1120
+ */
1121
+ this.frontierServiceDisableOrganization = (id, body, params = {}) => this.request(__spreadValues({
1122
+ path: `/v1beta1/organizations/${id}/disable`,
1123
+ method: "POST",
1124
+ body,
1125
+ secure: true,
1126
+ format: "json"
1127
+ }, params));
1128
+ /**
1129
+ * @description Sets the state of the organization as enabled. The existing users in the org will be able to access any organization resources.
1130
+ *
1131
+ * @tags Organization
1132
+ * @name FrontierServiceEnableOrganization
1133
+ * @summary Enable organization
1134
+ * @request POST:/v1beta1/organizations/{id}/enable
1135
+ * @secure
1136
+ */
1137
+ this.frontierServiceEnableOrganization = (id, body, params = {}) => this.request(__spreadValues({
1138
+ path: `/v1beta1/organizations/${id}/enable`,
1139
+ method: "POST",
1140
+ body,
1141
+ secure: true,
1142
+ format: "json"
1143
+ }, params));
1144
+ /**
1145
+ * @description List an organization preferences by ID.
1146
+ *
1147
+ * @tags Preference
1148
+ * @name FrontierServiceListOrganizationPreferences
1149
+ * @summary List organization preferences
1150
+ * @request GET:/v1beta1/organizations/{id}/preferences
1151
+ * @secure
1152
+ */
1153
+ this.frontierServiceListOrganizationPreferences = (id, params = {}) => this.request(__spreadValues({
1154
+ path: `/v1beta1/organizations/${id}/preferences`,
1155
+ method: "GET",
1156
+ secure: true,
1157
+ format: "json"
1158
+ }, params));
1159
+ /**
1160
+ * @description Create a new organization preferences. The organization preferences **name** must be unique within the organization and can contain only alphanumeric characters, dashes and underscores.
1161
+ *
1162
+ * @tags Preference
1163
+ * @name FrontierServiceCreateOrganizationPreferences
1164
+ * @summary Create organization preferences
1165
+ * @request POST:/v1beta1/organizations/{id}/preferences
1166
+ * @secure
1167
+ */
1168
+ this.frontierServiceCreateOrganizationPreferences = (id, body, params = {}) => this.request(__spreadValues({
1169
+ path: `/v1beta1/organizations/${id}/preferences`,
1170
+ method: "POST",
1171
+ body,
1172
+ secure: true,
1173
+ format: "json"
1174
+ }, params));
1175
+ /**
1176
+ * @description Get all projects that belong to an organization
1177
+ *
1178
+ * @tags Organization
1179
+ * @name FrontierServiceListOrganizationProjects
1180
+ * @summary Get organization projects
1181
+ * @request GET:/v1beta1/organizations/{id}/projects
1182
+ * @secure
1183
+ */
1184
+ this.frontierServiceListOrganizationProjects = (id, query, params = {}) => this.request(__spreadValues({
1185
+ path: `/v1beta1/organizations/${id}/projects`,
1186
+ method: "GET",
1187
+ query,
1188
+ secure: true,
1189
+ format: "json"
1190
+ }, params));
1191
+ /**
1192
+ * No description
1193
+ *
1194
+ * @tags Organization
1195
+ * @name FrontierServiceListOrganizationServiceUsers
1196
+ * @summary List organization service users
1197
+ * @request GET:/v1beta1/organizations/{id}/serviceusers
1198
+ * @secure
1199
+ */
1200
+ this.frontierServiceListOrganizationServiceUsers = (id, params = {}) => this.request(__spreadValues({
1201
+ path: `/v1beta1/organizations/${id}/serviceusers`,
1202
+ method: "GET",
1203
+ secure: true,
1204
+ format: "json"
1205
+ }, params));
1206
+ /**
1207
+ * No description
1208
+ *
1209
+ * @tags Organization
1210
+ * @name FrontierServiceListOrganizationUsers
1211
+ * @summary List organization users
1212
+ * @request GET:/v1beta1/organizations/{id}/users
1213
+ * @secure
1214
+ */
1215
+ this.frontierServiceListOrganizationUsers = (id, query, params = {}) => this.request(__spreadValues({
1216
+ path: `/v1beta1/organizations/${id}/users`,
1217
+ method: "GET",
1218
+ query,
1219
+ secure: true,
1220
+ format: "json"
1221
+ }, params));
1222
+ /**
1223
+ * @description Add a user to an organization. A user must exists in Frontier before adding it to an org. This request will fail if the user doesn't exists
1224
+ *
1225
+ * @tags Organization
1226
+ * @name FrontierServiceAddOrganizationUsers
1227
+ * @summary Add organization user
1228
+ * @request POST:/v1beta1/organizations/{id}/users
1229
+ * @secure
1230
+ */
1231
+ this.frontierServiceAddOrganizationUsers = (id, body, params = {}) => this.request(__spreadValues({
1232
+ path: `/v1beta1/organizations/${id}/users`,
1233
+ method: "POST",
1234
+ body,
1235
+ secure: true,
1236
+ type: "application/json" /* Json */,
1237
+ format: "json"
1238
+ }, params));
1239
+ /**
1240
+ * @description Remove a user from an organization
1241
+ *
1242
+ * @tags Organization
1243
+ * @name FrontierServiceRemoveOrganizationUser
1244
+ * @summary Remove organization user
1245
+ * @request DELETE:/v1beta1/organizations/{id}/users/{user_id}
1246
+ * @secure
1247
+ */
1248
+ this.frontierServiceRemoveOrganizationUser = (id, userId, params = {}) => this.request(__spreadValues({
1249
+ path: `/v1beta1/organizations/${id}/users/${userId}`,
1250
+ method: "DELETE",
1251
+ secure: true,
1252
+ format: "json"
1253
+ }, params));
1254
+ /**
1255
+ * @description Returns a list of audit logs of an organization in Frontier.
1256
+ *
1257
+ * @tags AuditLog
1258
+ * @name FrontierServiceListOrganizationAuditLogs
1259
+ * @summary List audit logs
1260
+ * @request GET:/v1beta1/organizations/{org_id}/auditlogs
1261
+ * @secure
1262
+ */
1263
+ this.frontierServiceListOrganizationAuditLogs = (orgId, query, params = {}) => this.request(__spreadValues({
1264
+ path: `/v1beta1/organizations/${orgId}/auditlogs`,
1265
+ method: "GET",
1266
+ query,
1267
+ secure: true,
1268
+ format: "json"
1269
+ }, params));
1270
+ /**
1271
+ * @description Create new audit logs in a batch.
1272
+ *
1273
+ * @tags AuditLog
1274
+ * @name FrontierServiceCreateOrganizationAuditLogs
1275
+ * @summary Create audit log
1276
+ * @request POST:/v1beta1/organizations/{org_id}/auditlogs
1277
+ * @secure
1278
+ */
1279
+ this.frontierServiceCreateOrganizationAuditLogs = (orgId, body, params = {}) => this.request(__spreadValues({
1280
+ path: `/v1beta1/organizations/${orgId}/auditlogs`,
1281
+ method: "POST",
1282
+ body,
1283
+ secure: true,
1284
+ type: "application/json" /* Json */,
1285
+ format: "json"
1286
+ }, params));
1287
+ /**
1288
+ * @description Get an audit log by ID.
1289
+ *
1290
+ * @tags AuditLog
1291
+ * @name FrontierServiceGetOrganizationAuditLog
1292
+ * @summary Get audit log
1293
+ * @request GET:/v1beta1/organizations/{org_id}/auditlogs/{id}
1294
+ * @secure
1295
+ */
1296
+ this.frontierServiceGetOrganizationAuditLog = (orgId, id, params = {}) => this.request(__spreadValues({
1297
+ path: `/v1beta1/organizations/${orgId}/auditlogs/${id}`,
1298
+ method: "GET",
1299
+ secure: true,
1300
+ format: "json"
1301
+ }, params));
1302
+ /**
1303
+ * @description List billing accounts of an organization.
1304
+ *
1305
+ * @tags Billing
1306
+ * @name FrontierServiceListBillingAccounts
1307
+ * @summary List billing accounts
1308
+ * @request GET:/v1beta1/organizations/{org_id}/billing
1309
+ * @secure
1310
+ */
1311
+ this.frontierServiceListBillingAccounts = (orgId, query, params = {}) => this.request(__spreadValues({
1312
+ path: `/v1beta1/organizations/${orgId}/billing`,
1313
+ method: "GET",
1314
+ query,
1315
+ secure: true,
1316
+ format: "json"
1317
+ }, params));
1318
+ /**
1319
+ * @description Create a new billing account for an organization.
1320
+ *
1321
+ * @tags Billing
1322
+ * @name FrontierServiceCreateBillingAccount
1323
+ * @summary Create billing account
1324
+ * @request POST:/v1beta1/organizations/{org_id}/billing
1325
+ * @secure
1326
+ */
1327
+ this.frontierServiceCreateBillingAccount = (orgId, body, params = {}) => this.request(__spreadValues({
1328
+ path: `/v1beta1/organizations/${orgId}/billing`,
1329
+ method: "POST",
1330
+ body,
1331
+ secure: true,
1332
+ type: "application/json" /* Json */,
1333
+ format: "json"
1334
+ }, params));
1335
+ /**
1336
+ * @description Check if a billing account is entitled to a feature.
1337
+ *
1338
+ * @tags Entitlement
1339
+ * @name FrontierServiceCheckFeatureEntitlement
1340
+ * @summary Check entitlement
1341
+ * @request POST:/v1beta1/organizations/{org_id}/billing/{billing_id}/check
1342
+ * @secure
1343
+ */
1344
+ this.frontierServiceCheckFeatureEntitlement = (orgId, billingId, body, params = {}) => this.request(__spreadValues({
1345
+ path: `/v1beta1/organizations/${orgId}/billing/${billingId}/check`,
1346
+ method: "POST",
1347
+ body,
1348
+ secure: true,
1349
+ type: "application/json" /* Json */,
1350
+ format: "json"
1351
+ }, params));
1352
+ /**
1353
+ * @description List all checkouts of a billing account.
1354
+ *
1355
+ * @tags Checkout
1356
+ * @name FrontierServiceListCheckouts
1357
+ * @summary List checkouts
1358
+ * @request GET:/v1beta1/organizations/{org_id}/billing/{billing_id}/checkouts
1359
+ * @secure
1360
+ */
1361
+ this.frontierServiceListCheckouts = (orgId, billingId, params = {}) => this.request(__spreadValues({
1362
+ path: `/v1beta1/organizations/${orgId}/billing/${billingId}/checkouts`,
1363
+ method: "GET",
1364
+ secure: true,
1365
+ format: "json"
1366
+ }, params));
1367
+ /**
1368
+ * @description Checkout a product to buy it one time or start a subscription plan on a billing account.
1369
+ *
1370
+ * @tags Checkout
1371
+ * @name FrontierServiceCreateCheckout
1372
+ * @summary Checkout a product or subscription
1373
+ * @request POST:/v1beta1/organizations/{org_id}/billing/{billing_id}/checkouts
1374
+ * @secure
1375
+ */
1376
+ this.frontierServiceCreateCheckout = (orgId, billingId, body, params = {}) => this.request(__spreadValues({
1377
+ path: `/v1beta1/organizations/${orgId}/billing/${billingId}/checkouts`,
1378
+ method: "POST",
1379
+ body,
1380
+ secure: true,
1381
+ type: "application/json" /* Json */,
1382
+ format: "json"
1383
+ }, params));
1384
+ /**
1385
+ * @description Get a checkout by ID.
1386
+ *
1387
+ * @tags Checkout
1388
+ * @name FrontierServiceGetCheckout
1389
+ * @summary Get checkout
1390
+ * @request GET:/v1beta1/organizations/{org_id}/billing/{billing_id}/checkouts/{id}
1391
+ * @secure
1392
+ */
1393
+ this.frontierServiceGetCheckout = (orgId, billingId, id, params = {}) => this.request(__spreadValues({
1394
+ path: `/v1beta1/organizations/${orgId}/billing/${billingId}/checkouts/${id}`,
1395
+ method: "GET",
1396
+ secure: true,
1397
+ format: "json"
1398
+ }, params));
1399
+ /**
1400
+ * @description List all invoices of a billing account.
1401
+ *
1402
+ * @tags Invoice
1403
+ * @name FrontierServiceListInvoices
1404
+ * @summary List invoices
1405
+ * @request GET:/v1beta1/organizations/{org_id}/billing/{billing_id}/invoices
1406
+ * @secure
1407
+ */
1408
+ this.frontierServiceListInvoices = (orgId, billingId, query, params = {}) => this.request(__spreadValues({
1409
+ path: `/v1beta1/organizations/${orgId}/billing/${billingId}/invoices`,
1410
+ method: "GET",
1411
+ query,
1412
+ secure: true,
1413
+ format: "json"
1414
+ }, params));
1415
+ /**
1416
+ * @description Get the upcoming invoice of a billing account.
1417
+ *
1418
+ * @tags Invoice
1419
+ * @name FrontierServiceGetUpcomingInvoice
1420
+ * @summary Get upcoming invoice
1421
+ * @request GET:/v1beta1/organizations/{org_id}/billing/{billing_id}/invoices/upcoming
1422
+ * @secure
1423
+ */
1424
+ this.frontierServiceGetUpcomingInvoice = (orgId, billingId, params = {}) => this.request(__spreadValues({
1425
+ path: `/v1beta1/organizations/${orgId}/billing/${billingId}/invoices/upcoming`,
1426
+ method: "GET",
1427
+ secure: true,
1428
+ format: "json"
1429
+ }, params));
1430
+ /**
1431
+ * @description List subscriptions of a billing account.
1432
+ *
1433
+ * @tags Subscription
1434
+ * @name FrontierServiceListSubscriptions
1435
+ * @summary List subscriptions
1436
+ * @request GET:/v1beta1/organizations/{org_id}/billing/{billing_id}/subscriptions
1437
+ * @secure
1438
+ */
1439
+ this.frontierServiceListSubscriptions = (orgId, billingId, query, params = {}) => this.request(__spreadValues({
1440
+ path: `/v1beta1/organizations/${orgId}/billing/${billingId}/subscriptions`,
1441
+ method: "GET",
1442
+ query,
1443
+ secure: true,
1444
+ format: "json"
1445
+ }, params));
1446
+ /**
1447
+ * @description Get a subscription by ID.
1448
+ *
1449
+ * @tags Subscription
1450
+ * @name FrontierServiceGetSubscription
1451
+ * @summary Get subscription
1452
+ * @request GET:/v1beta1/organizations/{org_id}/billing/{billing_id}/subscriptions/{id}
1453
+ * @secure
1454
+ */
1455
+ this.frontierServiceGetSubscription = (orgId, billingId, id, query, params = {}) => this.request(__spreadValues({
1456
+ path: `/v1beta1/organizations/${orgId}/billing/${billingId}/subscriptions/${id}`,
1457
+ method: "GET",
1458
+ query,
1459
+ secure: true,
1460
+ format: "json"
1461
+ }, params));
1462
+ /**
1463
+ * @description Update a subscription by ID.
1464
+ *
1465
+ * @tags Subscription
1466
+ * @name FrontierServiceUpdateSubscription
1467
+ * @summary Update subscription
1468
+ * @request PUT:/v1beta1/organizations/{org_id}/billing/{billing_id}/subscriptions/{id}
1469
+ * @secure
1470
+ */
1471
+ this.frontierServiceUpdateSubscription = (orgId, billingId, id, body, params = {}) => this.request(__spreadValues({
1472
+ path: `/v1beta1/organizations/${orgId}/billing/${billingId}/subscriptions/${id}`,
1473
+ method: "PUT",
1474
+ body,
1475
+ secure: true,
1476
+ type: "application/json" /* Json */,
1477
+ format: "json"
1478
+ }, params));
1479
+ /**
1480
+ * @description Cancel a subscription by ID.
1481
+ *
1482
+ * @tags Subscription
1483
+ * @name FrontierServiceCancelSubscription
1484
+ * @summary Cancel subscription
1485
+ * @request POST:/v1beta1/organizations/{org_id}/billing/{billing_id}/subscriptions/{id}/cancel
1486
+ * @secure
1487
+ */
1488
+ this.frontierServiceCancelSubscription = (orgId, billingId, id, body, params = {}) => this.request(__spreadValues({
1489
+ path: `/v1beta1/organizations/${orgId}/billing/${billingId}/subscriptions/${id}/cancel`,
1490
+ method: "POST",
1491
+ body,
1492
+ secure: true,
1493
+ type: "application/json" /* Json */,
1494
+ format: "json"
1495
+ }, params));
1496
+ /**
1497
+ * @description Change a subscription plan by ID.
1498
+ *
1499
+ * @tags Subscription
1500
+ * @name FrontierServiceChangeSubscription
1501
+ * @summary Change subscription plan
1502
+ * @request POST:/v1beta1/organizations/{org_id}/billing/{billing_id}/subscriptions/{id}/change
1503
+ * @secure
1504
+ */
1505
+ this.frontierServiceChangeSubscription = (orgId, billingId, id, body, params = {}) => this.request(__spreadValues({
1506
+ path: `/v1beta1/organizations/${orgId}/billing/${billingId}/subscriptions/${id}/change`,
1507
+ method: "POST",
1508
+ body,
1509
+ secure: true,
1510
+ type: "application/json" /* Json */,
1511
+ format: "json"
1512
+ }, params));
1513
+ /**
1514
+ * @description List all transactions of a billing account.
1515
+ *
1516
+ * @tags Transaction
1517
+ * @name FrontierServiceListBillingTransactions
1518
+ * @summary List billing transactions
1519
+ * @request GET:/v1beta1/organizations/{org_id}/billing/{billing_id}/transactions
1520
+ * @secure
1521
+ */
1522
+ this.frontierServiceListBillingTransactions = (orgId, billingId, query, params = {}) => this.request(__spreadValues({
1523
+ path: `/v1beta1/organizations/${orgId}/billing/${billingId}/transactions`,
1524
+ method: "GET",
1525
+ query,
1526
+ secure: true,
1527
+ format: "json"
1528
+ }, params));
1529
+ /**
1530
+ * @description Report a new billing usage for a billing account.
1531
+ *
1532
+ * @tags Usage
1533
+ * @name FrontierServiceCreateBillingUsage
1534
+ * @summary Create billing usage
1535
+ * @request POST:/v1beta1/organizations/{org_id}/billing/{billing_id}/usages
1536
+ * @secure
1537
+ */
1538
+ this.frontierServiceCreateBillingUsage = (orgId, billingId, body, params = {}) => this.request(__spreadValues({
1539
+ path: `/v1beta1/organizations/${orgId}/billing/${billingId}/usages`,
1540
+ method: "POST",
1541
+ body,
1542
+ secure: true,
1543
+ type: "application/json" /* Json */,
1544
+ format: "json"
1545
+ }, params));
1546
+ /**
1547
+ * @description Get a billing account by ID.
1548
+ *
1549
+ * @tags Billing
1550
+ * @name FrontierServiceGetBillingAccount
1551
+ * @summary Get billing account
1552
+ * @request GET:/v1beta1/organizations/{org_id}/billing/{id}
1553
+ * @secure
1554
+ */
1555
+ this.frontierServiceGetBillingAccount = (orgId, id, query, params = {}) => this.request(__spreadValues({
1556
+ path: `/v1beta1/organizations/${orgId}/billing/${id}`,
1557
+ method: "GET",
1558
+ query,
1559
+ secure: true,
1560
+ format: "json"
1561
+ }, params));
1562
+ /**
1563
+ * @description Delete a billing account by ID.
1564
+ *
1565
+ * @tags Billing
1566
+ * @name FrontierServiceDeleteBillingAccount
1567
+ * @summary Delete billing account
1568
+ * @request DELETE:/v1beta1/organizations/{org_id}/billing/{id}
1569
+ * @secure
1570
+ */
1571
+ this.frontierServiceDeleteBillingAccount = (orgId, id, params = {}) => this.request(__spreadValues({
1572
+ path: `/v1beta1/organizations/${orgId}/billing/${id}`,
1573
+ method: "DELETE",
1574
+ secure: true,
1575
+ format: "json"
1576
+ }, params));
1577
+ /**
1578
+ * @description Update a billing account by ID.
1579
+ *
1580
+ * @tags Billing
1581
+ * @name FrontierServiceUpdateBillingAccount
1582
+ * @summary Update billing account
1583
+ * @request PUT:/v1beta1/organizations/{org_id}/billing/{id}
1584
+ * @secure
1585
+ */
1586
+ this.frontierServiceUpdateBillingAccount = (orgId, id, body, params = {}) => this.request(__spreadValues({
1587
+ path: `/v1beta1/organizations/${orgId}/billing/${id}`,
1588
+ method: "PUT",
1589
+ body,
1590
+ secure: true,
1591
+ type: "application/json" /* Json */,
1592
+ format: "json"
1593
+ }, params));
1594
+ /**
1595
+ * @description Get the balance of a billing account by ID.
1596
+ *
1597
+ * @tags Billing
1598
+ * @name FrontierServiceGetBillingBalance
1599
+ * @summary Get billing balance
1600
+ * @request GET:/v1beta1/organizations/{org_id}/billing/{id}/balance
1601
+ * @secure
1602
+ */
1603
+ this.frontierServiceGetBillingBalance = (orgId, id, params = {}) => this.request(__spreadValues({
1604
+ path: `/v1beta1/organizations/${orgId}/billing/${id}/balance`,
1605
+ method: "GET",
1606
+ secure: true,
1607
+ format: "json"
1608
+ }, params));
1609
+ /**
1610
+ * @description Disable a billing account by ID. Disabling a billing account doesn't automatically disable it's active subscriptions.
1611
+ *
1612
+ * @tags Billing
1613
+ * @name FrontierServiceDisableBillingAccount
1614
+ * @summary Disable billing account
1615
+ * @request POST:/v1beta1/organizations/{org_id}/billing/{id}/disable
1616
+ * @secure
1617
+ */
1618
+ this.frontierServiceDisableBillingAccount = (orgId, id, body, params = {}) => this.request(__spreadValues({
1619
+ path: `/v1beta1/organizations/${orgId}/billing/${id}/disable`,
1620
+ method: "POST",
1621
+ body,
1622
+ secure: true,
1623
+ format: "json"
1624
+ }, params));
1625
+ /**
1626
+ * @description Enable a billing account by ID.
1627
+ *
1628
+ * @tags Billing
1629
+ * @name FrontierServiceEnableBillingAccount
1630
+ * @summary Enable billing account
1631
+ * @request POST:/v1beta1/organizations/{org_id}/billing/{id}/enable
1632
+ * @secure
1633
+ */
1634
+ this.frontierServiceEnableBillingAccount = (orgId, id, body, params = {}) => this.request(__spreadValues({
1635
+ path: `/v1beta1/organizations/${orgId}/billing/${id}/enable`,
1636
+ method: "POST",
1637
+ body,
1638
+ secure: true,
1639
+ format: "json"
1640
+ }, params));
1641
+ /**
1642
+ * @description Check if a billing account has trialed.
1643
+ *
1644
+ * @tags Billing
1645
+ * @name FrontierServiceHasTrialed
1646
+ * @summary Has trialed
1647
+ * @request GET:/v1beta1/organizations/{org_id}/billing/{id}/plans/{plan_id}/trialed
1648
+ * @secure
1649
+ */
1650
+ this.frontierServiceHasTrialed = (orgId, id, planId, params = {}) => this.request(__spreadValues({
1651
+ path: `/v1beta1/organizations/${orgId}/billing/${id}/plans/${planId}/trialed`,
1652
+ method: "GET",
1653
+ secure: true,
1654
+ format: "json"
1655
+ }, params));
1656
+ /**
1657
+ * @description Register a billing account to a provider if it's not already.
1658
+ *
1659
+ * @tags Billing
1660
+ * @name FrontierServiceRegisterBillingAccount
1661
+ * @summary Register billing account to provider
1662
+ * @request POST:/v1beta1/organizations/{org_id}/billing/{id}/register
1663
+ * @secure
1664
+ */
1665
+ this.frontierServiceRegisterBillingAccount = (orgId, id, body, params = {}) => this.request(__spreadValues({
1666
+ path: `/v1beta1/organizations/${orgId}/billing/${id}/register`,
1667
+ method: "POST",
1668
+ body,
1669
+ secure: true,
1670
+ format: "json"
1671
+ }, params));
1672
+ /**
1673
+ * @description List all checkouts of a billing account.
1674
+ *
1675
+ * @tags Checkout
1676
+ * @name FrontierServiceListCheckouts2
1677
+ * @summary List checkouts
1678
+ * @request GET:/v1beta1/organizations/{org_id}/billing/checkouts
1679
+ * @secure
1680
+ */
1681
+ this.frontierServiceListCheckouts2 = (orgId, query, params = {}) => this.request(__spreadValues({
1682
+ path: `/v1beta1/organizations/${orgId}/billing/checkouts`,
1683
+ method: "GET",
1684
+ query,
1685
+ secure: true,
1686
+ format: "json"
1687
+ }, params));
1688
+ /**
1689
+ * @description Checkout a product to buy it one time or start a subscription plan on a billing account.
1690
+ *
1691
+ * @tags Checkout
1692
+ * @name FrontierServiceCreateCheckout2
1693
+ * @summary Checkout a product or subscription
1694
+ * @request POST:/v1beta1/organizations/{org_id}/billing/checkouts
1695
+ * @secure
1696
+ */
1697
+ this.frontierServiceCreateCheckout2 = (orgId, body, params = {}) => this.request(__spreadValues({
1698
+ path: `/v1beta1/organizations/${orgId}/billing/checkouts`,
1699
+ method: "POST",
1700
+ body,
1701
+ secure: true,
1702
+ type: "application/json" /* Json */,
1703
+ format: "json"
1704
+ }, params));
1705
+ /**
1706
+ * @description Get a checkout by ID.
1707
+ *
1708
+ * @tags Checkout
1709
+ * @name FrontierServiceGetCheckout2
1710
+ * @summary Get checkout
1711
+ * @request GET:/v1beta1/organizations/{org_id}/billing/checkouts/{id}
1712
+ * @secure
1713
+ */
1714
+ this.frontierServiceGetCheckout2 = (orgId, id, query, params = {}) => this.request(__spreadValues({
1715
+ path: `/v1beta1/organizations/${orgId}/billing/checkouts/${id}`,
1716
+ method: "GET",
1717
+ query,
1718
+ secure: true,
1719
+ format: "json"
1720
+ }, params));
1721
+ /**
1722
+ * @description List all invoices of a billing account.
1723
+ *
1724
+ * @tags Invoice
1725
+ * @name FrontierServiceListInvoices2
1726
+ * @summary List invoices
1727
+ * @request GET:/v1beta1/organizations/{org_id}/billing/invoices
1728
+ * @secure
1729
+ */
1730
+ this.frontierServiceListInvoices2 = (orgId, query, params = {}) => this.request(__spreadValues({
1731
+ path: `/v1beta1/organizations/${orgId}/billing/invoices`,
1732
+ method: "GET",
1733
+ query,
1734
+ secure: true,
1735
+ format: "json"
1736
+ }, params));
1737
+ /**
1738
+ * @description Get the upcoming invoice of a billing account.
1739
+ *
1740
+ * @tags Invoice
1741
+ * @name FrontierServiceGetUpcomingInvoice2
1742
+ * @summary Get upcoming invoice
1743
+ * @request GET:/v1beta1/organizations/{org_id}/billing/invoices/upcoming
1744
+ * @secure
1745
+ */
1746
+ this.frontierServiceGetUpcomingInvoice2 = (orgId, query, params = {}) => this.request(__spreadValues({
1747
+ path: `/v1beta1/organizations/${orgId}/billing/invoices/upcoming`,
1748
+ method: "GET",
1749
+ query,
1750
+ secure: true,
1751
+ format: "json"
1752
+ }, params));
1753
+ /**
1754
+ * @description List subscriptions of a billing account.
1755
+ *
1756
+ * @tags Subscription
1757
+ * @name FrontierServiceListSubscriptions2
1758
+ * @summary List subscriptions
1759
+ * @request GET:/v1beta1/organizations/{org_id}/billing/subscriptions
1760
+ * @secure
1761
+ */
1762
+ this.frontierServiceListSubscriptions2 = (orgId, query, params = {}) => this.request(__spreadValues({
1763
+ path: `/v1beta1/organizations/${orgId}/billing/subscriptions`,
1764
+ method: "GET",
1765
+ query,
1766
+ secure: true,
1767
+ format: "json"
1768
+ }, params));
1769
+ /**
1770
+ * @description Get a subscription by ID.
1771
+ *
1772
+ * @tags Subscription
1773
+ * @name FrontierServiceGetSubscription2
1774
+ * @summary Get subscription
1775
+ * @request GET:/v1beta1/organizations/{org_id}/billing/subscriptions/{id}
1776
+ * @secure
1777
+ */
1778
+ this.frontierServiceGetSubscription2 = (orgId, id, query, params = {}) => this.request(__spreadValues({
1779
+ path: `/v1beta1/organizations/${orgId}/billing/subscriptions/${id}`,
1780
+ method: "GET",
1781
+ query,
1782
+ secure: true,
1783
+ format: "json"
1784
+ }, params));
1785
+ /**
1786
+ * @description Update a subscription by ID.
1787
+ *
1788
+ * @tags Subscription
1789
+ * @name FrontierServiceUpdateSubscription2
1790
+ * @summary Update subscription
1791
+ * @request POST:/v1beta1/organizations/{org_id}/billing/subscriptions/{id}
1792
+ * @secure
1793
+ */
1794
+ this.frontierServiceUpdateSubscription2 = (orgId, id, body, params = {}) => this.request(__spreadValues({
1795
+ path: `/v1beta1/organizations/${orgId}/billing/subscriptions/${id}`,
1796
+ method: "POST",
1797
+ body,
1798
+ secure: true,
1799
+ type: "application/json" /* Json */,
1800
+ format: "json"
1801
+ }, params));
1802
+ /**
1803
+ * @description Cancel a subscription by ID.
1804
+ *
1805
+ * @tags Subscription
1806
+ * @name FrontierServiceCancelSubscription2
1807
+ * @summary Cancel subscription
1808
+ * @request POST:/v1beta1/organizations/{org_id}/billing/subscriptions/{id}/cancel
1809
+ * @secure
1810
+ */
1811
+ this.frontierServiceCancelSubscription2 = (orgId, id, body, params = {}) => this.request(__spreadValues({
1812
+ path: `/v1beta1/organizations/${orgId}/billing/subscriptions/${id}/cancel`,
1813
+ method: "POST",
1814
+ body,
1815
+ secure: true,
1816
+ type: "application/json" /* Json */,
1817
+ format: "json"
1818
+ }, params));
1819
+ /**
1820
+ * @description Change a subscription plan by ID.
1821
+ *
1822
+ * @tags Subscription
1823
+ * @name FrontierServiceChangeSubscription2
1824
+ * @summary Change subscription plan
1825
+ * @request POST:/v1beta1/organizations/{org_id}/billing/subscriptions/{id}/change
1826
+ * @secure
1827
+ */
1828
+ this.frontierServiceChangeSubscription2 = (orgId, id, body, params = {}) => this.request(__spreadValues({
1829
+ path: `/v1beta1/organizations/${orgId}/billing/subscriptions/${id}/change`,
1830
+ method: "POST",
1831
+ body,
1832
+ secure: true,
1833
+ type: "application/json" /* Json */,
1834
+ format: "json"
1835
+ }, params));
1836
+ /**
1837
+ * @description List all transactions of a billing account.
1838
+ *
1839
+ * @tags Transaction
1840
+ * @name FrontierServiceListBillingTransactions2
1841
+ * @summary List billing transactions
1842
+ * @request GET:/v1beta1/organizations/{org_id}/billing/transactions
1843
+ * @secure
1844
+ */
1845
+ this.frontierServiceListBillingTransactions2 = (orgId, query, params = {}) => this.request(__spreadValues({
1846
+ path: `/v1beta1/organizations/${orgId}/billing/transactions`,
1847
+ method: "GET",
1848
+ query,
1849
+ secure: true,
1850
+ format: "json"
1851
+ }, params));
1852
+ /**
1853
+ * @description Returns all domains whitelisted for an organization (both pending and verified if no filters are provided for the state). The verified domains allow users email with the org's whitelisted domain to join the organization without invitation.
1854
+ *
1855
+ * @tags Organization
1856
+ * @name FrontierServiceListOrganizationDomains
1857
+ * @summary List org domains
1858
+ * @request GET:/v1beta1/organizations/{org_id}/domains
1859
+ * @secure
1860
+ */
1861
+ this.frontierServiceListOrganizationDomains = (orgId, query, params = {}) => this.request(__spreadValues({
1862
+ path: `/v1beta1/organizations/${orgId}/domains`,
1863
+ method: "GET",
1864
+ query,
1865
+ secure: true,
1866
+ format: "json"
1867
+ }, params));
1868
+ /**
1869
+ * @description Add a domain to an organization which if verified allows all users of the same domain to be signed up to the organization without invitation. This API generates a verification token for a domain which must be added to your domain's DNS provider as a TXT record should be verified with Frontier VerifyOrganizationDomain API before it can be used as an Organization's trusted domain to sign up users.
1870
+ *
1871
+ * @tags Organization
1872
+ * @name FrontierServiceCreateOrganizationDomain
1873
+ * @summary Create org domain
1874
+ * @request POST:/v1beta1/organizations/{org_id}/domains
1875
+ * @secure
1876
+ */
1877
+ this.frontierServiceCreateOrganizationDomain = (orgId, body, params = {}) => this.request(__spreadValues({
1878
+ path: `/v1beta1/organizations/${orgId}/domains`,
1879
+ method: "POST",
1880
+ body,
1881
+ secure: true,
1882
+ type: "application/json" /* Json */,
1883
+ format: "json"
1884
+ }, params));
1885
+ /**
1886
+ * @description Get a domain from the list of an organization's whitelisted domains. Returns both verified and unverified domains by their ID
1887
+ *
1888
+ * @tags Organization
1889
+ * @name FrontierServiceGetOrganizationDomain
1890
+ * @summary Get org domain
1891
+ * @request GET:/v1beta1/organizations/{org_id}/domains/{id}
1892
+ * @secure
1893
+ */
1894
+ this.frontierServiceGetOrganizationDomain = (orgId, id, params = {}) => this.request(__spreadValues({
1895
+ path: `/v1beta1/organizations/${orgId}/domains/${id}`,
1896
+ method: "GET",
1897
+ secure: true,
1898
+ format: "json"
1899
+ }, params));
1900
+ /**
1901
+ * @description Remove a domain from the list of an organization's trusted domains list
1902
+ *
1903
+ * @tags Organization
1904
+ * @name FrontierServiceDeleteOrganizationDomain
1905
+ * @summary Delete org domain
1906
+ * @request DELETE:/v1beta1/organizations/{org_id}/domains/{id}
1907
+ * @secure
1908
+ */
1909
+ this.frontierServiceDeleteOrganizationDomain = (orgId, id, params = {}) => this.request(__spreadValues({
1910
+ path: `/v1beta1/organizations/${orgId}/domains/${id}`,
1911
+ method: "DELETE",
1912
+ secure: true,
1913
+ format: "json"
1914
+ }, params));
1915
+ /**
1916
+ * @description Verify a domain for an organization with a verification token generated by Frontier GenerateDomainVerificationToken API. The token must be added to your domain's DNS provider as a TXT record before it can be verified. This API returns the state of the domain (pending/verified) after verification.
1917
+ *
1918
+ * @tags Organization
1919
+ * @name FrontierServiceVerifyOrganizationDomain
1920
+ * @summary Verify org domain
1921
+ * @request POST:/v1beta1/organizations/{org_id}/domains/{id}/verify
1922
+ * @secure
1923
+ */
1924
+ this.frontierServiceVerifyOrganizationDomain = (orgId, id, body, params = {}) => this.request(__spreadValues({
1925
+ path: `/v1beta1/organizations/${orgId}/domains/${id}/verify`,
1926
+ method: "POST",
1927
+ body,
1928
+ secure: true,
1929
+ format: "json"
1930
+ }, params));
1931
+ /**
1932
+ * @description Get all groups that belong to an organization. The results can be filtered by state which can be either be enabled or disabled.
1933
+ *
1934
+ * @tags Group
1935
+ * @name FrontierServiceListOrganizationGroups
1936
+ * @summary List organization groups
1937
+ * @request GET:/v1beta1/organizations/{org_id}/groups
1938
+ * @secure
1939
+ */
1940
+ this.frontierServiceListOrganizationGroups = (orgId, query, params = {}) => this.request(__spreadValues({
1941
+ path: `/v1beta1/organizations/${orgId}/groups`,
1942
+ method: "GET",
1943
+ query,
1944
+ secure: true,
1945
+ format: "json"
1946
+ }, params));
1947
+ /**
1948
+ * @description Create a new group in an organization which serves as a container for users. The group can be assigned roles and permissions and can be used to manage access to resources. Also a group can also be assigned to other groups.
1949
+ *
1950
+ * @tags Group
1951
+ * @name FrontierServiceCreateGroup
1952
+ * @summary Create group
1953
+ * @request POST:/v1beta1/organizations/{org_id}/groups
1954
+ * @secure
1955
+ */
1956
+ this.frontierServiceCreateGroup = (orgId, body, params = {}) => this.request(__spreadValues({
1957
+ path: `/v1beta1/organizations/${orgId}/groups`,
1958
+ method: "POST",
1959
+ body,
1960
+ secure: true,
1961
+ format: "json"
1962
+ }, params));
1963
+ /**
1964
+ * No description
1965
+ *
1966
+ * @tags Group
1967
+ * @name FrontierServiceGetGroup
1968
+ * @summary Get group
1969
+ * @request GET:/v1beta1/organizations/{org_id}/groups/{id}
1970
+ * @secure
1971
+ */
1972
+ this.frontierServiceGetGroup = (orgId, id, query, params = {}) => this.request(__spreadValues({
1973
+ path: `/v1beta1/organizations/${orgId}/groups/${id}`,
1974
+ method: "GET",
1975
+ query,
1976
+ secure: true,
1977
+ format: "json"
1978
+ }, params));
1979
+ /**
1980
+ * @description Delete an organization group permanently and all of its relations
1981
+ *
1982
+ * @tags Group
1983
+ * @name FrontierServiceDeleteGroup
1984
+ * @summary Delete group
1985
+ * @request DELETE:/v1beta1/organizations/{org_id}/groups/{id}
1986
+ * @secure
1987
+ */
1988
+ this.frontierServiceDeleteGroup = (orgId, id, params = {}) => this.request(__spreadValues({
1989
+ path: `/v1beta1/organizations/${orgId}/groups/${id}`,
1990
+ method: "DELETE",
1991
+ secure: true,
1992
+ format: "json"
1993
+ }, params));
1994
+ /**
1995
+ * No description
1996
+ *
1997
+ * @tags Group
1998
+ * @name FrontierServiceUpdateGroup
1999
+ * @summary Update group
2000
+ * @request PUT:/v1beta1/organizations/{org_id}/groups/{id}
2001
+ * @secure
2002
+ */
2003
+ this.frontierServiceUpdateGroup = (orgId, id, body, params = {}) => this.request(__spreadValues({
2004
+ path: `/v1beta1/organizations/${orgId}/groups/${id}`,
2005
+ method: "PUT",
2006
+ body,
2007
+ secure: true,
2008
+ format: "json"
2009
+ }, params));
2010
+ /**
2011
+ * @description Sets the state of the group as disabled. The group will not be available for access control and the existing users in the group will not be able to access any resources that are assigned to the group. No other users can be added to the group while it is disabled.
2012
+ *
2013
+ * @tags Group
2014
+ * @name FrontierServiceDisableGroup
2015
+ * @summary Disable group
2016
+ * @request POST:/v1beta1/organizations/{org_id}/groups/{id}/disable
2017
+ * @secure
2018
+ */
2019
+ this.frontierServiceDisableGroup = (orgId, id, body, params = {}) => this.request(__spreadValues({
2020
+ path: `/v1beta1/organizations/${orgId}/groups/${id}/disable`,
2021
+ method: "POST",
2022
+ body,
2023
+ secure: true,
2024
+ format: "json"
2025
+ }, params));
2026
+ /**
2027
+ * @description Sets the state of the group as enabled. The `enabled` flag is used to determine if the group can be used for access control.
2028
+ *
2029
+ * @tags Group
2030
+ * @name FrontierServiceEnableGroup
2031
+ * @summary Enable group
2032
+ * @request POST:/v1beta1/organizations/{org_id}/groups/{id}/enable
2033
+ * @secure
2034
+ */
2035
+ this.frontierServiceEnableGroup = (orgId, id, body, params = {}) => this.request(__spreadValues({
2036
+ path: `/v1beta1/organizations/${orgId}/groups/${id}/enable`,
2037
+ method: "POST",
2038
+ body,
2039
+ secure: true,
2040
+ format: "json"
2041
+ }, params));
2042
+ /**
2043
+ * @description Returns a list of users that belong to a group.
2044
+ *
2045
+ * @tags Group
2046
+ * @name FrontierServiceListGroupUsers
2047
+ * @summary List group users
2048
+ * @request GET:/v1beta1/organizations/{org_id}/groups/{id}/users
2049
+ * @secure
2050
+ */
2051
+ this.frontierServiceListGroupUsers = (orgId, id, query, params = {}) => this.request(__spreadValues({
2052
+ path: `/v1beta1/organizations/${orgId}/groups/${id}/users`,
2053
+ method: "GET",
2054
+ query,
2055
+ secure: true,
2056
+ format: "json"
2057
+ }, params));
2058
+ /**
2059
+ * @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.
2060
+ *
2061
+ * @tags Group
2062
+ * @name FrontierServiceAddGroupUsers
2063
+ * @summary Add group user
2064
+ * @request POST:/v1beta1/organizations/{org_id}/groups/{id}/users
2065
+ * @secure
2066
+ */
2067
+ this.frontierServiceAddGroupUsers = (orgId, id, body, params = {}) => this.request(__spreadValues({
2068
+ path: `/v1beta1/organizations/${orgId}/groups/${id}/users`,
2069
+ method: "POST",
2070
+ body,
2071
+ secure: true,
2072
+ type: "application/json" /* Json */,
2073
+ format: "json"
2074
+ }, params));
2075
+ /**
2076
+ * @description Removes a principle(user and service-users) from a group. If the user is not in the group, the request will succeed but no changes will be made.
2077
+ *
2078
+ * @tags Group
2079
+ * @name FrontierServiceRemoveGroupUser
2080
+ * @summary Remove group user
2081
+ * @request DELETE:/v1beta1/organizations/{org_id}/groups/{id}/users/{user_id}
2082
+ * @secure
2083
+ */
2084
+ this.frontierServiceRemoveGroupUser = (orgId, id, userId, params = {}) => this.request(__spreadValues({
2085
+ path: `/v1beta1/organizations/${orgId}/groups/${id}/users/${userId}`,
2086
+ method: "DELETE",
2087
+ secure: true,
2088
+ format: "json"
2089
+ }, params));
2090
+ /**
2091
+ * @description Returns all pending invitations queued for an organization
2092
+ *
2093
+ * @tags Organization
2094
+ * @name FrontierServiceListOrganizationInvitations
2095
+ * @summary List pending invitations
2096
+ * @request GET:/v1beta1/organizations/{org_id}/invitations
2097
+ * @secure
2098
+ */
2099
+ this.frontierServiceListOrganizationInvitations = (orgId, query, params = {}) => this.request(__spreadValues({
2100
+ path: `/v1beta1/organizations/${orgId}/invitations`,
2101
+ method: "GET",
2102
+ query,
2103
+ secure: true,
2104
+ format: "json"
2105
+ }, params));
2106
+ /**
2107
+ * @description Invite users to an organization, if user is not registered on the platform, it will be notified. Invitations expire in 7 days
2108
+ *
2109
+ * @tags Organization
2110
+ * @name FrontierServiceCreateOrganizationInvitation
2111
+ * @summary Invite user
2112
+ * @request POST:/v1beta1/organizations/{org_id}/invitations
2113
+ * @secure
2114
+ */
2115
+ this.frontierServiceCreateOrganizationInvitation = (orgId, body, params = {}) => this.request(__spreadValues({
2116
+ path: `/v1beta1/organizations/${orgId}/invitations`,
2117
+ method: "POST",
2118
+ body,
2119
+ secure: true,
2120
+ type: "application/json" /* Json */,
2121
+ format: "json"
2122
+ }, params));
2123
+ /**
2124
+ * @description Returns a pending invitation queued for an organization
2125
+ *
2126
+ * @tags Organization
2127
+ * @name FrontierServiceGetOrganizationInvitation
2128
+ * @summary Get pending invitation
2129
+ * @request GET:/v1beta1/organizations/{org_id}/invitations/{id}
2130
+ * @secure
2131
+ */
2132
+ this.frontierServiceGetOrganizationInvitation = (orgId, id, params = {}) => this.request(__spreadValues({
2133
+ path: `/v1beta1/organizations/${orgId}/invitations/${id}`,
2134
+ method: "GET",
2135
+ secure: true,
2136
+ format: "json"
2137
+ }, params));
2138
+ /**
2139
+ * @description Delete a pending invitation queued for an organization
2140
+ *
2141
+ * @tags Organization
2142
+ * @name FrontierServiceDeleteOrganizationInvitation
2143
+ * @summary Delete pending invitation
2144
+ * @request DELETE:/v1beta1/organizations/{org_id}/invitations/{id}
2145
+ * @secure
2146
+ */
2147
+ this.frontierServiceDeleteOrganizationInvitation = (orgId, id, params = {}) => this.request(__spreadValues({
2148
+ path: `/v1beta1/organizations/${orgId}/invitations/${id}`,
2149
+ method: "DELETE",
2150
+ secure: true,
2151
+ format: "json"
2152
+ }, params));
2153
+ /**
2154
+ * @description Accept pending invitation queued for an organization. The user will be added to the organization and groups defined in the invitation
2155
+ *
2156
+ * @tags Organization
2157
+ * @name FrontierServiceAcceptOrganizationInvitation
2158
+ * @summary Accept pending invitation
2159
+ * @request POST:/v1beta1/organizations/{org_id}/invitations/{id}/accept
2160
+ * @secure
2161
+ */
2162
+ this.frontierServiceAcceptOrganizationInvitation = (orgId, id, body, params = {}) => this.request(__spreadValues({
2163
+ path: `/v1beta1/organizations/${orgId}/invitations/${id}/accept`,
2164
+ method: "POST",
2165
+ body,
2166
+ secure: true,
2167
+ format: "json"
2168
+ }, params));
2169
+ /**
2170
+ * @description Allows the current logged in user to join the Org if one is not a part of it. The user will only be able to join when the user email's domain matches the organization's whitelisted domains.
2171
+ *
2172
+ * @tags Organization
2173
+ * @name FrontierServiceJoinOrganization
2174
+ * @summary Join organization
2175
+ * @request POST:/v1beta1/organizations/{org_id}/join
2176
+ * @secure
2177
+ */
2178
+ this.frontierServiceJoinOrganization = (orgId, body, params = {}) => this.request(__spreadValues({
2179
+ path: `/v1beta1/organizations/${orgId}/join`,
2180
+ method: "POST",
2181
+ body,
2182
+ secure: true,
2183
+ format: "json"
2184
+ }, params));
2185
+ /**
2186
+ * @description Returns a list of custom roles created under an organization with their associated permissions
2187
+ *
2188
+ * @tags Role
2189
+ * @name FrontierServiceListOrganizationRoles
2190
+ * @summary List organization roles
2191
+ * @request GET:/v1beta1/organizations/{org_id}/roles
2192
+ * @secure
2193
+ */
2194
+ this.frontierServiceListOrganizationRoles = (orgId, query, params = {}) => this.request(__spreadValues({
2195
+ path: `/v1beta1/organizations/${orgId}/roles`,
2196
+ method: "GET",
2197
+ query,
2198
+ secure: true,
2199
+ format: "json"
2200
+ }, params));
2201
+ /**
2202
+ * @description Create a custom role under an organization. This custom role will only be available for assignment to the principles within the organization.
2203
+ *
2204
+ * @tags Role
2205
+ * @name FrontierServiceCreateOrganizationRole
2206
+ * @summary Create organization role
2207
+ * @request POST:/v1beta1/organizations/{org_id}/roles
2208
+ * @secure
2209
+ */
2210
+ this.frontierServiceCreateOrganizationRole = (orgId, body, params = {}) => this.request(__spreadValues({
2211
+ path: `/v1beta1/organizations/${orgId}/roles`,
2212
+ method: "POST",
2213
+ body,
2214
+ secure: true,
2215
+ format: "json"
2216
+ }, params));
2217
+ /**
2218
+ * @description Returns a custom role under an organization along with its associated permissions
2219
+ *
2220
+ * @tags Role
2221
+ * @name FrontierServiceGetOrganizationRole
2222
+ * @summary Get organization role
2223
+ * @request GET:/v1beta1/organizations/{org_id}/roles/{id}
2224
+ * @secure
2225
+ */
2226
+ this.frontierServiceGetOrganizationRole = (orgId, id, params = {}) => this.request(__spreadValues({
2227
+ path: `/v1beta1/organizations/${orgId}/roles/${id}`,
2228
+ method: "GET",
2229
+ secure: true,
2230
+ format: "json"
2231
+ }, params));
2232
+ /**
2233
+ * @description Delete a custom role and all of its relations under an organization permanently.
2234
+ *
2235
+ * @tags Role
2236
+ * @name FrontierServiceDeleteOrganizationRole
2237
+ * @summary Delete organization role
2238
+ * @request DELETE:/v1beta1/organizations/{org_id}/roles/{id}
2239
+ * @secure
2240
+ */
2241
+ this.frontierServiceDeleteOrganizationRole = (orgId, id, params = {}) => this.request(__spreadValues({
2242
+ path: `/v1beta1/organizations/${orgId}/roles/${id}`,
2243
+ method: "DELETE",
2244
+ secure: true,
2245
+ format: "json"
2246
+ }, params));
2247
+ /**
2248
+ * @description Update a custom role under an organization. This custom role will only be available for assignment to the principles within the organization.
2249
+ *
2250
+ * @tags Role
2251
+ * @name FrontierServiceUpdateOrganizationRole
2252
+ * @summary Update organization role
2253
+ * @request PUT:/v1beta1/organizations/{org_id}/roles/{id}
2254
+ * @secure
2255
+ */
2256
+ this.frontierServiceUpdateOrganizationRole = (orgId, id, body, params = {}) => this.request(__spreadValues({
2257
+ path: `/v1beta1/organizations/${orgId}/roles/${id}`,
2258
+ method: "PUT",
2259
+ body,
2260
+ secure: true,
2261
+ format: "json"
2262
+ }, params));
2263
+ /**
2264
+ * @description Check if a billing account is entitled to a feature.
2265
+ *
2266
+ * @tags Entitlement
2267
+ * @name FrontierServiceCheckFeatureEntitlement2
2268
+ * @summary Check entitlement
2269
+ * @request POST:/v1beta1/organizations/billing/check
2270
+ * @secure
2271
+ */
2272
+ this.frontierServiceCheckFeatureEntitlement2 = (body, params = {}) => this.request(__spreadValues({
2273
+ path: `/v1beta1/organizations/billing/check`,
2274
+ method: "POST",
2275
+ body,
2276
+ secure: true,
2277
+ type: "application/json" /* Json */,
2278
+ format: "json"
2279
+ }, params));
2280
+ /**
2281
+ * @description Report a new billing usage for a billing account.
2282
+ *
2283
+ * @tags Usage
2284
+ * @name FrontierServiceCreateBillingUsage2
2285
+ * @summary Create billing usage
2286
+ * @request POST:/v1beta1/organizations/billing/usages
2287
+ * @secure
2288
+ */
2289
+ this.frontierServiceCreateBillingUsage2 = (body, params = {}) => this.request(__spreadValues({
2290
+ path: `/v1beta1/organizations/billing/usages`,
2291
+ method: "POST",
2292
+ body,
2293
+ secure: true,
2294
+ type: "application/json" /* Json */,
2295
+ format: "json"
2296
+ }, params));
2297
+ /**
2298
+ * @description Revert billing usage for a billing account.
2299
+ *
2300
+ * @tags Billing
2301
+ * @name AdminServiceRevertBillingUsage2
2302
+ * @summary Revert billing usage
2303
+ * @request POST:/v1beta1/organizations/billing/usages/revert
2304
+ * @secure
2305
+ */
2306
+ this.adminServiceRevertBillingUsage2 = (body, params = {}) => this.request(__spreadValues({
2307
+ path: `/v1beta1/organizations/billing/usages/revert`,
2308
+ method: "POST",
2309
+ body,
2310
+ secure: true,
2311
+ type: "application/json" /* Json */,
2312
+ format: "json"
2313
+ }, params));
2314
+ /**
2315
+ * No description
2316
+ *
2317
+ * @tags Permission
2318
+ * @name FrontierServiceListPermissions
2319
+ * @summary Get all permissions
2320
+ * @request GET:/v1beta1/permissions
2321
+ * @secure
2322
+ */
2323
+ this.frontierServiceListPermissions = (params = {}) => this.request(__spreadValues({
2324
+ path: `/v1beta1/permissions`,
2325
+ method: "GET",
2326
+ secure: true,
2327
+ format: "json"
2328
+ }, params));
2329
+ /**
2330
+ * @description Creates a permission. It can be used to grant permissions to all the resources in a Frontier instance.
2331
+ *
2332
+ * @tags Permission
2333
+ * @name AdminServiceCreatePermission
2334
+ * @summary Create platform permission
2335
+ * @request POST:/v1beta1/permissions
2336
+ * @secure
2337
+ */
2338
+ this.adminServiceCreatePermission = (body, params = {}) => this.request(__spreadValues({
2339
+ path: `/v1beta1/permissions`,
2340
+ method: "POST",
2341
+ body,
2342
+ secure: true,
2343
+ type: "application/json" /* Json */,
2344
+ format: "json"
2345
+ }, params));
2346
+ /**
2347
+ * @description Returns a permission by ID
2348
+ *
2349
+ * @tags Permission
2350
+ * @name FrontierServiceGetPermission
2351
+ * @summary Get permission
2352
+ * @request GET:/v1beta1/permissions/{id}
2353
+ * @secure
2354
+ */
2355
+ this.frontierServiceGetPermission = (id, params = {}) => this.request(__spreadValues({
2356
+ path: `/v1beta1/permissions/${id}`,
2357
+ method: "GET",
2358
+ secure: true,
2359
+ format: "json"
2360
+ }, params));
2361
+ /**
2362
+ * No description
2363
+ *
2364
+ * @tags Permission
2365
+ * @name AdminServiceDeletePermission
2366
+ * @summary Delete platform permission
2367
+ * @request DELETE:/v1beta1/permissions/{id}
2368
+ * @secure
2369
+ */
2370
+ this.adminServiceDeletePermission = (id, params = {}) => this.request(__spreadValues({
2371
+ path: `/v1beta1/permissions/${id}`,
2372
+ method: "DELETE",
2373
+ secure: true,
2374
+ format: "json"
2375
+ }, params));
2376
+ /**
2377
+ * @description Updates a permission by ID. It can be used to grant permissions to all the resources in a Frontier instance.
2378
+ *
2379
+ * @tags Permission
2380
+ * @name AdminServiceUpdatePermission
2381
+ * @summary Update platform permission
2382
+ * @request PUT:/v1beta1/permissions/{id}
2383
+ * @secure
2384
+ */
2385
+ this.adminServiceUpdatePermission = (id, body, params = {}) => this.request(__spreadValues({
2386
+ path: `/v1beta1/permissions/${id}`,
2387
+ method: "PUT",
2388
+ body,
2389
+ secure: true,
2390
+ type: "application/json" /* Json */,
2391
+ format: "json"
2392
+ }, params));
2393
+ /**
2394
+ * @description Lists all the policies from all the organizations in a Frontier instance. It can be filtered by organization, project, user, role and group.
2395
+ *
2396
+ * @tags Policy
2397
+ * @name FrontierServiceListPolicies
2398
+ * @summary List all policies
2399
+ * @request GET:/v1beta1/policies
2400
+ * @secure
2401
+ */
2402
+ this.frontierServiceListPolicies = (query, params = {}) => this.request(__spreadValues({
2403
+ path: `/v1beta1/policies`,
2404
+ method: "GET",
2405
+ query,
2406
+ secure: true,
2407
+ format: "json"
2408
+ }, params));
2409
+ /**
2410
+ * @description Creates a policy
2411
+ *
2412
+ * @tags Policy
2413
+ * @name FrontierServiceCreatePolicy
2414
+ * @summary Create policy
2415
+ * @request POST:/v1beta1/policies
2416
+ * @secure
2417
+ */
2418
+ this.frontierServiceCreatePolicy = (body, params = {}) => this.request(__spreadValues({
2419
+ path: `/v1beta1/policies`,
2420
+ method: "POST",
2421
+ body,
2422
+ secure: true,
2423
+ format: "json"
2424
+ }, params));
2425
+ /**
2426
+ * @description Returns a policy by ID
2427
+ *
2428
+ * @tags Policy
2429
+ * @name FrontierServiceGetPolicy
2430
+ * @summary Get policy
2431
+ * @request GET:/v1beta1/policies/{id}
2432
+ * @secure
2433
+ */
2434
+ this.frontierServiceGetPolicy = (id, params = {}) => this.request(__spreadValues({
2435
+ path: `/v1beta1/policies/${id}`,
2436
+ method: "GET",
2437
+ secure: true,
2438
+ format: "json"
2439
+ }, params));
2440
+ /**
2441
+ * @description Delete a policy all of its relations permanently.
2442
+ *
2443
+ * @tags Policy
2444
+ * @name FrontierServiceDeletePolicy
2445
+ * @summary Delete Policy
2446
+ * @request DELETE:/v1beta1/policies/{id}
2447
+ * @secure
2448
+ */
2449
+ this.frontierServiceDeletePolicy = (id, params = {}) => this.request(__spreadValues({
2450
+ path: `/v1beta1/policies/${id}`,
2451
+ method: "DELETE",
2452
+ secure: true,
2453
+ format: "json"
2454
+ }, params));
2455
+ /**
2456
+ * @description Updates a policy by ID
2457
+ *
2458
+ * @tags Policy
2459
+ * @name FrontierServiceUpdatePolicy
2460
+ * @summary Update policy
2461
+ * @request PUT:/v1beta1/policies/{id}
2462
+ * @secure
2463
+ */
2464
+ this.frontierServiceUpdatePolicy = (id, body, params = {}) => this.request(__spreadValues({
2465
+ path: `/v1beta1/policies/${id}`,
2466
+ method: "PUT",
2467
+ body,
2468
+ secure: true,
2469
+ format: "json"
2470
+ }, params));
2471
+ /**
2472
+ * @description Create a policy for a project
2473
+ *
2474
+ * @tags Policy
2475
+ * @name FrontierServiceCreatePolicyForProject
2476
+ * @summary Create Policy for Project
2477
+ * @request POST:/v1beta1/policies/projects/{project_id}
2478
+ * @secure
2479
+ */
2480
+ this.frontierServiceCreatePolicyForProject = (projectId, body, params = {}) => this.request(__spreadValues({
2481
+ path: `/v1beta1/policies/projects/${projectId}`,
2482
+ method: "POST",
2483
+ body,
2484
+ secure: true,
2485
+ type: "application/json" /* Json */,
2486
+ format: "json"
2487
+ }, params));
2488
+ /**
2489
+ * @description Returns a list of all preferences configured on an instance in Frontier. e.g user, project, organization etc
2490
+ *
2491
+ * @tags Preference
2492
+ * @name AdminServiceListPreferences
2493
+ * @summary List platform preferences
2494
+ * @request GET:/v1beta1/preferences
2495
+ * @secure
2496
+ */
2497
+ this.adminServiceListPreferences = (params = {}) => this.request(__spreadValues({
2498
+ path: `/v1beta1/preferences`,
2499
+ method: "GET",
2500
+ secure: true,
2501
+ format: "json"
2502
+ }, params));
2503
+ /**
2504
+ * @description Create new platform preferences. The platform preferences **name** must be unique within the platform and can contain only alphanumeric characters, dashes and underscores.
2505
+ *
2506
+ * @tags Preference
2507
+ * @name AdminServiceCreatePreferences
2508
+ * @summary Create platform preferences
2509
+ * @request POST:/v1beta1/preferences
2510
+ * @secure
2511
+ */
2512
+ this.adminServiceCreatePreferences = (body, params = {}) => this.request(__spreadValues({
2513
+ path: `/v1beta1/preferences`,
2514
+ method: "POST",
2515
+ body,
2516
+ secure: true,
2517
+ type: "application/json" /* Json */,
2518
+ format: "json"
2519
+ }, params));
2520
+ /**
2521
+ * @description Returns a list of all preferences supported by Frontier.
2522
+ *
2523
+ * @tags Preference
2524
+ * @name FrontierServiceDescribePreferences
2525
+ * @summary Describe preferences
2526
+ * @request GET:/v1beta1/preferences/traits
2527
+ * @secure
2528
+ */
2529
+ this.frontierServiceDescribePreferences = (params = {}) => this.request(__spreadValues({
2530
+ path: `/v1beta1/preferences/traits`,
2531
+ method: "GET",
2532
+ secure: true,
2533
+ format: "json"
2534
+ }, params));
2535
+ /**
2536
+ * No description
2537
+ *
2538
+ * @tags Project
2539
+ * @name FrontierServiceCreateProject
2540
+ * @summary Create project
2541
+ * @request POST:/v1beta1/projects
2542
+ * @secure
2543
+ */
2544
+ this.frontierServiceCreateProject = (body, params = {}) => this.request(__spreadValues({
2545
+ path: `/v1beta1/projects`,
2546
+ method: "POST",
2547
+ body,
2548
+ secure: true,
2549
+ format: "json"
2550
+ }, params));
2551
+ /**
2552
+ * @description Returns a project by ID
2553
+ *
2554
+ * @tags Project
2555
+ * @name FrontierServiceGetProject
2556
+ * @summary Get project
2557
+ * @request GET:/v1beta1/projects/{id}
2558
+ * @secure
2559
+ */
2560
+ this.frontierServiceGetProject = (id, params = {}) => this.request(__spreadValues({
2561
+ path: `/v1beta1/projects/${id}`,
2562
+ method: "GET",
2563
+ secure: true,
2564
+ format: "json"
2565
+ }, params));
2566
+ /**
2567
+ * @description Delete a project all of its relations permanently.
2568
+ *
2569
+ * @tags Project
2570
+ * @name FrontierServiceDeleteProject
2571
+ * @summary Delete Project
2572
+ * @request DELETE:/v1beta1/projects/{id}
2573
+ * @secure
2574
+ */
2575
+ this.frontierServiceDeleteProject = (id, params = {}) => this.request(__spreadValues({
2576
+ path: `/v1beta1/projects/${id}`,
2577
+ method: "DELETE",
2578
+ secure: true,
2579
+ format: "json"
2580
+ }, params));
2581
+ /**
2582
+ * @description Updates a project by ID
2583
+ *
2584
+ * @tags Project
2585
+ * @name FrontierServiceUpdateProject
2586
+ * @summary Update project
2587
+ * @request PUT:/v1beta1/projects/{id}
2588
+ * @secure
2589
+ */
2590
+ this.frontierServiceUpdateProject = (id, body, params = {}) => this.request(__spreadValues({
2591
+ path: `/v1beta1/projects/${id}`,
2592
+ method: "PUT",
2593
+ body,
2594
+ secure: true,
2595
+ format: "json"
2596
+ }, params));
2597
+ /**
2598
+ * @description Returns a collection of admins of a project
2599
+ *
2600
+ * @tags Project
2601
+ * @name FrontierServiceListProjectAdmins
2602
+ * @summary List project admins
2603
+ * @request GET:/v1beta1/projects/{id}/admins
2604
+ * @secure
2605
+ */
2606
+ this.frontierServiceListProjectAdmins = (id, params = {}) => this.request(__spreadValues({
2607
+ path: `/v1beta1/projects/${id}/admins`,
2608
+ method: "GET",
2609
+ secure: true,
2610
+ format: "json"
2611
+ }, params));
2612
+ /**
2613
+ * No description
2614
+ *
2615
+ * @tags Project
2616
+ * @name FrontierServiceDisableProject
2617
+ * @summary Disable project
2618
+ * @request POST:/v1beta1/projects/{id}/disable
2619
+ * @secure
2620
+ */
2621
+ this.frontierServiceDisableProject = (id, body, params = {}) => this.request(__spreadValues({
2622
+ path: `/v1beta1/projects/${id}/disable`,
2623
+ method: "POST",
2624
+ body,
2625
+ secure: true,
2626
+ format: "json"
2627
+ }, params));
2628
+ /**
2629
+ * No description
2630
+ *
2631
+ * @tags Project
2632
+ * @name FrontierServiceEnableProject
2633
+ * @summary Enable project
2634
+ * @request POST:/v1beta1/projects/{id}/enable
2635
+ * @secure
2636
+ */
2637
+ this.frontierServiceEnableProject = (id, body, params = {}) => this.request(__spreadValues({
2638
+ path: `/v1beta1/projects/${id}/enable`,
2639
+ method: "POST",
2640
+ body,
2641
+ secure: true,
2642
+ format: "json"
2643
+ }, params));
2644
+ /**
2645
+ * @description Returns a collection of groups of a project.
2646
+ *
2647
+ * @tags Project
2648
+ * @name FrontierServiceListProjectGroups
2649
+ * @summary List project groups
2650
+ * @request GET:/v1beta1/projects/{id}/groups
2651
+ * @secure
2652
+ */
2653
+ this.frontierServiceListProjectGroups = (id, query, params = {}) => this.request(__spreadValues({
2654
+ path: `/v1beta1/projects/${id}/groups`,
2655
+ method: "GET",
2656
+ query,
2657
+ secure: true,
2658
+ format: "json"
2659
+ }, params));
2660
+ /**
2661
+ * @description List a project preferences by ID.
2662
+ *
2663
+ * @tags Preference
2664
+ * @name FrontierServiceListProjectPreferences
2665
+ * @summary List project preferences
2666
+ * @request GET:/v1beta1/projects/{id}/preferences
2667
+ * @secure
2668
+ */
2669
+ this.frontierServiceListProjectPreferences = (id, params = {}) => this.request(__spreadValues({
2670
+ path: `/v1beta1/projects/${id}/preferences`,
2671
+ method: "GET",
2672
+ secure: true,
2673
+ format: "json"
2674
+ }, params));
2675
+ /**
2676
+ * @description Create a new project preferences. The project preferences **name** must be unique within the project and can contain only alphanumeric characters, dashes and underscores.
2677
+ *
2678
+ * @tags Preference
2679
+ * @name FrontierServiceCreateProjectPreferences
2680
+ * @summary Create project preferences
2681
+ * @request POST:/v1beta1/projects/{id}/preferences
2682
+ * @secure
2683
+ */
2684
+ this.frontierServiceCreateProjectPreferences = (id, body, params = {}) => this.request(__spreadValues({
2685
+ path: `/v1beta1/projects/${id}/preferences`,
2686
+ method: "POST",
2687
+ body,
2688
+ secure: true,
2689
+ format: "json"
2690
+ }, params));
2691
+ /**
2692
+ * @description Returns a collection of users of a project.
2693
+ *
2694
+ * @tags Project
2695
+ * @name FrontierServiceListProjectServiceUsers
2696
+ * @summary List project serviceusers
2697
+ * @request GET:/v1beta1/projects/{id}/serviceusers
2698
+ * @secure
2699
+ */
2700
+ this.frontierServiceListProjectServiceUsers = (id, query, params = {}) => this.request(__spreadValues({
2701
+ path: `/v1beta1/projects/${id}/serviceusers`,
2702
+ method: "GET",
2703
+ query,
2704
+ secure: true,
2705
+ format: "json"
2706
+ }, params));
2707
+ /**
2708
+ * @description Returns a collection of users of a project. Filter by user permissions is supported.
2709
+ *
2710
+ * @tags Project
2711
+ * @name FrontierServiceListProjectUsers
2712
+ * @summary List project users
2713
+ * @request GET:/v1beta1/projects/{id}/users
2714
+ * @secure
2715
+ */
2716
+ this.frontierServiceListProjectUsers = (id, query, params = {}) => this.request(__spreadValues({
2717
+ path: `/v1beta1/projects/${id}/users`,
2718
+ method: "GET",
2719
+ query,
2720
+ secure: true,
2721
+ format: "json"
2722
+ }, params));
2723
+ /**
2724
+ * No description
2725
+ *
2726
+ * @tags Resource
2727
+ * @name FrontierServiceListProjectResources
2728
+ * @summary Get all resources
2729
+ * @request GET:/v1beta1/projects/{project_id}/resources
2730
+ * @secure
2731
+ */
2732
+ this.frontierServiceListProjectResources = (projectId, query, params = {}) => this.request(__spreadValues({
2733
+ path: `/v1beta1/projects/${projectId}/resources`,
2734
+ method: "GET",
2735
+ query,
2736
+ secure: true,
2737
+ format: "json"
2738
+ }, params));
2739
+ /**
2740
+ * @description Creates a resource in a project
2741
+ *
2742
+ * @tags Resource
2743
+ * @name FrontierServiceCreateProjectResource
2744
+ * @summary Create resource
2745
+ * @request POST:/v1beta1/projects/{project_id}/resources
2746
+ * @secure
2747
+ */
2748
+ this.frontierServiceCreateProjectResource = (projectId, body, query, params = {}) => this.request(__spreadValues({
2749
+ path: `/v1beta1/projects/${projectId}/resources`,
2750
+ method: "POST",
2751
+ query,
2752
+ body,
2753
+ secure: true,
2754
+ format: "json"
2755
+ }, params));
2756
+ /**
2757
+ * @description Returns a project resource by ID
2758
+ *
2759
+ * @tags Resource
2760
+ * @name FrontierServiceGetProjectResource
2761
+ * @summary Get resource
2762
+ * @request GET:/v1beta1/projects/{project_id}/resources/{id}
2763
+ * @secure
2764
+ */
2765
+ this.frontierServiceGetProjectResource = (projectId, id, params = {}) => this.request(__spreadValues({
2766
+ path: `/v1beta1/projects/${projectId}/resources/${id}`,
2767
+ method: "GET",
2768
+ secure: true,
2769
+ format: "json"
2770
+ }, params));
2771
+ /**
2772
+ * @description Deletes a resource from a project permanently
2773
+ *
2774
+ * @tags Resource
2775
+ * @name FrontierServiceDeleteProjectResource
2776
+ * @summary Delete resource
2777
+ * @request DELETE:/v1beta1/projects/{project_id}/resources/{id}
2778
+ * @secure
2779
+ */
2780
+ this.frontierServiceDeleteProjectResource = (projectId, id, params = {}) => this.request(__spreadValues({
2781
+ path: `/v1beta1/projects/${projectId}/resources/${id}`,
2782
+ method: "DELETE",
2783
+ secure: true,
2784
+ format: "json"
2785
+ }, params));
2786
+ /**
2787
+ * @description Updates a resource in a project
2788
+ *
2789
+ * @tags Resource
2790
+ * @name FrontierServiceUpdateProjectResource
2791
+ * @summary Update resource
2792
+ * @request PUT:/v1beta1/projects/{project_id}/resources/{id}
2793
+ * @secure
2794
+ */
2795
+ this.frontierServiceUpdateProjectResource = (projectId, id, body, params = {}) => this.request(__spreadValues({
2796
+ path: `/v1beta1/projects/${projectId}/resources/${id}`,
2797
+ method: "PUT",
2798
+ body,
2799
+ secure: true,
2800
+ format: "json"
2801
+ }, params));
2802
+ /**
2803
+ * No description
2804
+ *
2805
+ * @tags Relation
2806
+ * @name FrontierServiceCreateRelation
2807
+ * @summary Create relation
2808
+ * @request POST:/v1beta1/relations
2809
+ * @secure
2810
+ */
2811
+ this.frontierServiceCreateRelation = (body, params = {}) => this.request(__spreadValues({
2812
+ path: `/v1beta1/relations`,
2813
+ method: "POST",
2814
+ body,
2815
+ secure: true,
2816
+ type: "application/json" /* Json */,
2817
+ format: "json"
2818
+ }, params));
2819
+ /**
2820
+ * @description Returns a relation by ID
2821
+ *
2822
+ * @tags Relation
2823
+ * @name FrontierServiceGetRelation
2824
+ * @summary Get relation
2825
+ * @request GET:/v1beta1/relations/{id}
2826
+ * @secure
2827
+ */
2828
+ this.frontierServiceGetRelation = (id, params = {}) => this.request(__spreadValues({
2829
+ path: `/v1beta1/relations/${id}`,
2830
+ method: "GET",
2831
+ secure: true,
2832
+ format: "json"
2833
+ }, params));
2834
+ /**
2835
+ * @description Remove a subject having a relation from an object
2836
+ *
2837
+ * @tags Relation
2838
+ * @name FrontierServiceDeleteRelation
2839
+ * @summary Delete relation
2840
+ * @request DELETE:/v1beta1/relations/{relation}/object/{object}/subject/{subject}
2841
+ * @secure
2842
+ */
2843
+ this.frontierServiceDeleteRelation = (relation, object, subject, params = {}) => this.request(__spreadValues({
2844
+ path: `/v1beta1/relations/${relation}/object/${object}/subject/${subject}`,
2845
+ method: "DELETE",
2846
+ secure: true,
2847
+ format: "json"
2848
+ }, params));
2849
+ /**
2850
+ * @description Returns a list of platform wide roles available in enitre Frontier instance along with their associated permissions
2851
+ *
2852
+ * @tags Role
2853
+ * @name FrontierServiceListRoles
2854
+ * @summary List platform roles
2855
+ * @request GET:/v1beta1/roles
2856
+ * @secure
2857
+ */
2858
+ this.frontierServiceListRoles = (query, params = {}) => this.request(__spreadValues({
2859
+ path: `/v1beta1/roles`,
2860
+ method: "GET",
2861
+ query,
2862
+ secure: true,
2863
+ format: "json"
2864
+ }, params));
2865
+ /**
2866
+ * @description Creates a platform wide role. It can be used to grant permissions to all the resources in a Frontier instance.
2867
+ *
2868
+ * @tags Role
2869
+ * @name AdminServiceCreateRole
2870
+ * @summary Create platform role
2871
+ * @request POST:/v1beta1/roles
2872
+ * @secure
2873
+ */
2874
+ this.adminServiceCreateRole = (body, params = {}) => this.request(__spreadValues({
2875
+ path: `/v1beta1/roles`,
2876
+ method: "POST",
2877
+ body,
2878
+ secure: true,
2879
+ format: "json"
2880
+ }, params));
2881
+ /**
2882
+ * @description Delete a platform wide role and all of its relations.
2883
+ *
2884
+ * @tags Role
2885
+ * @name AdminServiceDeleteRole
2886
+ * @summary Delete platform role
2887
+ * @request DELETE:/v1beta1/roles/{id}
2888
+ * @secure
2889
+ */
2890
+ this.adminServiceDeleteRole = (id, params = {}) => this.request(__spreadValues({
2891
+ path: `/v1beta1/roles/${id}`,
2892
+ method: "DELETE",
2893
+ secure: true,
2894
+ format: "json"
2895
+ }, params));
2896
+ /**
2897
+ * @description Update a role title, description and permissions.
2898
+ *
2899
+ * @tags Role
2900
+ * @name AdminServiceUpdateRole
2901
+ * @summary Update role
2902
+ * @request PUT:/v1beta1/roles/{id}
2903
+ * @secure
2904
+ */
2905
+ this.adminServiceUpdateRole = (id, body, params = {}) => this.request(__spreadValues({
2906
+ path: `/v1beta1/roles/${id}`,
2907
+ method: "PUT",
2908
+ body,
2909
+ secure: true,
2910
+ format: "json"
2911
+ }, params));
2912
+ /**
2913
+ * @description Returns the service user of an organization in a Frontier instance. It can be filter by it's state
2914
+ *
2915
+ * @tags ServiceUser
2916
+ * @name FrontierServiceListServiceUsers
2917
+ * @summary List org service users
2918
+ * @request GET:/v1beta1/serviceusers
2919
+ * @secure
2920
+ */
2921
+ this.frontierServiceListServiceUsers = (query, params = {}) => this.request(__spreadValues({
2922
+ path: `/v1beta1/serviceusers`,
2923
+ method: "GET",
2924
+ query,
2925
+ secure: true,
2926
+ format: "json"
2927
+ }, params));
2928
+ /**
2929
+ * @description Create a service user.
2930
+ *
2931
+ * @tags ServiceUser
2932
+ * @name FrontierServiceCreateServiceUser
2933
+ * @summary Create service user
2934
+ * @request POST:/v1beta1/serviceusers
2935
+ * @secure
2936
+ */
2937
+ this.frontierServiceCreateServiceUser = (body, params = {}) => this.request(__spreadValues({
2938
+ path: `/v1beta1/serviceusers`,
2939
+ method: "POST",
2940
+ body,
2941
+ secure: true,
2942
+ type: "application/json" /* Json */,
2943
+ format: "json"
2944
+ }, params));
2945
+ /**
2946
+ * @description Get service user details by its id.
2947
+ *
2948
+ * @tags ServiceUser
2949
+ * @name FrontierServiceGetServiceUser
2950
+ * @summary Get service user
2951
+ * @request GET:/v1beta1/serviceusers/{id}
2952
+ * @secure
2953
+ */
2954
+ this.frontierServiceGetServiceUser = (id, params = {}) => this.request(__spreadValues({
2955
+ path: `/v1beta1/serviceusers/${id}`,
2956
+ method: "GET",
2957
+ secure: true,
2958
+ format: "json"
2959
+ }, params));
2960
+ /**
2961
+ * @description Delete a service user permanently and all of its relations (keys, organizations, roles, etc)
2962
+ *
2963
+ * @tags ServiceUser
2964
+ * @name FrontierServiceDeleteServiceUser
2965
+ * @summary Delete service user
2966
+ * @request DELETE:/v1beta1/serviceusers/{id}
2967
+ * @secure
2968
+ */
2969
+ this.frontierServiceDeleteServiceUser = (id, query, params = {}) => this.request(__spreadValues({
2970
+ path: `/v1beta1/serviceusers/${id}`,
2971
+ method: "DELETE",
2972
+ query,
2973
+ secure: true,
2974
+ format: "json"
2975
+ }, params));
2976
+ /**
2977
+ * @description List all the keys of a service user with its details except jwk.
2978
+ *
2979
+ * @tags ServiceUser
2980
+ * @name FrontierServiceListServiceUserJwKs
2981
+ * @summary List service user keys
2982
+ * @request GET:/v1beta1/serviceusers/{id}/keys
2983
+ * @secure
2984
+ */
2985
+ this.frontierServiceListServiceUserJwKs = (id, params = {}) => this.request(__spreadValues({
2986
+ path: `/v1beta1/serviceusers/${id}/keys`,
2987
+ method: "GET",
2988
+ secure: true,
2989
+ format: "json"
2990
+ }, params));
2991
+ /**
2992
+ * @description Generate a service user key and return it, the private key part of the response will not be persisted and should be kept securely by client.
2993
+ *
2994
+ * @tags ServiceUser
2995
+ * @name FrontierServiceCreateServiceUserJwk
2996
+ * @summary Create service user public/private key pair
2997
+ * @request POST:/v1beta1/serviceusers/{id}/keys
2998
+ * @secure
2999
+ */
3000
+ this.frontierServiceCreateServiceUserJwk = (id, body, params = {}) => this.request(__spreadValues({
3001
+ path: `/v1beta1/serviceusers/${id}/keys`,
3002
+ method: "POST",
3003
+ body,
3004
+ secure: true,
3005
+ format: "json"
3006
+ }, params));
3007
+ /**
3008
+ * @description Get a service user public RSA JWK set.
3009
+ *
3010
+ * @tags ServiceUser
3011
+ * @name FrontierServiceGetServiceUserJwk
3012
+ * @summary Get service user key
3013
+ * @request GET:/v1beta1/serviceusers/{id}/keys/{key_id}
3014
+ * @secure
3015
+ */
3016
+ this.frontierServiceGetServiceUserJwk = (id, keyId, params = {}) => this.request(__spreadValues({
3017
+ path: `/v1beta1/serviceusers/${id}/keys/${keyId}`,
3018
+ method: "GET",
3019
+ secure: true,
3020
+ format: "json"
3021
+ }, params));
3022
+ /**
3023
+ * @description Delete a service user key permanently.
3024
+ *
3025
+ * @tags ServiceUser
3026
+ * @name FrontierServiceDeleteServiceUserJwk
3027
+ * @summary Delete service user key
3028
+ * @request DELETE:/v1beta1/serviceusers/{id}/keys/{key_id}
3029
+ * @secure
3030
+ */
3031
+ this.frontierServiceDeleteServiceUserJwk = (id, keyId, params = {}) => this.request(__spreadValues({
3032
+ path: `/v1beta1/serviceusers/${id}/keys/${keyId}`,
3033
+ method: "DELETE",
3034
+ secure: true,
3035
+ format: "json"
3036
+ }, params));
3037
+ /**
3038
+ * @description List all the credentials of a service user.
3039
+ *
3040
+ * @tags ServiceUser
3041
+ * @name FrontierServiceListServiceUserCredentials
3042
+ * @summary List service user credentials
3043
+ * @request GET:/v1beta1/serviceusers/{id}/secrets
3044
+ * @secure
3045
+ */
3046
+ this.frontierServiceListServiceUserCredentials = (id, params = {}) => this.request(__spreadValues({
3047
+ path: `/v1beta1/serviceusers/${id}/secrets`,
3048
+ method: "GET",
3049
+ secure: true,
3050
+ format: "json"
3051
+ }, params));
3052
+ /**
3053
+ * @description Generate a service user credential and return it. The credential value will not be persisted and should be securely stored by client.
3054
+ *
3055
+ * @tags ServiceUser
3056
+ * @name FrontierServiceCreateServiceUserCredential
3057
+ * @summary Create service user client credentials
3058
+ * @request POST:/v1beta1/serviceusers/{id}/secrets
3059
+ * @secure
3060
+ */
3061
+ this.frontierServiceCreateServiceUserCredential = (id, body, params = {}) => this.request(__spreadValues({
3062
+ path: `/v1beta1/serviceusers/${id}/secrets`,
3063
+ method: "POST",
3064
+ body,
3065
+ secure: true,
3066
+ format: "json"
3067
+ }, params));
3068
+ /**
3069
+ * @description Delete a service user credential.
3070
+ *
3071
+ * @tags ServiceUser
3072
+ * @name FrontierServiceDeleteServiceUserCredential
3073
+ * @summary Delete service user credentials
3074
+ * @request DELETE:/v1beta1/serviceusers/{id}/secrets/{secret_id}
3075
+ * @secure
3076
+ */
3077
+ this.frontierServiceDeleteServiceUserCredential = (id, secretId, params = {}) => this.request(__spreadValues({
3078
+ path: `/v1beta1/serviceusers/${id}/secrets/${secretId}`,
3079
+ method: "DELETE",
3080
+ secure: true,
3081
+ format: "json"
3082
+ }, params));
3083
+ /**
3084
+ * @description List all the tokens of a service user.
3085
+ *
3086
+ * @tags ServiceUser
3087
+ * @name FrontierServiceListServiceUserTokens
3088
+ * @summary List service user tokens
3089
+ * @request GET:/v1beta1/serviceusers/{id}/tokens
3090
+ * @secure
3091
+ */
3092
+ this.frontierServiceListServiceUserTokens = (id, params = {}) => this.request(__spreadValues({
3093
+ path: `/v1beta1/serviceusers/${id}/tokens`,
3094
+ method: "GET",
3095
+ secure: true,
3096
+ format: "json"
3097
+ }, params));
3098
+ /**
3099
+ * @description Generate a service user token and return it. The token value will not be persisted and should be securely stored by client.
3100
+ *
3101
+ * @tags ServiceUser
3102
+ * @name FrontierServiceCreateServiceUserToken
3103
+ * @summary Create service user token
3104
+ * @request POST:/v1beta1/serviceusers/{id}/tokens
3105
+ * @secure
3106
+ */
3107
+ this.frontierServiceCreateServiceUserToken = (id, body, params = {}) => this.request(__spreadValues({
3108
+ path: `/v1beta1/serviceusers/${id}/tokens`,
3109
+ method: "POST",
3110
+ body,
3111
+ secure: true,
3112
+ format: "json"
3113
+ }, params));
3114
+ /**
3115
+ * @description Delete a service user token.
3116
+ *
3117
+ * @tags ServiceUser
3118
+ * @name FrontierServiceDeleteServiceUserToken
3119
+ * @summary Delete service user token
3120
+ * @request DELETE:/v1beta1/serviceusers/{id}/tokens/{token_id}
3121
+ * @secure
3122
+ */
3123
+ this.frontierServiceDeleteServiceUserToken = (id, tokenId, params = {}) => this.request(__spreadValues({
3124
+ path: `/v1beta1/serviceusers/${id}/tokens/${tokenId}`,
3125
+ method: "DELETE",
3126
+ secure: true,
3127
+ format: "json"
3128
+ }, params));
3129
+ /**
3130
+ * @description Returns the users from all the organizations in a Frontier instance. It can be filtered by keyword, organization, group and state. Additionally you can include page number and page size for pagination.
3131
+ *
3132
+ * @tags User
3133
+ * @name FrontierServiceListUsers
3134
+ * @summary List public users
3135
+ * @request GET:/v1beta1/users
3136
+ * @secure
3137
+ */
3138
+ this.frontierServiceListUsers = (query, params = {}) => this.request(__spreadValues({
3139
+ path: `/v1beta1/users`,
3140
+ method: "GET",
3141
+ query,
3142
+ secure: true,
3143
+ format: "json"
3144
+ }, params));
3145
+ /**
3146
+ * @description Create a user with the given details. A user is not attached to an organization or a group by default,and can be invited to the org/group. The name of the user must be unique within the entire Frontier instance. If a user name is not provided, Frontier automatically generates a name from the user email. The user metadata is validated against the user metaschema. By default the user metaschema contains `labels` and `descriptions` for the user. The `title` field can be optionally added for a user-friendly name. <br/><br/>*Example:*`{"email":"john.doe@raystack.org","title":"John Doe",metadata:{"label": {"key1": "value1"}, "description": "User Description"}}`
3147
+ *
3148
+ * @tags User
3149
+ * @name FrontierServiceCreateUser
3150
+ * @summary Create user
3151
+ * @request POST:/v1beta1/users
3152
+ */
3153
+ this.frontierServiceCreateUser = (body, params = {}) => this.request(__spreadValues({
3154
+ path: `/v1beta1/users`,
3155
+ method: "POST",
3156
+ body,
3157
+ format: "json"
3158
+ }, params));
3159
+ /**
3160
+ * @description Get a user by id searched over all organizations in Frontier.
3161
+ *
3162
+ * @tags User
3163
+ * @name FrontierServiceGetUser
3164
+ * @summary Get user
3165
+ * @request GET:/v1beta1/users/{id}
3166
+ * @secure
3167
+ */
3168
+ this.frontierServiceGetUser = (id, params = {}) => this.request(__spreadValues({
3169
+ path: `/v1beta1/users/${id}`,
3170
+ method: "GET",
3171
+ secure: true,
3172
+ format: "json"
3173
+ }, params));
3174
+ /**
3175
+ * @description Delete an user permanently forever and all of its relations (organizations, groups, etc)
3176
+ *
3177
+ * @tags User
3178
+ * @name FrontierServiceDeleteUser
3179
+ * @summary Delete user
3180
+ * @request DELETE:/v1beta1/users/{id}
3181
+ * @secure
3182
+ */
3183
+ this.frontierServiceDeleteUser = (id, params = {}) => this.request(__spreadValues({
3184
+ path: `/v1beta1/users/${id}`,
3185
+ method: "DELETE",
3186
+ secure: true,
3187
+ format: "json"
3188
+ }, params));
3189
+ /**
3190
+ * No description
3191
+ *
3192
+ * @tags User
3193
+ * @name FrontierServiceUpdateUser
3194
+ * @summary Update user
3195
+ * @request PUT:/v1beta1/users/{id}
3196
+ * @secure
3197
+ */
3198
+ this.frontierServiceUpdateUser = (id, body, params = {}) => this.request(__spreadValues({
3199
+ path: `/v1beta1/users/${id}`,
3200
+ method: "PUT",
3201
+ body,
3202
+ secure: true,
3203
+ format: "json"
3204
+ }, params));
3205
+ /**
3206
+ * @description Sets the state of the user as diabled.The user's membership to groups and organizations will still exist along with all it's roles for access control, but the user will not be able to log in and access the Frontier instance.
3207
+ *
3208
+ * @tags User
3209
+ * @name FrontierServiceDisableUser
3210
+ * @summary Disable user
3211
+ * @request POST:/v1beta1/users/{id}/disable
3212
+ * @secure
3213
+ */
3214
+ this.frontierServiceDisableUser = (id, body, params = {}) => this.request(__spreadValues({
3215
+ path: `/v1beta1/users/${id}/disable`,
3216
+ method: "POST",
3217
+ body,
3218
+ secure: true,
3219
+ format: "json"
3220
+ }, params));
3221
+ /**
3222
+ * @description Sets the state of the user as enabled. The user will be able to log in and access the Frontier instance.
3223
+ *
3224
+ * @tags User
3225
+ * @name FrontierServiceEnableUser
3226
+ * @summary Enable user
3227
+ * @request POST:/v1beta1/users/{id}/enable
3228
+ * @secure
3229
+ */
3230
+ this.frontierServiceEnableUser = (id, body, params = {}) => this.request(__spreadValues({
3231
+ path: `/v1beta1/users/${id}/enable`,
3232
+ method: "POST",
3233
+ body,
3234
+ secure: true,
3235
+ format: "json"
3236
+ }, params));
3237
+ /**
3238
+ * @description Lists all the groups a user belongs to across all organization in Frontier. To get the groups of a user in a specific organization, use the org_id filter in the query parameter.
3239
+ *
3240
+ * @tags User
3241
+ * @name FrontierServiceListUserGroups
3242
+ * @summary List user groups
3243
+ * @request GET:/v1beta1/users/{id}/groups
3244
+ * @secure
3245
+ */
3246
+ this.frontierServiceListUserGroups = (id, query, params = {}) => this.request(__spreadValues({
3247
+ path: `/v1beta1/users/${id}/groups`,
3248
+ method: "GET",
3249
+ query,
3250
+ secure: true,
3251
+ format: "json"
3252
+ }, params));
3253
+ /**
3254
+ * @description List all the invitations sent to a user.
3255
+ *
3256
+ * @tags User
3257
+ * @name FrontierServiceListUserInvitations
3258
+ * @summary List user invitations
3259
+ * @request GET:/v1beta1/users/{id}/invitations
3260
+ * @secure
3261
+ */
3262
+ this.frontierServiceListUserInvitations = (id, params = {}) => this.request(__spreadValues({
3263
+ path: `/v1beta1/users/${id}/invitations`,
3264
+ method: "GET",
3265
+ secure: true,
3266
+ format: "json"
3267
+ }, params));
3268
+ /**
3269
+ * @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
3270
+ *
3271
+ * @tags User
3272
+ * @name FrontierServiceListOrganizationsByUser
3273
+ * @summary Get user organizations
3274
+ * @request GET:/v1beta1/users/{id}/organizations
3275
+ * @secure
3276
+ */
3277
+ this.frontierServiceListOrganizationsByUser = (id, params = {}) => this.request(__spreadValues({
3278
+ path: `/v1beta1/users/${id}/organizations`,
3279
+ method: "GET",
3280
+ secure: true,
3281
+ format: "json"
3282
+ }, params));
3283
+ /**
3284
+ * @description List a user preferences by ID.
3285
+ *
3286
+ * @tags Preference
3287
+ * @name FrontierServiceListUserPreferences
3288
+ * @summary List user preferences
3289
+ * @request GET:/v1beta1/users/{id}/preferences
3290
+ * @secure
3291
+ */
3292
+ this.frontierServiceListUserPreferences = (id, params = {}) => this.request(__spreadValues({
3293
+ path: `/v1beta1/users/${id}/preferences`,
3294
+ method: "GET",
3295
+ secure: true,
3296
+ format: "json"
3297
+ }, params));
3298
+ /**
3299
+ * @description Create a new user preferences. The user preferences **name** must be unique within the user and can contain only alphanumeric characters, dashes and underscores.
3300
+ *
3301
+ * @tags Preference
3302
+ * @name FrontierServiceCreateUserPreferences
3303
+ * @summary Create user preferences
3304
+ * @request POST:/v1beta1/users/{id}/preferences
3305
+ * @secure
3306
+ */
3307
+ this.frontierServiceCreateUserPreferences = (id, body, params = {}) => this.request(__spreadValues({
3308
+ path: `/v1beta1/users/${id}/preferences`,
3309
+ method: "POST",
3310
+ body,
3311
+ secure: true,
3312
+ format: "json"
3313
+ }, params));
3314
+ /**
3315
+ * @description Get all the projects a user belongs to.
3316
+ *
3317
+ * @tags User
3318
+ * @name FrontierServiceListProjectsByUser
3319
+ * @summary Get user projects
3320
+ * @request GET:/v1beta1/users/{id}/projects
3321
+ * @secure
3322
+ */
3323
+ this.frontierServiceListProjectsByUser = (id, params = {}) => this.request(__spreadValues({
3324
+ path: `/v1beta1/users/${id}/projects`,
3325
+ method: "GET",
3326
+ secure: true,
3327
+ format: "json"
3328
+ }, params));
3329
+ /**
3330
+ * No description
3331
+ *
3332
+ * @tags User
3333
+ * @name FrontierServiceGetCurrentUser
3334
+ * @summary Get current user
3335
+ * @request GET:/v1beta1/users/self
3336
+ * @secure
3337
+ */
3338
+ this.frontierServiceGetCurrentUser = (params = {}) => this.request(__spreadValues({
3339
+ path: `/v1beta1/users/self`,
3340
+ method: "GET",
3341
+ secure: true,
3342
+ format: "json"
3343
+ }, params));
3344
+ /**
3345
+ * No description
3346
+ *
3347
+ * @tags User
3348
+ * @name FrontierServiceUpdateCurrentUser
3349
+ * @summary Update current user
3350
+ * @request PUT:/v1beta1/users/self
3351
+ * @secure
3352
+ */
3353
+ this.frontierServiceUpdateCurrentUser = (body, params = {}) => this.request(__spreadValues({
3354
+ path: `/v1beta1/users/self`,
3355
+ method: "PUT",
3356
+ body,
3357
+ secure: true,
3358
+ format: "json"
3359
+ }, params));
3360
+ /**
3361
+ * No description
3362
+ *
3363
+ * @tags User
3364
+ * @name FrontierServiceListCurrentUserGroups
3365
+ * @summary List my groups
3366
+ * @request GET:/v1beta1/users/self/groups
3367
+ * @secure
3368
+ */
3369
+ this.frontierServiceListCurrentUserGroups = (query, params = {}) => this.request(__spreadValues({
3370
+ path: `/v1beta1/users/self/groups`,
3371
+ method: "GET",
3372
+ query,
3373
+ secure: true,
3374
+ format: "json"
3375
+ }, params));
3376
+ /**
3377
+ * @description List all the invitations sent to current user.
3378
+ *
3379
+ * @tags User
3380
+ * @name FrontierServiceListCurrentUserInvitations
3381
+ * @summary List user invitations
3382
+ * @request GET:/v1beta1/users/self/invitations
3383
+ * @secure
3384
+ */
3385
+ this.frontierServiceListCurrentUserInvitations = (params = {}) => this.request(__spreadValues({
3386
+ path: `/v1beta1/users/self/invitations`,
3387
+ method: "GET",
3388
+ secure: true,
3389
+ format: "json"
3390
+ }, params));
3391
+ /**
3392
+ * @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
3393
+ *
3394
+ * @tags User
3395
+ * @name FrontierServiceListOrganizationsByCurrentUser
3396
+ * @summary Get my organizations
3397
+ * @request GET:/v1beta1/users/self/organizations
3398
+ * @secure
3399
+ */
3400
+ this.frontierServiceListOrganizationsByCurrentUser = (query, params = {}) => this.request(__spreadValues({
3401
+ path: `/v1beta1/users/self/organizations`,
3402
+ method: "GET",
3403
+ query,
3404
+ secure: true,
3405
+ format: "json"
3406
+ }, params));
3407
+ /**
3408
+ * @description List a user preferences by ID.
3409
+ *
3410
+ * @tags Preference
3411
+ * @name FrontierServiceListCurrentUserPreferences
3412
+ * @summary List current user preferences
3413
+ * @request GET:/v1beta1/users/self/preferences
3414
+ * @secure
3415
+ */
3416
+ this.frontierServiceListCurrentUserPreferences = (params = {}) => this.request(__spreadValues({
3417
+ path: `/v1beta1/users/self/preferences`,
3418
+ method: "GET",
3419
+ secure: true,
3420
+ format: "json"
3421
+ }, params));
3422
+ /**
3423
+ * @description Create a new user preferences. The user preferences **name** must be unique within the user and can contain only alphanumeric characters, dashes and underscores.
3424
+ *
3425
+ * @tags Preference
3426
+ * @name FrontierServiceCreateCurrentUserPreferences
3427
+ * @summary Create current user preferences
3428
+ * @request POST:/v1beta1/users/self/preferences
3429
+ * @secure
3430
+ */
3431
+ this.frontierServiceCreateCurrentUserPreferences = (body, params = {}) => this.request(__spreadValues({
3432
+ path: `/v1beta1/users/self/preferences`,
3433
+ method: "POST",
3434
+ body,
3435
+ secure: true,
3436
+ type: "application/json" /* Json */,
3437
+ format: "json"
3438
+ }, params));
3439
+ /**
3440
+ * @description Get all projects the current user belongs to
3441
+ *
3442
+ * @tags User
3443
+ * @name FrontierServiceListProjectsByCurrentUser
3444
+ * @summary Get my projects
3445
+ * @request GET:/v1beta1/users/self/projects
3446
+ * @secure
3447
+ */
3448
+ this.frontierServiceListProjectsByCurrentUser = (query, params = {}) => this.request(__spreadValues({
3449
+ path: `/v1beta1/users/self/projects`,
3450
+ method: "GET",
3451
+ query,
3452
+ secure: true,
3453
+ format: "json"
3454
+ }, params));
3455
+ }
3456
+ };
3457
+
3458
+ // api-client/data-contracts.ts
3459
+ var ProtobufNullValue = /* @__PURE__ */ ((ProtobufNullValue2) => {
3460
+ ProtobufNullValue2["NULL_VALUE"] = "NULL_VALUE";
3461
+ return ProtobufNullValue2;
3462
+ })(ProtobufNullValue || {});
3463
+
3464
+ // api-client/index.ts
3465
+ var ApiClient = V1Beta1;
3466
+ export {
3467
+ ApiClient,
3468
+ ProtobufNullValue
3469
+ };