@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
|
@@ -66,7 +66,7 @@ const Forum = __importStar(require("../../../index.js"));
|
|
|
66
66
|
* Operations for private messages
|
|
67
67
|
*/
|
|
68
68
|
class PrivateMessagesClient {
|
|
69
|
-
constructor(options) {
|
|
69
|
+
constructor(options = {}) {
|
|
70
70
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
@@ -88,7 +88,7 @@ class PrivateMessagesClient {
|
|
|
88
88
|
}
|
|
89
89
|
__list() {
|
|
90
90
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
91
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
91
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
92
92
|
const { limit, cursor, query } = request;
|
|
93
93
|
const _queryParams = {
|
|
94
94
|
limit,
|
|
@@ -96,18 +96,16 @@ class PrivateMessagesClient {
|
|
|
96
96
|
query,
|
|
97
97
|
};
|
|
98
98
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
99
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
103
|
-
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"),
|
|
99
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
100
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
101
|
+
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"),
|
|
104
102
|
method: "GET",
|
|
105
103
|
headers: _headers,
|
|
106
104
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
107
|
-
timeoutMs: ((
|
|
108
|
-
maxRetries: (
|
|
105
|
+
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,
|
|
106
|
+
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,
|
|
109
107
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
110
|
-
fetchFn: (
|
|
108
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
111
109
|
logging: this._options.logging,
|
|
112
110
|
});
|
|
113
111
|
if (_response.ok) {
|
|
@@ -157,23 +155,21 @@ class PrivateMessagesClient {
|
|
|
157
155
|
}
|
|
158
156
|
__create(request, requestOptions) {
|
|
159
157
|
return __awaiter(this, void 0, void 0, function* () {
|
|
160
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
158
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
161
159
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
162
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
166
|
-
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"),
|
|
160
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
161
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
162
|
+
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"),
|
|
167
163
|
method: "POST",
|
|
168
164
|
headers: _headers,
|
|
169
165
|
contentType: "application/json",
|
|
170
166
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
171
167
|
requestType: "json",
|
|
172
168
|
body: request,
|
|
173
|
-
timeoutMs: ((
|
|
174
|
-
maxRetries: (
|
|
169
|
+
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,
|
|
170
|
+
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,
|
|
175
171
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
176
|
-
fetchFn: (
|
|
172
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
177
173
|
logging: this._options.logging,
|
|
178
174
|
});
|
|
179
175
|
if (_response.ok) {
|
|
@@ -224,21 +220,19 @@ class PrivateMessagesClient {
|
|
|
224
220
|
}
|
|
225
221
|
__retrieve(request, requestOptions) {
|
|
226
222
|
return __awaiter(this, void 0, void 0, function* () {
|
|
227
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
223
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
228
224
|
const { id } = request;
|
|
229
225
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
230
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
234
|
-
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)}`),
|
|
226
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
227
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
228
|
+
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)}`),
|
|
235
229
|
method: "GET",
|
|
236
230
|
headers: _headers,
|
|
237
231
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
238
|
-
timeoutMs: ((
|
|
239
|
-
maxRetries: (
|
|
232
|
+
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,
|
|
233
|
+
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,
|
|
240
234
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
241
|
-
fetchFn: (
|
|
235
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
242
236
|
logging: this._options.logging,
|
|
243
237
|
});
|
|
244
238
|
if (_response.ok) {
|
|
@@ -289,21 +283,19 @@ class PrivateMessagesClient {
|
|
|
289
283
|
}
|
|
290
284
|
__delete(request, requestOptions) {
|
|
291
285
|
return __awaiter(this, void 0, void 0, function* () {
|
|
292
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
286
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
293
287
|
const { id } = request;
|
|
294
288
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
295
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
299
|
-
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)}`),
|
|
289
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
290
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
291
|
+
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)}`),
|
|
300
292
|
method: "DELETE",
|
|
301
293
|
headers: _headers,
|
|
302
294
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
303
|
-
timeoutMs: ((
|
|
304
|
-
maxRetries: (
|
|
295
|
+
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,
|
|
296
|
+
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,
|
|
305
297
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
306
|
-
fetchFn: (
|
|
298
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
307
299
|
logging: this._options.logging,
|
|
308
300
|
});
|
|
309
301
|
if (_response.ok) {
|
|
@@ -355,24 +347,22 @@ class PrivateMessagesClient {
|
|
|
355
347
|
}
|
|
356
348
|
__update(request, requestOptions) {
|
|
357
349
|
return __awaiter(this, void 0, void 0, function* () {
|
|
358
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
350
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
359
351
|
const { id } = request, _body = __rest(request, ["id"]);
|
|
360
352
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
361
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
365
|
-
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)}`),
|
|
353
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
354
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
355
|
+
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)}`),
|
|
366
356
|
method: "PATCH",
|
|
367
357
|
headers: _headers,
|
|
368
358
|
contentType: "application/json",
|
|
369
359
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
370
360
|
requestType: "json",
|
|
371
361
|
body: _body,
|
|
372
|
-
timeoutMs: ((
|
|
373
|
-
maxRetries: (
|
|
362
|
+
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,
|
|
363
|
+
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,
|
|
374
364
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
375
|
-
fetchFn: (
|
|
365
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
376
366
|
logging: this._options.logging,
|
|
377
367
|
});
|
|
378
368
|
if (_response.ok) {
|
|
@@ -424,25 +414,23 @@ class PrivateMessagesClient {
|
|
|
424
414
|
}
|
|
425
415
|
__listReplies(request, requestOptions) {
|
|
426
416
|
return __awaiter(this, void 0, void 0, function* () {
|
|
427
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
417
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
428
418
|
const { id, cursor, limit } = request;
|
|
429
419
|
const _queryParams = {
|
|
430
420
|
cursor,
|
|
431
421
|
limit,
|
|
432
422
|
};
|
|
433
423
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
434
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
438
|
-
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`),
|
|
424
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
425
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
426
|
+
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`),
|
|
439
427
|
method: "GET",
|
|
440
428
|
headers: _headers,
|
|
441
429
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
442
|
-
timeoutMs: ((
|
|
443
|
-
maxRetries: (
|
|
430
|
+
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,
|
|
431
|
+
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,
|
|
444
432
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
445
|
-
fetchFn: (
|
|
433
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
446
434
|
logging: this._options.logging,
|
|
447
435
|
});
|
|
448
436
|
if (_response.ok) {
|
|
@@ -496,24 +484,22 @@ class PrivateMessagesClient {
|
|
|
496
484
|
}
|
|
497
485
|
__createReply(request, requestOptions) {
|
|
498
486
|
return __awaiter(this, void 0, void 0, function* () {
|
|
499
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
487
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
500
488
|
const { id } = request, _body = __rest(request, ["id"]);
|
|
501
489
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
502
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
506
|
-
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`),
|
|
490
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
491
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
492
|
+
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`),
|
|
507
493
|
method: "POST",
|
|
508
494
|
headers: _headers,
|
|
509
495
|
contentType: "application/json",
|
|
510
496
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
511
497
|
requestType: "json",
|
|
512
498
|
body: _body,
|
|
513
|
-
timeoutMs: ((
|
|
514
|
-
maxRetries: (
|
|
499
|
+
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,
|
|
500
|
+
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,
|
|
515
501
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
516
|
-
fetchFn: (
|
|
502
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
517
503
|
logging: this._options.logging,
|
|
518
504
|
});
|
|
519
505
|
if (_response.ok) {
|
|
@@ -562,21 +548,19 @@ class PrivateMessagesClient {
|
|
|
562
548
|
}
|
|
563
549
|
__retrieveReply(request, requestOptions) {
|
|
564
550
|
return __awaiter(this, void 0, void 0, function* () {
|
|
565
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
551
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
566
552
|
const { id, subId } = request;
|
|
567
553
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
568
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
572
|
-
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)}`),
|
|
554
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
555
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
556
|
+
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)}`),
|
|
573
557
|
method: "GET",
|
|
574
558
|
headers: _headers,
|
|
575
559
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
576
|
-
timeoutMs: ((
|
|
577
|
-
maxRetries: (
|
|
560
|
+
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,
|
|
561
|
+
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,
|
|
578
562
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
579
|
-
fetchFn: (
|
|
563
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
580
564
|
logging: this._options.logging,
|
|
581
565
|
});
|
|
582
566
|
if (_response.ok) {
|
|
@@ -626,21 +610,19 @@ class PrivateMessagesClient {
|
|
|
626
610
|
}
|
|
627
611
|
__deleteReply(request, requestOptions) {
|
|
628
612
|
return __awaiter(this, void 0, void 0, function* () {
|
|
629
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
613
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
630
614
|
const { id, subId } = request;
|
|
631
615
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
632
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
636
|
-
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)}`),
|
|
616
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
617
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
618
|
+
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)}`),
|
|
637
619
|
method: "DELETE",
|
|
638
620
|
headers: _headers,
|
|
639
621
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
640
|
-
timeoutMs: ((
|
|
641
|
-
maxRetries: (
|
|
622
|
+
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,
|
|
623
|
+
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,
|
|
642
624
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
643
|
-
fetchFn: (
|
|
625
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
644
626
|
logging: this._options.logging,
|
|
645
627
|
});
|
|
646
628
|
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
|
}
|