@knowledge-stack/ksapi 3.11.0 → 3.13.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
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Knowledge Stack API
6
+ * Knowledge Stack backend API for authentication and knowledge management. ## Integrating (RPA / machine clients) **Base URL.** Knowledge Stack is self-hosted — point at your own deployment host (see `servers`). The `localhost` entry is for local development only. **Authentication.** Send `Authorization: Bearer <api-key>` on every request. Mint an API key once via `POST /v1/api-keys` from a signed-in browser session; the raw `sk-user-...` secret is returned **only** at creation, so store it then. A key inherits its owning user\'s live tenant role and path permissions — create RPA keys from a least-privilege user, and set `expires_at` for rotation. The `ks_uat` cookie scheme is browser-only and cannot be used by headless clients. **Async work is polled, not pushed.** There are no outbound webhooks. - `POST /v1/documents/ingest` returns `201` immediately with a `workflow_id`; poll `GET /v1/system-jobs/document_versions/{workflow_id}` until `status` is terminal (anything other than `pending`/`processing`). The `Location` response header points at this poll resource. - `POST /v1/workflow-runs/{run_id}/start` returns `202`; poll `GET /v1/workflow-runs/{run_id}` until `execution_state` is `COMPLETED` or `FAILED`. The `Location` header points at the run resource. - `POST /v1/agent/ask` is **synchronous** — it blocks until the agent finishes and returns the answer inline. Use a generous HTTP timeout. **Pagination.** List endpoints accept `limit`/`offset` and return `{items, total, limit, offset}`. **Errors.** Every non-2xx body is `{detail, code, request_id}`. `code` is a stable value from a closed set (see the `ErrorResponse` schema\'s `code` enum) — branch on it rather than parsing `detail`. Quota rejections return `429` with a `Retry-After` header; transient lock contention returns a retryable `503`. Quote `request_id` (also the `x-request-id` response header) to support. **Idempotency.** `POST /v1/workflow-runs` accepts an `idempotency_key` to dedupe retried run creation. `agent/ask` charges one message *before* running and does not refund a client-cancelled call.
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.TenantUserJoinMethod = void 0;
17
+ exports.instanceOfTenantUserJoinMethod = instanceOfTenantUserJoinMethod;
18
+ exports.TenantUserJoinMethodFromJSON = TenantUserJoinMethodFromJSON;
19
+ exports.TenantUserJoinMethodFromJSONTyped = TenantUserJoinMethodFromJSONTyped;
20
+ exports.TenantUserJoinMethodToJSON = TenantUserJoinMethodToJSON;
21
+ exports.TenantUserJoinMethodToJSONTyped = TenantUserJoinMethodToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.TenantUserJoinMethod = {
27
+ Creator: 'CREATOR',
28
+ Invited: 'INVITED',
29
+ Added: 'ADDED'
30
+ };
31
+ function instanceOfTenantUserJoinMethod(value) {
32
+ for (const key in exports.TenantUserJoinMethod) {
33
+ if (Object.prototype.hasOwnProperty.call(exports.TenantUserJoinMethod, key)) {
34
+ if (exports.TenantUserJoinMethod[key] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+ function TenantUserJoinMethodFromJSON(json) {
42
+ return TenantUserJoinMethodFromJSONTyped(json, false);
43
+ }
44
+ function TenantUserJoinMethodFromJSONTyped(json, ignoreDiscriminator) {
45
+ return json;
46
+ }
47
+ function TenantUserJoinMethodToJSON(value) {
48
+ return value;
49
+ }
50
+ function TenantUserJoinMethodToJSONTyped(value, ignoreDiscriminator) {
51
+ return value;
52
+ }
@@ -9,8 +9,12 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { TenantUserJoinMethod } from './TenantUserJoinMethod';
12
13
  import type { IdpType } from './IdpType';
13
14
  import type { TenantUserRole } from './TenantUserRole';
15
+ import type { OnboardingState } from './OnboardingState';
16
+ import type { UserInfo } from './UserInfo';
17
+ import type { AddedBy } from './AddedBy';
14
18
  /**
15
19
  *
16
20
  * @export
@@ -101,6 +105,42 @@ export interface UserResponse {
101
105
  * @memberof UserResponse
102
106
  */
103
107
  onboardingCompletedAt?: Date | null;
108
+ /**
109
+ *
110
+ * @type {TenantUserJoinMethod}
111
+ * @memberof UserResponse
112
+ */
113
+ joinMethod: TenantUserJoinMethod;
114
+ /**
115
+ * Resume step and guide progress for the current membership.
116
+ * @type {OnboardingState}
117
+ * @memberof UserResponse
118
+ */
119
+ onboardingState?: OnboardingState | null;
120
+ /**
121
+ * Who sent the accepted invite that created the current membership. NULL when the membership did not come from an email invite, and on the sign-in and sign-up responses; read it from GET /v1/users/me.
122
+ * @type {UserInfo}
123
+ * @memberof UserResponse
124
+ */
125
+ invitedBy?: UserInfo | null;
126
+ /**
127
+ *
128
+ * @type {AddedBy}
129
+ * @memberof UserResponse
130
+ */
131
+ addedBy?: AddedBy;
132
+ /**
133
+ * Profile fields the identity provider overwrites on every sync, so clients render them read-only. Empty unless directory-managed.
134
+ * @type {Array<string>}
135
+ * @memberof UserResponse
136
+ */
137
+ idpManagedFields?: Array<string>;
138
+ /**
139
+ * The current tenant's onboarding switch: true forces the flow on, false hides it, NULL follows the deployment default.
140
+ * @type {boolean}
141
+ * @memberof UserResponse
142
+ */
143
+ onboardingEnabled?: boolean | null;
104
144
  }
105
145
  export declare const UserResponsePropertyValidationAttributesMap: {
106
146
  [property: string]: {
@@ -19,8 +19,12 @@ exports.UserResponseFromJSON = UserResponseFromJSON;
19
19
  exports.UserResponseFromJSONTyped = UserResponseFromJSONTyped;
20
20
  exports.UserResponseToJSON = UserResponseToJSON;
21
21
  exports.UserResponseToJSONTyped = UserResponseToJSONTyped;
22
+ const TenantUserJoinMethod_1 = require("./TenantUserJoinMethod");
22
23
  const IdpType_1 = require("./IdpType");
23
24
  const TenantUserRole_1 = require("./TenantUserRole");
25
+ const OnboardingState_1 = require("./OnboardingState");
26
+ const UserInfo_1 = require("./UserInfo");
27
+ const AddedBy_1 = require("./AddedBy");
24
28
  exports.UserResponsePropertyValidationAttributesMap = {};
25
29
  /**
26
30
  * Check if a given object implements the UserResponse interface.
@@ -42,6 +46,8 @@ function instanceOfUserResponse(value) {
42
46
  return false;
43
47
  if (!('defaultTenantId' in value) || value['defaultTenantId'] === undefined)
44
48
  return false;
49
+ if (!('joinMethod' in value) || value['joinMethod'] === undefined)
50
+ return false;
45
51
  return true;
46
52
  }
47
53
  function UserResponseFromJSON(json) {
@@ -66,6 +72,12 @@ function UserResponseFromJSONTyped(json, ignoreDiscriminator) {
66
72
  'bio': json['bio'] == null ? undefined : json['bio'],
67
73
  'avatarUrl': json['avatar_url'] == null ? undefined : json['avatar_url'],
68
74
  'onboardingCompletedAt': json['onboarding_completed_at'] == null ? undefined : (new Date(json['onboarding_completed_at'])),
75
+ 'joinMethod': (0, TenantUserJoinMethod_1.TenantUserJoinMethodFromJSON)(json['join_method']),
76
+ 'onboardingState': json['onboarding_state'] == null ? undefined : (0, OnboardingState_1.OnboardingStateFromJSON)(json['onboarding_state']),
77
+ 'invitedBy': json['invited_by'] == null ? undefined : (0, UserInfo_1.UserInfoFromJSON)(json['invited_by']),
78
+ 'addedBy': json['added_by'] == null ? undefined : (0, AddedBy_1.AddedByFromJSON)(json['added_by']),
79
+ 'idpManagedFields': json['idp_managed_fields'] == null ? undefined : json['idp_managed_fields'],
80
+ 'onboardingEnabled': json['onboarding_enabled'] == null ? undefined : json['onboarding_enabled'],
69
81
  };
70
82
  }
71
83
  function UserResponseToJSON(json) {
@@ -90,5 +102,11 @@ function UserResponseToJSONTyped(value, ignoreDiscriminator = false) {
90
102
  'bio': value['bio'],
91
103
  'avatar_url': value['avatarUrl'],
92
104
  'onboarding_completed_at': value['onboardingCompletedAt'] == null ? value['onboardingCompletedAt'] : value['onboardingCompletedAt'].toISOString(),
105
+ 'join_method': (0, TenantUserJoinMethod_1.TenantUserJoinMethodToJSON)(value['joinMethod']),
106
+ 'onboarding_state': (0, OnboardingState_1.OnboardingStateToJSON)(value['onboardingState']),
107
+ 'invited_by': (0, UserInfo_1.UserInfoToJSON)(value['invitedBy']),
108
+ 'added_by': (0, AddedBy_1.AddedByToJSON)(value['addedBy']),
109
+ 'idp_managed_fields': value['idpManagedFields'],
110
+ 'onboarding_enabled': value['onboardingEnabled'],
93
111
  };
94
112
  }
@@ -1,8 +1,10 @@
1
1
  export * from './AcceptDisclaimerRequest';
2
2
  export * from './AcceptInviteResponse';
3
3
  export * from './AccessCheckResponse';
4
+ export * from './AccessRequestResponse';
4
5
  export * from './ActivateSkillVersionRequest';
5
6
  export * from './AddMemberRequest';
7
+ export * from './AddedBy';
6
8
  export * from './AncestryResponse';
7
9
  export * from './ApiAuthConfig';
8
10
  export * from './ApiConnectionRequestRequest';
@@ -156,6 +158,9 @@ export * from './GroupMemberOrder';
156
158
  export * from './GroupPermissionOrder';
157
159
  export * from './GroupPermissionResponse';
158
160
  export * from './GroupResponse';
161
+ export * from './GuideModuleProgress';
162
+ export * from './GuideModuleStatus';
163
+ export * from './GuideModules';
159
164
  export * from './HTTPValidationError';
160
165
  export * from './HealthCheckResponse';
161
166
  export * from './HourHistogramResponse';
@@ -175,6 +180,9 @@ export * from './InstructionSnapshot';
175
180
  export * from './InviteLinkSettingsRequest';
176
181
  export * from './InviteLinkSettingsResponse';
177
182
  export * from './InviteOrder';
183
+ export * from './InvitePreviewResponse';
184
+ export * from './InvitePreviewState';
185
+ export * from './InviteRejection';
178
186
  export * from './InviteResponse';
179
187
  export * from './InviteStatus';
180
188
  export * from './InviteUserRequest';
@@ -201,8 +209,9 @@ export * from './ModelTableRequest';
201
209
  export * from './ModelTableResult';
202
210
  export * from './NetworkClass';
203
211
  export * from './NonFilesystemReferenceType';
204
- export * from './OnboardingCompanyRequest';
205
- export * from './OnboardingProfileRequest';
212
+ export * from './OnboardingState';
213
+ export * from './OnboardingStateUpdate';
214
+ export * from './OnboardingStep';
206
215
  export * from './PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDat';
207
216
  export * from './PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator';
208
217
  export * from './PaginatedResponseBillingPaymentResponse';
@@ -286,6 +295,7 @@ export * from './SetApprovalStateRequest';
286
295
  export * from './SetWorkflowRunApprovalRequest';
287
296
  export * from './SheetVisibilityChange';
288
297
  export * from './SignInRequest';
298
+ export * from './SignUpResponse';
289
299
  export * from './SkillFile';
290
300
  export * from './SkillOrder';
291
301
  export * from './SkillResponse';
@@ -319,6 +329,7 @@ export * from './TenantSettingsResponse';
319
329
  export * from './TenantSettingsUpdate';
320
330
  export * from './TenantSubscriptionResponse';
321
331
  export * from './TenantUserEditRequest';
332
+ export * from './TenantUserJoinMethod';
322
333
  export * from './TenantUserOrder';
323
334
  export * from './TenantUserResponse';
324
335
  export * from './TenantUserRole';
@@ -19,8 +19,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  __exportStar(require("./AcceptDisclaimerRequest"), exports);
20
20
  __exportStar(require("./AcceptInviteResponse"), exports);
21
21
  __exportStar(require("./AccessCheckResponse"), exports);
22
+ __exportStar(require("./AccessRequestResponse"), exports);
22
23
  __exportStar(require("./ActivateSkillVersionRequest"), exports);
23
24
  __exportStar(require("./AddMemberRequest"), exports);
25
+ __exportStar(require("./AddedBy"), exports);
24
26
  __exportStar(require("./AncestryResponse"), exports);
25
27
  __exportStar(require("./ApiAuthConfig"), exports);
26
28
  __exportStar(require("./ApiConnectionRequestRequest"), exports);
@@ -174,6 +176,9 @@ __exportStar(require("./GroupMemberOrder"), exports);
174
176
  __exportStar(require("./GroupPermissionOrder"), exports);
175
177
  __exportStar(require("./GroupPermissionResponse"), exports);
176
178
  __exportStar(require("./GroupResponse"), exports);
179
+ __exportStar(require("./GuideModuleProgress"), exports);
180
+ __exportStar(require("./GuideModuleStatus"), exports);
181
+ __exportStar(require("./GuideModules"), exports);
177
182
  __exportStar(require("./HTTPValidationError"), exports);
178
183
  __exportStar(require("./HealthCheckResponse"), exports);
179
184
  __exportStar(require("./HourHistogramResponse"), exports);
@@ -193,6 +198,9 @@ __exportStar(require("./InstructionSnapshot"), exports);
193
198
  __exportStar(require("./InviteLinkSettingsRequest"), exports);
194
199
  __exportStar(require("./InviteLinkSettingsResponse"), exports);
195
200
  __exportStar(require("./InviteOrder"), exports);
201
+ __exportStar(require("./InvitePreviewResponse"), exports);
202
+ __exportStar(require("./InvitePreviewState"), exports);
203
+ __exportStar(require("./InviteRejection"), exports);
196
204
  __exportStar(require("./InviteResponse"), exports);
197
205
  __exportStar(require("./InviteStatus"), exports);
198
206
  __exportStar(require("./InviteUserRequest"), exports);
@@ -219,8 +227,9 @@ __exportStar(require("./ModelTableRequest"), exports);
219
227
  __exportStar(require("./ModelTableResult"), exports);
220
228
  __exportStar(require("./NetworkClass"), exports);
221
229
  __exportStar(require("./NonFilesystemReferenceType"), exports);
222
- __exportStar(require("./OnboardingCompanyRequest"), exports);
223
- __exportStar(require("./OnboardingProfileRequest"), exports);
230
+ __exportStar(require("./OnboardingState"), exports);
231
+ __exportStar(require("./OnboardingStateUpdate"), exports);
232
+ __exportStar(require("./OnboardingStep"), exports);
224
233
  __exportStar(require("./PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDat"), exports);
225
234
  __exportStar(require("./PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator"), exports);
226
235
  __exportStar(require("./PaginatedResponseBillingPaymentResponse"), exports);
@@ -304,6 +313,7 @@ __exportStar(require("./SetApprovalStateRequest"), exports);
304
313
  __exportStar(require("./SetWorkflowRunApprovalRequest"), exports);
305
314
  __exportStar(require("./SheetVisibilityChange"), exports);
306
315
  __exportStar(require("./SignInRequest"), exports);
316
+ __exportStar(require("./SignUpResponse"), exports);
307
317
  __exportStar(require("./SkillFile"), exports);
308
318
  __exportStar(require("./SkillOrder"), exports);
309
319
  __exportStar(require("./SkillResponse"), exports);
@@ -337,6 +347,7 @@ __exportStar(require("./TenantSettingsResponse"), exports);
337
347
  __exportStar(require("./TenantSettingsUpdate"), exports);
338
348
  __exportStar(require("./TenantSubscriptionResponse"), exports);
339
349
  __exportStar(require("./TenantUserEditRequest"), exports);
350
+ __exportStar(require("./TenantUserJoinMethod"), exports);
340
351
  __exportStar(require("./TenantUserOrder"), exports);
341
352
  __exportStar(require("./TenantUserResponse"), exports);
342
353
  __exportStar(require("./TenantUserRole"), exports);
@@ -1,25 +1,22 @@
1
1
 
2
- # OnboardingCompanyRequest
2
+ # AccessRequestResponse
3
3
 
4
- Step 1 of onboarding — tenant-wide company info. OWNER/ADMIN only.
5
4
 
6
5
  ## Properties
7
6
 
8
7
  Name | Type
9
8
  ------------ | -------------
10
- `description` | string
11
- `industry` | string
9
+ `requestedAt` | Date
12
10
 
13
11
  ## Example
14
12
 
15
13
  ```typescript
16
- import type { OnboardingCompanyRequest } from '@knowledge-stack/ksapi'
14
+ import type { AccessRequestResponse } from '@knowledge-stack/ksapi'
17
15
 
18
16
  // TODO: Update the object below with actual values
19
17
  const example = {
20
- "description": null,
21
- "industry": null,
22
- } satisfies OnboardingCompanyRequest
18
+ "requestedAt": null,
19
+ } satisfies AccessRequestResponse
23
20
 
24
21
  console.log(example)
25
22
 
@@ -28,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
28
25
  console.log(exampleJSON)
29
26
 
30
27
  // Parse the JSON string back to an object
31
- const exampleParsed = JSON.parse(exampleJSON) as OnboardingCompanyRequest
28
+ const exampleParsed = JSON.parse(exampleJSON) as AccessRequestResponse
32
29
  console.log(exampleParsed)
33
30
  ```
34
31
 
@@ -1,27 +1,20 @@
1
1
 
2
- # OnboardingProfileRequest
2
+ # AddedBy
3
3
 
4
- Step 2 of onboarding — per-user info for the current tenant.
5
4
 
6
5
  ## Properties
7
6
 
8
7
  Name | Type
9
8
  ------------ | -------------
10
- `firstName` | string
11
- `lastName` | string
12
- `jobTitle` | string
13
9
 
14
10
  ## Example
15
11
 
16
12
  ```typescript
17
- import type { OnboardingProfileRequest } from '@knowledge-stack/ksapi'
13
+ import type { AddedBy } from '@knowledge-stack/ksapi'
18
14
 
19
15
  // TODO: Update the object below with actual values
20
16
  const example = {
21
- "firstName": null,
22
- "lastName": null,
23
- "jobTitle": null,
24
- } satisfies OnboardingProfileRequest
17
+ } satisfies AddedBy
25
18
 
26
19
  console.log(example)
27
20
 
@@ -30,7 +23,7 @@ const exampleJSON: string = JSON.stringify(example)
30
23
  console.log(exampleJSON)
31
24
 
32
25
  // Parse the JSON string back to an object
33
- const exampleParsed = JSON.parse(exampleJSON) as OnboardingProfileRequest
26
+ const exampleParsed = JSON.parse(exampleJSON) as AddedBy
34
27
  console.log(exampleParsed)
35
28
  ```
36
29
 
package/docs/AuthApi.md CHANGED
@@ -102,7 +102,7 @@ example().catch(console.error);
102
102
 
103
103
  ## createPasswordUser
104
104
 
105
- > UserResponse createPasswordUser(createPasswordUserRequest)
105
+ > SignUpResponse createPasswordUser(createPasswordUserRequest)
106
106
 
107
107
  Create Password User Handler
108
108
 
@@ -145,7 +145,7 @@ example().catch(console.error);
145
145
 
146
146
  ### Return type
147
147
 
148
- [**UserResponse**](UserResponse.md)
148
+ [**SignUpResponse**](SignUpResponse.md)
149
149
 
150
150
  ### Authorization
151
151
 
@@ -388,7 +388,7 @@ No authorization required
388
388
 
389
389
  ## initiateSso
390
390
 
391
- > SSOInitiateResponse initiateSso(provider, tenantId)
391
+ > SSOInitiateResponse initiateSso(provider, inviteId, tenantId)
392
392
 
393
393
  Initiate Sso Handler
394
394
 
@@ -410,6 +410,8 @@ async function example() {
410
410
  const body = {
411
411
  // IdpType | Provider to initiate SSO with
412
412
  provider: ...,
413
+ // string | Invite to resolve if this sign-in creates the account; carried in the session to the callback like the OAuth state. (optional)
414
+ inviteId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
413
415
  // string | Tenant ID to initiate SSO with (optional)
414
416
  tenantId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
415
417
  } satisfies InitiateSsoRequest;
@@ -432,6 +434,7 @@ example().catch(console.error);
432
434
  | Name | Type | Description | Notes |
433
435
  |------------- | ------------- | ------------- | -------------|
434
436
  | **provider** | `IdpType` | Provider to initiate SSO with | [Defaults to `undefined`] [Enum: PASSWORD, GOOGLE, MICROSOFT, GITHUB, TENANT] |
437
+ | **inviteId** | `string` | Invite to resolve if this sign-in creates the account; carried in the session to the callback like the OAuth state. | [Optional] [Defaults to `undefined`] |
435
438
  | **tenantId** | `string` | Tenant ID to initiate SSO with | [Optional] [Defaults to `undefined`] |
436
439
 
437
440
  ### Return type
@@ -460,7 +463,7 @@ No authorization required
460
463
 
461
464
  ## oauth2Callback
462
465
 
463
- > UserResponse oauth2Callback(provider, code, state, error, errorDescription, tenantId)
466
+ > SignUpResponse oauth2Callback(provider, code, state, error, errorDescription, tenantId)
464
467
 
465
468
  Oauth2 Callback Handler
466
469
 
@@ -520,7 +523,7 @@ example().catch(console.error);
520
523
 
521
524
  ### Return type
522
525
 
523
- [**UserResponse**](UserResponse.md)
526
+ [**SignUpResponse**](SignUpResponse.md)
524
527
 
525
528
  ### Authorization
526
529
 
@@ -10,6 +10,7 @@ Name | Type
10
10
  `emailToken` | string
11
11
  `firstName` | string
12
12
  `lastName` | string
13
+ `inviteId` | string
13
14
 
14
15
  ## Example
15
16
 
@@ -22,6 +23,7 @@ const example = {
22
23
  "emailToken": null,
23
24
  "firstName": null,
24
25
  "lastName": null,
26
+ "inviteId": null,
25
27
  } satisfies CreatePasswordUserRequest
26
28
 
27
29
  console.log(example)
@@ -12,6 +12,7 @@ Name | Type
12
12
  `smsLoginEnabled` | boolean
13
13
  `defaultFrontendLanguage` | [SupportedLanguage](SupportedLanguage.md)
14
14
  `upload` | [UploadConstraints](UploadConstraints.md)
15
+ `dataSourceEngines` | [Array&lt;DataSourceEngine&gt;](DataSourceEngine.md)
15
16
 
16
17
  ## Example
17
18
 
@@ -26,6 +27,7 @@ const example = {
26
27
  "smsLoginEnabled": null,
27
28
  "defaultFrontendLanguage": null,
28
29
  "upload": null,
30
+ "dataSourceEngines": null,
29
31
  } satisfies FeaturesResponse
30
32
 
31
33
  console.log(example)
@@ -87,11 +87,11 @@ example().catch(console.error);
87
87
 
88
88
  ## listFeedback
89
89
 
90
- > PaginatedResponseFeedbackEventResponse listFeedback(targetType, targetId, rating, sortBy, sortDir, limit, offset, createdAfter, createdBefore, updatedAfter, updatedBefore)
90
+ > PaginatedResponseFeedbackEventResponse listFeedback(targetType, targetId, rating, mine, sortBy, sortDir, limit, offset, createdAfter, createdBefore, updatedAfter, updatedBefore)
91
91
 
92
92
  List Feedback Handler
93
93
 
94
- List feedback entries with optional filters. USER role: only returns their own feedback. OWNER/ADMIN role: returns feedback from all users.
94
+ List feedback entries with optional filters. USER role: only returns their own feedback. OWNER/ADMIN role: returns feedback from all users unless &#x60;mine&#x60; is set.
95
95
 
96
96
  ### Example
97
97
 
@@ -115,10 +115,12 @@ async function example() {
115
115
  const body = {
116
116
  // FeedbackTargetType (optional)
117
117
  targetType: ...,
118
- // string (optional)
119
- targetId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
118
+ // Array<string> | Repeatable. Feedback on any of these targets, so a thread page reads every visible message\'s feedback in one call; more than 200 ids is a 422 (send the page you render, not the thread). (optional)
119
+ targetId: ...,
120
120
  // FeedbackRating (optional)
121
121
  rating: ...,
122
+ // boolean | Only the caller\'s own feedback, whatever their role, so an owner or admin reading a thread sees their own vote on each message. (optional)
123
+ mine: true,
122
124
  // FeedbackOrder | Field to sort feedback by (default: CREATED_AT) (optional)
123
125
  sortBy: ...,
124
126
  // SortDirection | Sort direction; overrides the field\'s natural default (optional)
@@ -155,8 +157,9 @@ example().catch(console.error);
155
157
  | Name | Type | Description | Notes |
156
158
  |------------- | ------------- | ------------- | -------------|
157
159
  | **targetType** | `FeedbackTargetType` | | [Optional] [Defaults to `undefined`] [Enum: THREAD, MESSAGE, DOCUMENT, DOCUMENT_VERSION, CHUNK] |
158
- | **targetId** | `string` | | [Optional] [Defaults to `undefined`] |
160
+ | **targetId** | `Array<string>` | 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). | [Optional] |
159
161
  | **rating** | `FeedbackRating` | | [Optional] [Defaults to `undefined`] [Enum: UP, DOWN] |
162
+ | **mine** | `boolean` | 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. | [Optional] [Defaults to `false`] |
160
163
  | **sortBy** | `FeedbackOrder` | Field to sort feedback by (default: CREATED_AT) | [Optional] [Defaults to `undefined`] [Enum: CREATED_AT] |
161
164
  | **sortDir** | `SortDirection` | Sort direction; overrides the field\&#39;s natural default | [Optional] [Defaults to `undefined`] [Enum: ASC, DESC] |
162
165
  | **limit** | `number` | Number of items per page | [Optional] [Defaults to `20`] |
@@ -0,0 +1,40 @@
1
+
2
+ # GuideModuleProgress
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `status` | [GuideModuleStatus](GuideModuleStatus.md)
10
+ `step` | number
11
+ `version` | number
12
+ `completedAt` | Date
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { GuideModuleProgress } from '@knowledge-stack/ksapi'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "status": null,
22
+ "step": null,
23
+ "version": null,
24
+ "completedAt": null,
25
+ } satisfies GuideModuleProgress
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as GuideModuleProgress
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
@@ -0,0 +1,32 @@
1
+
2
+ # GuideModuleStatus
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import type { GuideModuleStatus } from '@knowledge-stack/ksapi'
14
+
15
+ // TODO: Update the object below with actual values
16
+ const example = {
17
+ } satisfies GuideModuleStatus
18
+
19
+ console.log(example)
20
+
21
+ // Convert the instance to a JSON string
22
+ const exampleJSON: string = JSON.stringify(example)
23
+ console.log(exampleJSON)
24
+
25
+ // Parse the JSON string back to an object
26
+ const exampleParsed = JSON.parse(exampleJSON) as GuideModuleStatus
27
+ console.log(exampleParsed)
28
+ ```
29
+
30
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
31
+
32
+
@@ -0,0 +1,60 @@
1
+
2
+ # GuideModules
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `core` | [GuideModuleProgress](GuideModuleProgress.md)
10
+ `groundedAnswers` | [GuideModuleProgress](GuideModuleProgress.md)
11
+ `knowledge` | [GuideModuleProgress](GuideModuleProgress.md)
12
+ `repeatableWork` | [GuideModuleProgress](GuideModuleProgress.md)
13
+ `access` | [GuideModuleProgress](GuideModuleProgress.md)
14
+ `administration` | [GuideModuleProgress](GuideModuleProgress.md)
15
+ `documents` | [GuideModuleProgress](GuideModuleProgress.md)
16
+ `workflowRuns` | [GuideModuleProgress](GuideModuleProgress.md)
17
+ `search` | [GuideModuleProgress](GuideModuleProgress.md)
18
+ `workflowSetup` | [GuideModuleProgress](GuideModuleProgress.md)
19
+ `skills` | [GuideModuleProgress](GuideModuleProgress.md)
20
+ `dashboard` | [GuideModuleProgress](GuideModuleProgress.md)
21
+ `groups` | [GuideModuleProgress](GuideModuleProgress.md)
22
+ `auditLog` | [GuideModuleProgress](GuideModuleProgress.md)
23
+
24
+ ## Example
25
+
26
+ ```typescript
27
+ import type { GuideModules } from '@knowledge-stack/ksapi'
28
+
29
+ // TODO: Update the object below with actual values
30
+ const example = {
31
+ "core": null,
32
+ "groundedAnswers": null,
33
+ "knowledge": null,
34
+ "repeatableWork": null,
35
+ "access": null,
36
+ "administration": null,
37
+ "documents": null,
38
+ "workflowRuns": null,
39
+ "search": null,
40
+ "workflowSetup": null,
41
+ "skills": null,
42
+ "dashboard": null,
43
+ "groups": null,
44
+ "auditLog": null,
45
+ } satisfies GuideModules
46
+
47
+ console.log(example)
48
+
49
+ // Convert the instance to a JSON string
50
+ const exampleJSON: string = JSON.stringify(example)
51
+ console.log(exampleJSON)
52
+
53
+ // Parse the JSON string back to an object
54
+ const exampleParsed = JSON.parse(exampleJSON) as GuideModules
55
+ console.log(exampleParsed)
56
+ ```
57
+
58
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
59
+
60
+
@@ -0,0 +1,44 @@
1
+
2
+ # InvitePreviewResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `state` | [InvitePreviewState](InvitePreviewState.md)
10
+ `email` | string
11
+ `tenantName` | string
12
+ `role` | [TenantUserRole](TenantUserRole.md)
13
+ `expiresAt` | Date
14
+ `invitedBy` | [UserInfo](UserInfo.md)
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import type { InvitePreviewResponse } from '@knowledge-stack/ksapi'
20
+
21
+ // TODO: Update the object below with actual values
22
+ const example = {
23
+ "state": null,
24
+ "email": null,
25
+ "tenantName": null,
26
+ "role": null,
27
+ "expiresAt": null,
28
+ "invitedBy": null,
29
+ } satisfies InvitePreviewResponse
30
+
31
+ console.log(example)
32
+
33
+ // Convert the instance to a JSON string
34
+ const exampleJSON: string = JSON.stringify(example)
35
+ console.log(exampleJSON)
36
+
37
+ // Parse the JSON string back to an object
38
+ const exampleParsed = JSON.parse(exampleJSON) as InvitePreviewResponse
39
+ console.log(exampleParsed)
40
+ ```
41
+
42
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
43
+
44
+