@smartspace/api-client 0.1.0-pr.1114.e8d08bd → 0.1.0-pr.1117.aa925bf
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.
|
@@ -170,7 +170,8 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
170
170
|
/**
|
|
171
171
|
* @summary Rename a published custom block set (all versions). Set names are
|
|
172
172
|
organizational — flows bind to block (class) names, so renaming never
|
|
173
|
-
breaks a flow. Admin-only
|
|
173
|
+
breaks a flow. Admin-only (the attribute must be method-level: the
|
|
174
|
+
Admin policy handler ignores class-level `[AuthorizeAdmin]`).
|
|
174
175
|
*/
|
|
175
176
|
const blockSetsRenameBlockSet = (name, blocksRenameBlockSetRequest) => {
|
|
176
177
|
return (0, instance_1.customInstance)({ url: `/BlockSets/${name}`, method: 'PATCH',
|
|
@@ -202,7 +203,8 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
202
203
|
/**
|
|
203
204
|
* @summary List the SDK's built-in blocks (smartspace.* modules) for the
|
|
204
205
|
custom-blocks draft picker. App-native blocks (LLMs etc.) are
|
|
205
|
-
excluded upstream. Admin-only
|
|
206
|
+
excluded upstream. Admin-only (method-level attribute — the Admin
|
|
207
|
+
policy handler ignores class-level `[AuthorizeAdmin]`).
|
|
206
208
|
*/
|
|
207
209
|
const blocksGetSdkBlocks = () => {
|
|
208
210
|
return (0, instance_1.customInstance)({ url: `/Blocks/sdk`, method: 'GET'
|
|
@@ -210,7 +212,9 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
210
212
|
};
|
|
211
213
|
/**
|
|
212
214
|
* @summary Get the Python source of a native/SDK block — used by the custom-blocks
|
|
213
|
-
page as a starting scaffold when creating a draft. Admin-only
|
|
215
|
+
page as a starting scaffold when creating a draft. Admin-only (the
|
|
216
|
+
attribute must be method-level: the Admin policy handler ignores
|
|
217
|
+
class-level `[AuthorizeAdmin]`).
|
|
214
218
|
*/
|
|
215
219
|
const blocksGetBlockSource = (name, version) => {
|
|
216
220
|
return (0, instance_1.customInstance)({ url: `/Blocks/${name}/${version}/source`, method: 'GET'
|
|
@@ -510,7 +510,8 @@ export declare const blockSetsDeleteBlockSetParams: zod.ZodObject<{
|
|
|
510
510
|
/**
|
|
511
511
|
* @summary Rename a published custom block set (all versions). Set names are
|
|
512
512
|
organizational — flows bind to block (class) names, so renaming never
|
|
513
|
-
breaks a flow. Admin-only
|
|
513
|
+
breaks a flow. Admin-only (the attribute must be method-level: the
|
|
514
|
+
Admin policy handler ignores class-level `[AuthorizeAdmin]`).
|
|
514
515
|
*/
|
|
515
516
|
export declare const blockSetsRenameBlockSetParams: zod.ZodObject<{
|
|
516
517
|
name: zod.ZodString;
|
|
@@ -608,7 +609,8 @@ export declare const blocksGetBlocksResponse: zod.ZodRecord<zod.ZodString, zod.Z
|
|
|
608
609
|
/**
|
|
609
610
|
* @summary List the SDK's built-in blocks (smartspace.* modules) for the
|
|
610
611
|
custom-blocks draft picker. App-native blocks (LLMs etc.) are
|
|
611
|
-
excluded upstream. Admin-only
|
|
612
|
+
excluded upstream. Admin-only (method-level attribute — the Admin
|
|
613
|
+
policy handler ignores class-level `[AuthorizeAdmin]`).
|
|
612
614
|
*/
|
|
613
615
|
export declare const blocksGetSdkBlocksResponseItem: zod.ZodObject<{
|
|
614
616
|
name: zod.ZodString;
|
|
@@ -620,7 +622,9 @@ export declare const blocksGetSdkBlocksResponse: zod.ZodArray<zod.ZodObject<{
|
|
|
620
622
|
}, zod.core.$strip>>;
|
|
621
623
|
/**
|
|
622
624
|
* @summary Get the Python source of a native/SDK block — used by the custom-blocks
|
|
623
|
-
page as a starting scaffold when creating a draft. Admin-only
|
|
625
|
+
page as a starting scaffold when creating a draft. Admin-only (the
|
|
626
|
+
attribute must be method-level: the Admin policy handler ignores
|
|
627
|
+
class-level `[AuthorizeAdmin]`).
|
|
624
628
|
*/
|
|
625
629
|
export declare const blocksGetBlockSourceParams: zod.ZodObject<{
|
|
626
630
|
name: zod.ZodString;
|
|
@@ -386,7 +386,8 @@ exports.blockSetsDeleteBlockSetParams = zod_1.default.strictObject({
|
|
|
386
386
|
/**
|
|
387
387
|
* @summary Rename a published custom block set (all versions). Set names are
|
|
388
388
|
organizational — flows bind to block (class) names, so renaming never
|
|
389
|
-
breaks a flow. Admin-only
|
|
389
|
+
breaks a flow. Admin-only (the attribute must be method-level: the
|
|
390
|
+
Admin policy handler ignores class-level `[AuthorizeAdmin]`).
|
|
390
391
|
*/
|
|
391
392
|
exports.blockSetsRenameBlockSetParams = zod_1.default.strictObject({
|
|
392
393
|
"name": zod_1.default.string()
|
|
@@ -465,7 +466,8 @@ exports.blocksGetBlocksResponse = zod_1.default.record(zod_1.default.string(), z
|
|
|
465
466
|
/**
|
|
466
467
|
* @summary List the SDK's built-in blocks (smartspace.* modules) for the
|
|
467
468
|
custom-blocks draft picker. App-native blocks (LLMs etc.) are
|
|
468
|
-
excluded upstream. Admin-only
|
|
469
|
+
excluded upstream. Admin-only (method-level attribute — the Admin
|
|
470
|
+
policy handler ignores class-level `[AuthorizeAdmin]`).
|
|
469
471
|
*/
|
|
470
472
|
exports.blocksGetSdkBlocksResponseItem = zod_1.default.object({
|
|
471
473
|
"name": zod_1.default.string(),
|
|
@@ -474,7 +476,9 @@ exports.blocksGetSdkBlocksResponseItem = zod_1.default.object({
|
|
|
474
476
|
exports.blocksGetSdkBlocksResponse = zod_1.default.array(exports.blocksGetSdkBlocksResponseItem);
|
|
475
477
|
/**
|
|
476
478
|
* @summary Get the Python source of a native/SDK block — used by the custom-blocks
|
|
477
|
-
page as a starting scaffold when creating a draft. Admin-only
|
|
479
|
+
page as a starting scaffold when creating a draft. Admin-only (the
|
|
480
|
+
attribute must be method-level: the Admin policy handler ignores
|
|
481
|
+
class-level `[AuthorizeAdmin]`).
|
|
478
482
|
*/
|
|
479
483
|
exports.blocksGetBlockSourceParams = zod_1.default.strictObject({
|
|
480
484
|
"name": zod_1.default.string(),
|