@raystack/frontier 0.84.1 → 0.85.1

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