@smartspace/api-client 0.1.0-dev.49afd9b → 0.1.0-dev.4ccfde0

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 (28) hide show
  1. package/dist/generated/chat/api.msw.d.ts +74 -0
  2. package/dist/generated/chat/api.msw.js +618 -0
  3. package/dist/generated/config/api.d.ts +9 -1
  4. package/dist/generated/config/api.js +45 -1
  5. package/dist/generated/config/api.msw.d.ts +254 -0
  6. package/dist/generated/config/api.msw.js +2441 -0
  7. package/dist/generated/config/models/blocksBlockSet.d.ts +2 -1
  8. package/dist/generated/config/models/blocksRenameBlockSetRequest.d.ts +9 -0
  9. package/dist/generated/config/models/blocksRenameBlockSetRequest.js +8 -0
  10. package/dist/generated/config/models/blocksUsedInWorkspaceRef.d.ts +11 -0
  11. package/dist/generated/config/models/blocksUsedInWorkspaceRef.js +8 -0
  12. package/dist/generated/config/models/draftsPublishDraftRequest.d.ts +11 -0
  13. package/dist/generated/config/models/draftsPublishDraftRequest.js +8 -0
  14. package/dist/generated/config/models/draftsPublishDraftResponse.d.ts +13 -0
  15. package/dist/generated/config/models/draftsPublishDraftResponse.js +2 -0
  16. package/dist/generated/config/models/draftsPublishedBlockRef.d.ts +10 -0
  17. package/dist/generated/config/models/draftsPublishedBlockRef.js +8 -0
  18. package/dist/generated/config/models/index.d.ts +7 -0
  19. package/dist/generated/config/models/index.js +7 -0
  20. package/dist/generated/config/models/integrationsSmartSpaceAiBlockSourceResponse.d.ts +11 -0
  21. package/dist/generated/config/models/integrationsSmartSpaceAiBlockSourceResponse.js +8 -0
  22. package/dist/generated/config/models/integrationsSmartSpaceAiSdkBlockRef.d.ts +10 -0
  23. package/dist/generated/config/models/integrationsSmartSpaceAiSdkBlockRef.js +8 -0
  24. package/dist/generated/config/zod.d.ts +72 -2
  25. package/dist/generated/config/zod.js +78 -14
  26. package/dist/mocks.d.ts +2 -0
  27. package/dist/mocks.js +42 -0
  28. package/package.json +24 -2
@@ -6,6 +6,7 @@
6
6
  */
7
7
  import type { BlocksBlockSetBlockInterfaces } from './blocksBlockSetBlockInterfaces';
8
8
  import type { EnumsBlockType } from './enumsBlockType';
9
+ import type { BlocksUsedInWorkspaceRef } from './blocksUsedInWorkspaceRef';
9
10
  export interface BlocksBlockSet {
10
11
  blockInterfaces: BlocksBlockSetBlockInterfaces;
11
12
  /** @nullable */
@@ -21,5 +22,5 @@ export interface BlocksBlockSet {
21
22
  /** @nullable */
22
23
  sourceCodeUri?: string | null;
23
24
  type: EnumsBlockType;
24
- usedInWorkspaces: string[];
25
+ usedInWorkspaces: BlocksUsedInWorkspaceRef[];
25
26
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Generated by orval v7.13.2 🍺
3
+ * Do not edit manually.
4
+ * SmartSpace Admin API
5
+ * OpenAPI spec version: v1
6
+ */
7
+ export interface BlocksRenameBlockSetRequest {
8
+ newName: string;
9
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v7.13.2 🍺
4
+ * Do not edit manually.
5
+ * SmartSpace Admin API
6
+ * OpenAPI spec version: v1
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval v7.13.2 🍺
3
+ * Do not edit manually.
4
+ * SmartSpace Admin API
5
+ * OpenAPI spec version: v1
6
+ */
7
+ export interface BlocksUsedInWorkspaceRef {
8
+ /** @pattern ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$ */
9
+ id: string;
10
+ name: string;
11
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v7.13.2 🍺
4
+ * Do not edit manually.
5
+ * SmartSpace Admin API
6
+ * OpenAPI spec version: v1
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval v7.13.2 🍺
3
+ * Do not edit manually.
4
+ * SmartSpace Admin API
5
+ * OpenAPI spec version: v1
6
+ */
7
+ export interface DraftsPublishDraftRequest {
8
+ confirmOverwrite: boolean;
9
+ /** @nullable */
10
+ publishAs?: string | null;
11
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v7.13.2 🍺
4
+ * Do not edit manually.
5
+ * SmartSpace Admin API
6
+ * OpenAPI spec version: v1
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by orval v7.13.2 🍺
3
+ * Do not edit manually.
4
+ * SmartSpace Admin API
5
+ * OpenAPI spec version: v1
6
+ */
7
+ import type { DraftsPublishedBlockRef } from './draftsPublishedBlockRef';
8
+ export interface DraftsPublishDraftResponse {
9
+ /** @pattern ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$ */
10
+ blockSetId: string;
11
+ blocks: DraftsPublishedBlockRef[];
12
+ name: string;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by orval v7.13.2 🍺
3
+ * Do not edit manually.
4
+ * SmartSpace Admin API
5
+ * OpenAPI spec version: v1
6
+ */
7
+ export interface DraftsPublishedBlockRef {
8
+ name: string;
9
+ version: string;
10
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v7.13.2 🍺
4
+ * Do not edit manually.
5
+ * SmartSpace Admin API
6
+ * OpenAPI spec version: v1
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -57,9 +57,11 @@ export * from './blocksPortInterface';
57
57
  export * from './blocksPortInterfaceInputs';
58
58
  export * from './blocksPortInterfaceMetadata';
59
59
  export * from './blocksPortInterfaceOutputs';
60
+ export * from './blocksRenameBlockSetRequest';
60
61
  export * from './blocksStateInterface';
61
62
  export * from './blocksStateInterfaceDefault';
62
63
  export * from './blocksStateInterfaceMetadata';
64
+ export * from './blocksUsedInWorkspaceRef';
63
65
  export * from './configApiRunFlowRequest';
64
66
  export * from './containerDataSet';
65
67
  export * from './containersPostParams';
@@ -130,6 +132,9 @@ export * from './debugLogsResponse';
130
132
  export * from './documentsGetDocumentSasParams';
131
133
  export * from './draftsDraft';
132
134
  export * from './draftsDraftBlockInterfaces';
135
+ export * from './draftsPublishDraftRequest';
136
+ export * from './draftsPublishDraftResponse';
137
+ export * from './draftsPublishedBlockRef';
133
138
  export * from './draftsSaveDraftRequest';
134
139
  export * from './draftsSaveDraftResponse';
135
140
  export * from './draftsSaveDraftResponseBlockInterfaces';
@@ -206,6 +211,7 @@ export * from './integrationsAzureArmAzureLocation';
206
211
  export * from './integrationsAzureArmVirtualMachineSize';
207
212
  export * from './integrationsAzureStorageSasToken';
208
213
  export * from './integrationsSmartSpaceAiBlockInputModel';
214
+ export * from './integrationsSmartSpaceAiBlockSourceResponse';
209
215
  export * from './integrationsSmartSpaceAiContainerItemFlowRun';
210
216
  export * from './integrationsSmartSpaceAiContainerItemFlowRunError';
211
217
  export * from './integrationsSmartSpaceAiContainerItemRunHistory';
@@ -217,6 +223,7 @@ export * from './integrationsSmartSpaceAiFlowPinRef';
217
223
  export * from './integrationsSmartSpaceAiFlowValueModel';
218
224
  export * from './integrationsSmartSpaceAiFlowValueModelChannels';
219
225
  export * from './integrationsSmartSpaceAiFunctionExecutionDebugModel';
226
+ export * from './integrationsSmartSpaceAiSdkBlockRef';
220
227
  export * from './messageThreadMessageThreadSummary';
221
228
  export * from './messageThreadsGetStepExecutionsParams';
222
229
  export * from './messageThreadsGetWorkspaceExecutionsParams';
@@ -73,9 +73,11 @@ __exportStar(require("./blocksPortInterface"), exports);
73
73
  __exportStar(require("./blocksPortInterfaceInputs"), exports);
74
74
  __exportStar(require("./blocksPortInterfaceMetadata"), exports);
75
75
  __exportStar(require("./blocksPortInterfaceOutputs"), exports);
76
+ __exportStar(require("./blocksRenameBlockSetRequest"), exports);
76
77
  __exportStar(require("./blocksStateInterface"), exports);
77
78
  __exportStar(require("./blocksStateInterfaceDefault"), exports);
78
79
  __exportStar(require("./blocksStateInterfaceMetadata"), exports);
80
+ __exportStar(require("./blocksUsedInWorkspaceRef"), exports);
79
81
  __exportStar(require("./configApiRunFlowRequest"), exports);
80
82
  __exportStar(require("./containerDataSet"), exports);
81
83
  __exportStar(require("./containersPostParams"), exports);
@@ -146,6 +148,9 @@ __exportStar(require("./debugLogsResponse"), exports);
146
148
  __exportStar(require("./documentsGetDocumentSasParams"), exports);
147
149
  __exportStar(require("./draftsDraft"), exports);
148
150
  __exportStar(require("./draftsDraftBlockInterfaces"), exports);
151
+ __exportStar(require("./draftsPublishDraftRequest"), exports);
152
+ __exportStar(require("./draftsPublishDraftResponse"), exports);
153
+ __exportStar(require("./draftsPublishedBlockRef"), exports);
149
154
  __exportStar(require("./draftsSaveDraftRequest"), exports);
150
155
  __exportStar(require("./draftsSaveDraftResponse"), exports);
151
156
  __exportStar(require("./draftsSaveDraftResponseBlockInterfaces"), exports);
@@ -222,6 +227,7 @@ __exportStar(require("./integrationsAzureArmAzureLocation"), exports);
222
227
  __exportStar(require("./integrationsAzureArmVirtualMachineSize"), exports);
223
228
  __exportStar(require("./integrationsAzureStorageSasToken"), exports);
224
229
  __exportStar(require("./integrationsSmartSpaceAiBlockInputModel"), exports);
230
+ __exportStar(require("./integrationsSmartSpaceAiBlockSourceResponse"), exports);
225
231
  __exportStar(require("./integrationsSmartSpaceAiContainerItemFlowRun"), exports);
226
232
  __exportStar(require("./integrationsSmartSpaceAiContainerItemFlowRunError"), exports);
227
233
  __exportStar(require("./integrationsSmartSpaceAiContainerItemRunHistory"), exports);
@@ -233,6 +239,7 @@ __exportStar(require("./integrationsSmartSpaceAiFlowPinRef"), exports);
233
239
  __exportStar(require("./integrationsSmartSpaceAiFlowValueModel"), exports);
234
240
  __exportStar(require("./integrationsSmartSpaceAiFlowValueModelChannels"), exports);
235
241
  __exportStar(require("./integrationsSmartSpaceAiFunctionExecutionDebugModel"), exports);
242
+ __exportStar(require("./integrationsSmartSpaceAiSdkBlockRef"), exports);
236
243
  __exportStar(require("./messageThreadMessageThreadSummary"), exports);
237
244
  __exportStar(require("./messageThreadsGetStepExecutionsParams"), exports);
238
245
  __exportStar(require("./messageThreadsGetWorkspaceExecutionsParams"), exports);
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval v7.13.2 🍺
3
+ * Do not edit manually.
4
+ * SmartSpace Admin API
5
+ * OpenAPI spec version: v1
6
+ */
7
+ export interface IntegrationsSmartSpaceAiBlockSourceResponse {
8
+ code: string;
9
+ name: string;
10
+ version: string;
11
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v7.13.2 🍺
4
+ * Do not edit manually.
5
+ * SmartSpace Admin API
6
+ * OpenAPI spec version: v1
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by orval v7.13.2 🍺
3
+ * Do not edit manually.
4
+ * SmartSpace Admin API
5
+ * OpenAPI spec version: v1
6
+ */
7
+ export interface IntegrationsSmartSpaceAiSdkBlockRef {
8
+ name: string;
9
+ version: string;
10
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by orval v7.13.2 🍺
4
+ * Do not edit manually.
5
+ * SmartSpace Admin API
6
+ * OpenAPI spec version: v1
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -320,6 +320,7 @@ export declare const blockSetsGetBlockSetsQueryParams: zod.ZodObject<{
320
320
  types: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
321
321
  }, zod.core.$strict>;
322
322
  export declare const blockSetsGetBlockSetsResponseIdRegExp: RegExp;
323
+ export declare const blockSetsGetBlockSetsResponseUsedInWorkspacesItemIdRegExp: RegExp;
323
324
  export declare const blockSetsGetBlockSetsResponseItem: zod.ZodObject<{
324
325
  blockInterfaces: zod.ZodRecord<zod.ZodString, zod.ZodRecord<zod.ZodString, zod.ZodObject<{
325
326
  metadata: zod.ZodRecord<zod.ZodString, zod.ZodAny>;
@@ -389,7 +390,10 @@ export declare const blockSetsGetBlockSetsResponseItem: zod.ZodObject<{
389
390
  Custom: "Custom";
390
391
  Debug: "Debug";
391
392
  }>;
392
- usedInWorkspaces: zod.ZodArray<zod.ZodString>;
393
+ usedInWorkspaces: zod.ZodArray<zod.ZodObject<{
394
+ id: zod.ZodString;
395
+ name: zod.ZodString;
396
+ }, zod.core.$strip>>;
393
397
  }, zod.core.$strip>;
394
398
  export declare const blockSetsGetBlockSetsResponse: zod.ZodArray<zod.ZodObject<{
395
399
  blockInterfaces: zod.ZodRecord<zod.ZodString, zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -460,7 +464,10 @@ export declare const blockSetsGetBlockSetsResponse: zod.ZodArray<zod.ZodObject<{
460
464
  Custom: "Custom";
461
465
  Debug: "Debug";
462
466
  }>;
463
- usedInWorkspaces: zod.ZodArray<zod.ZodString>;
467
+ usedInWorkspaces: zod.ZodArray<zod.ZodObject<{
468
+ id: zod.ZodString;
469
+ name: zod.ZodString;
470
+ }, zod.core.$strip>>;
464
471
  }, zod.core.$strip>>;
465
472
  /**
466
473
  * @summary Get the saved Python source code for a deployed custom block set.
@@ -480,6 +487,18 @@ export declare const blockSetsGetDeployedBlockFilesParams: zod.ZodObject<{
480
487
  export declare const blockSetsDeleteBlockSetParams: zod.ZodObject<{
481
488
  name: zod.ZodString;
482
489
  }, zod.core.$strict>;
490
+ /**
491
+ * @summary Rename a published custom block set (all versions). Set names are
492
+ organizational — flows bind to block (class) names, so renaming never
493
+ breaks a flow. Admin-only (the attribute must be method-level: the
494
+ Admin policy handler ignores class-level `[AuthorizeAdmin]`).
495
+ */
496
+ export declare const blockSetsRenameBlockSetParams: zod.ZodObject<{
497
+ name: zod.ZodString;
498
+ }, zod.core.$strict>;
499
+ export declare const blockSetsRenameBlockSetBody: zod.ZodObject<{
500
+ newName: zod.ZodString;
501
+ }, zod.core.$strict>;
483
502
  /**
484
503
  * @summary Adds a new custom block set.
485
504
  */
@@ -567,6 +586,35 @@ export declare const blocksGetBlocksResponse: zod.ZodRecord<zod.ZodString, zod.Z
567
586
  }>;
568
587
  version: zod.ZodString;
569
588
  }, zod.core.$strip>>>;
589
+ /**
590
+ * @summary List the SDK's built-in blocks (smartspace.* modules) for the
591
+ custom-blocks draft picker. App-native blocks (LLMs etc.) are
592
+ excluded upstream. Admin-only (method-level attribute — the Admin
593
+ policy handler ignores class-level `[AuthorizeAdmin]`).
594
+ */
595
+ export declare const blocksGetSdkBlocksResponseItem: zod.ZodObject<{
596
+ name: zod.ZodString;
597
+ version: zod.ZodString;
598
+ }, zod.core.$strip>;
599
+ export declare const blocksGetSdkBlocksResponse: zod.ZodArray<zod.ZodObject<{
600
+ name: zod.ZodString;
601
+ version: zod.ZodString;
602
+ }, zod.core.$strip>>;
603
+ /**
604
+ * @summary Get the Python source of a native/SDK block — used by the custom-blocks
605
+ page as a starting scaffold when creating a draft. Admin-only (the
606
+ attribute must be method-level: the Admin policy handler ignores
607
+ class-level `[AuthorizeAdmin]`).
608
+ */
609
+ export declare const blocksGetBlockSourceParams: zod.ZodObject<{
610
+ name: zod.ZodString;
611
+ version: zod.ZodString;
612
+ }, zod.core.$strict>;
613
+ export declare const blocksGetBlockSourceResponse: zod.ZodObject<{
614
+ code: zod.ZodString;
615
+ name: zod.ZodString;
616
+ version: zod.ZodString;
617
+ }, zod.core.$strip>;
570
618
  /**
571
619
  * @summary Manually trigger reingestion of a specific container item.
572
620
  */
@@ -2000,6 +2048,28 @@ export declare const draftsSaveDraftResponse: zod.ZodObject<{
2000
2048
  parseError: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2001
2049
  rowVersion: zod.ZodString;
2002
2050
  }, zod.core.$strip>;
2051
+ /**
2052
+ * @summary Publish the draft's saved source as a tenant-visible Custom block set.
2053
+ When a published set of the same name exists, the first call returns 409
2054
+ with the impact details; retry with `confirmOverwrite: true` to
2055
+ replace it (a new row supersedes the old per newest-wins resolution).
2056
+ */
2057
+ export declare const draftsPublishDraftParams: zod.ZodObject<{
2058
+ name: zod.ZodString;
2059
+ }, zod.core.$strict>;
2060
+ export declare const draftsPublishDraftBody: zod.ZodObject<{
2061
+ confirmOverwrite: zod.ZodBoolean;
2062
+ publishAs: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2063
+ }, zod.core.$strict>;
2064
+ export declare const draftsPublishDraftResponseBlockSetIdRegExp: RegExp;
2065
+ export declare const draftsPublishDraftResponse: zod.ZodObject<{
2066
+ blockSetId: zod.ZodString;
2067
+ blocks: zod.ZodArray<zod.ZodObject<{
2068
+ name: zod.ZodString;
2069
+ version: zod.ZodString;
2070
+ }, zod.core.$strip>>;
2071
+ name: zod.ZodString;
2072
+ }, zod.core.$strip>;
2003
2073
  /**
2004
2074
  * @summary Upload files to be referenced in requests (supports full and chunked uploads).
2005
2075
  */