@foru-ms/sdk 2.1.4 → 2.1.6
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 +1 -1
- package/dist/cjs/BaseClient.d.ts +0 -4
- package/dist/cjs/BaseClient.js +2 -3
- package/dist/cjs/Client.d.ts +1 -1
- package/dist/cjs/Client.js +1 -1
- package/dist/cjs/api/errors/ConflictError.d.ts +6 -0
- package/dist/cjs/api/errors/ConflictError.js +54 -0
- package/dist/cjs/api/errors/ForbiddenError.d.ts +6 -0
- package/dist/cjs/api/errors/ForbiddenError.js +54 -0
- package/dist/cjs/api/errors/index.d.ts +2 -0
- package/dist/cjs/api/errors/index.js +2 -0
- package/dist/cjs/api/resources/auth/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/auth/client/Client.js +36 -46
- package/dist/cjs/api/resources/integrations/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/integrations/client/Client.js +36 -46
- package/dist/cjs/api/resources/notifications/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/notifications/client/Client.js +36 -46
- package/dist/cjs/api/resources/posts/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/posts/client/Client.js +85 -109
- package/dist/cjs/api/resources/privateMessages/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/privateMessages/client/Client.js +64 -82
- package/dist/cjs/api/resources/provisioning/client/Client.d.ts +97 -3
- package/dist/cjs/api/resources/provisioning/client/Client.js +472 -214
- package/dist/cjs/api/resources/provisioning/client/requests/AddDomainProvisioningRequest.d.ts +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/CreateInstance.d.ts +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/CreateWebhookProvisioningRequest.d.ts +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/DeleteInstance.d.ts +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/DeleteWebhookProvisioningRequest.d.ts +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/ExportDataProvisioningRequest.d.ts +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/GetBillingProvisioningRequest.d.ts +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/GetOwnershipProvisioningRequest.d.ts +13 -0
- package/dist/cjs/api/resources/provisioning/client/requests/GetOwnershipProvisioningRequest.js +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/GetUsageProvisioningRequest.d.ts +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/InviteTeamProvisioningRequest.d.ts +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/ListDomainsProvisioningRequest.d.ts +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/ListProvisioningRequest.d.ts +5 -1
- package/dist/cjs/api/resources/provisioning/client/requests/ListTeamProvisioningRequest.d.ts +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/ListWebhooksProvisioningRequest.d.ts +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/LoginProvisioningRequest.d.ts +13 -0
- package/dist/cjs/api/resources/provisioning/client/requests/LoginProvisioningRequest.js +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/RegenerateApiKeyProvisioningRequest.d.ts +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/RegisterProvisioningRequest.d.ts +15 -0
- package/dist/cjs/api/resources/provisioning/client/requests/RegisterProvisioningRequest.js +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/RemoveDomainProvisioningRequest.d.ts +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/RemoveTeamMemberProvisioningRequest.d.ts +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/TransferOwnershipProvisioningRequest.d.ts +15 -0
- package/dist/cjs/api/resources/provisioning/client/requests/TransferOwnershipProvisioningRequest.js +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/UpdateInstance.d.ts +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/UpdateWebhookProvisioningRequest.d.ts +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/UpgradeInstance.d.ts +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/provisioning/types/GetOwnershipProvisioningResponse.d.ts +4 -0
- package/dist/cjs/api/resources/provisioning/types/GetOwnershipProvisioningResponse.js +3 -0
- package/dist/cjs/api/resources/provisioning/types/LoginProvisioningResponse.d.ts +4 -0
- package/dist/cjs/api/resources/provisioning/types/LoginProvisioningResponse.js +3 -0
- package/dist/cjs/api/resources/provisioning/types/RegisterProvisioningResponse.d.ts +4 -0
- package/dist/cjs/api/resources/provisioning/types/RegisterProvisioningResponse.js +3 -0
- package/dist/cjs/api/resources/provisioning/types/TransferOwnershipProvisioningResponse.d.ts +16 -0
- package/dist/cjs/api/resources/provisioning/types/TransferOwnershipProvisioningResponse.js +3 -0
- package/dist/cjs/api/resources/provisioning/types/index.d.ts +4 -0
- package/dist/cjs/api/resources/provisioning/types/index.js +4 -0
- package/dist/cjs/api/resources/reports/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/reports/client/Client.js +36 -46
- package/dist/cjs/api/resources/roles/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/roles/client/Client.js +36 -46
- package/dist/cjs/api/resources/search/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/search/client/Client.js +8 -10
- package/dist/cjs/api/resources/ssOs/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/ssOs/client/Client.js +36 -46
- package/dist/cjs/api/resources/tags/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/tags/client/Client.js +57 -73
- package/dist/cjs/api/resources/threads/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/threads/client/Client.js +127 -163
- package/dist/cjs/api/resources/users/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/users/client/Client.js +78 -100
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/webhooks/client/Client.js +57 -73
- package/dist/cjs/api/types/ConflictErrorBody.d.ts +13 -0
- package/dist/cjs/api/types/ConflictErrorBody.js +3 -0
- package/dist/cjs/api/types/OwnershipInfo.d.ts +18 -0
- package/dist/cjs/api/types/OwnershipInfo.js +3 -0
- package/dist/cjs/api/types/ProvisioningAuthResponse.d.ts +5 -0
- package/dist/cjs/api/types/ProvisioningAuthResponse.js +3 -0
- package/dist/cjs/api/types/index.d.ts +3 -0
- package/dist/cjs/api/types/index.js +3 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +0 -4
- package/dist/esm/BaseClient.mjs +2 -3
- package/dist/esm/Client.d.mts +1 -1
- package/dist/esm/Client.mjs +1 -1
- package/dist/esm/api/errors/ConflictError.d.mts +6 -0
- package/dist/esm/api/errors/ConflictError.mjs +17 -0
- package/dist/esm/api/errors/ForbiddenError.d.mts +6 -0
- package/dist/esm/api/errors/ForbiddenError.mjs +17 -0
- package/dist/esm/api/errors/index.d.mts +2 -0
- package/dist/esm/api/errors/index.mjs +2 -0
- package/dist/esm/api/resources/auth/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/auth/client/Client.mjs +37 -47
- package/dist/esm/api/resources/integrations/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/integrations/client/Client.mjs +37 -47
- package/dist/esm/api/resources/notifications/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/notifications/client/Client.mjs +37 -47
- package/dist/esm/api/resources/posts/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/posts/client/Client.mjs +86 -110
- package/dist/esm/api/resources/privateMessages/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/privateMessages/client/Client.mjs +65 -83
- package/dist/esm/api/resources/provisioning/client/Client.d.mts +97 -3
- package/dist/esm/api/resources/provisioning/client/Client.mjs +472 -214
- package/dist/esm/api/resources/provisioning/client/requests/AddDomainProvisioningRequest.d.mts +3 -0
- package/dist/esm/api/resources/provisioning/client/requests/CreateInstance.d.mts +3 -0
- package/dist/esm/api/resources/provisioning/client/requests/CreateWebhookProvisioningRequest.d.mts +3 -0
- package/dist/esm/api/resources/provisioning/client/requests/DeleteInstance.d.mts +3 -0
- package/dist/esm/api/resources/provisioning/client/requests/DeleteWebhookProvisioningRequest.d.mts +3 -0
- package/dist/esm/api/resources/provisioning/client/requests/ExportDataProvisioningRequest.d.mts +3 -0
- package/dist/esm/api/resources/provisioning/client/requests/GetBillingProvisioningRequest.d.mts +3 -0
- package/dist/esm/api/resources/provisioning/client/requests/GetOwnershipProvisioningRequest.d.mts +13 -0
- package/dist/esm/api/resources/provisioning/client/requests/GetOwnershipProvisioningRequest.mjs +2 -0
- package/dist/esm/api/resources/provisioning/client/requests/GetUsageProvisioningRequest.d.mts +3 -0
- package/dist/esm/api/resources/provisioning/client/requests/InviteTeamProvisioningRequest.d.mts +3 -0
- package/dist/esm/api/resources/provisioning/client/requests/ListDomainsProvisioningRequest.d.mts +3 -0
- package/dist/esm/api/resources/provisioning/client/requests/ListProvisioningRequest.d.mts +5 -1
- package/dist/esm/api/resources/provisioning/client/requests/ListTeamProvisioningRequest.d.mts +3 -0
- package/dist/esm/api/resources/provisioning/client/requests/ListWebhooksProvisioningRequest.d.mts +3 -0
- package/dist/esm/api/resources/provisioning/client/requests/LoginProvisioningRequest.d.mts +13 -0
- package/dist/esm/api/resources/provisioning/client/requests/LoginProvisioningRequest.mjs +2 -0
- package/dist/esm/api/resources/provisioning/client/requests/RegenerateApiKeyProvisioningRequest.d.mts +3 -0
- package/dist/esm/api/resources/provisioning/client/requests/RegisterProvisioningRequest.d.mts +15 -0
- package/dist/esm/api/resources/provisioning/client/requests/RegisterProvisioningRequest.mjs +2 -0
- package/dist/esm/api/resources/provisioning/client/requests/RemoveDomainProvisioningRequest.d.mts +3 -0
- package/dist/esm/api/resources/provisioning/client/requests/RemoveTeamMemberProvisioningRequest.d.mts +3 -0
- package/dist/esm/api/resources/provisioning/client/requests/TransferOwnershipProvisioningRequest.d.mts +15 -0
- package/dist/esm/api/resources/provisioning/client/requests/TransferOwnershipProvisioningRequest.mjs +2 -0
- package/dist/esm/api/resources/provisioning/client/requests/UpdateInstance.d.mts +3 -0
- package/dist/esm/api/resources/provisioning/client/requests/UpdateWebhookProvisioningRequest.d.mts +3 -0
- package/dist/esm/api/resources/provisioning/client/requests/UpgradeInstance.d.mts +3 -0
- package/dist/esm/api/resources/provisioning/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/provisioning/types/GetOwnershipProvisioningResponse.d.mts +4 -0
- package/dist/esm/api/resources/provisioning/types/GetOwnershipProvisioningResponse.mjs +2 -0
- package/dist/esm/api/resources/provisioning/types/LoginProvisioningResponse.d.mts +4 -0
- package/dist/esm/api/resources/provisioning/types/LoginProvisioningResponse.mjs +2 -0
- package/dist/esm/api/resources/provisioning/types/RegisterProvisioningResponse.d.mts +4 -0
- package/dist/esm/api/resources/provisioning/types/RegisterProvisioningResponse.mjs +2 -0
- package/dist/esm/api/resources/provisioning/types/TransferOwnershipProvisioningResponse.d.mts +16 -0
- package/dist/esm/api/resources/provisioning/types/TransferOwnershipProvisioningResponse.mjs +2 -0
- package/dist/esm/api/resources/provisioning/types/index.d.mts +4 -0
- package/dist/esm/api/resources/provisioning/types/index.mjs +4 -0
- package/dist/esm/api/resources/reports/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/reports/client/Client.mjs +37 -47
- package/dist/esm/api/resources/roles/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/roles/client/Client.mjs +37 -47
- package/dist/esm/api/resources/search/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/search/client/Client.mjs +9 -11
- package/dist/esm/api/resources/ssOs/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/ssOs/client/Client.mjs +37 -47
- package/dist/esm/api/resources/tags/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/tags/client/Client.mjs +58 -74
- package/dist/esm/api/resources/threads/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/threads/client/Client.mjs +128 -164
- package/dist/esm/api/resources/users/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/users/client/Client.mjs +79 -101
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/webhooks/client/Client.mjs +58 -74
- package/dist/esm/api/types/ConflictErrorBody.d.mts +13 -0
- package/dist/esm/api/types/ConflictErrorBody.mjs +2 -0
- package/dist/esm/api/types/OwnershipInfo.d.mts +18 -0
- package/dist/esm/api/types/OwnershipInfo.mjs +2 -0
- package/dist/esm/api/types/ProvisioningAuthResponse.d.mts +5 -0
- package/dist/esm/api/types/ProvisioningAuthResponse.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +3 -0
- package/dist/esm/api/types/index.mjs +3 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +286 -1
|
@@ -20,7 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
20
20
|
return t;
|
|
21
21
|
};
|
|
22
22
|
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
23
|
-
import { mergeHeaders
|
|
23
|
+
import { mergeHeaders } from "../../../../core/headers.mjs";
|
|
24
24
|
import * as core from "../../../../core/index.mjs";
|
|
25
25
|
import * as environments from "../../../../environments.mjs";
|
|
26
26
|
import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
|
|
@@ -30,7 +30,7 @@ import * as Forum from "../../../index.mjs";
|
|
|
30
30
|
* Operations for private messages
|
|
31
31
|
*/
|
|
32
32
|
export class PrivateMessagesClient {
|
|
33
|
-
constructor(options) {
|
|
33
|
+
constructor(options = {}) {
|
|
34
34
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
@@ -52,7 +52,7 @@ export class PrivateMessagesClient {
|
|
|
52
52
|
}
|
|
53
53
|
__list() {
|
|
54
54
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
55
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
55
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
56
56
|
const { limit, cursor, query } = request;
|
|
57
57
|
const _queryParams = {
|
|
58
58
|
limit,
|
|
@@ -60,18 +60,16 @@ export class PrivateMessagesClient {
|
|
|
60
60
|
query,
|
|
61
61
|
};
|
|
62
62
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
63
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
67
|
-
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ForumEnvironment.Production, "private-messages"),
|
|
63
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
64
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
65
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ForumEnvironment.Production, "private-messages"),
|
|
68
66
|
method: "GET",
|
|
69
67
|
headers: _headers,
|
|
70
68
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
71
|
-
timeoutMs: ((
|
|
72
|
-
maxRetries: (
|
|
69
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
70
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
73
71
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
74
|
-
fetchFn: (
|
|
72
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
75
73
|
logging: this._options.logging,
|
|
76
74
|
});
|
|
77
75
|
if (_response.ok) {
|
|
@@ -121,23 +119,21 @@ export class PrivateMessagesClient {
|
|
|
121
119
|
}
|
|
122
120
|
__create(request, requestOptions) {
|
|
123
121
|
return __awaiter(this, void 0, void 0, function* () {
|
|
124
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
122
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
125
123
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
126
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
130
|
-
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ForumEnvironment.Production, "private-messages"),
|
|
124
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
125
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
126
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ForumEnvironment.Production, "private-messages"),
|
|
131
127
|
method: "POST",
|
|
132
128
|
headers: _headers,
|
|
133
129
|
contentType: "application/json",
|
|
134
130
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
135
131
|
requestType: "json",
|
|
136
132
|
body: request,
|
|
137
|
-
timeoutMs: ((
|
|
138
|
-
maxRetries: (
|
|
133
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
134
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
139
135
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
140
|
-
fetchFn: (
|
|
136
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
141
137
|
logging: this._options.logging,
|
|
142
138
|
});
|
|
143
139
|
if (_response.ok) {
|
|
@@ -188,21 +184,19 @@ export class PrivateMessagesClient {
|
|
|
188
184
|
}
|
|
189
185
|
__retrieve(request, requestOptions) {
|
|
190
186
|
return __awaiter(this, void 0, void 0, function* () {
|
|
191
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
187
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
192
188
|
const { id } = request;
|
|
193
189
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
194
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
198
|
-
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ForumEnvironment.Production, `private-messages/${core.url.encodePathParam(id)}`),
|
|
190
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
191
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
192
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ForumEnvironment.Production, `private-messages/${core.url.encodePathParam(id)}`),
|
|
199
193
|
method: "GET",
|
|
200
194
|
headers: _headers,
|
|
201
195
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
202
|
-
timeoutMs: ((
|
|
203
|
-
maxRetries: (
|
|
196
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
197
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
204
198
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
205
|
-
fetchFn: (
|
|
199
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
206
200
|
logging: this._options.logging,
|
|
207
201
|
});
|
|
208
202
|
if (_response.ok) {
|
|
@@ -253,21 +247,19 @@ export class PrivateMessagesClient {
|
|
|
253
247
|
}
|
|
254
248
|
__delete(request, requestOptions) {
|
|
255
249
|
return __awaiter(this, void 0, void 0, function* () {
|
|
256
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
250
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
257
251
|
const { id } = request;
|
|
258
252
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
259
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
263
|
-
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ForumEnvironment.Production, `private-messages/${core.url.encodePathParam(id)}`),
|
|
253
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
254
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
255
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ForumEnvironment.Production, `private-messages/${core.url.encodePathParam(id)}`),
|
|
264
256
|
method: "DELETE",
|
|
265
257
|
headers: _headers,
|
|
266
258
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
267
|
-
timeoutMs: ((
|
|
268
|
-
maxRetries: (
|
|
259
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
260
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
269
261
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
270
|
-
fetchFn: (
|
|
262
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
271
263
|
logging: this._options.logging,
|
|
272
264
|
});
|
|
273
265
|
if (_response.ok) {
|
|
@@ -319,24 +311,22 @@ export class PrivateMessagesClient {
|
|
|
319
311
|
}
|
|
320
312
|
__update(request, requestOptions) {
|
|
321
313
|
return __awaiter(this, void 0, void 0, function* () {
|
|
322
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
314
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
323
315
|
const { id } = request, _body = __rest(request, ["id"]);
|
|
324
316
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
325
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
329
|
-
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ForumEnvironment.Production, `private-messages/${core.url.encodePathParam(id)}`),
|
|
317
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
318
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
319
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ForumEnvironment.Production, `private-messages/${core.url.encodePathParam(id)}`),
|
|
330
320
|
method: "PATCH",
|
|
331
321
|
headers: _headers,
|
|
332
322
|
contentType: "application/json",
|
|
333
323
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
334
324
|
requestType: "json",
|
|
335
325
|
body: _body,
|
|
336
|
-
timeoutMs: ((
|
|
337
|
-
maxRetries: (
|
|
326
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
327
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
338
328
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
339
|
-
fetchFn: (
|
|
329
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
340
330
|
logging: this._options.logging,
|
|
341
331
|
});
|
|
342
332
|
if (_response.ok) {
|
|
@@ -388,25 +378,23 @@ export class PrivateMessagesClient {
|
|
|
388
378
|
}
|
|
389
379
|
__listReplies(request, requestOptions) {
|
|
390
380
|
return __awaiter(this, void 0, void 0, function* () {
|
|
391
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
381
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
392
382
|
const { id, cursor, limit } = request;
|
|
393
383
|
const _queryParams = {
|
|
394
384
|
cursor,
|
|
395
385
|
limit,
|
|
396
386
|
};
|
|
397
387
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
398
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
402
|
-
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ForumEnvironment.Production, `private-messages/${core.url.encodePathParam(id)}/replies`),
|
|
388
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
389
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
390
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ForumEnvironment.Production, `private-messages/${core.url.encodePathParam(id)}/replies`),
|
|
403
391
|
method: "GET",
|
|
404
392
|
headers: _headers,
|
|
405
393
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
406
|
-
timeoutMs: ((
|
|
407
|
-
maxRetries: (
|
|
394
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
395
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
408
396
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
409
|
-
fetchFn: (
|
|
397
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
410
398
|
logging: this._options.logging,
|
|
411
399
|
});
|
|
412
400
|
if (_response.ok) {
|
|
@@ -460,24 +448,22 @@ export class PrivateMessagesClient {
|
|
|
460
448
|
}
|
|
461
449
|
__createReply(request, requestOptions) {
|
|
462
450
|
return __awaiter(this, void 0, void 0, function* () {
|
|
463
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
451
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
464
452
|
const { id } = request, _body = __rest(request, ["id"]);
|
|
465
453
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
466
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
470
|
-
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ForumEnvironment.Production, `private-messages/${core.url.encodePathParam(id)}/replies`),
|
|
454
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
455
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
456
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ForumEnvironment.Production, `private-messages/${core.url.encodePathParam(id)}/replies`),
|
|
471
457
|
method: "POST",
|
|
472
458
|
headers: _headers,
|
|
473
459
|
contentType: "application/json",
|
|
474
460
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
475
461
|
requestType: "json",
|
|
476
462
|
body: _body,
|
|
477
|
-
timeoutMs: ((
|
|
478
|
-
maxRetries: (
|
|
463
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
464
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
479
465
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
480
|
-
fetchFn: (
|
|
466
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
481
467
|
logging: this._options.logging,
|
|
482
468
|
});
|
|
483
469
|
if (_response.ok) {
|
|
@@ -526,21 +512,19 @@ export class PrivateMessagesClient {
|
|
|
526
512
|
}
|
|
527
513
|
__retrieveReply(request, requestOptions) {
|
|
528
514
|
return __awaiter(this, void 0, void 0, function* () {
|
|
529
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
515
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
530
516
|
const { id, subId } = request;
|
|
531
517
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
532
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
536
|
-
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ForumEnvironment.Production, `private-messages/${core.url.encodePathParam(id)}/replies/${core.url.encodePathParam(subId)}`),
|
|
518
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
519
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
520
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ForumEnvironment.Production, `private-messages/${core.url.encodePathParam(id)}/replies/${core.url.encodePathParam(subId)}`),
|
|
537
521
|
method: "GET",
|
|
538
522
|
headers: _headers,
|
|
539
523
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
540
|
-
timeoutMs: ((
|
|
541
|
-
maxRetries: (
|
|
524
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
525
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
542
526
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
543
|
-
fetchFn: (
|
|
527
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
544
528
|
logging: this._options.logging,
|
|
545
529
|
});
|
|
546
530
|
if (_response.ok) {
|
|
@@ -590,21 +574,19 @@ export class PrivateMessagesClient {
|
|
|
590
574
|
}
|
|
591
575
|
__deleteReply(request, requestOptions) {
|
|
592
576
|
return __awaiter(this, void 0, void 0, function* () {
|
|
593
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
577
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
594
578
|
const { id, subId } = request;
|
|
595
579
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
596
|
-
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
600
|
-
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ForumEnvironment.Production, `private-messages/${core.url.encodePathParam(id)}/replies/${core.url.encodePathParam(subId)}`),
|
|
580
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
581
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
582
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ForumEnvironment.Production, `private-messages/${core.url.encodePathParam(id)}/replies/${core.url.encodePathParam(subId)}`),
|
|
601
583
|
method: "DELETE",
|
|
602
584
|
headers: _headers,
|
|
603
585
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
604
|
-
timeoutMs: ((
|
|
605
|
-
maxRetries: (
|
|
586
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
587
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
606
588
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
607
|
-
fetchFn: (
|
|
589
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
608
590
|
logging: this._options.logging,
|
|
609
591
|
});
|
|
610
592
|
if (_response.ok) {
|
|
@@ -12,7 +12,7 @@ export declare namespace ProvisioningClient {
|
|
|
12
12
|
*/
|
|
13
13
|
export declare class ProvisioningClient {
|
|
14
14
|
protected readonly _options: NormalizedClientOptionsWithAuth<ProvisioningClient.Options>;
|
|
15
|
-
constructor(options
|
|
15
|
+
constructor(options?: ProvisioningClient.Options);
|
|
16
16
|
/**
|
|
17
17
|
* Retrieve all instances owned by the authenticated user. Use the `handle` query parameter to get a single instance with its API key.
|
|
18
18
|
*
|
|
@@ -24,9 +24,11 @@ export declare class ProvisioningClient {
|
|
|
24
24
|
* @throws {@link Forum.InternalServerError}
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
|
-
* await client.provisioning.list(
|
|
27
|
+
* await client.provisioning.list({
|
|
28
|
+
* "x-provisioning-key": "x-provisioning-key"
|
|
29
|
+
* })
|
|
28
30
|
*/
|
|
29
|
-
list(request
|
|
31
|
+
list(request: Forum.ListProvisioningRequest, requestOptions?: ProvisioningClient.RequestOptions): core.HttpResponsePromise<Forum.ListProvisioningResponse>;
|
|
30
32
|
private __list;
|
|
31
33
|
/**
|
|
32
34
|
* Create a new forum instance. Returns the instance details including the API key for accessing the forum API.
|
|
@@ -40,6 +42,7 @@ export declare class ProvisioningClient {
|
|
|
40
42
|
*
|
|
41
43
|
* @example
|
|
42
44
|
* await client.provisioning.create({
|
|
45
|
+
* "x-provisioning-key": "x-provisioning-key",
|
|
43
46
|
* name: "name",
|
|
44
47
|
* handle: "handle"
|
|
45
48
|
* })
|
|
@@ -59,6 +62,7 @@ export declare class ProvisioningClient {
|
|
|
59
62
|
*
|
|
60
63
|
* @example
|
|
61
64
|
* await client.provisioning.update({
|
|
65
|
+
* "x-provisioning-key": "x-provisioning-key",
|
|
62
66
|
* handle: "handle"
|
|
63
67
|
* })
|
|
64
68
|
*/
|
|
@@ -77,6 +81,7 @@ export declare class ProvisioningClient {
|
|
|
77
81
|
*
|
|
78
82
|
* @example
|
|
79
83
|
* await client.provisioning.delete({
|
|
84
|
+
* "x-provisioning-key": "x-provisioning-key",
|
|
80
85
|
* handle: "handle"
|
|
81
86
|
* })
|
|
82
87
|
*/
|
|
@@ -94,6 +99,7 @@ export declare class ProvisioningClient {
|
|
|
94
99
|
*
|
|
95
100
|
* @example
|
|
96
101
|
* await client.provisioning.getBilling({
|
|
102
|
+
* "x-provisioning-key": "x-provisioning-key",
|
|
97
103
|
* handle: "handle"
|
|
98
104
|
* })
|
|
99
105
|
*/
|
|
@@ -112,6 +118,7 @@ export declare class ProvisioningClient {
|
|
|
112
118
|
*
|
|
113
119
|
* @example
|
|
114
120
|
* await client.provisioning.changePlan({
|
|
121
|
+
* "x-provisioning-key": "x-provisioning-key",
|
|
115
122
|
* handle: "handle",
|
|
116
123
|
* plan: "FREE"
|
|
117
124
|
* })
|
|
@@ -130,6 +137,7 @@ export declare class ProvisioningClient {
|
|
|
130
137
|
*
|
|
131
138
|
* @example
|
|
132
139
|
* await client.provisioning.regenerateApiKey({
|
|
140
|
+
* "x-provisioning-key": "x-provisioning-key",
|
|
133
141
|
* handle: "handle"
|
|
134
142
|
* })
|
|
135
143
|
*/
|
|
@@ -147,6 +155,7 @@ export declare class ProvisioningClient {
|
|
|
147
155
|
*
|
|
148
156
|
* @example
|
|
149
157
|
* await client.provisioning.getUsage({
|
|
158
|
+
* "x-provisioning-key": "x-provisioning-key",
|
|
150
159
|
* handle: "handle"
|
|
151
160
|
* })
|
|
152
161
|
*/
|
|
@@ -164,6 +173,7 @@ export declare class ProvisioningClient {
|
|
|
164
173
|
*
|
|
165
174
|
* @example
|
|
166
175
|
* await client.provisioning.listTeam({
|
|
176
|
+
* "x-provisioning-key": "x-provisioning-key",
|
|
167
177
|
* handle: "handle"
|
|
168
178
|
* })
|
|
169
179
|
*/
|
|
@@ -182,6 +192,7 @@ export declare class ProvisioningClient {
|
|
|
182
192
|
*
|
|
183
193
|
* @example
|
|
184
194
|
* await client.provisioning.inviteTeam({
|
|
195
|
+
* "x-provisioning-key": "x-provisioning-key",
|
|
185
196
|
* handle: "handle",
|
|
186
197
|
* members: [{
|
|
187
198
|
* email: "email"
|
|
@@ -203,6 +214,7 @@ export declare class ProvisioningClient {
|
|
|
203
214
|
*
|
|
204
215
|
* @example
|
|
205
216
|
* await client.provisioning.removeTeamMember({
|
|
217
|
+
* "x-provisioning-key": "x-provisioning-key",
|
|
206
218
|
* handle: "handle",
|
|
207
219
|
* email: "email"
|
|
208
220
|
* })
|
|
@@ -221,6 +233,7 @@ export declare class ProvisioningClient {
|
|
|
221
233
|
*
|
|
222
234
|
* @example
|
|
223
235
|
* await client.provisioning.listDomains({
|
|
236
|
+
* "x-provisioning-key": "x-provisioning-key",
|
|
224
237
|
* handle: "handle"
|
|
225
238
|
* })
|
|
226
239
|
*/
|
|
@@ -239,6 +252,7 @@ export declare class ProvisioningClient {
|
|
|
239
252
|
*
|
|
240
253
|
* @example
|
|
241
254
|
* await client.provisioning.addDomain({
|
|
255
|
+
* "x-provisioning-key": "x-provisioning-key",
|
|
242
256
|
* handle: "handle",
|
|
243
257
|
* name: "name"
|
|
244
258
|
* })
|
|
@@ -258,6 +272,7 @@ export declare class ProvisioningClient {
|
|
|
258
272
|
*
|
|
259
273
|
* @example
|
|
260
274
|
* await client.provisioning.removeDomain({
|
|
275
|
+
* "x-provisioning-key": "x-provisioning-key",
|
|
261
276
|
* handle: "handle",
|
|
262
277
|
* name: "name"
|
|
263
278
|
* })
|
|
@@ -276,6 +291,7 @@ export declare class ProvisioningClient {
|
|
|
276
291
|
*
|
|
277
292
|
* @example
|
|
278
293
|
* await client.provisioning.exportData({
|
|
294
|
+
* "x-provisioning-key": "x-provisioning-key",
|
|
279
295
|
* handle: "handle"
|
|
280
296
|
* })
|
|
281
297
|
*/
|
|
@@ -293,6 +309,7 @@ export declare class ProvisioningClient {
|
|
|
293
309
|
*
|
|
294
310
|
* @example
|
|
295
311
|
* await client.provisioning.listWebhooks({
|
|
312
|
+
* "x-provisioning-key": "x-provisioning-key",
|
|
296
313
|
* handle: "handle"
|
|
297
314
|
* })
|
|
298
315
|
*/
|
|
@@ -311,6 +328,7 @@ export declare class ProvisioningClient {
|
|
|
311
328
|
*
|
|
312
329
|
* @example
|
|
313
330
|
* await client.provisioning.createWebhook({
|
|
331
|
+
* "x-provisioning-key": "x-provisioning-key",
|
|
314
332
|
* handle: "handle",
|
|
315
333
|
* url: "url",
|
|
316
334
|
* events: ["events"]
|
|
@@ -331,6 +349,7 @@ export declare class ProvisioningClient {
|
|
|
331
349
|
*
|
|
332
350
|
* @example
|
|
333
351
|
* await client.provisioning.updateWebhook({
|
|
352
|
+
* "x-provisioning-key": "x-provisioning-key",
|
|
334
353
|
* handle: "handle",
|
|
335
354
|
* webhookId: "webhookId"
|
|
336
355
|
* })
|
|
@@ -350,10 +369,85 @@ export declare class ProvisioningClient {
|
|
|
350
369
|
*
|
|
351
370
|
* @example
|
|
352
371
|
* await client.provisioning.deleteWebhook({
|
|
372
|
+
* "x-provisioning-key": "x-provisioning-key",
|
|
353
373
|
* handle: "handle",
|
|
354
374
|
* webhookId: "webhookId"
|
|
355
375
|
* })
|
|
356
376
|
*/
|
|
357
377
|
deleteWebhook(request: Forum.DeleteWebhookProvisioningRequest, requestOptions?: ProvisioningClient.RequestOptions): core.HttpResponsePromise<Forum.DeleteWebhookProvisioningResponse>;
|
|
358
378
|
private __deleteWebhook;
|
|
379
|
+
/**
|
|
380
|
+
* Retrieve owner and creator information for an instance.
|
|
381
|
+
*
|
|
382
|
+
* @param {Forum.GetOwnershipProvisioningRequest} request
|
|
383
|
+
* @param {ProvisioningClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
384
|
+
*
|
|
385
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
386
|
+
* @throws {@link Forum.ForbiddenError}
|
|
387
|
+
* @throws {@link Forum.NotFoundError}
|
|
388
|
+
* @throws {@link Forum.InternalServerError}
|
|
389
|
+
*
|
|
390
|
+
* @example
|
|
391
|
+
* await client.provisioning.getOwnership({
|
|
392
|
+
* "x-provisioning-key": "x-provisioning-key",
|
|
393
|
+
* handle: "handle"
|
|
394
|
+
* })
|
|
395
|
+
*/
|
|
396
|
+
getOwnership(request: Forum.GetOwnershipProvisioningRequest, requestOptions?: ProvisioningClient.RequestOptions): core.HttpResponsePromise<Forum.GetOwnershipProvisioningResponse>;
|
|
397
|
+
private __getOwnership;
|
|
398
|
+
/**
|
|
399
|
+
* Transfer instance ownership to another user. Only the current owner can transfer ownership.
|
|
400
|
+
*
|
|
401
|
+
* @param {Forum.TransferOwnershipProvisioningRequest} request
|
|
402
|
+
* @param {ProvisioningClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
403
|
+
*
|
|
404
|
+
* @throws {@link Forum.BadRequestError}
|
|
405
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
406
|
+
* @throws {@link Forum.NotFoundError}
|
|
407
|
+
* @throws {@link Forum.InternalServerError}
|
|
408
|
+
*
|
|
409
|
+
* @example
|
|
410
|
+
* await client.provisioning.transferOwnership({
|
|
411
|
+
* "x-provisioning-key": "x-provisioning-key",
|
|
412
|
+
* handle: "handle",
|
|
413
|
+
* newOwnerEmail: "newOwnerEmail"
|
|
414
|
+
* })
|
|
415
|
+
*/
|
|
416
|
+
transferOwnership(request: Forum.TransferOwnershipProvisioningRequest, requestOptions?: ProvisioningClient.RequestOptions): core.HttpResponsePromise<Forum.TransferOwnershipProvisioningResponse>;
|
|
417
|
+
private __transferOwnership;
|
|
418
|
+
/**
|
|
419
|
+
* Create a new account and receive a provisioning key for API access. Use this key to create and manage instances.
|
|
420
|
+
*
|
|
421
|
+
* @param {Forum.RegisterProvisioningRequest} request
|
|
422
|
+
* @param {ProvisioningClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
423
|
+
*
|
|
424
|
+
* @throws {@link Forum.BadRequestError}
|
|
425
|
+
* @throws {@link Forum.ConflictError}
|
|
426
|
+
* @throws {@link Forum.InternalServerError}
|
|
427
|
+
*
|
|
428
|
+
* @example
|
|
429
|
+
* await client.provisioning.register({
|
|
430
|
+
* email: "email",
|
|
431
|
+
* password: "password"
|
|
432
|
+
* })
|
|
433
|
+
*/
|
|
434
|
+
register(request: Forum.RegisterProvisioningRequest, requestOptions?: ProvisioningClient.RequestOptions): core.HttpResponsePromise<Forum.RegisterProvisioningResponse>;
|
|
435
|
+
private __register;
|
|
436
|
+
/**
|
|
437
|
+
* Login with email and password to retrieve your provisioning key.
|
|
438
|
+
*
|
|
439
|
+
* @param {Forum.LoginProvisioningRequest} request
|
|
440
|
+
* @param {ProvisioningClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
441
|
+
*
|
|
442
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
443
|
+
* @throws {@link Forum.InternalServerError}
|
|
444
|
+
*
|
|
445
|
+
* @example
|
|
446
|
+
* await client.provisioning.login({
|
|
447
|
+
* email: "email",
|
|
448
|
+
* password: "password"
|
|
449
|
+
* })
|
|
450
|
+
*/
|
|
451
|
+
login(request: Forum.LoginProvisioningRequest, requestOptions?: ProvisioningClient.RequestOptions): core.HttpResponsePromise<Forum.LoginProvisioningResponse>;
|
|
452
|
+
private __login;
|
|
359
453
|
}
|