@knowledge-stack/ksapi 1.80.1 → 1.82.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 (89) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +8 -2
  3. package/dist/apis/UsersApi.d.ts +130 -1
  4. package/dist/apis/UsersApi.js +130 -0
  5. package/dist/apis/WorkflowDefinitionsApi.d.ts +4 -1
  6. package/dist/apis/WorkflowDefinitionsApi.js +2 -0
  7. package/dist/esm/apis/UsersApi.d.ts +130 -1
  8. package/dist/esm/apis/UsersApi.js +131 -1
  9. package/dist/esm/apis/WorkflowDefinitionsApi.d.ts +4 -1
  10. package/dist/esm/apis/WorkflowDefinitionsApi.js +2 -0
  11. package/dist/esm/models/CreateWorkflowDefinitionRequest.d.ts +8 -1
  12. package/dist/esm/models/CreateWorkflowDefinitionRequest.js +1 -4
  13. package/dist/esm/models/InstructionSnapshot.d.ts +71 -0
  14. package/dist/esm/models/InstructionSnapshot.js +57 -0
  15. package/dist/esm/models/InvokeWorkflowRequest.d.ts +6 -0
  16. package/dist/esm/models/InvokeWorkflowRequest.js +6 -0
  17. package/dist/esm/models/OnboardingCompanyRequest.d.ts +53 -0
  18. package/dist/esm/models/OnboardingCompanyRequest.js +51 -0
  19. package/dist/esm/models/OnboardingProfileRequest.d.ts +59 -0
  20. package/dist/esm/models/OnboardingProfileRequest.js +50 -0
  21. package/dist/esm/models/TenantSettingsResponse.d.ts +6 -0
  22. package/dist/esm/models/TenantSettingsResponse.js +2 -0
  23. package/dist/esm/models/TenantSettingsUpdate.d.ts +6 -0
  24. package/dist/esm/models/TenantSettingsUpdate.js +10 -1
  25. package/dist/esm/models/UpdateWorkflowDefinitionRequest.d.ts +6 -1
  26. package/dist/esm/models/UserResponse.d.ts +12 -0
  27. package/dist/esm/models/UserResponse.js +4 -0
  28. package/dist/esm/models/WorkflowRunResponse.d.ts +17 -0
  29. package/dist/esm/models/WorkflowRunResponse.js +8 -0
  30. package/dist/esm/models/WorkflowRunSnapshot.d.ts +3 -2
  31. package/dist/esm/models/WorkflowRunSnapshot.js +3 -2
  32. package/dist/esm/models/WorkflowRunnerType.d.ts +1 -0
  33. package/dist/esm/models/WorkflowRunnerType.js +2 -1
  34. package/dist/esm/models/index.d.ts +3 -0
  35. package/dist/esm/models/index.js +3 -0
  36. package/dist/models/CreateWorkflowDefinitionRequest.d.ts +8 -1
  37. package/dist/models/CreateWorkflowDefinitionRequest.js +1 -4
  38. package/dist/models/InstructionSnapshot.d.ts +71 -0
  39. package/dist/models/InstructionSnapshot.js +65 -0
  40. package/dist/models/InvokeWorkflowRequest.d.ts +6 -0
  41. package/dist/models/InvokeWorkflowRequest.js +6 -0
  42. package/dist/models/OnboardingCompanyRequest.d.ts +53 -0
  43. package/dist/models/OnboardingCompanyRequest.js +59 -0
  44. package/dist/models/OnboardingProfileRequest.d.ts +59 -0
  45. package/dist/models/OnboardingProfileRequest.js +58 -0
  46. package/dist/models/TenantSettingsResponse.d.ts +6 -0
  47. package/dist/models/TenantSettingsResponse.js +2 -0
  48. package/dist/models/TenantSettingsUpdate.d.ts +6 -0
  49. package/dist/models/TenantSettingsUpdate.js +10 -1
  50. package/dist/models/UpdateWorkflowDefinitionRequest.d.ts +6 -1
  51. package/dist/models/UserResponse.d.ts +12 -0
  52. package/dist/models/UserResponse.js +4 -0
  53. package/dist/models/WorkflowRunResponse.d.ts +17 -0
  54. package/dist/models/WorkflowRunResponse.js +8 -0
  55. package/dist/models/WorkflowRunSnapshot.d.ts +3 -2
  56. package/dist/models/WorkflowRunSnapshot.js +3 -2
  57. package/dist/models/WorkflowRunnerType.d.ts +1 -0
  58. package/dist/models/WorkflowRunnerType.js +2 -1
  59. package/dist/models/index.d.ts +3 -0
  60. package/dist/models/index.js +3 -0
  61. package/docs/CreateWorkflowDefinitionRequest.md +1 -1
  62. package/docs/InstructionSnapshot.md +41 -0
  63. package/docs/InvokeWorkflowRequest.md +2 -0
  64. package/docs/OnboardingCompanyRequest.md +37 -0
  65. package/docs/OnboardingProfileRequest.md +39 -0
  66. package/docs/TenantSettingsResponse.md +2 -0
  67. package/docs/TenantSettingsUpdate.md +2 -0
  68. package/docs/UpdateWorkflowDefinitionRequest.md +1 -1
  69. package/docs/UserResponse.md +4 -0
  70. package/docs/UsersApi.md +222 -0
  71. package/docs/WorkflowDefinitionsApi.md +2 -0
  72. package/docs/WorkflowRunResponse.md +5 -1
  73. package/docs/WorkflowRunSnapshot.md +1 -1
  74. package/package.json +1 -1
  75. package/src/apis/UsersApi.ts +254 -0
  76. package/src/apis/WorkflowDefinitionsApi.ts +4 -1
  77. package/src/models/CreateWorkflowDefinitionRequest.ts +9 -4
  78. package/src/models/InstructionSnapshot.ts +125 -0
  79. package/src/models/InvokeWorkflowRequest.ts +12 -0
  80. package/src/models/OnboardingCompanyRequest.ts +96 -0
  81. package/src/models/OnboardingProfileRequest.ts +101 -0
  82. package/src/models/TenantSettingsResponse.ts +8 -0
  83. package/src/models/TenantSettingsUpdate.ts +14 -0
  84. package/src/models/UpdateWorkflowDefinitionRequest.ts +6 -1
  85. package/src/models/UserResponse.ts +16 -0
  86. package/src/models/WorkflowRunResponse.ts +23 -0
  87. package/src/models/WorkflowRunSnapshot.ts +11 -4
  88. package/src/models/WorkflowRunnerType.ts +2 -1
  89. package/src/models/index.ts +3 -0
@@ -29,6 +29,12 @@ export interface TenantSettingsUpdate {
29
29
  * @memberof TenantSettingsUpdate
30
30
  */
31
31
  description?: string | null;
32
+ /**
33
+ * Industry / company type captured during onboarding
34
+ * @type {string}
35
+ * @memberof TenantSettingsUpdate
36
+ */
37
+ industry?: string | null;
32
38
  /**
33
39
  * IANA timezone (e.g. 'America/New_York')
34
40
  * @type {string}
@@ -13,7 +13,14 @@
13
13
  */
14
14
  import { SupportedLanguageFromJSON, SupportedLanguageToJSON, } from './SupportedLanguage';
15
15
  import { InviteLinkSettingsRequestFromJSON, InviteLinkSettingsRequestToJSON, } from './InviteLinkSettingsRequest';
16
- export const TenantSettingsUpdatePropertyValidationAttributesMap = {};
16
+ export const TenantSettingsUpdatePropertyValidationAttributesMap = {
17
+ description: {
18
+ maxLength: 5000,
19
+ },
20
+ industry: {
21
+ maxLength: 120,
22
+ },
23
+ };
17
24
  /**
18
25
  * Check if a given object implements the TenantSettingsUpdate interface.
19
26
  */
@@ -30,6 +37,7 @@ export function TenantSettingsUpdateFromJSONTyped(json, ignoreDiscriminator) {
30
37
  return {
31
38
  'language': json['language'] == null ? undefined : SupportedLanguageFromJSON(json['language']),
32
39
  'description': json['description'] == null ? undefined : json['description'],
40
+ 'industry': json['industry'] == null ? undefined : json['industry'],
33
41
  'timezone': json['timezone'] == null ? undefined : json['timezone'],
34
42
  'brandName': json['brand_name'] == null ? undefined : json['brand_name'],
35
43
  'brandColor': json['brand_color'] == null ? undefined : json['brand_color'],
@@ -47,6 +55,7 @@ export function TenantSettingsUpdateToJSONTyped(value, ignoreDiscriminator = fal
47
55
  return {
48
56
  'language': SupportedLanguageToJSON(value['language']),
49
57
  'description': value['description'],
58
+ 'industry': value['industry'],
50
59
  'timezone': value['timezone'],
51
60
  'brand_name': value['brandName'],
52
61
  'brand_color': value['brandColor'],
@@ -12,7 +12,12 @@
12
12
  import type { SelfHostedRunnerConfig } from './SelfHostedRunnerConfig';
13
13
  import type { WorkflowRunnerType } from './WorkflowRunnerType';
14
14
  /**
15
- * Full replacement (PUT semantics). All fields are required.
15
+ * Full replacement (PUT semantics).
16
+ *
17
+ * ``instruction_path_part_ids``:
18
+ *
19
+ * - ``KS_INTERNAL``: must remain ``len == 1`` (the auto-provisioned doc).
20
+ * - ``SELF_HOSTED``: ``len ≥ 1``; callers may swap or add documents.
16
21
  * @export
17
22
  * @interface UpdateWorkflowDefinitionRequest
18
23
  */
@@ -65,6 +65,18 @@ export interface UserResponse {
65
65
  * @memberof UserResponse
66
66
  */
67
67
  defaultTenantId: string;
68
+ /**
69
+ * User's job title at the current tenant (per-membership)
70
+ * @type {string}
71
+ * @memberof UserResponse
72
+ */
73
+ jobTitle?: string | null;
74
+ /**
75
+ * When the user finished onboarding for the current tenant. NULL = wizard should be shown.
76
+ * @type {Date}
77
+ * @memberof UserResponse
78
+ */
79
+ onboardingCompletedAt?: Date | null;
68
80
  }
69
81
  export declare const UserResponsePropertyValidationAttributesMap: {
70
82
  [property: string]: {
@@ -52,6 +52,8 @@ export function UserResponseFromJSONTyped(json, ignoreDiscriminator) {
52
52
  'currentTenantId': json['current_tenant_id'],
53
53
  'currentTenantRole': TenantUserRoleFromJSON(json['current_tenant_role']),
54
54
  'defaultTenantId': json['default_tenant_id'],
55
+ 'jobTitle': json['job_title'] == null ? undefined : json['job_title'],
56
+ 'onboardingCompletedAt': json['onboarding_completed_at'] == null ? undefined : (new Date(json['onboarding_completed_at'])),
55
57
  };
56
58
  }
57
59
  export function UserResponseToJSON(json) {
@@ -70,5 +72,7 @@ export function UserResponseToJSONTyped(value, ignoreDiscriminator = false) {
70
72
  'current_tenant_id': value['currentTenantId'],
71
73
  'current_tenant_role': TenantUserRoleToJSON(value['currentTenantRole']),
72
74
  'default_tenant_id': value['defaultTenantId'],
75
+ 'job_title': value['jobTitle'],
76
+ 'onboarding_completed_at': value['onboardingCompletedAt'] == null ? value['onboardingCompletedAt'] : value['onboardingCompletedAt'].toISOString(),
73
77
  };
74
78
  }
@@ -14,6 +14,11 @@ import type { WorkflowRunStatus } from './WorkflowRunStatus';
14
14
  import type { WorkflowRunnerType } from './WorkflowRunnerType';
15
15
  /**
16
16
  * Workflow run response.
17
+ *
18
+ * Note: ``run_token_jti`` is intentionally NOT exposed. It's an
19
+ * internal token identifier persisted on the run row for callback
20
+ * auth — clients should treat run dispatch state as observable via
21
+ * ``status`` (RUNNING => dispatched), not via JTI presence.
17
22
  * @export
18
23
  * @interface WorkflowRunResponse
19
24
  */
@@ -72,6 +77,18 @@ export interface WorkflowRunResponse {
72
77
  * @memberof WorkflowRunResponse
73
78
  */
74
79
  error: string | null;
80
+ /**
81
+ *
82
+ * @type {Array<string>}
83
+ * @memberof WorkflowRunResponse
84
+ */
85
+ inputPathPartIds: Array<string>;
86
+ /**
87
+ *
88
+ * @type {Array<string>}
89
+ * @memberof WorkflowRunResponse
90
+ */
91
+ inputVersionIds: Array<string>;
75
92
  /**
76
93
  *
77
94
  * @type {Date}
@@ -37,6 +37,10 @@ export function instanceOfWorkflowRunResponse(value) {
37
37
  return false;
38
38
  if (!('error' in value) || value['error'] === undefined)
39
39
  return false;
40
+ if (!('inputPathPartIds' in value) || value['inputPathPartIds'] === undefined)
41
+ return false;
42
+ if (!('inputVersionIds' in value) || value['inputVersionIds'] === undefined)
43
+ return false;
40
44
  if (!('createdAt' in value) || value['createdAt'] === undefined)
41
45
  return false;
42
46
  if (!('updatedAt' in value) || value['updatedAt'] === undefined)
@@ -60,6 +64,8 @@ export function WorkflowRunResponseFromJSONTyped(json, ignoreDiscriminator) {
60
64
  'completedAt': (json['completed_at'] == null ? null : new Date(json['completed_at'])),
61
65
  'runSnapshot': WorkflowRunSnapshotFromJSON(json['run_snapshot']),
62
66
  'error': json['error'],
67
+ 'inputPathPartIds': json['input_path_part_ids'],
68
+ 'inputVersionIds': json['input_version_ids'],
63
69
  'createdAt': (new Date(json['created_at'])),
64
70
  'updatedAt': (new Date(json['updated_at'])),
65
71
  };
@@ -81,6 +87,8 @@ export function WorkflowRunResponseToJSONTyped(value, ignoreDiscriminator = fals
81
87
  'completed_at': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
82
88
  'run_snapshot': WorkflowRunSnapshotToJSON(value['runSnapshot']),
83
89
  'error': value['error'],
90
+ 'input_path_part_ids': value['inputPathPartIds'],
91
+ 'input_version_ids': value['inputVersionIds'],
84
92
  'created_at': value['createdAt'].toISOString(),
85
93
  'updated_at': value['updatedAt'].toISOString(),
86
94
  };
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { ABCDPathSnapshot } from './ABCDPathSnapshot';
13
+ import type { InstructionSnapshot } from './InstructionSnapshot';
13
14
  import type { WorkflowRunnerType } from './WorkflowRunnerType';
14
15
  /**
15
16
  * Frozen ABCD configuration captured at workflow trigger time.
@@ -55,10 +56,10 @@ export interface WorkflowRunSnapshot {
55
56
  sources: Array<ABCDPathSnapshot>;
56
57
  /**
57
58
  *
58
- * @type {Array<ABCDPathSnapshot>}
59
+ * @type {Array<InstructionSnapshot>}
59
60
  * @memberof WorkflowRunSnapshot
60
61
  */
61
- instructions: Array<ABCDPathSnapshot>;
62
+ instructions: Array<InstructionSnapshot>;
62
63
  /**
63
64
  *
64
65
  * @type {Array<ABCDPathSnapshot>}
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { ABCDPathSnapshotFromJSON, ABCDPathSnapshotToJSON, } from './ABCDPathSnapshot';
15
+ import { InstructionSnapshotFromJSON, InstructionSnapshotToJSON, } from './InstructionSnapshot';
15
16
  import { WorkflowRunnerTypeFromJSON, WorkflowRunnerTypeToJSON, } from './WorkflowRunnerType';
16
17
  export const WorkflowRunSnapshotPropertyValidationAttributesMap = {};
17
18
  /**
@@ -52,7 +53,7 @@ export function WorkflowRunSnapshotFromJSONTyped(json, ignoreDiscriminator) {
52
53
  'userId': json['user_id'],
53
54
  'maxRunDurationSeconds': json['max_run_duration_seconds'],
54
55
  'sources': (json['sources'].map(ABCDPathSnapshotFromJSON)),
55
- 'instructions': (json['instructions'].map(ABCDPathSnapshotFromJSON)),
56
+ 'instructions': (json['instructions'].map(InstructionSnapshotFromJSON)),
56
57
  'outputs': (json['outputs'].map(ABCDPathSnapshotFromJSON)),
57
58
  'template': ABCDPathSnapshotFromJSON(json['template']),
58
59
  };
@@ -71,7 +72,7 @@ export function WorkflowRunSnapshotToJSONTyped(value, ignoreDiscriminator = fals
71
72
  'user_id': value['userId'],
72
73
  'max_run_duration_seconds': value['maxRunDurationSeconds'],
73
74
  'sources': (value['sources'].map(ABCDPathSnapshotToJSON)),
74
- 'instructions': (value['instructions'].map(ABCDPathSnapshotToJSON)),
75
+ 'instructions': (value['instructions'].map(InstructionSnapshotToJSON)),
75
76
  'outputs': (value['outputs'].map(ABCDPathSnapshotToJSON)),
76
77
  'template': ABCDPathSnapshotToJSON(value['template']),
77
78
  };
@@ -15,6 +15,7 @@
15
15
  */
16
16
  export declare const WorkflowRunnerType: {
17
17
  readonly SelfHosted: "SELF_HOSTED";
18
+ readonly KsInternal: "KS_INTERNAL";
18
19
  };
19
20
  export type WorkflowRunnerType = typeof WorkflowRunnerType[keyof typeof WorkflowRunnerType];
20
21
  export declare function instanceOfWorkflowRunnerType(value: any): boolean;
@@ -16,7 +16,8 @@
16
16
  * @export
17
17
  */
18
18
  export const WorkflowRunnerType = {
19
- SelfHosted: 'SELF_HOSTED'
19
+ SelfHosted: 'SELF_HOSTED',
20
+ KsInternal: 'KS_INTERNAL'
20
21
  };
21
22
  export function instanceOfWorkflowRunnerType(value) {
22
23
  for (const key in WorkflowRunnerType) {
@@ -74,6 +74,7 @@ export * from './ImageTaxonomy';
74
74
  export * from './InformationStatistics';
75
75
  export * from './IngestDocumentResponse';
76
76
  export * from './IngestionMode';
77
+ export * from './InstructionSnapshot';
77
78
  export * from './InviteLinkSettingsRequest';
78
79
  export * from './InviteLinkSettingsResponse';
79
80
  export * from './InviteResponse';
@@ -88,6 +89,8 @@ export * from './MembershipResponse';
88
89
  export * from './MessageRole';
89
90
  export * from './MeteredQuotaStatus';
90
91
  export * from './NonFilesystemReferenceType';
92
+ export * from './OnboardingCompanyRequest';
93
+ export * from './OnboardingProfileRequest';
91
94
  export * from './PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator';
92
95
  export * from './PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator';
93
96
  export * from './PaginatedResponseDocumentResponse';
@@ -76,6 +76,7 @@ export * from './ImageTaxonomy';
76
76
  export * from './InformationStatistics';
77
77
  export * from './IngestDocumentResponse';
78
78
  export * from './IngestionMode';
79
+ export * from './InstructionSnapshot';
79
80
  export * from './InviteLinkSettingsRequest';
80
81
  export * from './InviteLinkSettingsResponse';
81
82
  export * from './InviteResponse';
@@ -90,6 +91,8 @@ export * from './MembershipResponse';
90
91
  export * from './MessageRole';
91
92
  export * from './MeteredQuotaStatus';
92
93
  export * from './NonFilesystemReferenceType';
94
+ export * from './OnboardingCompanyRequest';
95
+ export * from './OnboardingProfileRequest';
93
96
  export * from './PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator';
94
97
  export * from './PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator';
95
98
  export * from './PaginatedResponseDocumentResponse';
@@ -13,6 +13,13 @@ import type { SelfHostedRunnerConfig } from './SelfHostedRunnerConfig';
13
13
  import type { WorkflowRunnerType } from './WorkflowRunnerType';
14
14
  /**
15
15
  * Create a new workflow definition.
16
+ *
17
+ * ``instruction_path_part_ids`` semantics depend on ``runner_type``:
18
+ *
19
+ * - ``KS_INTERNAL``: must be empty (``[]``); the server auto-provisions a
20
+ * single ``instruction.md`` and stores ``[doc.path_part_id]``.
21
+ * - ``SELF_HOSTED``: caller-supplied list of one-or-more document
22
+ * PathPart IDs. Must contain at least one entry.
16
23
  * @export
17
24
  * @interface CreateWorkflowDefinitionRequest
18
25
  */
@@ -58,7 +65,7 @@ export interface CreateWorkflowDefinitionRequest {
58
65
  * @type {Array<string>}
59
66
  * @memberof CreateWorkflowDefinitionRequest
60
67
  */
61
- instructionPathPartIds: Array<string>;
68
+ instructionPathPartIds?: Array<string>;
62
69
  /**
63
70
  *
64
71
  * @type {Array<string>}
@@ -38,7 +38,6 @@ exports.CreateWorkflowDefinitionRequestPropertyValidationAttributesMap = {
38
38
  },
39
39
  instructionPathPartIds: {
40
40
  maxItems: 20,
41
- minItems: 1,
42
41
  uniqueItems: false,
43
42
  },
44
43
  outputPathPartIds: {
@@ -57,8 +56,6 @@ function instanceOfCreateWorkflowDefinitionRequest(value) {
57
56
  return false;
58
57
  if (!('sourcePathPartIds' in value) || value['sourcePathPartIds'] === undefined)
59
58
  return false;
60
- if (!('instructionPathPartIds' in value) || value['instructionPathPartIds'] === undefined)
61
- return false;
62
59
  if (!('outputPathPartIds' in value) || value['outputPathPartIds'] === undefined)
63
60
  return false;
64
61
  return true;
@@ -77,7 +74,7 @@ function CreateWorkflowDefinitionRequestFromJSONTyped(json, ignoreDiscriminator)
77
74
  'runnerConfig': json['runner_config'] == null ? undefined : (0, SelfHostedRunnerConfig_1.SelfHostedRunnerConfigFromJSON)(json['runner_config']),
78
75
  'maxRunDurationSeconds': json['max_run_duration_seconds'] == null ? undefined : json['max_run_duration_seconds'],
79
76
  'sourcePathPartIds': json['source_path_part_ids'],
80
- 'instructionPathPartIds': json['instruction_path_part_ids'],
77
+ 'instructionPathPartIds': json['instruction_path_part_ids'] == null ? undefined : json['instruction_path_part_ids'],
81
78
  'outputPathPartIds': json['output_path_part_ids'],
82
79
  'templatePathPartId': json['template_path_part_id'] == null ? undefined : json['template_path_part_id'],
83
80
  };
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Knowledge Stack API
3
+ * Knowledge Stack backend API for authentication and knowledge management
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { PartType } from './PartType';
13
+ /**
14
+ * Snapshot of one instruction document, pinned at trigger time.
15
+ *
16
+ * The instruction file is the workflow's **contract**: the agent reads
17
+ * this exact ``document_version_id`` for the duration of the run, even
18
+ * if the document is edited mid-flight or after the run completes.
19
+ * Reproducibility and audit replay depend on this pinning.
20
+ * @export
21
+ * @interface InstructionSnapshot
22
+ */
23
+ export interface InstructionSnapshot {
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof InstructionSnapshot
28
+ */
29
+ pathPartId: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof InstructionSnapshot
34
+ */
35
+ materializedPath: string;
36
+ /**
37
+ *
38
+ * @type {PartType}
39
+ * @memberof InstructionSnapshot
40
+ */
41
+ partType: PartType;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof InstructionSnapshot
46
+ */
47
+ documentVersionId: string;
48
+ }
49
+ export declare const InstructionSnapshotPropertyValidationAttributesMap: {
50
+ [property: string]: {
51
+ maxLength?: number;
52
+ minLength?: number;
53
+ pattern?: string;
54
+ maximum?: number;
55
+ exclusiveMaximum?: boolean;
56
+ minimum?: number;
57
+ exclusiveMinimum?: boolean;
58
+ multipleOf?: number;
59
+ maxItems?: number;
60
+ minItems?: number;
61
+ uniqueItems?: boolean;
62
+ };
63
+ };
64
+ /**
65
+ * Check if a given object implements the InstructionSnapshot interface.
66
+ */
67
+ export declare function instanceOfInstructionSnapshot(value: object): value is InstructionSnapshot;
68
+ export declare function InstructionSnapshotFromJSON(json: any): InstructionSnapshot;
69
+ export declare function InstructionSnapshotFromJSONTyped(json: any, ignoreDiscriminator: boolean): InstructionSnapshot;
70
+ export declare function InstructionSnapshotToJSON(json: any): InstructionSnapshot;
71
+ export declare function InstructionSnapshotToJSONTyped(value?: InstructionSnapshot | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Knowledge Stack API
6
+ * Knowledge Stack backend API for authentication and knowledge management
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.InstructionSnapshotPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfInstructionSnapshot = instanceOfInstructionSnapshot;
18
+ exports.InstructionSnapshotFromJSON = InstructionSnapshotFromJSON;
19
+ exports.InstructionSnapshotFromJSONTyped = InstructionSnapshotFromJSONTyped;
20
+ exports.InstructionSnapshotToJSON = InstructionSnapshotToJSON;
21
+ exports.InstructionSnapshotToJSONTyped = InstructionSnapshotToJSONTyped;
22
+ const PartType_1 = require("./PartType");
23
+ exports.InstructionSnapshotPropertyValidationAttributesMap = {};
24
+ /**
25
+ * Check if a given object implements the InstructionSnapshot interface.
26
+ */
27
+ function instanceOfInstructionSnapshot(value) {
28
+ if (!('pathPartId' in value) || value['pathPartId'] === undefined)
29
+ return false;
30
+ if (!('materializedPath' in value) || value['materializedPath'] === undefined)
31
+ return false;
32
+ if (!('partType' in value) || value['partType'] === undefined)
33
+ return false;
34
+ if (!('documentVersionId' in value) || value['documentVersionId'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function InstructionSnapshotFromJSON(json) {
39
+ return InstructionSnapshotFromJSONTyped(json, false);
40
+ }
41
+ function InstructionSnapshotFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'pathPartId': json['path_part_id'],
47
+ 'materializedPath': json['materialized_path'],
48
+ 'partType': (0, PartType_1.PartTypeFromJSON)(json['part_type']),
49
+ 'documentVersionId': json['document_version_id'],
50
+ };
51
+ }
52
+ function InstructionSnapshotToJSON(json) {
53
+ return InstructionSnapshotToJSONTyped(json, false);
54
+ }
55
+ function InstructionSnapshotToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'path_part_id': value['pathPartId'],
61
+ 'materialized_path': value['materializedPath'],
62
+ 'part_type': (0, PartType_1.PartTypeToJSON)(value['partType']),
63
+ 'document_version_id': value['documentVersionId'],
64
+ };
65
+ }
@@ -21,6 +21,12 @@ export interface InvokeWorkflowRequest {
21
21
  * @memberof InvokeWorkflowRequest
22
22
  */
23
23
  idempotencyKey?: string | null;
24
+ /**
25
+ * Path part IDs of input documents to pin to this run. Each path_part must be a DOCUMENT readable by the caller. Active document_version_id is captured at trigger time.
26
+ * @type {Array<string>}
27
+ * @memberof InvokeWorkflowRequest
28
+ */
29
+ inputPathPartIds?: Array<string>;
24
30
  }
25
31
  export declare const InvokeWorkflowRequestPropertyValidationAttributesMap: {
26
32
  [property: string]: {
@@ -23,6 +23,10 @@ exports.InvokeWorkflowRequestPropertyValidationAttributesMap = {
23
23
  idempotencyKey: {
24
24
  maxLength: 255,
25
25
  },
26
+ inputPathPartIds: {
27
+ maxItems: 50,
28
+ uniqueItems: false,
29
+ },
26
30
  };
27
31
  /**
28
32
  * Check if a given object implements the InvokeWorkflowRequest interface.
@@ -39,6 +43,7 @@ function InvokeWorkflowRequestFromJSONTyped(json, ignoreDiscriminator) {
39
43
  }
40
44
  return {
41
45
  'idempotencyKey': json['idempotency_key'] == null ? undefined : json['idempotency_key'],
46
+ 'inputPathPartIds': json['input_path_part_ids'] == null ? undefined : json['input_path_part_ids'],
42
47
  };
43
48
  }
44
49
  function InvokeWorkflowRequestToJSON(json) {
@@ -50,5 +55,6 @@ function InvokeWorkflowRequestToJSONTyped(value, ignoreDiscriminator = false) {
50
55
  }
51
56
  return {
52
57
  'idempotency_key': value['idempotencyKey'],
58
+ 'input_path_part_ids': value['inputPathPartIds'],
53
59
  };
54
60
  }
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Knowledge Stack API
3
+ * Knowledge Stack backend API for authentication and knowledge management
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Step 1 of onboarding — tenant-wide company info. OWNER/ADMIN only.
14
+ * @export
15
+ * @interface OnboardingCompanyRequest
16
+ */
17
+ export interface OnboardingCompanyRequest {
18
+ /**
19
+ * Brief company description (≤5000 chars)
20
+ * @type {string}
21
+ * @memberof OnboardingCompanyRequest
22
+ */
23
+ description?: string | null;
24
+ /**
25
+ * Industry / company type (free text)
26
+ * @type {string}
27
+ * @memberof OnboardingCompanyRequest
28
+ */
29
+ industry?: string | null;
30
+ }
31
+ export declare const OnboardingCompanyRequestPropertyValidationAttributesMap: {
32
+ [property: string]: {
33
+ maxLength?: number;
34
+ minLength?: number;
35
+ pattern?: string;
36
+ maximum?: number;
37
+ exclusiveMaximum?: boolean;
38
+ minimum?: number;
39
+ exclusiveMinimum?: boolean;
40
+ multipleOf?: number;
41
+ maxItems?: number;
42
+ minItems?: number;
43
+ uniqueItems?: boolean;
44
+ };
45
+ };
46
+ /**
47
+ * Check if a given object implements the OnboardingCompanyRequest interface.
48
+ */
49
+ export declare function instanceOfOnboardingCompanyRequest(value: object): value is OnboardingCompanyRequest;
50
+ export declare function OnboardingCompanyRequestFromJSON(json: any): OnboardingCompanyRequest;
51
+ export declare function OnboardingCompanyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OnboardingCompanyRequest;
52
+ export declare function OnboardingCompanyRequestToJSON(json: any): OnboardingCompanyRequest;
53
+ export declare function OnboardingCompanyRequestToJSONTyped(value?: OnboardingCompanyRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Knowledge Stack API
6
+ * Knowledge Stack backend API for authentication and knowledge management
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.OnboardingCompanyRequestPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfOnboardingCompanyRequest = instanceOfOnboardingCompanyRequest;
18
+ exports.OnboardingCompanyRequestFromJSON = OnboardingCompanyRequestFromJSON;
19
+ exports.OnboardingCompanyRequestFromJSONTyped = OnboardingCompanyRequestFromJSONTyped;
20
+ exports.OnboardingCompanyRequestToJSON = OnboardingCompanyRequestToJSON;
21
+ exports.OnboardingCompanyRequestToJSONTyped = OnboardingCompanyRequestToJSONTyped;
22
+ exports.OnboardingCompanyRequestPropertyValidationAttributesMap = {
23
+ description: {
24
+ maxLength: 5000,
25
+ },
26
+ industry: {
27
+ maxLength: 120,
28
+ },
29
+ };
30
+ /**
31
+ * Check if a given object implements the OnboardingCompanyRequest interface.
32
+ */
33
+ function instanceOfOnboardingCompanyRequest(value) {
34
+ return true;
35
+ }
36
+ function OnboardingCompanyRequestFromJSON(json) {
37
+ return OnboardingCompanyRequestFromJSONTyped(json, false);
38
+ }
39
+ function OnboardingCompanyRequestFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'description': json['description'] == null ? undefined : json['description'],
45
+ 'industry': json['industry'] == null ? undefined : json['industry'],
46
+ };
47
+ }
48
+ function OnboardingCompanyRequestToJSON(json) {
49
+ return OnboardingCompanyRequestToJSONTyped(json, false);
50
+ }
51
+ function OnboardingCompanyRequestToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'description': value['description'],
57
+ 'industry': value['industry'],
58
+ };
59
+ }
@@ -0,0 +1,59 @@
1
+ /**
2
+ * Knowledge Stack API
3
+ * Knowledge Stack backend API for authentication and knowledge management
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Step 2 of onboarding — per-user info for the current tenant.
14
+ * @export
15
+ * @interface OnboardingProfileRequest
16
+ */
17
+ export interface OnboardingProfileRequest {
18
+ /**
19
+ * User's first name
20
+ * @type {string}
21
+ * @memberof OnboardingProfileRequest
22
+ */
23
+ firstName?: string | null;
24
+ /**
25
+ * User's last name
26
+ * @type {string}
27
+ * @memberof OnboardingProfileRequest
28
+ */
29
+ lastName?: string | null;
30
+ /**
31
+ * What the user does at this tenant
32
+ * @type {string}
33
+ * @memberof OnboardingProfileRequest
34
+ */
35
+ jobTitle?: string | null;
36
+ }
37
+ export declare const OnboardingProfileRequestPropertyValidationAttributesMap: {
38
+ [property: string]: {
39
+ maxLength?: number;
40
+ minLength?: number;
41
+ pattern?: string;
42
+ maximum?: number;
43
+ exclusiveMaximum?: boolean;
44
+ minimum?: number;
45
+ exclusiveMinimum?: boolean;
46
+ multipleOf?: number;
47
+ maxItems?: number;
48
+ minItems?: number;
49
+ uniqueItems?: boolean;
50
+ };
51
+ };
52
+ /**
53
+ * Check if a given object implements the OnboardingProfileRequest interface.
54
+ */
55
+ export declare function instanceOfOnboardingProfileRequest(value: object): value is OnboardingProfileRequest;
56
+ export declare function OnboardingProfileRequestFromJSON(json: any): OnboardingProfileRequest;
57
+ export declare function OnboardingProfileRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OnboardingProfileRequest;
58
+ export declare function OnboardingProfileRequestToJSON(json: any): OnboardingProfileRequest;
59
+ export declare function OnboardingProfileRequestToJSONTyped(value?: OnboardingProfileRequest | null, ignoreDiscriminator?: boolean): any;