@xemahq/design-system-builder-api-client 0.1.1

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 (86) hide show
  1. package/LICENSE +1 -0
  2. package/dist/custom-fetch.d.ts +52 -0
  3. package/dist/custom-fetch.js +152 -0
  4. package/dist/endpoints/brainstorming/brainstorming.d.ts +58 -0
  5. package/dist/endpoints/brainstorming/brainstorming.js +173 -0
  6. package/dist/endpoints/design-system-builder/design-system-builder.d.ts +58 -0
  7. package/dist/endpoints/design-system-builder/design-system-builder.js +173 -0
  8. package/dist/endpoints/health/health.d.ts +15 -0
  9. package/dist/endpoints/health/health.js +53 -0
  10. package/dist/index.d.ts +5 -0
  11. package/dist/index.js +27 -0
  12. package/dist/models/brainstormingControllerListParams.d.ts +32 -0
  13. package/dist/models/brainstormingControllerListParams.js +2 -0
  14. package/dist/models/brainstormingKBPushDto.d.ts +20 -0
  15. package/dist/models/brainstormingKBPushDto.js +2 -0
  16. package/dist/models/brainstormingKBPushResponseDto.d.ts +15 -0
  17. package/dist/models/brainstormingKBPushResponseDto.js +9 -0
  18. package/dist/models/brainstormingKbMountsResponseDto.d.ts +16 -0
  19. package/dist/models/brainstormingKbMountsResponseDto.js +2 -0
  20. package/dist/models/brainstormingKbPageMountDto.d.ts +13 -0
  21. package/dist/models/brainstormingKbPageMountDto.js +9 -0
  22. package/dist/models/brainstormingResponseDto.d.ts +48 -0
  23. package/dist/models/brainstormingResponseDto.js +2 -0
  24. package/dist/models/brainstormingResponseDtoAgentSlug.d.ts +14 -0
  25. package/dist/models/brainstormingResponseDtoAgentSlug.js +9 -0
  26. package/dist/models/brainstormingResponseDtoDescription.d.ts +13 -0
  27. package/dist/models/brainstormingResponseDtoDescription.js +9 -0
  28. package/dist/models/brainstormingResponseDtoFailureReason.d.ts +14 -0
  29. package/dist/models/brainstormingResponseDtoFailureReason.js +9 -0
  30. package/dist/models/brainstormingResponseDtoLatestBootstrapJobId.d.ts +14 -0
  31. package/dist/models/brainstormingResponseDtoLatestBootstrapJobId.js +9 -0
  32. package/dist/models/brainstormingResponseDtoSessionId.d.ts +14 -0
  33. package/dist/models/brainstormingResponseDtoSessionId.js +9 -0
  34. package/dist/models/brainstormingStatus.d.ts +13 -0
  35. package/dist/models/brainstormingStatus.js +15 -0
  36. package/dist/models/createBrainstormingDto.d.ts +23 -0
  37. package/dist/models/createBrainstormingDto.js +9 -0
  38. package/dist/models/createDesignSystemBuilderDto.d.ts +23 -0
  39. package/dist/models/createDesignSystemBuilderDto.js +9 -0
  40. package/dist/models/designSystemBuildStatus.d.ts +13 -0
  41. package/dist/models/designSystemBuildStatus.js +15 -0
  42. package/dist/models/designSystemBuilderControllerListParams.d.ts +32 -0
  43. package/dist/models/designSystemBuilderControllerListParams.js +2 -0
  44. package/dist/models/designSystemBuilderKBPushDto.d.ts +20 -0
  45. package/dist/models/designSystemBuilderKBPushDto.js +2 -0
  46. package/dist/models/designSystemBuilderKBPushResponseDto.d.ts +15 -0
  47. package/dist/models/designSystemBuilderKBPushResponseDto.js +9 -0
  48. package/dist/models/designSystemBuilderKbMountsResponseDto.d.ts +16 -0
  49. package/dist/models/designSystemBuilderKbMountsResponseDto.js +2 -0
  50. package/dist/models/designSystemBuilderKbPageMountDto.d.ts +13 -0
  51. package/dist/models/designSystemBuilderKbPageMountDto.js +9 -0
  52. package/dist/models/designSystemBuilderResponseDto.d.ts +48 -0
  53. package/dist/models/designSystemBuilderResponseDto.js +2 -0
  54. package/dist/models/designSystemBuilderResponseDtoAgentSlug.d.ts +14 -0
  55. package/dist/models/designSystemBuilderResponseDtoAgentSlug.js +9 -0
  56. package/dist/models/designSystemBuilderResponseDtoDescription.d.ts +13 -0
  57. package/dist/models/designSystemBuilderResponseDtoDescription.js +9 -0
  58. package/dist/models/designSystemBuilderResponseDtoFailureReason.d.ts +14 -0
  59. package/dist/models/designSystemBuilderResponseDtoFailureReason.js +9 -0
  60. package/dist/models/designSystemBuilderResponseDtoLatestBootstrapJobId.d.ts +14 -0
  61. package/dist/models/designSystemBuilderResponseDtoLatestBootstrapJobId.js +9 -0
  62. package/dist/models/designSystemBuilderResponseDtoSessionId.d.ts +14 -0
  63. package/dist/models/designSystemBuilderResponseDtoSessionId.js +9 -0
  64. package/dist/models/index.d.ts +36 -0
  65. package/dist/models/index.js +53 -0
  66. package/dist/models/kBPushEntryDto.d.ts +14 -0
  67. package/dist/models/kBPushEntryDto.js +2 -0
  68. package/dist/models/kBPushEntryDtoType.d.ts +15 -0
  69. package/dist/models/kBPushEntryDtoType.js +14 -0
  70. package/dist/models/launchPipelineDto.d.ts +13 -0
  71. package/dist/models/launchPipelineDto.js +9 -0
  72. package/dist/models/launchPipelineResponseDto.d.ts +15 -0
  73. package/dist/models/launchPipelineResponseDto.js +9 -0
  74. package/dist/models/updateBrainstormingDto.d.ts +21 -0
  75. package/dist/models/updateBrainstormingDto.js +2 -0
  76. package/dist/models/updateBrainstormingDtoDescription.d.ts +14 -0
  77. package/dist/models/updateBrainstormingDtoDescription.js +9 -0
  78. package/dist/models/updateBrainstormingKbMountsDto.d.ts +14 -0
  79. package/dist/models/updateBrainstormingKbMountsDto.js +2 -0
  80. package/dist/models/updateDesignSystemBuilderDto.d.ts +21 -0
  81. package/dist/models/updateDesignSystemBuilderDto.js +2 -0
  82. package/dist/models/updateDesignSystemBuilderDtoDescription.d.ts +14 -0
  83. package/dist/models/updateDesignSystemBuilderDtoDescription.js +9 -0
  84. package/dist/models/updateDesignSystemBuilderKbMountsDto.d.ts +14 -0
  85. package/dist/models/updateDesignSystemBuilderKbMountsDto.js +2 -0
  86. package/package.json +18 -0
@@ -0,0 +1,173 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.designSystemBuilderControllerUpdateKbMounts = exports.getDesignSystemBuilderControllerUpdateKbMountsUrl = exports.designSystemBuilderControllerListKbMounts = exports.getDesignSystemBuilderControllerListKbMountsUrl = exports.designSystemBuilderControllerPushToDocuments = exports.getDesignSystemBuilderControllerPushToDocumentsUrl = exports.designSystemBuilderControllerLaunch = exports.getDesignSystemBuilderControllerLaunchUrl = exports.designSystemBuilderControllerRestart = exports.getDesignSystemBuilderControllerRestartUrl = exports.designSystemBuilderControllerUpdate = exports.getDesignSystemBuilderControllerUpdateUrl = exports.designSystemBuilderControllerArchive = exports.getDesignSystemBuilderControllerArchiveUrl = exports.designSystemBuilderControllerGetById = exports.getDesignSystemBuilderControllerGetByIdUrl = exports.designSystemBuilderControllerList = exports.getDesignSystemBuilderControllerListUrl = exports.designSystemBuilderControllerCreate = exports.getDesignSystemBuilderControllerCreateUrl = void 0;
4
+ const custom_fetch_1 = require("../../custom-fetch");
5
+ /**
6
+ * @summary Create a design system build + provision its interactive agent
7
+ */
8
+ const getDesignSystemBuilderControllerCreateUrl = () => {
9
+ return `/design-system-builder`;
10
+ };
11
+ exports.getDesignSystemBuilderControllerCreateUrl = getDesignSystemBuilderControllerCreateUrl;
12
+ const designSystemBuilderControllerCreate = async (createDesignSystemBuilderDto, options) => {
13
+ return (0, custom_fetch_1.customFetch)((0, exports.getDesignSystemBuilderControllerCreateUrl)(), {
14
+ ...options,
15
+ method: 'POST',
16
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
17
+ body: JSON.stringify(createDesignSystemBuilderDto)
18
+ });
19
+ };
20
+ exports.designSystemBuilderControllerCreate = designSystemBuilderControllerCreate;
21
+ /**
22
+ * @summary List design system builds
23
+ */
24
+ const getDesignSystemBuilderControllerListUrl = (params) => {
25
+ const normalizedParams = new URLSearchParams();
26
+ Object.entries(params || {}).forEach(([key, value]) => {
27
+ if (value === undefined)
28
+ return;
29
+ if (value === null) {
30
+ normalizedParams.append(key, 'null');
31
+ return;
32
+ }
33
+ if (Array.isArray(value)) {
34
+ for (const item of value) {
35
+ if (item === undefined || item === null)
36
+ continue;
37
+ normalizedParams.append(key, item.toString());
38
+ }
39
+ return;
40
+ }
41
+ normalizedParams.append(key, value.toString());
42
+ });
43
+ const stringifiedParams = normalizedParams.toString();
44
+ return stringifiedParams.length > 0 ? `/design-system-builder?${stringifiedParams}` : `/design-system-builder`;
45
+ };
46
+ exports.getDesignSystemBuilderControllerListUrl = getDesignSystemBuilderControllerListUrl;
47
+ const designSystemBuilderControllerList = async (params, options) => {
48
+ return (0, custom_fetch_1.customFetch)((0, exports.getDesignSystemBuilderControllerListUrl)(params), {
49
+ ...options,
50
+ method: 'GET'
51
+ });
52
+ };
53
+ exports.designSystemBuilderControllerList = designSystemBuilderControllerList;
54
+ /**
55
+ * @summary Get a design system build by id
56
+ */
57
+ const getDesignSystemBuilderControllerGetByIdUrl = (id) => {
58
+ return `/design-system-builder/${id}`;
59
+ };
60
+ exports.getDesignSystemBuilderControllerGetByIdUrl = getDesignSystemBuilderControllerGetByIdUrl;
61
+ const designSystemBuilderControllerGetById = async (id, options) => {
62
+ return (0, custom_fetch_1.customFetch)((0, exports.getDesignSystemBuilderControllerGetByIdUrl)(id), {
63
+ ...options,
64
+ method: 'GET'
65
+ });
66
+ };
67
+ exports.designSystemBuilderControllerGetById = designSystemBuilderControllerGetById;
68
+ /**
69
+ * @summary Archive a design system build (terminates its interactive session). Idempotent.
70
+ */
71
+ const getDesignSystemBuilderControllerArchiveUrl = (id) => {
72
+ return `/design-system-builder/${id}`;
73
+ };
74
+ exports.getDesignSystemBuilderControllerArchiveUrl = getDesignSystemBuilderControllerArchiveUrl;
75
+ const designSystemBuilderControllerArchive = async (id, options) => {
76
+ return (0, custom_fetch_1.customFetch)((0, exports.getDesignSystemBuilderControllerArchiveUrl)(id), {
77
+ ...options,
78
+ method: 'DELETE'
79
+ });
80
+ };
81
+ exports.designSystemBuilderControllerArchive = designSystemBuilderControllerArchive;
82
+ /**
83
+ * @summary Update design system build metadata (title, description).
84
+ */
85
+ const getDesignSystemBuilderControllerUpdateUrl = (id) => {
86
+ return `/design-system-builder/${id}`;
87
+ };
88
+ exports.getDesignSystemBuilderControllerUpdateUrl = getDesignSystemBuilderControllerUpdateUrl;
89
+ const designSystemBuilderControllerUpdate = async (id, updateDesignSystemBuilderDto, options) => {
90
+ return (0, custom_fetch_1.customFetch)((0, exports.getDesignSystemBuilderControllerUpdateUrl)(id), {
91
+ ...options,
92
+ method: 'PATCH',
93
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
94
+ body: JSON.stringify(updateDesignSystemBuilderDto)
95
+ });
96
+ };
97
+ exports.designSystemBuilderControllerUpdate = designSystemBuilderControllerUpdate;
98
+ /**
99
+ * @summary Replace the interactive session backing this design system build. Used when the prior session has ended unrecoverably. The old session id is kept in `previousSessionIds` as an audit trail.
100
+ */
101
+ const getDesignSystemBuilderControllerRestartUrl = (id) => {
102
+ return `/design-system-builder/${id}/restart`;
103
+ };
104
+ exports.getDesignSystemBuilderControllerRestartUrl = getDesignSystemBuilderControllerRestartUrl;
105
+ const designSystemBuilderControllerRestart = async (id, options) => {
106
+ return (0, custom_fetch_1.customFetch)((0, exports.getDesignSystemBuilderControllerRestartUrl)(id), {
107
+ ...options,
108
+ method: 'POST'
109
+ });
110
+ };
111
+ exports.designSystemBuilderControllerRestart = designSystemBuilderControllerRestart;
112
+ /**
113
+ * @summary Hand off selected session deliverables + deliverables/PIPELINE_INTENT.md to work-orchestrator-api as a clarification-driven bootstrap. Returns the bootstrap jobId the frontend uses to navigate into the clarification chat. Keeps the design system build ACTIVE so the user can iterate further.
114
+ */
115
+ const getDesignSystemBuilderControllerLaunchUrl = (id) => {
116
+ return `/design-system-builder/${id}/launch`;
117
+ };
118
+ exports.getDesignSystemBuilderControllerLaunchUrl = getDesignSystemBuilderControllerLaunchUrl;
119
+ const designSystemBuilderControllerLaunch = async (id, launchPipelineDto, options) => {
120
+ return (0, custom_fetch_1.customFetch)((0, exports.getDesignSystemBuilderControllerLaunchUrl)(id), {
121
+ ...options,
122
+ method: 'POST',
123
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
124
+ body: JSON.stringify(launchPipelineDto)
125
+ });
126
+ };
127
+ exports.designSystemBuilderControllerLaunch = designSystemBuilderControllerLaunch;
128
+ /**
129
+ * @summary Push selected files or directories from the design system build session to a knowledge-base space. Optionally creates the target space if createSpace=true. Directory entries are expanded recursively.
130
+ */
131
+ const getDesignSystemBuilderControllerPushToDocumentsUrl = (id) => {
132
+ return `/design-system-builder/${id}/kb-push`;
133
+ };
134
+ exports.getDesignSystemBuilderControllerPushToDocumentsUrl = getDesignSystemBuilderControllerPushToDocumentsUrl;
135
+ const designSystemBuilderControllerPushToDocuments = async (id, designSystemBuilderKBPushDto, options) => {
136
+ return (0, custom_fetch_1.customFetch)((0, exports.getDesignSystemBuilderControllerPushToDocumentsUrl)(id), {
137
+ ...options,
138
+ method: 'POST',
139
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
140
+ body: JSON.stringify(designSystemBuilderKBPushDto)
141
+ });
142
+ };
143
+ exports.designSystemBuilderControllerPushToDocuments = designSystemBuilderControllerPushToDocuments;
144
+ /**
145
+ * @summary List KB spaces and per-space page selections currently mounted into this design system build's session workspace.
146
+ */
147
+ const getDesignSystemBuilderControllerListKbMountsUrl = (id) => {
148
+ return `/design-system-builder/${id}/kb-mounts`;
149
+ };
150
+ exports.getDesignSystemBuilderControllerListKbMountsUrl = getDesignSystemBuilderControllerListKbMountsUrl;
151
+ const designSystemBuilderControllerListKbMounts = async (id, options) => {
152
+ return (0, custom_fetch_1.customFetch)((0, exports.getDesignSystemBuilderControllerListKbMountsUrl)(id), {
153
+ ...options,
154
+ method: 'GET'
155
+ });
156
+ };
157
+ exports.designSystemBuilderControllerListKbMounts = designSystemBuilderControllerListKbMounts;
158
+ /**
159
+ * @summary Full-replace the KB mount selection for this design system build’s session. The workspace references slot is re-applied so the agent sees the change on its next turn. Send `{ spaceIds: [], pageMounts: [] }` to clear.
160
+ */
161
+ const getDesignSystemBuilderControllerUpdateKbMountsUrl = (id) => {
162
+ return `/design-system-builder/${id}/kb-mounts`;
163
+ };
164
+ exports.getDesignSystemBuilderControllerUpdateKbMountsUrl = getDesignSystemBuilderControllerUpdateKbMountsUrl;
165
+ const designSystemBuilderControllerUpdateKbMounts = async (id, updateDesignSystemBuilderKbMountsDto, options) => {
166
+ return (0, custom_fetch_1.customFetch)((0, exports.getDesignSystemBuilderControllerUpdateKbMountsUrl)(id), {
167
+ ...options,
168
+ method: 'PATCH',
169
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
170
+ body: JSON.stringify(updateDesignSystemBuilderKbMountsDto)
171
+ });
172
+ };
173
+ exports.designSystemBuilderControllerUpdateKbMounts = designSystemBuilderControllerUpdateKbMounts;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @summary Health check
3
+ */
4
+ export declare const getPluginHealthControllerCheckUrl: () => string;
5
+ export declare const pluginHealthControllerCheck: (options?: RequestInit) => Promise<void>;
6
+ /**
7
+ * @summary Liveness probe
8
+ */
9
+ export declare const getPluginHealthControllerLiveUrl: () => string;
10
+ export declare const pluginHealthControllerLive: (options?: RequestInit) => Promise<void>;
11
+ /**
12
+ * @summary Readiness probe — checks database connectivity
13
+ */
14
+ export declare const getPluginHealthControllerReadyUrl: () => string;
15
+ export declare const pluginHealthControllerReady: (options?: RequestInit) => Promise<void>;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.pluginHealthControllerReady = exports.getPluginHealthControllerReadyUrl = exports.pluginHealthControllerLive = exports.getPluginHealthControllerLiveUrl = exports.pluginHealthControllerCheck = exports.getPluginHealthControllerCheckUrl = void 0;
4
+ /**
5
+ * Generated by orval v8.6.2 🍺
6
+ * Do not edit manually.
7
+ * Brainstorming API
8
+ * Brainstorming exploration, chat, widgets, attachments, and promotion to pipeline
9
+ * OpenAPI spec version: 0.1.0
10
+ */
11
+ const custom_fetch_1 = require("../../custom-fetch");
12
+ /**
13
+ * @summary Health check
14
+ */
15
+ const getPluginHealthControllerCheckUrl = () => {
16
+ return `/health`;
17
+ };
18
+ exports.getPluginHealthControllerCheckUrl = getPluginHealthControllerCheckUrl;
19
+ const pluginHealthControllerCheck = async (options) => {
20
+ return (0, custom_fetch_1.customFetch)((0, exports.getPluginHealthControllerCheckUrl)(), {
21
+ ...options,
22
+ method: 'GET'
23
+ });
24
+ };
25
+ exports.pluginHealthControllerCheck = pluginHealthControllerCheck;
26
+ /**
27
+ * @summary Liveness probe
28
+ */
29
+ const getPluginHealthControllerLiveUrl = () => {
30
+ return `/health/live`;
31
+ };
32
+ exports.getPluginHealthControllerLiveUrl = getPluginHealthControllerLiveUrl;
33
+ const pluginHealthControllerLive = async (options) => {
34
+ return (0, custom_fetch_1.customFetch)((0, exports.getPluginHealthControllerLiveUrl)(), {
35
+ ...options,
36
+ method: 'GET'
37
+ });
38
+ };
39
+ exports.pluginHealthControllerLive = pluginHealthControllerLive;
40
+ /**
41
+ * @summary Readiness probe — checks database connectivity
42
+ */
43
+ const getPluginHealthControllerReadyUrl = () => {
44
+ return `/health/ready`;
45
+ };
46
+ exports.getPluginHealthControllerReadyUrl = getPluginHealthControllerReadyUrl;
47
+ const pluginHealthControllerReady = async (options) => {
48
+ return (0, custom_fetch_1.customFetch)((0, exports.getPluginHealthControllerReadyUrl)(), {
49
+ ...options,
50
+ method: 'GET'
51
+ });
52
+ };
53
+ exports.pluginHealthControllerReady = pluginHealthControllerReady;
@@ -0,0 +1,5 @@
1
+ export { configureClient, getClientConfig, ClientError, customFetch, type ClientConfig } from './custom-fetch';
2
+ export * from './models';
3
+ export * from './endpoints/brainstorming/brainstorming';
4
+ export * from './endpoints/design-system-builder/design-system-builder';
5
+ export * from './endpoints/health/health';
package/dist/index.js ADDED
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.customFetch = exports.ClientError = exports.getClientConfig = exports.configureClient = void 0;
18
+ // Auto-generated by scripts/build-client-index.js — do not edit manually.
19
+ var custom_fetch_1 = require("./custom-fetch");
20
+ Object.defineProperty(exports, "configureClient", { enumerable: true, get: function () { return custom_fetch_1.configureClient; } });
21
+ Object.defineProperty(exports, "getClientConfig", { enumerable: true, get: function () { return custom_fetch_1.getClientConfig; } });
22
+ Object.defineProperty(exports, "ClientError", { enumerable: true, get: function () { return custom_fetch_1.ClientError; } });
23
+ Object.defineProperty(exports, "customFetch", { enumerable: true, get: function () { return custom_fetch_1.customFetch; } });
24
+ __exportStar(require("./models"), exports);
25
+ __exportStar(require("./endpoints/brainstorming/brainstorming"), exports);
26
+ __exportStar(require("./endpoints/design-system-builder/design-system-builder"), exports);
27
+ __exportStar(require("./endpoints/health/health"), exports);
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Brainstorming API
5
+ * Brainstorming exploration, chat, widgets, attachments, and promotion to pipeline
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { BrainstormingStatus } from './brainstormingStatus';
9
+ export type BrainstormingControllerListParams = {
10
+ status?: BrainstormingStatus;
11
+ /**
12
+ * Include archived brainstormings in results. Defaults to false so the main list endpoint hides terminated rows at the DB level. Ignored when `status` is provided explicitly — that filter wins.
13
+ */
14
+ includeArchived?: boolean;
15
+ /**
16
+ * Filter by tag (exact match).
17
+ */
18
+ tag?: string;
19
+ /**
20
+ * Filter by creator user id.
21
+ */
22
+ createdBy?: string;
23
+ /**
24
+ * @minimum 1
25
+ */
26
+ page?: number;
27
+ /**
28
+ * @minimum 1
29
+ * @maximum 100
30
+ */
31
+ limit?: number;
32
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Brainstorming API
5
+ * Brainstorming exploration, chat, widgets, attachments, and promotion to pipeline
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { KBPushEntryDto } from './kBPushEntryDto';
9
+ export interface BrainstormingKBPushDto {
10
+ /** Target space slug. The space must exist or createSpace must be true. */
11
+ spaceSlug: string;
12
+ /** Human-readable title to use when creating the space. Required when createSpace=true and the space does not yet exist. */
13
+ spaceTitle?: string;
14
+ /** Create the space if it does not exist. */
15
+ createSpace?: boolean;
16
+ /** Slug of an existing KB page to use as the parent for pushed pages. When omitted, pages are created at the root of the space. */
17
+ targetParentSlug?: string;
18
+ /** Files and directories from the brainstorming session workspace to push. */
19
+ entries: KBPushEntryDto[];
20
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Brainstorming API
5
+ * Brainstorming exploration, chat, widgets, attachments, and promotion to pipeline
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export interface BrainstormingKBPushResponseDto {
9
+ /** Space slug where pages were created. */
10
+ spaceSlug: string;
11
+ /** Total number of KB pages created. */
12
+ pagesCreated: number;
13
+ /** IDs of the created KB pages. */
14
+ pageIds: string[];
15
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Brainstorming API
6
+ * Brainstorming exploration, chat, widgets, attachments, and promotion to pipeline
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Brainstorming API
5
+ * Brainstorming exploration, chat, widgets, attachments, and promotion to pipeline
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { BrainstormingKbPageMountDto } from './brainstormingKbPageMountDto';
9
+ export interface BrainstormingKbMountsResponseDto {
10
+ /** Brainstorming ID the selection belongs to. */
11
+ brainstormingId: string;
12
+ /** Underlying interactive session ID. */
13
+ sessionId: string;
14
+ spaceIds: string[];
15
+ pageMounts: BrainstormingKbPageMountDto[];
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Brainstorming API
5
+ * Brainstorming exploration, chat, widgets, attachments, and promotion to pipeline
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export interface BrainstormingKbPageMountDto {
9
+ /** ID of the KB space the selected pages belong to. */
10
+ spaceId: string;
11
+ /** Slugs of the pages within the space to mount. Each page is materialized as `references/kb/<spaceId>/<pageSlug>.md` in the brainstorming session's workspace. */
12
+ pageSlugs: string[];
13
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Brainstorming API
6
+ * Brainstorming exploration, chat, widgets, attachments, and promotion to pipeline
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Brainstorming API
5
+ * Brainstorming exploration, chat, widgets, attachments, and promotion to pipeline
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ import type { BrainstormingResponseDtoAgentSlug } from './brainstormingResponseDtoAgentSlug';
9
+ import type { BrainstormingResponseDtoDescription } from './brainstormingResponseDtoDescription';
10
+ import type { BrainstormingResponseDtoFailureReason } from './brainstormingResponseDtoFailureReason';
11
+ import type { BrainstormingResponseDtoLatestBootstrapJobId } from './brainstormingResponseDtoLatestBootstrapJobId';
12
+ import type { BrainstormingResponseDtoSessionId } from './brainstormingResponseDtoSessionId';
13
+ import type { BrainstormingStatus } from './brainstormingStatus';
14
+ export interface BrainstormingResponseDto {
15
+ id: string;
16
+ orgId: string;
17
+ projectId: string;
18
+ title: string;
19
+ /** @nullable */
20
+ description?: BrainstormingResponseDtoDescription;
21
+ status: BrainstormingStatus;
22
+ /**
23
+ * Active agent-session id. Null during CREATING, or after a restart while the fresh session is provisioning.
24
+ * @nullable
25
+ */
26
+ sessionId?: BrainstormingResponseDtoSessionId;
27
+ /** Audit of sessions superseded by /restart. */
28
+ previousSessionIds: string[];
29
+ /**
30
+ * Most recent bootstrap job id launched from this brainstorming. The frontend uses this to navigate into the clarification chat; the pipeline run itself is created later, after the clarification contract is approved.
31
+ * @nullable
32
+ */
33
+ latestBootstrapJobId?: BrainstormingResponseDtoLatestBootstrapJobId;
34
+ /**
35
+ * Human-readable error when create or archive failed. Null on healthy rows.
36
+ * @nullable
37
+ */
38
+ failureReason?: BrainstormingResponseDtoFailureReason;
39
+ /**
40
+ * Primary-agent slug currently bound to the underlying session. Null = follow the brainstorming profile default (`brainstorm`). Populated when the user picked a non-default agent at create time OR mutated mid-session via PATCH /sessions/:id/agent.
41
+ * @nullable
42
+ */
43
+ agentSlug?: BrainstormingResponseDtoAgentSlug;
44
+ tags: string[];
45
+ createdBy: string;
46
+ createdAt: string;
47
+ updatedAt: string;
48
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Brainstorming API
5
+ * Brainstorming exploration, chat, widgets, attachments, and promotion to pipeline
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ /**
9
+ * Primary-agent slug currently bound to the underlying session. Null = follow the brainstorming profile default (`brainstorm`). Populated when the user picked a non-default agent at create time OR mutated mid-session via PATCH /sessions/:id/agent.
10
+ * @nullable
11
+ */
12
+ export type BrainstormingResponseDtoAgentSlug = {
13
+ [key: string]: unknown;
14
+ } | null;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Brainstorming API
6
+ * Brainstorming exploration, chat, widgets, attachments, and promotion to pipeline
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Brainstorming API
5
+ * Brainstorming exploration, chat, widgets, attachments, and promotion to pipeline
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ /**
9
+ * @nullable
10
+ */
11
+ export type BrainstormingResponseDtoDescription = {
12
+ [key: string]: unknown;
13
+ } | null;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Brainstorming API
6
+ * Brainstorming exploration, chat, widgets, attachments, and promotion to pipeline
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Brainstorming API
5
+ * Brainstorming exploration, chat, widgets, attachments, and promotion to pipeline
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ /**
9
+ * Human-readable error when create or archive failed. Null on healthy rows.
10
+ * @nullable
11
+ */
12
+ export type BrainstormingResponseDtoFailureReason = {
13
+ [key: string]: unknown;
14
+ } | null;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Brainstorming API
6
+ * Brainstorming exploration, chat, widgets, attachments, and promotion to pipeline
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Brainstorming API
5
+ * Brainstorming exploration, chat, widgets, attachments, and promotion to pipeline
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ /**
9
+ * Most recent bootstrap job id launched from this brainstorming. The frontend uses this to navigate into the clarification chat; the pipeline run itself is created later, after the clarification contract is approved.
10
+ * @nullable
11
+ */
12
+ export type BrainstormingResponseDtoLatestBootstrapJobId = {
13
+ [key: string]: unknown;
14
+ } | null;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Brainstorming API
6
+ * Brainstorming exploration, chat, widgets, attachments, and promotion to pipeline
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Brainstorming API
5
+ * Brainstorming exploration, chat, widgets, attachments, and promotion to pipeline
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ /**
9
+ * Active agent-session id. Null during CREATING, or after a restart while the fresh session is provisioning.
10
+ * @nullable
11
+ */
12
+ export type BrainstormingResponseDtoSessionId = {
13
+ [key: string]: unknown;
14
+ } | null;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Brainstorming API
6
+ * Brainstorming exploration, chat, widgets, attachments, and promotion to pipeline
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Brainstorming API
5
+ * Brainstorming exploration, chat, widgets, attachments, and promotion to pipeline
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export type BrainstormingStatus = typeof BrainstormingStatus[keyof typeof BrainstormingStatus];
9
+ export declare const BrainstormingStatus: {
10
+ readonly creating: "creating";
11
+ readonly active: "active";
12
+ readonly archived: "archived";
13
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v8.6.2 🍺
4
+ * Do not edit manually.
5
+ * Brainstorming API
6
+ * Brainstorming exploration, chat, widgets, attachments, and promotion to pipeline
7
+ * OpenAPI spec version: 0.1.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.BrainstormingStatus = void 0;
11
+ exports.BrainstormingStatus = {
12
+ creating: 'creating',
13
+ active: 'active',
14
+ archived: 'archived',
15
+ };
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Generated by orval v8.6.2 🍺
3
+ * Do not edit manually.
4
+ * Brainstorming API
5
+ * Brainstorming exploration, chat, widgets, attachments, and promotion to pipeline
6
+ * OpenAPI spec version: 0.1.0
7
+ */
8
+ export interface CreateBrainstormingDto {
9
+ /**
10
+ * @minLength 1
11
+ * @maxLength 200
12
+ */
13
+ title: string;
14
+ /** @maxLength 4000 */
15
+ description?: string;
16
+ /** Initial tags for list-page filtering. */
17
+ tags?: string[];
18
+ /**
19
+ * Primary-agent slug to drive the brainstorming session. Must belong to the `brainstorming` plugin — the override is rejected with 400 otherwise. Omit to fall back to the brainstorming profile default (`brainstorm`).
20
+ * @maxLength 200
21
+ */
22
+ agentSlug?: string;
23
+ }