@umbraco-cms/mcp-dev 16.0.1 → 17.0.1-beta.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.
- package/README.md +1 -1
- package/dist/index.cjs +2300 -144
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2423 -267
- package/dist/index.js.map +1 -1
- package/package.json +4 -2
package/dist/index.cjs
CHANGED
|
@@ -3238,6 +3238,7 @@ var _axios = require('axios'); var _axios2 = _interopRequireDefault(_axios);
|
|
|
3238
3238
|
// src/orval/client/umbraco-axios.ts
|
|
3239
3239
|
var _qs = require('qs'); var _qs2 = _interopRequireDefault(_qs);
|
|
3240
3240
|
|
|
3241
|
+
var _https = require('https'); var _https2 = _interopRequireDefault(_https);
|
|
3241
3242
|
var authConfig = null;
|
|
3242
3243
|
function initializeUmbracoAxios(config) {
|
|
3243
3244
|
authConfig = config;
|
|
@@ -3252,7 +3253,12 @@ function initializeUmbracoAxios(config) {
|
|
|
3252
3253
|
}
|
|
3253
3254
|
var grant_type = "client_credentials";
|
|
3254
3255
|
var tokenPath = "/umbraco/management/api/v1/security/back-office/token";
|
|
3255
|
-
var
|
|
3256
|
+
var httpsAgent = new _https2.default.Agent({
|
|
3257
|
+
rejectUnauthorized: process.env.NODE_ENV === "production"
|
|
3258
|
+
});
|
|
3259
|
+
var UmbracoAxios = _axios2.default.create({
|
|
3260
|
+
httpsAgent
|
|
3261
|
+
});
|
|
3256
3262
|
var accessToken = null;
|
|
3257
3263
|
var tokenExpiry = null;
|
|
3258
3264
|
var fetchAccessToken = async () => {
|
|
@@ -3269,7 +3275,8 @@ var fetchAccessToken = async () => {
|
|
|
3269
3275
|
{
|
|
3270
3276
|
headers: {
|
|
3271
3277
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
3272
|
-
}
|
|
3278
|
+
},
|
|
3279
|
+
httpsAgent
|
|
3273
3280
|
}
|
|
3274
3281
|
);
|
|
3275
3282
|
const { access_token, expires_in } = response.data;
|
|
@@ -3415,15 +3422,6 @@ var getUmbracoManagementAPI = () => {
|
|
|
3415
3422
|
options
|
|
3416
3423
|
);
|
|
3417
3424
|
};
|
|
3418
|
-
const getDataTypeByIdReferences = (id, options) => {
|
|
3419
|
-
return UmbracoManagementClient(
|
|
3420
|
-
{
|
|
3421
|
-
url: `/umbraco/management/api/v1/data-type/${id}/references`,
|
|
3422
|
-
method: "GET"
|
|
3423
|
-
},
|
|
3424
|
-
options
|
|
3425
|
-
);
|
|
3426
|
-
};
|
|
3427
3425
|
const getDataTypeConfiguration = (options) => {
|
|
3428
3426
|
return UmbracoManagementClient(
|
|
3429
3427
|
{
|
|
@@ -3533,6 +3531,16 @@ var getUmbracoManagementAPI = () => {
|
|
|
3533
3531
|
options
|
|
3534
3532
|
);
|
|
3535
3533
|
};
|
|
3534
|
+
const getTreeDataTypeSiblings = (params, options) => {
|
|
3535
|
+
return UmbracoManagementClient(
|
|
3536
|
+
{
|
|
3537
|
+
url: `/umbraco/management/api/v1/tree/data-type/siblings`,
|
|
3538
|
+
method: "GET",
|
|
3539
|
+
params
|
|
3540
|
+
},
|
|
3541
|
+
options
|
|
3542
|
+
);
|
|
3543
|
+
};
|
|
3536
3544
|
const getDictionary = (params, options) => {
|
|
3537
3545
|
return UmbracoManagementClient(
|
|
3538
3546
|
{
|
|
@@ -3807,6 +3815,16 @@ var getUmbracoManagementAPI = () => {
|
|
|
3807
3815
|
options
|
|
3808
3816
|
);
|
|
3809
3817
|
};
|
|
3818
|
+
const getTreeDocumentBlueprintSiblings = (params, options) => {
|
|
3819
|
+
return UmbracoManagementClient(
|
|
3820
|
+
{
|
|
3821
|
+
url: `/umbraco/management/api/v1/tree/document-blueprint/siblings`,
|
|
3822
|
+
method: "GET",
|
|
3823
|
+
params
|
|
3824
|
+
},
|
|
3825
|
+
options
|
|
3826
|
+
);
|
|
3827
|
+
};
|
|
3810
3828
|
const postDocumentType = (createDocumentTypeRequestModel, options) => {
|
|
3811
3829
|
return UmbracoManagementClient(
|
|
3812
3830
|
{
|
|
@@ -4050,6 +4068,16 @@ var getUmbracoManagementAPI = () => {
|
|
|
4050
4068
|
options
|
|
4051
4069
|
);
|
|
4052
4070
|
};
|
|
4071
|
+
const getTreeDocumentTypeSiblings = (params, options) => {
|
|
4072
|
+
return UmbracoManagementClient(
|
|
4073
|
+
{
|
|
4074
|
+
url: `/umbraco/management/api/v1/tree/document-type/siblings`,
|
|
4075
|
+
method: "GET",
|
|
4076
|
+
params
|
|
4077
|
+
},
|
|
4078
|
+
options
|
|
4079
|
+
);
|
|
4080
|
+
};
|
|
4053
4081
|
const getDocumentVersion = (params, options) => {
|
|
4054
4082
|
return UmbracoManagementClient(
|
|
4055
4083
|
{
|
|
@@ -4149,6 +4177,16 @@ var getUmbracoManagementAPI = () => {
|
|
|
4149
4177
|
options
|
|
4150
4178
|
);
|
|
4151
4179
|
};
|
|
4180
|
+
const getDocumentByIdAvailableSegmentOptions = (id, params, options) => {
|
|
4181
|
+
return UmbracoManagementClient(
|
|
4182
|
+
{
|
|
4183
|
+
url: `/umbraco/management/api/v1/document/${id}/available-segment-options`,
|
|
4184
|
+
method: "GET",
|
|
4185
|
+
params
|
|
4186
|
+
},
|
|
4187
|
+
options
|
|
4188
|
+
);
|
|
4189
|
+
};
|
|
4152
4190
|
const postDocumentByIdCopy = (id, copyDocumentRequestModel, options) => {
|
|
4153
4191
|
return UmbracoManagementClient(
|
|
4154
4192
|
{
|
|
@@ -4220,6 +4258,16 @@ var getUmbracoManagementAPI = () => {
|
|
|
4220
4258
|
options
|
|
4221
4259
|
);
|
|
4222
4260
|
};
|
|
4261
|
+
const getDocumentByIdPreviewUrl = (id, params, options) => {
|
|
4262
|
+
return UmbracoManagementClient(
|
|
4263
|
+
{
|
|
4264
|
+
url: `/umbraco/management/api/v1/document/${id}/preview-url`,
|
|
4265
|
+
method: "GET",
|
|
4266
|
+
params
|
|
4267
|
+
},
|
|
4268
|
+
options
|
|
4269
|
+
);
|
|
4270
|
+
};
|
|
4223
4271
|
const postDocumentByIdPublicAccess = (id, publicAccessRequestModel, options) => {
|
|
4224
4272
|
return UmbracoManagementClient(
|
|
4225
4273
|
{
|
|
@@ -4481,6 +4529,16 @@ var getUmbracoManagementAPI = () => {
|
|
|
4481
4529
|
options
|
|
4482
4530
|
);
|
|
4483
4531
|
};
|
|
4532
|
+
const getRecycleBinDocumentSiblings = (params, options) => {
|
|
4533
|
+
return UmbracoManagementClient(
|
|
4534
|
+
{
|
|
4535
|
+
url: `/umbraco/management/api/v1/recycle-bin/document/siblings`,
|
|
4536
|
+
method: "GET",
|
|
4537
|
+
params
|
|
4538
|
+
},
|
|
4539
|
+
options
|
|
4540
|
+
);
|
|
4541
|
+
};
|
|
4484
4542
|
const getTreeDocumentAncestors = (params, options) => {
|
|
4485
4543
|
return UmbracoManagementClient(
|
|
4486
4544
|
{
|
|
@@ -4511,6 +4569,16 @@ var getUmbracoManagementAPI = () => {
|
|
|
4511
4569
|
options
|
|
4512
4570
|
);
|
|
4513
4571
|
};
|
|
4572
|
+
const getTreeDocumentSiblings = (params, options) => {
|
|
4573
|
+
return UmbracoManagementClient(
|
|
4574
|
+
{
|
|
4575
|
+
url: `/umbraco/management/api/v1/tree/document/siblings`,
|
|
4576
|
+
method: "GET",
|
|
4577
|
+
params
|
|
4578
|
+
},
|
|
4579
|
+
options
|
|
4580
|
+
);
|
|
4581
|
+
};
|
|
4514
4582
|
const postDynamicRootQuery = (dynamicRootRequestModel, options) => {
|
|
4515
4583
|
return UmbracoManagementClient(
|
|
4516
4584
|
{
|
|
@@ -5097,6 +5165,16 @@ var getUmbracoManagementAPI = () => {
|
|
|
5097
5165
|
options
|
|
5098
5166
|
);
|
|
5099
5167
|
};
|
|
5168
|
+
const getTreeMediaTypeSiblings = (params, options) => {
|
|
5169
|
+
return UmbracoManagementClient(
|
|
5170
|
+
{
|
|
5171
|
+
url: `/umbraco/management/api/v1/tree/media-type/siblings`,
|
|
5172
|
+
method: "GET",
|
|
5173
|
+
params
|
|
5174
|
+
},
|
|
5175
|
+
options
|
|
5176
|
+
);
|
|
5177
|
+
};
|
|
5100
5178
|
const getCollectionMedia = (params, options) => {
|
|
5101
5179
|
return UmbracoManagementClient(
|
|
5102
5180
|
{
|
|
@@ -5347,6 +5425,16 @@ var getUmbracoManagementAPI = () => {
|
|
|
5347
5425
|
options
|
|
5348
5426
|
);
|
|
5349
5427
|
};
|
|
5428
|
+
const getRecycleBinMediaSiblings = (params, options) => {
|
|
5429
|
+
return UmbracoManagementClient(
|
|
5430
|
+
{
|
|
5431
|
+
url: `/umbraco/management/api/v1/recycle-bin/media/siblings`,
|
|
5432
|
+
method: "GET",
|
|
5433
|
+
params
|
|
5434
|
+
},
|
|
5435
|
+
options
|
|
5436
|
+
);
|
|
5437
|
+
};
|
|
5350
5438
|
const getTreeMediaAncestors = (params, options) => {
|
|
5351
5439
|
return UmbracoManagementClient(
|
|
5352
5440
|
{
|
|
@@ -5377,6 +5465,16 @@ var getUmbracoManagementAPI = () => {
|
|
|
5377
5465
|
options
|
|
5378
5466
|
);
|
|
5379
5467
|
};
|
|
5468
|
+
const getTreeMediaSiblings = (params, options) => {
|
|
5469
|
+
return UmbracoManagementClient(
|
|
5470
|
+
{
|
|
5471
|
+
url: `/umbraco/management/api/v1/tree/media/siblings`,
|
|
5472
|
+
method: "GET",
|
|
5473
|
+
params
|
|
5474
|
+
},
|
|
5475
|
+
options
|
|
5476
|
+
);
|
|
5477
|
+
};
|
|
5380
5478
|
const getItemMemberGroup = (params, options) => {
|
|
5381
5479
|
return UmbracoManagementClient(
|
|
5382
5480
|
{
|
|
@@ -5545,6 +5643,46 @@ var getUmbracoManagementAPI = () => {
|
|
|
5545
5643
|
options
|
|
5546
5644
|
);
|
|
5547
5645
|
};
|
|
5646
|
+
const postMemberTypeFolder = (createFolderRequestModel, options) => {
|
|
5647
|
+
return UmbracoManagementClient(
|
|
5648
|
+
{
|
|
5649
|
+
url: `/umbraco/management/api/v1/member-type/folder`,
|
|
5650
|
+
method: "POST",
|
|
5651
|
+
headers: { "Content-Type": "application/json" },
|
|
5652
|
+
data: createFolderRequestModel
|
|
5653
|
+
},
|
|
5654
|
+
options
|
|
5655
|
+
);
|
|
5656
|
+
};
|
|
5657
|
+
const getMemberTypeFolderById = (id, options) => {
|
|
5658
|
+
return UmbracoManagementClient(
|
|
5659
|
+
{
|
|
5660
|
+
url: `/umbraco/management/api/v1/member-type/folder/${id}`,
|
|
5661
|
+
method: "GET"
|
|
5662
|
+
},
|
|
5663
|
+
options
|
|
5664
|
+
);
|
|
5665
|
+
};
|
|
5666
|
+
const deleteMemberTypeFolderById = (id, options) => {
|
|
5667
|
+
return UmbracoManagementClient(
|
|
5668
|
+
{
|
|
5669
|
+
url: `/umbraco/management/api/v1/member-type/folder/${id}`,
|
|
5670
|
+
method: "DELETE"
|
|
5671
|
+
},
|
|
5672
|
+
options
|
|
5673
|
+
);
|
|
5674
|
+
};
|
|
5675
|
+
const putMemberTypeFolderById = (id, updateFolderResponseModel, options) => {
|
|
5676
|
+
return UmbracoManagementClient(
|
|
5677
|
+
{
|
|
5678
|
+
url: `/umbraco/management/api/v1/member-type/folder/${id}`,
|
|
5679
|
+
method: "PUT",
|
|
5680
|
+
headers: { "Content-Type": "application/json" },
|
|
5681
|
+
data: updateFolderResponseModel
|
|
5682
|
+
},
|
|
5683
|
+
options
|
|
5684
|
+
);
|
|
5685
|
+
};
|
|
5548
5686
|
const getTreeMemberTypeRoot = (params, options) => {
|
|
5549
5687
|
return UmbracoManagementClient(
|
|
5550
5688
|
{
|
|
@@ -5555,6 +5693,16 @@ var getUmbracoManagementAPI = () => {
|
|
|
5555
5693
|
options
|
|
5556
5694
|
);
|
|
5557
5695
|
};
|
|
5696
|
+
const getTreeMemberTypeSiblings = (params, options) => {
|
|
5697
|
+
return UmbracoManagementClient(
|
|
5698
|
+
{
|
|
5699
|
+
url: `/umbraco/management/api/v1/tree/member-type/siblings`,
|
|
5700
|
+
method: "GET",
|
|
5701
|
+
params
|
|
5702
|
+
},
|
|
5703
|
+
options
|
|
5704
|
+
);
|
|
5705
|
+
};
|
|
5558
5706
|
const getFilterMember = (params, options) => {
|
|
5559
5707
|
return UmbracoManagementClient(
|
|
5560
5708
|
{
|
|
@@ -5713,6 +5861,15 @@ var getUmbracoManagementAPI = () => {
|
|
|
5713
5861
|
options
|
|
5714
5862
|
);
|
|
5715
5863
|
};
|
|
5864
|
+
const getNewsDashboard = (options) => {
|
|
5865
|
+
return UmbracoManagementClient(
|
|
5866
|
+
{
|
|
5867
|
+
url: `/umbraco/management/api/v1/news-dashboard`,
|
|
5868
|
+
method: "GET"
|
|
5869
|
+
},
|
|
5870
|
+
options
|
|
5871
|
+
);
|
|
5872
|
+
};
|
|
5716
5873
|
const getObjectTypes = (params, options) => {
|
|
5717
5874
|
return UmbracoManagementClient(
|
|
5718
5875
|
{
|
|
@@ -5960,6 +6117,16 @@ var getUmbracoManagementAPI = () => {
|
|
|
5960
6117
|
options
|
|
5961
6118
|
);
|
|
5962
6119
|
};
|
|
6120
|
+
const getTreePartialViewSiblings = (params, options) => {
|
|
6121
|
+
return UmbracoManagementClient(
|
|
6122
|
+
{
|
|
6123
|
+
url: `/umbraco/management/api/v1/tree/partial-view/siblings`,
|
|
6124
|
+
method: "GET",
|
|
6125
|
+
params
|
|
6126
|
+
},
|
|
6127
|
+
options
|
|
6128
|
+
);
|
|
6129
|
+
};
|
|
5963
6130
|
const deletePreview = (options) => {
|
|
5964
6131
|
return UmbracoManagementClient(
|
|
5965
6132
|
{
|
|
@@ -6242,6 +6409,16 @@ var getUmbracoManagementAPI = () => {
|
|
|
6242
6409
|
options
|
|
6243
6410
|
);
|
|
6244
6411
|
};
|
|
6412
|
+
const getTreeScriptSiblings = (params, options) => {
|
|
6413
|
+
return UmbracoManagementClient(
|
|
6414
|
+
{
|
|
6415
|
+
url: `/umbraco/management/api/v1/tree/script/siblings`,
|
|
6416
|
+
method: "GET",
|
|
6417
|
+
params
|
|
6418
|
+
},
|
|
6419
|
+
options
|
|
6420
|
+
);
|
|
6421
|
+
};
|
|
6245
6422
|
const getSearcher = (params, options) => {
|
|
6246
6423
|
return UmbracoManagementClient(
|
|
6247
6424
|
{
|
|
@@ -6519,6 +6696,16 @@ var getUmbracoManagementAPI = () => {
|
|
|
6519
6696
|
options
|
|
6520
6697
|
);
|
|
6521
6698
|
};
|
|
6699
|
+
const getTreeStylesheetSiblings = (params, options) => {
|
|
6700
|
+
return UmbracoManagementClient(
|
|
6701
|
+
{
|
|
6702
|
+
url: `/umbraco/management/api/v1/tree/stylesheet/siblings`,
|
|
6703
|
+
method: "GET",
|
|
6704
|
+
params
|
|
6705
|
+
},
|
|
6706
|
+
options
|
|
6707
|
+
);
|
|
6708
|
+
};
|
|
6522
6709
|
const getTag = (params, options) => {
|
|
6523
6710
|
return UmbracoManagementClient(
|
|
6524
6711
|
{
|
|
@@ -6678,6 +6865,16 @@ var getUmbracoManagementAPI = () => {
|
|
|
6678
6865
|
options
|
|
6679
6866
|
);
|
|
6680
6867
|
};
|
|
6868
|
+
const getTreeTemplateSiblings = (params, options) => {
|
|
6869
|
+
return UmbracoManagementClient(
|
|
6870
|
+
{
|
|
6871
|
+
url: `/umbraco/management/api/v1/tree/template/siblings`,
|
|
6872
|
+
method: "GET",
|
|
6873
|
+
params
|
|
6874
|
+
},
|
|
6875
|
+
options
|
|
6876
|
+
);
|
|
6877
|
+
};
|
|
6681
6878
|
const postUpgradeAuthorize = (options) => {
|
|
6682
6879
|
return UmbracoManagementClient(
|
|
6683
6880
|
{
|
|
@@ -6737,6 +6934,15 @@ var getUmbracoManagementAPI = () => {
|
|
|
6737
6934
|
options
|
|
6738
6935
|
);
|
|
6739
6936
|
};
|
|
6937
|
+
const deleteUserDataById = (id, options) => {
|
|
6938
|
+
return UmbracoManagementClient(
|
|
6939
|
+
{
|
|
6940
|
+
url: `/umbraco/management/api/v1/user-data/${id}`,
|
|
6941
|
+
method: "DELETE"
|
|
6942
|
+
},
|
|
6943
|
+
options
|
|
6944
|
+
);
|
|
6945
|
+
};
|
|
6740
6946
|
const getFilterUserGroup = (params, options) => {
|
|
6741
6947
|
return UmbracoManagementClient(
|
|
6742
6948
|
{
|
|
@@ -7322,7 +7528,7 @@ var getUmbracoManagementAPI = () => {
|
|
|
7322
7528
|
options
|
|
7323
7529
|
);
|
|
7324
7530
|
};
|
|
7325
|
-
return { getCulture, postDataType, getDataTypeById, deleteDataTypeById, putDataTypeById, postDataTypeByIdCopy, getDataTypeByIdIsUsed, putDataTypeByIdMove, getDataTypeByIdReferencedBy,
|
|
7531
|
+
return { getCulture, postDataType, getDataTypeById, deleteDataTypeById, putDataTypeById, postDataTypeByIdCopy, getDataTypeByIdIsUsed, putDataTypeByIdMove, getDataTypeByIdReferencedBy, getDataTypeConfiguration, postDataTypeFolder, getDataTypeFolderById, deleteDataTypeFolderById, putDataTypeFolderById, getFilterDataType, getItemDataType, getItemDataTypeSearch, getTreeDataTypeAncestors, getTreeDataTypeChildren, getTreeDataTypeRoot, getTreeDataTypeSiblings, getDictionary, postDictionary, getDictionaryById, deleteDictionaryById, putDictionaryById, getDictionaryByIdExport, putDictionaryByIdMove, postDictionaryImport, getItemDictionary, getTreeDictionaryAncestors, getTreeDictionaryChildren, getTreeDictionaryRoot, postDocumentBlueprint, getDocumentBlueprintById, deleteDocumentBlueprintById, putDocumentBlueprintById, putDocumentBlueprintByIdMove, getDocumentBlueprintByIdScaffold, postDocumentBlueprintFolder, getDocumentBlueprintFolderById, deleteDocumentBlueprintFolderById, putDocumentBlueprintFolderById, postDocumentBlueprintFromDocument, getItemDocumentBlueprint, getTreeDocumentBlueprintAncestors, getTreeDocumentBlueprintChildren, getTreeDocumentBlueprintRoot, getTreeDocumentBlueprintSiblings, postDocumentType, getDocumentTypeById, deleteDocumentTypeById, putDocumentTypeById, getDocumentTypeByIdAllowedChildren, getDocumentTypeByIdBlueprint, getDocumentTypeByIdCompositionReferences, postDocumentTypeByIdCopy, getDocumentTypeByIdExport, putDocumentTypeByIdImport, putDocumentTypeByIdMove, getDocumentTypeAllowedAtRoot, postDocumentTypeAvailableCompositions, getDocumentTypeConfiguration, postDocumentTypeFolder, getDocumentTypeFolderById, deleteDocumentTypeFolderById, putDocumentTypeFolderById, postDocumentTypeImport, getItemDocumentType, getItemDocumentTypeSearch, getTreeDocumentTypeAncestors, getTreeDocumentTypeChildren, getTreeDocumentTypeRoot, getTreeDocumentTypeSiblings, getDocumentVersion, getDocumentVersionById, putDocumentVersionByIdPreventCleanup, postDocumentVersionByIdRollback, getCollectionDocumentById, postDocument, getDocumentById, deleteDocumentById, putDocumentById, getDocumentByIdAuditLog, getDocumentByIdAvailableSegmentOptions, postDocumentByIdCopy, getDocumentByIdDomains, putDocumentByIdDomains, putDocumentByIdMove, putDocumentByIdMoveToRecycleBin, getDocumentByIdNotifications, putDocumentByIdNotifications, getDocumentByIdPreviewUrl, postDocumentByIdPublicAccess, deleteDocumentByIdPublicAccess, getDocumentByIdPublicAccess, putDocumentByIdPublicAccess, putDocumentByIdPublish, putDocumentByIdPublishWithDescendants, getDocumentByIdPublishWithDescendantsResultByTaskId, getDocumentByIdPublished, getDocumentByIdReferencedBy, getDocumentByIdReferencedDescendants, putDocumentByIdUnpublish, putUmbracoManagementApiV11DocumentByIdValidate11, getDocumentAreReferenced, getDocumentConfiguration, putDocumentSort, getDocumentUrls, postDocumentValidate, getItemDocument, getItemDocumentSearch, deleteRecycleBinDocument, deleteRecycleBinDocumentById, getRecycleBinDocumentByIdOriginalParent, putRecycleBinDocumentByIdRestore, getRecycleBinDocumentChildren, getRecycleBinDocumentReferencedBy, getRecycleBinDocumentRoot, getRecycleBinDocumentSiblings, getTreeDocumentAncestors, getTreeDocumentChildren, getTreeDocumentRoot, getTreeDocumentSiblings, postDynamicRootQuery, getDynamicRootSteps, getHealthCheckGroup, getHealthCheckGroupByName, postHealthCheckGroupByNameCheck, postHealthCheckExecuteAction, getHelp, getImagingResizeUrls, getImportAnalyze, getIndexer, getIndexerByIndexName, postIndexerByIndexNameRebuild, getInstallSettings, postInstallSetup, postInstallValidateDatabase, getItemLanguage, getItemLanguageDefault, getLanguage, postLanguage, getLanguageByIsoCode, deleteLanguageByIsoCode, putLanguageByIsoCode, getLogViewerLevel, getLogViewerLevelCount, getLogViewerLog, getLogViewerMessageTemplate, getLogViewerSavedSearch, postLogViewerSavedSearch, getLogViewerSavedSearchByName, deleteLogViewerSavedSearchByName, getLogViewerValidateLogsSize, getManifestManifest, getManifestManifestPrivate, getManifestManifestPublic, getItemMediaType, getItemMediaTypeAllowed, getItemMediaTypeFolders, getItemMediaTypeSearch, postMediaType, getMediaTypeById, deleteMediaTypeById, putMediaTypeById, getMediaTypeByIdAllowedChildren, getMediaTypeByIdCompositionReferences, postMediaTypeByIdCopy, getMediaTypeByIdExport, putMediaTypeByIdImport, putMediaTypeByIdMove, getMediaTypeAllowedAtRoot, postMediaTypeAvailableCompositions, getMediaTypeConfiguration, postMediaTypeFolder, getMediaTypeFolderById, deleteMediaTypeFolderById, putMediaTypeFolderById, postMediaTypeImport, getTreeMediaTypeAncestors, getTreeMediaTypeChildren, getTreeMediaTypeRoot, getTreeMediaTypeSiblings, getCollectionMedia, getItemMedia, getItemMediaSearch, postMedia, getMediaById, deleteMediaById, putMediaById, getMediaByIdAuditLog, putMediaByIdMove, putMediaByIdMoveToRecycleBin, getMediaByIdReferencedBy, getMediaByIdReferencedDescendants, putMediaByIdValidate, getMediaAreReferenced, getMediaConfiguration, putMediaSort, getMediaUrls, postMediaValidate, deleteRecycleBinMedia, deleteRecycleBinMediaById, getRecycleBinMediaByIdOriginalParent, putRecycleBinMediaByIdRestore, getRecycleBinMediaChildren, getRecycleBinMediaReferencedBy, getRecycleBinMediaRoot, getRecycleBinMediaSiblings, getTreeMediaAncestors, getTreeMediaChildren, getTreeMediaRoot, getTreeMediaSiblings, getItemMemberGroup, getMemberGroup, postMemberGroup, getMemberGroupById, deleteMemberGroupById, putMemberGroupById, getTreeMemberGroupRoot, getItemMemberType, getItemMemberTypeSearch, postMemberType, getMemberTypeById, deleteMemberTypeById, putMemberTypeById, getMemberTypeByIdCompositionReferences, postMemberTypeByIdCopy, postMemberTypeAvailableCompositions, getMemberTypeConfiguration, postMemberTypeFolder, getMemberTypeFolderById, deleteMemberTypeFolderById, putMemberTypeFolderById, getTreeMemberTypeRoot, getTreeMemberTypeSiblings, getFilterMember, getItemMember, getItemMemberSearch, postMember, getMemberById, deleteMemberById, putMemberById, getMemberByIdReferencedBy, getMemberByIdReferencedDescendants, putMemberByIdValidate, getMemberAreReferenced, getMemberConfiguration, postMemberValidate, postModelsBuilderBuild, getModelsBuilderDashboard, getModelsBuilderStatus, getNewsDashboard, getObjectTypes, getOembedQuery, postPackageByNameRunMigration, getPackageConfiguration, getPackageCreated, postPackageCreated, getPackageCreatedById, deletePackageCreatedById, putPackageCreatedById, getPackageCreatedByIdDownload, getPackageMigrationStatus, getItemPartialView, postPartialView, getPartialViewByPath, deletePartialViewByPath, putPartialViewByPath, putPartialViewByPathRename, postPartialViewFolder, getPartialViewFolderByPath, deletePartialViewFolderByPath, getPartialViewSnippet, getPartialViewSnippetById, getTreePartialViewAncestors, getTreePartialViewChildren, getTreePartialViewRoot, getTreePartialViewSiblings, deletePreview, postPreview, getProfilingStatus, putProfilingStatus, getPropertyTypeIsUsed, postPublishedCacheRebuild, getPublishedCacheRebuildStatus, postPublishedCacheReload, getRedirectManagement, getRedirectManagementById, deleteRedirectManagementById, getRedirectManagementStatus, postRedirectManagementStatus, getItemRelationType, getRelationType, getRelationTypeById, getRelationByRelationTypeId, getItemScript, postScript, getScriptByPath, deleteScriptByPath, putScriptByPath, putScriptByPathRename, postScriptFolder, getScriptFolderByPath, deleteScriptFolderByPath, getTreeScriptAncestors, getTreeScriptChildren, getTreeScriptRoot, getTreeScriptSiblings, getSearcher, getSearcherBySearcherNameQuery, getSecurityConfiguration, postSecurityForgotPassword, postSecurityForgotPasswordReset, postSecurityForgotPasswordVerify, getSegment, getServerConfiguration, getServerInformation, getServerStatus, getServerTroubleshooting, getServerUpgradeCheck, getItemStaticFile, getTreeStaticFileAncestors, getTreeStaticFileChildren, getTreeStaticFileRoot, getItemStylesheet, postStylesheet, getStylesheetByPath, deleteStylesheetByPath, putStylesheetByPath, putStylesheetByPathRename, postStylesheetFolder, getStylesheetFolderByPath, deleteStylesheetFolderByPath, getTreeStylesheetAncestors, getTreeStylesheetChildren, getTreeStylesheetRoot, getTreeStylesheetSiblings, getTag, getTelemetry, getTelemetryLevel, postTelemetryLevel, getItemTemplate, getItemTemplateSearch, postTemplate, getTemplateById, deleteTemplateById, putTemplateById, getTemplateConfiguration, postTemplateQueryExecute, getTemplateQuerySettings, getTreeTemplateAncestors, getTreeTemplateChildren, getTreeTemplateRoot, getTreeTemplateSiblings, postUpgradeAuthorize, getUpgradeSettings, postUserData, getUserData, putUserData, getUserDataById, deleteUserDataById, getFilterUserGroup, getItemUserGroup, deleteUserGroup, postUserGroup, getUserGroup, getUserGroupById, deleteUserGroupById, putUserGroupById, deleteUserGroupByIdUsers, postUserGroupByIdUsers, getFilterUser, getItemUser, postUser, deleteUser, getUser, getUserById, deleteUserById, putUserById, getUserById2fa, deleteUserById2faByProviderName, getUserByIdCalculateStartNodes, postUserByIdChangePassword, postUserByIdClientCredentials, getUserByIdClientCredentials, deleteUserByIdClientCredentialsByClientId, postUserByIdResetPassword, deleteUserAvatarById, postUserAvatarById, getUserConfiguration, getUserCurrent, getUserCurrent2fa, deleteUserCurrent2faByProviderName, postUserCurrent2faByProviderName, getUserCurrent2faByProviderName, postUserCurrentAvatar, postUserCurrentChangePassword, getUserCurrentConfiguration, getUserCurrentLoginProviders, getUserCurrentPermissions, getUserCurrentPermissionsDocument, getUserCurrentPermissionsMedia, postUserDisable, postUserEnable, postUserInvite, postUserInviteCreatePassword, postUserInviteResend, postUserInviteVerify, postUserSetUserGroups, postUserUnlock, getItemWebhook, getWebhook, postWebhook, getWebhookById, deleteWebhookById, putWebhookById, getWebhookByIdLogs, getWebhookEvents, getWebhookLogs };
|
|
7326
7532
|
};
|
|
7327
7533
|
|
|
7328
7534
|
// src/umb-management-api/api/temporary-file/index.ts
|
|
@@ -7391,7 +7597,7 @@ var UmbracoManagementClient2 = (_class2 = class {
|
|
|
7391
7597
|
// package.json
|
|
7392
7598
|
var package_default = {
|
|
7393
7599
|
name: "@umbraco-cms/mcp-dev",
|
|
7394
|
-
version: "
|
|
7600
|
+
version: "17.0.1-beta.1",
|
|
7395
7601
|
type: "module",
|
|
7396
7602
|
description: "A model context protocol (MCP) server for Umbraco CMS",
|
|
7397
7603
|
main: "index.js",
|
|
@@ -7410,10 +7616,12 @@ var package_default = {
|
|
|
7410
7616
|
"patch-publish-alpha": "npm version prerelease --preid=alpha && npm publish --tag alpha --access public",
|
|
7411
7617
|
"eval-mcp:basic": "npx mcp-server-tester@1.4.0 evals tests/e2e/basic/basic-tests.yaml --server-config tests/e2e/basic/basic-tests-config.json",
|
|
7412
7618
|
"eval-mcp:create-data-type-text-box": "npx mcp-server-tester@1.4.0 evals tests/e2e/create-data-type/create-data-type-text-box.yaml --server-config tests/e2e/create-data-type/create-data-type-config.json",
|
|
7413
|
-
"eval-mcp:create-data-type-block-list": "npx mcp-server-tester@1.4.0 evals tests/e2e/create-data-type/create-data-type-block-list.yaml --server-config tests/e2e/create-data-type/create-data-type-config.json
|
|
7619
|
+
"eval-mcp:create-data-type-block-list": "npx mcp-server-tester@1.4.0 evals tests/e2e/create-data-type/create-data-type-block-list.yaml --server-config tests/e2e/create-data-type/create-data-type-config.json",
|
|
7414
7620
|
"eval-mcp:create-document-type": "npx mcp-server-tester@1.4.0 evals tests/e2e/create-document-type/create-document-type.yaml --server-config tests/e2e/create-document-type/create-document-type-config.json",
|
|
7415
7621
|
"eval-mcp:create-document-copy": "npx mcp-server-tester@1.4.0 evals tests/e2e/create-document-copy/create-document-copy.yaml --server-config tests/e2e/create-document-copy/create-document-copy-config.json",
|
|
7416
7622
|
"eval-mcp:create-document-with-template": "npx mcp-server-tester@1.4.0 evals tests/e2e/create-document-with-template/create-document-with-template.yaml --server-config tests/e2e/create-document-with-template/create-document-with-template-config.json",
|
|
7623
|
+
"eval-mcp:update-document-properties": "npx mcp-server-tester@1.4.0 evals tests/e2e/update-document-properties/update-document-properties.yaml --server-config tests/e2e/update-document-properties/update-document-properties-config.json",
|
|
7624
|
+
"eval-mcp:update-block-property": "npx mcp-server-tester@1.4.0 evals tests/e2e/update-block-property/update-block-property.yaml --server-config tests/e2e/update-block-property/update-block-property-config.json",
|
|
7417
7625
|
"eval-mcp:all": "npm run eval-mcp:basic && npm run eval-mcp:create-data-type && npm run eval-mcp:create-document-type && npm run eval-mcp:create-blog-post"
|
|
7418
7626
|
},
|
|
7419
7627
|
engines: {
|
|
@@ -7654,7 +7862,11 @@ var getDataTypeByIdReferencedByResponse = _zod.z.object({
|
|
|
7654
7862
|
"variants": _zod.z.array(_zod.z.object({
|
|
7655
7863
|
"name": _zod.z.string(),
|
|
7656
7864
|
"culture": _zod.z.string().nullish(),
|
|
7657
|
-
"
|
|
7865
|
+
"id": _zod.z.string().uuid(),
|
|
7866
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
7867
|
+
"alias": _zod.z.string()
|
|
7868
|
+
})),
|
|
7869
|
+
"state": _zod.z.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
|
|
7658
7870
|
}))
|
|
7659
7871
|
})).or(_zod.z.object({
|
|
7660
7872
|
"$type": _zod.z.enum(["DocumentTypePropertyTypeReferenceResponseModel"]),
|
|
@@ -7711,22 +7923,6 @@ var getDataTypeByIdReferencedByResponse = _zod.z.object({
|
|
|
7711
7923
|
})
|
|
7712
7924
|
})))
|
|
7713
7925
|
});
|
|
7714
|
-
var getDataTypeByIdReferencesParams = _zod.z.object({
|
|
7715
|
-
"id": _zod.z.string().uuid()
|
|
7716
|
-
});
|
|
7717
|
-
var getDataTypeByIdReferencesResponseItem = _zod.z.object({
|
|
7718
|
-
"contentType": _zod.z.object({
|
|
7719
|
-
"id": _zod.z.string().uuid(),
|
|
7720
|
-
"type": _zod.z.string().nullable(),
|
|
7721
|
-
"name": _zod.z.string().nullable(),
|
|
7722
|
-
"icon": _zod.z.string().nullable()
|
|
7723
|
-
}),
|
|
7724
|
-
"properties": _zod.z.array(_zod.z.object({
|
|
7725
|
-
"name": _zod.z.string(),
|
|
7726
|
-
"alias": _zod.z.string()
|
|
7727
|
-
}))
|
|
7728
|
-
});
|
|
7729
|
-
var getDataTypeByIdReferencesResponse = _zod.z.array(getDataTypeByIdReferencesResponseItem);
|
|
7730
7926
|
var getDataTypeConfigurationResponse = _zod.z.object({
|
|
7731
7927
|
"canBeChanged": _zod.z.enum(["True", "False", "FalseWithHelpText"]),
|
|
7732
7928
|
"documentListViewId": _zod.z.string().uuid(),
|
|
@@ -7767,6 +7963,9 @@ var getFilterDataTypeResponse = _zod.z.object({
|
|
|
7767
7963
|
"total": _zod.z.number(),
|
|
7768
7964
|
"items": _zod.z.array(_zod.z.object({
|
|
7769
7965
|
"id": _zod.z.string().uuid(),
|
|
7966
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
7967
|
+
"alias": _zod.z.string()
|
|
7968
|
+
})),
|
|
7770
7969
|
"name": _zod.z.string(),
|
|
7771
7970
|
"editorUiAlias": _zod.z.string().nullish(),
|
|
7772
7971
|
"editorAlias": _zod.z.string(),
|
|
@@ -7778,6 +7977,9 @@ var getItemDataTypeQueryParams = _zod.z.object({
|
|
|
7778
7977
|
});
|
|
7779
7978
|
var getItemDataTypeResponseItem = _zod.z.object({
|
|
7780
7979
|
"id": _zod.z.string().uuid(),
|
|
7980
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
7981
|
+
"alias": _zod.z.string()
|
|
7982
|
+
})),
|
|
7781
7983
|
"name": _zod.z.string(),
|
|
7782
7984
|
"editorUiAlias": _zod.z.string().nullish(),
|
|
7783
7985
|
"editorAlias": _zod.z.string(),
|
|
@@ -7793,6 +7995,9 @@ var getItemDataTypeSearchQueryParams = _zod.z.object({
|
|
|
7793
7995
|
var getItemDataTypeSearchResponse = _zod.z.object({
|
|
7794
7996
|
"items": _zod.z.array(_zod.z.object({
|
|
7795
7997
|
"id": _zod.z.string().uuid(),
|
|
7998
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
7999
|
+
"alias": _zod.z.string()
|
|
8000
|
+
})),
|
|
7796
8001
|
"name": _zod.z.string(),
|
|
7797
8002
|
"editorUiAlias": _zod.z.string().nullish(),
|
|
7798
8003
|
"editorAlias": _zod.z.string(),
|
|
@@ -7809,6 +8014,9 @@ var getTreeDataTypeAncestorsResponseItem = _zod.z.object({
|
|
|
7809
8014
|
"parent": _zod.z.object({
|
|
7810
8015
|
"id": _zod.z.string().uuid()
|
|
7811
8016
|
}).nullish(),
|
|
8017
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
8018
|
+
"alias": _zod.z.string()
|
|
8019
|
+
})),
|
|
7812
8020
|
"name": _zod.z.string(),
|
|
7813
8021
|
"isFolder": _zod.z.boolean(),
|
|
7814
8022
|
"editorUiAlias": _zod.z.string().nullish(),
|
|
@@ -7830,6 +8038,9 @@ var getTreeDataTypeChildrenResponse = _zod.z.object({
|
|
|
7830
8038
|
"parent": _zod.z.object({
|
|
7831
8039
|
"id": _zod.z.string().uuid()
|
|
7832
8040
|
}).nullish(),
|
|
8041
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
8042
|
+
"alias": _zod.z.string()
|
|
8043
|
+
})),
|
|
7833
8044
|
"name": _zod.z.string(),
|
|
7834
8045
|
"isFolder": _zod.z.boolean(),
|
|
7835
8046
|
"editorUiAlias": _zod.z.string().nullish(),
|
|
@@ -7850,6 +8061,33 @@ var getTreeDataTypeRootResponse = _zod.z.object({
|
|
|
7850
8061
|
"parent": _zod.z.object({
|
|
7851
8062
|
"id": _zod.z.string().uuid()
|
|
7852
8063
|
}).nullish(),
|
|
8064
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
8065
|
+
"alias": _zod.z.string()
|
|
8066
|
+
})),
|
|
8067
|
+
"name": _zod.z.string(),
|
|
8068
|
+
"isFolder": _zod.z.boolean(),
|
|
8069
|
+
"editorUiAlias": _zod.z.string().nullish(),
|
|
8070
|
+
"isDeletable": _zod.z.boolean()
|
|
8071
|
+
}))
|
|
8072
|
+
});
|
|
8073
|
+
var getTreeDataTypeSiblingsQueryParams = _zod.z.object({
|
|
8074
|
+
"target": _zod.z.string().uuid().optional(),
|
|
8075
|
+
"before": _zod.z.coerce.number().optional(),
|
|
8076
|
+
"after": _zod.z.coerce.number().optional(),
|
|
8077
|
+
"foldersOnly": _zod.z.coerce.boolean().optional()
|
|
8078
|
+
});
|
|
8079
|
+
var getTreeDataTypeSiblingsResponse = _zod.z.object({
|
|
8080
|
+
"totalBefore": _zod.z.number(),
|
|
8081
|
+
"totalAfter": _zod.z.number(),
|
|
8082
|
+
"items": _zod.z.array(_zod.z.object({
|
|
8083
|
+
"hasChildren": _zod.z.boolean(),
|
|
8084
|
+
"id": _zod.z.string().uuid(),
|
|
8085
|
+
"parent": _zod.z.object({
|
|
8086
|
+
"id": _zod.z.string().uuid()
|
|
8087
|
+
}).nullish(),
|
|
8088
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
8089
|
+
"alias": _zod.z.string()
|
|
8090
|
+
})),
|
|
7853
8091
|
"name": _zod.z.string(),
|
|
7854
8092
|
"isFolder": _zod.z.boolean(),
|
|
7855
8093
|
"editorUiAlias": _zod.z.string().nullish(),
|
|
@@ -7936,6 +8174,9 @@ var getItemDictionaryQueryParams = _zod.z.object({
|
|
|
7936
8174
|
});
|
|
7937
8175
|
var getItemDictionaryResponseItem = _zod.z.object({
|
|
7938
8176
|
"id": _zod.z.string().uuid(),
|
|
8177
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
8178
|
+
"alias": _zod.z.string()
|
|
8179
|
+
})),
|
|
7939
8180
|
"name": _zod.z.string()
|
|
7940
8181
|
});
|
|
7941
8182
|
var getItemDictionaryResponse = _zod.z.array(getItemDictionaryResponseItem);
|
|
@@ -7948,6 +8189,9 @@ var getTreeDictionaryAncestorsResponseItem = _zod.z.object({
|
|
|
7948
8189
|
"parent": _zod.z.object({
|
|
7949
8190
|
"id": _zod.z.string().uuid()
|
|
7950
8191
|
}).nullish(),
|
|
8192
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
8193
|
+
"alias": _zod.z.string()
|
|
8194
|
+
})),
|
|
7951
8195
|
"name": _zod.z.string()
|
|
7952
8196
|
});
|
|
7953
8197
|
var getTreeDictionaryAncestorsResponse = _zod.z.array(getTreeDictionaryAncestorsResponseItem);
|
|
@@ -7965,6 +8209,9 @@ var getTreeDictionaryChildrenResponse = _zod.z.object({
|
|
|
7965
8209
|
"parent": _zod.z.object({
|
|
7966
8210
|
"id": _zod.z.string().uuid()
|
|
7967
8211
|
}).nullish(),
|
|
8212
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
8213
|
+
"alias": _zod.z.string()
|
|
8214
|
+
})),
|
|
7968
8215
|
"name": _zod.z.string()
|
|
7969
8216
|
}))
|
|
7970
8217
|
});
|
|
@@ -7981,6 +8228,9 @@ var getTreeDictionaryRootResponse = _zod.z.object({
|
|
|
7981
8228
|
"parent": _zod.z.object({
|
|
7982
8229
|
"id": _zod.z.string().uuid()
|
|
7983
8230
|
}).nullish(),
|
|
8231
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
8232
|
+
"alias": _zod.z.string()
|
|
8233
|
+
})),
|
|
7984
8234
|
"name": _zod.z.string()
|
|
7985
8235
|
}))
|
|
7986
8236
|
});
|
|
@@ -8021,12 +8271,19 @@ var getDocumentBlueprintByIdResponse = _zod.z.object({
|
|
|
8021
8271
|
"name": _zod.z.string().min(1),
|
|
8022
8272
|
"createDate": _zod.z.string().datetime({ "local": true }),
|
|
8023
8273
|
"updateDate": _zod.z.string().datetime({ "local": true }),
|
|
8024
|
-
"state": _zod.z.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges"]),
|
|
8274
|
+
"state": _zod.z.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"]),
|
|
8025
8275
|
"publishDate": _zod.z.string().datetime({ "local": true }).nullish(),
|
|
8026
8276
|
"scheduledPublishDate": _zod.z.string().datetime({ "local": true }).nullish(),
|
|
8027
|
-
"scheduledUnpublishDate": _zod.z.string().datetime({ "local": true }).nullish()
|
|
8277
|
+
"scheduledUnpublishDate": _zod.z.string().datetime({ "local": true }).nullish(),
|
|
8278
|
+
"id": _zod.z.string().uuid(),
|
|
8279
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
8280
|
+
"alias": _zod.z.string()
|
|
8281
|
+
}))
|
|
8028
8282
|
})),
|
|
8029
8283
|
"id": _zod.z.string().uuid(),
|
|
8284
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
8285
|
+
"alias": _zod.z.string()
|
|
8286
|
+
})),
|
|
8030
8287
|
"documentType": _zod.z.object({
|
|
8031
8288
|
"id": _zod.z.string().uuid(),
|
|
8032
8289
|
"icon": _zod.z.string(),
|
|
@@ -8079,12 +8336,19 @@ var getDocumentBlueprintByIdScaffoldResponse = _zod.z.object({
|
|
|
8079
8336
|
"name": _zod.z.string().min(1),
|
|
8080
8337
|
"createDate": _zod.z.string().datetime({ "local": true }),
|
|
8081
8338
|
"updateDate": _zod.z.string().datetime({ "local": true }),
|
|
8082
|
-
"state": _zod.z.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges"]),
|
|
8339
|
+
"state": _zod.z.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"]),
|
|
8083
8340
|
"publishDate": _zod.z.string().datetime({ "local": true }).nullish(),
|
|
8084
8341
|
"scheduledPublishDate": _zod.z.string().datetime({ "local": true }).nullish(),
|
|
8085
|
-
"scheduledUnpublishDate": _zod.z.string().datetime({ "local": true }).nullish()
|
|
8342
|
+
"scheduledUnpublishDate": _zod.z.string().datetime({ "local": true }).nullish(),
|
|
8343
|
+
"id": _zod.z.string().uuid(),
|
|
8344
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
8345
|
+
"alias": _zod.z.string()
|
|
8346
|
+
}))
|
|
8086
8347
|
})),
|
|
8087
8348
|
"id": _zod.z.string().uuid(),
|
|
8349
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
8350
|
+
"alias": _zod.z.string()
|
|
8351
|
+
})),
|
|
8088
8352
|
"documentType": _zod.z.object({
|
|
8089
8353
|
"id": _zod.z.string().uuid(),
|
|
8090
8354
|
"icon": _zod.z.string(),
|
|
@@ -8131,6 +8395,9 @@ var getItemDocumentBlueprintQueryParams = _zod.z.object({
|
|
|
8131
8395
|
});
|
|
8132
8396
|
var getItemDocumentBlueprintResponseItem = _zod.z.object({
|
|
8133
8397
|
"id": _zod.z.string().uuid(),
|
|
8398
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
8399
|
+
"alias": _zod.z.string()
|
|
8400
|
+
})),
|
|
8134
8401
|
"name": _zod.z.string(),
|
|
8135
8402
|
"documentType": _zod.z.object({
|
|
8136
8403
|
"id": _zod.z.string().uuid(),
|
|
@@ -8150,6 +8417,9 @@ var getTreeDocumentBlueprintAncestorsResponseItem = _zod.z.object({
|
|
|
8150
8417
|
"parent": _zod.z.object({
|
|
8151
8418
|
"id": _zod.z.string().uuid()
|
|
8152
8419
|
}).nullish(),
|
|
8420
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
8421
|
+
"alias": _zod.z.string()
|
|
8422
|
+
})),
|
|
8153
8423
|
"name": _zod.z.string(),
|
|
8154
8424
|
"isFolder": _zod.z.boolean(),
|
|
8155
8425
|
"documentType": _zod.z.object({
|
|
@@ -8176,6 +8446,9 @@ var getTreeDocumentBlueprintChildrenResponse = _zod.z.object({
|
|
|
8176
8446
|
"parent": _zod.z.object({
|
|
8177
8447
|
"id": _zod.z.string().uuid()
|
|
8178
8448
|
}).nullish(),
|
|
8449
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
8450
|
+
"alias": _zod.z.string()
|
|
8451
|
+
})),
|
|
8179
8452
|
"name": _zod.z.string(),
|
|
8180
8453
|
"isFolder": _zod.z.boolean(),
|
|
8181
8454
|
"documentType": _zod.z.object({
|
|
@@ -8201,6 +8474,9 @@ var getTreeDocumentBlueprintRootResponse = _zod.z.object({
|
|
|
8201
8474
|
"parent": _zod.z.object({
|
|
8202
8475
|
"id": _zod.z.string().uuid()
|
|
8203
8476
|
}).nullish(),
|
|
8477
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
8478
|
+
"alias": _zod.z.string()
|
|
8479
|
+
})),
|
|
8204
8480
|
"name": _zod.z.string(),
|
|
8205
8481
|
"isFolder": _zod.z.boolean(),
|
|
8206
8482
|
"documentType": _zod.z.object({
|
|
@@ -8212,19 +8488,48 @@ var getTreeDocumentBlueprintRootResponse = _zod.z.object({
|
|
|
8212
8488
|
}).nullish()
|
|
8213
8489
|
}))
|
|
8214
8490
|
});
|
|
8215
|
-
var
|
|
8216
|
-
"
|
|
8217
|
-
"
|
|
8218
|
-
"
|
|
8219
|
-
"
|
|
8220
|
-
|
|
8221
|
-
|
|
8222
|
-
"
|
|
8223
|
-
"
|
|
8224
|
-
|
|
8225
|
-
|
|
8226
|
-
|
|
8227
|
-
|
|
8491
|
+
var getTreeDocumentBlueprintSiblingsQueryParams = _zod.z.object({
|
|
8492
|
+
"target": _zod.z.string().uuid().optional(),
|
|
8493
|
+
"before": _zod.z.coerce.number().optional(),
|
|
8494
|
+
"after": _zod.z.coerce.number().optional(),
|
|
8495
|
+
"foldersOnly": _zod.z.coerce.boolean().optional()
|
|
8496
|
+
});
|
|
8497
|
+
var getTreeDocumentBlueprintSiblingsResponse = _zod.z.object({
|
|
8498
|
+
"totalBefore": _zod.z.number(),
|
|
8499
|
+
"totalAfter": _zod.z.number(),
|
|
8500
|
+
"items": _zod.z.array(_zod.z.object({
|
|
8501
|
+
"hasChildren": _zod.z.boolean(),
|
|
8502
|
+
"id": _zod.z.string().uuid(),
|
|
8503
|
+
"parent": _zod.z.object({
|
|
8504
|
+
"id": _zod.z.string().uuid()
|
|
8505
|
+
}).nullish(),
|
|
8506
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
8507
|
+
"alias": _zod.z.string()
|
|
8508
|
+
})),
|
|
8509
|
+
"name": _zod.z.string(),
|
|
8510
|
+
"isFolder": _zod.z.boolean(),
|
|
8511
|
+
"documentType": _zod.z.object({
|
|
8512
|
+
"id": _zod.z.string().uuid(),
|
|
8513
|
+
"icon": _zod.z.string(),
|
|
8514
|
+
"collection": _zod.z.object({
|
|
8515
|
+
"id": _zod.z.string().uuid()
|
|
8516
|
+
}).nullish()
|
|
8517
|
+
}).nullish()
|
|
8518
|
+
}))
|
|
8519
|
+
});
|
|
8520
|
+
var postDocumentTypeBody = _zod.z.object({
|
|
8521
|
+
"alias": _zod.z.string().min(1),
|
|
8522
|
+
"name": _zod.z.string().min(1),
|
|
8523
|
+
"description": _zod.z.string().nullish(),
|
|
8524
|
+
"icon": _zod.z.string().min(1),
|
|
8525
|
+
"allowedAsRoot": _zod.z.boolean(),
|
|
8526
|
+
"variesByCulture": _zod.z.boolean(),
|
|
8527
|
+
"variesBySegment": _zod.z.boolean(),
|
|
8528
|
+
"collection": _zod.z.object({
|
|
8529
|
+
"id": _zod.z.string().uuid()
|
|
8530
|
+
}).nullish(),
|
|
8531
|
+
"isElement": _zod.z.boolean(),
|
|
8532
|
+
"properties": _zod.z.array(_zod.z.object({
|
|
8228
8533
|
"id": _zod.z.string().uuid(),
|
|
8229
8534
|
"container": _zod.z.object({
|
|
8230
8535
|
"id": _zod.z.string().uuid()
|
|
@@ -8463,6 +8768,9 @@ var getDocumentTypeByIdBlueprintResponse = _zod.z.object({
|
|
|
8463
8768
|
"total": _zod.z.number(),
|
|
8464
8769
|
"items": _zod.z.array(_zod.z.object({
|
|
8465
8770
|
"id": _zod.z.string().uuid(),
|
|
8771
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
8772
|
+
"alias": _zod.z.string()
|
|
8773
|
+
})),
|
|
8466
8774
|
"name": _zod.z.string()
|
|
8467
8775
|
}))
|
|
8468
8776
|
});
|
|
@@ -8570,6 +8878,9 @@ var getItemDocumentTypeQueryParams = _zod.z.object({
|
|
|
8570
8878
|
});
|
|
8571
8879
|
var getItemDocumentTypeResponseItem = _zod.z.object({
|
|
8572
8880
|
"id": _zod.z.string().uuid(),
|
|
8881
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
8882
|
+
"alias": _zod.z.string()
|
|
8883
|
+
})),
|
|
8573
8884
|
"name": _zod.z.string(),
|
|
8574
8885
|
"isElement": _zod.z.boolean(),
|
|
8575
8886
|
"icon": _zod.z.string().nullish(),
|
|
@@ -8586,6 +8897,9 @@ var getItemDocumentTypeSearchQueryParams = _zod.z.object({
|
|
|
8586
8897
|
var getItemDocumentTypeSearchResponse = _zod.z.object({
|
|
8587
8898
|
"items": _zod.z.array(_zod.z.object({
|
|
8588
8899
|
"id": _zod.z.string().uuid(),
|
|
8900
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
8901
|
+
"alias": _zod.z.string()
|
|
8902
|
+
})),
|
|
8589
8903
|
"name": _zod.z.string(),
|
|
8590
8904
|
"isElement": _zod.z.boolean(),
|
|
8591
8905
|
"icon": _zod.z.string().nullish(),
|
|
@@ -8602,6 +8916,9 @@ var getTreeDocumentTypeAncestorsResponseItem = _zod.z.object({
|
|
|
8602
8916
|
"parent": _zod.z.object({
|
|
8603
8917
|
"id": _zod.z.string().uuid()
|
|
8604
8918
|
}).nullish(),
|
|
8919
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
8920
|
+
"alias": _zod.z.string()
|
|
8921
|
+
})),
|
|
8605
8922
|
"name": _zod.z.string(),
|
|
8606
8923
|
"isFolder": _zod.z.boolean(),
|
|
8607
8924
|
"isElement": _zod.z.boolean(),
|
|
@@ -8623,6 +8940,9 @@ var getTreeDocumentTypeChildrenResponse = _zod.z.object({
|
|
|
8623
8940
|
"parent": _zod.z.object({
|
|
8624
8941
|
"id": _zod.z.string().uuid()
|
|
8625
8942
|
}).nullish(),
|
|
8943
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
8944
|
+
"alias": _zod.z.string()
|
|
8945
|
+
})),
|
|
8626
8946
|
"name": _zod.z.string(),
|
|
8627
8947
|
"isFolder": _zod.z.boolean(),
|
|
8628
8948
|
"isElement": _zod.z.boolean(),
|
|
@@ -8643,6 +8963,33 @@ var getTreeDocumentTypeRootResponse = _zod.z.object({
|
|
|
8643
8963
|
"parent": _zod.z.object({
|
|
8644
8964
|
"id": _zod.z.string().uuid()
|
|
8645
8965
|
}).nullish(),
|
|
8966
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
8967
|
+
"alias": _zod.z.string()
|
|
8968
|
+
})),
|
|
8969
|
+
"name": _zod.z.string(),
|
|
8970
|
+
"isFolder": _zod.z.boolean(),
|
|
8971
|
+
"isElement": _zod.z.boolean(),
|
|
8972
|
+
"icon": _zod.z.string()
|
|
8973
|
+
}))
|
|
8974
|
+
});
|
|
8975
|
+
var getTreeDocumentTypeSiblingsQueryParams = _zod.z.object({
|
|
8976
|
+
"target": _zod.z.string().uuid().optional(),
|
|
8977
|
+
"before": _zod.z.coerce.number().optional(),
|
|
8978
|
+
"after": _zod.z.coerce.number().optional(),
|
|
8979
|
+
"foldersOnly": _zod.z.coerce.boolean().optional()
|
|
8980
|
+
});
|
|
8981
|
+
var getTreeDocumentTypeSiblingsResponse = _zod.z.object({
|
|
8982
|
+
"totalBefore": _zod.z.number(),
|
|
8983
|
+
"totalAfter": _zod.z.number(),
|
|
8984
|
+
"items": _zod.z.array(_zod.z.object({
|
|
8985
|
+
"hasChildren": _zod.z.boolean(),
|
|
8986
|
+
"id": _zod.z.string().uuid(),
|
|
8987
|
+
"parent": _zod.z.object({
|
|
8988
|
+
"id": _zod.z.string().uuid()
|
|
8989
|
+
}).nullish(),
|
|
8990
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
8991
|
+
"alias": _zod.z.string()
|
|
8992
|
+
})),
|
|
8646
8993
|
"name": _zod.z.string(),
|
|
8647
8994
|
"isFolder": _zod.z.boolean(),
|
|
8648
8995
|
"isElement": _zod.z.boolean(),
|
|
@@ -8692,12 +9039,19 @@ var getDocumentVersionByIdResponse = _zod.z.object({
|
|
|
8692
9039
|
"name": _zod.z.string().min(1),
|
|
8693
9040
|
"createDate": _zod.z.string().datetime({ "local": true }),
|
|
8694
9041
|
"updateDate": _zod.z.string().datetime({ "local": true }),
|
|
8695
|
-
"state": _zod.z.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges"]),
|
|
9042
|
+
"state": _zod.z.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"]),
|
|
8696
9043
|
"publishDate": _zod.z.string().datetime({ "local": true }).nullish(),
|
|
8697
9044
|
"scheduledPublishDate": _zod.z.string().datetime({ "local": true }).nullish(),
|
|
8698
|
-
"scheduledUnpublishDate": _zod.z.string().datetime({ "local": true }).nullish()
|
|
9045
|
+
"scheduledUnpublishDate": _zod.z.string().datetime({ "local": true }).nullish(),
|
|
9046
|
+
"id": _zod.z.string().uuid(),
|
|
9047
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
9048
|
+
"alias": _zod.z.string()
|
|
9049
|
+
}))
|
|
8699
9050
|
})),
|
|
8700
9051
|
"id": _zod.z.string().uuid(),
|
|
9052
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
9053
|
+
"alias": _zod.z.string()
|
|
9054
|
+
})),
|
|
8701
9055
|
"documentType": _zod.z.object({
|
|
8702
9056
|
"id": _zod.z.string().uuid(),
|
|
8703
9057
|
"icon": _zod.z.string(),
|
|
@@ -8751,18 +9105,28 @@ var getCollectionDocumentByIdResponse = _zod.z.object({
|
|
|
8751
9105
|
"name": _zod.z.string().min(1),
|
|
8752
9106
|
"createDate": _zod.z.string().datetime({ "local": true }),
|
|
8753
9107
|
"updateDate": _zod.z.string().datetime({ "local": true }),
|
|
8754
|
-
"state": _zod.z.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges"]),
|
|
9108
|
+
"state": _zod.z.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"]),
|
|
8755
9109
|
"publishDate": _zod.z.string().datetime({ "local": true }).nullish(),
|
|
8756
9110
|
"scheduledPublishDate": _zod.z.string().datetime({ "local": true }).nullish(),
|
|
8757
|
-
"scheduledUnpublishDate": _zod.z.string().datetime({ "local": true }).nullish()
|
|
9111
|
+
"scheduledUnpublishDate": _zod.z.string().datetime({ "local": true }).nullish(),
|
|
9112
|
+
"id": _zod.z.string().uuid(),
|
|
9113
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
9114
|
+
"alias": _zod.z.string()
|
|
9115
|
+
}))
|
|
8758
9116
|
})),
|
|
8759
9117
|
"id": _zod.z.string().uuid(),
|
|
9118
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
9119
|
+
"alias": _zod.z.string()
|
|
9120
|
+
})),
|
|
8760
9121
|
"creator": _zod.z.string().nullish(),
|
|
8761
9122
|
"sortOrder": _zod.z.number(),
|
|
8762
9123
|
"documentType": _zod.z.object({
|
|
8763
9124
|
"id": _zod.z.string().uuid(),
|
|
8764
9125
|
"alias": _zod.z.string(),
|
|
8765
|
-
"icon": _zod.z.string()
|
|
9126
|
+
"icon": _zod.z.string(),
|
|
9127
|
+
"collection": _zod.z.object({
|
|
9128
|
+
"id": _zod.z.string().uuid()
|
|
9129
|
+
}).nullish()
|
|
8766
9130
|
}),
|
|
8767
9131
|
"isTrashed": _zod.z.boolean(),
|
|
8768
9132
|
"isProtected": _zod.z.boolean(),
|
|
@@ -8812,12 +9176,19 @@ var getDocumentByIdResponse = _zod.z.object({
|
|
|
8812
9176
|
"name": _zod.z.string().min(1),
|
|
8813
9177
|
"createDate": _zod.z.string().datetime({ "local": true }),
|
|
8814
9178
|
"updateDate": _zod.z.string().datetime({ "local": true }),
|
|
8815
|
-
"state": _zod.z.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges"]),
|
|
9179
|
+
"state": _zod.z.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"]),
|
|
8816
9180
|
"publishDate": _zod.z.string().datetime({ "local": true }).nullish(),
|
|
8817
9181
|
"scheduledPublishDate": _zod.z.string().datetime({ "local": true }).nullish(),
|
|
8818
|
-
"scheduledUnpublishDate": _zod.z.string().datetime({ "local": true }).nullish()
|
|
9182
|
+
"scheduledUnpublishDate": _zod.z.string().datetime({ "local": true }).nullish(),
|
|
9183
|
+
"id": _zod.z.string().uuid(),
|
|
9184
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
9185
|
+
"alias": _zod.z.string()
|
|
9186
|
+
}))
|
|
8819
9187
|
})),
|
|
8820
9188
|
"id": _zod.z.string().uuid(),
|
|
9189
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
9190
|
+
"alias": _zod.z.string()
|
|
9191
|
+
})),
|
|
8821
9192
|
"documentType": _zod.z.object({
|
|
8822
9193
|
"id": _zod.z.string().uuid(),
|
|
8823
9194
|
"icon": _zod.z.string(),
|
|
@@ -8825,10 +9196,6 @@ var getDocumentByIdResponse = _zod.z.object({
|
|
|
8825
9196
|
"id": _zod.z.string().uuid()
|
|
8826
9197
|
}).nullish()
|
|
8827
9198
|
}),
|
|
8828
|
-
"urls": _zod.z.array(_zod.z.object({
|
|
8829
|
-
"culture": _zod.z.string().nullable(),
|
|
8830
|
-
"url": _zod.z.string()
|
|
8831
|
-
})),
|
|
8832
9199
|
"template": _zod.z.object({
|
|
8833
9200
|
"id": _zod.z.string().uuid()
|
|
8834
9201
|
}).nullish(),
|
|
@@ -8878,6 +9245,22 @@ var getDocumentByIdAuditLogResponse = _zod.z.object({
|
|
|
8878
9245
|
"parameters": _zod.z.string().nullish()
|
|
8879
9246
|
}))
|
|
8880
9247
|
});
|
|
9248
|
+
var getDocumentByIdAvailableSegmentOptionsParams = _zod.z.object({
|
|
9249
|
+
"id": _zod.z.string().uuid()
|
|
9250
|
+
});
|
|
9251
|
+
var getDocumentByIdAvailableSegmentOptionsQueryTakeDefault = 100;
|
|
9252
|
+
var getDocumentByIdAvailableSegmentOptionsQueryParams = _zod.z.object({
|
|
9253
|
+
"skip": _zod.z.coerce.number().optional(),
|
|
9254
|
+
"take": _zod.z.coerce.number().default(getDocumentByIdAvailableSegmentOptionsQueryTakeDefault)
|
|
9255
|
+
});
|
|
9256
|
+
var getDocumentByIdAvailableSegmentOptionsResponse = _zod.z.object({
|
|
9257
|
+
"total": _zod.z.number(),
|
|
9258
|
+
"items": _zod.z.array(_zod.z.object({
|
|
9259
|
+
"name": _zod.z.string(),
|
|
9260
|
+
"alias": _zod.z.string(),
|
|
9261
|
+
"cultures": _zod.z.array(_zod.z.string()).nullish()
|
|
9262
|
+
}))
|
|
9263
|
+
});
|
|
8881
9264
|
var postDocumentByIdCopyParams = _zod.z.object({
|
|
8882
9265
|
"id": _zod.z.string().uuid()
|
|
8883
9266
|
});
|
|
@@ -8934,6 +9317,20 @@ var putDocumentByIdNotificationsParams = _zod.z.object({
|
|
|
8934
9317
|
var putDocumentByIdNotificationsBody = _zod.z.object({
|
|
8935
9318
|
"subscribedActionIds": _zod.z.array(_zod.z.string())
|
|
8936
9319
|
});
|
|
9320
|
+
var getDocumentByIdPreviewUrlParams = _zod.z.object({
|
|
9321
|
+
"id": _zod.z.string().uuid()
|
|
9322
|
+
});
|
|
9323
|
+
var getDocumentByIdPreviewUrlQueryParams = _zod.z.object({
|
|
9324
|
+
"providerAlias": _zod.z.string().optional(),
|
|
9325
|
+
"culture": _zod.z.string().optional(),
|
|
9326
|
+
"segment": _zod.z.string().optional()
|
|
9327
|
+
});
|
|
9328
|
+
var getDocumentByIdPreviewUrlResponse = _zod.z.object({
|
|
9329
|
+
"culture": _zod.z.string().nullable(),
|
|
9330
|
+
"url": _zod.z.string().nullable(),
|
|
9331
|
+
"message": _zod.z.string().nullable(),
|
|
9332
|
+
"provider": _zod.z.string()
|
|
9333
|
+
});
|
|
8937
9334
|
var postDocumentByIdPublicAccessParams = _zod.z.object({
|
|
8938
9335
|
"id": _zod.z.string().uuid()
|
|
8939
9336
|
});
|
|
@@ -8962,6 +9359,9 @@ var getDocumentByIdPublicAccessResponse = _zod.z.object({
|
|
|
8962
9359
|
}),
|
|
8963
9360
|
"members": _zod.z.array(_zod.z.object({
|
|
8964
9361
|
"id": _zod.z.string().uuid(),
|
|
9362
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
9363
|
+
"alias": _zod.z.string()
|
|
9364
|
+
})),
|
|
8965
9365
|
"memberType": _zod.z.object({
|
|
8966
9366
|
"id": _zod.z.string().uuid(),
|
|
8967
9367
|
"icon": _zod.z.string(),
|
|
@@ -8977,6 +9377,9 @@ var getDocumentByIdPublicAccessResponse = _zod.z.object({
|
|
|
8977
9377
|
})),
|
|
8978
9378
|
"groups": _zod.z.array(_zod.z.object({
|
|
8979
9379
|
"id": _zod.z.string().uuid(),
|
|
9380
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
9381
|
+
"alias": _zod.z.string()
|
|
9382
|
+
})),
|
|
8980
9383
|
"name": _zod.z.string()
|
|
8981
9384
|
}))
|
|
8982
9385
|
});
|
|
@@ -9041,12 +9444,19 @@ var getDocumentByIdPublishedResponse = _zod.z.object({
|
|
|
9041
9444
|
"name": _zod.z.string().min(1),
|
|
9042
9445
|
"createDate": _zod.z.string().datetime({ "local": true }),
|
|
9043
9446
|
"updateDate": _zod.z.string().datetime({ "local": true }),
|
|
9044
|
-
"state": _zod.z.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges"]),
|
|
9447
|
+
"state": _zod.z.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"]),
|
|
9045
9448
|
"publishDate": _zod.z.string().datetime({ "local": true }).nullish(),
|
|
9046
9449
|
"scheduledPublishDate": _zod.z.string().datetime({ "local": true }).nullish(),
|
|
9047
|
-
"scheduledUnpublishDate": _zod.z.string().datetime({ "local": true }).nullish()
|
|
9450
|
+
"scheduledUnpublishDate": _zod.z.string().datetime({ "local": true }).nullish(),
|
|
9451
|
+
"id": _zod.z.string().uuid(),
|
|
9452
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
9453
|
+
"alias": _zod.z.string()
|
|
9454
|
+
}))
|
|
9048
9455
|
})),
|
|
9049
9456
|
"id": _zod.z.string().uuid(),
|
|
9457
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
9458
|
+
"alias": _zod.z.string()
|
|
9459
|
+
})),
|
|
9050
9460
|
"documentType": _zod.z.object({
|
|
9051
9461
|
"id": _zod.z.string().uuid(),
|
|
9052
9462
|
"icon": _zod.z.string(),
|
|
@@ -9054,10 +9464,6 @@ var getDocumentByIdPublishedResponse = _zod.z.object({
|
|
|
9054
9464
|
"id": _zod.z.string().uuid()
|
|
9055
9465
|
}).nullish()
|
|
9056
9466
|
}),
|
|
9057
|
-
"urls": _zod.z.array(_zod.z.object({
|
|
9058
|
-
"culture": _zod.z.string().nullable(),
|
|
9059
|
-
"url": _zod.z.string()
|
|
9060
|
-
})),
|
|
9061
9467
|
"template": _zod.z.object({
|
|
9062
9468
|
"id": _zod.z.string().uuid()
|
|
9063
9469
|
}).nullish(),
|
|
@@ -9093,7 +9499,11 @@ var getDocumentByIdReferencedByResponse = _zod.z.object({
|
|
|
9093
9499
|
"variants": _zod.z.array(_zod.z.object({
|
|
9094
9500
|
"name": _zod.z.string(),
|
|
9095
9501
|
"culture": _zod.z.string().nullish(),
|
|
9096
|
-
"
|
|
9502
|
+
"id": _zod.z.string().uuid(),
|
|
9503
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
9504
|
+
"alias": _zod.z.string()
|
|
9505
|
+
})),
|
|
9506
|
+
"state": _zod.z.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
|
|
9097
9507
|
}))
|
|
9098
9508
|
})).or(_zod.z.object({
|
|
9099
9509
|
"$type": _zod.z.enum(["DocumentTypePropertyTypeReferenceResponseModel"]),
|
|
@@ -9224,7 +9634,9 @@ var getDocumentUrlsResponseItem = _zod.z.object({
|
|
|
9224
9634
|
"id": _zod.z.string().uuid(),
|
|
9225
9635
|
"urlInfos": _zod.z.array(_zod.z.object({
|
|
9226
9636
|
"culture": _zod.z.string().nullable(),
|
|
9227
|
-
"url": _zod.z.string()
|
|
9637
|
+
"url": _zod.z.string().nullable(),
|
|
9638
|
+
"message": _zod.z.string().nullable(),
|
|
9639
|
+
"provider": _zod.z.string()
|
|
9228
9640
|
}))
|
|
9229
9641
|
});
|
|
9230
9642
|
var getDocumentUrlsResponse = _zod.z.array(getDocumentUrlsResponseItem);
|
|
@@ -9256,6 +9668,9 @@ var getItemDocumentQueryParams = _zod.z.object({
|
|
|
9256
9668
|
});
|
|
9257
9669
|
var getItemDocumentResponseItem = _zod.z.object({
|
|
9258
9670
|
"id": _zod.z.string().uuid(),
|
|
9671
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
9672
|
+
"alias": _zod.z.string()
|
|
9673
|
+
})),
|
|
9259
9674
|
"isTrashed": _zod.z.boolean(),
|
|
9260
9675
|
"isProtected": _zod.z.boolean(),
|
|
9261
9676
|
"parent": _zod.z.object({
|
|
@@ -9272,7 +9687,11 @@ var getItemDocumentResponseItem = _zod.z.object({
|
|
|
9272
9687
|
"variants": _zod.z.array(_zod.z.object({
|
|
9273
9688
|
"name": _zod.z.string(),
|
|
9274
9689
|
"culture": _zod.z.string().nullish(),
|
|
9275
|
-
"
|
|
9690
|
+
"id": _zod.z.string().uuid(),
|
|
9691
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
9692
|
+
"alias": _zod.z.string()
|
|
9693
|
+
})),
|
|
9694
|
+
"state": _zod.z.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
|
|
9276
9695
|
}))
|
|
9277
9696
|
});
|
|
9278
9697
|
var getItemDocumentResponse = _zod.z.array(getItemDocumentResponseItem);
|
|
@@ -9284,11 +9703,15 @@ var getItemDocumentSearchQueryParams = _zod.z.object({
|
|
|
9284
9703
|
"skip": _zod.z.coerce.number().optional(),
|
|
9285
9704
|
"take": _zod.z.coerce.number().default(getItemDocumentSearchQueryTakeDefault),
|
|
9286
9705
|
"parentId": _zod.z.string().uuid().optional(),
|
|
9287
|
-
"allowedDocumentTypes": _zod.z.array(_zod.z.string().uuid()).optional()
|
|
9706
|
+
"allowedDocumentTypes": _zod.z.array(_zod.z.string().uuid()).optional(),
|
|
9707
|
+
"dataTypeId": _zod.z.string().uuid().optional()
|
|
9288
9708
|
});
|
|
9289
9709
|
var getItemDocumentSearchResponse = _zod.z.object({
|
|
9290
9710
|
"items": _zod.z.array(_zod.z.object({
|
|
9291
9711
|
"id": _zod.z.string().uuid(),
|
|
9712
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
9713
|
+
"alias": _zod.z.string()
|
|
9714
|
+
})),
|
|
9292
9715
|
"isTrashed": _zod.z.boolean(),
|
|
9293
9716
|
"isProtected": _zod.z.boolean(),
|
|
9294
9717
|
"parent": _zod.z.object({
|
|
@@ -9305,7 +9728,11 @@ var getItemDocumentSearchResponse = _zod.z.object({
|
|
|
9305
9728
|
"variants": _zod.z.array(_zod.z.object({
|
|
9306
9729
|
"name": _zod.z.string(),
|
|
9307
9730
|
"culture": _zod.z.string().nullish(),
|
|
9308
|
-
"
|
|
9731
|
+
"id": _zod.z.string().uuid(),
|
|
9732
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
9733
|
+
"alias": _zod.z.string()
|
|
9734
|
+
})),
|
|
9735
|
+
"state": _zod.z.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
|
|
9309
9736
|
}))
|
|
9310
9737
|
})),
|
|
9311
9738
|
"total": _zod.z.number()
|
|
@@ -9352,7 +9779,11 @@ var getRecycleBinDocumentChildrenResponse = _zod.z.object({
|
|
|
9352
9779
|
"variants": _zod.z.array(_zod.z.object({
|
|
9353
9780
|
"name": _zod.z.string(),
|
|
9354
9781
|
"culture": _zod.z.string().nullish(),
|
|
9355
|
-
"
|
|
9782
|
+
"id": _zod.z.string().uuid(),
|
|
9783
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
9784
|
+
"alias": _zod.z.string()
|
|
9785
|
+
})),
|
|
9786
|
+
"state": _zod.z.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
|
|
9356
9787
|
}))
|
|
9357
9788
|
}))
|
|
9358
9789
|
});
|
|
@@ -9383,7 +9814,11 @@ var getRecycleBinDocumentReferencedByResponse = _zod.z.object({
|
|
|
9383
9814
|
"variants": _zod.z.array(_zod.z.object({
|
|
9384
9815
|
"name": _zod.z.string(),
|
|
9385
9816
|
"culture": _zod.z.string().nullish(),
|
|
9386
|
-
"
|
|
9817
|
+
"id": _zod.z.string().uuid(),
|
|
9818
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
9819
|
+
"alias": _zod.z.string()
|
|
9820
|
+
})),
|
|
9821
|
+
"state": _zod.z.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
|
|
9387
9822
|
}))
|
|
9388
9823
|
})).or(_zod.z.object({
|
|
9389
9824
|
"$type": _zod.z.enum(["DocumentTypePropertyTypeReferenceResponseModel"]),
|
|
@@ -9464,7 +9899,45 @@ var getRecycleBinDocumentRootResponse = _zod.z.object({
|
|
|
9464
9899
|
"variants": _zod.z.array(_zod.z.object({
|
|
9465
9900
|
"name": _zod.z.string(),
|
|
9466
9901
|
"culture": _zod.z.string().nullish(),
|
|
9467
|
-
"
|
|
9902
|
+
"id": _zod.z.string().uuid(),
|
|
9903
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
9904
|
+
"alias": _zod.z.string()
|
|
9905
|
+
})),
|
|
9906
|
+
"state": _zod.z.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
|
|
9907
|
+
}))
|
|
9908
|
+
}))
|
|
9909
|
+
});
|
|
9910
|
+
var getRecycleBinDocumentSiblingsQueryParams = _zod.z.object({
|
|
9911
|
+
"target": _zod.z.string().uuid().optional(),
|
|
9912
|
+
"before": _zod.z.coerce.number().optional(),
|
|
9913
|
+
"after": _zod.z.coerce.number().optional(),
|
|
9914
|
+
"dataTypeId": _zod.z.string().uuid().optional()
|
|
9915
|
+
});
|
|
9916
|
+
var getRecycleBinDocumentSiblingsResponse = _zod.z.object({
|
|
9917
|
+
"totalBefore": _zod.z.number(),
|
|
9918
|
+
"totalAfter": _zod.z.number(),
|
|
9919
|
+
"items": _zod.z.array(_zod.z.object({
|
|
9920
|
+
"id": _zod.z.string().uuid(),
|
|
9921
|
+
"createDate": _zod.z.string().datetime({ "local": true }),
|
|
9922
|
+
"hasChildren": _zod.z.boolean(),
|
|
9923
|
+
"parent": _zod.z.object({
|
|
9924
|
+
"id": _zod.z.string().uuid()
|
|
9925
|
+
}).nullish(),
|
|
9926
|
+
"documentType": _zod.z.object({
|
|
9927
|
+
"id": _zod.z.string().uuid(),
|
|
9928
|
+
"icon": _zod.z.string(),
|
|
9929
|
+
"collection": _zod.z.object({
|
|
9930
|
+
"id": _zod.z.string().uuid()
|
|
9931
|
+
}).nullish()
|
|
9932
|
+
}),
|
|
9933
|
+
"variants": _zod.z.array(_zod.z.object({
|
|
9934
|
+
"name": _zod.z.string(),
|
|
9935
|
+
"culture": _zod.z.string().nullish(),
|
|
9936
|
+
"id": _zod.z.string().uuid(),
|
|
9937
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
9938
|
+
"alias": _zod.z.string()
|
|
9939
|
+
})),
|
|
9940
|
+
"state": _zod.z.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
|
|
9468
9941
|
}))
|
|
9469
9942
|
}))
|
|
9470
9943
|
});
|
|
@@ -9473,12 +9946,15 @@ var getTreeDocumentAncestorsQueryParams = _zod.z.object({
|
|
|
9473
9946
|
});
|
|
9474
9947
|
var getTreeDocumentAncestorsResponseItem = _zod.z.object({
|
|
9475
9948
|
"hasChildren": _zod.z.boolean(),
|
|
9949
|
+
"id": _zod.z.string().uuid(),
|
|
9476
9950
|
"parent": _zod.z.object({
|
|
9477
9951
|
"id": _zod.z.string().uuid()
|
|
9478
9952
|
}).nullish(),
|
|
9953
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
9954
|
+
"alias": _zod.z.string()
|
|
9955
|
+
})),
|
|
9479
9956
|
"noAccess": _zod.z.boolean(),
|
|
9480
9957
|
"isTrashed": _zod.z.boolean(),
|
|
9481
|
-
"id": _zod.z.string().uuid(),
|
|
9482
9958
|
"createDate": _zod.z.string().datetime({ "local": true }),
|
|
9483
9959
|
"isProtected": _zod.z.boolean(),
|
|
9484
9960
|
"ancestors": _zod.z.array(_zod.z.object({
|
|
@@ -9494,7 +9970,11 @@ var getTreeDocumentAncestorsResponseItem = _zod.z.object({
|
|
|
9494
9970
|
"variants": _zod.z.array(_zod.z.object({
|
|
9495
9971
|
"name": _zod.z.string(),
|
|
9496
9972
|
"culture": _zod.z.string().nullish(),
|
|
9497
|
-
"
|
|
9973
|
+
"id": _zod.z.string().uuid(),
|
|
9974
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
9975
|
+
"alias": _zod.z.string()
|
|
9976
|
+
})),
|
|
9977
|
+
"state": _zod.z.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
|
|
9498
9978
|
}))
|
|
9499
9979
|
});
|
|
9500
9980
|
var getTreeDocumentAncestorsResponse = _zod.z.array(getTreeDocumentAncestorsResponseItem);
|
|
@@ -9509,12 +9989,15 @@ var getTreeDocumentChildrenResponse = _zod.z.object({
|
|
|
9509
9989
|
"total": _zod.z.number(),
|
|
9510
9990
|
"items": _zod.z.array(_zod.z.object({
|
|
9511
9991
|
"hasChildren": _zod.z.boolean(),
|
|
9992
|
+
"id": _zod.z.string().uuid(),
|
|
9512
9993
|
"parent": _zod.z.object({
|
|
9513
9994
|
"id": _zod.z.string().uuid()
|
|
9514
9995
|
}).nullish(),
|
|
9996
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
9997
|
+
"alias": _zod.z.string()
|
|
9998
|
+
})),
|
|
9515
9999
|
"noAccess": _zod.z.boolean(),
|
|
9516
10000
|
"isTrashed": _zod.z.boolean(),
|
|
9517
|
-
"id": _zod.z.string().uuid(),
|
|
9518
10001
|
"createDate": _zod.z.string().datetime({ "local": true }),
|
|
9519
10002
|
"isProtected": _zod.z.boolean(),
|
|
9520
10003
|
"ancestors": _zod.z.array(_zod.z.object({
|
|
@@ -9530,7 +10013,11 @@ var getTreeDocumentChildrenResponse = _zod.z.object({
|
|
|
9530
10013
|
"variants": _zod.z.array(_zod.z.object({
|
|
9531
10014
|
"name": _zod.z.string(),
|
|
9532
10015
|
"culture": _zod.z.string().nullish(),
|
|
9533
|
-
"
|
|
10016
|
+
"id": _zod.z.string().uuid(),
|
|
10017
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
10018
|
+
"alias": _zod.z.string()
|
|
10019
|
+
})),
|
|
10020
|
+
"state": _zod.z.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
|
|
9534
10021
|
}))
|
|
9535
10022
|
}))
|
|
9536
10023
|
});
|
|
@@ -9544,12 +10031,58 @@ var getTreeDocumentRootResponse = _zod.z.object({
|
|
|
9544
10031
|
"total": _zod.z.number(),
|
|
9545
10032
|
"items": _zod.z.array(_zod.z.object({
|
|
9546
10033
|
"hasChildren": _zod.z.boolean(),
|
|
10034
|
+
"id": _zod.z.string().uuid(),
|
|
9547
10035
|
"parent": _zod.z.object({
|
|
9548
10036
|
"id": _zod.z.string().uuid()
|
|
9549
10037
|
}).nullish(),
|
|
10038
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
10039
|
+
"alias": _zod.z.string()
|
|
10040
|
+
})),
|
|
9550
10041
|
"noAccess": _zod.z.boolean(),
|
|
9551
10042
|
"isTrashed": _zod.z.boolean(),
|
|
10043
|
+
"createDate": _zod.z.string().datetime({ "local": true }),
|
|
10044
|
+
"isProtected": _zod.z.boolean(),
|
|
10045
|
+
"ancestors": _zod.z.array(_zod.z.object({
|
|
10046
|
+
"id": _zod.z.string().uuid()
|
|
10047
|
+
})),
|
|
10048
|
+
"documentType": _zod.z.object({
|
|
10049
|
+
"id": _zod.z.string().uuid(),
|
|
10050
|
+
"icon": _zod.z.string(),
|
|
10051
|
+
"collection": _zod.z.object({
|
|
10052
|
+
"id": _zod.z.string().uuid()
|
|
10053
|
+
}).nullish()
|
|
10054
|
+
}),
|
|
10055
|
+
"variants": _zod.z.array(_zod.z.object({
|
|
10056
|
+
"name": _zod.z.string(),
|
|
10057
|
+
"culture": _zod.z.string().nullish(),
|
|
10058
|
+
"id": _zod.z.string().uuid(),
|
|
10059
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
10060
|
+
"alias": _zod.z.string()
|
|
10061
|
+
})),
|
|
10062
|
+
"state": _zod.z.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
|
|
10063
|
+
}))
|
|
10064
|
+
}))
|
|
10065
|
+
});
|
|
10066
|
+
var getTreeDocumentSiblingsQueryParams = _zod.z.object({
|
|
10067
|
+
"target": _zod.z.string().uuid().optional(),
|
|
10068
|
+
"before": _zod.z.coerce.number().optional(),
|
|
10069
|
+
"after": _zod.z.coerce.number().optional(),
|
|
10070
|
+
"dataTypeId": _zod.z.string().uuid().optional()
|
|
10071
|
+
});
|
|
10072
|
+
var getTreeDocumentSiblingsResponse = _zod.z.object({
|
|
10073
|
+
"totalBefore": _zod.z.number(),
|
|
10074
|
+
"totalAfter": _zod.z.number(),
|
|
10075
|
+
"items": _zod.z.array(_zod.z.object({
|
|
10076
|
+
"hasChildren": _zod.z.boolean(),
|
|
9552
10077
|
"id": _zod.z.string().uuid(),
|
|
10078
|
+
"parent": _zod.z.object({
|
|
10079
|
+
"id": _zod.z.string().uuid()
|
|
10080
|
+
}).nullish(),
|
|
10081
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
10082
|
+
"alias": _zod.z.string()
|
|
10083
|
+
})),
|
|
10084
|
+
"noAccess": _zod.z.boolean(),
|
|
10085
|
+
"isTrashed": _zod.z.boolean(),
|
|
9553
10086
|
"createDate": _zod.z.string().datetime({ "local": true }),
|
|
9554
10087
|
"isProtected": _zod.z.boolean(),
|
|
9555
10088
|
"ancestors": _zod.z.array(_zod.z.object({
|
|
@@ -9565,7 +10098,11 @@ var getTreeDocumentRootResponse = _zod.z.object({
|
|
|
9565
10098
|
"variants": _zod.z.array(_zod.z.object({
|
|
9566
10099
|
"name": _zod.z.string(),
|
|
9567
10100
|
"culture": _zod.z.string().nullish(),
|
|
9568
|
-
"
|
|
10101
|
+
"id": _zod.z.string().uuid(),
|
|
10102
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
10103
|
+
"alias": _zod.z.string()
|
|
10104
|
+
})),
|
|
10105
|
+
"state": _zod.z.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
|
|
9569
10106
|
}))
|
|
9570
10107
|
}))
|
|
9571
10108
|
});
|
|
@@ -9703,7 +10240,7 @@ var getImagingResizeUrlsResponseItem = _zod.z.object({
|
|
|
9703
10240
|
"id": _zod.z.string().uuid(),
|
|
9704
10241
|
"urlInfos": _zod.z.array(_zod.z.object({
|
|
9705
10242
|
"culture": _zod.z.string().nullable(),
|
|
9706
|
-
"url": _zod.z.string()
|
|
10243
|
+
"url": _zod.z.string().nullable()
|
|
9707
10244
|
}))
|
|
9708
10245
|
});
|
|
9709
10246
|
var getImagingResizeUrlsResponse = _zod.z.array(getImagingResizeUrlsResponseItem);
|
|
@@ -9773,6 +10310,7 @@ var getInstallSettingsResponse = _zod.z.object({
|
|
|
9773
10310
|
"serverPlaceholder": _zod.z.string().min(1),
|
|
9774
10311
|
"requiresCredentials": _zod.z.boolean(),
|
|
9775
10312
|
"supportsIntegratedAuthentication": _zod.z.boolean(),
|
|
10313
|
+
"supportsTrustServerCertificate": _zod.z.boolean(),
|
|
9776
10314
|
"requiresConnectionTest": _zod.z.boolean()
|
|
9777
10315
|
}))
|
|
9778
10316
|
});
|
|
@@ -9982,6 +10520,9 @@ var getItemMediaTypeQueryParams = _zod.z.object({
|
|
|
9982
10520
|
});
|
|
9983
10521
|
var getItemMediaTypeResponseItem = _zod.z.object({
|
|
9984
10522
|
"id": _zod.z.string().uuid(),
|
|
10523
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
10524
|
+
"alias": _zod.z.string()
|
|
10525
|
+
})),
|
|
9985
10526
|
"name": _zod.z.string(),
|
|
9986
10527
|
"icon": _zod.z.string().nullish()
|
|
9987
10528
|
});
|
|
@@ -9995,6 +10536,9 @@ var getItemMediaTypeAllowedQueryParams = _zod.z.object({
|
|
|
9995
10536
|
var getItemMediaTypeAllowedResponse = _zod.z.object({
|
|
9996
10537
|
"items": _zod.z.array(_zod.z.object({
|
|
9997
10538
|
"id": _zod.z.string().uuid(),
|
|
10539
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
10540
|
+
"alias": _zod.z.string()
|
|
10541
|
+
})),
|
|
9998
10542
|
"name": _zod.z.string(),
|
|
9999
10543
|
"icon": _zod.z.string().nullish()
|
|
10000
10544
|
})),
|
|
@@ -10008,6 +10552,9 @@ var getItemMediaTypeFoldersQueryParams = _zod.z.object({
|
|
|
10008
10552
|
var getItemMediaTypeFoldersResponse = _zod.z.object({
|
|
10009
10553
|
"items": _zod.z.array(_zod.z.object({
|
|
10010
10554
|
"id": _zod.z.string().uuid(),
|
|
10555
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
10556
|
+
"alias": _zod.z.string()
|
|
10557
|
+
})),
|
|
10011
10558
|
"name": _zod.z.string(),
|
|
10012
10559
|
"icon": _zod.z.string().nullish()
|
|
10013
10560
|
})),
|
|
@@ -10022,6 +10569,9 @@ var getItemMediaTypeSearchQueryParams = _zod.z.object({
|
|
|
10022
10569
|
var getItemMediaTypeSearchResponse = _zod.z.object({
|
|
10023
10570
|
"items": _zod.z.array(_zod.z.object({
|
|
10024
10571
|
"id": _zod.z.string().uuid(),
|
|
10572
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
10573
|
+
"alias": _zod.z.string()
|
|
10574
|
+
})),
|
|
10025
10575
|
"name": _zod.z.string(),
|
|
10026
10576
|
"icon": _zod.z.string().nullish()
|
|
10027
10577
|
})),
|
|
@@ -10339,6 +10889,9 @@ var getTreeMediaTypeAncestorsResponseItem = _zod.z.object({
|
|
|
10339
10889
|
"parent": _zod.z.object({
|
|
10340
10890
|
"id": _zod.z.string().uuid()
|
|
10341
10891
|
}).nullish(),
|
|
10892
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
10893
|
+
"alias": _zod.z.string()
|
|
10894
|
+
})),
|
|
10342
10895
|
"name": _zod.z.string(),
|
|
10343
10896
|
"isFolder": _zod.z.boolean(),
|
|
10344
10897
|
"icon": _zod.z.string(),
|
|
@@ -10360,6 +10913,9 @@ var getTreeMediaTypeChildrenResponse = _zod.z.object({
|
|
|
10360
10913
|
"parent": _zod.z.object({
|
|
10361
10914
|
"id": _zod.z.string().uuid()
|
|
10362
10915
|
}).nullish(),
|
|
10916
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
10917
|
+
"alias": _zod.z.string()
|
|
10918
|
+
})),
|
|
10363
10919
|
"name": _zod.z.string(),
|
|
10364
10920
|
"isFolder": _zod.z.boolean(),
|
|
10365
10921
|
"icon": _zod.z.string(),
|
|
@@ -10380,6 +10936,33 @@ var getTreeMediaTypeRootResponse = _zod.z.object({
|
|
|
10380
10936
|
"parent": _zod.z.object({
|
|
10381
10937
|
"id": _zod.z.string().uuid()
|
|
10382
10938
|
}).nullish(),
|
|
10939
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
10940
|
+
"alias": _zod.z.string()
|
|
10941
|
+
})),
|
|
10942
|
+
"name": _zod.z.string(),
|
|
10943
|
+
"isFolder": _zod.z.boolean(),
|
|
10944
|
+
"icon": _zod.z.string(),
|
|
10945
|
+
"isDeletable": _zod.z.boolean()
|
|
10946
|
+
}))
|
|
10947
|
+
});
|
|
10948
|
+
var getTreeMediaTypeSiblingsQueryParams = _zod.z.object({
|
|
10949
|
+
"target": _zod.z.string().uuid().optional(),
|
|
10950
|
+
"before": _zod.z.coerce.number().optional(),
|
|
10951
|
+
"after": _zod.z.coerce.number().optional(),
|
|
10952
|
+
"foldersOnly": _zod.z.coerce.boolean().optional()
|
|
10953
|
+
});
|
|
10954
|
+
var getTreeMediaTypeSiblingsResponse = _zod.z.object({
|
|
10955
|
+
"totalBefore": _zod.z.number(),
|
|
10956
|
+
"totalAfter": _zod.z.number(),
|
|
10957
|
+
"items": _zod.z.array(_zod.z.object({
|
|
10958
|
+
"hasChildren": _zod.z.boolean(),
|
|
10959
|
+
"id": _zod.z.string().uuid(),
|
|
10960
|
+
"parent": _zod.z.object({
|
|
10961
|
+
"id": _zod.z.string().uuid()
|
|
10962
|
+
}).nullish(),
|
|
10963
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
10964
|
+
"alias": _zod.z.string()
|
|
10965
|
+
})),
|
|
10383
10966
|
"name": _zod.z.string(),
|
|
10384
10967
|
"isFolder": _zod.z.boolean(),
|
|
10385
10968
|
"icon": _zod.z.string(),
|
|
@@ -10415,12 +10998,18 @@ var getCollectionMediaResponse = _zod.z.object({
|
|
|
10415
10998
|
"updateDate": _zod.z.string().datetime({ "local": true })
|
|
10416
10999
|
})),
|
|
10417
11000
|
"id": _zod.z.string().uuid(),
|
|
11001
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
11002
|
+
"alias": _zod.z.string()
|
|
11003
|
+
})),
|
|
10418
11004
|
"creator": _zod.z.string().nullish(),
|
|
10419
11005
|
"sortOrder": _zod.z.number(),
|
|
10420
11006
|
"mediaType": _zod.z.object({
|
|
10421
11007
|
"id": _zod.z.string().uuid(),
|
|
10422
11008
|
"alias": _zod.z.string(),
|
|
10423
|
-
"icon": _zod.z.string()
|
|
11009
|
+
"icon": _zod.z.string(),
|
|
11010
|
+
"collection": _zod.z.object({
|
|
11011
|
+
"id": _zod.z.string().uuid()
|
|
11012
|
+
}).nullish()
|
|
10424
11013
|
})
|
|
10425
11014
|
}))
|
|
10426
11015
|
});
|
|
@@ -10429,6 +11018,9 @@ var getItemMediaQueryParams = _zod.z.object({
|
|
|
10429
11018
|
});
|
|
10430
11019
|
var getItemMediaResponseItem = _zod.z.object({
|
|
10431
11020
|
"id": _zod.z.string().uuid(),
|
|
11021
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
11022
|
+
"alias": _zod.z.string()
|
|
11023
|
+
})),
|
|
10432
11024
|
"isTrashed": _zod.z.boolean(),
|
|
10433
11025
|
"parent": _zod.z.object({
|
|
10434
11026
|
"id": _zod.z.string().uuid()
|
|
@@ -10455,11 +11047,15 @@ var getItemMediaSearchQueryParams = _zod.z.object({
|
|
|
10455
11047
|
"skip": _zod.z.coerce.number().optional(),
|
|
10456
11048
|
"take": _zod.z.coerce.number().default(getItemMediaSearchQueryTakeDefault),
|
|
10457
11049
|
"parentId": _zod.z.string().uuid().optional(),
|
|
10458
|
-
"allowedMediaTypes": _zod.z.array(_zod.z.string().uuid()).optional()
|
|
11050
|
+
"allowedMediaTypes": _zod.z.array(_zod.z.string().uuid()).optional(),
|
|
11051
|
+
"dataTypeId": _zod.z.string().uuid().optional()
|
|
10459
11052
|
});
|
|
10460
11053
|
var getItemMediaSearchResponse = _zod.z.object({
|
|
10461
11054
|
"items": _zod.z.array(_zod.z.object({
|
|
10462
11055
|
"id": _zod.z.string().uuid(),
|
|
11056
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
11057
|
+
"alias": _zod.z.string()
|
|
11058
|
+
})),
|
|
10463
11059
|
"isTrashed": _zod.z.boolean(),
|
|
10464
11060
|
"parent": _zod.z.object({
|
|
10465
11061
|
"id": _zod.z.string().uuid()
|
|
@@ -10518,9 +11114,8 @@ var getMediaByIdResponse = _zod.z.object({
|
|
|
10518
11114
|
"updateDate": _zod.z.string().datetime({ "local": true })
|
|
10519
11115
|
})),
|
|
10520
11116
|
"id": _zod.z.string().uuid(),
|
|
10521
|
-
"
|
|
10522
|
-
"
|
|
10523
|
-
"url": _zod.z.string()
|
|
11117
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
11118
|
+
"alias": _zod.z.string()
|
|
10524
11119
|
})),
|
|
10525
11120
|
"isTrashed": _zod.z.boolean(),
|
|
10526
11121
|
"mediaType": _zod.z.object({
|
|
@@ -10613,7 +11208,11 @@ var getMediaByIdReferencedByResponse = _zod.z.object({
|
|
|
10613
11208
|
"variants": _zod.z.array(_zod.z.object({
|
|
10614
11209
|
"name": _zod.z.string(),
|
|
10615
11210
|
"culture": _zod.z.string().nullish(),
|
|
10616
|
-
"
|
|
11211
|
+
"id": _zod.z.string().uuid(),
|
|
11212
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
11213
|
+
"alias": _zod.z.string()
|
|
11214
|
+
})),
|
|
11215
|
+
"state": _zod.z.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
|
|
10617
11216
|
}))
|
|
10618
11217
|
})).or(_zod.z.object({
|
|
10619
11218
|
"$type": _zod.z.enum(["DocumentTypePropertyTypeReferenceResponseModel"]),
|
|
@@ -10732,7 +11331,7 @@ var getMediaUrlsResponseItem = _zod.z.object({
|
|
|
10732
11331
|
"id": _zod.z.string().uuid(),
|
|
10733
11332
|
"urlInfos": _zod.z.array(_zod.z.object({
|
|
10734
11333
|
"culture": _zod.z.string().nullable(),
|
|
10735
|
-
"url": _zod.z.string()
|
|
11334
|
+
"url": _zod.z.string().nullable()
|
|
10736
11335
|
}))
|
|
10737
11336
|
});
|
|
10738
11337
|
var getMediaUrlsResponse = _zod.z.array(getMediaUrlsResponseItem);
|
|
@@ -10828,7 +11427,11 @@ var getRecycleBinMediaReferencedByResponse = _zod.z.object({
|
|
|
10828
11427
|
"variants": _zod.z.array(_zod.z.object({
|
|
10829
11428
|
"name": _zod.z.string(),
|
|
10830
11429
|
"culture": _zod.z.string().nullish(),
|
|
10831
|
-
"
|
|
11430
|
+
"id": _zod.z.string().uuid(),
|
|
11431
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
11432
|
+
"alias": _zod.z.string()
|
|
11433
|
+
})),
|
|
11434
|
+
"state": _zod.z.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
|
|
10832
11435
|
}))
|
|
10833
11436
|
})).or(_zod.z.object({
|
|
10834
11437
|
"$type": _zod.z.enum(["DocumentTypePropertyTypeReferenceResponseModel"]),
|
|
@@ -10912,17 +11515,49 @@ var getRecycleBinMediaRootResponse = _zod.z.object({
|
|
|
10912
11515
|
}))
|
|
10913
11516
|
}))
|
|
10914
11517
|
});
|
|
10915
|
-
var
|
|
10916
|
-
"
|
|
11518
|
+
var getRecycleBinMediaSiblingsQueryParams = _zod.z.object({
|
|
11519
|
+
"target": _zod.z.string().uuid().optional(),
|
|
11520
|
+
"before": _zod.z.coerce.number().optional(),
|
|
11521
|
+
"after": _zod.z.coerce.number().optional(),
|
|
11522
|
+
"dataTypeId": _zod.z.string().uuid().optional()
|
|
10917
11523
|
});
|
|
10918
|
-
var
|
|
10919
|
-
"
|
|
10920
|
-
"
|
|
10921
|
-
|
|
10922
|
-
|
|
10923
|
-
|
|
10924
|
-
|
|
10925
|
-
|
|
11524
|
+
var getRecycleBinMediaSiblingsResponse = _zod.z.object({
|
|
11525
|
+
"totalBefore": _zod.z.number(),
|
|
11526
|
+
"totalAfter": _zod.z.number(),
|
|
11527
|
+
"items": _zod.z.array(_zod.z.object({
|
|
11528
|
+
"id": _zod.z.string().uuid(),
|
|
11529
|
+
"createDate": _zod.z.string().datetime({ "local": true }),
|
|
11530
|
+
"hasChildren": _zod.z.boolean(),
|
|
11531
|
+
"parent": _zod.z.object({
|
|
11532
|
+
"id": _zod.z.string().uuid()
|
|
11533
|
+
}).nullish(),
|
|
11534
|
+
"mediaType": _zod.z.object({
|
|
11535
|
+
"id": _zod.z.string().uuid(),
|
|
11536
|
+
"icon": _zod.z.string(),
|
|
11537
|
+
"collection": _zod.z.object({
|
|
11538
|
+
"id": _zod.z.string().uuid()
|
|
11539
|
+
}).nullish()
|
|
11540
|
+
}),
|
|
11541
|
+
"variants": _zod.z.array(_zod.z.object({
|
|
11542
|
+
"name": _zod.z.string(),
|
|
11543
|
+
"culture": _zod.z.string().nullish()
|
|
11544
|
+
}))
|
|
11545
|
+
}))
|
|
11546
|
+
});
|
|
11547
|
+
var getTreeMediaAncestorsQueryParams = _zod.z.object({
|
|
11548
|
+
"descendantId": _zod.z.string().uuid().optional()
|
|
11549
|
+
});
|
|
11550
|
+
var getTreeMediaAncestorsResponseItem = _zod.z.object({
|
|
11551
|
+
"hasChildren": _zod.z.boolean(),
|
|
11552
|
+
"id": _zod.z.string().uuid(),
|
|
11553
|
+
"parent": _zod.z.object({
|
|
11554
|
+
"id": _zod.z.string().uuid()
|
|
11555
|
+
}).nullish(),
|
|
11556
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
11557
|
+
"alias": _zod.z.string()
|
|
11558
|
+
})),
|
|
11559
|
+
"noAccess": _zod.z.boolean(),
|
|
11560
|
+
"isTrashed": _zod.z.boolean(),
|
|
10926
11561
|
"createDate": _zod.z.string().datetime({ "local": true }),
|
|
10927
11562
|
"mediaType": _zod.z.object({
|
|
10928
11563
|
"id": _zod.z.string().uuid(),
|
|
@@ -10948,12 +11583,15 @@ var getTreeMediaChildrenResponse = _zod.z.object({
|
|
|
10948
11583
|
"total": _zod.z.number(),
|
|
10949
11584
|
"items": _zod.z.array(_zod.z.object({
|
|
10950
11585
|
"hasChildren": _zod.z.boolean(),
|
|
11586
|
+
"id": _zod.z.string().uuid(),
|
|
10951
11587
|
"parent": _zod.z.object({
|
|
10952
11588
|
"id": _zod.z.string().uuid()
|
|
10953
11589
|
}).nullish(),
|
|
11590
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
11591
|
+
"alias": _zod.z.string()
|
|
11592
|
+
})),
|
|
10954
11593
|
"noAccess": _zod.z.boolean(),
|
|
10955
11594
|
"isTrashed": _zod.z.boolean(),
|
|
10956
|
-
"id": _zod.z.string().uuid(),
|
|
10957
11595
|
"createDate": _zod.z.string().datetime({ "local": true }),
|
|
10958
11596
|
"mediaType": _zod.z.object({
|
|
10959
11597
|
"id": _zod.z.string().uuid(),
|
|
@@ -10978,12 +11616,49 @@ var getTreeMediaRootResponse = _zod.z.object({
|
|
|
10978
11616
|
"total": _zod.z.number(),
|
|
10979
11617
|
"items": _zod.z.array(_zod.z.object({
|
|
10980
11618
|
"hasChildren": _zod.z.boolean(),
|
|
11619
|
+
"id": _zod.z.string().uuid(),
|
|
10981
11620
|
"parent": _zod.z.object({
|
|
10982
11621
|
"id": _zod.z.string().uuid()
|
|
10983
11622
|
}).nullish(),
|
|
11623
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
11624
|
+
"alias": _zod.z.string()
|
|
11625
|
+
})),
|
|
10984
11626
|
"noAccess": _zod.z.boolean(),
|
|
10985
11627
|
"isTrashed": _zod.z.boolean(),
|
|
11628
|
+
"createDate": _zod.z.string().datetime({ "local": true }),
|
|
11629
|
+
"mediaType": _zod.z.object({
|
|
11630
|
+
"id": _zod.z.string().uuid(),
|
|
11631
|
+
"icon": _zod.z.string(),
|
|
11632
|
+
"collection": _zod.z.object({
|
|
11633
|
+
"id": _zod.z.string().uuid()
|
|
11634
|
+
}).nullish()
|
|
11635
|
+
}),
|
|
11636
|
+
"variants": _zod.z.array(_zod.z.object({
|
|
11637
|
+
"name": _zod.z.string(),
|
|
11638
|
+
"culture": _zod.z.string().nullish()
|
|
11639
|
+
}))
|
|
11640
|
+
}))
|
|
11641
|
+
});
|
|
11642
|
+
var getTreeMediaSiblingsQueryParams = _zod.z.object({
|
|
11643
|
+
"target": _zod.z.string().uuid().optional(),
|
|
11644
|
+
"before": _zod.z.coerce.number().optional(),
|
|
11645
|
+
"after": _zod.z.coerce.number().optional(),
|
|
11646
|
+
"dataTypeId": _zod.z.string().uuid().optional()
|
|
11647
|
+
});
|
|
11648
|
+
var getTreeMediaSiblingsResponse = _zod.z.object({
|
|
11649
|
+
"totalBefore": _zod.z.number(),
|
|
11650
|
+
"totalAfter": _zod.z.number(),
|
|
11651
|
+
"items": _zod.z.array(_zod.z.object({
|
|
11652
|
+
"hasChildren": _zod.z.boolean(),
|
|
10986
11653
|
"id": _zod.z.string().uuid(),
|
|
11654
|
+
"parent": _zod.z.object({
|
|
11655
|
+
"id": _zod.z.string().uuid()
|
|
11656
|
+
}).nullish(),
|
|
11657
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
11658
|
+
"alias": _zod.z.string()
|
|
11659
|
+
})),
|
|
11660
|
+
"noAccess": _zod.z.boolean(),
|
|
11661
|
+
"isTrashed": _zod.z.boolean(),
|
|
10987
11662
|
"createDate": _zod.z.string().datetime({ "local": true }),
|
|
10988
11663
|
"mediaType": _zod.z.object({
|
|
10989
11664
|
"id": _zod.z.string().uuid(),
|
|
@@ -11003,6 +11678,9 @@ var getItemMemberGroupQueryParams = _zod.z.object({
|
|
|
11003
11678
|
});
|
|
11004
11679
|
var getItemMemberGroupResponseItem = _zod.z.object({
|
|
11005
11680
|
"id": _zod.z.string().uuid(),
|
|
11681
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
11682
|
+
"alias": _zod.z.string()
|
|
11683
|
+
})),
|
|
11006
11684
|
"name": _zod.z.string()
|
|
11007
11685
|
});
|
|
11008
11686
|
var getItemMemberGroupResponse = _zod.z.array(getItemMemberGroupResponseItem);
|
|
@@ -11051,6 +11729,9 @@ var getTreeMemberGroupRootResponse = _zod.z.object({
|
|
|
11051
11729
|
"parent": _zod.z.object({
|
|
11052
11730
|
"id": _zod.z.string().uuid()
|
|
11053
11731
|
}).nullish(),
|
|
11732
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
11733
|
+
"alias": _zod.z.string()
|
|
11734
|
+
})),
|
|
11054
11735
|
"name": _zod.z.string()
|
|
11055
11736
|
}))
|
|
11056
11737
|
});
|
|
@@ -11059,6 +11740,9 @@ var getItemMemberTypeQueryParams = _zod.z.object({
|
|
|
11059
11740
|
});
|
|
11060
11741
|
var getItemMemberTypeResponseItem = _zod.z.object({
|
|
11061
11742
|
"id": _zod.z.string().uuid(),
|
|
11743
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
11744
|
+
"alias": _zod.z.string()
|
|
11745
|
+
})),
|
|
11062
11746
|
"name": _zod.z.string(),
|
|
11063
11747
|
"icon": _zod.z.string().nullish()
|
|
11064
11748
|
});
|
|
@@ -11072,6 +11756,9 @@ var getItemMemberTypeSearchQueryParams = _zod.z.object({
|
|
|
11072
11756
|
var getItemMemberTypeSearchResponse = _zod.z.object({
|
|
11073
11757
|
"items": _zod.z.array(_zod.z.object({
|
|
11074
11758
|
"id": _zod.z.string().uuid(),
|
|
11759
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
11760
|
+
"alias": _zod.z.string()
|
|
11761
|
+
})),
|
|
11075
11762
|
"name": _zod.z.string(),
|
|
11076
11763
|
"icon": _zod.z.string().nullish()
|
|
11077
11764
|
})),
|
|
@@ -11287,10 +11974,34 @@ var postMemberTypeAvailableCompositionsResponse = _zod.z.array(postMemberTypeAva
|
|
|
11287
11974
|
var getMemberTypeConfigurationResponse = _zod.z.object({
|
|
11288
11975
|
"reservedFieldNames": _zod.z.array(_zod.z.string())
|
|
11289
11976
|
});
|
|
11977
|
+
var postMemberTypeFolderBody = _zod.z.object({
|
|
11978
|
+
"name": _zod.z.string().min(1),
|
|
11979
|
+
"id": _zod.z.string().uuid().nullish(),
|
|
11980
|
+
"parent": _zod.z.object({
|
|
11981
|
+
"id": _zod.z.string().uuid()
|
|
11982
|
+
}).nullish()
|
|
11983
|
+
});
|
|
11984
|
+
var getMemberTypeFolderByIdParams = _zod.z.object({
|
|
11985
|
+
"id": _zod.z.string().uuid()
|
|
11986
|
+
});
|
|
11987
|
+
var getMemberTypeFolderByIdResponse = _zod.z.object({
|
|
11988
|
+
"name": _zod.z.string().min(1),
|
|
11989
|
+
"id": _zod.z.string().uuid()
|
|
11990
|
+
});
|
|
11991
|
+
var deleteMemberTypeFolderByIdParams = _zod.z.object({
|
|
11992
|
+
"id": _zod.z.string().uuid()
|
|
11993
|
+
});
|
|
11994
|
+
var putMemberTypeFolderByIdParams = _zod.z.object({
|
|
11995
|
+
"id": _zod.z.string().uuid()
|
|
11996
|
+
});
|
|
11997
|
+
var putMemberTypeFolderByIdBody = _zod.z.object({
|
|
11998
|
+
"name": _zod.z.string().min(1)
|
|
11999
|
+
});
|
|
11290
12000
|
var getTreeMemberTypeRootQueryTakeDefault = 100;
|
|
11291
12001
|
var getTreeMemberTypeRootQueryParams = _zod.z.object({
|
|
11292
12002
|
"skip": _zod.z.coerce.number().optional(),
|
|
11293
|
-
"take": _zod.z.coerce.number().default(getTreeMemberTypeRootQueryTakeDefault)
|
|
12003
|
+
"take": _zod.z.coerce.number().default(getTreeMemberTypeRootQueryTakeDefault),
|
|
12004
|
+
"foldersOnly": _zod.z.coerce.boolean().optional()
|
|
11294
12005
|
});
|
|
11295
12006
|
var getTreeMemberTypeRootResponse = _zod.z.object({
|
|
11296
12007
|
"total": _zod.z.number(),
|
|
@@ -11300,6 +12011,31 @@ var getTreeMemberTypeRootResponse = _zod.z.object({
|
|
|
11300
12011
|
"parent": _zod.z.object({
|
|
11301
12012
|
"id": _zod.z.string().uuid()
|
|
11302
12013
|
}).nullish(),
|
|
12014
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
12015
|
+
"alias": _zod.z.string()
|
|
12016
|
+
})),
|
|
12017
|
+
"name": _zod.z.string(),
|
|
12018
|
+
"icon": _zod.z.string()
|
|
12019
|
+
}))
|
|
12020
|
+
});
|
|
12021
|
+
var getTreeMemberTypeSiblingsQueryParams = _zod.z.object({
|
|
12022
|
+
"target": _zod.z.string().uuid().optional(),
|
|
12023
|
+
"before": _zod.z.coerce.number().optional(),
|
|
12024
|
+
"after": _zod.z.coerce.number().optional(),
|
|
12025
|
+
"foldersOnly": _zod.z.coerce.boolean().optional()
|
|
12026
|
+
});
|
|
12027
|
+
var getTreeMemberTypeSiblingsResponse = _zod.z.object({
|
|
12028
|
+
"totalBefore": _zod.z.number(),
|
|
12029
|
+
"totalAfter": _zod.z.number(),
|
|
12030
|
+
"items": _zod.z.array(_zod.z.object({
|
|
12031
|
+
"hasChildren": _zod.z.boolean(),
|
|
12032
|
+
"id": _zod.z.string().uuid(),
|
|
12033
|
+
"parent": _zod.z.object({
|
|
12034
|
+
"id": _zod.z.string().uuid()
|
|
12035
|
+
}).nullish(),
|
|
12036
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
12037
|
+
"alias": _zod.z.string()
|
|
12038
|
+
})),
|
|
11303
12039
|
"name": _zod.z.string(),
|
|
11304
12040
|
"icon": _zod.z.string()
|
|
11305
12041
|
}))
|
|
@@ -11335,6 +12071,9 @@ var getFilterMemberResponse = _zod.z.object({
|
|
|
11335
12071
|
"updateDate": _zod.z.string().datetime({ "local": true })
|
|
11336
12072
|
})),
|
|
11337
12073
|
"id": _zod.z.string().uuid(),
|
|
12074
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
12075
|
+
"alias": _zod.z.string()
|
|
12076
|
+
})),
|
|
11338
12077
|
"email": _zod.z.string(),
|
|
11339
12078
|
"username": _zod.z.string(),
|
|
11340
12079
|
"memberType": _zod.z.object({
|
|
@@ -11360,6 +12099,9 @@ var getItemMemberQueryParams = _zod.z.object({
|
|
|
11360
12099
|
});
|
|
11361
12100
|
var getItemMemberResponseItem = _zod.z.object({
|
|
11362
12101
|
"id": _zod.z.string().uuid(),
|
|
12102
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
12103
|
+
"alias": _zod.z.string()
|
|
12104
|
+
})),
|
|
11363
12105
|
"memberType": _zod.z.object({
|
|
11364
12106
|
"id": _zod.z.string().uuid(),
|
|
11365
12107
|
"icon": _zod.z.string(),
|
|
@@ -11384,6 +12126,9 @@ var getItemMemberSearchQueryParams = _zod.z.object({
|
|
|
11384
12126
|
var getItemMemberSearchResponse = _zod.z.object({
|
|
11385
12127
|
"items": _zod.z.array(_zod.z.object({
|
|
11386
12128
|
"id": _zod.z.string().uuid(),
|
|
12129
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
12130
|
+
"alias": _zod.z.string()
|
|
12131
|
+
})),
|
|
11387
12132
|
"memberType": _zod.z.object({
|
|
11388
12133
|
"id": _zod.z.string().uuid(),
|
|
11389
12134
|
"icon": _zod.z.string(),
|
|
@@ -11440,6 +12185,9 @@ var getMemberByIdResponse = _zod.z.object({
|
|
|
11440
12185
|
"updateDate": _zod.z.string().datetime({ "local": true })
|
|
11441
12186
|
})),
|
|
11442
12187
|
"id": _zod.z.string().uuid(),
|
|
12188
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
12189
|
+
"alias": _zod.z.string()
|
|
12190
|
+
})),
|
|
11443
12191
|
"email": _zod.z.string(),
|
|
11444
12192
|
"username": _zod.z.string(),
|
|
11445
12193
|
"memberType": _zod.z.object({
|
|
@@ -11516,7 +12264,11 @@ var getMemberByIdReferencedByResponse = _zod.z.object({
|
|
|
11516
12264
|
"variants": _zod.z.array(_zod.z.object({
|
|
11517
12265
|
"name": _zod.z.string(),
|
|
11518
12266
|
"culture": _zod.z.string().nullish(),
|
|
11519
|
-
"
|
|
12267
|
+
"id": _zod.z.string().uuid(),
|
|
12268
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
12269
|
+
"alias": _zod.z.string()
|
|
12270
|
+
})),
|
|
12271
|
+
"state": _zod.z.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
|
|
11520
12272
|
}))
|
|
11521
12273
|
})).or(_zod.z.object({
|
|
11522
12274
|
"$type": _zod.z.enum(["DocumentTypePropertyTypeReferenceResponseModel"]),
|
|
@@ -11647,7 +12399,7 @@ var postMemberValidateBody = _zod.z.object({
|
|
|
11647
12399
|
"isApproved": _zod.z.boolean()
|
|
11648
12400
|
});
|
|
11649
12401
|
var getModelsBuilderDashboardResponse = _zod.z.object({
|
|
11650
|
-
"mode": _zod.z.
|
|
12402
|
+
"mode": _zod.z.string(),
|
|
11651
12403
|
"canGenerate": _zod.z.boolean(),
|
|
11652
12404
|
"outOfDateModels": _zod.z.boolean(),
|
|
11653
12405
|
"lastError": _zod.z.string().nullish(),
|
|
@@ -11658,6 +12410,17 @@ var getModelsBuilderDashboardResponse = _zod.z.object({
|
|
|
11658
12410
|
var getModelsBuilderStatusResponse = _zod.z.object({
|
|
11659
12411
|
"status": _zod.z.enum(["OutOfDate", "Current", "Unknown"])
|
|
11660
12412
|
});
|
|
12413
|
+
var getNewsDashboardResponse = _zod.z.object({
|
|
12414
|
+
"items": _zod.z.array(_zod.z.object({
|
|
12415
|
+
"priority": _zod.z.string(),
|
|
12416
|
+
"header": _zod.z.string(),
|
|
12417
|
+
"body": _zod.z.string().nullish(),
|
|
12418
|
+
"buttonText": _zod.z.string().nullish(),
|
|
12419
|
+
"imageUrl": _zod.z.string().nullish(),
|
|
12420
|
+
"imageAltText": _zod.z.string().nullish(),
|
|
12421
|
+
"url": _zod.z.string().nullish()
|
|
12422
|
+
}))
|
|
12423
|
+
});
|
|
11661
12424
|
var getObjectTypesQueryTakeDefault = 100;
|
|
11662
12425
|
var getObjectTypesQueryParams = _zod.z.object({
|
|
11663
12426
|
"skip": _zod.z.coerce.number().optional(),
|
|
@@ -11919,6 +12682,24 @@ var getTreePartialViewRootResponse = _zod.z.object({
|
|
|
11919
12682
|
"isFolder": _zod.z.boolean()
|
|
11920
12683
|
}))
|
|
11921
12684
|
});
|
|
12685
|
+
var getTreePartialViewSiblingsQueryParams = _zod.z.object({
|
|
12686
|
+
"path": _zod.z.string().optional(),
|
|
12687
|
+
"before": _zod.z.coerce.number().optional(),
|
|
12688
|
+
"after": _zod.z.coerce.number().optional()
|
|
12689
|
+
});
|
|
12690
|
+
var getTreePartialViewSiblingsResponse = _zod.z.object({
|
|
12691
|
+
"totalBefore": _zod.z.number(),
|
|
12692
|
+
"totalAfter": _zod.z.number(),
|
|
12693
|
+
"items": _zod.z.array(_zod.z.object({
|
|
12694
|
+
"hasChildren": _zod.z.boolean(),
|
|
12695
|
+
"name": _zod.z.string(),
|
|
12696
|
+
"path": _zod.z.string(),
|
|
12697
|
+
"parent": _zod.z.object({
|
|
12698
|
+
"path": _zod.z.string()
|
|
12699
|
+
}).nullish(),
|
|
12700
|
+
"isFolder": _zod.z.boolean()
|
|
12701
|
+
}))
|
|
12702
|
+
});
|
|
11922
12703
|
var getProfilingStatusResponse = _zod.z.object({
|
|
11923
12704
|
"enabled": _zod.z.boolean()
|
|
11924
12705
|
});
|
|
@@ -11988,6 +12769,9 @@ var getItemRelationTypeQueryParams = _zod.z.object({
|
|
|
11988
12769
|
});
|
|
11989
12770
|
var getItemRelationTypeResponseItem = _zod.z.object({
|
|
11990
12771
|
"id": _zod.z.string().uuid(),
|
|
12772
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
12773
|
+
"alias": _zod.z.string()
|
|
12774
|
+
})),
|
|
11991
12775
|
"name": _zod.z.string(),
|
|
11992
12776
|
"isDeletable": _zod.z.boolean()
|
|
11993
12777
|
});
|
|
@@ -12172,6 +12956,24 @@ var getTreeScriptRootResponse = _zod.z.object({
|
|
|
12172
12956
|
"isFolder": _zod.z.boolean()
|
|
12173
12957
|
}))
|
|
12174
12958
|
});
|
|
12959
|
+
var getTreeScriptSiblingsQueryParams = _zod.z.object({
|
|
12960
|
+
"path": _zod.z.string().optional(),
|
|
12961
|
+
"before": _zod.z.coerce.number().optional(),
|
|
12962
|
+
"after": _zod.z.coerce.number().optional()
|
|
12963
|
+
});
|
|
12964
|
+
var getTreeScriptSiblingsResponse = _zod.z.object({
|
|
12965
|
+
"totalBefore": _zod.z.number(),
|
|
12966
|
+
"totalAfter": _zod.z.number(),
|
|
12967
|
+
"items": _zod.z.array(_zod.z.object({
|
|
12968
|
+
"hasChildren": _zod.z.boolean(),
|
|
12969
|
+
"name": _zod.z.string(),
|
|
12970
|
+
"path": _zod.z.string(),
|
|
12971
|
+
"parent": _zod.z.object({
|
|
12972
|
+
"path": _zod.z.string()
|
|
12973
|
+
}).nullish(),
|
|
12974
|
+
"isFolder": _zod.z.boolean()
|
|
12975
|
+
}))
|
|
12976
|
+
});
|
|
12175
12977
|
var getSearcherQueryTakeDefault = 100;
|
|
12176
12978
|
var getSearcherQueryParams = _zod.z.object({
|
|
12177
12979
|
"skip": _zod.z.coerce.number().optional(),
|
|
@@ -12247,7 +13049,8 @@ var getSegmentResponse = _zod.z.object({
|
|
|
12247
13049
|
"total": _zod.z.number(),
|
|
12248
13050
|
"items": _zod.z.array(_zod.z.object({
|
|
12249
13051
|
"name": _zod.z.string(),
|
|
12250
|
-
"alias": _zod.z.string()
|
|
13052
|
+
"alias": _zod.z.string(),
|
|
13053
|
+
"cultures": _zod.z.array(_zod.z.string()).nullish()
|
|
12251
13054
|
}))
|
|
12252
13055
|
});
|
|
12253
13056
|
var getServerConfigurationResponse = _zod.z.object({
|
|
@@ -12447,6 +13250,24 @@ var getTreeStylesheetRootResponse = _zod.z.object({
|
|
|
12447
13250
|
"isFolder": _zod.z.boolean()
|
|
12448
13251
|
}))
|
|
12449
13252
|
});
|
|
13253
|
+
var getTreeStylesheetSiblingsQueryParams = _zod.z.object({
|
|
13254
|
+
"path": _zod.z.string().optional(),
|
|
13255
|
+
"before": _zod.z.coerce.number().optional(),
|
|
13256
|
+
"after": _zod.z.coerce.number().optional()
|
|
13257
|
+
});
|
|
13258
|
+
var getTreeStylesheetSiblingsResponse = _zod.z.object({
|
|
13259
|
+
"totalBefore": _zod.z.number(),
|
|
13260
|
+
"totalAfter": _zod.z.number(),
|
|
13261
|
+
"items": _zod.z.array(_zod.z.object({
|
|
13262
|
+
"hasChildren": _zod.z.boolean(),
|
|
13263
|
+
"name": _zod.z.string(),
|
|
13264
|
+
"path": _zod.z.string(),
|
|
13265
|
+
"parent": _zod.z.object({
|
|
13266
|
+
"path": _zod.z.string()
|
|
13267
|
+
}).nullish(),
|
|
13268
|
+
"isFolder": _zod.z.boolean()
|
|
13269
|
+
}))
|
|
13270
|
+
});
|
|
12450
13271
|
var getTagQueryTakeDefault = 100;
|
|
12451
13272
|
var getTagQueryParams = _zod.z.object({
|
|
12452
13273
|
"query": _zod.z.string().optional(),
|
|
@@ -12486,6 +13307,9 @@ var getItemTemplateQueryParams = _zod.z.object({
|
|
|
12486
13307
|
});
|
|
12487
13308
|
var getItemTemplateResponseItem = _zod.z.object({
|
|
12488
13309
|
"id": _zod.z.string().uuid(),
|
|
13310
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
13311
|
+
"alias": _zod.z.string()
|
|
13312
|
+
})),
|
|
12489
13313
|
"name": _zod.z.string(),
|
|
12490
13314
|
"alias": _zod.z.string()
|
|
12491
13315
|
});
|
|
@@ -12499,6 +13323,9 @@ var getItemTemplateSearchQueryParams = _zod.z.object({
|
|
|
12499
13323
|
var getItemTemplateSearchResponse = _zod.z.object({
|
|
12500
13324
|
"items": _zod.z.array(_zod.z.object({
|
|
12501
13325
|
"id": _zod.z.string().uuid(),
|
|
13326
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
13327
|
+
"alias": _zod.z.string()
|
|
13328
|
+
})),
|
|
12502
13329
|
"name": _zod.z.string(),
|
|
12503
13330
|
"alias": _zod.z.string()
|
|
12504
13331
|
})),
|
|
@@ -12581,6 +13408,9 @@ var getTreeTemplateAncestorsResponseItem = _zod.z.object({
|
|
|
12581
13408
|
"parent": _zod.z.object({
|
|
12582
13409
|
"id": _zod.z.string().uuid()
|
|
12583
13410
|
}).nullish(),
|
|
13411
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
13412
|
+
"alias": _zod.z.string()
|
|
13413
|
+
})),
|
|
12584
13414
|
"name": _zod.z.string()
|
|
12585
13415
|
});
|
|
12586
13416
|
var getTreeTemplateAncestorsResponse = _zod.z.array(getTreeTemplateAncestorsResponseItem);
|
|
@@ -12598,6 +13428,9 @@ var getTreeTemplateChildrenResponse = _zod.z.object({
|
|
|
12598
13428
|
"parent": _zod.z.object({
|
|
12599
13429
|
"id": _zod.z.string().uuid()
|
|
12600
13430
|
}).nullish(),
|
|
13431
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
13432
|
+
"alias": _zod.z.string()
|
|
13433
|
+
})),
|
|
12601
13434
|
"name": _zod.z.string()
|
|
12602
13435
|
}))
|
|
12603
13436
|
});
|
|
@@ -12614,6 +13447,29 @@ var getTreeTemplateRootResponse = _zod.z.object({
|
|
|
12614
13447
|
"parent": _zod.z.object({
|
|
12615
13448
|
"id": _zod.z.string().uuid()
|
|
12616
13449
|
}).nullish(),
|
|
13450
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
13451
|
+
"alias": _zod.z.string()
|
|
13452
|
+
})),
|
|
13453
|
+
"name": _zod.z.string()
|
|
13454
|
+
}))
|
|
13455
|
+
});
|
|
13456
|
+
var getTreeTemplateSiblingsQueryParams = _zod.z.object({
|
|
13457
|
+
"target": _zod.z.string().uuid().optional(),
|
|
13458
|
+
"before": _zod.z.coerce.number().optional(),
|
|
13459
|
+
"after": _zod.z.coerce.number().optional()
|
|
13460
|
+
});
|
|
13461
|
+
var getTreeTemplateSiblingsResponse = _zod.z.object({
|
|
13462
|
+
"totalBefore": _zod.z.number(),
|
|
13463
|
+
"totalAfter": _zod.z.number(),
|
|
13464
|
+
"items": _zod.z.array(_zod.z.object({
|
|
13465
|
+
"hasChildren": _zod.z.boolean(),
|
|
13466
|
+
"id": _zod.z.string().uuid(),
|
|
13467
|
+
"parent": _zod.z.object({
|
|
13468
|
+
"id": _zod.z.string().uuid()
|
|
13469
|
+
}).nullish(),
|
|
13470
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
13471
|
+
"alias": _zod.z.string()
|
|
13472
|
+
})),
|
|
12617
13473
|
"name": _zod.z.string()
|
|
12618
13474
|
}))
|
|
12619
13475
|
});
|
|
@@ -12660,6 +13516,9 @@ var getUserDataByIdResponse = _zod.z.object({
|
|
|
12660
13516
|
"identifier": _zod.z.string(),
|
|
12661
13517
|
"value": _zod.z.string()
|
|
12662
13518
|
});
|
|
13519
|
+
var deleteUserDataByIdParams = _zod.z.object({
|
|
13520
|
+
"id": _zod.z.string().uuid()
|
|
13521
|
+
});
|
|
12663
13522
|
var getFilterUserGroupQueryTakeDefault = 100;
|
|
12664
13523
|
var getFilterUserGroupQueryParams = _zod.z.object({
|
|
12665
13524
|
"skip": _zod.z.coerce.number().optional(),
|
|
@@ -12714,6 +13573,9 @@ var getItemUserGroupQueryParams = _zod.z.object({
|
|
|
12714
13573
|
});
|
|
12715
13574
|
var getItemUserGroupResponseItem = _zod.z.object({
|
|
12716
13575
|
"id": _zod.z.string().uuid(),
|
|
13576
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
13577
|
+
"alias": _zod.z.string()
|
|
13578
|
+
})),
|
|
12717
13579
|
"name": _zod.z.string(),
|
|
12718
13580
|
"icon": _zod.z.string().nullish(),
|
|
12719
13581
|
"alias": _zod.z.string().nullish()
|
|
@@ -12956,6 +13818,9 @@ var getItemUserQueryParams = _zod.z.object({
|
|
|
12956
13818
|
});
|
|
12957
13819
|
var getItemUserResponseItem = _zod.z.object({
|
|
12958
13820
|
"id": _zod.z.string().uuid(),
|
|
13821
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
13822
|
+
"alias": _zod.z.string()
|
|
13823
|
+
})),
|
|
12959
13824
|
"name": _zod.z.string(),
|
|
12960
13825
|
"avatarUrls": _zod.z.array(_zod.z.string()),
|
|
12961
13826
|
"kind": _zod.z.enum(["Default", "Api"])
|
|
@@ -13333,6 +14198,10 @@ var getItemWebhookQueryParams = _zod.z.object({
|
|
|
13333
14198
|
"id": _zod.z.array(_zod.z.string().uuid()).optional()
|
|
13334
14199
|
});
|
|
13335
14200
|
var getItemWebhookResponseItem = _zod.z.object({
|
|
14201
|
+
"id": _zod.z.string().uuid(),
|
|
14202
|
+
"flags": _zod.z.array(_zod.z.object({
|
|
14203
|
+
"alias": _zod.z.string()
|
|
14204
|
+
})),
|
|
13336
14205
|
"enabled": _zod.z.boolean(),
|
|
13337
14206
|
"name": _zod.z.string(),
|
|
13338
14207
|
"events": _zod.z.string(),
|
|
@@ -14565,21 +15434,21 @@ var move_data_type_default = MoveDataTypeTool;
|
|
|
14565
15434
|
var GetReferencesDataTypeTool = CreateUmbracoTool(
|
|
14566
15435
|
"get-references-data-type",
|
|
14567
15436
|
`Gets the document types and properties that use a specific data type.
|
|
14568
|
-
|
|
15437
|
+
|
|
14569
15438
|
This is the recommended method to find all document types that reference a particular data type.
|
|
14570
|
-
|
|
15439
|
+
|
|
14571
15440
|
Usage examples:
|
|
14572
15441
|
- Find all document types using the RichText editor data type
|
|
14573
15442
|
- Identify properties that reference a specific data type before modifying or deleting it
|
|
14574
15443
|
- Perform bulk updates to all properties using a specific data type
|
|
14575
|
-
|
|
15444
|
+
|
|
14576
15445
|
Returns a detailed list with content type information (id, type, name, icon) and all properties
|
|
14577
15446
|
(name, alias) that use the specified data type.
|
|
14578
15447
|
`,
|
|
14579
|
-
|
|
15448
|
+
getDataTypeByIdReferencedByParams.shape,
|
|
14580
15449
|
async ({ id }) => {
|
|
14581
15450
|
const client = UmbracoManagementClient2.getClient();
|
|
14582
|
-
var response = await client.
|
|
15451
|
+
var response = await client.getDataTypeByIdReferencedBy(id);
|
|
14583
15452
|
return {
|
|
14584
15453
|
content: [
|
|
14585
15454
|
{
|
|
@@ -14736,6 +15605,26 @@ var GetDataTypeChildrenTool = CreateUmbracoTool(
|
|
|
14736
15605
|
);
|
|
14737
15606
|
var get_children_default = GetDataTypeChildrenTool;
|
|
14738
15607
|
|
|
15608
|
+
// src/umb-management-api/tools/data-type/items/get/get-siblings.ts
|
|
15609
|
+
var GetDataTypeSiblingsTool = CreateUmbracoTool(
|
|
15610
|
+
"get-data-type-siblings",
|
|
15611
|
+
"Gets sibling data types or data type folders for a given descendant id",
|
|
15612
|
+
getTreeDataTypeSiblingsQueryParams.shape,
|
|
15613
|
+
async (params) => {
|
|
15614
|
+
const client = UmbracoManagementClient2.getClient();
|
|
15615
|
+
var response = await client.getTreeDataTypeSiblings(params);
|
|
15616
|
+
return {
|
|
15617
|
+
content: [
|
|
15618
|
+
{
|
|
15619
|
+
type: "text",
|
|
15620
|
+
text: JSON.stringify(response)
|
|
15621
|
+
}
|
|
15622
|
+
]
|
|
15623
|
+
};
|
|
15624
|
+
}
|
|
15625
|
+
);
|
|
15626
|
+
var get_siblings_default = GetDataTypeSiblingsTool;
|
|
15627
|
+
|
|
14739
15628
|
// src/umb-management-api/tools/data-type/items/get/get-ancestors.ts
|
|
14740
15629
|
var GetDataTypeAncestorsTool = CreateUmbracoTool(
|
|
14741
15630
|
"get-data-type-ancestors",
|
|
@@ -14866,6 +15755,7 @@ var DataTypeCollection = {
|
|
|
14866
15755
|
if (AuthorizationPolicies.TreeAccessDataTypes(user)) {
|
|
14867
15756
|
tools.push(get_root_default());
|
|
14868
15757
|
tools.push(get_children_default());
|
|
15758
|
+
tools.push(get_siblings_default());
|
|
14869
15759
|
tools.push(get_ancestors_default());
|
|
14870
15760
|
tools.push(get_all_default());
|
|
14871
15761
|
tools.push(delete_data_type_default());
|
|
@@ -15497,6 +16387,26 @@ var GetDocumentTypeAncestorsTool = CreateUmbracoTool(
|
|
|
15497
16387
|
);
|
|
15498
16388
|
var get_ancestors_default3 = GetDocumentTypeAncestorsTool;
|
|
15499
16389
|
|
|
16390
|
+
// src/umb-management-api/tools/document-type/items/get/get-siblings.ts
|
|
16391
|
+
var GetDocumentTypeSiblingsTool = CreateUmbracoTool(
|
|
16392
|
+
"get-document-type-siblings",
|
|
16393
|
+
"Gets sibling document types or document type folders for a given descendant id",
|
|
16394
|
+
getTreeDocumentTypeSiblingsQueryParams.shape,
|
|
16395
|
+
async (params) => {
|
|
16396
|
+
const client = UmbracoManagementClient2.getClient();
|
|
16397
|
+
const response = await client.getTreeDocumentTypeSiblings(params);
|
|
16398
|
+
return {
|
|
16399
|
+
content: [
|
|
16400
|
+
{
|
|
16401
|
+
type: "text",
|
|
16402
|
+
text: JSON.stringify(response)
|
|
16403
|
+
}
|
|
16404
|
+
]
|
|
16405
|
+
};
|
|
16406
|
+
}
|
|
16407
|
+
);
|
|
16408
|
+
var get_siblings_default2 = GetDocumentTypeSiblingsTool;
|
|
16409
|
+
|
|
15500
16410
|
// src/umb-management-api/tools/document-type/folders/post/create-folder.ts
|
|
15501
16411
|
var CreateDocumentTypeFolderTool = CreateUmbracoTool(
|
|
15502
16412
|
"create-document-type-folder",
|
|
@@ -16452,6 +17362,7 @@ var DocumentTypeCollection = {
|
|
|
16452
17362
|
tools.push(get_root_default3());
|
|
16453
17363
|
tools.push(get_ancestors_default3());
|
|
16454
17364
|
tools.push(get_children_default3());
|
|
17365
|
+
tools.push(get_siblings_default2());
|
|
16455
17366
|
}
|
|
16456
17367
|
return tools;
|
|
16457
17368
|
}
|
|
@@ -16522,6 +17433,27 @@ var GetLanguageByIsoCodeTool = CreateUmbracoTool(
|
|
|
16522
17433
|
);
|
|
16523
17434
|
var get_language_by_iso_code_default = GetLanguageByIsoCodeTool;
|
|
16524
17435
|
|
|
17436
|
+
// src/umb-management-api/tools/language/get/get-language.ts
|
|
17437
|
+
var GetLanguageTool = CreateUmbracoTool(
|
|
17438
|
+
"get-language",
|
|
17439
|
+
"Gets all languages with optional pagination",
|
|
17440
|
+
getLanguageQueryParams.shape,
|
|
17441
|
+
async (params) => {
|
|
17442
|
+
const client = UmbracoManagementClient2.getClient();
|
|
17443
|
+
const response = await client.getLanguage(params);
|
|
17444
|
+
const validated = getLanguageResponse.parse(response);
|
|
17445
|
+
return {
|
|
17446
|
+
content: [
|
|
17447
|
+
{
|
|
17448
|
+
type: "text",
|
|
17449
|
+
text: JSON.stringify(validated, null, 2)
|
|
17450
|
+
}
|
|
17451
|
+
]
|
|
17452
|
+
};
|
|
17453
|
+
}
|
|
17454
|
+
);
|
|
17455
|
+
var get_language_default = GetLanguageTool;
|
|
17456
|
+
|
|
16525
17457
|
// src/umb-management-api/tools/language/post/create-language.ts
|
|
16526
17458
|
var CreateLanguageTool = CreateUmbracoTool(
|
|
16527
17459
|
"create-language",
|
|
@@ -16609,6 +17541,7 @@ var LanguageCollection = {
|
|
|
16609
17541
|
const tools = [];
|
|
16610
17542
|
tools.push(get_language_items_default());
|
|
16611
17543
|
tools.push(get_default_language_default());
|
|
17544
|
+
tools.push(get_language_default());
|
|
16612
17545
|
if (AuthorizationPolicies.TreeAccessLanguages(user)) {
|
|
16613
17546
|
tools.push(create_language_default());
|
|
16614
17547
|
tools.push(update_language_default());
|
|
@@ -16791,6 +17724,26 @@ var GetDocumentBlueprintRootTool = CreateUmbracoTool(
|
|
|
16791
17724
|
);
|
|
16792
17725
|
var get_root_default4 = GetDocumentBlueprintRootTool;
|
|
16793
17726
|
|
|
17727
|
+
// src/umb-management-api/tools/document-blueprint/get/get-siblings.ts
|
|
17728
|
+
var GetDocumentBlueprintSiblingsTool = CreateUmbracoTool(
|
|
17729
|
+
"get-document-blueprint-siblings",
|
|
17730
|
+
"Gets sibling document blueprints for a given descendant id",
|
|
17731
|
+
getTreeDocumentBlueprintSiblingsQueryParams.shape,
|
|
17732
|
+
async (params) => {
|
|
17733
|
+
const client = UmbracoManagementClient2.getClient();
|
|
17734
|
+
const response = await client.getTreeDocumentBlueprintSiblings(params);
|
|
17735
|
+
return {
|
|
17736
|
+
content: [
|
|
17737
|
+
{
|
|
17738
|
+
type: "text",
|
|
17739
|
+
text: JSON.stringify(response)
|
|
17740
|
+
}
|
|
17741
|
+
]
|
|
17742
|
+
};
|
|
17743
|
+
}
|
|
17744
|
+
);
|
|
17745
|
+
var get_siblings_default3 = GetDocumentBlueprintSiblingsTool;
|
|
17746
|
+
|
|
16794
17747
|
// src/umb-management-api/tools/document-blueprint/get/get-document-blueprint-scaffold.ts
|
|
16795
17748
|
var GetDocumentBlueprintScaffoldTool = CreateUmbracoTool(
|
|
16796
17749
|
"get-document-blueprint-scaffold",
|
|
@@ -17003,6 +17956,7 @@ var DocumentBlueprintCollection = {
|
|
|
17003
17956
|
tools.push(get_ancestors_default4());
|
|
17004
17957
|
tools.push(get_children_default4());
|
|
17005
17958
|
tools.push(get_root_default4());
|
|
17959
|
+
tools.push(get_siblings_default3());
|
|
17006
17960
|
tools.push(create_folder_default3());
|
|
17007
17961
|
tools.push(get_folder_default3());
|
|
17008
17962
|
tools.push(update_folder_default3());
|
|
@@ -17091,6 +18045,26 @@ var DeleteDocumentPublicAccessTool = CreateUmbracoTool(
|
|
|
17091
18045
|
);
|
|
17092
18046
|
var delete_document_public_access_default = DeleteDocumentPublicAccessTool;
|
|
17093
18047
|
|
|
18048
|
+
// src/umb-management-api/tools/document/delete/delete-recycle-bin-item.ts
|
|
18049
|
+
var DeleteDocumentRecycleBinItemTool = CreateUmbracoTool(
|
|
18050
|
+
"delete-document-recycle-bin-item",
|
|
18051
|
+
"Permanently deletes a document from the recycle bin by its id",
|
|
18052
|
+
deleteRecycleBinDocumentByIdParams.shape,
|
|
18053
|
+
async (params) => {
|
|
18054
|
+
const client = UmbracoManagementClient2.getClient();
|
|
18055
|
+
await client.deleteRecycleBinDocumentById(params.id);
|
|
18056
|
+
return {
|
|
18057
|
+
content: [
|
|
18058
|
+
{
|
|
18059
|
+
type: "text",
|
|
18060
|
+
text: JSON.stringify({ success: true, message: "Document permanently deleted from recycle bin" })
|
|
18061
|
+
}
|
|
18062
|
+
]
|
|
18063
|
+
};
|
|
18064
|
+
}
|
|
18065
|
+
);
|
|
18066
|
+
var delete_recycle_bin_item_default = DeleteDocumentRecycleBinItemTool;
|
|
18067
|
+
|
|
17094
18068
|
// src/umb-management-api/tools/document/get/get-document-by-id.ts
|
|
17095
18069
|
var GetDocumentByIdTool = CreateUmbracoTool(
|
|
17096
18070
|
"get-document-by-id",
|
|
@@ -17810,6 +18784,26 @@ var GetCollectionDocumentByIdTool = CreateUmbracoTool(
|
|
|
17810
18784
|
);
|
|
17811
18785
|
var get_collection_document_by_id_default = GetCollectionDocumentByIdTool;
|
|
17812
18786
|
|
|
18787
|
+
// src/umb-management-api/tools/document/get/get-item-document.ts
|
|
18788
|
+
var GetItemDocumentTool = CreateUmbracoTool(
|
|
18789
|
+
"get-item-document",
|
|
18790
|
+
"Gets document items by their ids",
|
|
18791
|
+
getItemDocumentQueryParams.shape,
|
|
18792
|
+
async (params) => {
|
|
18793
|
+
const client = UmbracoManagementClient2.getClient();
|
|
18794
|
+
const response = await client.getItemDocument(params);
|
|
18795
|
+
return {
|
|
18796
|
+
content: [
|
|
18797
|
+
{
|
|
18798
|
+
type: "text",
|
|
18799
|
+
text: JSON.stringify(response)
|
|
18800
|
+
}
|
|
18801
|
+
]
|
|
18802
|
+
};
|
|
18803
|
+
}
|
|
18804
|
+
);
|
|
18805
|
+
var get_item_document_default = GetItemDocumentTool;
|
|
18806
|
+
|
|
17813
18807
|
// src/umb-management-api/tools/document/get/get-document-are-referenced.ts
|
|
17814
18808
|
var GetDocumentAreReferencedTool = CreateUmbracoTool(
|
|
17815
18809
|
"get-document-are-referenced",
|
|
@@ -17886,6 +18880,37 @@ var GetDocumentByIdReferencedDescendantsTool = CreateUmbracoTool(
|
|
|
17886
18880
|
);
|
|
17887
18881
|
var get_document_by_id_referenced_descendants_default = GetDocumentByIdReferencedDescendantsTool;
|
|
17888
18882
|
|
|
18883
|
+
// src/umb-management-api/tools/document/get/get-document-available-segment-options.ts
|
|
18884
|
+
|
|
18885
|
+
var GetDocumentAvailableSegmentOptionsTool = CreateUmbracoTool(
|
|
18886
|
+
"get-document-available-segment-options",
|
|
18887
|
+
`Gets available segment options for a document by its id
|
|
18888
|
+
|
|
18889
|
+
Use this to retrieve the available segment options (content variations) for a document.
|
|
18890
|
+
|
|
18891
|
+
Useful for:
|
|
18892
|
+
\u2022 Understanding what content variations are available for a document
|
|
18893
|
+
\u2022 Determining which segments can be used when creating or editing document content
|
|
18894
|
+
\u2022 Viewing segment names, aliases, and associated cultures`,
|
|
18895
|
+
_zod.z.object({
|
|
18896
|
+
...getDocumentByIdAvailableSegmentOptionsParams.shape,
|
|
18897
|
+
...getDocumentByIdAvailableSegmentOptionsQueryParams.shape
|
|
18898
|
+
}).shape,
|
|
18899
|
+
async ({ id, skip, take }) => {
|
|
18900
|
+
const client = UmbracoManagementClient2.getClient();
|
|
18901
|
+
const response = await client.getDocumentByIdAvailableSegmentOptions(id, { skip, take });
|
|
18902
|
+
return {
|
|
18903
|
+
content: [
|
|
18904
|
+
{
|
|
18905
|
+
type: "text",
|
|
18906
|
+
text: JSON.stringify(response)
|
|
18907
|
+
}
|
|
18908
|
+
]
|
|
18909
|
+
};
|
|
18910
|
+
}
|
|
18911
|
+
);
|
|
18912
|
+
var get_document_available_segment_options_default = GetDocumentAvailableSegmentOptionsTool;
|
|
18913
|
+
|
|
17889
18914
|
// src/umb-management-api/tools/document/get/get-recycle-bin-document-original-parent.ts
|
|
17890
18915
|
var GetRecycleBinDocumentOriginalParentTool = CreateUmbracoTool(
|
|
17891
18916
|
"get-recycle-bin-document-original-parent",
|
|
@@ -18512,37 +19537,802 @@ var MoveDocumentToRecycleBinTool = CreateUmbracoTool(
|
|
|
18512
19537
|
}
|
|
18513
19538
|
]
|
|
18514
19539
|
};
|
|
18515
|
-
},
|
|
18516
|
-
(user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Delete)
|
|
18517
|
-
);
|
|
18518
|
-
var move_to_recycle_bin_default = MoveDocumentToRecycleBinTool;
|
|
18519
|
-
|
|
18520
|
-
// src/umb-management-api/tools/document/put/update-document.ts
|
|
18521
|
-
|
|
18522
|
-
var UpdateDocumentTool = CreateUmbracoTool(
|
|
18523
|
-
"update-document",
|
|
18524
|
-
`Updates a document by Id
|
|
18525
|
-
|
|
18526
|
-
|
|
18527
|
-
|
|
18528
|
-
|
|
18529
|
-
|
|
18530
|
-
|
|
18531
|
-
|
|
18532
|
-
|
|
18533
|
-
|
|
19540
|
+
},
|
|
19541
|
+
(user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Delete)
|
|
19542
|
+
);
|
|
19543
|
+
var move_to_recycle_bin_default = MoveDocumentToRecycleBinTool;
|
|
19544
|
+
|
|
19545
|
+
// src/umb-management-api/tools/document/put/update-document.ts
|
|
19546
|
+
|
|
19547
|
+
var UpdateDocumentTool = CreateUmbracoTool(
|
|
19548
|
+
"update-document",
|
|
19549
|
+
`Updates a document by Id. USE AS LAST RESORT ONLY.
|
|
19550
|
+
|
|
19551
|
+
IMPORTANT: Prefer these specialized tools instead:
|
|
19552
|
+
- update-document-properties: For updating individual property values (simpler, safer)
|
|
19553
|
+
- update-block-property: For updating properties within BlockList/BlockGrid/RichText blocks
|
|
19554
|
+
|
|
19555
|
+
Only use this tool when you need to update document-level metadata (template, variants)
|
|
19556
|
+
or when the specialized tools cannot handle your specific use case.
|
|
19557
|
+
|
|
19558
|
+
If you must use this tool:
|
|
19559
|
+
- Always read the current document value first
|
|
19560
|
+
- Only update the required values
|
|
19561
|
+
- Don't miss any properties from the original document`,
|
|
19562
|
+
{
|
|
19563
|
+
id: putDocumentByIdParams.shape.id,
|
|
19564
|
+
data: _zod.z.object(putDocumentByIdBody.shape)
|
|
19565
|
+
},
|
|
19566
|
+
async (model) => {
|
|
19567
|
+
const client = UmbracoManagementClient2.getClient();
|
|
19568
|
+
const response = await client.putDocumentById(model.id, model.data);
|
|
19569
|
+
return {
|
|
19570
|
+
content: [
|
|
19571
|
+
{
|
|
19572
|
+
type: "text",
|
|
19573
|
+
text: JSON.stringify(response)
|
|
19574
|
+
}
|
|
19575
|
+
]
|
|
19576
|
+
};
|
|
19577
|
+
},
|
|
19578
|
+
(user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Update)
|
|
19579
|
+
);
|
|
19580
|
+
var update_document_default = UpdateDocumentTool;
|
|
19581
|
+
|
|
19582
|
+
// src/umb-management-api/tools/document/put/update-document-properties.ts
|
|
19583
|
+
|
|
19584
|
+
|
|
19585
|
+
// src/umb-management-api/tools/document/put/helpers/document-type-properties-resolver.ts
|
|
19586
|
+
async function getAllDocumentTypeProperties(documentTypeId) {
|
|
19587
|
+
const client = UmbracoManagementClient2.getClient();
|
|
19588
|
+
const visitedIds = /* @__PURE__ */ new Set();
|
|
19589
|
+
const properties = [];
|
|
19590
|
+
async function resolveDocumentType(docTypeId) {
|
|
19591
|
+
if (visitedIds.has(docTypeId)) {
|
|
19592
|
+
return;
|
|
19593
|
+
}
|
|
19594
|
+
visitedIds.add(docTypeId);
|
|
19595
|
+
const docType = await client.getDocumentTypeById(docTypeId);
|
|
19596
|
+
for (const prop of docType.properties) {
|
|
19597
|
+
if (!properties.some((p) => p.alias === prop.alias)) {
|
|
19598
|
+
properties.push({
|
|
19599
|
+
alias: prop.alias,
|
|
19600
|
+
name: prop.name,
|
|
19601
|
+
dataTypeId: prop.dataType.id,
|
|
19602
|
+
variesByCulture: prop.variesByCulture,
|
|
19603
|
+
variesBySegment: prop.variesBySegment
|
|
19604
|
+
});
|
|
19605
|
+
}
|
|
19606
|
+
}
|
|
19607
|
+
for (const composition of docType.compositions) {
|
|
19608
|
+
await resolveDocumentType(composition.documentType.id);
|
|
19609
|
+
}
|
|
19610
|
+
}
|
|
19611
|
+
await resolveDocumentType(documentTypeId);
|
|
19612
|
+
return properties;
|
|
19613
|
+
}
|
|
19614
|
+
function validateCultureSegment(prop, def) {
|
|
19615
|
+
if (!def.variesByCulture && prop.culture) {
|
|
19616
|
+
return `Property '${prop.alias}' does not vary by culture, but culture '${prop.culture}' was provided`;
|
|
19617
|
+
}
|
|
19618
|
+
if (def.variesByCulture && !prop.culture) {
|
|
19619
|
+
return `Property '${prop.alias}' varies by culture - culture is required`;
|
|
19620
|
+
}
|
|
19621
|
+
if (!def.variesBySegment && prop.segment) {
|
|
19622
|
+
return `Property '${prop.alias}' does not vary by segment, but segment '${prop.segment}' was provided`;
|
|
19623
|
+
}
|
|
19624
|
+
if (def.variesBySegment && !prop.segment) {
|
|
19625
|
+
return `Property '${prop.alias}' varies by segment - segment is required`;
|
|
19626
|
+
}
|
|
19627
|
+
return null;
|
|
19628
|
+
}
|
|
19629
|
+
|
|
19630
|
+
// src/umb-management-api/tools/document/put/helpers/property-value-validator.ts
|
|
19631
|
+
var EDITOR_FORMAT_MAP = {
|
|
19632
|
+
// Editors with allowed values validation
|
|
19633
|
+
"Umbraco.DropDown.Flexible": { valueType: "string[]", allowedValuesKey: "items", validateAllowedValues: true },
|
|
19634
|
+
"Umbraco.RadioButtonList": { valueType: "string", allowedValuesKey: "items", validateAllowedValues: true },
|
|
19635
|
+
"Umbraco.CheckBoxList": { valueType: "string[]", allowedValuesKey: "items", validateAllowedValues: true },
|
|
19636
|
+
"Umbraco.ColorPicker": { valueType: "object", allowedValuesKey: "items", validateAllowedValues: true },
|
|
19637
|
+
// Editors with format-only validation
|
|
19638
|
+
"Umbraco.TextBox": { valueType: "string" },
|
|
19639
|
+
"Umbraco.TextArea": { valueType: "string" },
|
|
19640
|
+
"Umbraco.Integer": { valueType: "number" },
|
|
19641
|
+
"Umbraco.Decimal": { valueType: "number" },
|
|
19642
|
+
"Umbraco.TrueFalse": { valueType: "boolean" },
|
|
19643
|
+
"Umbraco.Tags": { valueType: "string[]" },
|
|
19644
|
+
"Umbraco.MultipleTextstring": { valueType: "string[]" },
|
|
19645
|
+
"Umbraco.DateTime": { valueType: "string" },
|
|
19646
|
+
"Umbraco.EmailAddress": { valueType: "string" },
|
|
19647
|
+
"Umbraco.MarkdownEditor": { valueType: "string" },
|
|
19648
|
+
"Umbraco.ColorPicker.EyeDropper": { valueType: "string" }
|
|
19649
|
+
};
|
|
19650
|
+
function validateValueType(value, expectedType, propertyAlias, editorAlias) {
|
|
19651
|
+
if (value === null || value === void 0) {
|
|
19652
|
+
return null;
|
|
19653
|
+
}
|
|
19654
|
+
switch (expectedType) {
|
|
19655
|
+
case "string":
|
|
19656
|
+
if (typeof value !== "string") {
|
|
19657
|
+
return `Property '${propertyAlias}': Value must be a string for ${editorAlias} editor, got ${typeof value}`;
|
|
19658
|
+
}
|
|
19659
|
+
break;
|
|
19660
|
+
case "string[]":
|
|
19661
|
+
if (!Array.isArray(value)) {
|
|
19662
|
+
return `Property '${propertyAlias}': Value must be an array for ${editorAlias} editor, got ${typeof value}`;
|
|
19663
|
+
}
|
|
19664
|
+
if (!value.every((item) => typeof item === "string")) {
|
|
19665
|
+
return `Property '${propertyAlias}': All array items must be strings for ${editorAlias} editor`;
|
|
19666
|
+
}
|
|
19667
|
+
break;
|
|
19668
|
+
case "number":
|
|
19669
|
+
if (typeof value !== "number") {
|
|
19670
|
+
return `Property '${propertyAlias}': Value must be a number for ${editorAlias} editor, got ${typeof value}`;
|
|
19671
|
+
}
|
|
19672
|
+
break;
|
|
19673
|
+
case "boolean":
|
|
19674
|
+
if (typeof value !== "boolean") {
|
|
19675
|
+
return `Property '${propertyAlias}': Value must be a boolean for ${editorAlias} editor, got ${typeof value}`;
|
|
19676
|
+
}
|
|
19677
|
+
break;
|
|
19678
|
+
case "object":
|
|
19679
|
+
if (typeof value !== "object" || Array.isArray(value)) {
|
|
19680
|
+
return `Property '${propertyAlias}': Value must be an object for ${editorAlias} editor, got ${Array.isArray(value) ? "array" : typeof value}`;
|
|
19681
|
+
}
|
|
19682
|
+
break;
|
|
19683
|
+
}
|
|
19684
|
+
return null;
|
|
19685
|
+
}
|
|
19686
|
+
function extractAllowedValues(dataType, configKey) {
|
|
19687
|
+
const configItem = dataType.values.find((v) => v.alias === configKey);
|
|
19688
|
+
if (!configItem || !configItem.value) {
|
|
19689
|
+
return null;
|
|
19690
|
+
}
|
|
19691
|
+
const value = configItem.value;
|
|
19692
|
+
if (Array.isArray(value)) {
|
|
19693
|
+
if (value.every((item) => typeof item === "string")) {
|
|
19694
|
+
return value;
|
|
19695
|
+
}
|
|
19696
|
+
if (value.every((item) => typeof item === "object" && item !== null && "value" in item)) {
|
|
19697
|
+
return value.map((item) => item.value);
|
|
19698
|
+
}
|
|
19699
|
+
}
|
|
19700
|
+
return null;
|
|
19701
|
+
}
|
|
19702
|
+
function validateAllowedValues(value, allowedValues, propertyAlias, editorAlias, valueType) {
|
|
19703
|
+
const errors = [];
|
|
19704
|
+
if (value === null || value === void 0) {
|
|
19705
|
+
return errors;
|
|
19706
|
+
}
|
|
19707
|
+
if (editorAlias === "Umbraco.ColorPicker" && typeof value === "object" && value !== null && "value" in value) {
|
|
19708
|
+
const colorValue = value.value;
|
|
19709
|
+
if (!allowedValues.includes(colorValue)) {
|
|
19710
|
+
errors.push(`Property '${propertyAlias}': Color value '${colorValue}' is not in allowed values: [${allowedValues.map((v) => `'${v}'`).join(", ")}]`);
|
|
19711
|
+
}
|
|
19712
|
+
return errors;
|
|
19713
|
+
}
|
|
19714
|
+
if (valueType === "string[]" && Array.isArray(value)) {
|
|
19715
|
+
for (const item of value) {
|
|
19716
|
+
if (!allowedValues.includes(item)) {
|
|
19717
|
+
errors.push(`Property '${propertyAlias}': Value '${item}' is not in allowed values: [${allowedValues.map((v) => `'${v}'`).join(", ")}]`);
|
|
19718
|
+
}
|
|
19719
|
+
}
|
|
19720
|
+
return errors;
|
|
19721
|
+
}
|
|
19722
|
+
if (valueType === "string" && typeof value === "string") {
|
|
19723
|
+
if (!allowedValues.includes(value)) {
|
|
19724
|
+
errors.push(`Property '${propertyAlias}': Value '${value}' is not in allowed values: [${allowedValues.map((v) => `'${v}'`).join(", ")}]`);
|
|
19725
|
+
}
|
|
19726
|
+
return errors;
|
|
19727
|
+
}
|
|
19728
|
+
return errors;
|
|
19729
|
+
}
|
|
19730
|
+
function validatePropertyValue(dataType, value, propertyAlias) {
|
|
19731
|
+
const errors = [];
|
|
19732
|
+
const editorAlias = dataType.editorAlias;
|
|
19733
|
+
const formatConfig = EDITOR_FORMAT_MAP[editorAlias];
|
|
19734
|
+
if (!formatConfig) {
|
|
19735
|
+
return { isValid: true, errors: [] };
|
|
19736
|
+
}
|
|
19737
|
+
const typeError = validateValueType(value, formatConfig.valueType, propertyAlias, editorAlias);
|
|
19738
|
+
if (typeError) {
|
|
19739
|
+
errors.push(typeError);
|
|
19740
|
+
return { isValid: false, errors };
|
|
19741
|
+
}
|
|
19742
|
+
if (formatConfig.validateAllowedValues && formatConfig.allowedValuesKey) {
|
|
19743
|
+
const allowedValues = extractAllowedValues(dataType, formatConfig.allowedValuesKey);
|
|
19744
|
+
if (allowedValues && allowedValues.length > 0) {
|
|
19745
|
+
const allowedValueErrors = validateAllowedValues(
|
|
19746
|
+
value,
|
|
19747
|
+
allowedValues,
|
|
19748
|
+
propertyAlias,
|
|
19749
|
+
editorAlias,
|
|
19750
|
+
formatConfig.valueType
|
|
19751
|
+
);
|
|
19752
|
+
errors.push(...allowedValueErrors);
|
|
19753
|
+
}
|
|
19754
|
+
}
|
|
19755
|
+
return {
|
|
19756
|
+
isValid: errors.length === 0,
|
|
19757
|
+
errors
|
|
19758
|
+
};
|
|
19759
|
+
}
|
|
19760
|
+
async function validatePropertiesBeforeSave(properties) {
|
|
19761
|
+
const client = UmbracoManagementClient2.getClient();
|
|
19762
|
+
const errors = [];
|
|
19763
|
+
const dataTypeCache = /* @__PURE__ */ new Map();
|
|
19764
|
+
async function getCachedDataType(dataTypeId) {
|
|
19765
|
+
if (!dataTypeCache.has(dataTypeId)) {
|
|
19766
|
+
try {
|
|
19767
|
+
const dataType = await client.getDataTypeById(dataTypeId);
|
|
19768
|
+
dataTypeCache.set(dataTypeId, dataType);
|
|
19769
|
+
} catch (error) {
|
|
19770
|
+
console.error(`Failed to fetch Data Type ${dataTypeId}:`, error);
|
|
19771
|
+
return null;
|
|
19772
|
+
}
|
|
19773
|
+
}
|
|
19774
|
+
return _nullishCoalesce(dataTypeCache.get(dataTypeId), () => ( null));
|
|
19775
|
+
}
|
|
19776
|
+
for (const prop of properties) {
|
|
19777
|
+
if (!prop.dataTypeId) {
|
|
19778
|
+
continue;
|
|
19779
|
+
}
|
|
19780
|
+
const dataType = await getCachedDataType(prop.dataTypeId);
|
|
19781
|
+
if (!dataType) {
|
|
19782
|
+
continue;
|
|
19783
|
+
}
|
|
19784
|
+
const validation = validatePropertyValue(dataType, prop.value, prop.alias);
|
|
19785
|
+
if (!validation.isValid) {
|
|
19786
|
+
errors.push(...validation.errors);
|
|
19787
|
+
}
|
|
19788
|
+
}
|
|
19789
|
+
return {
|
|
19790
|
+
isValid: errors.length === 0,
|
|
19791
|
+
errors
|
|
19792
|
+
};
|
|
19793
|
+
}
|
|
19794
|
+
|
|
19795
|
+
// src/umb-management-api/tools/document/put/helpers/property-matching.ts
|
|
19796
|
+
function matchesProperty(value, alias, culture, segment) {
|
|
19797
|
+
return value.alias === alias && (_nullishCoalesce(value.culture, () => ( null))) === (_nullishCoalesce(culture, () => ( null))) && (_nullishCoalesce(value.segment, () => ( null))) === (_nullishCoalesce(segment, () => ( null)));
|
|
19798
|
+
}
|
|
19799
|
+
function getPropertyKey(alias, culture, segment) {
|
|
19800
|
+
let key = alias;
|
|
19801
|
+
if (culture) key += `[${culture}]`;
|
|
19802
|
+
if (segment) key += `[${segment}]`;
|
|
19803
|
+
return key;
|
|
19804
|
+
}
|
|
19805
|
+
|
|
19806
|
+
// src/umb-management-api/tools/document/put/update-document-properties.ts
|
|
19807
|
+
var propertySchema2 = _zod.z.object({
|
|
19808
|
+
alias: _zod.z.string().min(1).describe("The property alias to update or add"),
|
|
19809
|
+
value: _zod.z.any().nullish().describe("The new value for the property"),
|
|
19810
|
+
culture: _zod.z.string().nullish().describe("Optional culture code for variant properties (e.g., 'en-US')"),
|
|
19811
|
+
segment: _zod.z.string().nullish().describe("Optional segment identifier for variant properties")
|
|
19812
|
+
});
|
|
19813
|
+
var updateDocumentPropertiesSchema = {
|
|
19814
|
+
id: _zod.z.string().uuid().describe("The unique identifier of the document to update"),
|
|
19815
|
+
properties: _zod.z.array(propertySchema2).min(1).describe("Array of properties to update or add - at least one property is required")
|
|
19816
|
+
};
|
|
19817
|
+
var UpdateDocumentPropertiesTool = CreateUmbracoTool(
|
|
19818
|
+
"update-document-properties",
|
|
19819
|
+
`Updates or adds property values on a document without requiring the full document JSON payload.
|
|
19820
|
+
|
|
19821
|
+
This tool simplifies property updates by handling the read-modify-write cycle internally.
|
|
19822
|
+
You can update existing properties, add new properties, or do both in a single call.
|
|
19823
|
+
|
|
19824
|
+
Key features:
|
|
19825
|
+
- Update existing properties or add new ones
|
|
19826
|
+
- Property must exist on the document type (including compositions)
|
|
19827
|
+
- Full i18n support with culture and segment parameters
|
|
19828
|
+
- Automatic validation of property aliases against document type
|
|
19829
|
+
- Culture/segment requirements validated against property variance flags
|
|
19830
|
+
- Returns detailed error messages with available properties
|
|
19831
|
+
|
|
19832
|
+
Example usage:
|
|
19833
|
+
- Update a single property: { id: "...", properties: [{ alias: "title", value: "New Title" }] }
|
|
19834
|
+
- Add a new property: { id: "...", properties: [{ alias: "author", value: "John Doe" }] }
|
|
19835
|
+
- Update with culture: { id: "...", properties: [{ alias: "title", value: "Nuevo T\xEDtulo", culture: "es-ES" }] }
|
|
19836
|
+
- Mix update and add: { id: "...", properties: [{ alias: "title", value: "New" }, { alias: "newProp", value: "Value" }] }`,
|
|
19837
|
+
updateDocumentPropertiesSchema,
|
|
19838
|
+
async (model) => {
|
|
19839
|
+
const client = UmbracoManagementClient2.getClient();
|
|
19840
|
+
const currentDocument = await client.getDocumentById(model.id);
|
|
19841
|
+
const invalidAliases = [];
|
|
19842
|
+
const varianceErrors = [];
|
|
19843
|
+
const propertiesToUpdate = [];
|
|
19844
|
+
const propertiesToAdd = [];
|
|
19845
|
+
let documentTypeProperties = null;
|
|
19846
|
+
const getDocumentTypeProperties = async () => {
|
|
19847
|
+
if (documentTypeProperties === null) {
|
|
19848
|
+
try {
|
|
19849
|
+
documentTypeProperties = await getAllDocumentTypeProperties(currentDocument.documentType.id);
|
|
19850
|
+
} catch (error) {
|
|
19851
|
+
console.error("Failed to fetch document type properties:", error);
|
|
19852
|
+
documentTypeProperties = [];
|
|
19853
|
+
}
|
|
19854
|
+
}
|
|
19855
|
+
return documentTypeProperties;
|
|
19856
|
+
};
|
|
19857
|
+
for (const prop of model.properties) {
|
|
19858
|
+
const existsOnDocument = currentDocument.values.some(
|
|
19859
|
+
(v) => matchesProperty(v, prop.alias, prop.culture, prop.segment)
|
|
19860
|
+
);
|
|
19861
|
+
if (existsOnDocument) {
|
|
19862
|
+
propertiesToUpdate.push({
|
|
19863
|
+
alias: prop.alias,
|
|
19864
|
+
value: prop.value,
|
|
19865
|
+
culture: prop.culture,
|
|
19866
|
+
segment: prop.segment
|
|
19867
|
+
});
|
|
19868
|
+
} else {
|
|
19869
|
+
const docTypeProperties = await getDocumentTypeProperties();
|
|
19870
|
+
const propertyDef = docTypeProperties.find((p) => p.alias === prop.alias);
|
|
19871
|
+
if (propertyDef) {
|
|
19872
|
+
const validationError = validateCultureSegment(prop, propertyDef);
|
|
19873
|
+
if (validationError) {
|
|
19874
|
+
varianceErrors.push(validationError);
|
|
19875
|
+
} else {
|
|
19876
|
+
propertiesToAdd.push({
|
|
19877
|
+
alias: prop.alias,
|
|
19878
|
+
value: prop.value,
|
|
19879
|
+
culture: prop.culture,
|
|
19880
|
+
segment: prop.segment
|
|
19881
|
+
});
|
|
19882
|
+
}
|
|
19883
|
+
} else if (docTypeProperties.length > 0) {
|
|
19884
|
+
invalidAliases.push(getPropertyKey(prop.alias, prop.culture, prop.segment));
|
|
19885
|
+
} else {
|
|
19886
|
+
invalidAliases.push(getPropertyKey(prop.alias, prop.culture, prop.segment));
|
|
19887
|
+
}
|
|
19888
|
+
}
|
|
19889
|
+
}
|
|
19890
|
+
if (varianceErrors.length > 0) {
|
|
19891
|
+
return {
|
|
19892
|
+
content: [{
|
|
19893
|
+
type: "text",
|
|
19894
|
+
text: JSON.stringify({
|
|
19895
|
+
success: false,
|
|
19896
|
+
error: "Culture/segment validation failed",
|
|
19897
|
+
message: varianceErrors.join("; "),
|
|
19898
|
+
errors: varianceErrors,
|
|
19899
|
+
availableProperties: (_nullishCoalesce(documentTypeProperties, () => ( []))).map((p) => ({
|
|
19900
|
+
alias: p.alias,
|
|
19901
|
+
name: p.name,
|
|
19902
|
+
variesByCulture: p.variesByCulture,
|
|
19903
|
+
variesBySegment: p.variesBySegment
|
|
19904
|
+
}))
|
|
19905
|
+
}, null, 2)
|
|
19906
|
+
}]
|
|
19907
|
+
};
|
|
19908
|
+
}
|
|
19909
|
+
if (invalidAliases.length > 0) {
|
|
19910
|
+
const docTypeProps = _nullishCoalesce(documentTypeProperties, () => ( []));
|
|
19911
|
+
const availableProperties = docTypeProps.length > 0 ? docTypeProps.map((p) => ({
|
|
19912
|
+
alias: p.alias,
|
|
19913
|
+
name: p.name,
|
|
19914
|
+
variesByCulture: p.variesByCulture,
|
|
19915
|
+
variesBySegment: p.variesBySegment
|
|
19916
|
+
})) : currentDocument.values.map((v) => ({
|
|
19917
|
+
alias: v.alias,
|
|
19918
|
+
culture: _nullishCoalesce(v.culture, () => ( null)),
|
|
19919
|
+
segment: _nullishCoalesce(v.segment, () => ( null)),
|
|
19920
|
+
editorAlias: v.editorAlias
|
|
19921
|
+
}));
|
|
19922
|
+
return {
|
|
19923
|
+
content: [{
|
|
19924
|
+
type: "text",
|
|
19925
|
+
text: JSON.stringify({
|
|
19926
|
+
success: false,
|
|
19927
|
+
error: "Invalid property aliases",
|
|
19928
|
+
message: `The following properties do not exist on this document type: ${invalidAliases.join(", ")}`,
|
|
19929
|
+
invalidAliases,
|
|
19930
|
+
availableProperties
|
|
19931
|
+
}, null, 2)
|
|
19932
|
+
}]
|
|
19933
|
+
};
|
|
19934
|
+
}
|
|
19935
|
+
const allPropertiesToValidate = [...propertiesToUpdate, ...propertiesToAdd];
|
|
19936
|
+
if (allPropertiesToValidate.length > 0) {
|
|
19937
|
+
const docTypeProps = await getDocumentTypeProperties();
|
|
19938
|
+
const propsToValidate = allPropertiesToValidate.map((p) => {
|
|
19939
|
+
const def = docTypeProps.find((d) => d.alias === p.alias);
|
|
19940
|
+
return { alias: p.alias, value: p.value, dataTypeId: _nullishCoalesce(_optionalChain([def, 'optionalAccess', _50 => _50.dataTypeId]), () => ( "")) };
|
|
19941
|
+
}).filter((p) => p.dataTypeId);
|
|
19942
|
+
if (propsToValidate.length > 0) {
|
|
19943
|
+
const valueValidation = await validatePropertiesBeforeSave(propsToValidate);
|
|
19944
|
+
if (!valueValidation.isValid) {
|
|
19945
|
+
return {
|
|
19946
|
+
content: [{
|
|
19947
|
+
type: "text",
|
|
19948
|
+
text: JSON.stringify({
|
|
19949
|
+
success: false,
|
|
19950
|
+
error: "Property value validation failed",
|
|
19951
|
+
errors: valueValidation.errors
|
|
19952
|
+
}, null, 2)
|
|
19953
|
+
}]
|
|
19954
|
+
};
|
|
19955
|
+
}
|
|
19956
|
+
}
|
|
19957
|
+
}
|
|
19958
|
+
const updatedValues = currentDocument.values.map((existingValue) => {
|
|
19959
|
+
const updateProp = propertiesToUpdate.find(
|
|
19960
|
+
(p) => matchesProperty(existingValue, p.alias, p.culture, p.segment)
|
|
19961
|
+
);
|
|
19962
|
+
if (updateProp) {
|
|
19963
|
+
return {
|
|
19964
|
+
alias: existingValue.alias,
|
|
19965
|
+
culture: existingValue.culture,
|
|
19966
|
+
segment: existingValue.segment,
|
|
19967
|
+
value: updateProp.value
|
|
19968
|
+
};
|
|
19969
|
+
}
|
|
19970
|
+
return {
|
|
19971
|
+
alias: existingValue.alias,
|
|
19972
|
+
culture: existingValue.culture,
|
|
19973
|
+
segment: existingValue.segment,
|
|
19974
|
+
value: existingValue.value
|
|
19975
|
+
};
|
|
19976
|
+
});
|
|
19977
|
+
for (const newProp of propertiesToAdd) {
|
|
19978
|
+
updatedValues.push({
|
|
19979
|
+
alias: newProp.alias,
|
|
19980
|
+
culture: _nullishCoalesce(newProp.culture, () => ( null)),
|
|
19981
|
+
segment: _nullishCoalesce(newProp.segment, () => ( null)),
|
|
19982
|
+
value: newProp.value
|
|
19983
|
+
});
|
|
19984
|
+
}
|
|
19985
|
+
const variants = currentDocument.variants.map((v) => ({
|
|
19986
|
+
culture: v.culture,
|
|
19987
|
+
segment: v.segment,
|
|
19988
|
+
name: v.name
|
|
19989
|
+
}));
|
|
19990
|
+
const updatePayload = {
|
|
19991
|
+
values: updatedValues,
|
|
19992
|
+
variants,
|
|
19993
|
+
template: currentDocument.template
|
|
19994
|
+
};
|
|
19995
|
+
await client.putDocumentById(model.id, updatePayload);
|
|
19996
|
+
const updatedDocument = await client.getDocumentById(model.id);
|
|
19997
|
+
const updatedPropertyKeys = propertiesToUpdate.map(
|
|
19998
|
+
(p) => getPropertyKey(p.alias, p.culture, p.segment)
|
|
19999
|
+
);
|
|
20000
|
+
const addedPropertyKeys = propertiesToAdd.map(
|
|
20001
|
+
(p) => getPropertyKey(p.alias, p.culture, p.segment)
|
|
20002
|
+
);
|
|
20003
|
+
const totalCount = propertiesToUpdate.length + propertiesToAdd.length;
|
|
20004
|
+
let message = `Successfully processed ${totalCount} property value(s)`;
|
|
20005
|
+
if (propertiesToUpdate.length > 0 && propertiesToAdd.length > 0) {
|
|
20006
|
+
message = `Successfully updated ${propertiesToUpdate.length} and added ${propertiesToAdd.length} property value(s)`;
|
|
20007
|
+
} else if (propertiesToAdd.length > 0) {
|
|
20008
|
+
message = `Successfully added ${propertiesToAdd.length} property value(s)`;
|
|
20009
|
+
} else {
|
|
20010
|
+
message = `Successfully updated ${propertiesToUpdate.length} property value(s)`;
|
|
20011
|
+
}
|
|
20012
|
+
return {
|
|
20013
|
+
content: [{
|
|
20014
|
+
type: "text",
|
|
20015
|
+
text: JSON.stringify({
|
|
20016
|
+
success: true,
|
|
20017
|
+
message,
|
|
20018
|
+
updatedProperties: updatedPropertyKeys,
|
|
20019
|
+
addedProperties: addedPropertyKeys,
|
|
20020
|
+
document: updatedDocument
|
|
20021
|
+
}, null, 2)
|
|
20022
|
+
}]
|
|
20023
|
+
};
|
|
20024
|
+
},
|
|
20025
|
+
(user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Update)
|
|
20026
|
+
);
|
|
20027
|
+
var update_document_properties_default = UpdateDocumentPropertiesTool;
|
|
20028
|
+
|
|
20029
|
+
// src/umb-management-api/tools/document/put/update-block-property.ts
|
|
20030
|
+
|
|
20031
|
+
|
|
20032
|
+
// src/umb-management-api/tools/document/put/helpers/block-discovery.ts
|
|
20033
|
+
function isRichTextValue(value) {
|
|
20034
|
+
if (!value || typeof value !== "object") {
|
|
20035
|
+
return false;
|
|
20036
|
+
}
|
|
20037
|
+
if (!("markup" in value)) {
|
|
20038
|
+
return false;
|
|
20039
|
+
}
|
|
20040
|
+
if (!value.blocks || typeof value.blocks !== "object") {
|
|
20041
|
+
return false;
|
|
20042
|
+
}
|
|
20043
|
+
return Array.isArray(value.blocks.contentData) && Array.isArray(value.blocks.settingsData);
|
|
20044
|
+
}
|
|
20045
|
+
function isBlockStructure(value) {
|
|
20046
|
+
if (!value || typeof value !== "object") {
|
|
20047
|
+
return false;
|
|
20048
|
+
}
|
|
20049
|
+
return Array.isArray(value.contentData) && Array.isArray(value.settingsData);
|
|
20050
|
+
}
|
|
20051
|
+
function discoverAllBlockArrays(value, path4 = "root") {
|
|
20052
|
+
const results = [];
|
|
20053
|
+
if (!value || typeof value !== "object") {
|
|
20054
|
+
return results;
|
|
20055
|
+
}
|
|
20056
|
+
if (isRichTextValue(value)) {
|
|
20057
|
+
const nestedResults = discoverAllBlockArrays(value.blocks, `${path4}.blocks`);
|
|
20058
|
+
results.push(...nestedResults);
|
|
20059
|
+
return results;
|
|
20060
|
+
}
|
|
20061
|
+
if (isBlockStructure(value)) {
|
|
20062
|
+
results.push({
|
|
20063
|
+
contentData: value.contentData,
|
|
20064
|
+
settingsData: value.settingsData,
|
|
20065
|
+
path: path4
|
|
20066
|
+
});
|
|
20067
|
+
value.contentData.forEach((block, index) => {
|
|
20068
|
+
if (block.values && Array.isArray(block.values)) {
|
|
20069
|
+
block.values.forEach((prop, propIndex) => {
|
|
20070
|
+
const propPath = `${path4}.contentData[${index}].values[${propIndex}](${prop.alias})`;
|
|
20071
|
+
if (isRichTextValue(prop.value)) {
|
|
20072
|
+
const nestedResults = discoverAllBlockArrays(prop.value.blocks, `${propPath}.blocks`);
|
|
20073
|
+
results.push(...nestedResults);
|
|
20074
|
+
} else if (isBlockStructure(prop.value)) {
|
|
20075
|
+
const nestedResults = discoverAllBlockArrays(prop.value, propPath);
|
|
20076
|
+
results.push(...nestedResults);
|
|
20077
|
+
}
|
|
20078
|
+
});
|
|
20079
|
+
}
|
|
20080
|
+
});
|
|
20081
|
+
value.settingsData.forEach((block, index) => {
|
|
20082
|
+
if (block.values && Array.isArray(block.values)) {
|
|
20083
|
+
block.values.forEach((prop, propIndex) => {
|
|
20084
|
+
const propPath = `${path4}.settingsData[${index}].values[${propIndex}](${prop.alias})`;
|
|
20085
|
+
if (isRichTextValue(prop.value)) {
|
|
20086
|
+
const nestedResults = discoverAllBlockArrays(prop.value.blocks, `${propPath}.blocks`);
|
|
20087
|
+
results.push(...nestedResults);
|
|
20088
|
+
} else if (isBlockStructure(prop.value)) {
|
|
20089
|
+
const nestedResults = discoverAllBlockArrays(prop.value, propPath);
|
|
20090
|
+
results.push(...nestedResults);
|
|
20091
|
+
}
|
|
20092
|
+
});
|
|
20093
|
+
}
|
|
20094
|
+
});
|
|
20095
|
+
}
|
|
20096
|
+
return results;
|
|
20097
|
+
}
|
|
20098
|
+
function findBlockByKey(discoveredArrays, contentKey, blockType) {
|
|
20099
|
+
for (const discovered of discoveredArrays) {
|
|
20100
|
+
const array = blockType === "content" ? discovered.contentData : discovered.settingsData;
|
|
20101
|
+
const block = array.find((b) => b.key === contentKey);
|
|
20102
|
+
if (block) {
|
|
20103
|
+
return { block, arrayRef: array, path: discovered.path };
|
|
20104
|
+
}
|
|
20105
|
+
}
|
|
20106
|
+
return null;
|
|
20107
|
+
}
|
|
20108
|
+
|
|
20109
|
+
// src/umb-management-api/tools/document/put/update-block-property.ts
|
|
20110
|
+
var blockPropertyUpdateSchema = _zod.z.object({
|
|
20111
|
+
alias: _zod.z.string().min(1).describe("The property alias within the block to update"),
|
|
20112
|
+
value: _zod.z.any().nullish().describe("The new value for the property"),
|
|
20113
|
+
culture: _zod.z.string().nullish().describe("Optional culture code for variant block properties"),
|
|
20114
|
+
segment: _zod.z.string().nullish().describe("Optional segment identifier for variant block properties")
|
|
20115
|
+
});
|
|
20116
|
+
var blockUpdateSchema = _zod.z.object({
|
|
20117
|
+
contentKey: _zod.z.string().uuid().describe("The unique key (UUID) identifying the block"),
|
|
20118
|
+
blockType: _zod.z.enum(["content", "settings"]).describe("'content' for contentData, 'settings' for settingsData"),
|
|
20119
|
+
properties: _zod.z.array(blockPropertyUpdateSchema).min(1).describe("Properties to update within this block")
|
|
20120
|
+
});
|
|
20121
|
+
var updateBlockPropertySchema = {
|
|
20122
|
+
documentId: _zod.z.string().uuid().describe("The document containing the block"),
|
|
20123
|
+
propertyAlias: _zod.z.string().min(1).describe("Document property alias containing BlockList/BlockGrid"),
|
|
20124
|
+
culture: _zod.z.string().nullish().describe("Optional culture for variant document properties"),
|
|
20125
|
+
segment: _zod.z.string().nullish().describe("Optional segment for variant document properties"),
|
|
20126
|
+
updates: _zod.z.array(blockUpdateSchema).min(1).describe("Array of block updates")
|
|
20127
|
+
};
|
|
20128
|
+
var UpdateBlockPropertyTool = CreateUmbracoTool(
|
|
20129
|
+
"update-block-property",
|
|
20130
|
+
`Updates or adds property values within BlockList, BlockGrid, or RichText block content.
|
|
20131
|
+
|
|
20132
|
+
This tool enables targeted updates to individual block properties without sending the entire JSON payload.
|
|
20133
|
+
You can update existing properties, add new properties, or do both in a single call.
|
|
20134
|
+
It automatically handles deep traversal of nested block structures (e.g., RichText blocks containing nested blocks).
|
|
20135
|
+
|
|
20136
|
+
Key features:
|
|
20137
|
+
- Update existing properties or add new ones to blocks
|
|
20138
|
+
- Property must exist on the Element Type (including compositions)
|
|
20139
|
+
- Support for both content and settings blocks
|
|
20140
|
+
- Batch updates to multiple blocks in a single call
|
|
20141
|
+
- Deep traversal of nested block structures
|
|
20142
|
+
- Full i18n support with culture and segment parameters
|
|
20143
|
+
- Culture/segment requirements validated against property variance flags
|
|
20144
|
+
|
|
20145
|
+
Example usage:
|
|
20146
|
+
- Update a block property: { documentId: "...", propertyAlias: "mainContent", updates: [{ contentKey: "block-uuid", blockType: "content", properties: [{ alias: "title", value: "New Title" }] }] }
|
|
20147
|
+
- Add a new property to block: { documentId: "...", propertyAlias: "mainContent", updates: [{ contentKey: "block-uuid", blockType: "content", properties: [{ alias: "newProp", value: "Value" }] }] }
|
|
20148
|
+
- Update with culture: { documentId: "...", propertyAlias: "mainContent", culture: "es-ES", updates: [...] }
|
|
20149
|
+
- Batch update multiple blocks: { documentId: "...", propertyAlias: "mainContent", updates: [{ contentKey: "uuid1", ... }, { contentKey: "uuid2", ... }] }`,
|
|
20150
|
+
updateBlockPropertySchema,
|
|
20151
|
+
async (model) => {
|
|
20152
|
+
const client = UmbracoManagementClient2.getClient();
|
|
20153
|
+
const currentDocument = await client.getDocumentById(model.documentId);
|
|
20154
|
+
const documentProperty = currentDocument.values.find(
|
|
20155
|
+
(v) => matchesProperty(v, model.propertyAlias, model.culture, model.segment)
|
|
20156
|
+
);
|
|
20157
|
+
if (!documentProperty) {
|
|
20158
|
+
const availableAliases = currentDocument.values.map((v) => ({
|
|
20159
|
+
alias: v.alias,
|
|
20160
|
+
culture: _nullishCoalesce(v.culture, () => ( null)),
|
|
20161
|
+
segment: _nullishCoalesce(v.segment, () => ( null)),
|
|
20162
|
+
editorAlias: v.editorAlias
|
|
20163
|
+
}));
|
|
20164
|
+
return {
|
|
20165
|
+
content: [{
|
|
20166
|
+
type: "text",
|
|
20167
|
+
text: JSON.stringify({
|
|
20168
|
+
success: false,
|
|
20169
|
+
error: "Property not found",
|
|
20170
|
+
message: `Property '${getPropertyKey(model.propertyAlias, model.culture, model.segment)}' does not exist on this document`,
|
|
20171
|
+
availableProperties: availableAliases
|
|
20172
|
+
}, null, 2)
|
|
20173
|
+
}]
|
|
20174
|
+
};
|
|
20175
|
+
}
|
|
20176
|
+
const discoveredArrays = discoverAllBlockArrays(documentProperty.value, `property(${model.propertyAlias})`);
|
|
20177
|
+
if (discoveredArrays.length === 0) {
|
|
20178
|
+
return {
|
|
20179
|
+
content: [{
|
|
20180
|
+
type: "text",
|
|
20181
|
+
text: JSON.stringify({
|
|
20182
|
+
success: false,
|
|
20183
|
+
error: "No block structure found",
|
|
20184
|
+
message: `Property '${model.propertyAlias}' does not contain a BlockList, BlockGrid, or RichText block structure`,
|
|
20185
|
+
propertyValue: documentProperty.value
|
|
20186
|
+
}, null, 2)
|
|
20187
|
+
}]
|
|
20188
|
+
};
|
|
20189
|
+
}
|
|
20190
|
+
const results = [];
|
|
20191
|
+
const notFoundBlocks = [];
|
|
20192
|
+
const elementTypePropertiesCache = /* @__PURE__ */ new Map();
|
|
20193
|
+
const getElementTypeProperties = async (contentTypeKey) => {
|
|
20194
|
+
if (!elementTypePropertiesCache.has(contentTypeKey)) {
|
|
20195
|
+
try {
|
|
20196
|
+
const properties = await getAllDocumentTypeProperties(contentTypeKey);
|
|
20197
|
+
elementTypePropertiesCache.set(contentTypeKey, properties);
|
|
20198
|
+
} catch (error) {
|
|
20199
|
+
console.error(`Failed to fetch Element Type properties for ${contentTypeKey}:`, error);
|
|
20200
|
+
elementTypePropertiesCache.set(contentTypeKey, []);
|
|
20201
|
+
}
|
|
20202
|
+
}
|
|
20203
|
+
return elementTypePropertiesCache.get(contentTypeKey);
|
|
20204
|
+
};
|
|
20205
|
+
for (const update of model.updates) {
|
|
20206
|
+
const foundBlock = findBlockByKey(discoveredArrays, update.contentKey, update.blockType);
|
|
20207
|
+
if (!foundBlock) {
|
|
20208
|
+
notFoundBlocks.push({ contentKey: update.contentKey, blockType: update.blockType });
|
|
20209
|
+
results.push({
|
|
20210
|
+
success: false,
|
|
20211
|
+
contentKey: update.contentKey,
|
|
20212
|
+
message: `Block with contentKey '${update.contentKey}' not found in ${update.blockType}Data`
|
|
20213
|
+
});
|
|
20214
|
+
continue;
|
|
20215
|
+
}
|
|
20216
|
+
const warnings = [];
|
|
20217
|
+
const errors = [];
|
|
20218
|
+
let updatedCount = 0;
|
|
20219
|
+
let addedCount = 0;
|
|
20220
|
+
const elementTypeProperties = await getElementTypeProperties(foundBlock.block.contentTypeKey);
|
|
20221
|
+
if (elementTypeProperties.length > 0) {
|
|
20222
|
+
const propsToValidate = update.properties.map((p) => {
|
|
20223
|
+
const def = elementTypeProperties.find((d) => d.alias === p.alias);
|
|
20224
|
+
return { alias: p.alias, value: p.value, dataTypeId: _nullishCoalesce(_optionalChain([def, 'optionalAccess', _51 => _51.dataTypeId]), () => ( "")) };
|
|
20225
|
+
}).filter((p) => p.dataTypeId);
|
|
20226
|
+
if (propsToValidate.length > 0) {
|
|
20227
|
+
const valueValidation = await validatePropertiesBeforeSave(propsToValidate);
|
|
20228
|
+
if (!valueValidation.isValid) {
|
|
20229
|
+
errors.push(...valueValidation.errors);
|
|
20230
|
+
}
|
|
20231
|
+
}
|
|
20232
|
+
}
|
|
20233
|
+
for (const propUpdate of update.properties) {
|
|
20234
|
+
const blockProperty = foundBlock.block.values.find(
|
|
20235
|
+
(v) => matchesProperty(v, propUpdate.alias, propUpdate.culture, propUpdate.segment)
|
|
20236
|
+
);
|
|
20237
|
+
if (blockProperty) {
|
|
20238
|
+
blockProperty.value = propUpdate.value;
|
|
20239
|
+
updatedCount++;
|
|
20240
|
+
} else {
|
|
20241
|
+
const propertyDef = elementTypeProperties.find((p) => p.alias === propUpdate.alias);
|
|
20242
|
+
if (propertyDef) {
|
|
20243
|
+
const validationError = validateCultureSegment(propUpdate, propertyDef);
|
|
20244
|
+
if (validationError) {
|
|
20245
|
+
errors.push(validationError);
|
|
20246
|
+
} else {
|
|
20247
|
+
foundBlock.block.values.push({
|
|
20248
|
+
alias: propUpdate.alias,
|
|
20249
|
+
culture: _nullishCoalesce(propUpdate.culture, () => ( null)),
|
|
20250
|
+
segment: _nullishCoalesce(propUpdate.segment, () => ( null)),
|
|
20251
|
+
value: propUpdate.value
|
|
20252
|
+
});
|
|
20253
|
+
addedCount++;
|
|
20254
|
+
}
|
|
20255
|
+
} else if (elementTypeProperties.length > 0) {
|
|
20256
|
+
errors.push(
|
|
20257
|
+
`Property '${getPropertyKey(propUpdate.alias, propUpdate.culture, propUpdate.segment)}' does not exist on Element Type`
|
|
20258
|
+
);
|
|
20259
|
+
} else {
|
|
20260
|
+
warnings.push(
|
|
20261
|
+
`Property '${getPropertyKey(propUpdate.alias, propUpdate.culture, propUpdate.segment)}' not found in block (could not validate against Element Type)`
|
|
20262
|
+
);
|
|
20263
|
+
}
|
|
20264
|
+
}
|
|
20265
|
+
}
|
|
20266
|
+
const totalProcessed = updatedCount + addedCount;
|
|
20267
|
+
let message;
|
|
20268
|
+
if (updatedCount > 0 && addedCount > 0) {
|
|
20269
|
+
message = `Updated ${updatedCount} and added ${addedCount} properties in block at ${foundBlock.path}`;
|
|
20270
|
+
} else if (addedCount > 0) {
|
|
20271
|
+
message = `Added ${addedCount} properties in block at ${foundBlock.path}`;
|
|
20272
|
+
} else if (updatedCount > 0) {
|
|
20273
|
+
message = `Updated ${updatedCount} properties in block at ${foundBlock.path}`;
|
|
20274
|
+
} else {
|
|
20275
|
+
message = `No properties were processed in block at ${foundBlock.path}`;
|
|
20276
|
+
}
|
|
20277
|
+
results.push({
|
|
20278
|
+
success: totalProcessed > 0 || errors.length === 0,
|
|
20279
|
+
contentKey: update.contentKey,
|
|
20280
|
+
message,
|
|
20281
|
+
updatedCount: updatedCount > 0 ? updatedCount : void 0,
|
|
20282
|
+
addedCount: addedCount > 0 ? addedCount : void 0,
|
|
20283
|
+
warnings: warnings.length > 0 ? warnings : void 0,
|
|
20284
|
+
errors: errors.length > 0 ? errors : void 0
|
|
20285
|
+
});
|
|
20286
|
+
}
|
|
20287
|
+
if (notFoundBlocks.length === model.updates.length) {
|
|
20288
|
+
const allBlocks = discoveredArrays.flatMap((d) => [
|
|
20289
|
+
...d.contentData.map((b) => ({ key: b.key, type: "content", path: d.path })),
|
|
20290
|
+
...d.settingsData.map((b) => ({ key: b.key, type: "settings", path: d.path }))
|
|
20291
|
+
]);
|
|
20292
|
+
return {
|
|
20293
|
+
content: [{
|
|
20294
|
+
type: "text",
|
|
20295
|
+
text: JSON.stringify({
|
|
20296
|
+
success: false,
|
|
20297
|
+
error: "Blocks not found",
|
|
20298
|
+
message: "None of the specified blocks were found in the document",
|
|
20299
|
+
notFoundBlocks,
|
|
20300
|
+
availableBlocks: allBlocks
|
|
20301
|
+
}, null, 2)
|
|
20302
|
+
}]
|
|
20303
|
+
};
|
|
20304
|
+
}
|
|
20305
|
+
const updatedValues = currentDocument.values.map((existingValue) => ({
|
|
20306
|
+
alias: existingValue.alias,
|
|
20307
|
+
culture: existingValue.culture,
|
|
20308
|
+
segment: existingValue.segment,
|
|
20309
|
+
value: existingValue.value
|
|
20310
|
+
}));
|
|
20311
|
+
const variants = currentDocument.variants.map((v) => ({
|
|
20312
|
+
culture: v.culture,
|
|
20313
|
+
segment: v.segment,
|
|
20314
|
+
name: v.name
|
|
20315
|
+
}));
|
|
20316
|
+
const updatePayload = {
|
|
20317
|
+
values: updatedValues,
|
|
20318
|
+
variants,
|
|
20319
|
+
template: currentDocument.template
|
|
20320
|
+
};
|
|
20321
|
+
await client.putDocumentById(model.documentId, updatePayload);
|
|
18534
20322
|
return {
|
|
18535
|
-
content: [
|
|
18536
|
-
|
|
18537
|
-
|
|
18538
|
-
|
|
18539
|
-
|
|
18540
|
-
|
|
20323
|
+
content: [{
|
|
20324
|
+
type: "text",
|
|
20325
|
+
text: JSON.stringify({
|
|
20326
|
+
success: true,
|
|
20327
|
+
message: `Successfully processed ${model.updates.length} block update(s)`,
|
|
20328
|
+
results
|
|
20329
|
+
}, null, 2)
|
|
20330
|
+
}]
|
|
18541
20331
|
};
|
|
18542
20332
|
},
|
|
18543
20333
|
(user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Update)
|
|
18544
20334
|
);
|
|
18545
|
-
var
|
|
20335
|
+
var update_block_property_default = UpdateBlockPropertyTool;
|
|
18546
20336
|
|
|
18547
20337
|
// src/umb-management-api/tools/document/items/get/get-root.ts
|
|
18548
20338
|
var GetDocumentRootTool = CreateUmbracoTool(
|
|
@@ -18604,6 +20394,26 @@ var GetDocumentAncestorsTool = CreateUmbracoTool(
|
|
|
18604
20394
|
);
|
|
18605
20395
|
var get_ancestors_default5 = GetDocumentAncestorsTool;
|
|
18606
20396
|
|
|
20397
|
+
// src/umb-management-api/tools/document/items/get/get-siblings.ts
|
|
20398
|
+
var GetDocumentSiblingsTool = CreateUmbracoTool(
|
|
20399
|
+
"get-document-siblings",
|
|
20400
|
+
"Gets sibling documents for a given descendant id",
|
|
20401
|
+
getTreeDocumentSiblingsQueryParams.shape,
|
|
20402
|
+
async (params) => {
|
|
20403
|
+
const client = UmbracoManagementClient2.getClient();
|
|
20404
|
+
const response = await client.getTreeDocumentSiblings(params);
|
|
20405
|
+
return {
|
|
20406
|
+
content: [
|
|
20407
|
+
{
|
|
20408
|
+
type: "text",
|
|
20409
|
+
text: JSON.stringify(response)
|
|
20410
|
+
}
|
|
20411
|
+
]
|
|
20412
|
+
};
|
|
20413
|
+
}
|
|
20414
|
+
);
|
|
20415
|
+
var get_siblings_default4 = GetDocumentSiblingsTool;
|
|
20416
|
+
|
|
18607
20417
|
// src/umb-management-api/tools/document/items/get/get-recycle-bin-root.ts
|
|
18608
20418
|
var GetRecycleBinDocumentRootTool = CreateUmbracoTool(
|
|
18609
20419
|
"get-recycle-bin-document-root",
|
|
@@ -18644,6 +20454,26 @@ var GetRecycleBinDocumentChildrenTool = CreateUmbracoTool(
|
|
|
18644
20454
|
);
|
|
18645
20455
|
var get_recycle_bin_children_default = GetRecycleBinDocumentChildrenTool;
|
|
18646
20456
|
|
|
20457
|
+
// src/umb-management-api/tools/document/items/get/get-recycle-bin-siblings.ts
|
|
20458
|
+
var GetDocumentRecycleBinSiblingsTool = CreateUmbracoTool(
|
|
20459
|
+
"get-document-recycle-bin-siblings",
|
|
20460
|
+
"Gets sibling documents in the recycle bin for a given descendant id",
|
|
20461
|
+
getRecycleBinDocumentSiblingsQueryParams.shape,
|
|
20462
|
+
async (params) => {
|
|
20463
|
+
const client = UmbracoManagementClient2.getClient();
|
|
20464
|
+
const response = await client.getRecycleBinDocumentSiblings(params);
|
|
20465
|
+
return {
|
|
20466
|
+
content: [
|
|
20467
|
+
{
|
|
20468
|
+
type: "text",
|
|
20469
|
+
text: JSON.stringify(response)
|
|
20470
|
+
}
|
|
20471
|
+
]
|
|
20472
|
+
};
|
|
20473
|
+
}
|
|
20474
|
+
);
|
|
20475
|
+
var get_recycle_bin_siblings_default = GetDocumentRecycleBinSiblingsTool;
|
|
20476
|
+
|
|
18647
20477
|
// src/umb-management-api/tools/document/index.ts
|
|
18648
20478
|
var DocumentCollection = {
|
|
18649
20479
|
metadata: {
|
|
@@ -18664,6 +20494,7 @@ var DocumentCollection = {
|
|
|
18664
20494
|
tools.push(post_document_public_access_default());
|
|
18665
20495
|
tools.push(delete_document_default());
|
|
18666
20496
|
tools.push(delete_document_public_access_default());
|
|
20497
|
+
tools.push(delete_recycle_bin_item_default());
|
|
18667
20498
|
tools.push(get_document_urls_default());
|
|
18668
20499
|
tools.push(get_document_domains_default());
|
|
18669
20500
|
tools.push(get_document_audit_log_default());
|
|
@@ -18676,6 +20507,8 @@ var DocumentCollection = {
|
|
|
18676
20507
|
tools.push(sort_document_default());
|
|
18677
20508
|
tools.push(unpublish_document_default());
|
|
18678
20509
|
tools.push(update_document_default());
|
|
20510
|
+
tools.push(update_document_properties_default());
|
|
20511
|
+
tools.push(update_block_property_default());
|
|
18679
20512
|
tools.push(put_document_domains_default());
|
|
18680
20513
|
tools.push(put_document_notifications_default());
|
|
18681
20514
|
tools.push(put_document_public_access_default());
|
|
@@ -18687,9 +20520,11 @@ var DocumentCollection = {
|
|
|
18687
20520
|
tools.push(search_document_default());
|
|
18688
20521
|
tools.push(validate_document_default());
|
|
18689
20522
|
tools.push(get_collection_document_by_id_default());
|
|
20523
|
+
tools.push(get_item_document_default());
|
|
18690
20524
|
tools.push(get_document_are_referenced_default());
|
|
18691
20525
|
tools.push(get_document_by_id_referenced_by_default());
|
|
18692
20526
|
tools.push(get_document_by_id_referenced_descendants_default());
|
|
20527
|
+
tools.push(get_document_available_segment_options_default());
|
|
18693
20528
|
tools.push(get_recycle_bin_document_original_parent_default());
|
|
18694
20529
|
tools.push(get_recycle_bin_document_referenced_by_default());
|
|
18695
20530
|
}
|
|
@@ -18697,6 +20532,8 @@ var DocumentCollection = {
|
|
|
18697
20532
|
tools.push(get_root_default5());
|
|
18698
20533
|
tools.push(get_children_default5());
|
|
18699
20534
|
tools.push(get_ancestors_default5());
|
|
20535
|
+
tools.push(get_siblings_default4());
|
|
20536
|
+
tools.push(get_recycle_bin_siblings_default());
|
|
18700
20537
|
}
|
|
18701
20538
|
return tools;
|
|
18702
20539
|
}
|
|
@@ -19097,7 +20934,7 @@ function getExtensionFromMimeType(mimeType) {
|
|
|
19097
20934
|
return extension ? `.${extension}` : void 0;
|
|
19098
20935
|
}
|
|
19099
20936
|
function validateMediaTypeForSvg(filePath, fileUrl, fileName, mediaTypeName) {
|
|
19100
|
-
const isSvg = _optionalChain([filePath, 'optionalAccess',
|
|
20937
|
+
const isSvg = _optionalChain([filePath, 'optionalAccess', _52 => _52.toLowerCase, 'call', _53 => _53(), 'access', _54 => _54.endsWith, 'call', _55 => _55(".svg")]) || _optionalChain([fileUrl, 'optionalAccess', _56 => _56.toLowerCase, 'call', _57 => _57(), 'access', _58 => _58.endsWith, 'call', _59 => _59(".svg")]) || fileName.toLowerCase().endsWith(".svg");
|
|
19101
20938
|
if (isSvg && mediaTypeName === MEDIA_TYPE_IMAGE) {
|
|
19102
20939
|
console.warn(`SVG detected - using ${MEDIA_TYPE_VECTOR_GRAPHICS} media type instead of ${MEDIA_TYPE_IMAGE}`);
|
|
19103
20940
|
return MEDIA_TYPE_VECTOR_GRAPHICS;
|
|
@@ -19254,8 +21091,8 @@ async function uploadMediaFile(client, params) {
|
|
|
19254
21091
|
});
|
|
19255
21092
|
} catch (error) {
|
|
19256
21093
|
const err = error;
|
|
19257
|
-
const errorData = _optionalChain([err, 'access',
|
|
19258
|
-
throw new Error(`Failed to upload temporary file: ${_optionalChain([err, 'access',
|
|
21094
|
+
const errorData = _optionalChain([err, 'access', _60 => _60.response, 'optionalAccess', _61 => _61.data]) ? typeof err.response.data === "string" ? err.response.data : JSON.stringify(err.response.data) : err.message;
|
|
21095
|
+
throw new Error(`Failed to upload temporary file: ${_optionalChain([err, 'access', _62 => _62.response, 'optionalAccess', _63 => _63.status]) || "Unknown error"} - ${errorData}`);
|
|
19259
21096
|
}
|
|
19260
21097
|
const valueStructure = buildValueStructure(validatedMediaTypeName, params.temporaryFileId);
|
|
19261
21098
|
try {
|
|
@@ -19274,7 +21111,7 @@ async function uploadMediaFile(client, params) {
|
|
|
19274
21111
|
});
|
|
19275
21112
|
} catch (error) {
|
|
19276
21113
|
const err = error;
|
|
19277
|
-
throw new Error(`Failed to create media item: ${_optionalChain([err, 'access',
|
|
21114
|
+
throw new Error(`Failed to create media item: ${_optionalChain([err, 'access', _64 => _64.response, 'optionalAccess', _65 => _65.status]) || "Unknown error"} - ${JSON.stringify(_optionalChain([err, 'access', _66 => _66.response, 'optionalAccess', _67 => _67.data])) || err.message}`);
|
|
19278
21115
|
}
|
|
19279
21116
|
return params.name;
|
|
19280
21117
|
} finally {
|
|
@@ -19571,6 +21408,30 @@ var ValidateMediaTool = CreateUmbracoTool(
|
|
|
19571
21408
|
);
|
|
19572
21409
|
var validate_media_default = ValidateMediaTool;
|
|
19573
21410
|
|
|
21411
|
+
// src/umb-management-api/tools/media/put/validate-media.ts
|
|
21412
|
+
|
|
21413
|
+
var ValidateMediaUpdateTool = CreateUmbracoTool(
|
|
21414
|
+
"validate-media-update",
|
|
21415
|
+
"Validates media data before updating an existing media item by Id",
|
|
21416
|
+
{
|
|
21417
|
+
id: putMediaByIdValidateParams.shape.id,
|
|
21418
|
+
data: _zod.z.object(putMediaByIdValidateBody.shape)
|
|
21419
|
+
},
|
|
21420
|
+
async (model) => {
|
|
21421
|
+
const client = UmbracoManagementClient2.getClient();
|
|
21422
|
+
const response = await client.putMediaByIdValidate(model.id, model.data);
|
|
21423
|
+
return {
|
|
21424
|
+
content: [
|
|
21425
|
+
{
|
|
21426
|
+
type: "text",
|
|
21427
|
+
text: JSON.stringify(response)
|
|
21428
|
+
}
|
|
21429
|
+
]
|
|
21430
|
+
};
|
|
21431
|
+
}
|
|
21432
|
+
);
|
|
21433
|
+
var validate_media_default2 = ValidateMediaUpdateTool;
|
|
21434
|
+
|
|
19574
21435
|
// src/umb-management-api/tools/media/put/sort-media.ts
|
|
19575
21436
|
var SortMediaTool = CreateUmbracoTool(
|
|
19576
21437
|
"sort-media",
|
|
@@ -19676,6 +21537,26 @@ var GetMediaChildrenTool = CreateUmbracoTool(
|
|
|
19676
21537
|
);
|
|
19677
21538
|
var get_children_default6 = GetMediaChildrenTool;
|
|
19678
21539
|
|
|
21540
|
+
// src/umb-management-api/tools/media/items/get/get-siblings.ts
|
|
21541
|
+
var GetMediaSiblingsTool = CreateUmbracoTool(
|
|
21542
|
+
"get-media-siblings",
|
|
21543
|
+
"Gets sibling media items for a given descendant id",
|
|
21544
|
+
getTreeMediaSiblingsQueryParams.shape,
|
|
21545
|
+
async (params) => {
|
|
21546
|
+
const client = UmbracoManagementClient2.getClient();
|
|
21547
|
+
const response = await client.getTreeMediaSiblings(params);
|
|
21548
|
+
return {
|
|
21549
|
+
content: [
|
|
21550
|
+
{
|
|
21551
|
+
type: "text",
|
|
21552
|
+
text: JSON.stringify(response)
|
|
21553
|
+
}
|
|
21554
|
+
]
|
|
21555
|
+
};
|
|
21556
|
+
}
|
|
21557
|
+
);
|
|
21558
|
+
var get_siblings_default5 = GetMediaSiblingsTool;
|
|
21559
|
+
|
|
19679
21560
|
// src/umb-management-api/tools/media/items/get/get-root.ts
|
|
19680
21561
|
var GetMediaRootTool = CreateUmbracoTool(
|
|
19681
21562
|
"get-media-root",
|
|
@@ -19760,6 +21641,26 @@ var GetRecycleBinMediaChildrenTool = CreateUmbracoTool(
|
|
|
19760
21641
|
);
|
|
19761
21642
|
var get_recycle_bin_children_default2 = GetRecycleBinMediaChildrenTool;
|
|
19762
21643
|
|
|
21644
|
+
// src/umb-management-api/tools/media/items/get/get-recycle-bin-siblings.ts
|
|
21645
|
+
var GetMediaRecycleBinSiblingsTool = CreateUmbracoTool(
|
|
21646
|
+
"get-media-recycle-bin-siblings",
|
|
21647
|
+
"Gets sibling media items in the recycle bin for a given descendant id",
|
|
21648
|
+
getRecycleBinMediaSiblingsQueryParams.shape,
|
|
21649
|
+
async (params) => {
|
|
21650
|
+
const client = UmbracoManagementClient2.getClient();
|
|
21651
|
+
const response = await client.getRecycleBinMediaSiblings(params);
|
|
21652
|
+
return {
|
|
21653
|
+
content: [
|
|
21654
|
+
{
|
|
21655
|
+
type: "text",
|
|
21656
|
+
text: JSON.stringify(response)
|
|
21657
|
+
}
|
|
21658
|
+
]
|
|
21659
|
+
};
|
|
21660
|
+
}
|
|
21661
|
+
);
|
|
21662
|
+
var get_recycle_bin_siblings_default2 = GetMediaRecycleBinSiblingsTool;
|
|
21663
|
+
|
|
19763
21664
|
// src/umb-management-api/tools/media/delete/empty-recycle-bin.ts
|
|
19764
21665
|
var EmptyRecycleBinTool2 = CreateUmbracoTool(
|
|
19765
21666
|
"empty-media-recycle-bin",
|
|
@@ -19842,6 +21743,26 @@ var DeleteFromRecycleBinTool2 = CreateUmbracoTool(
|
|
|
19842
21743
|
);
|
|
19843
21744
|
var delete_from_recycle_bin_default2 = DeleteFromRecycleBinTool2;
|
|
19844
21745
|
|
|
21746
|
+
// src/umb-management-api/tools/media/delete/delete-recycle-bin-item.ts
|
|
21747
|
+
var DeleteMediaRecycleBinItemTool = CreateUmbracoTool(
|
|
21748
|
+
"delete-media-recycle-bin-item",
|
|
21749
|
+
"Permanently deletes a media item from the recycle bin by its id",
|
|
21750
|
+
deleteRecycleBinMediaByIdParams.shape,
|
|
21751
|
+
async (params) => {
|
|
21752
|
+
const client = UmbracoManagementClient2.getClient();
|
|
21753
|
+
await client.deleteRecycleBinMediaById(params.id);
|
|
21754
|
+
return {
|
|
21755
|
+
content: [
|
|
21756
|
+
{
|
|
21757
|
+
type: "text",
|
|
21758
|
+
text: JSON.stringify({ success: true, message: "Media item permanently deleted from recycle bin" })
|
|
21759
|
+
}
|
|
21760
|
+
]
|
|
21761
|
+
};
|
|
21762
|
+
}
|
|
21763
|
+
);
|
|
21764
|
+
var delete_recycle_bin_item_default2 = DeleteMediaRecycleBinItemTool;
|
|
21765
|
+
|
|
19845
21766
|
// src/umb-management-api/tools/media/get/get-media-are-referenced.ts
|
|
19846
21767
|
var GetMediaAreReferencedTool = CreateUmbracoTool(
|
|
19847
21768
|
"get-media-are-referenced",
|
|
@@ -20003,6 +21924,7 @@ var MediaCollection = {
|
|
|
20003
21924
|
if (AuthorizationPolicies.SectionAccessForMediaTree(user)) {
|
|
20004
21925
|
tools.push(get_ancestors_default6());
|
|
20005
21926
|
tools.push(get_children_default6());
|
|
21927
|
+
tools.push(get_siblings_default5());
|
|
20006
21928
|
tools.push(get_root_default6());
|
|
20007
21929
|
}
|
|
20008
21930
|
if (AuthorizationPolicies.SectionAccessMedia(user)) {
|
|
@@ -20013,16 +21935,19 @@ var MediaCollection = {
|
|
|
20013
21935
|
tools.push(get_media_configuration_default());
|
|
20014
21936
|
tools.push(get_media_urls_default());
|
|
20015
21937
|
tools.push(validate_media_default());
|
|
21938
|
+
tools.push(validate_media_default2());
|
|
20016
21939
|
tools.push(sort_media_default());
|
|
20017
21940
|
tools.push(get_media_by_id_array_default());
|
|
20018
21941
|
tools.push(move_media_default());
|
|
20019
21942
|
tools.push(get_media_audit_log_default());
|
|
20020
21943
|
tools.push(get_recycle_bin_root_default2());
|
|
20021
21944
|
tools.push(get_recycle_bin_children_default2());
|
|
21945
|
+
tools.push(get_recycle_bin_siblings_default2());
|
|
20022
21946
|
tools.push(empty_recycle_bin_default2());
|
|
20023
21947
|
tools.push(restore_from_recycle_bin_default2());
|
|
20024
21948
|
tools.push(move_to_recycle_bin_default2());
|
|
20025
21949
|
tools.push(delete_from_recycle_bin_default2());
|
|
21950
|
+
tools.push(delete_recycle_bin_item_default2());
|
|
20026
21951
|
tools.push(get_media_are_referenced_default());
|
|
20027
21952
|
tools.push(get_media_by_id_referenced_by_default());
|
|
20028
21953
|
tools.push(get_media_by_id_referenced_descendants_default());
|
|
@@ -20099,6 +22024,26 @@ var GetMediaTypeByIdsTool = CreateUmbracoTool(
|
|
|
20099
22024
|
);
|
|
20100
22025
|
var get_media_type_by_ids_default = GetMediaTypeByIdsTool;
|
|
20101
22026
|
|
|
22027
|
+
// src/umb-management-api/tools/media-type/get/get-item-media-type.ts
|
|
22028
|
+
var GetItemMediaTypeTool = CreateUmbracoTool(
|
|
22029
|
+
"get-item-media-type",
|
|
22030
|
+
"Gets media type items by their ids",
|
|
22031
|
+
getItemMediaTypeQueryParams.shape,
|
|
22032
|
+
async (params) => {
|
|
22033
|
+
const client = UmbracoManagementClient2.getClient();
|
|
22034
|
+
const response = await client.getItemMediaType(params);
|
|
22035
|
+
return {
|
|
22036
|
+
content: [
|
|
22037
|
+
{
|
|
22038
|
+
type: "text",
|
|
22039
|
+
text: JSON.stringify(response)
|
|
22040
|
+
}
|
|
22041
|
+
]
|
|
22042
|
+
};
|
|
22043
|
+
}
|
|
22044
|
+
);
|
|
22045
|
+
var get_item_media_type_default = GetItemMediaTypeTool;
|
|
22046
|
+
|
|
20102
22047
|
// src/umb-management-api/tools/media-type/get/get-allowed.ts
|
|
20103
22048
|
var GetAllowedMediaTypeTool = CreateUmbracoTool(
|
|
20104
22049
|
"get-allowed-media-type",
|
|
@@ -20225,6 +22170,26 @@ var GetMediaTypeChildrenTool = CreateUmbracoTool(
|
|
|
20225
22170
|
);
|
|
20226
22171
|
var get_children_default7 = GetMediaTypeChildrenTool;
|
|
20227
22172
|
|
|
22173
|
+
// src/umb-management-api/tools/media-type/items/get/get-siblings.ts
|
|
22174
|
+
var GetMediaTypeSiblingsTool = CreateUmbracoTool(
|
|
22175
|
+
"get-media-type-siblings",
|
|
22176
|
+
"Gets sibling media types or media type folders for a given descendant id",
|
|
22177
|
+
getTreeMediaTypeSiblingsQueryParams.shape,
|
|
22178
|
+
async (params) => {
|
|
22179
|
+
const client = UmbracoManagementClient2.getClient();
|
|
22180
|
+
const response = await client.getTreeMediaTypeSiblings(params);
|
|
22181
|
+
return {
|
|
22182
|
+
content: [
|
|
22183
|
+
{
|
|
22184
|
+
type: "text",
|
|
22185
|
+
text: JSON.stringify(response)
|
|
22186
|
+
}
|
|
22187
|
+
]
|
|
22188
|
+
};
|
|
22189
|
+
}
|
|
22190
|
+
);
|
|
22191
|
+
var get_siblings_default6 = GetMediaTypeSiblingsTool;
|
|
22192
|
+
|
|
20228
22193
|
// src/umb-management-api/tools/media-type/items/get/get-ancestors.ts
|
|
20229
22194
|
var GetMediaTypeAncestorsTool = CreateUmbracoTool(
|
|
20230
22195
|
"get-media-type-ancestors",
|
|
@@ -20351,7 +22316,7 @@ var update_folder_default4 = UpdateMediaTypeFolderTool;
|
|
|
20351
22316
|
|
|
20352
22317
|
// src/umb-management-api/tools/media-type/post/create-media-type.ts
|
|
20353
22318
|
|
|
20354
|
-
var
|
|
22319
|
+
var propertySchema3 = postMediaTypeBody.shape.properties;
|
|
20355
22320
|
var containerSchema = postMediaTypeBody.shape.containers;
|
|
20356
22321
|
var allowedMediaTypeSchema = postMediaTypeBody.shape.allowedMediaTypes;
|
|
20357
22322
|
var compositionSchema = postMediaTypeBody.shape.compositions;
|
|
@@ -20365,7 +22330,7 @@ var createMediaTypeSchema = _zod.z.object({
|
|
|
20365
22330
|
variesByCulture: _zod.z.boolean(),
|
|
20366
22331
|
variesBySegment: _zod.z.boolean(),
|
|
20367
22332
|
isElement: _zod.z.boolean(),
|
|
20368
|
-
properties:
|
|
22333
|
+
properties: propertySchema3,
|
|
20369
22334
|
containers: containerSchema,
|
|
20370
22335
|
id: _zod.z.string().uuid().nullish(),
|
|
20371
22336
|
parentId: _zod.z.string().uuid().optional(),
|
|
@@ -20545,12 +22510,14 @@ var MediaTypeCollection = {
|
|
|
20545
22510
|
tools.push(delete_media_type_default());
|
|
20546
22511
|
tools.push(get_root_default7());
|
|
20547
22512
|
tools.push(get_children_default7());
|
|
22513
|
+
tools.push(get_siblings_default6());
|
|
20548
22514
|
tools.push(get_ancestors_default7());
|
|
20549
22515
|
tools.push(get_media_type_folders_default());
|
|
20550
22516
|
}
|
|
20551
22517
|
if (AuthorizationPolicies.TreeAccessMediaOrMediaTypes(user)) {
|
|
20552
22518
|
tools.push(get_media_type_by_id_default());
|
|
20553
22519
|
tools.push(get_media_type_by_ids_default());
|
|
22520
|
+
tools.push(get_item_media_type_default());
|
|
20554
22521
|
tools.push(get_media_type_configuration_default());
|
|
20555
22522
|
tools.push(get_allowed_default());
|
|
20556
22523
|
tools.push(get_media_type_allowed_at_root_default());
|
|
@@ -20783,6 +22750,26 @@ var GetMemberByIdReferencedDescendantsTool = CreateUmbracoTool(
|
|
|
20783
22750
|
);
|
|
20784
22751
|
var get_member_by_id_referenced_descendants_default = GetMemberByIdReferencedDescendantsTool;
|
|
20785
22752
|
|
|
22753
|
+
// src/umb-management-api/tools/member/get/get-item-member-search.ts
|
|
22754
|
+
var GetItemMemberSearchTool = CreateUmbracoTool(
|
|
22755
|
+
"get-item-member-search",
|
|
22756
|
+
`Searches for member items`,
|
|
22757
|
+
getItemMemberSearchQueryParams.shape,
|
|
22758
|
+
async (model) => {
|
|
22759
|
+
const client = UmbracoManagementClient2.getClient();
|
|
22760
|
+
var response = await client.getItemMemberSearch(model);
|
|
22761
|
+
return {
|
|
22762
|
+
content: [
|
|
22763
|
+
{
|
|
22764
|
+
type: "text",
|
|
22765
|
+
text: JSON.stringify(response)
|
|
22766
|
+
}
|
|
22767
|
+
]
|
|
22768
|
+
};
|
|
22769
|
+
}
|
|
22770
|
+
);
|
|
22771
|
+
var get_item_member_search_default = GetItemMemberSearchTool;
|
|
22772
|
+
|
|
20786
22773
|
// src/umb-management-api/tools/member/index.ts
|
|
20787
22774
|
var MemberCollection = {
|
|
20788
22775
|
metadata: {
|
|
@@ -20805,6 +22792,7 @@ var MemberCollection = {
|
|
|
20805
22792
|
tools.push(get_member_by_id_referenced_descendants_default());
|
|
20806
22793
|
}
|
|
20807
22794
|
tools.push(find_member_default());
|
|
22795
|
+
tools.push(get_item_member_search_default());
|
|
20808
22796
|
return tools;
|
|
20809
22797
|
}
|
|
20810
22798
|
};
|
|
@@ -20870,6 +22858,26 @@ var GetMemberGroupRootTool = CreateUmbracoTool(
|
|
|
20870
22858
|
);
|
|
20871
22859
|
var get_root_default8 = GetMemberGroupRootTool;
|
|
20872
22860
|
|
|
22861
|
+
// src/umb-management-api/tools/member-group/get/get-all-member-groups.ts
|
|
22862
|
+
var GetAllMemberGroupsTool = CreateUmbracoTool(
|
|
22863
|
+
"get-all-member-groups",
|
|
22864
|
+
`Gets all member groups with optional pagination`,
|
|
22865
|
+
getMemberGroupQueryParams.shape,
|
|
22866
|
+
async (model) => {
|
|
22867
|
+
const client = UmbracoManagementClient2.getClient();
|
|
22868
|
+
var response = await client.getMemberGroup(model);
|
|
22869
|
+
return {
|
|
22870
|
+
content: [
|
|
22871
|
+
{
|
|
22872
|
+
type: "text",
|
|
22873
|
+
text: JSON.stringify(response)
|
|
22874
|
+
}
|
|
22875
|
+
]
|
|
22876
|
+
};
|
|
22877
|
+
}
|
|
22878
|
+
);
|
|
22879
|
+
var get_all_member_groups_default = GetAllMemberGroupsTool;
|
|
22880
|
+
|
|
20873
22881
|
// src/umb-management-api/tools/member-group/post/create-member-group.ts
|
|
20874
22882
|
var CreateMemberGroupTool = CreateUmbracoTool(
|
|
20875
22883
|
"create-member-group",
|
|
@@ -20946,6 +22954,7 @@ var MemberGroupCollection = {
|
|
|
20946
22954
|
const tools = [];
|
|
20947
22955
|
tools.push(get_member_group_default());
|
|
20948
22956
|
tools.push(get_member_group_by_id_array_default());
|
|
22957
|
+
tools.push(get_all_member_groups_default());
|
|
20949
22958
|
if (AuthorizationPolicies.SectionAccessMembers(user)) {
|
|
20950
22959
|
tools.push(create_member_group_default());
|
|
20951
22960
|
tools.push(update_member_group_default());
|
|
@@ -21165,6 +23174,46 @@ var GetMemberTypeRootTool = CreateUmbracoTool(
|
|
|
21165
23174
|
);
|
|
21166
23175
|
var get_root_default9 = GetMemberTypeRootTool;
|
|
21167
23176
|
|
|
23177
|
+
// src/umb-management-api/tools/member-type/items/get/get-siblings.ts
|
|
23178
|
+
var GetMemberTypeSiblingsTool = CreateUmbracoTool(
|
|
23179
|
+
"get-member-type-siblings",
|
|
23180
|
+
"Gets sibling member types or member type folders for a given descendant id",
|
|
23181
|
+
getTreeMemberTypeSiblingsQueryParams.shape,
|
|
23182
|
+
async (params) => {
|
|
23183
|
+
const client = UmbracoManagementClient2.getClient();
|
|
23184
|
+
var response = await client.getTreeMemberTypeSiblings(params);
|
|
23185
|
+
return {
|
|
23186
|
+
content: [
|
|
23187
|
+
{
|
|
23188
|
+
type: "text",
|
|
23189
|
+
text: JSON.stringify(response)
|
|
23190
|
+
}
|
|
23191
|
+
]
|
|
23192
|
+
};
|
|
23193
|
+
}
|
|
23194
|
+
);
|
|
23195
|
+
var get_siblings_default7 = GetMemberTypeSiblingsTool;
|
|
23196
|
+
|
|
23197
|
+
// src/umb-management-api/tools/member-type/get/get-item-member-type-search.ts
|
|
23198
|
+
var SearchMemberTypeItemsTool = CreateUmbracoTool(
|
|
23199
|
+
"search-member-type-items",
|
|
23200
|
+
"Searches for member type items",
|
|
23201
|
+
getItemMemberTypeSearchQueryParams.shape,
|
|
23202
|
+
async (params) => {
|
|
23203
|
+
const client = UmbracoManagementClient2.getClient();
|
|
23204
|
+
var response = await client.getItemMemberTypeSearch(params);
|
|
23205
|
+
return {
|
|
23206
|
+
content: [
|
|
23207
|
+
{
|
|
23208
|
+
type: "text",
|
|
23209
|
+
text: JSON.stringify(response)
|
|
23210
|
+
}
|
|
23211
|
+
]
|
|
23212
|
+
};
|
|
23213
|
+
}
|
|
23214
|
+
);
|
|
23215
|
+
var get_item_member_type_search_default = SearchMemberTypeItemsTool;
|
|
23216
|
+
|
|
21168
23217
|
// src/umb-management-api/tools/member-type/index.ts
|
|
21169
23218
|
var MemberTypeCollection = {
|
|
21170
23219
|
metadata: {
|
|
@@ -21186,6 +23235,8 @@ var MemberTypeCollection = {
|
|
|
21186
23235
|
tools.push(get_member_type_composition_references_default());
|
|
21187
23236
|
tools.push(get_member_type_configuration_default());
|
|
21188
23237
|
tools.push(get_root_default9());
|
|
23238
|
+
tools.push(get_siblings_default7());
|
|
23239
|
+
tools.push(get_item_member_type_search_default());
|
|
21189
23240
|
}
|
|
21190
23241
|
return tools;
|
|
21191
23242
|
}
|
|
@@ -21701,6 +23752,26 @@ var GetPartialViewSearchTool = CreateUmbracoTool(
|
|
|
21701
23752
|
);
|
|
21702
23753
|
var get_search_default2 = GetPartialViewSearchTool;
|
|
21703
23754
|
|
|
23755
|
+
// src/umb-management-api/tools/partial-view/items/get/get-siblings.ts
|
|
23756
|
+
var GetPartialViewSiblingsTool = CreateUmbracoTool(
|
|
23757
|
+
"get-partial-view-siblings",
|
|
23758
|
+
"Gets sibling partial views for a given descendant path",
|
|
23759
|
+
getTreePartialViewSiblingsQueryParams.shape,
|
|
23760
|
+
async (params) => {
|
|
23761
|
+
const client = UmbracoManagementClient2.getClient();
|
|
23762
|
+
var response = await client.getTreePartialViewSiblings(params);
|
|
23763
|
+
return {
|
|
23764
|
+
content: [
|
|
23765
|
+
{
|
|
23766
|
+
type: "text",
|
|
23767
|
+
text: JSON.stringify(response)
|
|
23768
|
+
}
|
|
23769
|
+
]
|
|
23770
|
+
};
|
|
23771
|
+
}
|
|
23772
|
+
);
|
|
23773
|
+
var get_siblings_default8 = GetPartialViewSiblingsTool;
|
|
23774
|
+
|
|
21704
23775
|
// src/umb-management-api/tools/partial-view/index.ts
|
|
21705
23776
|
var PartialViewCollection = {
|
|
21706
23777
|
metadata: {
|
|
@@ -21726,6 +23797,7 @@ var PartialViewCollection = {
|
|
|
21726
23797
|
tools.push(get_children_default8());
|
|
21727
23798
|
tools.push(get_root_default10());
|
|
21728
23799
|
tools.push(get_search_default2());
|
|
23800
|
+
tools.push(get_siblings_default8());
|
|
21729
23801
|
}
|
|
21730
23802
|
return tools;
|
|
21731
23803
|
}
|
|
@@ -22021,6 +24093,26 @@ var GetTemplateSearchTool = CreateUmbracoTool(
|
|
|
22021
24093
|
);
|
|
22022
24094
|
var get_search_default3 = GetTemplateSearchTool;
|
|
22023
24095
|
|
|
24096
|
+
// src/umb-management-api/tools/template/items/get/get-siblings.ts
|
|
24097
|
+
var GetTemplateSiblingsTool = CreateUmbracoTool(
|
|
24098
|
+
"get-template-siblings",
|
|
24099
|
+
"Gets sibling templates for a given descendant id",
|
|
24100
|
+
getTreeTemplateSiblingsQueryParams.shape,
|
|
24101
|
+
async (params) => {
|
|
24102
|
+
const client = UmbracoManagementClient2.getClient();
|
|
24103
|
+
var response = await client.getTreeTemplateSiblings(params);
|
|
24104
|
+
return {
|
|
24105
|
+
content: [
|
|
24106
|
+
{
|
|
24107
|
+
type: "text",
|
|
24108
|
+
text: JSON.stringify(response)
|
|
24109
|
+
}
|
|
24110
|
+
]
|
|
24111
|
+
};
|
|
24112
|
+
}
|
|
24113
|
+
);
|
|
24114
|
+
var get_siblings_default9 = GetTemplateSiblingsTool;
|
|
24115
|
+
|
|
22024
24116
|
// src/umb-management-api/tools/template/index.ts
|
|
22025
24117
|
var TemplateCollection = {
|
|
22026
24118
|
metadata: {
|
|
@@ -22044,6 +24136,7 @@ var TemplateCollection = {
|
|
|
22044
24136
|
tools.push(get_children_default9());
|
|
22045
24137
|
tools.push(get_root_default11());
|
|
22046
24138
|
tools.push(get_search_default3());
|
|
24139
|
+
tools.push(get_siblings_default9());
|
|
22047
24140
|
}
|
|
22048
24141
|
return tools;
|
|
22049
24142
|
}
|
|
@@ -23115,6 +25208,26 @@ var GetScriptTreeRootTool = CreateUmbracoTool(
|
|
|
23115
25208
|
);
|
|
23116
25209
|
var get_script_tree_root_default = GetScriptTreeRootTool;
|
|
23117
25210
|
|
|
25211
|
+
// src/umb-management-api/tools/script/get/get-script-tree-siblings.ts
|
|
25212
|
+
var GetScriptTreeSiblingsTool = CreateUmbracoTool(
|
|
25213
|
+
"get-script-tree-siblings",
|
|
25214
|
+
"Gets sibling scripts for a given descendant path",
|
|
25215
|
+
getTreeScriptSiblingsQueryParams.shape,
|
|
25216
|
+
async (model) => {
|
|
25217
|
+
const client = UmbracoManagementClient2.getClient();
|
|
25218
|
+
const response = await client.getTreeScriptSiblings(model);
|
|
25219
|
+
return {
|
|
25220
|
+
content: [
|
|
25221
|
+
{
|
|
25222
|
+
type: "text",
|
|
25223
|
+
text: JSON.stringify(response)
|
|
25224
|
+
}
|
|
25225
|
+
]
|
|
25226
|
+
};
|
|
25227
|
+
}
|
|
25228
|
+
);
|
|
25229
|
+
var get_script_tree_siblings_default = GetScriptTreeSiblingsTool;
|
|
25230
|
+
|
|
23118
25231
|
// src/umb-management-api/tools/script/post/create-script.ts
|
|
23119
25232
|
|
|
23120
25233
|
var createScriptSchema = _zod2.default.object({
|
|
@@ -23283,6 +25396,7 @@ var ScriptCollection = {
|
|
|
23283
25396
|
tools.push(get_script_tree_ancestors_default());
|
|
23284
25397
|
tools.push(get_script_tree_children_default());
|
|
23285
25398
|
tools.push(get_script_tree_root_default());
|
|
25399
|
+
tools.push(get_script_tree_siblings_default());
|
|
23286
25400
|
tools.push(create_script_default());
|
|
23287
25401
|
tools.push(create_script_folder_default());
|
|
23288
25402
|
tools.push(update_script_default());
|
|
@@ -23558,6 +25672,26 @@ var GetStylesheetSearchTool = CreateUmbracoTool(
|
|
|
23558
25672
|
);
|
|
23559
25673
|
var get_search_default4 = GetStylesheetSearchTool;
|
|
23560
25674
|
|
|
25675
|
+
// src/umb-management-api/tools/stylesheet/items/get/get-siblings.ts
|
|
25676
|
+
var GetStylesheetSiblingsTool = CreateUmbracoTool(
|
|
25677
|
+
"get-stylesheet-siblings",
|
|
25678
|
+
"Gets sibling stylesheets for a given descendant path",
|
|
25679
|
+
getTreeStylesheetSiblingsQueryParams.shape,
|
|
25680
|
+
async (params) => {
|
|
25681
|
+
const client = UmbracoManagementClient2.getClient();
|
|
25682
|
+
var response = await client.getTreeStylesheetSiblings(params);
|
|
25683
|
+
return {
|
|
25684
|
+
content: [
|
|
25685
|
+
{
|
|
25686
|
+
type: "text",
|
|
25687
|
+
text: JSON.stringify(response)
|
|
25688
|
+
}
|
|
25689
|
+
]
|
|
25690
|
+
};
|
|
25691
|
+
}
|
|
25692
|
+
);
|
|
25693
|
+
var get_siblings_default10 = GetStylesheetSiblingsTool;
|
|
25694
|
+
|
|
23561
25695
|
// src/umb-management-api/tools/stylesheet/index.ts
|
|
23562
25696
|
var StylesheetCollection = {
|
|
23563
25697
|
metadata: {
|
|
@@ -23581,6 +25715,7 @@ var StylesheetCollection = {
|
|
|
23581
25715
|
tools.push(get_children_default10());
|
|
23582
25716
|
tools.push(get_root_default12());
|
|
23583
25717
|
tools.push(get_search_default4());
|
|
25718
|
+
tools.push(get_siblings_default10());
|
|
23584
25719
|
}
|
|
23585
25720
|
return tools;
|
|
23586
25721
|
}
|
|
@@ -24610,6 +26745,26 @@ var GetUserDataByIdTool = CreateUmbracoTool(
|
|
|
24610
26745
|
);
|
|
24611
26746
|
var get_user_data_by_id_default = GetUserDataByIdTool;
|
|
24612
26747
|
|
|
26748
|
+
// src/umb-management-api/tools/user-data/delete/delete-user-data.ts
|
|
26749
|
+
var DeleteUserDataTool = CreateUmbracoTool(
|
|
26750
|
+
"delete-user-data",
|
|
26751
|
+
"Deletes user data by its id",
|
|
26752
|
+
deleteUserDataByIdParams.shape,
|
|
26753
|
+
async ({ id }) => {
|
|
26754
|
+
const client = UmbracoManagementClient2.getClient();
|
|
26755
|
+
var response = await client.deleteUserDataById(id);
|
|
26756
|
+
return {
|
|
26757
|
+
content: [
|
|
26758
|
+
{
|
|
26759
|
+
type: "text",
|
|
26760
|
+
text: JSON.stringify(response)
|
|
26761
|
+
}
|
|
26762
|
+
]
|
|
26763
|
+
};
|
|
26764
|
+
}
|
|
26765
|
+
);
|
|
26766
|
+
var delete_user_data_default = DeleteUserDataTool;
|
|
26767
|
+
|
|
24613
26768
|
// src/umb-management-api/tools/user-data/index.ts
|
|
24614
26769
|
var UserDataCollection = {
|
|
24615
26770
|
metadata: {
|
|
@@ -24624,6 +26779,7 @@ var UserDataCollection = {
|
|
|
24624
26779
|
tools.push(update_user_data_default());
|
|
24625
26780
|
tools.push(get_user_data_default());
|
|
24626
26781
|
tools.push(get_user_data_by_id_default());
|
|
26782
|
+
tools.push(delete_user_data_default());
|
|
24627
26783
|
return tools;
|
|
24628
26784
|
}
|
|
24629
26785
|
};
|
|
@@ -24789,8 +26945,8 @@ var mapTools = (server, user, tools, config) => {
|
|
|
24789
26945
|
return tools.forEach((tool) => {
|
|
24790
26946
|
const userHasPermission = tool.enabled === void 0 || tool.enabled(user);
|
|
24791
26947
|
if (!userHasPermission) return;
|
|
24792
|
-
if (_optionalChain([config, 'access',
|
|
24793
|
-
if (_optionalChain([config, 'access',
|
|
26948
|
+
if (_optionalChain([config, 'access', _68 => _68.disabledTools, 'optionalAccess', _69 => _69.includes, 'call', _70 => _70(tool.name)])) return;
|
|
26949
|
+
if (_optionalChain([config, 'access', _71 => _71.enabledTools, 'optionalAccess', _72 => _72.length]) && !config.enabledTools.includes(tool.name)) return;
|
|
24794
26950
|
server.tool(tool.name, tool.description, tool.schema, tool.handler);
|
|
24795
26951
|
});
|
|
24796
26952
|
};
|
|
@@ -24811,7 +26967,7 @@ function resolveDependencies(requestedNames, collections) {
|
|
|
24811
26967
|
const collectionMap = new Map(collections.map((c) => [c.metadata.name, c]));
|
|
24812
26968
|
function addDependencies(collectionName) {
|
|
24813
26969
|
const collection = collectionMap.get(collectionName);
|
|
24814
|
-
if (_optionalChain([collection, 'optionalAccess',
|
|
26970
|
+
if (_optionalChain([collection, 'optionalAccess', _73 => _73.metadata, 'access', _74 => _74.dependencies])) {
|
|
24815
26971
|
collection.metadata.dependencies.forEach((dep) => {
|
|
24816
26972
|
if (!result.has(dep)) {
|
|
24817
26973
|
result.add(dep);
|
|
@@ -25076,8 +27232,8 @@ var GetDataTypeReferencesResource = CreateUmbracoTemplateResource(
|
|
|
25076
27232
|
async (uri, variables) => {
|
|
25077
27233
|
try {
|
|
25078
27234
|
const client = UmbracoManagementClient2.getClient();
|
|
25079
|
-
const params =
|
|
25080
|
-
const response = await client.
|
|
27235
|
+
const params = getDataTypeByIdReferencedByParams.parse(variables);
|
|
27236
|
+
const response = await client.getDataTypeByIdReferencedBy(params.id);
|
|
25081
27237
|
return {
|
|
25082
27238
|
contents: [
|
|
25083
27239
|
{
|