@raystack/frontier 0.84.0 → 0.85.0

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