@knowledge-stack/ksapi 3.11.0 → 3.12.0

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 (145) hide show
  1. package/.openapi-generator/FILES +26 -4
  2. package/README.md +18 -6
  3. package/dist/apis/AuthApi.d.ts +12 -9
  4. package/dist/apis/AuthApi.js +5 -2
  5. package/dist/apis/FeedbackApi.d.ts +10 -7
  6. package/dist/apis/FeedbackApi.js +5 -2
  7. package/dist/apis/InvitesApi.d.ts +39 -1
  8. package/dist/apis/InvitesApi.js +41 -0
  9. package/dist/apis/UsersApi.d.ts +51 -59
  10. package/dist/apis/UsersApi.js +50 -57
  11. package/dist/esm/apis/AuthApi.d.ts +12 -9
  12. package/dist/esm/apis/AuthApi.js +6 -3
  13. package/dist/esm/apis/FeedbackApi.d.ts +10 -7
  14. package/dist/esm/apis/FeedbackApi.js +5 -2
  15. package/dist/esm/apis/InvitesApi.d.ts +39 -1
  16. package/dist/esm/apis/InvitesApi.js +42 -1
  17. package/dist/esm/apis/UsersApi.d.ts +51 -59
  18. package/dist/esm/apis/UsersApi.js +51 -58
  19. package/dist/esm/models/{OnboardingProfileRequest.d.ts → AccessRequestResponse.d.ts} +14 -26
  20. package/dist/esm/models/{OnboardingCompanyRequest.js → AccessRequestResponse.js} +13 -20
  21. package/dist/esm/models/AddedBy.d.ts +25 -0
  22. package/dist/esm/models/AddedBy.js +43 -0
  23. package/dist/esm/models/CreatePasswordUserRequest.d.ts +6 -0
  24. package/dist/esm/models/CreatePasswordUserRequest.js +2 -0
  25. package/dist/esm/models/ErrorResponse.d.ts +2 -0
  26. package/dist/esm/models/ErrorResponse.js +2 -0
  27. package/dist/esm/models/FeaturesResponse.d.ts +7 -0
  28. package/dist/esm/models/FeaturesResponse.js +5 -0
  29. package/dist/esm/models/GuideModuleProgress.d.ts +66 -0
  30. package/dist/{models/OnboardingProfileRequest.js → esm/models/GuideModuleProgress.js} +31 -25
  31. package/dist/esm/models/GuideModuleStatus.d.ts +26 -0
  32. package/dist/esm/models/GuideModuleStatus.js +44 -0
  33. package/dist/esm/models/GuideModules.d.ts +126 -0
  34. package/dist/esm/models/GuideModules.js +69 -0
  35. package/dist/esm/models/InvitePreviewResponse.d.ts +80 -0
  36. package/dist/esm/models/InvitePreviewResponse.js +57 -0
  37. package/dist/esm/models/InvitePreviewState.d.ts +28 -0
  38. package/dist/esm/models/InvitePreviewState.js +46 -0
  39. package/dist/esm/models/InviteRejection.d.ts +30 -0
  40. package/dist/esm/models/InviteRejection.js +48 -0
  41. package/dist/esm/models/KbSummaryResponse.d.ts +8 -0
  42. package/dist/esm/models/KbSummaryResponse.js +4 -0
  43. package/dist/esm/models/{OnboardingCompanyRequest.d.ts → OnboardingState.d.ts} +26 -18
  44. package/dist/esm/models/{OnboardingProfileRequest.js → OnboardingState.js} +17 -19
  45. package/dist/esm/models/OnboardingStateUpdate.d.ts +61 -0
  46. package/dist/esm/models/OnboardingStateUpdate.js +48 -0
  47. package/dist/esm/models/OnboardingStep.d.ts +27 -0
  48. package/dist/esm/models/OnboardingStep.js +45 -0
  49. package/dist/esm/models/SignUpResponse.d.ts +174 -0
  50. package/dist/esm/models/SignUpResponse.js +107 -0
  51. package/dist/esm/models/TenantResponse.d.ts +7 -0
  52. package/dist/esm/models/TenantResponse.js +5 -0
  53. package/dist/esm/models/TenantUserJoinMethod.d.ts +26 -0
  54. package/dist/esm/models/TenantUserJoinMethod.js +44 -0
  55. package/dist/esm/models/UserResponse.d.ts +40 -0
  56. package/dist/esm/models/UserResponse.js +18 -0
  57. package/dist/esm/models/index.d.ts +13 -2
  58. package/dist/esm/models/index.js +13 -2
  59. package/dist/models/{OnboardingProfileRequest.d.ts → AccessRequestResponse.d.ts} +14 -26
  60. package/dist/models/{OnboardingCompanyRequest.js → AccessRequestResponse.js} +19 -26
  61. package/dist/models/AddedBy.d.ts +25 -0
  62. package/dist/models/AddedBy.js +51 -0
  63. package/dist/models/CreatePasswordUserRequest.d.ts +6 -0
  64. package/dist/models/CreatePasswordUserRequest.js +2 -0
  65. package/dist/models/ErrorResponse.d.ts +2 -0
  66. package/dist/models/ErrorResponse.js +2 -0
  67. package/dist/models/FeaturesResponse.d.ts +7 -0
  68. package/dist/models/FeaturesResponse.js +5 -0
  69. package/dist/models/GuideModuleProgress.d.ts +66 -0
  70. package/dist/models/GuideModuleProgress.js +72 -0
  71. package/dist/models/GuideModuleStatus.d.ts +26 -0
  72. package/dist/models/GuideModuleStatus.js +52 -0
  73. package/dist/models/GuideModules.d.ts +126 -0
  74. package/dist/models/GuideModules.js +77 -0
  75. package/dist/models/InvitePreviewResponse.d.ts +80 -0
  76. package/dist/models/InvitePreviewResponse.js +65 -0
  77. package/dist/models/InvitePreviewState.d.ts +28 -0
  78. package/dist/models/InvitePreviewState.js +54 -0
  79. package/dist/models/InviteRejection.d.ts +30 -0
  80. package/dist/models/InviteRejection.js +56 -0
  81. package/dist/models/KbSummaryResponse.d.ts +8 -0
  82. package/dist/models/KbSummaryResponse.js +4 -0
  83. package/dist/models/{OnboardingCompanyRequest.d.ts → OnboardingState.d.ts} +26 -18
  84. package/dist/models/OnboardingState.js +56 -0
  85. package/dist/models/OnboardingStateUpdate.d.ts +61 -0
  86. package/dist/models/OnboardingStateUpdate.js +56 -0
  87. package/dist/models/OnboardingStep.d.ts +27 -0
  88. package/dist/models/OnboardingStep.js +53 -0
  89. package/dist/models/SignUpResponse.d.ts +174 -0
  90. package/dist/models/SignUpResponse.js +115 -0
  91. package/dist/models/TenantResponse.d.ts +7 -0
  92. package/dist/models/TenantResponse.js +5 -0
  93. package/dist/models/TenantUserJoinMethod.d.ts +26 -0
  94. package/dist/models/TenantUserJoinMethod.js +52 -0
  95. package/dist/models/UserResponse.d.ts +40 -0
  96. package/dist/models/UserResponse.js +18 -0
  97. package/dist/models/index.d.ts +13 -2
  98. package/dist/models/index.js +13 -2
  99. package/docs/{OnboardingCompanyRequest.md → AccessRequestResponse.md} +6 -9
  100. package/docs/{OnboardingProfileRequest.md → AddedBy.md} +4 -11
  101. package/docs/AuthApi.md +8 -5
  102. package/docs/CreatePasswordUserRequest.md +2 -0
  103. package/docs/FeaturesResponse.md +2 -0
  104. package/docs/FeedbackApi.md +8 -5
  105. package/docs/GuideModuleProgress.md +40 -0
  106. package/docs/GuideModuleStatus.md +32 -0
  107. package/docs/GuideModules.md +60 -0
  108. package/docs/InvitePreviewResponse.md +44 -0
  109. package/docs/InvitePreviewState.md +32 -0
  110. package/docs/InviteRejection.md +32 -0
  111. package/docs/InvitesApi.md +70 -0
  112. package/docs/KbSummaryResponse.md +2 -0
  113. package/docs/OnboardingState.md +39 -0
  114. package/docs/OnboardingStateUpdate.md +38 -0
  115. package/docs/OnboardingStep.md +32 -0
  116. package/docs/SignUpResponse.md +74 -0
  117. package/docs/TenantResponse.md +2 -0
  118. package/docs/TenantUserJoinMethod.md +32 -0
  119. package/docs/UserResponse.md +12 -0
  120. package/docs/UsersApi.md +36 -47
  121. package/package.json +1 -1
  122. package/src/apis/AuthApi.ts +20 -10
  123. package/src/apis/FeedbackApi.ts +14 -7
  124. package/src/apis/InvitesApi.ts +78 -0
  125. package/src/apis/UsersApi.ts +91 -110
  126. package/src/models/{OnboardingCompanyRequest.ts → AccessRequestResponse.ts} +19 -32
  127. package/src/models/AddedBy.ts +53 -0
  128. package/src/models/CreatePasswordUserRequest.ts +8 -0
  129. package/src/models/ErrorResponse.ts +2 -0
  130. package/src/models/FeaturesResponse.ts +16 -0
  131. package/src/models/GuideModuleProgress.ts +127 -0
  132. package/src/models/GuideModuleStatus.ts +54 -0
  133. package/src/models/GuideModules.ts +194 -0
  134. package/src/models/InvitePreviewResponse.ts +147 -0
  135. package/src/models/InvitePreviewState.ts +56 -0
  136. package/src/models/InviteRejection.ts +58 -0
  137. package/src/models/KbSummaryResponse.ts +9 -0
  138. package/src/models/{OnboardingProfileRequest.ts → OnboardingState.ts} +47 -33
  139. package/src/models/OnboardingStateUpdate.ts +115 -0
  140. package/src/models/OnboardingStep.ts +55 -0
  141. package/src/models/SignUpResponse.ts +303 -0
  142. package/src/models/TenantResponse.ts +16 -0
  143. package/src/models/TenantUserJoinMethod.ts +54 -0
  144. package/src/models/UserResponse.ts +77 -0
  145. package/src/models/index.ts +13 -2
@@ -10,15 +10,12 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { OnboardingCompanyRequest, OnboardingProfileRequest, UpdateUserRequest, UserResponse } from '../models/index';
13
+ import type { AccessRequestResponse, OnboardingStateUpdate, UpdateUserRequest, UserResponse } from '../models/index';
14
14
  export interface UpdateMeRequest {
15
15
  updateUserRequest: UpdateUserRequest;
16
16
  }
17
- export interface UpdateOnboardingCompanyRequest {
18
- onboardingCompanyRequest: OnboardingCompanyRequest;
19
- }
20
- export interface UpdateOnboardingProfileRequest {
21
- onboardingProfileRequest: OnboardingProfileRequest;
17
+ export interface UpdateOnboardingStateRequest {
18
+ onboardingStateUpdate: OnboardingStateUpdate;
22
19
  }
23
20
  export interface UploadMyAvatarRequest {
24
21
  file: Blob;
@@ -68,6 +65,25 @@ export interface UsersApiInterface {
68
65
  * Get Me Handler
69
66
  */
70
67
  getMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
68
+ /**
69
+ * Creates request options for requestAccess without sending the request
70
+ * @throws {RequiredError}
71
+ * @memberof UsersApiInterface
72
+ */
73
+ requestAccessRequestOpts(): Promise<runtime.RequestOpts>;
74
+ /**
75
+ * Email the owner and admins for access; one request per member per day.
76
+ * @summary Request Access Handler
77
+ * @param {*} [options] Override http request option.
78
+ * @throws {RequiredError}
79
+ * @memberof UsersApiInterface
80
+ */
81
+ requestAccessRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccessRequestResponse>>;
82
+ /**
83
+ * Email the owner and admins for access; one request per member per day.
84
+ * Request Access Handler
85
+ */
86
+ requestAccess(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccessRequestResponse>;
71
87
  /**
72
88
  * Creates request options for skipOnboarding without sending the request
73
89
  * @throws {RequiredError}
@@ -109,47 +125,25 @@ export interface UsersApiInterface {
109
125
  */
110
126
  updateMe(requestParameters: UpdateMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
111
127
  /**
112
- * Creates request options for updateOnboardingCompany without sending the request
113
- * @param {OnboardingCompanyRequest} onboardingCompanyRequest
128
+ * Creates request options for updateOnboardingState without sending the request
129
+ * @param {OnboardingStateUpdate} onboardingStateUpdate
114
130
  * @throws {RequiredError}
115
131
  * @memberof UsersApiInterface
116
132
  */
117
- updateOnboardingCompanyRequestOpts(requestParameters: UpdateOnboardingCompanyRequest): Promise<runtime.RequestOpts>;
133
+ updateOnboardingStateRequestOpts(requestParameters: UpdateOnboardingStateRequest): Promise<runtime.RequestOpts>;
118
134
  /**
119
- * Step 1 of onboarding: tenant-wide company info. Writes ``industry`` and ``description`` into the current tenant\'s settings JSONB. Restricted to OWNER and ADMIN — invited USERs see a pre-filled, read-only step on the frontend instead. Does not mark onboarding complete; the user finishes via the profile step. Re-running while the wizard is still open overwrites prior values; once onboarding has been completed/skipped, this endpoint returns 409. Post-onboarding edits go through PATCH /v1/tenants/{id}.
120
- * @summary Update Onboarding Company Handler
121
- * @param {OnboardingCompanyRequest} onboardingCompanyRequest
135
+ *
136
+ * @summary Update Onboarding State Handler
137
+ * @param {OnboardingStateUpdate} onboardingStateUpdate
122
138
  * @param {*} [options] Override http request option.
123
139
  * @throws {RequiredError}
124
140
  * @memberof UsersApiInterface
125
141
  */
126
- updateOnboardingCompanyRaw(requestParameters: UpdateOnboardingCompanyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>>;
142
+ updateOnboardingStateRaw(requestParameters: UpdateOnboardingStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>>;
127
143
  /**
128
- * Step 1 of onboarding: tenant-wide company info. Writes ``industry`` and ``description`` into the current tenant\'s settings JSONB. Restricted to OWNER and ADMIN — invited USERs see a pre-filled, read-only step on the frontend instead. Does not mark onboarding complete; the user finishes via the profile step. Re-running while the wizard is still open overwrites prior values; once onboarding has been completed/skipped, this endpoint returns 409. Post-onboarding edits go through PATCH /v1/tenants/{id}.
129
- * Update Onboarding Company Handler
144
+ * Update Onboarding State Handler
130
145
  */
131
- updateOnboardingCompany(requestParameters: UpdateOnboardingCompanyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
132
- /**
133
- * Creates request options for updateOnboardingProfile without sending the request
134
- * @param {OnboardingProfileRequest} onboardingProfileRequest
135
- * @throws {RequiredError}
136
- * @memberof UsersApiInterface
137
- */
138
- updateOnboardingProfileRequestOpts(requestParameters: UpdateOnboardingProfileRequest): Promise<runtime.RequestOpts>;
139
- /**
140
- * Step 2 (final) of onboarding: per-user profile for the current tenant. Writes name to the User row (global) and job_title to the TenantUser row (per-tenant), then stamps ``onboarding_completed_at`` on the membership. Returns 409 if onboarding has already been completed or skipped — post-onboarding edits go through PATCH /v1/users.
141
- * @summary Update Onboarding Profile Handler
142
- * @param {OnboardingProfileRequest} onboardingProfileRequest
143
- * @param {*} [options] Override http request option.
144
- * @throws {RequiredError}
145
- * @memberof UsersApiInterface
146
- */
147
- updateOnboardingProfileRaw(requestParameters: UpdateOnboardingProfileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>>;
148
- /**
149
- * Step 2 (final) of onboarding: per-user profile for the current tenant. Writes name to the User row (global) and job_title to the TenantUser row (per-tenant), then stamps ``onboarding_completed_at`` on the membership. Returns 409 if onboarding has already been completed or skipped — post-onboarding edits go through PATCH /v1/users.
150
- * Update Onboarding Profile Handler
151
- */
152
- updateOnboardingProfile(requestParameters: UpdateOnboardingProfileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
146
+ updateOnboardingState(requestParameters: UpdateOnboardingStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
153
147
  /**
154
148
  * Creates request options for uploadMyAvatar without sending the request
155
149
  * @param {Blob} file
@@ -204,6 +198,20 @@ export declare class UsersApi extends runtime.BaseAPI implements UsersApiInterfa
204
198
  * Get Me Handler
205
199
  */
206
200
  getMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
201
+ /**
202
+ * Creates request options for requestAccess without sending the request
203
+ */
204
+ requestAccessRequestOpts(): Promise<runtime.RequestOpts>;
205
+ /**
206
+ * Email the owner and admins for access; one request per member per day.
207
+ * Request Access Handler
208
+ */
209
+ requestAccessRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccessRequestResponse>>;
210
+ /**
211
+ * Email the owner and admins for access; one request per member per day.
212
+ * Request Access Handler
213
+ */
214
+ requestAccess(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccessRequestResponse>;
207
215
  /**
208
216
  * Creates request options for skipOnboarding without sending the request
209
217
  */
@@ -233,33 +241,17 @@ export declare class UsersApi extends runtime.BaseAPI implements UsersApiInterfa
233
241
  */
234
242
  updateMe(requestParameters: UpdateMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
235
243
  /**
236
- * Creates request options for updateOnboardingCompany without sending the request
237
- */
238
- updateOnboardingCompanyRequestOpts(requestParameters: UpdateOnboardingCompanyRequest): Promise<runtime.RequestOpts>;
239
- /**
240
- * Step 1 of onboarding: tenant-wide company info. Writes ``industry`` and ``description`` into the current tenant\'s settings JSONB. Restricted to OWNER and ADMIN — invited USERs see a pre-filled, read-only step on the frontend instead. Does not mark onboarding complete; the user finishes via the profile step. Re-running while the wizard is still open overwrites prior values; once onboarding has been completed/skipped, this endpoint returns 409. Post-onboarding edits go through PATCH /v1/tenants/{id}.
241
- * Update Onboarding Company Handler
242
- */
243
- updateOnboardingCompanyRaw(requestParameters: UpdateOnboardingCompanyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>>;
244
- /**
245
- * Step 1 of onboarding: tenant-wide company info. Writes ``industry`` and ``description`` into the current tenant\'s settings JSONB. Restricted to OWNER and ADMIN — invited USERs see a pre-filled, read-only step on the frontend instead. Does not mark onboarding complete; the user finishes via the profile step. Re-running while the wizard is still open overwrites prior values; once onboarding has been completed/skipped, this endpoint returns 409. Post-onboarding edits go through PATCH /v1/tenants/{id}.
246
- * Update Onboarding Company Handler
247
- */
248
- updateOnboardingCompany(requestParameters: UpdateOnboardingCompanyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
249
- /**
250
- * Creates request options for updateOnboardingProfile without sending the request
244
+ * Creates request options for updateOnboardingState without sending the request
251
245
  */
252
- updateOnboardingProfileRequestOpts(requestParameters: UpdateOnboardingProfileRequest): Promise<runtime.RequestOpts>;
246
+ updateOnboardingStateRequestOpts(requestParameters: UpdateOnboardingStateRequest): Promise<runtime.RequestOpts>;
253
247
  /**
254
- * Step 2 (final) of onboarding: per-user profile for the current tenant. Writes name to the User row (global) and job_title to the TenantUser row (per-tenant), then stamps ``onboarding_completed_at`` on the membership. Returns 409 if onboarding has already been completed or skipped — post-onboarding edits go through PATCH /v1/users.
255
- * Update Onboarding Profile Handler
248
+ * Update Onboarding State Handler
256
249
  */
257
- updateOnboardingProfileRaw(requestParameters: UpdateOnboardingProfileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>>;
250
+ updateOnboardingStateRaw(requestParameters: UpdateOnboardingStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>>;
258
251
  /**
259
- * Step 2 (final) of onboarding: per-user profile for the current tenant. Writes name to the User row (global) and job_title to the TenantUser row (per-tenant), then stamps ``onboarding_completed_at`` on the membership. Returns 409 if onboarding has already been completed or skipped — post-onboarding edits go through PATCH /v1/users.
260
- * Update Onboarding Profile Handler
252
+ * Update Onboarding State Handler
261
253
  */
262
- updateOnboardingProfile(requestParameters: UpdateOnboardingProfileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
254
+ updateOnboardingState(requestParameters: UpdateOnboardingStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
263
255
  /**
264
256
  * Creates request options for uploadMyAvatar without sending the request
265
257
  */
@@ -151,9 +151,9 @@ class UsersApi extends runtime.BaseAPI {
151
151
  });
152
152
  }
153
153
  /**
154
- * Creates request options for skipOnboarding without sending the request
154
+ * Creates request options for requestAccess without sending the request
155
155
  */
156
- skipOnboardingRequestOpts() {
156
+ requestAccessRequestOpts() {
157
157
  return __awaiter(this, void 0, void 0, function* () {
158
158
  const queryParameters = {};
159
159
  const headerParameters = {};
@@ -164,7 +164,7 @@ class UsersApi extends runtime.BaseAPI {
164
164
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
165
165
  }
166
166
  }
167
- let urlPath = `/v1/users/me/onboarding/skip`;
167
+ let urlPath = `/v1/users/me/access_requests`;
168
168
  return {
169
169
  path: urlPath,
170
170
  method: 'POST',
@@ -174,37 +174,33 @@ class UsersApi extends runtime.BaseAPI {
174
174
  });
175
175
  }
176
176
  /**
177
- * Mark onboarding complete without writing any profile/company fields. Idempotent — calling this after onboarding is already complete returns the current state unchanged (the CRUD only stamps the timestamp when it is NULL).
178
- * Skip Onboarding Handler
177
+ * Email the owner and admins for access; one request per member per day.
178
+ * Request Access Handler
179
179
  */
180
- skipOnboardingRaw(initOverrides) {
180
+ requestAccessRaw(initOverrides) {
181
181
  return __awaiter(this, void 0, void 0, function* () {
182
- const requestOptions = yield this.skipOnboardingRequestOpts();
182
+ const requestOptions = yield this.requestAccessRequestOpts();
183
183
  const response = yield this.request(requestOptions, initOverrides);
184
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserResponseFromJSON)(jsonValue));
184
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AccessRequestResponseFromJSON)(jsonValue));
185
185
  });
186
186
  }
187
187
  /**
188
- * Mark onboarding complete without writing any profile/company fields. Idempotent — calling this after onboarding is already complete returns the current state unchanged (the CRUD only stamps the timestamp when it is NULL).
189
- * Skip Onboarding Handler
188
+ * Email the owner and admins for access; one request per member per day.
189
+ * Request Access Handler
190
190
  */
191
- skipOnboarding(initOverrides) {
191
+ requestAccess(initOverrides) {
192
192
  return __awaiter(this, void 0, void 0, function* () {
193
- const response = yield this.skipOnboardingRaw(initOverrides);
193
+ const response = yield this.requestAccessRaw(initOverrides);
194
194
  return yield response.value();
195
195
  });
196
196
  }
197
197
  /**
198
- * Creates request options for updateMe without sending the request
198
+ * Creates request options for skipOnboarding without sending the request
199
199
  */
200
- updateMeRequestOpts(requestParameters) {
200
+ skipOnboardingRequestOpts() {
201
201
  return __awaiter(this, void 0, void 0, function* () {
202
- if (requestParameters['updateUserRequest'] == null) {
203
- throw new runtime.RequiredError('updateUserRequest', 'Required parameter "updateUserRequest" was null or undefined when calling updateMe().');
204
- }
205
202
  const queryParameters = {};
206
203
  const headerParameters = {};
207
- headerParameters['Content-Type'] = 'application/json';
208
204
  if (this.configuration && this.configuration.accessToken) {
209
205
  const token = this.configuration.accessToken;
210
206
  const tokenString = yield token("bearerAuth", []);
@@ -212,44 +208,43 @@ class UsersApi extends runtime.BaseAPI {
212
208
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
213
209
  }
214
210
  }
215
- let urlPath = `/v1/users`;
211
+ let urlPath = `/v1/users/me/onboarding/skip`;
216
212
  return {
217
213
  path: urlPath,
218
- method: 'PATCH',
214
+ method: 'POST',
219
215
  headers: headerParameters,
220
216
  query: queryParameters,
221
- body: (0, index_1.UpdateUserRequestToJSON)(requestParameters['updateUserRequest']),
222
217
  };
223
218
  });
224
219
  }
225
220
  /**
226
- * Update the user\'s name and default tenant, and the membership\'s profile. When updating default_tenant_id, the user must belong to the specified tenant.
227
- * Update Me Handler
221
+ * Mark onboarding complete without writing any profile/company fields. Idempotent — calling this after onboarding is already complete returns the current state unchanged (the CRUD only stamps the timestamp when it is NULL).
222
+ * Skip Onboarding Handler
228
223
  */
229
- updateMeRaw(requestParameters, initOverrides) {
224
+ skipOnboardingRaw(initOverrides) {
230
225
  return __awaiter(this, void 0, void 0, function* () {
231
- const requestOptions = yield this.updateMeRequestOpts(requestParameters);
226
+ const requestOptions = yield this.skipOnboardingRequestOpts();
232
227
  const response = yield this.request(requestOptions, initOverrides);
233
228
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserResponseFromJSON)(jsonValue));
234
229
  });
235
230
  }
236
231
  /**
237
- * Update the user\'s name and default tenant, and the membership\'s profile. When updating default_tenant_id, the user must belong to the specified tenant.
238
- * Update Me Handler
232
+ * Mark onboarding complete without writing any profile/company fields. Idempotent — calling this after onboarding is already complete returns the current state unchanged (the CRUD only stamps the timestamp when it is NULL).
233
+ * Skip Onboarding Handler
239
234
  */
240
- updateMe(requestParameters, initOverrides) {
235
+ skipOnboarding(initOverrides) {
241
236
  return __awaiter(this, void 0, void 0, function* () {
242
- const response = yield this.updateMeRaw(requestParameters, initOverrides);
237
+ const response = yield this.skipOnboardingRaw(initOverrides);
243
238
  return yield response.value();
244
239
  });
245
240
  }
246
241
  /**
247
- * Creates request options for updateOnboardingCompany without sending the request
242
+ * Creates request options for updateMe without sending the request
248
243
  */
249
- updateOnboardingCompanyRequestOpts(requestParameters) {
244
+ updateMeRequestOpts(requestParameters) {
250
245
  return __awaiter(this, void 0, void 0, function* () {
251
- if (requestParameters['onboardingCompanyRequest'] == null) {
252
- throw new runtime.RequiredError('onboardingCompanyRequest', 'Required parameter "onboardingCompanyRequest" was null or undefined when calling updateOnboardingCompany().');
246
+ if (requestParameters['updateUserRequest'] == null) {
247
+ throw new runtime.RequiredError('updateUserRequest', 'Required parameter "updateUserRequest" was null or undefined when calling updateMe().');
253
248
  }
254
249
  const queryParameters = {};
255
250
  const headerParameters = {};
@@ -261,44 +256,44 @@ class UsersApi extends runtime.BaseAPI {
261
256
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
262
257
  }
263
258
  }
264
- let urlPath = `/v1/users/me/onboarding/company`;
259
+ let urlPath = `/v1/users`;
265
260
  return {
266
261
  path: urlPath,
267
262
  method: 'PATCH',
268
263
  headers: headerParameters,
269
264
  query: queryParameters,
270
- body: (0, index_1.OnboardingCompanyRequestToJSON)(requestParameters['onboardingCompanyRequest']),
265
+ body: (0, index_1.UpdateUserRequestToJSON)(requestParameters['updateUserRequest']),
271
266
  };
272
267
  });
273
268
  }
274
269
  /**
275
- * Step 1 of onboarding: tenant-wide company info. Writes ``industry`` and ``description`` into the current tenant\'s settings JSONB. Restricted to OWNER and ADMIN — invited USERs see a pre-filled, read-only step on the frontend instead. Does not mark onboarding complete; the user finishes via the profile step. Re-running while the wizard is still open overwrites prior values; once onboarding has been completed/skipped, this endpoint returns 409. Post-onboarding edits go through PATCH /v1/tenants/{id}.
276
- * Update Onboarding Company Handler
270
+ * Update the user\'s name and default tenant, and the membership\'s profile. When updating default_tenant_id, the user must belong to the specified tenant.
271
+ * Update Me Handler
277
272
  */
278
- updateOnboardingCompanyRaw(requestParameters, initOverrides) {
273
+ updateMeRaw(requestParameters, initOverrides) {
279
274
  return __awaiter(this, void 0, void 0, function* () {
280
- const requestOptions = yield this.updateOnboardingCompanyRequestOpts(requestParameters);
275
+ const requestOptions = yield this.updateMeRequestOpts(requestParameters);
281
276
  const response = yield this.request(requestOptions, initOverrides);
282
277
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserResponseFromJSON)(jsonValue));
283
278
  });
284
279
  }
285
280
  /**
286
- * Step 1 of onboarding: tenant-wide company info. Writes ``industry`` and ``description`` into the current tenant\'s settings JSONB. Restricted to OWNER and ADMIN — invited USERs see a pre-filled, read-only step on the frontend instead. Does not mark onboarding complete; the user finishes via the profile step. Re-running while the wizard is still open overwrites prior values; once onboarding has been completed/skipped, this endpoint returns 409. Post-onboarding edits go through PATCH /v1/tenants/{id}.
287
- * Update Onboarding Company Handler
281
+ * Update the user\'s name and default tenant, and the membership\'s profile. When updating default_tenant_id, the user must belong to the specified tenant.
282
+ * Update Me Handler
288
283
  */
289
- updateOnboardingCompany(requestParameters, initOverrides) {
284
+ updateMe(requestParameters, initOverrides) {
290
285
  return __awaiter(this, void 0, void 0, function* () {
291
- const response = yield this.updateOnboardingCompanyRaw(requestParameters, initOverrides);
286
+ const response = yield this.updateMeRaw(requestParameters, initOverrides);
292
287
  return yield response.value();
293
288
  });
294
289
  }
295
290
  /**
296
- * Creates request options for updateOnboardingProfile without sending the request
291
+ * Creates request options for updateOnboardingState without sending the request
297
292
  */
298
- updateOnboardingProfileRequestOpts(requestParameters) {
293
+ updateOnboardingStateRequestOpts(requestParameters) {
299
294
  return __awaiter(this, void 0, void 0, function* () {
300
- if (requestParameters['onboardingProfileRequest'] == null) {
301
- throw new runtime.RequiredError('onboardingProfileRequest', 'Required parameter "onboardingProfileRequest" was null or undefined when calling updateOnboardingProfile().');
295
+ if (requestParameters['onboardingStateUpdate'] == null) {
296
+ throw new runtime.RequiredError('onboardingStateUpdate', 'Required parameter "onboardingStateUpdate" was null or undefined when calling updateOnboardingState().');
302
297
  }
303
298
  const queryParameters = {};
304
299
  const headerParameters = {};
@@ -310,34 +305,32 @@ class UsersApi extends runtime.BaseAPI {
310
305
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
311
306
  }
312
307
  }
313
- let urlPath = `/v1/users/me/onboarding/profile`;
308
+ let urlPath = `/v1/users/me/onboarding`;
314
309
  return {
315
310
  path: urlPath,
316
311
  method: 'PATCH',
317
312
  headers: headerParameters,
318
313
  query: queryParameters,
319
- body: (0, index_1.OnboardingProfileRequestToJSON)(requestParameters['onboardingProfileRequest']),
314
+ body: (0, index_1.OnboardingStateUpdateToJSON)(requestParameters['onboardingStateUpdate']),
320
315
  };
321
316
  });
322
317
  }
323
318
  /**
324
- * Step 2 (final) of onboarding: per-user profile for the current tenant. Writes name to the User row (global) and job_title to the TenantUser row (per-tenant), then stamps ``onboarding_completed_at`` on the membership. Returns 409 if onboarding has already been completed or skipped — post-onboarding edits go through PATCH /v1/users.
325
- * Update Onboarding Profile Handler
319
+ * Update Onboarding State Handler
326
320
  */
327
- updateOnboardingProfileRaw(requestParameters, initOverrides) {
321
+ updateOnboardingStateRaw(requestParameters, initOverrides) {
328
322
  return __awaiter(this, void 0, void 0, function* () {
329
- const requestOptions = yield this.updateOnboardingProfileRequestOpts(requestParameters);
323
+ const requestOptions = yield this.updateOnboardingStateRequestOpts(requestParameters);
330
324
  const response = yield this.request(requestOptions, initOverrides);
331
325
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserResponseFromJSON)(jsonValue));
332
326
  });
333
327
  }
334
328
  /**
335
- * Step 2 (final) of onboarding: per-user profile for the current tenant. Writes name to the User row (global) and job_title to the TenantUser row (per-tenant), then stamps ``onboarding_completed_at`` on the membership. Returns 409 if onboarding has already been completed or skipped — post-onboarding edits go through PATCH /v1/users.
336
- * Update Onboarding Profile Handler
329
+ * Update Onboarding State Handler
337
330
  */
338
- updateOnboardingProfile(requestParameters, initOverrides) {
331
+ updateOnboardingState(requestParameters, initOverrides) {
339
332
  return __awaiter(this, void 0, void 0, function* () {
340
- const response = yield this.updateOnboardingProfileRaw(requestParameters, initOverrides);
333
+ const response = yield this.updateOnboardingStateRaw(requestParameters, initOverrides);
341
334
  return yield response.value();
342
335
  });
343
336
  }
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ChangePhoneNumberRequest, CreatePasswordUserRequest, CreatePhonePasswordUserRequest, DirectorySyncResponse, EmailSentResponse, EmailVerificationRequest, ErrorResponse, IdpType, PasswordResetRequest, PasswordResetTokenResponse, PasswordResetWithTokenRequest, PhoneValidationResponse, PhoneVerificationRequest, RequestPhoneChangeRequest, ResponseSendPwResetEmail, SSOInitiateResponse, SendPasswordResetRequest, SignInRequest, UserResponse, ValidateResetCodeRequest } from '../models/index';
13
+ import type { ChangePhoneNumberRequest, CreatePasswordUserRequest, CreatePhonePasswordUserRequest, DirectorySyncResponse, EmailSentResponse, EmailVerificationRequest, ErrorResponse, IdpType, PasswordResetRequest, PasswordResetTokenResponse, PasswordResetWithTokenRequest, PhoneValidationResponse, PhoneVerificationRequest, RequestPhoneChangeRequest, ResponseSendPwResetEmail, SSOInitiateResponse, SendPasswordResetRequest, SignInRequest, SignUpResponse, UserResponse, ValidateResetCodeRequest } from '../models/index';
14
14
  export interface ChangePhoneNumberOperationRequest {
15
15
  changePhoneNumberRequest: ChangePhoneNumberRequest;
16
16
  }
@@ -32,6 +32,7 @@ export interface FanweiDirectorySync0Request {
32
32
  }
33
33
  export interface InitiateSsoRequest {
34
34
  provider: IdpType;
35
+ inviteId?: string | null;
35
36
  tenantId?: string | null;
36
37
  }
37
38
  export interface Oauth2CallbackRequest {
@@ -116,11 +117,11 @@ export interface AuthApiInterface {
116
117
  * @throws {RequiredError}
117
118
  * @memberof AuthApiInterface
118
119
  */
119
- createPasswordUserRaw(requestParameters: CreatePasswordUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>>;
120
+ createPasswordUserRaw(requestParameters: CreatePasswordUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SignUpResponse>>;
120
121
  /**
121
122
  * Create Password User Handler
122
123
  */
123
- createPasswordUser(requestParameters: CreatePasswordUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
124
+ createPasswordUser(requestParameters: CreatePasswordUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SignUpResponse>;
124
125
  /**
125
126
  * Creates request options for createPhonePasswordUser without sending the request
126
127
  * @param {CreatePhonePasswordUserRequest} createPhonePasswordUserRequest
@@ -195,6 +196,7 @@ export interface AuthApiInterface {
195
196
  /**
196
197
  * Creates request options for initiateSso without sending the request
197
198
  * @param {IdpType} provider Provider to initiate SSO with
199
+ * @param {string} [inviteId] Invite to resolve if this sign-in creates the account; carried in the session to the callback like the OAuth state.
198
200
  * @param {string} [tenantId] Tenant ID to initiate SSO with
199
201
  * @throws {RequiredError}
200
202
  * @memberof AuthApiInterface
@@ -204,6 +206,7 @@ export interface AuthApiInterface {
204
206
  * Initiate SSO with the given provider and tenant ID.
205
207
  * @summary Initiate Sso Handler
206
208
  * @param {IdpType} provider Provider to initiate SSO with
209
+ * @param {string} [inviteId] Invite to resolve if this sign-in creates the account; carried in the session to the callback like the OAuth state.
207
210
  * @param {string} [tenantId] Tenant ID to initiate SSO with
208
211
  * @param {*} [options] Override http request option.
209
212
  * @throws {RequiredError}
@@ -240,12 +243,12 @@ export interface AuthApiInterface {
240
243
  * @throws {RequiredError}
241
244
  * @memberof AuthApiInterface
242
245
  */
243
- oauth2CallbackRaw(requestParameters: Oauth2CallbackRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>>;
246
+ oauth2CallbackRaw(requestParameters: Oauth2CallbackRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SignUpResponse>>;
244
247
  /**
245
248
  * Handle OAuth2 callback from the given OAuth client.
246
249
  * Oauth2 Callback Handler
247
250
  */
248
- oauth2Callback(requestParameters: Oauth2CallbackRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
251
+ oauth2Callback(requestParameters: Oauth2CallbackRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SignUpResponse>;
249
252
  /**
250
253
  * Creates request options for pwEmailVerification without sending the request
251
254
  * @param {EmailVerificationRequest} emailVerificationRequest
@@ -502,11 +505,11 @@ export declare class AuthApi extends runtime.BaseAPI implements AuthApiInterface
502
505
  /**
503
506
  * Create Password User Handler
504
507
  */
505
- createPasswordUserRaw(requestParameters: CreatePasswordUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>>;
508
+ createPasswordUserRaw(requestParameters: CreatePasswordUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SignUpResponse>>;
506
509
  /**
507
510
  * Create Password User Handler
508
511
  */
509
- createPasswordUser(requestParameters: CreatePasswordUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
512
+ createPasswordUser(requestParameters: CreatePasswordUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SignUpResponse>;
510
513
  /**
511
514
  * Creates request options for createPhonePasswordUser without sending the request
512
515
  */
@@ -571,12 +574,12 @@ export declare class AuthApi extends runtime.BaseAPI implements AuthApiInterface
571
574
  * Handle OAuth2 callback from the given OAuth client.
572
575
  * Oauth2 Callback Handler
573
576
  */
574
- oauth2CallbackRaw(requestParameters: Oauth2CallbackRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponse>>;
577
+ oauth2CallbackRaw(requestParameters: Oauth2CallbackRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SignUpResponse>>;
575
578
  /**
576
579
  * Handle OAuth2 callback from the given OAuth client.
577
580
  * Oauth2 Callback Handler
578
581
  */
579
- oauth2Callback(requestParameters: Oauth2CallbackRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResponse>;
582
+ oauth2Callback(requestParameters: Oauth2CallbackRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SignUpResponse>;
580
583
  /**
581
584
  * Creates request options for pwEmailVerification without sending the request
582
585
  */
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ChangePhoneNumberRequestToJSON, CreatePasswordUserRequestToJSON, CreatePhonePasswordUserRequestToJSON, DirectorySyncResponseFromJSON, EmailSentResponseFromJSON, EmailVerificationRequestToJSON, ErrorResponseFromJSON, PasswordResetRequestToJSON, PasswordResetTokenResponseFromJSON, PasswordResetWithTokenRequestToJSON, PhoneValidationResponseFromJSON, PhoneVerificationRequestToJSON, RequestPhoneChangeRequestToJSON, ResponseSendPwResetEmailFromJSON, SSOInitiateResponseFromJSON, SendPasswordResetRequestToJSON, SignInRequestToJSON, UserResponseFromJSON, ValidateResetCodeRequestToJSON, } from '../models/index';
24
+ import { ChangePhoneNumberRequestToJSON, CreatePasswordUserRequestToJSON, CreatePhonePasswordUserRequestToJSON, DirectorySyncResponseFromJSON, EmailSentResponseFromJSON, EmailVerificationRequestToJSON, ErrorResponseFromJSON, PasswordResetRequestToJSON, PasswordResetTokenResponseFromJSON, PasswordResetWithTokenRequestToJSON, PhoneValidationResponseFromJSON, PhoneVerificationRequestToJSON, RequestPhoneChangeRequestToJSON, ResponseSendPwResetEmailFromJSON, SSOInitiateResponseFromJSON, SendPasswordResetRequestToJSON, SignInRequestToJSON, SignUpResponseFromJSON, UserResponseFromJSON, ValidateResetCodeRequestToJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -103,7 +103,7 @@ export class AuthApi extends runtime.BaseAPI {
103
103
  return __awaiter(this, void 0, void 0, function* () {
104
104
  const requestOptions = yield this.createPasswordUserRequestOpts(requestParameters);
105
105
  const response = yield this.request(requestOptions, initOverrides);
106
- return new runtime.JSONApiResponse(response, (jsonValue) => UserResponseFromJSON(jsonValue));
106
+ return new runtime.JSONApiResponse(response, (jsonValue) => SignUpResponseFromJSON(jsonValue));
107
107
  });
108
108
  }
109
109
  /**
@@ -254,6 +254,9 @@ export class AuthApi extends runtime.BaseAPI {
254
254
  throw new runtime.RequiredError('provider', 'Required parameter "provider" was null or undefined when calling initiateSso().');
255
255
  }
256
256
  const queryParameters = {};
257
+ if (requestParameters['inviteId'] != null) {
258
+ queryParameters['invite_id'] = requestParameters['inviteId'];
259
+ }
257
260
  if (requestParameters['provider'] != null) {
258
261
  queryParameters['provider'] = requestParameters['provider'];
259
262
  }
@@ -336,7 +339,7 @@ export class AuthApi extends runtime.BaseAPI {
336
339
  return __awaiter(this, void 0, void 0, function* () {
337
340
  const requestOptions = yield this.oauth2CallbackRequestOpts(requestParameters);
338
341
  const response = yield this.request(requestOptions, initOverrides);
339
- return new runtime.JSONApiResponse(response, (jsonValue) => UserResponseFromJSON(jsonValue));
342
+ return new runtime.JSONApiResponse(response, (jsonValue) => SignUpResponseFromJSON(jsonValue));
340
343
  });
341
344
  }
342
345
  /**
@@ -16,8 +16,9 @@ export interface DeleteFeedbackRequest {
16
16
  }
17
17
  export interface ListFeedbackRequest {
18
18
  targetType?: FeedbackTargetType;
19
- targetId?: string | null;
19
+ targetId?: Array<string> | null;
20
20
  rating?: FeedbackRating;
21
+ mine?: boolean;
21
22
  sortBy?: FeedbackOrder;
22
23
  sortDir?: SortDirection;
23
24
  limit?: number;
@@ -61,8 +62,9 @@ export interface FeedbackApiInterface {
61
62
  /**
62
63
  * Creates request options for listFeedback without sending the request
63
64
  * @param {FeedbackTargetType} [targetType]
64
- * @param {string} [targetId]
65
+ * @param {Array<string>} [targetId] Repeatable. Feedback on any of these targets, so a thread page reads every visible message\&#39;s feedback in one call; more than 200 ids is a 422 (send the page you render, not the thread).
65
66
  * @param {FeedbackRating} [rating]
67
+ * @param {boolean} [mine] Only the caller\&#39;s own feedback, whatever their role, so an owner or admin reading a thread sees their own vote on each message.
66
68
  * @param {FeedbackOrder} [sortBy] Field to sort feedback by (default: CREATED_AT)
67
69
  * @param {SortDirection} [sortDir] Sort direction; overrides the field\&#39;s natural default
68
70
  * @param {number} [limit] Number of items per page
@@ -76,11 +78,12 @@ export interface FeedbackApiInterface {
76
78
  */
77
79
  listFeedbackRequestOpts(requestParameters: ListFeedbackRequest): Promise<runtime.RequestOpts>;
78
80
  /**
79
- * List feedback entries with optional filters. USER role: only returns their own feedback. OWNER/ADMIN role: returns feedback from all users.
81
+ * List feedback entries with optional filters. USER role: only returns their own feedback. OWNER/ADMIN role: returns feedback from all users unless `mine` is set.
80
82
  * @summary List Feedback Handler
81
83
  * @param {FeedbackTargetType} [targetType]
82
- * @param {string} [targetId]
84
+ * @param {Array<string>} [targetId] Repeatable. Feedback on any of these targets, so a thread page reads every visible message\&#39;s feedback in one call; more than 200 ids is a 422 (send the page you render, not the thread).
83
85
  * @param {FeedbackRating} [rating]
86
+ * @param {boolean} [mine] Only the caller\&#39;s own feedback, whatever their role, so an owner or admin reading a thread sees their own vote on each message.
84
87
  * @param {FeedbackOrder} [sortBy] Field to sort feedback by (default: CREATED_AT)
85
88
  * @param {SortDirection} [sortDir] Sort direction; overrides the field\&#39;s natural default
86
89
  * @param {number} [limit] Number of items per page
@@ -95,7 +98,7 @@ export interface FeedbackApiInterface {
95
98
  */
96
99
  listFeedbackRaw(requestParameters: ListFeedbackRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseFeedbackEventResponse>>;
97
100
  /**
98
- * List feedback entries with optional filters. USER role: only returns their own feedback. OWNER/ADMIN role: returns feedback from all users.
101
+ * List feedback entries with optional filters. USER role: only returns their own feedback. OWNER/ADMIN role: returns feedback from all users unless `mine` is set.
99
102
  * List Feedback Handler
100
103
  */
101
104
  listFeedback(requestParameters: ListFeedbackRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseFeedbackEventResponse>;
@@ -144,12 +147,12 @@ export declare class FeedbackApi extends runtime.BaseAPI implements FeedbackApiI
144
147
  */
145
148
  listFeedbackRequestOpts(requestParameters: ListFeedbackRequest): Promise<runtime.RequestOpts>;
146
149
  /**
147
- * List feedback entries with optional filters. USER role: only returns their own feedback. OWNER/ADMIN role: returns feedback from all users.
150
+ * List feedback entries with optional filters. USER role: only returns their own feedback. OWNER/ADMIN role: returns feedback from all users unless `mine` is set.
148
151
  * List Feedback Handler
149
152
  */
150
153
  listFeedbackRaw(requestParameters: ListFeedbackRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseFeedbackEventResponse>>;
151
154
  /**
152
- * List feedback entries with optional filters. USER role: only returns their own feedback. OWNER/ADMIN role: returns feedback from all users.
155
+ * List feedback entries with optional filters. USER role: only returns their own feedback. OWNER/ADMIN role: returns feedback from all users unless `mine` is set.
153
156
  * List Feedback Handler
154
157
  */
155
158
  listFeedback(requestParameters?: ListFeedbackRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseFeedbackEventResponse>;
@@ -88,6 +88,9 @@ export class FeedbackApi extends runtime.BaseAPI {
88
88
  if (requestParameters['rating'] != null) {
89
89
  queryParameters['rating'] = requestParameters['rating'];
90
90
  }
91
+ if (requestParameters['mine'] != null) {
92
+ queryParameters['mine'] = requestParameters['mine'];
93
+ }
91
94
  if (requestParameters['sortBy'] != null) {
92
95
  queryParameters['sort_by'] = requestParameters['sortBy'];
93
96
  }
@@ -130,7 +133,7 @@ export class FeedbackApi extends runtime.BaseAPI {
130
133
  });
131
134
  }
132
135
  /**
133
- * List feedback entries with optional filters. USER role: only returns their own feedback. OWNER/ADMIN role: returns feedback from all users.
136
+ * List feedback entries with optional filters. USER role: only returns their own feedback. OWNER/ADMIN role: returns feedback from all users unless `mine` is set.
134
137
  * List Feedback Handler
135
138
  */
136
139
  listFeedbackRaw(requestParameters, initOverrides) {
@@ -141,7 +144,7 @@ export class FeedbackApi extends runtime.BaseAPI {
141
144
  });
142
145
  }
143
146
  /**
144
- * List feedback entries with optional filters. USER role: only returns their own feedback. OWNER/ADMIN role: returns feedback from all users.
147
+ * List feedback entries with optional filters. USER role: only returns their own feedback. OWNER/ADMIN role: returns feedback from all users unless `mine` is set.
145
148
  * List Feedback Handler
146
149
  */
147
150
  listFeedback() {