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