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