@foru-ms/sdk 2.1.5 → 2.1.7

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.
Files changed (129) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/BaseClient.d.ts +0 -4
  3. package/dist/cjs/BaseClient.js +2 -3
  4. package/dist/cjs/Client.d.ts +1 -1
  5. package/dist/cjs/Client.js +1 -1
  6. package/dist/cjs/api/resources/auth/client/Client.d.ts +1 -1
  7. package/dist/cjs/api/resources/auth/client/Client.js +36 -46
  8. package/dist/cjs/api/resources/integrations/client/Client.d.ts +1 -1
  9. package/dist/cjs/api/resources/integrations/client/Client.js +36 -46
  10. package/dist/cjs/api/resources/notifications/client/Client.d.ts +1 -1
  11. package/dist/cjs/api/resources/notifications/client/Client.js +36 -46
  12. package/dist/cjs/api/resources/posts/client/Client.d.ts +1 -1
  13. package/dist/cjs/api/resources/posts/client/Client.js +85 -109
  14. package/dist/cjs/api/resources/privateMessages/client/Client.d.ts +1 -1
  15. package/dist/cjs/api/resources/privateMessages/client/Client.js +64 -82
  16. package/dist/cjs/api/resources/provisioning/client/Client.d.ts +25 -3
  17. package/dist/cjs/api/resources/provisioning/client/Client.js +234 -233
  18. package/dist/cjs/api/resources/provisioning/client/requests/AddDomainProvisioningRequest.d.ts +3 -0
  19. package/dist/cjs/api/resources/provisioning/client/requests/CreateInstance.d.ts +3 -0
  20. package/dist/cjs/api/resources/provisioning/client/requests/CreateWebhookProvisioningRequest.d.ts +3 -0
  21. package/dist/cjs/api/resources/provisioning/client/requests/DeleteInstance.d.ts +3 -0
  22. package/dist/cjs/api/resources/provisioning/client/requests/DeleteWebhookProvisioningRequest.d.ts +3 -0
  23. package/dist/cjs/api/resources/provisioning/client/requests/ExportDataProvisioningRequest.d.ts +3 -0
  24. package/dist/cjs/api/resources/provisioning/client/requests/GetBillingProvisioningRequest.d.ts +3 -0
  25. package/dist/cjs/api/resources/provisioning/client/requests/GetOwnershipProvisioningRequest.d.ts +3 -0
  26. package/dist/cjs/api/resources/provisioning/client/requests/GetUsageProvisioningRequest.d.ts +3 -0
  27. package/dist/cjs/api/resources/provisioning/client/requests/InviteTeamProvisioningRequest.d.ts +3 -0
  28. package/dist/cjs/api/resources/provisioning/client/requests/ListDomainsProvisioningRequest.d.ts +3 -0
  29. package/dist/cjs/api/resources/provisioning/client/requests/ListProvisioningRequest.d.ts +5 -1
  30. package/dist/cjs/api/resources/provisioning/client/requests/ListTeamProvisioningRequest.d.ts +3 -0
  31. package/dist/cjs/api/resources/provisioning/client/requests/ListWebhooksProvisioningRequest.d.ts +3 -0
  32. package/dist/cjs/api/resources/provisioning/client/requests/RegenerateApiKeyProvisioningRequest.d.ts +3 -0
  33. package/dist/cjs/api/resources/provisioning/client/requests/RemoveDomainProvisioningRequest.d.ts +3 -0
  34. package/dist/cjs/api/resources/provisioning/client/requests/RemoveTeamMemberProvisioningRequest.d.ts +3 -0
  35. package/dist/cjs/api/resources/provisioning/client/requests/TransferOwnershipProvisioningRequest.d.ts +3 -0
  36. package/dist/cjs/api/resources/provisioning/client/requests/UpdateInstance.d.ts +3 -0
  37. package/dist/cjs/api/resources/provisioning/client/requests/UpdateWebhookProvisioningRequest.d.ts +3 -0
  38. package/dist/cjs/api/resources/provisioning/client/requests/UpgradeInstance.d.ts +3 -0
  39. package/dist/cjs/api/resources/reports/client/Client.d.ts +1 -1
  40. package/dist/cjs/api/resources/reports/client/Client.js +36 -46
  41. package/dist/cjs/api/resources/roles/client/Client.d.ts +1 -1
  42. package/dist/cjs/api/resources/roles/client/Client.js +36 -46
  43. package/dist/cjs/api/resources/search/client/Client.d.ts +1 -1
  44. package/dist/cjs/api/resources/search/client/Client.js +8 -10
  45. package/dist/cjs/api/resources/ssOs/client/Client.d.ts +1 -1
  46. package/dist/cjs/api/resources/ssOs/client/Client.js +36 -46
  47. package/dist/cjs/api/resources/tags/client/Client.d.ts +1 -1
  48. package/dist/cjs/api/resources/tags/client/Client.js +57 -73
  49. package/dist/cjs/api/resources/threads/client/Client.d.ts +1 -1
  50. package/dist/cjs/api/resources/threads/client/Client.js +127 -163
  51. package/dist/cjs/api/resources/threads/types/UpdateThreadsResponse.d.ts +20 -0
  52. package/dist/cjs/api/resources/threads/types/UpdateThreadsResponse.js +19 -0
  53. package/dist/cjs/api/resources/users/client/Client.d.ts +1 -1
  54. package/dist/cjs/api/resources/users/client/Client.js +78 -100
  55. package/dist/cjs/api/resources/webhooks/client/Client.d.ts +1 -1
  56. package/dist/cjs/api/resources/webhooks/client/Client.js +57 -73
  57. package/dist/cjs/api/types/Thread.d.ts +22 -0
  58. package/dist/cjs/api/types/Thread.js +16 -0
  59. package/dist/cjs/api/types/ThreadListResponse.d.ts +20 -0
  60. package/dist/cjs/api/types/ThreadListResponse.js +25 -0
  61. package/dist/cjs/api/types/ThreadResponse.d.ts +20 -0
  62. package/dist/cjs/api/types/ThreadResponse.js +19 -0
  63. package/dist/cjs/version.d.ts +1 -1
  64. package/dist/cjs/version.js +1 -1
  65. package/dist/esm/BaseClient.d.mts +0 -4
  66. package/dist/esm/BaseClient.mjs +2 -3
  67. package/dist/esm/Client.d.mts +1 -1
  68. package/dist/esm/Client.mjs +1 -1
  69. package/dist/esm/api/resources/auth/client/Client.d.mts +1 -1
  70. package/dist/esm/api/resources/auth/client/Client.mjs +37 -47
  71. package/dist/esm/api/resources/integrations/client/Client.d.mts +1 -1
  72. package/dist/esm/api/resources/integrations/client/Client.mjs +37 -47
  73. package/dist/esm/api/resources/notifications/client/Client.d.mts +1 -1
  74. package/dist/esm/api/resources/notifications/client/Client.mjs +37 -47
  75. package/dist/esm/api/resources/posts/client/Client.d.mts +1 -1
  76. package/dist/esm/api/resources/posts/client/Client.mjs +86 -110
  77. package/dist/esm/api/resources/privateMessages/client/Client.d.mts +1 -1
  78. package/dist/esm/api/resources/privateMessages/client/Client.mjs +65 -83
  79. package/dist/esm/api/resources/provisioning/client/Client.d.mts +25 -3
  80. package/dist/esm/api/resources/provisioning/client/Client.mjs +234 -233
  81. package/dist/esm/api/resources/provisioning/client/requests/AddDomainProvisioningRequest.d.mts +3 -0
  82. package/dist/esm/api/resources/provisioning/client/requests/CreateInstance.d.mts +3 -0
  83. package/dist/esm/api/resources/provisioning/client/requests/CreateWebhookProvisioningRequest.d.mts +3 -0
  84. package/dist/esm/api/resources/provisioning/client/requests/DeleteInstance.d.mts +3 -0
  85. package/dist/esm/api/resources/provisioning/client/requests/DeleteWebhookProvisioningRequest.d.mts +3 -0
  86. package/dist/esm/api/resources/provisioning/client/requests/ExportDataProvisioningRequest.d.mts +3 -0
  87. package/dist/esm/api/resources/provisioning/client/requests/GetBillingProvisioningRequest.d.mts +3 -0
  88. package/dist/esm/api/resources/provisioning/client/requests/GetOwnershipProvisioningRequest.d.mts +3 -0
  89. package/dist/esm/api/resources/provisioning/client/requests/GetUsageProvisioningRequest.d.mts +3 -0
  90. package/dist/esm/api/resources/provisioning/client/requests/InviteTeamProvisioningRequest.d.mts +3 -0
  91. package/dist/esm/api/resources/provisioning/client/requests/ListDomainsProvisioningRequest.d.mts +3 -0
  92. package/dist/esm/api/resources/provisioning/client/requests/ListProvisioningRequest.d.mts +5 -1
  93. package/dist/esm/api/resources/provisioning/client/requests/ListTeamProvisioningRequest.d.mts +3 -0
  94. package/dist/esm/api/resources/provisioning/client/requests/ListWebhooksProvisioningRequest.d.mts +3 -0
  95. package/dist/esm/api/resources/provisioning/client/requests/RegenerateApiKeyProvisioningRequest.d.mts +3 -0
  96. package/dist/esm/api/resources/provisioning/client/requests/RemoveDomainProvisioningRequest.d.mts +3 -0
  97. package/dist/esm/api/resources/provisioning/client/requests/RemoveTeamMemberProvisioningRequest.d.mts +3 -0
  98. package/dist/esm/api/resources/provisioning/client/requests/TransferOwnershipProvisioningRequest.d.mts +3 -0
  99. package/dist/esm/api/resources/provisioning/client/requests/UpdateInstance.d.mts +3 -0
  100. package/dist/esm/api/resources/provisioning/client/requests/UpdateWebhookProvisioningRequest.d.mts +3 -0
  101. package/dist/esm/api/resources/provisioning/client/requests/UpgradeInstance.d.mts +3 -0
  102. package/dist/esm/api/resources/reports/client/Client.d.mts +1 -1
  103. package/dist/esm/api/resources/reports/client/Client.mjs +37 -47
  104. package/dist/esm/api/resources/roles/client/Client.d.mts +1 -1
  105. package/dist/esm/api/resources/roles/client/Client.mjs +37 -47
  106. package/dist/esm/api/resources/search/client/Client.d.mts +1 -1
  107. package/dist/esm/api/resources/search/client/Client.mjs +9 -11
  108. package/dist/esm/api/resources/ssOs/client/Client.d.mts +1 -1
  109. package/dist/esm/api/resources/ssOs/client/Client.mjs +37 -47
  110. package/dist/esm/api/resources/tags/client/Client.d.mts +1 -1
  111. package/dist/esm/api/resources/tags/client/Client.mjs +58 -74
  112. package/dist/esm/api/resources/threads/client/Client.d.mts +1 -1
  113. package/dist/esm/api/resources/threads/client/Client.mjs +128 -164
  114. package/dist/esm/api/resources/threads/types/UpdateThreadsResponse.d.mts +20 -0
  115. package/dist/esm/api/resources/threads/types/UpdateThreadsResponse.mjs +18 -1
  116. package/dist/esm/api/resources/users/client/Client.d.mts +1 -1
  117. package/dist/esm/api/resources/users/client/Client.mjs +79 -101
  118. package/dist/esm/api/resources/webhooks/client/Client.d.mts +1 -1
  119. package/dist/esm/api/resources/webhooks/client/Client.mjs +58 -74
  120. package/dist/esm/api/types/Thread.d.mts +22 -0
  121. package/dist/esm/api/types/Thread.mjs +15 -1
  122. package/dist/esm/api/types/ThreadListResponse.d.mts +20 -0
  123. package/dist/esm/api/types/ThreadListResponse.mjs +24 -1
  124. package/dist/esm/api/types/ThreadResponse.d.mts +20 -0
  125. package/dist/esm/api/types/ThreadResponse.mjs +18 -1
  126. package/dist/esm/version.d.mts +1 -1
  127. package/dist/esm/version.mjs +1 -1
  128. package/package.json +1 -1
  129. package/reference.md +23 -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, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
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 webhooks
31
31
  */
32
32
  export class WebhooksClient {
33
- constructor(options) {
33
+ constructor(options = {}) {
34
34
  this._options = normalizeClientOptionsWithAuth(options);
35
35
  }
36
36
  /**
@@ -54,25 +54,23 @@ export class WebhooksClient {
54
54
  }
55
55
  __list() {
56
56
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
57
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
57
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
58
58
  const { limit, cursor } = request;
59
59
  const _queryParams = {
60
60
  limit,
61
61
  cursor,
62
62
  };
63
63
  const _authRequest = yield this._options.authProvider.getAuthRequest();
64
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({
65
- "x-provisioning-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.provisioningKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.provisioningKey,
66
- }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
67
- const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
68
- 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, "webhooks"),
64
+ 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);
65
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
66
+ 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, "webhooks"),
69
67
  method: "GET",
70
68
  headers: _headers,
71
69
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
72
- timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
73
- maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
70
+ 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,
71
+ 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,
74
72
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
75
- fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
73
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
76
74
  logging: this._options.logging,
77
75
  });
78
76
  if (_response.ok) {
@@ -125,23 +123,21 @@ export class WebhooksClient {
125
123
  }
126
124
  __create(request, requestOptions) {
127
125
  return __awaiter(this, void 0, void 0, function* () {
128
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
126
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
129
127
  const _authRequest = yield this._options.authProvider.getAuthRequest();
130
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({
131
- "x-provisioning-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.provisioningKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.provisioningKey,
132
- }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
133
- const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
134
- 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, "webhooks"),
128
+ 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);
129
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
130
+ 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, "webhooks"),
135
131
  method: "POST",
136
132
  headers: _headers,
137
133
  contentType: "application/json",
138
134
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
139
135
  requestType: "json",
140
136
  body: request,
141
- timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
142
- maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
137
+ 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,
138
+ 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,
143
139
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
144
- fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
140
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
145
141
  logging: this._options.logging,
146
142
  });
147
143
  if (_response.ok) {
@@ -194,21 +190,19 @@ export class WebhooksClient {
194
190
  }
195
191
  __retrieve(request, requestOptions) {
196
192
  return __awaiter(this, void 0, void 0, function* () {
197
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
193
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
198
194
  const { id } = request;
199
195
  const _authRequest = yield this._options.authProvider.getAuthRequest();
200
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({
201
- "x-provisioning-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.provisioningKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.provisioningKey,
202
- }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
203
- const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
204
- 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, `webhooks/${core.url.encodePathParam(id)}`),
196
+ 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);
197
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
198
+ 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, `webhooks/${core.url.encodePathParam(id)}`),
205
199
  method: "GET",
206
200
  headers: _headers,
207
201
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
208
- timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
209
- maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
202
+ 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,
203
+ 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,
210
204
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
211
- fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
205
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
212
206
  logging: this._options.logging,
213
207
  });
214
208
  if (_response.ok) {
@@ -261,21 +255,19 @@ export class WebhooksClient {
261
255
  }
262
256
  __delete(request, requestOptions) {
263
257
  return __awaiter(this, void 0, void 0, function* () {
264
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
258
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
265
259
  const { id } = request;
266
260
  const _authRequest = yield this._options.authProvider.getAuthRequest();
267
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({
268
- "x-provisioning-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.provisioningKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.provisioningKey,
269
- }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
270
- const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
271
- 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, `webhooks/${core.url.encodePathParam(id)}`),
261
+ 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);
262
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
263
+ 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, `webhooks/${core.url.encodePathParam(id)}`),
272
264
  method: "DELETE",
273
265
  headers: _headers,
274
266
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
275
- timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
276
- maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
267
+ 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,
268
+ 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,
277
269
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
278
- fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
270
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
279
271
  logging: this._options.logging,
280
272
  });
281
273
  if (_response.ok) {
@@ -329,24 +321,22 @@ export class WebhooksClient {
329
321
  }
330
322
  __update(request, requestOptions) {
331
323
  return __awaiter(this, void 0, void 0, function* () {
332
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
324
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
333
325
  const { id } = request, _body = __rest(request, ["id"]);
334
326
  const _authRequest = yield this._options.authProvider.getAuthRequest();
335
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({
336
- "x-provisioning-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.provisioningKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.provisioningKey,
337
- }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
338
- const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
339
- 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, `webhooks/${core.url.encodePathParam(id)}`),
327
+ 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);
328
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
329
+ 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, `webhooks/${core.url.encodePathParam(id)}`),
340
330
  method: "PATCH",
341
331
  headers: _headers,
342
332
  contentType: "application/json",
343
333
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
344
334
  requestType: "json",
345
335
  body: _body,
346
- timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
347
- maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
336
+ 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,
337
+ 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,
348
338
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
349
- fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
339
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
350
340
  logging: this._options.logging,
351
341
  });
352
342
  if (_response.ok) {
@@ -400,25 +390,23 @@ export class WebhooksClient {
400
390
  }
401
391
  __listDeliveries(request, requestOptions) {
402
392
  return __awaiter(this, void 0, void 0, function* () {
403
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
393
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
404
394
  const { id, cursor, limit } = request;
405
395
  const _queryParams = {
406
396
  cursor,
407
397
  limit,
408
398
  };
409
399
  const _authRequest = yield this._options.authProvider.getAuthRequest();
410
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({
411
- "x-provisioning-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.provisioningKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.provisioningKey,
412
- }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
413
- const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
414
- 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, `webhooks/${core.url.encodePathParam(id)}/deliveries`),
400
+ 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);
401
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
402
+ 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, `webhooks/${core.url.encodePathParam(id)}/deliveries`),
415
403
  method: "GET",
416
404
  headers: _headers,
417
405
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
418
- timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
419
- maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
406
+ 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,
407
+ 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,
420
408
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
421
- fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
409
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
422
410
  logging: this._options.logging,
423
411
  });
424
412
  if (_response.ok) {
@@ -465,21 +453,19 @@ export class WebhooksClient {
465
453
  }
466
454
  __retrieveDelivery(request, requestOptions) {
467
455
  return __awaiter(this, void 0, void 0, function* () {
468
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
456
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
469
457
  const { id, subId } = request;
470
458
  const _authRequest = yield this._options.authProvider.getAuthRequest();
471
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({
472
- "x-provisioning-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.provisioningKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.provisioningKey,
473
- }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
474
- const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
475
- 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, `webhooks/${core.url.encodePathParam(id)}/deliveries/${core.url.encodePathParam(subId)}`),
459
+ 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);
460
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
461
+ 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, `webhooks/${core.url.encodePathParam(id)}/deliveries/${core.url.encodePathParam(subId)}`),
476
462
  method: "GET",
477
463
  headers: _headers,
478
464
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
479
- timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
480
- maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
465
+ 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,
466
+ 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,
481
467
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
482
- fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
468
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
483
469
  logging: this._options.logging,
484
470
  });
485
471
  if (_response.ok) {
@@ -529,21 +515,19 @@ export class WebhooksClient {
529
515
  }
530
516
  __deleteDelivery(request, requestOptions) {
531
517
  return __awaiter(this, void 0, void 0, function* () {
532
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
518
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
533
519
  const { id, subId } = request;
534
520
  const _authRequest = yield this._options.authProvider.getAuthRequest();
535
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({
536
- "x-provisioning-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.provisioningKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.provisioningKey,
537
- }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
538
- const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
539
- 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, `webhooks/${core.url.encodePathParam(id)}/deliveries/${core.url.encodePathParam(subId)}`),
521
+ 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);
522
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
523
+ 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, `webhooks/${core.url.encodePathParam(id)}/deliveries/${core.url.encodePathParam(subId)}`),
540
524
  method: "DELETE",
541
525
  headers: _headers,
542
526
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
543
- timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
544
- maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
527
+ 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,
528
+ 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,
545
529
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
546
- fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
530
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
547
531
  logging: this._options.logging,
548
532
  });
549
533
  if (_response.ok) {
@@ -25,6 +25,28 @@ export interface Thread {
25
25
  postsCount: number;
26
26
  /** Timestamp of the last post */
27
27
  lastPostAt: string | null;
28
+ /** Thread reactions */
29
+ reactions?: Thread.Reactions.Item[];
28
30
  createdAt: string;
29
31
  updatedAt: string;
30
32
  }
33
+ export declare namespace Thread {
34
+ type Reactions = Reactions.Item[];
35
+ namespace Reactions {
36
+ interface Item {
37
+ id: string;
38
+ type: Item.Type;
39
+ userId: string;
40
+ createdAt: string;
41
+ }
42
+ namespace Item {
43
+ const Type: {
44
+ readonly Upvote: "UPVOTE";
45
+ readonly Downvote: "DOWNVOTE";
46
+ readonly Like: "LIKE";
47
+ readonly Dislike: "DISLIKE";
48
+ };
49
+ type Type = (typeof Type)[keyof typeof Type];
50
+ }
51
+ }
52
+ }
@@ -1,2 +1,16 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- export {};
2
+ export var Thread;
3
+ (function (Thread) {
4
+ let Reactions;
5
+ (function (Reactions) {
6
+ let Item;
7
+ (function (Item) {
8
+ Item.Type = {
9
+ Upvote: "UPVOTE",
10
+ Downvote: "DOWNVOTE",
11
+ Like: "LIKE",
12
+ Dislike: "DISLIKE",
13
+ };
14
+ })(Item = Reactions.Item || (Reactions.Item = {}));
15
+ })(Reactions = Thread.Reactions || (Thread.Reactions = {}));
16
+ })(Thread || (Thread = {}));
@@ -38,6 +38,8 @@ export declare namespace ThreadListResponse {
38
38
  postsCount: number;
39
39
  /** Timestamp of the last post */
40
40
  lastPostAt: string | null;
41
+ /** Thread reactions */
42
+ reactions?: Item.Reactions.Item[];
41
43
  createdAt: string;
42
44
  updatedAt: string;
43
45
  }
@@ -61,6 +63,24 @@ export declare namespace ThreadListResponse {
61
63
  }
62
64
  }
63
65
  }
66
+ type Reactions = Reactions.Item[];
67
+ namespace Reactions {
68
+ interface Item {
69
+ id: string;
70
+ type: Item.Type;
71
+ userId: string;
72
+ createdAt: string;
73
+ }
74
+ namespace Item {
75
+ const Type: {
76
+ readonly Upvote: "UPVOTE";
77
+ readonly Downvote: "DOWNVOTE";
78
+ readonly Like: "LIKE";
79
+ readonly Dislike: "DISLIKE";
80
+ };
81
+ type Type = (typeof Type)[keyof typeof Type];
82
+ }
83
+ }
64
84
  }
65
85
  }
66
86
  }
@@ -1,2 +1,25 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- export {};
2
+ export var ThreadListResponse;
3
+ (function (ThreadListResponse) {
4
+ let Data;
5
+ (function (Data) {
6
+ let Items;
7
+ (function (Items) {
8
+ let Item;
9
+ (function (Item_1) {
10
+ let Reactions;
11
+ (function (Reactions) {
12
+ let Item;
13
+ (function (Item) {
14
+ Item.Type = {
15
+ Upvote: "UPVOTE",
16
+ Downvote: "DOWNVOTE",
17
+ Like: "LIKE",
18
+ Dislike: "DISLIKE",
19
+ };
20
+ })(Item = Reactions.Item || (Reactions.Item = {}));
21
+ })(Reactions = Item_1.Reactions || (Item_1.Reactions = {}));
22
+ })(Item = Items.Item || (Items.Item = {}));
23
+ })(Items = Data.Items || (Data.Items = {}));
24
+ })(Data = ThreadListResponse.Data || (ThreadListResponse.Data = {}));
25
+ })(ThreadListResponse || (ThreadListResponse = {}));
@@ -28,6 +28,8 @@ export declare namespace ThreadResponse {
28
28
  postsCount: number;
29
29
  /** Timestamp of the last post */
30
30
  lastPostAt: string | null;
31
+ /** Thread reactions */
32
+ reactions?: Data.Reactions.Item[];
31
33
  createdAt: string;
32
34
  updatedAt: string;
33
35
  }
@@ -51,5 +53,23 @@ export declare namespace ThreadResponse {
51
53
  }
52
54
  }
53
55
  }
56
+ type Reactions = Reactions.Item[];
57
+ namespace Reactions {
58
+ interface Item {
59
+ id: string;
60
+ type: Item.Type;
61
+ userId: string;
62
+ createdAt: string;
63
+ }
64
+ namespace Item {
65
+ const Type: {
66
+ readonly Upvote: "UPVOTE";
67
+ readonly Downvote: "DOWNVOTE";
68
+ readonly Like: "LIKE";
69
+ readonly Dislike: "DISLIKE";
70
+ };
71
+ type Type = (typeof Type)[keyof typeof Type];
72
+ }
73
+ }
54
74
  }
55
75
  }
@@ -1,2 +1,19 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- export {};
2
+ export var ThreadResponse;
3
+ (function (ThreadResponse) {
4
+ let Data;
5
+ (function (Data) {
6
+ let Reactions;
7
+ (function (Reactions) {
8
+ let Item;
9
+ (function (Item) {
10
+ Item.Type = {
11
+ Upvote: "UPVOTE",
12
+ Downvote: "DOWNVOTE",
13
+ Like: "LIKE",
14
+ Dislike: "DISLIKE",
15
+ };
16
+ })(Item = Reactions.Item || (Reactions.Item = {}));
17
+ })(Reactions = Data.Reactions || (Data.Reactions = {}));
18
+ })(Data = ThreadResponse.Data || (ThreadResponse.Data = {}));
19
+ })(ThreadResponse || (ThreadResponse = {}));
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.1.5";
1
+ export declare const SDK_VERSION = "2.1.7";
@@ -1 +1 @@
1
- export const SDK_VERSION = "2.1.5";
1
+ export const SDK_VERSION = "2.1.7";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foru-ms/sdk",
3
- "version": "2.1.5",
3
+ "version": "2.1.7",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/reference.md CHANGED
@@ -6030,7 +6030,9 @@ Retrieve all instances owned by the authenticated user. Use the `handle` query p
6030
6030
  <dd>
6031
6031
 
6032
6032
  ```typescript
6033
- await client.provisioning.list();
6033
+ await client.provisioning.list({
6034
+ "x-provisioning-key": "x-provisioning-key"
6035
+ });
6034
6036
 
6035
6037
  ```
6036
6038
  </dd>
@@ -6094,6 +6096,7 @@ Create a new forum instance. Returns the instance details including the API key
6094
6096
 
6095
6097
  ```typescript
6096
6098
  await client.provisioning.create({
6099
+ "x-provisioning-key": "x-provisioning-key",
6097
6100
  name: "name",
6098
6101
  handle: "handle"
6099
6102
  });
@@ -6160,6 +6163,7 @@ Update an instance's name or handle. The `handle` field identifies which instanc
6160
6163
 
6161
6164
  ```typescript
6162
6165
  await client.provisioning.update({
6166
+ "x-provisioning-key": "x-provisioning-key",
6163
6167
  handle: "handle"
6164
6168
  });
6165
6169
 
@@ -6225,6 +6229,7 @@ Permanently delete an instance. This action cannot be undone.
6225
6229
 
6226
6230
  ```typescript
6227
6231
  await client.provisioning.delete({
6232
+ "x-provisioning-key": "x-provisioning-key",
6228
6233
  handle: "handle"
6229
6234
  });
6230
6235
 
@@ -6290,6 +6295,7 @@ Retrieve billing and subscription information for an instance.
6290
6295
 
6291
6296
  ```typescript
6292
6297
  await client.provisioning.getBilling({
6298
+ "x-provisioning-key": "x-provisioning-key",
6293
6299
  handle: "handle"
6294
6300
  });
6295
6301
 
@@ -6355,6 +6361,7 @@ Change an instance's subscription plan. Returns a checkout URL for upgrades or a
6355
6361
 
6356
6362
  ```typescript
6357
6363
  await client.provisioning.changePlan({
6364
+ "x-provisioning-key": "x-provisioning-key",
6358
6365
  handle: "handle",
6359
6366
  plan: "FREE"
6360
6367
  });
@@ -6421,6 +6428,7 @@ Generate a new API key for the instance. The old key will be invalidated.
6421
6428
 
6422
6429
  ```typescript
6423
6430
  await client.provisioning.regenerateApiKey({
6431
+ "x-provisioning-key": "x-provisioning-key",
6424
6432
  handle: "handle"
6425
6433
  });
6426
6434
 
@@ -6486,6 +6494,7 @@ Retrieve usage statistics for an instance including API requests, storage, and c
6486
6494
 
6487
6495
  ```typescript
6488
6496
  await client.provisioning.getUsage({
6497
+ "x-provisioning-key": "x-provisioning-key",
6489
6498
  handle: "handle"
6490
6499
  });
6491
6500
 
@@ -6551,6 +6560,7 @@ Retrieve all team members for an instance.
6551
6560
 
6552
6561
  ```typescript
6553
6562
  await client.provisioning.listTeam({
6563
+ "x-provisioning-key": "x-provisioning-key",
6554
6564
  handle: "handle"
6555
6565
  });
6556
6566
 
@@ -6616,6 +6626,7 @@ Invite new team members to an instance.
6616
6626
 
6617
6627
  ```typescript
6618
6628
  await client.provisioning.inviteTeam({
6629
+ "x-provisioning-key": "x-provisioning-key",
6619
6630
  handle: "handle",
6620
6631
  members: [{
6621
6632
  email: "email"
@@ -6684,6 +6695,7 @@ Remove a team member from an instance.
6684
6695
 
6685
6696
  ```typescript
6686
6697
  await client.provisioning.removeTeamMember({
6698
+ "x-provisioning-key": "x-provisioning-key",
6687
6699
  handle: "handle",
6688
6700
  email: "email"
6689
6701
  });
@@ -6750,6 +6762,7 @@ Retrieve all custom domains for an instance.
6750
6762
 
6751
6763
  ```typescript
6752
6764
  await client.provisioning.listDomains({
6765
+ "x-provisioning-key": "x-provisioning-key",
6753
6766
  handle: "handle"
6754
6767
  });
6755
6768
 
@@ -6815,6 +6828,7 @@ Add a custom domain to an instance.
6815
6828
 
6816
6829
  ```typescript
6817
6830
  await client.provisioning.addDomain({
6831
+ "x-provisioning-key": "x-provisioning-key",
6818
6832
  handle: "handle",
6819
6833
  name: "name"
6820
6834
  });
@@ -6881,6 +6895,7 @@ Remove a custom domain from an instance.
6881
6895
 
6882
6896
  ```typescript
6883
6897
  await client.provisioning.removeDomain({
6898
+ "x-provisioning-key": "x-provisioning-key",
6884
6899
  handle: "handle",
6885
6900
  name: "name"
6886
6901
  });
@@ -6947,6 +6962,7 @@ Export all data from an instance including threads, posts, users, tags, etc.
6947
6962
 
6948
6963
  ```typescript
6949
6964
  await client.provisioning.exportData({
6965
+ "x-provisioning-key": "x-provisioning-key",
6950
6966
  handle: "handle"
6951
6967
  });
6952
6968
 
@@ -7012,6 +7028,7 @@ Retrieve all webhooks configured for an instance.
7012
7028
 
7013
7029
  ```typescript
7014
7030
  await client.provisioning.listWebhooks({
7031
+ "x-provisioning-key": "x-provisioning-key",
7015
7032
  handle: "handle"
7016
7033
  });
7017
7034
 
@@ -7077,6 +7094,7 @@ Create a new webhook for an instance.
7077
7094
 
7078
7095
  ```typescript
7079
7096
  await client.provisioning.createWebhook({
7097
+ "x-provisioning-key": "x-provisioning-key",
7080
7098
  handle: "handle",
7081
7099
  url: "url",
7082
7100
  events: ["events"]
@@ -7144,6 +7162,7 @@ Update an existing webhook.
7144
7162
 
7145
7163
  ```typescript
7146
7164
  await client.provisioning.updateWebhook({
7165
+ "x-provisioning-key": "x-provisioning-key",
7147
7166
  handle: "handle",
7148
7167
  webhookId: "webhookId"
7149
7168
  });
@@ -7210,6 +7229,7 @@ Delete a webhook from an instance.
7210
7229
 
7211
7230
  ```typescript
7212
7231
  await client.provisioning.deleteWebhook({
7232
+ "x-provisioning-key": "x-provisioning-key",
7213
7233
  handle: "handle",
7214
7234
  webhookId: "webhookId"
7215
7235
  });
@@ -7276,6 +7296,7 @@ Retrieve owner and creator information for an instance.
7276
7296
 
7277
7297
  ```typescript
7278
7298
  await client.provisioning.getOwnership({
7299
+ "x-provisioning-key": "x-provisioning-key",
7279
7300
  handle: "handle"
7280
7301
  });
7281
7302
 
@@ -7341,6 +7362,7 @@ Transfer instance ownership to another user. Only the current owner can transfer
7341
7362
 
7342
7363
  ```typescript
7343
7364
  await client.provisioning.transferOwnership({
7365
+ "x-provisioning-key": "x-provisioning-key",
7344
7366
  handle: "handle",
7345
7367
  newOwnerEmail: "newOwnerEmail"
7346
7368
  });