@seekora-ai/admin-api 1.1.70 → 1.1.71
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/README.md +6 -2
- package/api.ts +391 -7
- package/dist/api.d.ts +285 -4
- package/dist/api.js +204 -15
- package/dist/esm/api.d.ts +285 -4
- package/dist/esm/api.js +196 -7
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.1.71.tgz +0 -0
- package/seekora-ai-admin-api-1.1.70.tgz +0 -0
package/dist/esm/api.js
CHANGED
|
@@ -26,6 +26,10 @@ import globalAxios from 'axios';
|
|
|
26
26
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { BASE_PATH, BaseAPI, operationServerMap } from './base';
|
|
29
|
+
export const DataTypesAcceptInvitationWithOAuthRequestTypeEnum = {
|
|
30
|
+
Google: 'google',
|
|
31
|
+
Github: 'github'
|
|
32
|
+
};
|
|
29
33
|
export const DataTypesBillingAlertRequestAlertTypeEnum = {
|
|
30
34
|
LowBalance: 'low_balance',
|
|
31
35
|
ExpiringCredits: 'expiring_credits',
|
|
@@ -22105,10 +22109,11 @@ export const NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
22105
22109
|
* @param {V1NotificationsGetPriorityEnum} [priority] Filter by priority
|
|
22106
22110
|
* @param {V1NotificationsGetSortByEnum} [sortBy] Sort field
|
|
22107
22111
|
* @param {V1NotificationsGetSortOrderEnum} [sortOrder] Sort order (case-insensitive)
|
|
22112
|
+
* @param {string} [since] ISO8601 timestamp - return only notifications created at or after this time (e.g. 2025-01-30T10:00:00Z)
|
|
22108
22113
|
* @param {*} [options] Override http request option.
|
|
22109
22114
|
* @throws {RequiredError}
|
|
22110
22115
|
*/
|
|
22111
|
-
v1NotificationsGet: (page_1, pageSize_1, limit_1, offset_1, search_1, type_1, isRead_1, priority_1, sortBy_1, sortOrder_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, limit_1, offset_1, search_1, type_1, isRead_1, priority_1, sortBy_1, sortOrder_1, ...args_1], void 0, function* (page, pageSize, limit, offset, search, type, isRead, priority, sortBy, sortOrder, options = {}) {
|
|
22116
|
+
v1NotificationsGet: (page_1, pageSize_1, limit_1, offset_1, search_1, type_1, isRead_1, priority_1, sortBy_1, sortOrder_1, since_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, limit_1, offset_1, search_1, type_1, isRead_1, priority_1, sortBy_1, sortOrder_1, since_1, ...args_1], void 0, function* (page, pageSize, limit, offset, search, type, isRead, priority, sortBy, sortOrder, since, options = {}) {
|
|
22112
22117
|
const localVarPath = `/v1/notifications`;
|
|
22113
22118
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22114
22119
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -22151,6 +22156,9 @@ export const NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
22151
22156
|
if (sortOrder !== undefined) {
|
|
22152
22157
|
localVarQueryParameter['sort_order'] = sortOrder;
|
|
22153
22158
|
}
|
|
22159
|
+
if (since !== undefined) {
|
|
22160
|
+
localVarQueryParameter['since'] = since;
|
|
22161
|
+
}
|
|
22154
22162
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22155
22163
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22156
22164
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -22379,13 +22387,14 @@ export const NotificationsApiFp = function (configuration) {
|
|
|
22379
22387
|
* @param {V1NotificationsGetPriorityEnum} [priority] Filter by priority
|
|
22380
22388
|
* @param {V1NotificationsGetSortByEnum} [sortBy] Sort field
|
|
22381
22389
|
* @param {V1NotificationsGetSortOrderEnum} [sortOrder] Sort order (case-insensitive)
|
|
22390
|
+
* @param {string} [since] ISO8601 timestamp - return only notifications created at or after this time (e.g. 2025-01-30T10:00:00Z)
|
|
22382
22391
|
* @param {*} [options] Override http request option.
|
|
22383
22392
|
* @throws {RequiredError}
|
|
22384
22393
|
*/
|
|
22385
|
-
v1NotificationsGet(page, pageSize, limit, offset, search, type, isRead, priority, sortBy, sortOrder, options) {
|
|
22394
|
+
v1NotificationsGet(page, pageSize, limit, offset, search, type, isRead, priority, sortBy, sortOrder, since, options) {
|
|
22386
22395
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22387
22396
|
var _a, _b, _c;
|
|
22388
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.v1NotificationsGet(page, pageSize, limit, offset, search, type, isRead, priority, sortBy, sortOrder, options);
|
|
22397
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.v1NotificationsGet(page, pageSize, limit, offset, search, type, isRead, priority, sortBy, sortOrder, since, options);
|
|
22389
22398
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
22390
22399
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['NotificationsApi.v1NotificationsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
22391
22400
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -22518,11 +22527,12 @@ export const NotificationsApiFactory = function (configuration, basePath, axios)
|
|
|
22518
22527
|
* @param {V1NotificationsGetPriorityEnum} [priority] Filter by priority
|
|
22519
22528
|
* @param {V1NotificationsGetSortByEnum} [sortBy] Sort field
|
|
22520
22529
|
* @param {V1NotificationsGetSortOrderEnum} [sortOrder] Sort order (case-insensitive)
|
|
22530
|
+
* @param {string} [since] ISO8601 timestamp - return only notifications created at or after this time (e.g. 2025-01-30T10:00:00Z)
|
|
22521
22531
|
* @param {*} [options] Override http request option.
|
|
22522
22532
|
* @throws {RequiredError}
|
|
22523
22533
|
*/
|
|
22524
|
-
v1NotificationsGet(page, pageSize, limit, offset, search, type, isRead, priority, sortBy, sortOrder, options) {
|
|
22525
|
-
return localVarFp.v1NotificationsGet(page, pageSize, limit, offset, search, type, isRead, priority, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
22534
|
+
v1NotificationsGet(page, pageSize, limit, offset, search, type, isRead, priority, sortBy, sortOrder, since, options) {
|
|
22535
|
+
return localVarFp.v1NotificationsGet(page, pageSize, limit, offset, search, type, isRead, priority, sortBy, sortOrder, since, options).then((request) => request(axios, basePath));
|
|
22526
22536
|
},
|
|
22527
22537
|
/**
|
|
22528
22538
|
* Generates a fresh presigned URL for notification attachments (invoice or receipt). This is useful when the original presigned URL has expired.
|
|
@@ -22616,12 +22626,13 @@ export class NotificationsApi extends BaseAPI {
|
|
|
22616
22626
|
* @param {V1NotificationsGetPriorityEnum} [priority] Filter by priority
|
|
22617
22627
|
* @param {V1NotificationsGetSortByEnum} [sortBy] Sort field
|
|
22618
22628
|
* @param {V1NotificationsGetSortOrderEnum} [sortOrder] Sort order (case-insensitive)
|
|
22629
|
+
* @param {string} [since] ISO8601 timestamp - return only notifications created at or after this time (e.g. 2025-01-30T10:00:00Z)
|
|
22619
22630
|
* @param {*} [options] Override http request option.
|
|
22620
22631
|
* @throws {RequiredError}
|
|
22621
22632
|
* @memberof NotificationsApi
|
|
22622
22633
|
*/
|
|
22623
|
-
v1NotificationsGet(page, pageSize, limit, offset, search, type, isRead, priority, sortBy, sortOrder, options) {
|
|
22624
|
-
return NotificationsApiFp(this.configuration).v1NotificationsGet(page, pageSize, limit, offset, search, type, isRead, priority, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
22634
|
+
v1NotificationsGet(page, pageSize, limit, offset, search, type, isRead, priority, sortBy, sortOrder, since, options) {
|
|
22635
|
+
return NotificationsApiFp(this.configuration).v1NotificationsGet(page, pageSize, limit, offset, search, type, isRead, priority, sortBy, sortOrder, since, options).then((request) => request(this.axios, this.basePath));
|
|
22625
22636
|
}
|
|
22626
22637
|
/**
|
|
22627
22638
|
* Generates a fresh presigned URL for notification attachments (invoice or receipt). This is useful when the original presigned URL has expired.
|
|
@@ -27290,6 +27301,58 @@ export const QuerySuggestionsApiAxiosParamCreator = function (configuration) {
|
|
|
27290
27301
|
options: localVarRequestOptions,
|
|
27291
27302
|
};
|
|
27292
27303
|
}),
|
|
27304
|
+
/**
|
|
27305
|
+
* Same as GET: retrieve query suggestions with optional body (query, hitsPerPage, analytics_tags, filtered_tabs, etc.). Use POST when sending filtered_tabs or larger payloads. Supports personalization via x-user-id, x-anon-id, x-session-id headers.
|
|
27306
|
+
* @summary Post Query Suggestions
|
|
27307
|
+
* @param {string} xStoreid Store ID
|
|
27308
|
+
* @param {string} xStoresecret Store Secret
|
|
27309
|
+
* @param {string} [xUserId] User ID for personalization (logged-in user)
|
|
27310
|
+
* @param {string} [xAnonId] Anonymous ID for personalization (cookie/device ID)
|
|
27311
|
+
* @param {string} [xSessionId] Session ID for personalization
|
|
27312
|
+
* @param {QuerySuggestionsServiceQuerySuggestionsRequest} [querySuggestionsServiceQuerySuggestionsRequest] Query suggestions request (query, hitsPerPage, page, analytics_tags, include_categories, include_facets, filtered_tabs, etc.)
|
|
27313
|
+
* @param {*} [options] Override http request option.
|
|
27314
|
+
* @throws {RequiredError}
|
|
27315
|
+
*/
|
|
27316
|
+
v1SuggestionsQueriesPost: (xStoreid_1, xStoresecret_1, xUserId_1, xAnonId_1, xSessionId_1, querySuggestionsServiceQuerySuggestionsRequest_1, ...args_1) => __awaiter(this, [xStoreid_1, xStoresecret_1, xUserId_1, xAnonId_1, xSessionId_1, querySuggestionsServiceQuerySuggestionsRequest_1, ...args_1], void 0, function* (xStoreid, xStoresecret, xUserId, xAnonId, xSessionId, querySuggestionsServiceQuerySuggestionsRequest, options = {}) {
|
|
27317
|
+
// verify required parameter 'xStoreid' is not null or undefined
|
|
27318
|
+
assertParamExists('v1SuggestionsQueriesPost', 'xStoreid', xStoreid);
|
|
27319
|
+
// verify required parameter 'xStoresecret' is not null or undefined
|
|
27320
|
+
assertParamExists('v1SuggestionsQueriesPost', 'xStoresecret', xStoresecret);
|
|
27321
|
+
const localVarPath = `/v1/suggestions/queries`;
|
|
27322
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27323
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
27324
|
+
let baseOptions;
|
|
27325
|
+
if (configuration) {
|
|
27326
|
+
baseOptions = configuration.baseOptions;
|
|
27327
|
+
}
|
|
27328
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
27329
|
+
const localVarHeaderParameter = {};
|
|
27330
|
+
const localVarQueryParameter = {};
|
|
27331
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
27332
|
+
if (xStoreid != null) {
|
|
27333
|
+
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
27334
|
+
}
|
|
27335
|
+
if (xStoresecret != null) {
|
|
27336
|
+
localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
|
|
27337
|
+
}
|
|
27338
|
+
if (xUserId != null) {
|
|
27339
|
+
localVarHeaderParameter['x-user-id'] = String(xUserId);
|
|
27340
|
+
}
|
|
27341
|
+
if (xAnonId != null) {
|
|
27342
|
+
localVarHeaderParameter['x-anon-id'] = String(xAnonId);
|
|
27343
|
+
}
|
|
27344
|
+
if (xSessionId != null) {
|
|
27345
|
+
localVarHeaderParameter['x-session-id'] = String(xSessionId);
|
|
27346
|
+
}
|
|
27347
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27348
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27349
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
27350
|
+
localVarRequestOptions.data = serializeDataIfNeeded(querySuggestionsServiceQuerySuggestionsRequest, localVarRequestOptions, configuration);
|
|
27351
|
+
return {
|
|
27352
|
+
url: toPathString(localVarUrlObj),
|
|
27353
|
+
options: localVarRequestOptions,
|
|
27354
|
+
};
|
|
27355
|
+
}),
|
|
27293
27356
|
};
|
|
27294
27357
|
};
|
|
27295
27358
|
/**
|
|
@@ -27348,6 +27411,27 @@ export const QuerySuggestionsApiFp = function (configuration) {
|
|
|
27348
27411
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27349
27412
|
});
|
|
27350
27413
|
},
|
|
27414
|
+
/**
|
|
27415
|
+
* Same as GET: retrieve query suggestions with optional body (query, hitsPerPage, analytics_tags, filtered_tabs, etc.). Use POST when sending filtered_tabs or larger payloads. Supports personalization via x-user-id, x-anon-id, x-session-id headers.
|
|
27416
|
+
* @summary Post Query Suggestions
|
|
27417
|
+
* @param {string} xStoreid Store ID
|
|
27418
|
+
* @param {string} xStoresecret Store Secret
|
|
27419
|
+
* @param {string} [xUserId] User ID for personalization (logged-in user)
|
|
27420
|
+
* @param {string} [xAnonId] Anonymous ID for personalization (cookie/device ID)
|
|
27421
|
+
* @param {string} [xSessionId] Session ID for personalization
|
|
27422
|
+
* @param {QuerySuggestionsServiceQuerySuggestionsRequest} [querySuggestionsServiceQuerySuggestionsRequest] Query suggestions request (query, hitsPerPage, page, analytics_tags, include_categories, include_facets, filtered_tabs, etc.)
|
|
27423
|
+
* @param {*} [options] Override http request option.
|
|
27424
|
+
* @throws {RequiredError}
|
|
27425
|
+
*/
|
|
27426
|
+
v1SuggestionsQueriesPost(xStoreid, xStoresecret, xUserId, xAnonId, xSessionId, querySuggestionsServiceQuerySuggestionsRequest, options) {
|
|
27427
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27428
|
+
var _a, _b, _c;
|
|
27429
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.v1SuggestionsQueriesPost(xStoreid, xStoresecret, xUserId, xAnonId, xSessionId, querySuggestionsServiceQuerySuggestionsRequest, options);
|
|
27430
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
27431
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['QuerySuggestionsApi.v1SuggestionsQueriesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
27432
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27433
|
+
});
|
|
27434
|
+
},
|
|
27351
27435
|
};
|
|
27352
27436
|
};
|
|
27353
27437
|
/**
|
|
@@ -27394,6 +27478,21 @@ export const QuerySuggestionsApiFactory = function (configuration, basePath, axi
|
|
|
27394
27478
|
v1SuggestionsQueriesGet(xStoreid, xStoresecret, xUserId, xAnonId, xSessionId, query, hitsPerPage, page, analyticsTags, tagsMatchMode, includeCategories, includeFacets, maxCategories, maxFacets, minPopularity, timeRange, disableTypoTolerance, options) {
|
|
27395
27479
|
return localVarFp.v1SuggestionsQueriesGet(xStoreid, xStoresecret, xUserId, xAnonId, xSessionId, query, hitsPerPage, page, analyticsTags, tagsMatchMode, includeCategories, includeFacets, maxCategories, maxFacets, minPopularity, timeRange, disableTypoTolerance, options).then((request) => request(axios, basePath));
|
|
27396
27480
|
},
|
|
27481
|
+
/**
|
|
27482
|
+
* Same as GET: retrieve query suggestions with optional body (query, hitsPerPage, analytics_tags, filtered_tabs, etc.). Use POST when sending filtered_tabs or larger payloads. Supports personalization via x-user-id, x-anon-id, x-session-id headers.
|
|
27483
|
+
* @summary Post Query Suggestions
|
|
27484
|
+
* @param {string} xStoreid Store ID
|
|
27485
|
+
* @param {string} xStoresecret Store Secret
|
|
27486
|
+
* @param {string} [xUserId] User ID for personalization (logged-in user)
|
|
27487
|
+
* @param {string} [xAnonId] Anonymous ID for personalization (cookie/device ID)
|
|
27488
|
+
* @param {string} [xSessionId] Session ID for personalization
|
|
27489
|
+
* @param {QuerySuggestionsServiceQuerySuggestionsRequest} [querySuggestionsServiceQuerySuggestionsRequest] Query suggestions request (query, hitsPerPage, page, analytics_tags, include_categories, include_facets, filtered_tabs, etc.)
|
|
27490
|
+
* @param {*} [options] Override http request option.
|
|
27491
|
+
* @throws {RequiredError}
|
|
27492
|
+
*/
|
|
27493
|
+
v1SuggestionsQueriesPost(xStoreid, xStoresecret, xUserId, xAnonId, xSessionId, querySuggestionsServiceQuerySuggestionsRequest, options) {
|
|
27494
|
+
return localVarFp.v1SuggestionsQueriesPost(xStoreid, xStoresecret, xUserId, xAnonId, xSessionId, querySuggestionsServiceQuerySuggestionsRequest, options).then((request) => request(axios, basePath));
|
|
27495
|
+
},
|
|
27397
27496
|
};
|
|
27398
27497
|
};
|
|
27399
27498
|
/**
|
|
@@ -27442,6 +27541,22 @@ export class QuerySuggestionsApi extends BaseAPI {
|
|
|
27442
27541
|
v1SuggestionsQueriesGet(xStoreid, xStoresecret, xUserId, xAnonId, xSessionId, query, hitsPerPage, page, analyticsTags, tagsMatchMode, includeCategories, includeFacets, maxCategories, maxFacets, minPopularity, timeRange, disableTypoTolerance, options) {
|
|
27443
27542
|
return QuerySuggestionsApiFp(this.configuration).v1SuggestionsQueriesGet(xStoreid, xStoresecret, xUserId, xAnonId, xSessionId, query, hitsPerPage, page, analyticsTags, tagsMatchMode, includeCategories, includeFacets, maxCategories, maxFacets, minPopularity, timeRange, disableTypoTolerance, options).then((request) => request(this.axios, this.basePath));
|
|
27444
27543
|
}
|
|
27544
|
+
/**
|
|
27545
|
+
* Same as GET: retrieve query suggestions with optional body (query, hitsPerPage, analytics_tags, filtered_tabs, etc.). Use POST when sending filtered_tabs or larger payloads. Supports personalization via x-user-id, x-anon-id, x-session-id headers.
|
|
27546
|
+
* @summary Post Query Suggestions
|
|
27547
|
+
* @param {string} xStoreid Store ID
|
|
27548
|
+
* @param {string} xStoresecret Store Secret
|
|
27549
|
+
* @param {string} [xUserId] User ID for personalization (logged-in user)
|
|
27550
|
+
* @param {string} [xAnonId] Anonymous ID for personalization (cookie/device ID)
|
|
27551
|
+
* @param {string} [xSessionId] Session ID for personalization
|
|
27552
|
+
* @param {QuerySuggestionsServiceQuerySuggestionsRequest} [querySuggestionsServiceQuerySuggestionsRequest] Query suggestions request (query, hitsPerPage, page, analytics_tags, include_categories, include_facets, filtered_tabs, etc.)
|
|
27553
|
+
* @param {*} [options] Override http request option.
|
|
27554
|
+
* @throws {RequiredError}
|
|
27555
|
+
* @memberof QuerySuggestionsApi
|
|
27556
|
+
*/
|
|
27557
|
+
v1SuggestionsQueriesPost(xStoreid, xStoresecret, xUserId, xAnonId, xSessionId, querySuggestionsServiceQuerySuggestionsRequest, options) {
|
|
27558
|
+
return QuerySuggestionsApiFp(this.configuration).v1SuggestionsQueriesPost(xStoreid, xStoresecret, xUserId, xAnonId, xSessionId, querySuggestionsServiceQuerySuggestionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
27559
|
+
}
|
|
27445
27560
|
}
|
|
27446
27561
|
/**
|
|
27447
27562
|
* @export
|
|
@@ -38709,6 +38824,40 @@ export const TeamApiAxiosParamCreator = function (configuration) {
|
|
|
38709
38824
|
options: localVarRequestOptions,
|
|
38710
38825
|
};
|
|
38711
38826
|
}),
|
|
38827
|
+
/**
|
|
38828
|
+
* Accepts a team invitation using OAuth (Google/GitHub), creates user account if needed, links OAuth, and returns session token
|
|
38829
|
+
* @summary Accept invitation with OAuth (onboarding)
|
|
38830
|
+
* @param {string} token Invitation Token
|
|
38831
|
+
* @param {DataTypesAcceptInvitationWithOAuthRequest} dataTypesAcceptInvitationWithOAuthRequest OAuth details
|
|
38832
|
+
* @param {*} [options] Override http request option.
|
|
38833
|
+
* @throws {RequiredError}
|
|
38834
|
+
*/
|
|
38835
|
+
v1InvitationsTokenAcceptWithOauthPost: (token_1, dataTypesAcceptInvitationWithOAuthRequest_1, ...args_1) => __awaiter(this, [token_1, dataTypesAcceptInvitationWithOAuthRequest_1, ...args_1], void 0, function* (token, dataTypesAcceptInvitationWithOAuthRequest, options = {}) {
|
|
38836
|
+
// verify required parameter 'token' is not null or undefined
|
|
38837
|
+
assertParamExists('v1InvitationsTokenAcceptWithOauthPost', 'token', token);
|
|
38838
|
+
// verify required parameter 'dataTypesAcceptInvitationWithOAuthRequest' is not null or undefined
|
|
38839
|
+
assertParamExists('v1InvitationsTokenAcceptWithOauthPost', 'dataTypesAcceptInvitationWithOAuthRequest', dataTypesAcceptInvitationWithOAuthRequest);
|
|
38840
|
+
const localVarPath = `/v1/invitations/{token}/accept-with-oauth`
|
|
38841
|
+
.replace(`{${"token"}}`, encodeURIComponent(String(token)));
|
|
38842
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
38843
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
38844
|
+
let baseOptions;
|
|
38845
|
+
if (configuration) {
|
|
38846
|
+
baseOptions = configuration.baseOptions;
|
|
38847
|
+
}
|
|
38848
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
38849
|
+
const localVarHeaderParameter = {};
|
|
38850
|
+
const localVarQueryParameter = {};
|
|
38851
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
38852
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
38853
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
38854
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
38855
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesAcceptInvitationWithOAuthRequest, localVarRequestOptions, configuration);
|
|
38856
|
+
return {
|
|
38857
|
+
url: toPathString(localVarUrlObj),
|
|
38858
|
+
options: localVarRequestOptions,
|
|
38859
|
+
};
|
|
38860
|
+
}),
|
|
38712
38861
|
/**
|
|
38713
38862
|
* Accepts a team invitation, creates user account if needed, sets password, and returns session token
|
|
38714
38863
|
* @summary Accept invitation and set password (onboarding)
|
|
@@ -39234,6 +39383,23 @@ export const TeamApiFp = function (configuration) {
|
|
|
39234
39383
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
39235
39384
|
});
|
|
39236
39385
|
},
|
|
39386
|
+
/**
|
|
39387
|
+
* Accepts a team invitation using OAuth (Google/GitHub), creates user account if needed, links OAuth, and returns session token
|
|
39388
|
+
* @summary Accept invitation with OAuth (onboarding)
|
|
39389
|
+
* @param {string} token Invitation Token
|
|
39390
|
+
* @param {DataTypesAcceptInvitationWithOAuthRequest} dataTypesAcceptInvitationWithOAuthRequest OAuth details
|
|
39391
|
+
* @param {*} [options] Override http request option.
|
|
39392
|
+
* @throws {RequiredError}
|
|
39393
|
+
*/
|
|
39394
|
+
v1InvitationsTokenAcceptWithOauthPost(token, dataTypesAcceptInvitationWithOAuthRequest, options) {
|
|
39395
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39396
|
+
var _a, _b, _c;
|
|
39397
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.v1InvitationsTokenAcceptWithOauthPost(token, dataTypesAcceptInvitationWithOAuthRequest, options);
|
|
39398
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
39399
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamApi.v1InvitationsTokenAcceptWithOauthPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
39400
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
39401
|
+
});
|
|
39402
|
+
},
|
|
39237
39403
|
/**
|
|
39238
39404
|
* Accepts a team invitation, creates user account if needed, sets password, and returns session token
|
|
39239
39405
|
* @summary Accept invitation and set password (onboarding)
|
|
@@ -39517,6 +39683,17 @@ export const TeamApiFactory = function (configuration, basePath, axios) {
|
|
|
39517
39683
|
v1InvitationsTokenAcceptPost(token, options) {
|
|
39518
39684
|
return localVarFp.v1InvitationsTokenAcceptPost(token, options).then((request) => request(axios, basePath));
|
|
39519
39685
|
},
|
|
39686
|
+
/**
|
|
39687
|
+
* Accepts a team invitation using OAuth (Google/GitHub), creates user account if needed, links OAuth, and returns session token
|
|
39688
|
+
* @summary Accept invitation with OAuth (onboarding)
|
|
39689
|
+
* @param {string} token Invitation Token
|
|
39690
|
+
* @param {DataTypesAcceptInvitationWithOAuthRequest} dataTypesAcceptInvitationWithOAuthRequest OAuth details
|
|
39691
|
+
* @param {*} [options] Override http request option.
|
|
39692
|
+
* @throws {RequiredError}
|
|
39693
|
+
*/
|
|
39694
|
+
v1InvitationsTokenAcceptWithOauthPost(token, dataTypesAcceptInvitationWithOAuthRequest, options) {
|
|
39695
|
+
return localVarFp.v1InvitationsTokenAcceptWithOauthPost(token, dataTypesAcceptInvitationWithOAuthRequest, options).then((request) => request(axios, basePath));
|
|
39696
|
+
},
|
|
39520
39697
|
/**
|
|
39521
39698
|
* Accepts a team invitation, creates user account if needed, sets password, and returns session token
|
|
39522
39699
|
* @summary Accept invitation and set password (onboarding)
|
|
@@ -39728,6 +39905,18 @@ export class TeamApi extends BaseAPI {
|
|
|
39728
39905
|
v1InvitationsTokenAcceptPost(token, options) {
|
|
39729
39906
|
return TeamApiFp(this.configuration).v1InvitationsTokenAcceptPost(token, options).then((request) => request(this.axios, this.basePath));
|
|
39730
39907
|
}
|
|
39908
|
+
/**
|
|
39909
|
+
* Accepts a team invitation using OAuth (Google/GitHub), creates user account if needed, links OAuth, and returns session token
|
|
39910
|
+
* @summary Accept invitation with OAuth (onboarding)
|
|
39911
|
+
* @param {string} token Invitation Token
|
|
39912
|
+
* @param {DataTypesAcceptInvitationWithOAuthRequest} dataTypesAcceptInvitationWithOAuthRequest OAuth details
|
|
39913
|
+
* @param {*} [options] Override http request option.
|
|
39914
|
+
* @throws {RequiredError}
|
|
39915
|
+
* @memberof TeamApi
|
|
39916
|
+
*/
|
|
39917
|
+
v1InvitationsTokenAcceptWithOauthPost(token, dataTypesAcceptInvitationWithOAuthRequest, options) {
|
|
39918
|
+
return TeamApiFp(this.configuration).v1InvitationsTokenAcceptWithOauthPost(token, dataTypesAcceptInvitationWithOAuthRequest, options).then((request) => request(this.axios, this.basePath));
|
|
39919
|
+
}
|
|
39731
39920
|
/**
|
|
39732
39921
|
* Accepts a team invitation, creates user account if needed, sets password, and returns session token
|
|
39733
39922
|
* @summary Accept invitation and set password (onboarding)
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|