@umbraco-cms/mcp-dev 16.0.1 → 17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.cjs +1475 -88
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1638 -251
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3238,6 +3238,7 @@ import Axios2 from "axios";
|
|
|
3238
3238
|
// src/orval/client/umbraco-axios.ts
|
|
3239
3239
|
import qs from "qs";
|
|
3240
3240
|
import Axios from "axios";
|
|
3241
|
+
import https from "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 https.Agent({
|
|
3257
|
+
rejectUnauthorized: process.env.NODE_ENV === "production"
|
|
3258
|
+
});
|
|
3259
|
+
var UmbracoAxios = Axios.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 = class {
|
|
|
7391
7597
|
// package.json
|
|
7392
7598
|
var package_default = {
|
|
7393
7599
|
name: "@umbraco-cms/mcp-dev",
|
|
7394
|
-
version: "
|
|
7600
|
+
version: "17.0.0",
|
|
7395
7601
|
type: "module",
|
|
7396
7602
|
description: "A model context protocol (MCP) server for Umbraco CMS",
|
|
7397
7603
|
main: "index.js",
|
|
@@ -7410,7 +7616,7 @@ 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",
|
|
@@ -7654,7 +7860,11 @@ var getDataTypeByIdReferencedByResponse = zod.object({
|
|
|
7654
7860
|
"variants": zod.array(zod.object({
|
|
7655
7861
|
"name": zod.string(),
|
|
7656
7862
|
"culture": zod.string().nullish(),
|
|
7657
|
-
"
|
|
7863
|
+
"id": zod.string().uuid(),
|
|
7864
|
+
"flags": zod.array(zod.object({
|
|
7865
|
+
"alias": zod.string()
|
|
7866
|
+
})),
|
|
7867
|
+
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
|
|
7658
7868
|
}))
|
|
7659
7869
|
})).or(zod.object({
|
|
7660
7870
|
"$type": zod.enum(["DocumentTypePropertyTypeReferenceResponseModel"]),
|
|
@@ -7711,22 +7921,6 @@ var getDataTypeByIdReferencedByResponse = zod.object({
|
|
|
7711
7921
|
})
|
|
7712
7922
|
})))
|
|
7713
7923
|
});
|
|
7714
|
-
var getDataTypeByIdReferencesParams = zod.object({
|
|
7715
|
-
"id": zod.string().uuid()
|
|
7716
|
-
});
|
|
7717
|
-
var getDataTypeByIdReferencesResponseItem = zod.object({
|
|
7718
|
-
"contentType": zod.object({
|
|
7719
|
-
"id": zod.string().uuid(),
|
|
7720
|
-
"type": zod.string().nullable(),
|
|
7721
|
-
"name": zod.string().nullable(),
|
|
7722
|
-
"icon": zod.string().nullable()
|
|
7723
|
-
}),
|
|
7724
|
-
"properties": zod.array(zod.object({
|
|
7725
|
-
"name": zod.string(),
|
|
7726
|
-
"alias": zod.string()
|
|
7727
|
-
}))
|
|
7728
|
-
});
|
|
7729
|
-
var getDataTypeByIdReferencesResponse = zod.array(getDataTypeByIdReferencesResponseItem);
|
|
7730
7924
|
var getDataTypeConfigurationResponse = zod.object({
|
|
7731
7925
|
"canBeChanged": zod.enum(["True", "False", "FalseWithHelpText"]),
|
|
7732
7926
|
"documentListViewId": zod.string().uuid(),
|
|
@@ -7767,6 +7961,9 @@ var getFilterDataTypeResponse = zod.object({
|
|
|
7767
7961
|
"total": zod.number(),
|
|
7768
7962
|
"items": zod.array(zod.object({
|
|
7769
7963
|
"id": zod.string().uuid(),
|
|
7964
|
+
"flags": zod.array(zod.object({
|
|
7965
|
+
"alias": zod.string()
|
|
7966
|
+
})),
|
|
7770
7967
|
"name": zod.string(),
|
|
7771
7968
|
"editorUiAlias": zod.string().nullish(),
|
|
7772
7969
|
"editorAlias": zod.string(),
|
|
@@ -7778,6 +7975,9 @@ var getItemDataTypeQueryParams = zod.object({
|
|
|
7778
7975
|
});
|
|
7779
7976
|
var getItemDataTypeResponseItem = zod.object({
|
|
7780
7977
|
"id": zod.string().uuid(),
|
|
7978
|
+
"flags": zod.array(zod.object({
|
|
7979
|
+
"alias": zod.string()
|
|
7980
|
+
})),
|
|
7781
7981
|
"name": zod.string(),
|
|
7782
7982
|
"editorUiAlias": zod.string().nullish(),
|
|
7783
7983
|
"editorAlias": zod.string(),
|
|
@@ -7793,6 +7993,9 @@ var getItemDataTypeSearchQueryParams = zod.object({
|
|
|
7793
7993
|
var getItemDataTypeSearchResponse = zod.object({
|
|
7794
7994
|
"items": zod.array(zod.object({
|
|
7795
7995
|
"id": zod.string().uuid(),
|
|
7996
|
+
"flags": zod.array(zod.object({
|
|
7997
|
+
"alias": zod.string()
|
|
7998
|
+
})),
|
|
7796
7999
|
"name": zod.string(),
|
|
7797
8000
|
"editorUiAlias": zod.string().nullish(),
|
|
7798
8001
|
"editorAlias": zod.string(),
|
|
@@ -7809,6 +8012,9 @@ var getTreeDataTypeAncestorsResponseItem = zod.object({
|
|
|
7809
8012
|
"parent": zod.object({
|
|
7810
8013
|
"id": zod.string().uuid()
|
|
7811
8014
|
}).nullish(),
|
|
8015
|
+
"flags": zod.array(zod.object({
|
|
8016
|
+
"alias": zod.string()
|
|
8017
|
+
})),
|
|
7812
8018
|
"name": zod.string(),
|
|
7813
8019
|
"isFolder": zod.boolean(),
|
|
7814
8020
|
"editorUiAlias": zod.string().nullish(),
|
|
@@ -7830,6 +8036,9 @@ var getTreeDataTypeChildrenResponse = zod.object({
|
|
|
7830
8036
|
"parent": zod.object({
|
|
7831
8037
|
"id": zod.string().uuid()
|
|
7832
8038
|
}).nullish(),
|
|
8039
|
+
"flags": zod.array(zod.object({
|
|
8040
|
+
"alias": zod.string()
|
|
8041
|
+
})),
|
|
7833
8042
|
"name": zod.string(),
|
|
7834
8043
|
"isFolder": zod.boolean(),
|
|
7835
8044
|
"editorUiAlias": zod.string().nullish(),
|
|
@@ -7850,6 +8059,33 @@ var getTreeDataTypeRootResponse = zod.object({
|
|
|
7850
8059
|
"parent": zod.object({
|
|
7851
8060
|
"id": zod.string().uuid()
|
|
7852
8061
|
}).nullish(),
|
|
8062
|
+
"flags": zod.array(zod.object({
|
|
8063
|
+
"alias": zod.string()
|
|
8064
|
+
})),
|
|
8065
|
+
"name": zod.string(),
|
|
8066
|
+
"isFolder": zod.boolean(),
|
|
8067
|
+
"editorUiAlias": zod.string().nullish(),
|
|
8068
|
+
"isDeletable": zod.boolean()
|
|
8069
|
+
}))
|
|
8070
|
+
});
|
|
8071
|
+
var getTreeDataTypeSiblingsQueryParams = zod.object({
|
|
8072
|
+
"target": zod.string().uuid().optional(),
|
|
8073
|
+
"before": zod.coerce.number().optional(),
|
|
8074
|
+
"after": zod.coerce.number().optional(),
|
|
8075
|
+
"foldersOnly": zod.coerce.boolean().optional()
|
|
8076
|
+
});
|
|
8077
|
+
var getTreeDataTypeSiblingsResponse = zod.object({
|
|
8078
|
+
"totalBefore": zod.number(),
|
|
8079
|
+
"totalAfter": zod.number(),
|
|
8080
|
+
"items": zod.array(zod.object({
|
|
8081
|
+
"hasChildren": zod.boolean(),
|
|
8082
|
+
"id": zod.string().uuid(),
|
|
8083
|
+
"parent": zod.object({
|
|
8084
|
+
"id": zod.string().uuid()
|
|
8085
|
+
}).nullish(),
|
|
8086
|
+
"flags": zod.array(zod.object({
|
|
8087
|
+
"alias": zod.string()
|
|
8088
|
+
})),
|
|
7853
8089
|
"name": zod.string(),
|
|
7854
8090
|
"isFolder": zod.boolean(),
|
|
7855
8091
|
"editorUiAlias": zod.string().nullish(),
|
|
@@ -7936,6 +8172,9 @@ var getItemDictionaryQueryParams = zod.object({
|
|
|
7936
8172
|
});
|
|
7937
8173
|
var getItemDictionaryResponseItem = zod.object({
|
|
7938
8174
|
"id": zod.string().uuid(),
|
|
8175
|
+
"flags": zod.array(zod.object({
|
|
8176
|
+
"alias": zod.string()
|
|
8177
|
+
})),
|
|
7939
8178
|
"name": zod.string()
|
|
7940
8179
|
});
|
|
7941
8180
|
var getItemDictionaryResponse = zod.array(getItemDictionaryResponseItem);
|
|
@@ -7948,6 +8187,9 @@ var getTreeDictionaryAncestorsResponseItem = zod.object({
|
|
|
7948
8187
|
"parent": zod.object({
|
|
7949
8188
|
"id": zod.string().uuid()
|
|
7950
8189
|
}).nullish(),
|
|
8190
|
+
"flags": zod.array(zod.object({
|
|
8191
|
+
"alias": zod.string()
|
|
8192
|
+
})),
|
|
7951
8193
|
"name": zod.string()
|
|
7952
8194
|
});
|
|
7953
8195
|
var getTreeDictionaryAncestorsResponse = zod.array(getTreeDictionaryAncestorsResponseItem);
|
|
@@ -7965,6 +8207,9 @@ var getTreeDictionaryChildrenResponse = zod.object({
|
|
|
7965
8207
|
"parent": zod.object({
|
|
7966
8208
|
"id": zod.string().uuid()
|
|
7967
8209
|
}).nullish(),
|
|
8210
|
+
"flags": zod.array(zod.object({
|
|
8211
|
+
"alias": zod.string()
|
|
8212
|
+
})),
|
|
7968
8213
|
"name": zod.string()
|
|
7969
8214
|
}))
|
|
7970
8215
|
});
|
|
@@ -7981,6 +8226,9 @@ var getTreeDictionaryRootResponse = zod.object({
|
|
|
7981
8226
|
"parent": zod.object({
|
|
7982
8227
|
"id": zod.string().uuid()
|
|
7983
8228
|
}).nullish(),
|
|
8229
|
+
"flags": zod.array(zod.object({
|
|
8230
|
+
"alias": zod.string()
|
|
8231
|
+
})),
|
|
7984
8232
|
"name": zod.string()
|
|
7985
8233
|
}))
|
|
7986
8234
|
});
|
|
@@ -8021,12 +8269,19 @@ var getDocumentBlueprintByIdResponse = zod.object({
|
|
|
8021
8269
|
"name": zod.string().min(1),
|
|
8022
8270
|
"createDate": zod.string().datetime({ "local": true }),
|
|
8023
8271
|
"updateDate": zod.string().datetime({ "local": true }),
|
|
8024
|
-
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges"]),
|
|
8272
|
+
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"]),
|
|
8025
8273
|
"publishDate": zod.string().datetime({ "local": true }).nullish(),
|
|
8026
8274
|
"scheduledPublishDate": zod.string().datetime({ "local": true }).nullish(),
|
|
8027
|
-
"scheduledUnpublishDate": zod.string().datetime({ "local": true }).nullish()
|
|
8275
|
+
"scheduledUnpublishDate": zod.string().datetime({ "local": true }).nullish(),
|
|
8276
|
+
"id": zod.string().uuid(),
|
|
8277
|
+
"flags": zod.array(zod.object({
|
|
8278
|
+
"alias": zod.string()
|
|
8279
|
+
}))
|
|
8028
8280
|
})),
|
|
8029
8281
|
"id": zod.string().uuid(),
|
|
8282
|
+
"flags": zod.array(zod.object({
|
|
8283
|
+
"alias": zod.string()
|
|
8284
|
+
})),
|
|
8030
8285
|
"documentType": zod.object({
|
|
8031
8286
|
"id": zod.string().uuid(),
|
|
8032
8287
|
"icon": zod.string(),
|
|
@@ -8079,12 +8334,19 @@ var getDocumentBlueprintByIdScaffoldResponse = zod.object({
|
|
|
8079
8334
|
"name": zod.string().min(1),
|
|
8080
8335
|
"createDate": zod.string().datetime({ "local": true }),
|
|
8081
8336
|
"updateDate": zod.string().datetime({ "local": true }),
|
|
8082
|
-
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges"]),
|
|
8337
|
+
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"]),
|
|
8083
8338
|
"publishDate": zod.string().datetime({ "local": true }).nullish(),
|
|
8084
8339
|
"scheduledPublishDate": zod.string().datetime({ "local": true }).nullish(),
|
|
8085
|
-
"scheduledUnpublishDate": zod.string().datetime({ "local": true }).nullish()
|
|
8340
|
+
"scheduledUnpublishDate": zod.string().datetime({ "local": true }).nullish(),
|
|
8341
|
+
"id": zod.string().uuid(),
|
|
8342
|
+
"flags": zod.array(zod.object({
|
|
8343
|
+
"alias": zod.string()
|
|
8344
|
+
}))
|
|
8086
8345
|
})),
|
|
8087
8346
|
"id": zod.string().uuid(),
|
|
8347
|
+
"flags": zod.array(zod.object({
|
|
8348
|
+
"alias": zod.string()
|
|
8349
|
+
})),
|
|
8088
8350
|
"documentType": zod.object({
|
|
8089
8351
|
"id": zod.string().uuid(),
|
|
8090
8352
|
"icon": zod.string(),
|
|
@@ -8131,6 +8393,9 @@ var getItemDocumentBlueprintQueryParams = zod.object({
|
|
|
8131
8393
|
});
|
|
8132
8394
|
var getItemDocumentBlueprintResponseItem = zod.object({
|
|
8133
8395
|
"id": zod.string().uuid(),
|
|
8396
|
+
"flags": zod.array(zod.object({
|
|
8397
|
+
"alias": zod.string()
|
|
8398
|
+
})),
|
|
8134
8399
|
"name": zod.string(),
|
|
8135
8400
|
"documentType": zod.object({
|
|
8136
8401
|
"id": zod.string().uuid(),
|
|
@@ -8150,6 +8415,9 @@ var getTreeDocumentBlueprintAncestorsResponseItem = zod.object({
|
|
|
8150
8415
|
"parent": zod.object({
|
|
8151
8416
|
"id": zod.string().uuid()
|
|
8152
8417
|
}).nullish(),
|
|
8418
|
+
"flags": zod.array(zod.object({
|
|
8419
|
+
"alias": zod.string()
|
|
8420
|
+
})),
|
|
8153
8421
|
"name": zod.string(),
|
|
8154
8422
|
"isFolder": zod.boolean(),
|
|
8155
8423
|
"documentType": zod.object({
|
|
@@ -8176,6 +8444,9 @@ var getTreeDocumentBlueprintChildrenResponse = zod.object({
|
|
|
8176
8444
|
"parent": zod.object({
|
|
8177
8445
|
"id": zod.string().uuid()
|
|
8178
8446
|
}).nullish(),
|
|
8447
|
+
"flags": zod.array(zod.object({
|
|
8448
|
+
"alias": zod.string()
|
|
8449
|
+
})),
|
|
8179
8450
|
"name": zod.string(),
|
|
8180
8451
|
"isFolder": zod.boolean(),
|
|
8181
8452
|
"documentType": zod.object({
|
|
@@ -8201,6 +8472,9 @@ var getTreeDocumentBlueprintRootResponse = zod.object({
|
|
|
8201
8472
|
"parent": zod.object({
|
|
8202
8473
|
"id": zod.string().uuid()
|
|
8203
8474
|
}).nullish(),
|
|
8475
|
+
"flags": zod.array(zod.object({
|
|
8476
|
+
"alias": zod.string()
|
|
8477
|
+
})),
|
|
8204
8478
|
"name": zod.string(),
|
|
8205
8479
|
"isFolder": zod.boolean(),
|
|
8206
8480
|
"documentType": zod.object({
|
|
@@ -8212,19 +8486,48 @@ var getTreeDocumentBlueprintRootResponse = zod.object({
|
|
|
8212
8486
|
}).nullish()
|
|
8213
8487
|
}))
|
|
8214
8488
|
});
|
|
8215
|
-
var
|
|
8216
|
-
"
|
|
8217
|
-
"
|
|
8218
|
-
"
|
|
8219
|
-
"
|
|
8220
|
-
|
|
8221
|
-
|
|
8222
|
-
"
|
|
8223
|
-
"
|
|
8224
|
-
|
|
8225
|
-
|
|
8226
|
-
|
|
8227
|
-
|
|
8489
|
+
var getTreeDocumentBlueprintSiblingsQueryParams = zod.object({
|
|
8490
|
+
"target": zod.string().uuid().optional(),
|
|
8491
|
+
"before": zod.coerce.number().optional(),
|
|
8492
|
+
"after": zod.coerce.number().optional(),
|
|
8493
|
+
"foldersOnly": zod.coerce.boolean().optional()
|
|
8494
|
+
});
|
|
8495
|
+
var getTreeDocumentBlueprintSiblingsResponse = zod.object({
|
|
8496
|
+
"totalBefore": zod.number(),
|
|
8497
|
+
"totalAfter": zod.number(),
|
|
8498
|
+
"items": zod.array(zod.object({
|
|
8499
|
+
"hasChildren": zod.boolean(),
|
|
8500
|
+
"id": zod.string().uuid(),
|
|
8501
|
+
"parent": zod.object({
|
|
8502
|
+
"id": zod.string().uuid()
|
|
8503
|
+
}).nullish(),
|
|
8504
|
+
"flags": zod.array(zod.object({
|
|
8505
|
+
"alias": zod.string()
|
|
8506
|
+
})),
|
|
8507
|
+
"name": zod.string(),
|
|
8508
|
+
"isFolder": zod.boolean(),
|
|
8509
|
+
"documentType": zod.object({
|
|
8510
|
+
"id": zod.string().uuid(),
|
|
8511
|
+
"icon": zod.string(),
|
|
8512
|
+
"collection": zod.object({
|
|
8513
|
+
"id": zod.string().uuid()
|
|
8514
|
+
}).nullish()
|
|
8515
|
+
}).nullish()
|
|
8516
|
+
}))
|
|
8517
|
+
});
|
|
8518
|
+
var postDocumentTypeBody = zod.object({
|
|
8519
|
+
"alias": zod.string().min(1),
|
|
8520
|
+
"name": zod.string().min(1),
|
|
8521
|
+
"description": zod.string().nullish(),
|
|
8522
|
+
"icon": zod.string().min(1),
|
|
8523
|
+
"allowedAsRoot": zod.boolean(),
|
|
8524
|
+
"variesByCulture": zod.boolean(),
|
|
8525
|
+
"variesBySegment": zod.boolean(),
|
|
8526
|
+
"collection": zod.object({
|
|
8527
|
+
"id": zod.string().uuid()
|
|
8528
|
+
}).nullish(),
|
|
8529
|
+
"isElement": zod.boolean(),
|
|
8530
|
+
"properties": zod.array(zod.object({
|
|
8228
8531
|
"id": zod.string().uuid(),
|
|
8229
8532
|
"container": zod.object({
|
|
8230
8533
|
"id": zod.string().uuid()
|
|
@@ -8463,6 +8766,9 @@ var getDocumentTypeByIdBlueprintResponse = zod.object({
|
|
|
8463
8766
|
"total": zod.number(),
|
|
8464
8767
|
"items": zod.array(zod.object({
|
|
8465
8768
|
"id": zod.string().uuid(),
|
|
8769
|
+
"flags": zod.array(zod.object({
|
|
8770
|
+
"alias": zod.string()
|
|
8771
|
+
})),
|
|
8466
8772
|
"name": zod.string()
|
|
8467
8773
|
}))
|
|
8468
8774
|
});
|
|
@@ -8570,6 +8876,9 @@ var getItemDocumentTypeQueryParams = zod.object({
|
|
|
8570
8876
|
});
|
|
8571
8877
|
var getItemDocumentTypeResponseItem = zod.object({
|
|
8572
8878
|
"id": zod.string().uuid(),
|
|
8879
|
+
"flags": zod.array(zod.object({
|
|
8880
|
+
"alias": zod.string()
|
|
8881
|
+
})),
|
|
8573
8882
|
"name": zod.string(),
|
|
8574
8883
|
"isElement": zod.boolean(),
|
|
8575
8884
|
"icon": zod.string().nullish(),
|
|
@@ -8586,6 +8895,9 @@ var getItemDocumentTypeSearchQueryParams = zod.object({
|
|
|
8586
8895
|
var getItemDocumentTypeSearchResponse = zod.object({
|
|
8587
8896
|
"items": zod.array(zod.object({
|
|
8588
8897
|
"id": zod.string().uuid(),
|
|
8898
|
+
"flags": zod.array(zod.object({
|
|
8899
|
+
"alias": zod.string()
|
|
8900
|
+
})),
|
|
8589
8901
|
"name": zod.string(),
|
|
8590
8902
|
"isElement": zod.boolean(),
|
|
8591
8903
|
"icon": zod.string().nullish(),
|
|
@@ -8602,6 +8914,9 @@ var getTreeDocumentTypeAncestorsResponseItem = zod.object({
|
|
|
8602
8914
|
"parent": zod.object({
|
|
8603
8915
|
"id": zod.string().uuid()
|
|
8604
8916
|
}).nullish(),
|
|
8917
|
+
"flags": zod.array(zod.object({
|
|
8918
|
+
"alias": zod.string()
|
|
8919
|
+
})),
|
|
8605
8920
|
"name": zod.string(),
|
|
8606
8921
|
"isFolder": zod.boolean(),
|
|
8607
8922
|
"isElement": zod.boolean(),
|
|
@@ -8623,6 +8938,9 @@ var getTreeDocumentTypeChildrenResponse = zod.object({
|
|
|
8623
8938
|
"parent": zod.object({
|
|
8624
8939
|
"id": zod.string().uuid()
|
|
8625
8940
|
}).nullish(),
|
|
8941
|
+
"flags": zod.array(zod.object({
|
|
8942
|
+
"alias": zod.string()
|
|
8943
|
+
})),
|
|
8626
8944
|
"name": zod.string(),
|
|
8627
8945
|
"isFolder": zod.boolean(),
|
|
8628
8946
|
"isElement": zod.boolean(),
|
|
@@ -8643,6 +8961,33 @@ var getTreeDocumentTypeRootResponse = zod.object({
|
|
|
8643
8961
|
"parent": zod.object({
|
|
8644
8962
|
"id": zod.string().uuid()
|
|
8645
8963
|
}).nullish(),
|
|
8964
|
+
"flags": zod.array(zod.object({
|
|
8965
|
+
"alias": zod.string()
|
|
8966
|
+
})),
|
|
8967
|
+
"name": zod.string(),
|
|
8968
|
+
"isFolder": zod.boolean(),
|
|
8969
|
+
"isElement": zod.boolean(),
|
|
8970
|
+
"icon": zod.string()
|
|
8971
|
+
}))
|
|
8972
|
+
});
|
|
8973
|
+
var getTreeDocumentTypeSiblingsQueryParams = zod.object({
|
|
8974
|
+
"target": zod.string().uuid().optional(),
|
|
8975
|
+
"before": zod.coerce.number().optional(),
|
|
8976
|
+
"after": zod.coerce.number().optional(),
|
|
8977
|
+
"foldersOnly": zod.coerce.boolean().optional()
|
|
8978
|
+
});
|
|
8979
|
+
var getTreeDocumentTypeSiblingsResponse = zod.object({
|
|
8980
|
+
"totalBefore": zod.number(),
|
|
8981
|
+
"totalAfter": zod.number(),
|
|
8982
|
+
"items": zod.array(zod.object({
|
|
8983
|
+
"hasChildren": zod.boolean(),
|
|
8984
|
+
"id": zod.string().uuid(),
|
|
8985
|
+
"parent": zod.object({
|
|
8986
|
+
"id": zod.string().uuid()
|
|
8987
|
+
}).nullish(),
|
|
8988
|
+
"flags": zod.array(zod.object({
|
|
8989
|
+
"alias": zod.string()
|
|
8990
|
+
})),
|
|
8646
8991
|
"name": zod.string(),
|
|
8647
8992
|
"isFolder": zod.boolean(),
|
|
8648
8993
|
"isElement": zod.boolean(),
|
|
@@ -8692,12 +9037,19 @@ var getDocumentVersionByIdResponse = zod.object({
|
|
|
8692
9037
|
"name": zod.string().min(1),
|
|
8693
9038
|
"createDate": zod.string().datetime({ "local": true }),
|
|
8694
9039
|
"updateDate": zod.string().datetime({ "local": true }),
|
|
8695
|
-
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges"]),
|
|
9040
|
+
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"]),
|
|
8696
9041
|
"publishDate": zod.string().datetime({ "local": true }).nullish(),
|
|
8697
9042
|
"scheduledPublishDate": zod.string().datetime({ "local": true }).nullish(),
|
|
8698
|
-
"scheduledUnpublishDate": zod.string().datetime({ "local": true }).nullish()
|
|
9043
|
+
"scheduledUnpublishDate": zod.string().datetime({ "local": true }).nullish(),
|
|
9044
|
+
"id": zod.string().uuid(),
|
|
9045
|
+
"flags": zod.array(zod.object({
|
|
9046
|
+
"alias": zod.string()
|
|
9047
|
+
}))
|
|
8699
9048
|
})),
|
|
8700
9049
|
"id": zod.string().uuid(),
|
|
9050
|
+
"flags": zod.array(zod.object({
|
|
9051
|
+
"alias": zod.string()
|
|
9052
|
+
})),
|
|
8701
9053
|
"documentType": zod.object({
|
|
8702
9054
|
"id": zod.string().uuid(),
|
|
8703
9055
|
"icon": zod.string(),
|
|
@@ -8751,18 +9103,28 @@ var getCollectionDocumentByIdResponse = zod.object({
|
|
|
8751
9103
|
"name": zod.string().min(1),
|
|
8752
9104
|
"createDate": zod.string().datetime({ "local": true }),
|
|
8753
9105
|
"updateDate": zod.string().datetime({ "local": true }),
|
|
8754
|
-
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges"]),
|
|
9106
|
+
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"]),
|
|
8755
9107
|
"publishDate": zod.string().datetime({ "local": true }).nullish(),
|
|
8756
9108
|
"scheduledPublishDate": zod.string().datetime({ "local": true }).nullish(),
|
|
8757
|
-
"scheduledUnpublishDate": zod.string().datetime({ "local": true }).nullish()
|
|
9109
|
+
"scheduledUnpublishDate": zod.string().datetime({ "local": true }).nullish(),
|
|
9110
|
+
"id": zod.string().uuid(),
|
|
9111
|
+
"flags": zod.array(zod.object({
|
|
9112
|
+
"alias": zod.string()
|
|
9113
|
+
}))
|
|
8758
9114
|
})),
|
|
8759
9115
|
"id": zod.string().uuid(),
|
|
9116
|
+
"flags": zod.array(zod.object({
|
|
9117
|
+
"alias": zod.string()
|
|
9118
|
+
})),
|
|
8760
9119
|
"creator": zod.string().nullish(),
|
|
8761
9120
|
"sortOrder": zod.number(),
|
|
8762
9121
|
"documentType": zod.object({
|
|
8763
9122
|
"id": zod.string().uuid(),
|
|
8764
9123
|
"alias": zod.string(),
|
|
8765
|
-
"icon": zod.string()
|
|
9124
|
+
"icon": zod.string(),
|
|
9125
|
+
"collection": zod.object({
|
|
9126
|
+
"id": zod.string().uuid()
|
|
9127
|
+
}).nullish()
|
|
8766
9128
|
}),
|
|
8767
9129
|
"isTrashed": zod.boolean(),
|
|
8768
9130
|
"isProtected": zod.boolean(),
|
|
@@ -8812,12 +9174,19 @@ var getDocumentByIdResponse = zod.object({
|
|
|
8812
9174
|
"name": zod.string().min(1),
|
|
8813
9175
|
"createDate": zod.string().datetime({ "local": true }),
|
|
8814
9176
|
"updateDate": zod.string().datetime({ "local": true }),
|
|
8815
|
-
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges"]),
|
|
9177
|
+
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"]),
|
|
8816
9178
|
"publishDate": zod.string().datetime({ "local": true }).nullish(),
|
|
8817
9179
|
"scheduledPublishDate": zod.string().datetime({ "local": true }).nullish(),
|
|
8818
|
-
"scheduledUnpublishDate": zod.string().datetime({ "local": true }).nullish()
|
|
9180
|
+
"scheduledUnpublishDate": zod.string().datetime({ "local": true }).nullish(),
|
|
9181
|
+
"id": zod.string().uuid(),
|
|
9182
|
+
"flags": zod.array(zod.object({
|
|
9183
|
+
"alias": zod.string()
|
|
9184
|
+
}))
|
|
8819
9185
|
})),
|
|
8820
9186
|
"id": zod.string().uuid(),
|
|
9187
|
+
"flags": zod.array(zod.object({
|
|
9188
|
+
"alias": zod.string()
|
|
9189
|
+
})),
|
|
8821
9190
|
"documentType": zod.object({
|
|
8822
9191
|
"id": zod.string().uuid(),
|
|
8823
9192
|
"icon": zod.string(),
|
|
@@ -8825,10 +9194,6 @@ var getDocumentByIdResponse = zod.object({
|
|
|
8825
9194
|
"id": zod.string().uuid()
|
|
8826
9195
|
}).nullish()
|
|
8827
9196
|
}),
|
|
8828
|
-
"urls": zod.array(zod.object({
|
|
8829
|
-
"culture": zod.string().nullable(),
|
|
8830
|
-
"url": zod.string()
|
|
8831
|
-
})),
|
|
8832
9197
|
"template": zod.object({
|
|
8833
9198
|
"id": zod.string().uuid()
|
|
8834
9199
|
}).nullish(),
|
|
@@ -8878,6 +9243,22 @@ var getDocumentByIdAuditLogResponse = zod.object({
|
|
|
8878
9243
|
"parameters": zod.string().nullish()
|
|
8879
9244
|
}))
|
|
8880
9245
|
});
|
|
9246
|
+
var getDocumentByIdAvailableSegmentOptionsParams = zod.object({
|
|
9247
|
+
"id": zod.string().uuid()
|
|
9248
|
+
});
|
|
9249
|
+
var getDocumentByIdAvailableSegmentOptionsQueryTakeDefault = 100;
|
|
9250
|
+
var getDocumentByIdAvailableSegmentOptionsQueryParams = zod.object({
|
|
9251
|
+
"skip": zod.coerce.number().optional(),
|
|
9252
|
+
"take": zod.coerce.number().default(getDocumentByIdAvailableSegmentOptionsQueryTakeDefault)
|
|
9253
|
+
});
|
|
9254
|
+
var getDocumentByIdAvailableSegmentOptionsResponse = zod.object({
|
|
9255
|
+
"total": zod.number(),
|
|
9256
|
+
"items": zod.array(zod.object({
|
|
9257
|
+
"name": zod.string(),
|
|
9258
|
+
"alias": zod.string(),
|
|
9259
|
+
"cultures": zod.array(zod.string()).nullish()
|
|
9260
|
+
}))
|
|
9261
|
+
});
|
|
8881
9262
|
var postDocumentByIdCopyParams = zod.object({
|
|
8882
9263
|
"id": zod.string().uuid()
|
|
8883
9264
|
});
|
|
@@ -8934,6 +9315,20 @@ var putDocumentByIdNotificationsParams = zod.object({
|
|
|
8934
9315
|
var putDocumentByIdNotificationsBody = zod.object({
|
|
8935
9316
|
"subscribedActionIds": zod.array(zod.string())
|
|
8936
9317
|
});
|
|
9318
|
+
var getDocumentByIdPreviewUrlParams = zod.object({
|
|
9319
|
+
"id": zod.string().uuid()
|
|
9320
|
+
});
|
|
9321
|
+
var getDocumentByIdPreviewUrlQueryParams = zod.object({
|
|
9322
|
+
"providerAlias": zod.string().optional(),
|
|
9323
|
+
"culture": zod.string().optional(),
|
|
9324
|
+
"segment": zod.string().optional()
|
|
9325
|
+
});
|
|
9326
|
+
var getDocumentByIdPreviewUrlResponse = zod.object({
|
|
9327
|
+
"culture": zod.string().nullable(),
|
|
9328
|
+
"url": zod.string().nullable(),
|
|
9329
|
+
"message": zod.string().nullable(),
|
|
9330
|
+
"provider": zod.string()
|
|
9331
|
+
});
|
|
8937
9332
|
var postDocumentByIdPublicAccessParams = zod.object({
|
|
8938
9333
|
"id": zod.string().uuid()
|
|
8939
9334
|
});
|
|
@@ -8962,6 +9357,9 @@ var getDocumentByIdPublicAccessResponse = zod.object({
|
|
|
8962
9357
|
}),
|
|
8963
9358
|
"members": zod.array(zod.object({
|
|
8964
9359
|
"id": zod.string().uuid(),
|
|
9360
|
+
"flags": zod.array(zod.object({
|
|
9361
|
+
"alias": zod.string()
|
|
9362
|
+
})),
|
|
8965
9363
|
"memberType": zod.object({
|
|
8966
9364
|
"id": zod.string().uuid(),
|
|
8967
9365
|
"icon": zod.string(),
|
|
@@ -8977,6 +9375,9 @@ var getDocumentByIdPublicAccessResponse = zod.object({
|
|
|
8977
9375
|
})),
|
|
8978
9376
|
"groups": zod.array(zod.object({
|
|
8979
9377
|
"id": zod.string().uuid(),
|
|
9378
|
+
"flags": zod.array(zod.object({
|
|
9379
|
+
"alias": zod.string()
|
|
9380
|
+
})),
|
|
8980
9381
|
"name": zod.string()
|
|
8981
9382
|
}))
|
|
8982
9383
|
});
|
|
@@ -9041,12 +9442,19 @@ var getDocumentByIdPublishedResponse = zod.object({
|
|
|
9041
9442
|
"name": zod.string().min(1),
|
|
9042
9443
|
"createDate": zod.string().datetime({ "local": true }),
|
|
9043
9444
|
"updateDate": zod.string().datetime({ "local": true }),
|
|
9044
|
-
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges"]),
|
|
9445
|
+
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"]),
|
|
9045
9446
|
"publishDate": zod.string().datetime({ "local": true }).nullish(),
|
|
9046
9447
|
"scheduledPublishDate": zod.string().datetime({ "local": true }).nullish(),
|
|
9047
|
-
"scheduledUnpublishDate": zod.string().datetime({ "local": true }).nullish()
|
|
9448
|
+
"scheduledUnpublishDate": zod.string().datetime({ "local": true }).nullish(),
|
|
9449
|
+
"id": zod.string().uuid(),
|
|
9450
|
+
"flags": zod.array(zod.object({
|
|
9451
|
+
"alias": zod.string()
|
|
9452
|
+
}))
|
|
9048
9453
|
})),
|
|
9049
9454
|
"id": zod.string().uuid(),
|
|
9455
|
+
"flags": zod.array(zod.object({
|
|
9456
|
+
"alias": zod.string()
|
|
9457
|
+
})),
|
|
9050
9458
|
"documentType": zod.object({
|
|
9051
9459
|
"id": zod.string().uuid(),
|
|
9052
9460
|
"icon": zod.string(),
|
|
@@ -9054,10 +9462,6 @@ var getDocumentByIdPublishedResponse = zod.object({
|
|
|
9054
9462
|
"id": zod.string().uuid()
|
|
9055
9463
|
}).nullish()
|
|
9056
9464
|
}),
|
|
9057
|
-
"urls": zod.array(zod.object({
|
|
9058
|
-
"culture": zod.string().nullable(),
|
|
9059
|
-
"url": zod.string()
|
|
9060
|
-
})),
|
|
9061
9465
|
"template": zod.object({
|
|
9062
9466
|
"id": zod.string().uuid()
|
|
9063
9467
|
}).nullish(),
|
|
@@ -9093,7 +9497,11 @@ var getDocumentByIdReferencedByResponse = zod.object({
|
|
|
9093
9497
|
"variants": zod.array(zod.object({
|
|
9094
9498
|
"name": zod.string(),
|
|
9095
9499
|
"culture": zod.string().nullish(),
|
|
9096
|
-
"
|
|
9500
|
+
"id": zod.string().uuid(),
|
|
9501
|
+
"flags": zod.array(zod.object({
|
|
9502
|
+
"alias": zod.string()
|
|
9503
|
+
})),
|
|
9504
|
+
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
|
|
9097
9505
|
}))
|
|
9098
9506
|
})).or(zod.object({
|
|
9099
9507
|
"$type": zod.enum(["DocumentTypePropertyTypeReferenceResponseModel"]),
|
|
@@ -9224,7 +9632,9 @@ var getDocumentUrlsResponseItem = zod.object({
|
|
|
9224
9632
|
"id": zod.string().uuid(),
|
|
9225
9633
|
"urlInfos": zod.array(zod.object({
|
|
9226
9634
|
"culture": zod.string().nullable(),
|
|
9227
|
-
"url": zod.string()
|
|
9635
|
+
"url": zod.string().nullable(),
|
|
9636
|
+
"message": zod.string().nullable(),
|
|
9637
|
+
"provider": zod.string()
|
|
9228
9638
|
}))
|
|
9229
9639
|
});
|
|
9230
9640
|
var getDocumentUrlsResponse = zod.array(getDocumentUrlsResponseItem);
|
|
@@ -9256,6 +9666,9 @@ var getItemDocumentQueryParams = zod.object({
|
|
|
9256
9666
|
});
|
|
9257
9667
|
var getItemDocumentResponseItem = zod.object({
|
|
9258
9668
|
"id": zod.string().uuid(),
|
|
9669
|
+
"flags": zod.array(zod.object({
|
|
9670
|
+
"alias": zod.string()
|
|
9671
|
+
})),
|
|
9259
9672
|
"isTrashed": zod.boolean(),
|
|
9260
9673
|
"isProtected": zod.boolean(),
|
|
9261
9674
|
"parent": zod.object({
|
|
@@ -9272,7 +9685,11 @@ var getItemDocumentResponseItem = zod.object({
|
|
|
9272
9685
|
"variants": zod.array(zod.object({
|
|
9273
9686
|
"name": zod.string(),
|
|
9274
9687
|
"culture": zod.string().nullish(),
|
|
9275
|
-
"
|
|
9688
|
+
"id": zod.string().uuid(),
|
|
9689
|
+
"flags": zod.array(zod.object({
|
|
9690
|
+
"alias": zod.string()
|
|
9691
|
+
})),
|
|
9692
|
+
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
|
|
9276
9693
|
}))
|
|
9277
9694
|
});
|
|
9278
9695
|
var getItemDocumentResponse = zod.array(getItemDocumentResponseItem);
|
|
@@ -9284,11 +9701,15 @@ var getItemDocumentSearchQueryParams = zod.object({
|
|
|
9284
9701
|
"skip": zod.coerce.number().optional(),
|
|
9285
9702
|
"take": zod.coerce.number().default(getItemDocumentSearchQueryTakeDefault),
|
|
9286
9703
|
"parentId": zod.string().uuid().optional(),
|
|
9287
|
-
"allowedDocumentTypes": zod.array(zod.string().uuid()).optional()
|
|
9704
|
+
"allowedDocumentTypes": zod.array(zod.string().uuid()).optional(),
|
|
9705
|
+
"dataTypeId": zod.string().uuid().optional()
|
|
9288
9706
|
});
|
|
9289
9707
|
var getItemDocumentSearchResponse = zod.object({
|
|
9290
9708
|
"items": zod.array(zod.object({
|
|
9291
9709
|
"id": zod.string().uuid(),
|
|
9710
|
+
"flags": zod.array(zod.object({
|
|
9711
|
+
"alias": zod.string()
|
|
9712
|
+
})),
|
|
9292
9713
|
"isTrashed": zod.boolean(),
|
|
9293
9714
|
"isProtected": zod.boolean(),
|
|
9294
9715
|
"parent": zod.object({
|
|
@@ -9305,7 +9726,11 @@ var getItemDocumentSearchResponse = zod.object({
|
|
|
9305
9726
|
"variants": zod.array(zod.object({
|
|
9306
9727
|
"name": zod.string(),
|
|
9307
9728
|
"culture": zod.string().nullish(),
|
|
9308
|
-
"
|
|
9729
|
+
"id": zod.string().uuid(),
|
|
9730
|
+
"flags": zod.array(zod.object({
|
|
9731
|
+
"alias": zod.string()
|
|
9732
|
+
})),
|
|
9733
|
+
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
|
|
9309
9734
|
}))
|
|
9310
9735
|
})),
|
|
9311
9736
|
"total": zod.number()
|
|
@@ -9352,7 +9777,11 @@ var getRecycleBinDocumentChildrenResponse = zod.object({
|
|
|
9352
9777
|
"variants": zod.array(zod.object({
|
|
9353
9778
|
"name": zod.string(),
|
|
9354
9779
|
"culture": zod.string().nullish(),
|
|
9355
|
-
"
|
|
9780
|
+
"id": zod.string().uuid(),
|
|
9781
|
+
"flags": zod.array(zod.object({
|
|
9782
|
+
"alias": zod.string()
|
|
9783
|
+
})),
|
|
9784
|
+
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
|
|
9356
9785
|
}))
|
|
9357
9786
|
}))
|
|
9358
9787
|
});
|
|
@@ -9383,7 +9812,11 @@ var getRecycleBinDocumentReferencedByResponse = zod.object({
|
|
|
9383
9812
|
"variants": zod.array(zod.object({
|
|
9384
9813
|
"name": zod.string(),
|
|
9385
9814
|
"culture": zod.string().nullish(),
|
|
9386
|
-
"
|
|
9815
|
+
"id": zod.string().uuid(),
|
|
9816
|
+
"flags": zod.array(zod.object({
|
|
9817
|
+
"alias": zod.string()
|
|
9818
|
+
})),
|
|
9819
|
+
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
|
|
9387
9820
|
}))
|
|
9388
9821
|
})).or(zod.object({
|
|
9389
9822
|
"$type": zod.enum(["DocumentTypePropertyTypeReferenceResponseModel"]),
|
|
@@ -9464,7 +9897,45 @@ var getRecycleBinDocumentRootResponse = zod.object({
|
|
|
9464
9897
|
"variants": zod.array(zod.object({
|
|
9465
9898
|
"name": zod.string(),
|
|
9466
9899
|
"culture": zod.string().nullish(),
|
|
9467
|
-
"
|
|
9900
|
+
"id": zod.string().uuid(),
|
|
9901
|
+
"flags": zod.array(zod.object({
|
|
9902
|
+
"alias": zod.string()
|
|
9903
|
+
})),
|
|
9904
|
+
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
|
|
9905
|
+
}))
|
|
9906
|
+
}))
|
|
9907
|
+
});
|
|
9908
|
+
var getRecycleBinDocumentSiblingsQueryParams = zod.object({
|
|
9909
|
+
"target": zod.string().uuid().optional(),
|
|
9910
|
+
"before": zod.coerce.number().optional(),
|
|
9911
|
+
"after": zod.coerce.number().optional(),
|
|
9912
|
+
"dataTypeId": zod.string().uuid().optional()
|
|
9913
|
+
});
|
|
9914
|
+
var getRecycleBinDocumentSiblingsResponse = zod.object({
|
|
9915
|
+
"totalBefore": zod.number(),
|
|
9916
|
+
"totalAfter": zod.number(),
|
|
9917
|
+
"items": zod.array(zod.object({
|
|
9918
|
+
"id": zod.string().uuid(),
|
|
9919
|
+
"createDate": zod.string().datetime({ "local": true }),
|
|
9920
|
+
"hasChildren": zod.boolean(),
|
|
9921
|
+
"parent": zod.object({
|
|
9922
|
+
"id": zod.string().uuid()
|
|
9923
|
+
}).nullish(),
|
|
9924
|
+
"documentType": zod.object({
|
|
9925
|
+
"id": zod.string().uuid(),
|
|
9926
|
+
"icon": zod.string(),
|
|
9927
|
+
"collection": zod.object({
|
|
9928
|
+
"id": zod.string().uuid()
|
|
9929
|
+
}).nullish()
|
|
9930
|
+
}),
|
|
9931
|
+
"variants": zod.array(zod.object({
|
|
9932
|
+
"name": zod.string(),
|
|
9933
|
+
"culture": zod.string().nullish(),
|
|
9934
|
+
"id": zod.string().uuid(),
|
|
9935
|
+
"flags": zod.array(zod.object({
|
|
9936
|
+
"alias": zod.string()
|
|
9937
|
+
})),
|
|
9938
|
+
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
|
|
9468
9939
|
}))
|
|
9469
9940
|
}))
|
|
9470
9941
|
});
|
|
@@ -9473,12 +9944,15 @@ var getTreeDocumentAncestorsQueryParams = zod.object({
|
|
|
9473
9944
|
});
|
|
9474
9945
|
var getTreeDocumentAncestorsResponseItem = zod.object({
|
|
9475
9946
|
"hasChildren": zod.boolean(),
|
|
9947
|
+
"id": zod.string().uuid(),
|
|
9476
9948
|
"parent": zod.object({
|
|
9477
9949
|
"id": zod.string().uuid()
|
|
9478
9950
|
}).nullish(),
|
|
9951
|
+
"flags": zod.array(zod.object({
|
|
9952
|
+
"alias": zod.string()
|
|
9953
|
+
})),
|
|
9479
9954
|
"noAccess": zod.boolean(),
|
|
9480
9955
|
"isTrashed": zod.boolean(),
|
|
9481
|
-
"id": zod.string().uuid(),
|
|
9482
9956
|
"createDate": zod.string().datetime({ "local": true }),
|
|
9483
9957
|
"isProtected": zod.boolean(),
|
|
9484
9958
|
"ancestors": zod.array(zod.object({
|
|
@@ -9494,7 +9968,11 @@ var getTreeDocumentAncestorsResponseItem = zod.object({
|
|
|
9494
9968
|
"variants": zod.array(zod.object({
|
|
9495
9969
|
"name": zod.string(),
|
|
9496
9970
|
"culture": zod.string().nullish(),
|
|
9497
|
-
"
|
|
9971
|
+
"id": zod.string().uuid(),
|
|
9972
|
+
"flags": zod.array(zod.object({
|
|
9973
|
+
"alias": zod.string()
|
|
9974
|
+
})),
|
|
9975
|
+
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
|
|
9498
9976
|
}))
|
|
9499
9977
|
});
|
|
9500
9978
|
var getTreeDocumentAncestorsResponse = zod.array(getTreeDocumentAncestorsResponseItem);
|
|
@@ -9509,12 +9987,15 @@ var getTreeDocumentChildrenResponse = zod.object({
|
|
|
9509
9987
|
"total": zod.number(),
|
|
9510
9988
|
"items": zod.array(zod.object({
|
|
9511
9989
|
"hasChildren": zod.boolean(),
|
|
9990
|
+
"id": zod.string().uuid(),
|
|
9512
9991
|
"parent": zod.object({
|
|
9513
9992
|
"id": zod.string().uuid()
|
|
9514
9993
|
}).nullish(),
|
|
9994
|
+
"flags": zod.array(zod.object({
|
|
9995
|
+
"alias": zod.string()
|
|
9996
|
+
})),
|
|
9515
9997
|
"noAccess": zod.boolean(),
|
|
9516
9998
|
"isTrashed": zod.boolean(),
|
|
9517
|
-
"id": zod.string().uuid(),
|
|
9518
9999
|
"createDate": zod.string().datetime({ "local": true }),
|
|
9519
10000
|
"isProtected": zod.boolean(),
|
|
9520
10001
|
"ancestors": zod.array(zod.object({
|
|
@@ -9530,7 +10011,11 @@ var getTreeDocumentChildrenResponse = zod.object({
|
|
|
9530
10011
|
"variants": zod.array(zod.object({
|
|
9531
10012
|
"name": zod.string(),
|
|
9532
10013
|
"culture": zod.string().nullish(),
|
|
9533
|
-
"
|
|
10014
|
+
"id": zod.string().uuid(),
|
|
10015
|
+
"flags": zod.array(zod.object({
|
|
10016
|
+
"alias": zod.string()
|
|
10017
|
+
})),
|
|
10018
|
+
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
|
|
9534
10019
|
}))
|
|
9535
10020
|
}))
|
|
9536
10021
|
});
|
|
@@ -9544,12 +10029,58 @@ var getTreeDocumentRootResponse = zod.object({
|
|
|
9544
10029
|
"total": zod.number(),
|
|
9545
10030
|
"items": zod.array(zod.object({
|
|
9546
10031
|
"hasChildren": zod.boolean(),
|
|
10032
|
+
"id": zod.string().uuid(),
|
|
9547
10033
|
"parent": zod.object({
|
|
9548
10034
|
"id": zod.string().uuid()
|
|
9549
10035
|
}).nullish(),
|
|
10036
|
+
"flags": zod.array(zod.object({
|
|
10037
|
+
"alias": zod.string()
|
|
10038
|
+
})),
|
|
9550
10039
|
"noAccess": zod.boolean(),
|
|
9551
10040
|
"isTrashed": zod.boolean(),
|
|
10041
|
+
"createDate": zod.string().datetime({ "local": true }),
|
|
10042
|
+
"isProtected": zod.boolean(),
|
|
10043
|
+
"ancestors": zod.array(zod.object({
|
|
10044
|
+
"id": zod.string().uuid()
|
|
10045
|
+
})),
|
|
10046
|
+
"documentType": zod.object({
|
|
10047
|
+
"id": zod.string().uuid(),
|
|
10048
|
+
"icon": zod.string(),
|
|
10049
|
+
"collection": zod.object({
|
|
10050
|
+
"id": zod.string().uuid()
|
|
10051
|
+
}).nullish()
|
|
10052
|
+
}),
|
|
10053
|
+
"variants": zod.array(zod.object({
|
|
10054
|
+
"name": zod.string(),
|
|
10055
|
+
"culture": zod.string().nullish(),
|
|
10056
|
+
"id": zod.string().uuid(),
|
|
10057
|
+
"flags": zod.array(zod.object({
|
|
10058
|
+
"alias": zod.string()
|
|
10059
|
+
})),
|
|
10060
|
+
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
|
|
10061
|
+
}))
|
|
10062
|
+
}))
|
|
10063
|
+
});
|
|
10064
|
+
var getTreeDocumentSiblingsQueryParams = zod.object({
|
|
10065
|
+
"target": zod.string().uuid().optional(),
|
|
10066
|
+
"before": zod.coerce.number().optional(),
|
|
10067
|
+
"after": zod.coerce.number().optional(),
|
|
10068
|
+
"dataTypeId": zod.string().uuid().optional()
|
|
10069
|
+
});
|
|
10070
|
+
var getTreeDocumentSiblingsResponse = zod.object({
|
|
10071
|
+
"totalBefore": zod.number(),
|
|
10072
|
+
"totalAfter": zod.number(),
|
|
10073
|
+
"items": zod.array(zod.object({
|
|
10074
|
+
"hasChildren": zod.boolean(),
|
|
9552
10075
|
"id": zod.string().uuid(),
|
|
10076
|
+
"parent": zod.object({
|
|
10077
|
+
"id": zod.string().uuid()
|
|
10078
|
+
}).nullish(),
|
|
10079
|
+
"flags": zod.array(zod.object({
|
|
10080
|
+
"alias": zod.string()
|
|
10081
|
+
})),
|
|
10082
|
+
"noAccess": zod.boolean(),
|
|
10083
|
+
"isTrashed": zod.boolean(),
|
|
9553
10084
|
"createDate": zod.string().datetime({ "local": true }),
|
|
9554
10085
|
"isProtected": zod.boolean(),
|
|
9555
10086
|
"ancestors": zod.array(zod.object({
|
|
@@ -9565,7 +10096,11 @@ var getTreeDocumentRootResponse = zod.object({
|
|
|
9565
10096
|
"variants": zod.array(zod.object({
|
|
9566
10097
|
"name": zod.string(),
|
|
9567
10098
|
"culture": zod.string().nullish(),
|
|
9568
|
-
"
|
|
10099
|
+
"id": zod.string().uuid(),
|
|
10100
|
+
"flags": zod.array(zod.object({
|
|
10101
|
+
"alias": zod.string()
|
|
10102
|
+
})),
|
|
10103
|
+
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
|
|
9569
10104
|
}))
|
|
9570
10105
|
}))
|
|
9571
10106
|
});
|
|
@@ -9703,7 +10238,7 @@ var getImagingResizeUrlsResponseItem = zod.object({
|
|
|
9703
10238
|
"id": zod.string().uuid(),
|
|
9704
10239
|
"urlInfos": zod.array(zod.object({
|
|
9705
10240
|
"culture": zod.string().nullable(),
|
|
9706
|
-
"url": zod.string()
|
|
10241
|
+
"url": zod.string().nullable()
|
|
9707
10242
|
}))
|
|
9708
10243
|
});
|
|
9709
10244
|
var getImagingResizeUrlsResponse = zod.array(getImagingResizeUrlsResponseItem);
|
|
@@ -9773,6 +10308,7 @@ var getInstallSettingsResponse = zod.object({
|
|
|
9773
10308
|
"serverPlaceholder": zod.string().min(1),
|
|
9774
10309
|
"requiresCredentials": zod.boolean(),
|
|
9775
10310
|
"supportsIntegratedAuthentication": zod.boolean(),
|
|
10311
|
+
"supportsTrustServerCertificate": zod.boolean(),
|
|
9776
10312
|
"requiresConnectionTest": zod.boolean()
|
|
9777
10313
|
}))
|
|
9778
10314
|
});
|
|
@@ -9982,6 +10518,9 @@ var getItemMediaTypeQueryParams = zod.object({
|
|
|
9982
10518
|
});
|
|
9983
10519
|
var getItemMediaTypeResponseItem = zod.object({
|
|
9984
10520
|
"id": zod.string().uuid(),
|
|
10521
|
+
"flags": zod.array(zod.object({
|
|
10522
|
+
"alias": zod.string()
|
|
10523
|
+
})),
|
|
9985
10524
|
"name": zod.string(),
|
|
9986
10525
|
"icon": zod.string().nullish()
|
|
9987
10526
|
});
|
|
@@ -9995,6 +10534,9 @@ var getItemMediaTypeAllowedQueryParams = zod.object({
|
|
|
9995
10534
|
var getItemMediaTypeAllowedResponse = zod.object({
|
|
9996
10535
|
"items": zod.array(zod.object({
|
|
9997
10536
|
"id": zod.string().uuid(),
|
|
10537
|
+
"flags": zod.array(zod.object({
|
|
10538
|
+
"alias": zod.string()
|
|
10539
|
+
})),
|
|
9998
10540
|
"name": zod.string(),
|
|
9999
10541
|
"icon": zod.string().nullish()
|
|
10000
10542
|
})),
|
|
@@ -10008,6 +10550,9 @@ var getItemMediaTypeFoldersQueryParams = zod.object({
|
|
|
10008
10550
|
var getItemMediaTypeFoldersResponse = zod.object({
|
|
10009
10551
|
"items": zod.array(zod.object({
|
|
10010
10552
|
"id": zod.string().uuid(),
|
|
10553
|
+
"flags": zod.array(zod.object({
|
|
10554
|
+
"alias": zod.string()
|
|
10555
|
+
})),
|
|
10011
10556
|
"name": zod.string(),
|
|
10012
10557
|
"icon": zod.string().nullish()
|
|
10013
10558
|
})),
|
|
@@ -10022,6 +10567,9 @@ var getItemMediaTypeSearchQueryParams = zod.object({
|
|
|
10022
10567
|
var getItemMediaTypeSearchResponse = zod.object({
|
|
10023
10568
|
"items": zod.array(zod.object({
|
|
10024
10569
|
"id": zod.string().uuid(),
|
|
10570
|
+
"flags": zod.array(zod.object({
|
|
10571
|
+
"alias": zod.string()
|
|
10572
|
+
})),
|
|
10025
10573
|
"name": zod.string(),
|
|
10026
10574
|
"icon": zod.string().nullish()
|
|
10027
10575
|
})),
|
|
@@ -10339,6 +10887,9 @@ var getTreeMediaTypeAncestorsResponseItem = zod.object({
|
|
|
10339
10887
|
"parent": zod.object({
|
|
10340
10888
|
"id": zod.string().uuid()
|
|
10341
10889
|
}).nullish(),
|
|
10890
|
+
"flags": zod.array(zod.object({
|
|
10891
|
+
"alias": zod.string()
|
|
10892
|
+
})),
|
|
10342
10893
|
"name": zod.string(),
|
|
10343
10894
|
"isFolder": zod.boolean(),
|
|
10344
10895
|
"icon": zod.string(),
|
|
@@ -10360,6 +10911,9 @@ var getTreeMediaTypeChildrenResponse = zod.object({
|
|
|
10360
10911
|
"parent": zod.object({
|
|
10361
10912
|
"id": zod.string().uuid()
|
|
10362
10913
|
}).nullish(),
|
|
10914
|
+
"flags": zod.array(zod.object({
|
|
10915
|
+
"alias": zod.string()
|
|
10916
|
+
})),
|
|
10363
10917
|
"name": zod.string(),
|
|
10364
10918
|
"isFolder": zod.boolean(),
|
|
10365
10919
|
"icon": zod.string(),
|
|
@@ -10380,6 +10934,33 @@ var getTreeMediaTypeRootResponse = zod.object({
|
|
|
10380
10934
|
"parent": zod.object({
|
|
10381
10935
|
"id": zod.string().uuid()
|
|
10382
10936
|
}).nullish(),
|
|
10937
|
+
"flags": zod.array(zod.object({
|
|
10938
|
+
"alias": zod.string()
|
|
10939
|
+
})),
|
|
10940
|
+
"name": zod.string(),
|
|
10941
|
+
"isFolder": zod.boolean(),
|
|
10942
|
+
"icon": zod.string(),
|
|
10943
|
+
"isDeletable": zod.boolean()
|
|
10944
|
+
}))
|
|
10945
|
+
});
|
|
10946
|
+
var getTreeMediaTypeSiblingsQueryParams = zod.object({
|
|
10947
|
+
"target": zod.string().uuid().optional(),
|
|
10948
|
+
"before": zod.coerce.number().optional(),
|
|
10949
|
+
"after": zod.coerce.number().optional(),
|
|
10950
|
+
"foldersOnly": zod.coerce.boolean().optional()
|
|
10951
|
+
});
|
|
10952
|
+
var getTreeMediaTypeSiblingsResponse = zod.object({
|
|
10953
|
+
"totalBefore": zod.number(),
|
|
10954
|
+
"totalAfter": zod.number(),
|
|
10955
|
+
"items": zod.array(zod.object({
|
|
10956
|
+
"hasChildren": zod.boolean(),
|
|
10957
|
+
"id": zod.string().uuid(),
|
|
10958
|
+
"parent": zod.object({
|
|
10959
|
+
"id": zod.string().uuid()
|
|
10960
|
+
}).nullish(),
|
|
10961
|
+
"flags": zod.array(zod.object({
|
|
10962
|
+
"alias": zod.string()
|
|
10963
|
+
})),
|
|
10383
10964
|
"name": zod.string(),
|
|
10384
10965
|
"isFolder": zod.boolean(),
|
|
10385
10966
|
"icon": zod.string(),
|
|
@@ -10415,12 +10996,18 @@ var getCollectionMediaResponse = zod.object({
|
|
|
10415
10996
|
"updateDate": zod.string().datetime({ "local": true })
|
|
10416
10997
|
})),
|
|
10417
10998
|
"id": zod.string().uuid(),
|
|
10999
|
+
"flags": zod.array(zod.object({
|
|
11000
|
+
"alias": zod.string()
|
|
11001
|
+
})),
|
|
10418
11002
|
"creator": zod.string().nullish(),
|
|
10419
11003
|
"sortOrder": zod.number(),
|
|
10420
11004
|
"mediaType": zod.object({
|
|
10421
11005
|
"id": zod.string().uuid(),
|
|
10422
11006
|
"alias": zod.string(),
|
|
10423
|
-
"icon": zod.string()
|
|
11007
|
+
"icon": zod.string(),
|
|
11008
|
+
"collection": zod.object({
|
|
11009
|
+
"id": zod.string().uuid()
|
|
11010
|
+
}).nullish()
|
|
10424
11011
|
})
|
|
10425
11012
|
}))
|
|
10426
11013
|
});
|
|
@@ -10429,6 +11016,9 @@ var getItemMediaQueryParams = zod.object({
|
|
|
10429
11016
|
});
|
|
10430
11017
|
var getItemMediaResponseItem = zod.object({
|
|
10431
11018
|
"id": zod.string().uuid(),
|
|
11019
|
+
"flags": zod.array(zod.object({
|
|
11020
|
+
"alias": zod.string()
|
|
11021
|
+
})),
|
|
10432
11022
|
"isTrashed": zod.boolean(),
|
|
10433
11023
|
"parent": zod.object({
|
|
10434
11024
|
"id": zod.string().uuid()
|
|
@@ -10455,11 +11045,15 @@ var getItemMediaSearchQueryParams = zod.object({
|
|
|
10455
11045
|
"skip": zod.coerce.number().optional(),
|
|
10456
11046
|
"take": zod.coerce.number().default(getItemMediaSearchQueryTakeDefault),
|
|
10457
11047
|
"parentId": zod.string().uuid().optional(),
|
|
10458
|
-
"allowedMediaTypes": zod.array(zod.string().uuid()).optional()
|
|
11048
|
+
"allowedMediaTypes": zod.array(zod.string().uuid()).optional(),
|
|
11049
|
+
"dataTypeId": zod.string().uuid().optional()
|
|
10459
11050
|
});
|
|
10460
11051
|
var getItemMediaSearchResponse = zod.object({
|
|
10461
11052
|
"items": zod.array(zod.object({
|
|
10462
11053
|
"id": zod.string().uuid(),
|
|
11054
|
+
"flags": zod.array(zod.object({
|
|
11055
|
+
"alias": zod.string()
|
|
11056
|
+
})),
|
|
10463
11057
|
"isTrashed": zod.boolean(),
|
|
10464
11058
|
"parent": zod.object({
|
|
10465
11059
|
"id": zod.string().uuid()
|
|
@@ -10518,9 +11112,8 @@ var getMediaByIdResponse = zod.object({
|
|
|
10518
11112
|
"updateDate": zod.string().datetime({ "local": true })
|
|
10519
11113
|
})),
|
|
10520
11114
|
"id": zod.string().uuid(),
|
|
10521
|
-
"
|
|
10522
|
-
"
|
|
10523
|
-
"url": zod.string()
|
|
11115
|
+
"flags": zod.array(zod.object({
|
|
11116
|
+
"alias": zod.string()
|
|
10524
11117
|
})),
|
|
10525
11118
|
"isTrashed": zod.boolean(),
|
|
10526
11119
|
"mediaType": zod.object({
|
|
@@ -10613,7 +11206,11 @@ var getMediaByIdReferencedByResponse = zod.object({
|
|
|
10613
11206
|
"variants": zod.array(zod.object({
|
|
10614
11207
|
"name": zod.string(),
|
|
10615
11208
|
"culture": zod.string().nullish(),
|
|
10616
|
-
"
|
|
11209
|
+
"id": zod.string().uuid(),
|
|
11210
|
+
"flags": zod.array(zod.object({
|
|
11211
|
+
"alias": zod.string()
|
|
11212
|
+
})),
|
|
11213
|
+
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
|
|
10617
11214
|
}))
|
|
10618
11215
|
})).or(zod.object({
|
|
10619
11216
|
"$type": zod.enum(["DocumentTypePropertyTypeReferenceResponseModel"]),
|
|
@@ -10732,7 +11329,7 @@ var getMediaUrlsResponseItem = zod.object({
|
|
|
10732
11329
|
"id": zod.string().uuid(),
|
|
10733
11330
|
"urlInfos": zod.array(zod.object({
|
|
10734
11331
|
"culture": zod.string().nullable(),
|
|
10735
|
-
"url": zod.string()
|
|
11332
|
+
"url": zod.string().nullable()
|
|
10736
11333
|
}))
|
|
10737
11334
|
});
|
|
10738
11335
|
var getMediaUrlsResponse = zod.array(getMediaUrlsResponseItem);
|
|
@@ -10828,7 +11425,11 @@ var getRecycleBinMediaReferencedByResponse = zod.object({
|
|
|
10828
11425
|
"variants": zod.array(zod.object({
|
|
10829
11426
|
"name": zod.string(),
|
|
10830
11427
|
"culture": zod.string().nullish(),
|
|
10831
|
-
"
|
|
11428
|
+
"id": zod.string().uuid(),
|
|
11429
|
+
"flags": zod.array(zod.object({
|
|
11430
|
+
"alias": zod.string()
|
|
11431
|
+
})),
|
|
11432
|
+
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
|
|
10832
11433
|
}))
|
|
10833
11434
|
})).or(zod.object({
|
|
10834
11435
|
"$type": zod.enum(["DocumentTypePropertyTypeReferenceResponseModel"]),
|
|
@@ -10912,17 +11513,49 @@ var getRecycleBinMediaRootResponse = zod.object({
|
|
|
10912
11513
|
}))
|
|
10913
11514
|
}))
|
|
10914
11515
|
});
|
|
11516
|
+
var getRecycleBinMediaSiblingsQueryParams = zod.object({
|
|
11517
|
+
"target": zod.string().uuid().optional(),
|
|
11518
|
+
"before": zod.coerce.number().optional(),
|
|
11519
|
+
"after": zod.coerce.number().optional(),
|
|
11520
|
+
"dataTypeId": zod.string().uuid().optional()
|
|
11521
|
+
});
|
|
11522
|
+
var getRecycleBinMediaSiblingsResponse = zod.object({
|
|
11523
|
+
"totalBefore": zod.number(),
|
|
11524
|
+
"totalAfter": zod.number(),
|
|
11525
|
+
"items": zod.array(zod.object({
|
|
11526
|
+
"id": zod.string().uuid(),
|
|
11527
|
+
"createDate": zod.string().datetime({ "local": true }),
|
|
11528
|
+
"hasChildren": zod.boolean(),
|
|
11529
|
+
"parent": zod.object({
|
|
11530
|
+
"id": zod.string().uuid()
|
|
11531
|
+
}).nullish(),
|
|
11532
|
+
"mediaType": zod.object({
|
|
11533
|
+
"id": zod.string().uuid(),
|
|
11534
|
+
"icon": zod.string(),
|
|
11535
|
+
"collection": zod.object({
|
|
11536
|
+
"id": zod.string().uuid()
|
|
11537
|
+
}).nullish()
|
|
11538
|
+
}),
|
|
11539
|
+
"variants": zod.array(zod.object({
|
|
11540
|
+
"name": zod.string(),
|
|
11541
|
+
"culture": zod.string().nullish()
|
|
11542
|
+
}))
|
|
11543
|
+
}))
|
|
11544
|
+
});
|
|
10915
11545
|
var getTreeMediaAncestorsQueryParams = zod.object({
|
|
10916
11546
|
"descendantId": zod.string().uuid().optional()
|
|
10917
11547
|
});
|
|
10918
11548
|
var getTreeMediaAncestorsResponseItem = zod.object({
|
|
10919
11549
|
"hasChildren": zod.boolean(),
|
|
11550
|
+
"id": zod.string().uuid(),
|
|
10920
11551
|
"parent": zod.object({
|
|
10921
11552
|
"id": zod.string().uuid()
|
|
10922
11553
|
}).nullish(),
|
|
11554
|
+
"flags": zod.array(zod.object({
|
|
11555
|
+
"alias": zod.string()
|
|
11556
|
+
})),
|
|
10923
11557
|
"noAccess": zod.boolean(),
|
|
10924
11558
|
"isTrashed": zod.boolean(),
|
|
10925
|
-
"id": zod.string().uuid(),
|
|
10926
11559
|
"createDate": zod.string().datetime({ "local": true }),
|
|
10927
11560
|
"mediaType": zod.object({
|
|
10928
11561
|
"id": zod.string().uuid(),
|
|
@@ -10948,12 +11581,15 @@ var getTreeMediaChildrenResponse = zod.object({
|
|
|
10948
11581
|
"total": zod.number(),
|
|
10949
11582
|
"items": zod.array(zod.object({
|
|
10950
11583
|
"hasChildren": zod.boolean(),
|
|
11584
|
+
"id": zod.string().uuid(),
|
|
10951
11585
|
"parent": zod.object({
|
|
10952
11586
|
"id": zod.string().uuid()
|
|
10953
11587
|
}).nullish(),
|
|
11588
|
+
"flags": zod.array(zod.object({
|
|
11589
|
+
"alias": zod.string()
|
|
11590
|
+
})),
|
|
10954
11591
|
"noAccess": zod.boolean(),
|
|
10955
11592
|
"isTrashed": zod.boolean(),
|
|
10956
|
-
"id": zod.string().uuid(),
|
|
10957
11593
|
"createDate": zod.string().datetime({ "local": true }),
|
|
10958
11594
|
"mediaType": zod.object({
|
|
10959
11595
|
"id": zod.string().uuid(),
|
|
@@ -10978,12 +11614,49 @@ var getTreeMediaRootResponse = zod.object({
|
|
|
10978
11614
|
"total": zod.number(),
|
|
10979
11615
|
"items": zod.array(zod.object({
|
|
10980
11616
|
"hasChildren": zod.boolean(),
|
|
11617
|
+
"id": zod.string().uuid(),
|
|
10981
11618
|
"parent": zod.object({
|
|
10982
11619
|
"id": zod.string().uuid()
|
|
10983
11620
|
}).nullish(),
|
|
11621
|
+
"flags": zod.array(zod.object({
|
|
11622
|
+
"alias": zod.string()
|
|
11623
|
+
})),
|
|
10984
11624
|
"noAccess": zod.boolean(),
|
|
10985
11625
|
"isTrashed": zod.boolean(),
|
|
11626
|
+
"createDate": zod.string().datetime({ "local": true }),
|
|
11627
|
+
"mediaType": zod.object({
|
|
11628
|
+
"id": zod.string().uuid(),
|
|
11629
|
+
"icon": zod.string(),
|
|
11630
|
+
"collection": zod.object({
|
|
11631
|
+
"id": zod.string().uuid()
|
|
11632
|
+
}).nullish()
|
|
11633
|
+
}),
|
|
11634
|
+
"variants": zod.array(zod.object({
|
|
11635
|
+
"name": zod.string(),
|
|
11636
|
+
"culture": zod.string().nullish()
|
|
11637
|
+
}))
|
|
11638
|
+
}))
|
|
11639
|
+
});
|
|
11640
|
+
var getTreeMediaSiblingsQueryParams = zod.object({
|
|
11641
|
+
"target": zod.string().uuid().optional(),
|
|
11642
|
+
"before": zod.coerce.number().optional(),
|
|
11643
|
+
"after": zod.coerce.number().optional(),
|
|
11644
|
+
"dataTypeId": zod.string().uuid().optional()
|
|
11645
|
+
});
|
|
11646
|
+
var getTreeMediaSiblingsResponse = zod.object({
|
|
11647
|
+
"totalBefore": zod.number(),
|
|
11648
|
+
"totalAfter": zod.number(),
|
|
11649
|
+
"items": zod.array(zod.object({
|
|
11650
|
+
"hasChildren": zod.boolean(),
|
|
10986
11651
|
"id": zod.string().uuid(),
|
|
11652
|
+
"parent": zod.object({
|
|
11653
|
+
"id": zod.string().uuid()
|
|
11654
|
+
}).nullish(),
|
|
11655
|
+
"flags": zod.array(zod.object({
|
|
11656
|
+
"alias": zod.string()
|
|
11657
|
+
})),
|
|
11658
|
+
"noAccess": zod.boolean(),
|
|
11659
|
+
"isTrashed": zod.boolean(),
|
|
10987
11660
|
"createDate": zod.string().datetime({ "local": true }),
|
|
10988
11661
|
"mediaType": zod.object({
|
|
10989
11662
|
"id": zod.string().uuid(),
|
|
@@ -11003,6 +11676,9 @@ var getItemMemberGroupQueryParams = zod.object({
|
|
|
11003
11676
|
});
|
|
11004
11677
|
var getItemMemberGroupResponseItem = zod.object({
|
|
11005
11678
|
"id": zod.string().uuid(),
|
|
11679
|
+
"flags": zod.array(zod.object({
|
|
11680
|
+
"alias": zod.string()
|
|
11681
|
+
})),
|
|
11006
11682
|
"name": zod.string()
|
|
11007
11683
|
});
|
|
11008
11684
|
var getItemMemberGroupResponse = zod.array(getItemMemberGroupResponseItem);
|
|
@@ -11051,6 +11727,9 @@ var getTreeMemberGroupRootResponse = zod.object({
|
|
|
11051
11727
|
"parent": zod.object({
|
|
11052
11728
|
"id": zod.string().uuid()
|
|
11053
11729
|
}).nullish(),
|
|
11730
|
+
"flags": zod.array(zod.object({
|
|
11731
|
+
"alias": zod.string()
|
|
11732
|
+
})),
|
|
11054
11733
|
"name": zod.string()
|
|
11055
11734
|
}))
|
|
11056
11735
|
});
|
|
@@ -11059,6 +11738,9 @@ var getItemMemberTypeQueryParams = zod.object({
|
|
|
11059
11738
|
});
|
|
11060
11739
|
var getItemMemberTypeResponseItem = zod.object({
|
|
11061
11740
|
"id": zod.string().uuid(),
|
|
11741
|
+
"flags": zod.array(zod.object({
|
|
11742
|
+
"alias": zod.string()
|
|
11743
|
+
})),
|
|
11062
11744
|
"name": zod.string(),
|
|
11063
11745
|
"icon": zod.string().nullish()
|
|
11064
11746
|
});
|
|
@@ -11072,6 +11754,9 @@ var getItemMemberTypeSearchQueryParams = zod.object({
|
|
|
11072
11754
|
var getItemMemberTypeSearchResponse = zod.object({
|
|
11073
11755
|
"items": zod.array(zod.object({
|
|
11074
11756
|
"id": zod.string().uuid(),
|
|
11757
|
+
"flags": zod.array(zod.object({
|
|
11758
|
+
"alias": zod.string()
|
|
11759
|
+
})),
|
|
11075
11760
|
"name": zod.string(),
|
|
11076
11761
|
"icon": zod.string().nullish()
|
|
11077
11762
|
})),
|
|
@@ -11287,10 +11972,34 @@ var postMemberTypeAvailableCompositionsResponse = zod.array(postMemberTypeAvaila
|
|
|
11287
11972
|
var getMemberTypeConfigurationResponse = zod.object({
|
|
11288
11973
|
"reservedFieldNames": zod.array(zod.string())
|
|
11289
11974
|
});
|
|
11975
|
+
var postMemberTypeFolderBody = zod.object({
|
|
11976
|
+
"name": zod.string().min(1),
|
|
11977
|
+
"id": zod.string().uuid().nullish(),
|
|
11978
|
+
"parent": zod.object({
|
|
11979
|
+
"id": zod.string().uuid()
|
|
11980
|
+
}).nullish()
|
|
11981
|
+
});
|
|
11982
|
+
var getMemberTypeFolderByIdParams = zod.object({
|
|
11983
|
+
"id": zod.string().uuid()
|
|
11984
|
+
});
|
|
11985
|
+
var getMemberTypeFolderByIdResponse = zod.object({
|
|
11986
|
+
"name": zod.string().min(1),
|
|
11987
|
+
"id": zod.string().uuid()
|
|
11988
|
+
});
|
|
11989
|
+
var deleteMemberTypeFolderByIdParams = zod.object({
|
|
11990
|
+
"id": zod.string().uuid()
|
|
11991
|
+
});
|
|
11992
|
+
var putMemberTypeFolderByIdParams = zod.object({
|
|
11993
|
+
"id": zod.string().uuid()
|
|
11994
|
+
});
|
|
11995
|
+
var putMemberTypeFolderByIdBody = zod.object({
|
|
11996
|
+
"name": zod.string().min(1)
|
|
11997
|
+
});
|
|
11290
11998
|
var getTreeMemberTypeRootQueryTakeDefault = 100;
|
|
11291
11999
|
var getTreeMemberTypeRootQueryParams = zod.object({
|
|
11292
12000
|
"skip": zod.coerce.number().optional(),
|
|
11293
|
-
"take": zod.coerce.number().default(getTreeMemberTypeRootQueryTakeDefault)
|
|
12001
|
+
"take": zod.coerce.number().default(getTreeMemberTypeRootQueryTakeDefault),
|
|
12002
|
+
"foldersOnly": zod.coerce.boolean().optional()
|
|
11294
12003
|
});
|
|
11295
12004
|
var getTreeMemberTypeRootResponse = zod.object({
|
|
11296
12005
|
"total": zod.number(),
|
|
@@ -11300,6 +12009,31 @@ var getTreeMemberTypeRootResponse = zod.object({
|
|
|
11300
12009
|
"parent": zod.object({
|
|
11301
12010
|
"id": zod.string().uuid()
|
|
11302
12011
|
}).nullish(),
|
|
12012
|
+
"flags": zod.array(zod.object({
|
|
12013
|
+
"alias": zod.string()
|
|
12014
|
+
})),
|
|
12015
|
+
"name": zod.string(),
|
|
12016
|
+
"icon": zod.string()
|
|
12017
|
+
}))
|
|
12018
|
+
});
|
|
12019
|
+
var getTreeMemberTypeSiblingsQueryParams = zod.object({
|
|
12020
|
+
"target": zod.string().uuid().optional(),
|
|
12021
|
+
"before": zod.coerce.number().optional(),
|
|
12022
|
+
"after": zod.coerce.number().optional(),
|
|
12023
|
+
"foldersOnly": zod.coerce.boolean().optional()
|
|
12024
|
+
});
|
|
12025
|
+
var getTreeMemberTypeSiblingsResponse = zod.object({
|
|
12026
|
+
"totalBefore": zod.number(),
|
|
12027
|
+
"totalAfter": zod.number(),
|
|
12028
|
+
"items": zod.array(zod.object({
|
|
12029
|
+
"hasChildren": zod.boolean(),
|
|
12030
|
+
"id": zod.string().uuid(),
|
|
12031
|
+
"parent": zod.object({
|
|
12032
|
+
"id": zod.string().uuid()
|
|
12033
|
+
}).nullish(),
|
|
12034
|
+
"flags": zod.array(zod.object({
|
|
12035
|
+
"alias": zod.string()
|
|
12036
|
+
})),
|
|
11303
12037
|
"name": zod.string(),
|
|
11304
12038
|
"icon": zod.string()
|
|
11305
12039
|
}))
|
|
@@ -11335,6 +12069,9 @@ var getFilterMemberResponse = zod.object({
|
|
|
11335
12069
|
"updateDate": zod.string().datetime({ "local": true })
|
|
11336
12070
|
})),
|
|
11337
12071
|
"id": zod.string().uuid(),
|
|
12072
|
+
"flags": zod.array(zod.object({
|
|
12073
|
+
"alias": zod.string()
|
|
12074
|
+
})),
|
|
11338
12075
|
"email": zod.string(),
|
|
11339
12076
|
"username": zod.string(),
|
|
11340
12077
|
"memberType": zod.object({
|
|
@@ -11360,6 +12097,9 @@ var getItemMemberQueryParams = zod.object({
|
|
|
11360
12097
|
});
|
|
11361
12098
|
var getItemMemberResponseItem = zod.object({
|
|
11362
12099
|
"id": zod.string().uuid(),
|
|
12100
|
+
"flags": zod.array(zod.object({
|
|
12101
|
+
"alias": zod.string()
|
|
12102
|
+
})),
|
|
11363
12103
|
"memberType": zod.object({
|
|
11364
12104
|
"id": zod.string().uuid(),
|
|
11365
12105
|
"icon": zod.string(),
|
|
@@ -11384,6 +12124,9 @@ var getItemMemberSearchQueryParams = zod.object({
|
|
|
11384
12124
|
var getItemMemberSearchResponse = zod.object({
|
|
11385
12125
|
"items": zod.array(zod.object({
|
|
11386
12126
|
"id": zod.string().uuid(),
|
|
12127
|
+
"flags": zod.array(zod.object({
|
|
12128
|
+
"alias": zod.string()
|
|
12129
|
+
})),
|
|
11387
12130
|
"memberType": zod.object({
|
|
11388
12131
|
"id": zod.string().uuid(),
|
|
11389
12132
|
"icon": zod.string(),
|
|
@@ -11440,6 +12183,9 @@ var getMemberByIdResponse = zod.object({
|
|
|
11440
12183
|
"updateDate": zod.string().datetime({ "local": true })
|
|
11441
12184
|
})),
|
|
11442
12185
|
"id": zod.string().uuid(),
|
|
12186
|
+
"flags": zod.array(zod.object({
|
|
12187
|
+
"alias": zod.string()
|
|
12188
|
+
})),
|
|
11443
12189
|
"email": zod.string(),
|
|
11444
12190
|
"username": zod.string(),
|
|
11445
12191
|
"memberType": zod.object({
|
|
@@ -11516,7 +12262,11 @@ var getMemberByIdReferencedByResponse = zod.object({
|
|
|
11516
12262
|
"variants": zod.array(zod.object({
|
|
11517
12263
|
"name": zod.string(),
|
|
11518
12264
|
"culture": zod.string().nullish(),
|
|
11519
|
-
"
|
|
12265
|
+
"id": zod.string().uuid(),
|
|
12266
|
+
"flags": zod.array(zod.object({
|
|
12267
|
+
"alias": zod.string()
|
|
12268
|
+
})),
|
|
12269
|
+
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
|
|
11520
12270
|
}))
|
|
11521
12271
|
})).or(zod.object({
|
|
11522
12272
|
"$type": zod.enum(["DocumentTypePropertyTypeReferenceResponseModel"]),
|
|
@@ -11647,7 +12397,7 @@ var postMemberValidateBody = zod.object({
|
|
|
11647
12397
|
"isApproved": zod.boolean()
|
|
11648
12398
|
});
|
|
11649
12399
|
var getModelsBuilderDashboardResponse = zod.object({
|
|
11650
|
-
"mode": zod.
|
|
12400
|
+
"mode": zod.string(),
|
|
11651
12401
|
"canGenerate": zod.boolean(),
|
|
11652
12402
|
"outOfDateModels": zod.boolean(),
|
|
11653
12403
|
"lastError": zod.string().nullish(),
|
|
@@ -11658,6 +12408,17 @@ var getModelsBuilderDashboardResponse = zod.object({
|
|
|
11658
12408
|
var getModelsBuilderStatusResponse = zod.object({
|
|
11659
12409
|
"status": zod.enum(["OutOfDate", "Current", "Unknown"])
|
|
11660
12410
|
});
|
|
12411
|
+
var getNewsDashboardResponse = zod.object({
|
|
12412
|
+
"items": zod.array(zod.object({
|
|
12413
|
+
"priority": zod.string(),
|
|
12414
|
+
"header": zod.string(),
|
|
12415
|
+
"body": zod.string().nullish(),
|
|
12416
|
+
"buttonText": zod.string().nullish(),
|
|
12417
|
+
"imageUrl": zod.string().nullish(),
|
|
12418
|
+
"imageAltText": zod.string().nullish(),
|
|
12419
|
+
"url": zod.string().nullish()
|
|
12420
|
+
}))
|
|
12421
|
+
});
|
|
11661
12422
|
var getObjectTypesQueryTakeDefault = 100;
|
|
11662
12423
|
var getObjectTypesQueryParams = zod.object({
|
|
11663
12424
|
"skip": zod.coerce.number().optional(),
|
|
@@ -11919,6 +12680,24 @@ var getTreePartialViewRootResponse = zod.object({
|
|
|
11919
12680
|
"isFolder": zod.boolean()
|
|
11920
12681
|
}))
|
|
11921
12682
|
});
|
|
12683
|
+
var getTreePartialViewSiblingsQueryParams = zod.object({
|
|
12684
|
+
"path": zod.string().optional(),
|
|
12685
|
+
"before": zod.coerce.number().optional(),
|
|
12686
|
+
"after": zod.coerce.number().optional()
|
|
12687
|
+
});
|
|
12688
|
+
var getTreePartialViewSiblingsResponse = zod.object({
|
|
12689
|
+
"totalBefore": zod.number(),
|
|
12690
|
+
"totalAfter": zod.number(),
|
|
12691
|
+
"items": zod.array(zod.object({
|
|
12692
|
+
"hasChildren": zod.boolean(),
|
|
12693
|
+
"name": zod.string(),
|
|
12694
|
+
"path": zod.string(),
|
|
12695
|
+
"parent": zod.object({
|
|
12696
|
+
"path": zod.string()
|
|
12697
|
+
}).nullish(),
|
|
12698
|
+
"isFolder": zod.boolean()
|
|
12699
|
+
}))
|
|
12700
|
+
});
|
|
11922
12701
|
var getProfilingStatusResponse = zod.object({
|
|
11923
12702
|
"enabled": zod.boolean()
|
|
11924
12703
|
});
|
|
@@ -11988,6 +12767,9 @@ var getItemRelationTypeQueryParams = zod.object({
|
|
|
11988
12767
|
});
|
|
11989
12768
|
var getItemRelationTypeResponseItem = zod.object({
|
|
11990
12769
|
"id": zod.string().uuid(),
|
|
12770
|
+
"flags": zod.array(zod.object({
|
|
12771
|
+
"alias": zod.string()
|
|
12772
|
+
})),
|
|
11991
12773
|
"name": zod.string(),
|
|
11992
12774
|
"isDeletable": zod.boolean()
|
|
11993
12775
|
});
|
|
@@ -12172,6 +12954,24 @@ var getTreeScriptRootResponse = zod.object({
|
|
|
12172
12954
|
"isFolder": zod.boolean()
|
|
12173
12955
|
}))
|
|
12174
12956
|
});
|
|
12957
|
+
var getTreeScriptSiblingsQueryParams = zod.object({
|
|
12958
|
+
"path": zod.string().optional(),
|
|
12959
|
+
"before": zod.coerce.number().optional(),
|
|
12960
|
+
"after": zod.coerce.number().optional()
|
|
12961
|
+
});
|
|
12962
|
+
var getTreeScriptSiblingsResponse = zod.object({
|
|
12963
|
+
"totalBefore": zod.number(),
|
|
12964
|
+
"totalAfter": zod.number(),
|
|
12965
|
+
"items": zod.array(zod.object({
|
|
12966
|
+
"hasChildren": zod.boolean(),
|
|
12967
|
+
"name": zod.string(),
|
|
12968
|
+
"path": zod.string(),
|
|
12969
|
+
"parent": zod.object({
|
|
12970
|
+
"path": zod.string()
|
|
12971
|
+
}).nullish(),
|
|
12972
|
+
"isFolder": zod.boolean()
|
|
12973
|
+
}))
|
|
12974
|
+
});
|
|
12175
12975
|
var getSearcherQueryTakeDefault = 100;
|
|
12176
12976
|
var getSearcherQueryParams = zod.object({
|
|
12177
12977
|
"skip": zod.coerce.number().optional(),
|
|
@@ -12247,7 +13047,8 @@ var getSegmentResponse = zod.object({
|
|
|
12247
13047
|
"total": zod.number(),
|
|
12248
13048
|
"items": zod.array(zod.object({
|
|
12249
13049
|
"name": zod.string(),
|
|
12250
|
-
"alias": zod.string()
|
|
13050
|
+
"alias": zod.string(),
|
|
13051
|
+
"cultures": zod.array(zod.string()).nullish()
|
|
12251
13052
|
}))
|
|
12252
13053
|
});
|
|
12253
13054
|
var getServerConfigurationResponse = zod.object({
|
|
@@ -12447,6 +13248,24 @@ var getTreeStylesheetRootResponse = zod.object({
|
|
|
12447
13248
|
"isFolder": zod.boolean()
|
|
12448
13249
|
}))
|
|
12449
13250
|
});
|
|
13251
|
+
var getTreeStylesheetSiblingsQueryParams = zod.object({
|
|
13252
|
+
"path": zod.string().optional(),
|
|
13253
|
+
"before": zod.coerce.number().optional(),
|
|
13254
|
+
"after": zod.coerce.number().optional()
|
|
13255
|
+
});
|
|
13256
|
+
var getTreeStylesheetSiblingsResponse = zod.object({
|
|
13257
|
+
"totalBefore": zod.number(),
|
|
13258
|
+
"totalAfter": zod.number(),
|
|
13259
|
+
"items": zod.array(zod.object({
|
|
13260
|
+
"hasChildren": zod.boolean(),
|
|
13261
|
+
"name": zod.string(),
|
|
13262
|
+
"path": zod.string(),
|
|
13263
|
+
"parent": zod.object({
|
|
13264
|
+
"path": zod.string()
|
|
13265
|
+
}).nullish(),
|
|
13266
|
+
"isFolder": zod.boolean()
|
|
13267
|
+
}))
|
|
13268
|
+
});
|
|
12450
13269
|
var getTagQueryTakeDefault = 100;
|
|
12451
13270
|
var getTagQueryParams = zod.object({
|
|
12452
13271
|
"query": zod.string().optional(),
|
|
@@ -12486,6 +13305,9 @@ var getItemTemplateQueryParams = zod.object({
|
|
|
12486
13305
|
});
|
|
12487
13306
|
var getItemTemplateResponseItem = zod.object({
|
|
12488
13307
|
"id": zod.string().uuid(),
|
|
13308
|
+
"flags": zod.array(zod.object({
|
|
13309
|
+
"alias": zod.string()
|
|
13310
|
+
})),
|
|
12489
13311
|
"name": zod.string(),
|
|
12490
13312
|
"alias": zod.string()
|
|
12491
13313
|
});
|
|
@@ -12499,6 +13321,9 @@ var getItemTemplateSearchQueryParams = zod.object({
|
|
|
12499
13321
|
var getItemTemplateSearchResponse = zod.object({
|
|
12500
13322
|
"items": zod.array(zod.object({
|
|
12501
13323
|
"id": zod.string().uuid(),
|
|
13324
|
+
"flags": zod.array(zod.object({
|
|
13325
|
+
"alias": zod.string()
|
|
13326
|
+
})),
|
|
12502
13327
|
"name": zod.string(),
|
|
12503
13328
|
"alias": zod.string()
|
|
12504
13329
|
})),
|
|
@@ -12581,6 +13406,9 @@ var getTreeTemplateAncestorsResponseItem = zod.object({
|
|
|
12581
13406
|
"parent": zod.object({
|
|
12582
13407
|
"id": zod.string().uuid()
|
|
12583
13408
|
}).nullish(),
|
|
13409
|
+
"flags": zod.array(zod.object({
|
|
13410
|
+
"alias": zod.string()
|
|
13411
|
+
})),
|
|
12584
13412
|
"name": zod.string()
|
|
12585
13413
|
});
|
|
12586
13414
|
var getTreeTemplateAncestorsResponse = zod.array(getTreeTemplateAncestorsResponseItem);
|
|
@@ -12598,6 +13426,9 @@ var getTreeTemplateChildrenResponse = zod.object({
|
|
|
12598
13426
|
"parent": zod.object({
|
|
12599
13427
|
"id": zod.string().uuid()
|
|
12600
13428
|
}).nullish(),
|
|
13429
|
+
"flags": zod.array(zod.object({
|
|
13430
|
+
"alias": zod.string()
|
|
13431
|
+
})),
|
|
12601
13432
|
"name": zod.string()
|
|
12602
13433
|
}))
|
|
12603
13434
|
});
|
|
@@ -12614,6 +13445,29 @@ var getTreeTemplateRootResponse = zod.object({
|
|
|
12614
13445
|
"parent": zod.object({
|
|
12615
13446
|
"id": zod.string().uuid()
|
|
12616
13447
|
}).nullish(),
|
|
13448
|
+
"flags": zod.array(zod.object({
|
|
13449
|
+
"alias": zod.string()
|
|
13450
|
+
})),
|
|
13451
|
+
"name": zod.string()
|
|
13452
|
+
}))
|
|
13453
|
+
});
|
|
13454
|
+
var getTreeTemplateSiblingsQueryParams = zod.object({
|
|
13455
|
+
"target": zod.string().uuid().optional(),
|
|
13456
|
+
"before": zod.coerce.number().optional(),
|
|
13457
|
+
"after": zod.coerce.number().optional()
|
|
13458
|
+
});
|
|
13459
|
+
var getTreeTemplateSiblingsResponse = zod.object({
|
|
13460
|
+
"totalBefore": zod.number(),
|
|
13461
|
+
"totalAfter": zod.number(),
|
|
13462
|
+
"items": zod.array(zod.object({
|
|
13463
|
+
"hasChildren": zod.boolean(),
|
|
13464
|
+
"id": zod.string().uuid(),
|
|
13465
|
+
"parent": zod.object({
|
|
13466
|
+
"id": zod.string().uuid()
|
|
13467
|
+
}).nullish(),
|
|
13468
|
+
"flags": zod.array(zod.object({
|
|
13469
|
+
"alias": zod.string()
|
|
13470
|
+
})),
|
|
12617
13471
|
"name": zod.string()
|
|
12618
13472
|
}))
|
|
12619
13473
|
});
|
|
@@ -12660,6 +13514,9 @@ var getUserDataByIdResponse = zod.object({
|
|
|
12660
13514
|
"identifier": zod.string(),
|
|
12661
13515
|
"value": zod.string()
|
|
12662
13516
|
});
|
|
13517
|
+
var deleteUserDataByIdParams = zod.object({
|
|
13518
|
+
"id": zod.string().uuid()
|
|
13519
|
+
});
|
|
12663
13520
|
var getFilterUserGroupQueryTakeDefault = 100;
|
|
12664
13521
|
var getFilterUserGroupQueryParams = zod.object({
|
|
12665
13522
|
"skip": zod.coerce.number().optional(),
|
|
@@ -12714,6 +13571,9 @@ var getItemUserGroupQueryParams = zod.object({
|
|
|
12714
13571
|
});
|
|
12715
13572
|
var getItemUserGroupResponseItem = zod.object({
|
|
12716
13573
|
"id": zod.string().uuid(),
|
|
13574
|
+
"flags": zod.array(zod.object({
|
|
13575
|
+
"alias": zod.string()
|
|
13576
|
+
})),
|
|
12717
13577
|
"name": zod.string(),
|
|
12718
13578
|
"icon": zod.string().nullish(),
|
|
12719
13579
|
"alias": zod.string().nullish()
|
|
@@ -12956,6 +13816,9 @@ var getItemUserQueryParams = zod.object({
|
|
|
12956
13816
|
});
|
|
12957
13817
|
var getItemUserResponseItem = zod.object({
|
|
12958
13818
|
"id": zod.string().uuid(),
|
|
13819
|
+
"flags": zod.array(zod.object({
|
|
13820
|
+
"alias": zod.string()
|
|
13821
|
+
})),
|
|
12959
13822
|
"name": zod.string(),
|
|
12960
13823
|
"avatarUrls": zod.array(zod.string()),
|
|
12961
13824
|
"kind": zod.enum(["Default", "Api"])
|
|
@@ -13333,6 +14196,10 @@ var getItemWebhookQueryParams = zod.object({
|
|
|
13333
14196
|
"id": zod.array(zod.string().uuid()).optional()
|
|
13334
14197
|
});
|
|
13335
14198
|
var getItemWebhookResponseItem = zod.object({
|
|
14199
|
+
"id": zod.string().uuid(),
|
|
14200
|
+
"flags": zod.array(zod.object({
|
|
14201
|
+
"alias": zod.string()
|
|
14202
|
+
})),
|
|
13336
14203
|
"enabled": zod.boolean(),
|
|
13337
14204
|
"name": zod.string(),
|
|
13338
14205
|
"events": zod.string(),
|
|
@@ -14565,21 +15432,21 @@ var move_data_type_default = MoveDataTypeTool;
|
|
|
14565
15432
|
var GetReferencesDataTypeTool = CreateUmbracoTool(
|
|
14566
15433
|
"get-references-data-type",
|
|
14567
15434
|
`Gets the document types and properties that use a specific data type.
|
|
14568
|
-
|
|
15435
|
+
|
|
14569
15436
|
This is the recommended method to find all document types that reference a particular data type.
|
|
14570
|
-
|
|
15437
|
+
|
|
14571
15438
|
Usage examples:
|
|
14572
15439
|
- Find all document types using the RichText editor data type
|
|
14573
15440
|
- Identify properties that reference a specific data type before modifying or deleting it
|
|
14574
15441
|
- Perform bulk updates to all properties using a specific data type
|
|
14575
|
-
|
|
15442
|
+
|
|
14576
15443
|
Returns a detailed list with content type information (id, type, name, icon) and all properties
|
|
14577
15444
|
(name, alias) that use the specified data type.
|
|
14578
15445
|
`,
|
|
14579
|
-
|
|
15446
|
+
getDataTypeByIdReferencedByParams.shape,
|
|
14580
15447
|
async ({ id }) => {
|
|
14581
15448
|
const client = UmbracoManagementClient2.getClient();
|
|
14582
|
-
var response = await client.
|
|
15449
|
+
var response = await client.getDataTypeByIdReferencedBy(id);
|
|
14583
15450
|
return {
|
|
14584
15451
|
content: [
|
|
14585
15452
|
{
|
|
@@ -14736,6 +15603,26 @@ var GetDataTypeChildrenTool = CreateUmbracoTool(
|
|
|
14736
15603
|
);
|
|
14737
15604
|
var get_children_default = GetDataTypeChildrenTool;
|
|
14738
15605
|
|
|
15606
|
+
// src/umb-management-api/tools/data-type/items/get/get-siblings.ts
|
|
15607
|
+
var GetDataTypeSiblingsTool = CreateUmbracoTool(
|
|
15608
|
+
"get-data-type-siblings",
|
|
15609
|
+
"Gets sibling data types or data type folders for a given descendant id",
|
|
15610
|
+
getTreeDataTypeSiblingsQueryParams.shape,
|
|
15611
|
+
async (params) => {
|
|
15612
|
+
const client = UmbracoManagementClient2.getClient();
|
|
15613
|
+
var response = await client.getTreeDataTypeSiblings(params);
|
|
15614
|
+
return {
|
|
15615
|
+
content: [
|
|
15616
|
+
{
|
|
15617
|
+
type: "text",
|
|
15618
|
+
text: JSON.stringify(response)
|
|
15619
|
+
}
|
|
15620
|
+
]
|
|
15621
|
+
};
|
|
15622
|
+
}
|
|
15623
|
+
);
|
|
15624
|
+
var get_siblings_default = GetDataTypeSiblingsTool;
|
|
15625
|
+
|
|
14739
15626
|
// src/umb-management-api/tools/data-type/items/get/get-ancestors.ts
|
|
14740
15627
|
var GetDataTypeAncestorsTool = CreateUmbracoTool(
|
|
14741
15628
|
"get-data-type-ancestors",
|
|
@@ -14866,6 +15753,7 @@ var DataTypeCollection = {
|
|
|
14866
15753
|
if (AuthorizationPolicies.TreeAccessDataTypes(user)) {
|
|
14867
15754
|
tools.push(get_root_default());
|
|
14868
15755
|
tools.push(get_children_default());
|
|
15756
|
+
tools.push(get_siblings_default());
|
|
14869
15757
|
tools.push(get_ancestors_default());
|
|
14870
15758
|
tools.push(get_all_default());
|
|
14871
15759
|
tools.push(delete_data_type_default());
|
|
@@ -15497,6 +16385,26 @@ var GetDocumentTypeAncestorsTool = CreateUmbracoTool(
|
|
|
15497
16385
|
);
|
|
15498
16386
|
var get_ancestors_default3 = GetDocumentTypeAncestorsTool;
|
|
15499
16387
|
|
|
16388
|
+
// src/umb-management-api/tools/document-type/items/get/get-siblings.ts
|
|
16389
|
+
var GetDocumentTypeSiblingsTool = CreateUmbracoTool(
|
|
16390
|
+
"get-document-type-siblings",
|
|
16391
|
+
"Gets sibling document types or document type folders for a given descendant id",
|
|
16392
|
+
getTreeDocumentTypeSiblingsQueryParams.shape,
|
|
16393
|
+
async (params) => {
|
|
16394
|
+
const client = UmbracoManagementClient2.getClient();
|
|
16395
|
+
const response = await client.getTreeDocumentTypeSiblings(params);
|
|
16396
|
+
return {
|
|
16397
|
+
content: [
|
|
16398
|
+
{
|
|
16399
|
+
type: "text",
|
|
16400
|
+
text: JSON.stringify(response)
|
|
16401
|
+
}
|
|
16402
|
+
]
|
|
16403
|
+
};
|
|
16404
|
+
}
|
|
16405
|
+
);
|
|
16406
|
+
var get_siblings_default2 = GetDocumentTypeSiblingsTool;
|
|
16407
|
+
|
|
15500
16408
|
// src/umb-management-api/tools/document-type/folders/post/create-folder.ts
|
|
15501
16409
|
var CreateDocumentTypeFolderTool = CreateUmbracoTool(
|
|
15502
16410
|
"create-document-type-folder",
|
|
@@ -16452,6 +17360,7 @@ var DocumentTypeCollection = {
|
|
|
16452
17360
|
tools.push(get_root_default3());
|
|
16453
17361
|
tools.push(get_ancestors_default3());
|
|
16454
17362
|
tools.push(get_children_default3());
|
|
17363
|
+
tools.push(get_siblings_default2());
|
|
16455
17364
|
}
|
|
16456
17365
|
return tools;
|
|
16457
17366
|
}
|
|
@@ -16522,6 +17431,27 @@ var GetLanguageByIsoCodeTool = CreateUmbracoTool(
|
|
|
16522
17431
|
);
|
|
16523
17432
|
var get_language_by_iso_code_default = GetLanguageByIsoCodeTool;
|
|
16524
17433
|
|
|
17434
|
+
// src/umb-management-api/tools/language/get/get-language.ts
|
|
17435
|
+
var GetLanguageTool = CreateUmbracoTool(
|
|
17436
|
+
"get-language",
|
|
17437
|
+
"Gets all languages with optional pagination",
|
|
17438
|
+
getLanguageQueryParams.shape,
|
|
17439
|
+
async (params) => {
|
|
17440
|
+
const client = UmbracoManagementClient2.getClient();
|
|
17441
|
+
const response = await client.getLanguage(params);
|
|
17442
|
+
const validated = getLanguageResponse.parse(response);
|
|
17443
|
+
return {
|
|
17444
|
+
content: [
|
|
17445
|
+
{
|
|
17446
|
+
type: "text",
|
|
17447
|
+
text: JSON.stringify(validated, null, 2)
|
|
17448
|
+
}
|
|
17449
|
+
]
|
|
17450
|
+
};
|
|
17451
|
+
}
|
|
17452
|
+
);
|
|
17453
|
+
var get_language_default = GetLanguageTool;
|
|
17454
|
+
|
|
16525
17455
|
// src/umb-management-api/tools/language/post/create-language.ts
|
|
16526
17456
|
var CreateLanguageTool = CreateUmbracoTool(
|
|
16527
17457
|
"create-language",
|
|
@@ -16609,6 +17539,7 @@ var LanguageCollection = {
|
|
|
16609
17539
|
const tools = [];
|
|
16610
17540
|
tools.push(get_language_items_default());
|
|
16611
17541
|
tools.push(get_default_language_default());
|
|
17542
|
+
tools.push(get_language_default());
|
|
16612
17543
|
if (AuthorizationPolicies.TreeAccessLanguages(user)) {
|
|
16613
17544
|
tools.push(create_language_default());
|
|
16614
17545
|
tools.push(update_language_default());
|
|
@@ -16791,6 +17722,26 @@ var GetDocumentBlueprintRootTool = CreateUmbracoTool(
|
|
|
16791
17722
|
);
|
|
16792
17723
|
var get_root_default4 = GetDocumentBlueprintRootTool;
|
|
16793
17724
|
|
|
17725
|
+
// src/umb-management-api/tools/document-blueprint/get/get-siblings.ts
|
|
17726
|
+
var GetDocumentBlueprintSiblingsTool = CreateUmbracoTool(
|
|
17727
|
+
"get-document-blueprint-siblings",
|
|
17728
|
+
"Gets sibling document blueprints for a given descendant id",
|
|
17729
|
+
getTreeDocumentBlueprintSiblingsQueryParams.shape,
|
|
17730
|
+
async (params) => {
|
|
17731
|
+
const client = UmbracoManagementClient2.getClient();
|
|
17732
|
+
const response = await client.getTreeDocumentBlueprintSiblings(params);
|
|
17733
|
+
return {
|
|
17734
|
+
content: [
|
|
17735
|
+
{
|
|
17736
|
+
type: "text",
|
|
17737
|
+
text: JSON.stringify(response)
|
|
17738
|
+
}
|
|
17739
|
+
]
|
|
17740
|
+
};
|
|
17741
|
+
}
|
|
17742
|
+
);
|
|
17743
|
+
var get_siblings_default3 = GetDocumentBlueprintSiblingsTool;
|
|
17744
|
+
|
|
16794
17745
|
// src/umb-management-api/tools/document-blueprint/get/get-document-blueprint-scaffold.ts
|
|
16795
17746
|
var GetDocumentBlueprintScaffoldTool = CreateUmbracoTool(
|
|
16796
17747
|
"get-document-blueprint-scaffold",
|
|
@@ -17003,6 +17954,7 @@ var DocumentBlueprintCollection = {
|
|
|
17003
17954
|
tools.push(get_ancestors_default4());
|
|
17004
17955
|
tools.push(get_children_default4());
|
|
17005
17956
|
tools.push(get_root_default4());
|
|
17957
|
+
tools.push(get_siblings_default3());
|
|
17006
17958
|
tools.push(create_folder_default3());
|
|
17007
17959
|
tools.push(get_folder_default3());
|
|
17008
17960
|
tools.push(update_folder_default3());
|
|
@@ -17091,6 +18043,26 @@ var DeleteDocumentPublicAccessTool = CreateUmbracoTool(
|
|
|
17091
18043
|
);
|
|
17092
18044
|
var delete_document_public_access_default = DeleteDocumentPublicAccessTool;
|
|
17093
18045
|
|
|
18046
|
+
// src/umb-management-api/tools/document/delete/delete-recycle-bin-item.ts
|
|
18047
|
+
var DeleteDocumentRecycleBinItemTool = CreateUmbracoTool(
|
|
18048
|
+
"delete-document-recycle-bin-item",
|
|
18049
|
+
"Permanently deletes a document from the recycle bin by its id",
|
|
18050
|
+
deleteRecycleBinDocumentByIdParams.shape,
|
|
18051
|
+
async (params) => {
|
|
18052
|
+
const client = UmbracoManagementClient2.getClient();
|
|
18053
|
+
await client.deleteRecycleBinDocumentById(params.id);
|
|
18054
|
+
return {
|
|
18055
|
+
content: [
|
|
18056
|
+
{
|
|
18057
|
+
type: "text",
|
|
18058
|
+
text: JSON.stringify({ success: true, message: "Document permanently deleted from recycle bin" })
|
|
18059
|
+
}
|
|
18060
|
+
]
|
|
18061
|
+
};
|
|
18062
|
+
}
|
|
18063
|
+
);
|
|
18064
|
+
var delete_recycle_bin_item_default = DeleteDocumentRecycleBinItemTool;
|
|
18065
|
+
|
|
17094
18066
|
// src/umb-management-api/tools/document/get/get-document-by-id.ts
|
|
17095
18067
|
var GetDocumentByIdTool = CreateUmbracoTool(
|
|
17096
18068
|
"get-document-by-id",
|
|
@@ -17810,6 +18782,26 @@ var GetCollectionDocumentByIdTool = CreateUmbracoTool(
|
|
|
17810
18782
|
);
|
|
17811
18783
|
var get_collection_document_by_id_default = GetCollectionDocumentByIdTool;
|
|
17812
18784
|
|
|
18785
|
+
// src/umb-management-api/tools/document/get/get-item-document.ts
|
|
18786
|
+
var GetItemDocumentTool = CreateUmbracoTool(
|
|
18787
|
+
"get-item-document",
|
|
18788
|
+
"Gets document items by their ids",
|
|
18789
|
+
getItemDocumentQueryParams.shape,
|
|
18790
|
+
async (params) => {
|
|
18791
|
+
const client = UmbracoManagementClient2.getClient();
|
|
18792
|
+
const response = await client.getItemDocument(params);
|
|
18793
|
+
return {
|
|
18794
|
+
content: [
|
|
18795
|
+
{
|
|
18796
|
+
type: "text",
|
|
18797
|
+
text: JSON.stringify(response)
|
|
18798
|
+
}
|
|
18799
|
+
]
|
|
18800
|
+
};
|
|
18801
|
+
}
|
|
18802
|
+
);
|
|
18803
|
+
var get_item_document_default = GetItemDocumentTool;
|
|
18804
|
+
|
|
17813
18805
|
// src/umb-management-api/tools/document/get/get-document-are-referenced.ts
|
|
17814
18806
|
var GetDocumentAreReferencedTool = CreateUmbracoTool(
|
|
17815
18807
|
"get-document-are-referenced",
|
|
@@ -17886,6 +18878,37 @@ var GetDocumentByIdReferencedDescendantsTool = CreateUmbracoTool(
|
|
|
17886
18878
|
);
|
|
17887
18879
|
var get_document_by_id_referenced_descendants_default = GetDocumentByIdReferencedDescendantsTool;
|
|
17888
18880
|
|
|
18881
|
+
// src/umb-management-api/tools/document/get/get-document-available-segment-options.ts
|
|
18882
|
+
import { z as z30 } from "zod";
|
|
18883
|
+
var GetDocumentAvailableSegmentOptionsTool = CreateUmbracoTool(
|
|
18884
|
+
"get-document-available-segment-options",
|
|
18885
|
+
`Gets available segment options for a document by its id
|
|
18886
|
+
|
|
18887
|
+
Use this to retrieve the available segment options (content variations) for a document.
|
|
18888
|
+
|
|
18889
|
+
Useful for:
|
|
18890
|
+
\u2022 Understanding what content variations are available for a document
|
|
18891
|
+
\u2022 Determining which segments can be used when creating or editing document content
|
|
18892
|
+
\u2022 Viewing segment names, aliases, and associated cultures`,
|
|
18893
|
+
z30.object({
|
|
18894
|
+
...getDocumentByIdAvailableSegmentOptionsParams.shape,
|
|
18895
|
+
...getDocumentByIdAvailableSegmentOptionsQueryParams.shape
|
|
18896
|
+
}).shape,
|
|
18897
|
+
async ({ id, skip, take }) => {
|
|
18898
|
+
const client = UmbracoManagementClient2.getClient();
|
|
18899
|
+
const response = await client.getDocumentByIdAvailableSegmentOptions(id, { skip, take });
|
|
18900
|
+
return {
|
|
18901
|
+
content: [
|
|
18902
|
+
{
|
|
18903
|
+
type: "text",
|
|
18904
|
+
text: JSON.stringify(response)
|
|
18905
|
+
}
|
|
18906
|
+
]
|
|
18907
|
+
};
|
|
18908
|
+
}
|
|
18909
|
+
);
|
|
18910
|
+
var get_document_available_segment_options_default = GetDocumentAvailableSegmentOptionsTool;
|
|
18911
|
+
|
|
17889
18912
|
// src/umb-management-api/tools/document/get/get-recycle-bin-document-original-parent.ts
|
|
17890
18913
|
var GetRecycleBinDocumentOriginalParentTool = CreateUmbracoTool(
|
|
17891
18914
|
"get-recycle-bin-document-original-parent",
|
|
@@ -17929,13 +18952,13 @@ var GetRecycleBinDocumentReferencedByTool = CreateUmbracoTool(
|
|
|
17929
18952
|
var get_recycle_bin_document_referenced_by_default = GetRecycleBinDocumentReferencedByTool;
|
|
17930
18953
|
|
|
17931
18954
|
// src/umb-management-api/tools/document/post/post-document-public-access.ts
|
|
17932
|
-
import { z as
|
|
18955
|
+
import { z as z31 } from "zod";
|
|
17933
18956
|
var PostDocumentPublicAccessTool = CreateUmbracoTool(
|
|
17934
18957
|
"post-document-public-access",
|
|
17935
18958
|
"Adds public access settings to a document by Id.",
|
|
17936
18959
|
{
|
|
17937
18960
|
id: postDocumentByIdPublicAccessParams.shape.id,
|
|
17938
|
-
data:
|
|
18961
|
+
data: z31.object(postDocumentByIdPublicAccessBody.shape)
|
|
17939
18962
|
},
|
|
17940
18963
|
async (model) => {
|
|
17941
18964
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -17978,12 +19001,12 @@ var ValidateDocumentTool = CreateUmbracoTool(
|
|
|
17978
19001
|
var validate_document_default = ValidateDocumentTool;
|
|
17979
19002
|
|
|
17980
19003
|
// src/umb-management-api/tools/document/post/copy-document.ts
|
|
17981
|
-
import { z as
|
|
17982
|
-
var copyDocumentSchema =
|
|
17983
|
-
parentId:
|
|
17984
|
-
idToCopy:
|
|
17985
|
-
relateToOriginal:
|
|
17986
|
-
includeDescendants:
|
|
19004
|
+
import { z as z32 } from "zod";
|
|
19005
|
+
var copyDocumentSchema = z32.object({
|
|
19006
|
+
parentId: z32.string().uuid("Must be a valid document UUID of the parent node").optional(),
|
|
19007
|
+
idToCopy: z32.string().uuid("Must be a valid document UUID that belongs to the parent document's children"),
|
|
19008
|
+
relateToOriginal: z32.boolean().describe("Relate the copy to the original document. This is usually set to false unless specified."),
|
|
19009
|
+
includeDescendants: z32.boolean().describe("If true, all descendant documents (children, grandchildren, etc.) will also be copied. This is usually set to false unless specified.")
|
|
17987
19010
|
});
|
|
17988
19011
|
var CopyDocumentTool = CreateUmbracoTool(
|
|
17989
19012
|
"copy-document",
|
|
@@ -18031,19 +19054,19 @@ var copy_document_default = CopyDocumentTool;
|
|
|
18031
19054
|
|
|
18032
19055
|
// src/umb-management-api/tools/document/post/create-document.ts
|
|
18033
19056
|
import { v4 as uuidv45 } from "uuid";
|
|
18034
|
-
import { z as
|
|
18035
|
-
var createDocumentSchema =
|
|
18036
|
-
documentTypeId:
|
|
18037
|
-
parentId:
|
|
18038
|
-
name:
|
|
18039
|
-
cultures:
|
|
18040
|
-
values:
|
|
18041
|
-
|
|
18042
|
-
editorAlias:
|
|
18043
|
-
culture:
|
|
18044
|
-
segment:
|
|
18045
|
-
alias:
|
|
18046
|
-
value:
|
|
19057
|
+
import { z as z33 } from "zod";
|
|
19058
|
+
var createDocumentSchema = z33.object({
|
|
19059
|
+
documentTypeId: z33.string().uuid("Must be a valid document type type UUID"),
|
|
19060
|
+
parentId: z33.string().uuid("Must be a valid document UUID").optional(),
|
|
19061
|
+
name: z33.string(),
|
|
19062
|
+
cultures: z33.array(z33.string()).optional().describe("Array of culture codes. If not provided or empty array, will create single variant with null culture."),
|
|
19063
|
+
values: z33.array(
|
|
19064
|
+
z33.object({
|
|
19065
|
+
editorAlias: z33.string(),
|
|
19066
|
+
culture: z33.string().nullable(),
|
|
19067
|
+
segment: z33.string().nullable(),
|
|
19068
|
+
alias: z33.string(),
|
|
19069
|
+
value: z33.any()
|
|
18047
19070
|
})
|
|
18048
19071
|
).default([])
|
|
18049
19072
|
});
|
|
@@ -18187,13 +19210,13 @@ var CreateDocumentTool = CreateUmbracoTool(
|
|
|
18187
19210
|
var create_document_default = CreateDocumentTool;
|
|
18188
19211
|
|
|
18189
19212
|
// src/umb-management-api/tools/document/put/put-document-public-access.ts
|
|
18190
|
-
import { z as
|
|
19213
|
+
import { z as z34 } from "zod";
|
|
18191
19214
|
var PutDocumentPublicAccessTool = CreateUmbracoTool(
|
|
18192
19215
|
"put-document-public-access",
|
|
18193
19216
|
"Updates public access settings for a document by Id.",
|
|
18194
19217
|
{
|
|
18195
19218
|
id: putDocumentByIdPublicAccessParams.shape.id,
|
|
18196
|
-
data:
|
|
19219
|
+
data: z34.object(putDocumentByIdPublicAccessBody.shape)
|
|
18197
19220
|
},
|
|
18198
19221
|
async (model) => {
|
|
18199
19222
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -18215,14 +19238,14 @@ var PutDocumentPublicAccessTool = CreateUmbracoTool(
|
|
|
18215
19238
|
var put_document_public_access_default = PutDocumentPublicAccessTool;
|
|
18216
19239
|
|
|
18217
19240
|
// src/umb-management-api/tools/document/put/put-document-domains.ts
|
|
18218
|
-
import { z as
|
|
19241
|
+
import { z as z35 } from "zod";
|
|
18219
19242
|
var PutDocumentDomainsTool = CreateUmbracoTool(
|
|
18220
19243
|
"put-document-domains",
|
|
18221
19244
|
`Updates the domains assigned to a document by Id. Default value of the defaultIsoCode is null.
|
|
18222
19245
|
Domain isoCode in the domains array should be in the format of 'en-US' amd be a valid domain name from the Umbraco instance.`,
|
|
18223
19246
|
{
|
|
18224
19247
|
id: putDocumentByIdDomainsParams.shape.id,
|
|
18225
|
-
data:
|
|
19248
|
+
data: z35.object(putDocumentByIdDomainsBody.shape)
|
|
18226
19249
|
},
|
|
18227
19250
|
async (model) => {
|
|
18228
19251
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -18241,13 +19264,13 @@ var PutDocumentDomainsTool = CreateUmbracoTool(
|
|
|
18241
19264
|
var put_document_domains_default = PutDocumentDomainsTool;
|
|
18242
19265
|
|
|
18243
19266
|
// src/umb-management-api/tools/document/put/put-document-notifications.ts
|
|
18244
|
-
import { z as
|
|
19267
|
+
import { z as z36 } from "zod";
|
|
18245
19268
|
var PutDocumentNotificationsTool = CreateUmbracoTool(
|
|
18246
19269
|
"put-document-notifications",
|
|
18247
19270
|
"Updates the notifications for a document by Id.",
|
|
18248
19271
|
{
|
|
18249
19272
|
id: putDocumentByIdNotificationsParams.shape.id,
|
|
18250
|
-
data:
|
|
19273
|
+
data: z36.object(putDocumentByIdNotificationsBody.shape)
|
|
18251
19274
|
},
|
|
18252
19275
|
async (model) => {
|
|
18253
19276
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -18268,14 +19291,14 @@ var PutDocumentNotificationsTool = CreateUmbracoTool(
|
|
|
18268
19291
|
var put_document_notifications_default = PutDocumentNotificationsTool;
|
|
18269
19292
|
|
|
18270
19293
|
// src/umb-management-api/tools/document/put/publish-document-with-descendants.ts
|
|
18271
|
-
import { z as
|
|
19294
|
+
import { z as z37 } from "zod";
|
|
18272
19295
|
var PublishDocumentWithDescendantsTool = CreateUmbracoTool(
|
|
18273
19296
|
"publish-document-with-descendants",
|
|
18274
19297
|
`Publishes a document and its descendants by Id. This is an asynchronous operation that may take time for large document trees.
|
|
18275
19298
|
The tool will poll for completion and return the final result when finished.`,
|
|
18276
19299
|
{
|
|
18277
|
-
id:
|
|
18278
|
-
data:
|
|
19300
|
+
id: z37.string().uuid(),
|
|
19301
|
+
data: z37.object(putDocumentByIdPublishWithDescendantsBody.shape)
|
|
18279
19302
|
},
|
|
18280
19303
|
async (model) => {
|
|
18281
19304
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -18347,13 +19370,13 @@ var PublishDocumentWithDescendantsTool = CreateUmbracoTool(
|
|
|
18347
19370
|
var publish_document_with_descendants_default = PublishDocumentWithDescendantsTool;
|
|
18348
19371
|
|
|
18349
19372
|
// src/umb-management-api/tools/document/put/unpublish-document.ts
|
|
18350
|
-
import { z as
|
|
19373
|
+
import { z as z38 } from "zod";
|
|
18351
19374
|
var UnpublishDocumentTool = CreateUmbracoTool(
|
|
18352
19375
|
"unpublish-document",
|
|
18353
19376
|
"Unpublishes a document by Id.",
|
|
18354
19377
|
{
|
|
18355
|
-
id:
|
|
18356
|
-
data:
|
|
19378
|
+
id: z38.string().uuid(),
|
|
19379
|
+
data: z38.object(putDocumentByIdUnpublishBody.shape)
|
|
18357
19380
|
},
|
|
18358
19381
|
async (model) => {
|
|
18359
19382
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -18397,13 +19420,13 @@ var SortDocumentTool = CreateUmbracoTool(
|
|
|
18397
19420
|
var sort_document_default = SortDocumentTool;
|
|
18398
19421
|
|
|
18399
19422
|
// src/umb-management-api/tools/document/put/move-document.ts
|
|
18400
|
-
import { z as
|
|
19423
|
+
import { z as z39 } from "zod";
|
|
18401
19424
|
var MoveDocumentTool = CreateUmbracoTool(
|
|
18402
19425
|
"move-document",
|
|
18403
19426
|
"Move a document to a new location",
|
|
18404
19427
|
{
|
|
18405
|
-
id:
|
|
18406
|
-
data:
|
|
19428
|
+
id: z39.string().uuid(),
|
|
19429
|
+
data: z39.object(putDocumentByIdMoveBody.shape)
|
|
18407
19430
|
},
|
|
18408
19431
|
async (model) => {
|
|
18409
19432
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -18422,7 +19445,7 @@ var MoveDocumentTool = CreateUmbracoTool(
|
|
|
18422
19445
|
var move_document_default = MoveDocumentTool;
|
|
18423
19446
|
|
|
18424
19447
|
// src/umb-management-api/tools/document/put/publish-document.ts
|
|
18425
|
-
import { z as
|
|
19448
|
+
import { z as z40 } from "zod";
|
|
18426
19449
|
var PublishDocumentTool = CreateUmbracoTool(
|
|
18427
19450
|
"publish-document",
|
|
18428
19451
|
`Publishes a document by Id. IMPORTANT: If workflow approval is required, use the initiate-workflow-action function instead.
|
|
@@ -18430,8 +19453,8 @@ var PublishDocumentTool = CreateUmbracoTool(
|
|
|
18430
19453
|
When the culture is not provided, the default culture is null.
|
|
18431
19454
|
When the schedule is not provided, the default schedule is null.`,
|
|
18432
19455
|
{
|
|
18433
|
-
id:
|
|
18434
|
-
data:
|
|
19456
|
+
id: z40.string().uuid(),
|
|
19457
|
+
data: z40.object(putDocumentByIdPublishBody.shape)
|
|
18435
19458
|
},
|
|
18436
19459
|
async (model) => {
|
|
18437
19460
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -18518,7 +19541,7 @@ var MoveDocumentToRecycleBinTool = CreateUmbracoTool(
|
|
|
18518
19541
|
var move_to_recycle_bin_default = MoveDocumentToRecycleBinTool;
|
|
18519
19542
|
|
|
18520
19543
|
// src/umb-management-api/tools/document/put/update-document.ts
|
|
18521
|
-
import { z as
|
|
19544
|
+
import { z as z41 } from "zod";
|
|
18522
19545
|
var UpdateDocumentTool = CreateUmbracoTool(
|
|
18523
19546
|
"update-document",
|
|
18524
19547
|
`Updates a document by Id
|
|
@@ -18526,7 +19549,7 @@ var UpdateDocumentTool = CreateUmbracoTool(
|
|
|
18526
19549
|
Don't miss any properties from the original document that you are updating`,
|
|
18527
19550
|
{
|
|
18528
19551
|
id: putDocumentByIdParams.shape.id,
|
|
18529
|
-
data:
|
|
19552
|
+
data: z41.object(putDocumentByIdBody.shape)
|
|
18530
19553
|
},
|
|
18531
19554
|
async (model) => {
|
|
18532
19555
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -18604,6 +19627,26 @@ var GetDocumentAncestorsTool = CreateUmbracoTool(
|
|
|
18604
19627
|
);
|
|
18605
19628
|
var get_ancestors_default5 = GetDocumentAncestorsTool;
|
|
18606
19629
|
|
|
19630
|
+
// src/umb-management-api/tools/document/items/get/get-siblings.ts
|
|
19631
|
+
var GetDocumentSiblingsTool = CreateUmbracoTool(
|
|
19632
|
+
"get-document-siblings",
|
|
19633
|
+
"Gets sibling documents for a given descendant id",
|
|
19634
|
+
getTreeDocumentSiblingsQueryParams.shape,
|
|
19635
|
+
async (params) => {
|
|
19636
|
+
const client = UmbracoManagementClient2.getClient();
|
|
19637
|
+
const response = await client.getTreeDocumentSiblings(params);
|
|
19638
|
+
return {
|
|
19639
|
+
content: [
|
|
19640
|
+
{
|
|
19641
|
+
type: "text",
|
|
19642
|
+
text: JSON.stringify(response)
|
|
19643
|
+
}
|
|
19644
|
+
]
|
|
19645
|
+
};
|
|
19646
|
+
}
|
|
19647
|
+
);
|
|
19648
|
+
var get_siblings_default4 = GetDocumentSiblingsTool;
|
|
19649
|
+
|
|
18607
19650
|
// src/umb-management-api/tools/document/items/get/get-recycle-bin-root.ts
|
|
18608
19651
|
var GetRecycleBinDocumentRootTool = CreateUmbracoTool(
|
|
18609
19652
|
"get-recycle-bin-document-root",
|
|
@@ -18644,6 +19687,26 @@ var GetRecycleBinDocumentChildrenTool = CreateUmbracoTool(
|
|
|
18644
19687
|
);
|
|
18645
19688
|
var get_recycle_bin_children_default = GetRecycleBinDocumentChildrenTool;
|
|
18646
19689
|
|
|
19690
|
+
// src/umb-management-api/tools/document/items/get/get-recycle-bin-siblings.ts
|
|
19691
|
+
var GetDocumentRecycleBinSiblingsTool = CreateUmbracoTool(
|
|
19692
|
+
"get-document-recycle-bin-siblings",
|
|
19693
|
+
"Gets sibling documents in the recycle bin for a given descendant id",
|
|
19694
|
+
getRecycleBinDocumentSiblingsQueryParams.shape,
|
|
19695
|
+
async (params) => {
|
|
19696
|
+
const client = UmbracoManagementClient2.getClient();
|
|
19697
|
+
const response = await client.getRecycleBinDocumentSiblings(params);
|
|
19698
|
+
return {
|
|
19699
|
+
content: [
|
|
19700
|
+
{
|
|
19701
|
+
type: "text",
|
|
19702
|
+
text: JSON.stringify(response)
|
|
19703
|
+
}
|
|
19704
|
+
]
|
|
19705
|
+
};
|
|
19706
|
+
}
|
|
19707
|
+
);
|
|
19708
|
+
var get_recycle_bin_siblings_default = GetDocumentRecycleBinSiblingsTool;
|
|
19709
|
+
|
|
18647
19710
|
// src/umb-management-api/tools/document/index.ts
|
|
18648
19711
|
var DocumentCollection = {
|
|
18649
19712
|
metadata: {
|
|
@@ -18664,6 +19727,7 @@ var DocumentCollection = {
|
|
|
18664
19727
|
tools.push(post_document_public_access_default());
|
|
18665
19728
|
tools.push(delete_document_default());
|
|
18666
19729
|
tools.push(delete_document_public_access_default());
|
|
19730
|
+
tools.push(delete_recycle_bin_item_default());
|
|
18667
19731
|
tools.push(get_document_urls_default());
|
|
18668
19732
|
tools.push(get_document_domains_default());
|
|
18669
19733
|
tools.push(get_document_audit_log_default());
|
|
@@ -18687,9 +19751,11 @@ var DocumentCollection = {
|
|
|
18687
19751
|
tools.push(search_document_default());
|
|
18688
19752
|
tools.push(validate_document_default());
|
|
18689
19753
|
tools.push(get_collection_document_by_id_default());
|
|
19754
|
+
tools.push(get_item_document_default());
|
|
18690
19755
|
tools.push(get_document_are_referenced_default());
|
|
18691
19756
|
tools.push(get_document_by_id_referenced_by_default());
|
|
18692
19757
|
tools.push(get_document_by_id_referenced_descendants_default());
|
|
19758
|
+
tools.push(get_document_available_segment_options_default());
|
|
18693
19759
|
tools.push(get_recycle_bin_document_original_parent_default());
|
|
18694
19760
|
tools.push(get_recycle_bin_document_referenced_by_default());
|
|
18695
19761
|
}
|
|
@@ -18697,6 +19763,8 @@ var DocumentCollection = {
|
|
|
18697
19763
|
tools.push(get_root_default5());
|
|
18698
19764
|
tools.push(get_children_default5());
|
|
18699
19765
|
tools.push(get_ancestors_default5());
|
|
19766
|
+
tools.push(get_siblings_default4());
|
|
19767
|
+
tools.push(get_recycle_bin_siblings_default());
|
|
18700
19768
|
}
|
|
18701
19769
|
return tools;
|
|
18702
19770
|
}
|
|
@@ -18809,7 +19877,7 @@ var DocumentVersionCollection = {
|
|
|
18809
19877
|
};
|
|
18810
19878
|
|
|
18811
19879
|
// src/umb-management-api/tools/media/post/create-media.ts
|
|
18812
|
-
import { z as
|
|
19880
|
+
import { z as z42 } from "zod";
|
|
18813
19881
|
import { v4 as uuidv46 } from "uuid";
|
|
18814
19882
|
|
|
18815
19883
|
// src/umb-management-api/tools/media/post/helpers/media-upload-helpers.ts
|
|
@@ -19283,14 +20351,14 @@ async function uploadMediaFile(client, params) {
|
|
|
19283
20351
|
}
|
|
19284
20352
|
|
|
19285
20353
|
// src/umb-management-api/tools/media/post/create-media.ts
|
|
19286
|
-
var createMediaSchema =
|
|
19287
|
-
sourceType:
|
|
19288
|
-
name:
|
|
19289
|
-
mediaTypeName:
|
|
19290
|
-
filePath:
|
|
19291
|
-
fileUrl:
|
|
19292
|
-
fileAsBase64:
|
|
19293
|
-
parentId:
|
|
20354
|
+
var createMediaSchema = z42.object({
|
|
20355
|
+
sourceType: z42.enum(["filePath", "url", "base64"]).describe("Media source type: 'filePath' for local files (most efficient), 'url' for web files, 'base64' for embedded data (small files only)"),
|
|
20356
|
+
name: z42.string().describe("The name of the media item"),
|
|
20357
|
+
mediaTypeName: z42.string().describe(`Media type: '${MEDIA_TYPE_IMAGE}', '${MEDIA_TYPE_ARTICLE}', '${MEDIA_TYPE_AUDIO}', '${MEDIA_TYPE_VIDEO}', '${MEDIA_TYPE_VECTOR_GRAPHICS}', '${MEDIA_TYPE_FILE}', or custom media type name`),
|
|
20358
|
+
filePath: z42.string().optional().describe("Absolute path to the file (required if sourceType is 'filePath')"),
|
|
20359
|
+
fileUrl: z42.string().url().optional().describe("URL to fetch the file from (required if sourceType is 'url')"),
|
|
20360
|
+
fileAsBase64: z42.string().optional().describe("Base64 encoded file data (required if sourceType is 'base64')"),
|
|
20361
|
+
parentId: z42.string().uuid().optional().describe("Parent folder ID (defaults to root)")
|
|
19294
20362
|
});
|
|
19295
20363
|
var CreateMediaTool = CreateUmbracoTool(
|
|
19296
20364
|
"create-media",
|
|
@@ -19357,17 +20425,17 @@ var CreateMediaTool = CreateUmbracoTool(
|
|
|
19357
20425
|
var create_media_default = CreateMediaTool;
|
|
19358
20426
|
|
|
19359
20427
|
// src/umb-management-api/tools/media/post/create-media-multiple.ts
|
|
19360
|
-
import { z as
|
|
20428
|
+
import { z as z43 } from "zod";
|
|
19361
20429
|
import { v4 as uuidv47 } from "uuid";
|
|
19362
|
-
var createMediaMultipleSchema =
|
|
19363
|
-
sourceType:
|
|
19364
|
-
files:
|
|
19365
|
-
name:
|
|
19366
|
-
filePath:
|
|
19367
|
-
fileUrl:
|
|
19368
|
-
mediaTypeName:
|
|
20430
|
+
var createMediaMultipleSchema = z43.object({
|
|
20431
|
+
sourceType: z43.enum(["filePath", "url"]).describe("Media source type: 'filePath' for local files (most efficient), 'url' for web files. Base64 not supported for batch uploads due to token usage."),
|
|
20432
|
+
files: z43.array(z43.object({
|
|
20433
|
+
name: z43.string().describe("The name of the media item"),
|
|
20434
|
+
filePath: z43.string().optional().describe("Absolute path to the file (required if sourceType is 'filePath')"),
|
|
20435
|
+
fileUrl: z43.string().url().optional().describe("URL to fetch the file from (required if sourceType is 'url')"),
|
|
20436
|
+
mediaTypeName: z43.string().optional().describe(`Optional override: '${MEDIA_TYPE_IMAGE}', '${MEDIA_TYPE_ARTICLE}', '${MEDIA_TYPE_AUDIO}', '${MEDIA_TYPE_VIDEO}', '${MEDIA_TYPE_VECTOR_GRAPHICS}', '${MEDIA_TYPE_FILE}', or custom media type name. If not specified, defaults to '${MEDIA_TYPE_FILE}'`)
|
|
19369
20437
|
})).describe("Array of files to upload (maximum 20 files per batch)"),
|
|
19370
|
-
parentId:
|
|
20438
|
+
parentId: z43.string().uuid().optional().describe("Parent folder ID (defaults to root)")
|
|
19371
20439
|
});
|
|
19372
20440
|
var CreateMediaMultipleTool = CreateUmbracoTool(
|
|
19373
20441
|
"create-media-multiple",
|
|
@@ -19484,7 +20552,7 @@ var GetMediaByIdTool = CreateUmbracoTool(
|
|
|
19484
20552
|
var get_media_by_id_default = GetMediaByIdTool;
|
|
19485
20553
|
|
|
19486
20554
|
// src/umb-management-api/tools/media/put/update-media.ts
|
|
19487
|
-
import { z as
|
|
20555
|
+
import { z as z44 } from "zod";
|
|
19488
20556
|
var UpdateMediaTool = CreateUmbracoTool(
|
|
19489
20557
|
"update-media",
|
|
19490
20558
|
`Updates a media item by Id
|
|
@@ -19493,7 +20561,7 @@ var UpdateMediaTool = CreateUmbracoTool(
|
|
|
19493
20561
|
This cannot be used for moving media to a new folder. Use the move endpoint to do that`,
|
|
19494
20562
|
{
|
|
19495
20563
|
id: putMediaByIdParams.shape.id,
|
|
19496
|
-
data:
|
|
20564
|
+
data: z44.object(putMediaByIdBody.shape)
|
|
19497
20565
|
},
|
|
19498
20566
|
async (model) => {
|
|
19499
20567
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -19571,6 +20639,30 @@ var ValidateMediaTool = CreateUmbracoTool(
|
|
|
19571
20639
|
);
|
|
19572
20640
|
var validate_media_default = ValidateMediaTool;
|
|
19573
20641
|
|
|
20642
|
+
// src/umb-management-api/tools/media/put/validate-media.ts
|
|
20643
|
+
import { z as z45 } from "zod";
|
|
20644
|
+
var ValidateMediaUpdateTool = CreateUmbracoTool(
|
|
20645
|
+
"validate-media-update",
|
|
20646
|
+
"Validates media data before updating an existing media item by Id",
|
|
20647
|
+
{
|
|
20648
|
+
id: putMediaByIdValidateParams.shape.id,
|
|
20649
|
+
data: z45.object(putMediaByIdValidateBody.shape)
|
|
20650
|
+
},
|
|
20651
|
+
async (model) => {
|
|
20652
|
+
const client = UmbracoManagementClient2.getClient();
|
|
20653
|
+
const response = await client.putMediaByIdValidate(model.id, model.data);
|
|
20654
|
+
return {
|
|
20655
|
+
content: [
|
|
20656
|
+
{
|
|
20657
|
+
type: "text",
|
|
20658
|
+
text: JSON.stringify(response)
|
|
20659
|
+
}
|
|
20660
|
+
]
|
|
20661
|
+
};
|
|
20662
|
+
}
|
|
20663
|
+
);
|
|
20664
|
+
var validate_media_default2 = ValidateMediaUpdateTool;
|
|
20665
|
+
|
|
19574
20666
|
// src/umb-management-api/tools/media/put/sort-media.ts
|
|
19575
20667
|
var SortMediaTool = CreateUmbracoTool(
|
|
19576
20668
|
"sort-media",
|
|
@@ -19613,13 +20705,13 @@ var GetMediaByIdArrayTool = CreateUmbracoTool(
|
|
|
19613
20705
|
var get_media_by_id_array_default = GetMediaByIdArrayTool;
|
|
19614
20706
|
|
|
19615
20707
|
// src/umb-management-api/tools/media/put/move-media.ts
|
|
19616
|
-
import { z as
|
|
20708
|
+
import { z as z46 } from "zod";
|
|
19617
20709
|
var MoveMediaTool = CreateUmbracoTool(
|
|
19618
20710
|
"move-media",
|
|
19619
20711
|
"Move a media item to a new location",
|
|
19620
20712
|
{
|
|
19621
|
-
id:
|
|
19622
|
-
data:
|
|
20713
|
+
id: z46.string().uuid(),
|
|
20714
|
+
data: z46.object(putMediaByIdMoveBody.shape)
|
|
19623
20715
|
},
|
|
19624
20716
|
async (model) => {
|
|
19625
20717
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -19676,6 +20768,26 @@ var GetMediaChildrenTool = CreateUmbracoTool(
|
|
|
19676
20768
|
);
|
|
19677
20769
|
var get_children_default6 = GetMediaChildrenTool;
|
|
19678
20770
|
|
|
20771
|
+
// src/umb-management-api/tools/media/items/get/get-siblings.ts
|
|
20772
|
+
var GetMediaSiblingsTool = CreateUmbracoTool(
|
|
20773
|
+
"get-media-siblings",
|
|
20774
|
+
"Gets sibling media items for a given descendant id",
|
|
20775
|
+
getTreeMediaSiblingsQueryParams.shape,
|
|
20776
|
+
async (params) => {
|
|
20777
|
+
const client = UmbracoManagementClient2.getClient();
|
|
20778
|
+
const response = await client.getTreeMediaSiblings(params);
|
|
20779
|
+
return {
|
|
20780
|
+
content: [
|
|
20781
|
+
{
|
|
20782
|
+
type: "text",
|
|
20783
|
+
text: JSON.stringify(response)
|
|
20784
|
+
}
|
|
20785
|
+
]
|
|
20786
|
+
};
|
|
20787
|
+
}
|
|
20788
|
+
);
|
|
20789
|
+
var get_siblings_default5 = GetMediaSiblingsTool;
|
|
20790
|
+
|
|
19679
20791
|
// src/umb-management-api/tools/media/items/get/get-root.ts
|
|
19680
20792
|
var GetMediaRootTool = CreateUmbracoTool(
|
|
19681
20793
|
"get-media-root",
|
|
@@ -19697,13 +20809,13 @@ var GetMediaRootTool = CreateUmbracoTool(
|
|
|
19697
20809
|
var get_root_default6 = GetMediaRootTool;
|
|
19698
20810
|
|
|
19699
20811
|
// src/umb-management-api/tools/media/get/get-media-audit-log.ts
|
|
19700
|
-
import { z as
|
|
20812
|
+
import { z as z47 } from "zod";
|
|
19701
20813
|
var GetMediaAuditLogTool = CreateUmbracoTool(
|
|
19702
20814
|
"get-media-audit-log",
|
|
19703
20815
|
"Fetches the audit log for a media item by Id.",
|
|
19704
20816
|
{
|
|
19705
20817
|
id: getMediaByIdAuditLogParams.shape.id,
|
|
19706
|
-
data:
|
|
20818
|
+
data: z47.object(getMediaByIdAuditLogQueryParams.shape)
|
|
19707
20819
|
},
|
|
19708
20820
|
async (model) => {
|
|
19709
20821
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -19760,6 +20872,26 @@ var GetRecycleBinMediaChildrenTool = CreateUmbracoTool(
|
|
|
19760
20872
|
);
|
|
19761
20873
|
var get_recycle_bin_children_default2 = GetRecycleBinMediaChildrenTool;
|
|
19762
20874
|
|
|
20875
|
+
// src/umb-management-api/tools/media/items/get/get-recycle-bin-siblings.ts
|
|
20876
|
+
var GetMediaRecycleBinSiblingsTool = CreateUmbracoTool(
|
|
20877
|
+
"get-media-recycle-bin-siblings",
|
|
20878
|
+
"Gets sibling media items in the recycle bin for a given descendant id",
|
|
20879
|
+
getRecycleBinMediaSiblingsQueryParams.shape,
|
|
20880
|
+
async (params) => {
|
|
20881
|
+
const client = UmbracoManagementClient2.getClient();
|
|
20882
|
+
const response = await client.getRecycleBinMediaSiblings(params);
|
|
20883
|
+
return {
|
|
20884
|
+
content: [
|
|
20885
|
+
{
|
|
20886
|
+
type: "text",
|
|
20887
|
+
text: JSON.stringify(response)
|
|
20888
|
+
}
|
|
20889
|
+
]
|
|
20890
|
+
};
|
|
20891
|
+
}
|
|
20892
|
+
);
|
|
20893
|
+
var get_recycle_bin_siblings_default2 = GetMediaRecycleBinSiblingsTool;
|
|
20894
|
+
|
|
19763
20895
|
// src/umb-management-api/tools/media/delete/empty-recycle-bin.ts
|
|
19764
20896
|
var EmptyRecycleBinTool2 = CreateUmbracoTool(
|
|
19765
20897
|
"empty-media-recycle-bin",
|
|
@@ -19842,6 +20974,26 @@ var DeleteFromRecycleBinTool2 = CreateUmbracoTool(
|
|
|
19842
20974
|
);
|
|
19843
20975
|
var delete_from_recycle_bin_default2 = DeleteFromRecycleBinTool2;
|
|
19844
20976
|
|
|
20977
|
+
// src/umb-management-api/tools/media/delete/delete-recycle-bin-item.ts
|
|
20978
|
+
var DeleteMediaRecycleBinItemTool = CreateUmbracoTool(
|
|
20979
|
+
"delete-media-recycle-bin-item",
|
|
20980
|
+
"Permanently deletes a media item from the recycle bin by its id",
|
|
20981
|
+
deleteRecycleBinMediaByIdParams.shape,
|
|
20982
|
+
async (params) => {
|
|
20983
|
+
const client = UmbracoManagementClient2.getClient();
|
|
20984
|
+
await client.deleteRecycleBinMediaById(params.id);
|
|
20985
|
+
return {
|
|
20986
|
+
content: [
|
|
20987
|
+
{
|
|
20988
|
+
type: "text",
|
|
20989
|
+
text: JSON.stringify({ success: true, message: "Media item permanently deleted from recycle bin" })
|
|
20990
|
+
}
|
|
20991
|
+
]
|
|
20992
|
+
};
|
|
20993
|
+
}
|
|
20994
|
+
);
|
|
20995
|
+
var delete_recycle_bin_item_default2 = DeleteMediaRecycleBinItemTool;
|
|
20996
|
+
|
|
19845
20997
|
// src/umb-management-api/tools/media/get/get-media-are-referenced.ts
|
|
19846
20998
|
var GetMediaAreReferencedTool = CreateUmbracoTool(
|
|
19847
20999
|
"get-media-are-referenced",
|
|
@@ -19864,12 +21016,12 @@ var GetMediaAreReferencedTool = CreateUmbracoTool(
|
|
|
19864
21016
|
var get_media_are_referenced_default = GetMediaAreReferencedTool;
|
|
19865
21017
|
|
|
19866
21018
|
// src/umb-management-api/tools/media/get/get-media-by-id-referenced-by.ts
|
|
19867
|
-
import { z as
|
|
21019
|
+
import { z as z48 } from "zod";
|
|
19868
21020
|
var GetMediaByIdReferencedByTool = CreateUmbracoTool(
|
|
19869
21021
|
"get-media-by-id-referenced-by",
|
|
19870
21022
|
`Get items that reference a specific media item
|
|
19871
21023
|
Use this to find all content, documents, or other items that are currently referencing a specific media item.`,
|
|
19872
|
-
|
|
21024
|
+
z48.object({
|
|
19873
21025
|
...getMediaByIdReferencedByParams.shape,
|
|
19874
21026
|
...getMediaByIdReferencedByQueryParams.shape
|
|
19875
21027
|
}).shape,
|
|
@@ -19889,7 +21041,7 @@ var GetMediaByIdReferencedByTool = CreateUmbracoTool(
|
|
|
19889
21041
|
var get_media_by_id_referenced_by_default = GetMediaByIdReferencedByTool;
|
|
19890
21042
|
|
|
19891
21043
|
// src/umb-management-api/tools/media/get/get-media-by-id-referenced-descendants.ts
|
|
19892
|
-
import { z as
|
|
21044
|
+
import { z as z49 } from "zod";
|
|
19893
21045
|
var GetMediaByIdReferencedDescendantsTool = CreateUmbracoTool(
|
|
19894
21046
|
"get-media-by-id-referenced-descendants",
|
|
19895
21047
|
`Get descendant references for a media item
|
|
@@ -19899,7 +21051,7 @@ var GetMediaByIdReferencedDescendantsTool = CreateUmbracoTool(
|
|
|
19899
21051
|
\u2022 Impact analysis: Before deleting a media folder, see what content would be affected
|
|
19900
21052
|
\u2022 Dependency tracking: Find all content using media from a specific folder hierarchy
|
|
19901
21053
|
\u2022 Content auditing: Identify which descendant media items are actually being used`,
|
|
19902
|
-
|
|
21054
|
+
z49.object({
|
|
19903
21055
|
...getMediaByIdReferencedDescendantsParams.shape,
|
|
19904
21056
|
...getMediaByIdReferencedDescendantsQueryParams.shape
|
|
19905
21057
|
}).shape,
|
|
@@ -20003,6 +21155,7 @@ var MediaCollection = {
|
|
|
20003
21155
|
if (AuthorizationPolicies.SectionAccessForMediaTree(user)) {
|
|
20004
21156
|
tools.push(get_ancestors_default6());
|
|
20005
21157
|
tools.push(get_children_default6());
|
|
21158
|
+
tools.push(get_siblings_default5());
|
|
20006
21159
|
tools.push(get_root_default6());
|
|
20007
21160
|
}
|
|
20008
21161
|
if (AuthorizationPolicies.SectionAccessMedia(user)) {
|
|
@@ -20013,16 +21166,19 @@ var MediaCollection = {
|
|
|
20013
21166
|
tools.push(get_media_configuration_default());
|
|
20014
21167
|
tools.push(get_media_urls_default());
|
|
20015
21168
|
tools.push(validate_media_default());
|
|
21169
|
+
tools.push(validate_media_default2());
|
|
20016
21170
|
tools.push(sort_media_default());
|
|
20017
21171
|
tools.push(get_media_by_id_array_default());
|
|
20018
21172
|
tools.push(move_media_default());
|
|
20019
21173
|
tools.push(get_media_audit_log_default());
|
|
20020
21174
|
tools.push(get_recycle_bin_root_default2());
|
|
20021
21175
|
tools.push(get_recycle_bin_children_default2());
|
|
21176
|
+
tools.push(get_recycle_bin_siblings_default2());
|
|
20022
21177
|
tools.push(empty_recycle_bin_default2());
|
|
20023
21178
|
tools.push(restore_from_recycle_bin_default2());
|
|
20024
21179
|
tools.push(move_to_recycle_bin_default2());
|
|
20025
21180
|
tools.push(delete_from_recycle_bin_default2());
|
|
21181
|
+
tools.push(delete_recycle_bin_item_default2());
|
|
20026
21182
|
tools.push(get_media_are_referenced_default());
|
|
20027
21183
|
tools.push(get_media_by_id_referenced_by_default());
|
|
20028
21184
|
tools.push(get_media_by_id_referenced_descendants_default());
|
|
@@ -20075,12 +21231,12 @@ var GetMediaTypeByIdTool = CreateUmbracoTool(
|
|
|
20075
21231
|
var get_media_type_by_id_default = GetMediaTypeByIdTool;
|
|
20076
21232
|
|
|
20077
21233
|
// src/umb-management-api/tools/media-type/get/get-media-type-by-ids.ts
|
|
20078
|
-
import { z as
|
|
21234
|
+
import { z as z50 } from "zod";
|
|
20079
21235
|
var GetMediaTypeByIdsTool = CreateUmbracoTool(
|
|
20080
21236
|
"get-media-type-by-ids",
|
|
20081
21237
|
"Gets media types by ids",
|
|
20082
21238
|
{
|
|
20083
|
-
ids:
|
|
21239
|
+
ids: z50.array(z50.string())
|
|
20084
21240
|
},
|
|
20085
21241
|
async ({ ids }) => {
|
|
20086
21242
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -20099,6 +21255,26 @@ var GetMediaTypeByIdsTool = CreateUmbracoTool(
|
|
|
20099
21255
|
);
|
|
20100
21256
|
var get_media_type_by_ids_default = GetMediaTypeByIdsTool;
|
|
20101
21257
|
|
|
21258
|
+
// src/umb-management-api/tools/media-type/get/get-item-media-type.ts
|
|
21259
|
+
var GetItemMediaTypeTool = CreateUmbracoTool(
|
|
21260
|
+
"get-item-media-type",
|
|
21261
|
+
"Gets media type items by their ids",
|
|
21262
|
+
getItemMediaTypeQueryParams.shape,
|
|
21263
|
+
async (params) => {
|
|
21264
|
+
const client = UmbracoManagementClient2.getClient();
|
|
21265
|
+
const response = await client.getItemMediaType(params);
|
|
21266
|
+
return {
|
|
21267
|
+
content: [
|
|
21268
|
+
{
|
|
21269
|
+
type: "text",
|
|
21270
|
+
text: JSON.stringify(response)
|
|
21271
|
+
}
|
|
21272
|
+
]
|
|
21273
|
+
};
|
|
21274
|
+
}
|
|
21275
|
+
);
|
|
21276
|
+
var get_item_media_type_default = GetItemMediaTypeTool;
|
|
21277
|
+
|
|
20102
21278
|
// src/umb-management-api/tools/media-type/get/get-allowed.ts
|
|
20103
21279
|
var GetAllowedMediaTypeTool = CreateUmbracoTool(
|
|
20104
21280
|
"get-allowed-media-type",
|
|
@@ -20225,6 +21401,26 @@ var GetMediaTypeChildrenTool = CreateUmbracoTool(
|
|
|
20225
21401
|
);
|
|
20226
21402
|
var get_children_default7 = GetMediaTypeChildrenTool;
|
|
20227
21403
|
|
|
21404
|
+
// src/umb-management-api/tools/media-type/items/get/get-siblings.ts
|
|
21405
|
+
var GetMediaTypeSiblingsTool = CreateUmbracoTool(
|
|
21406
|
+
"get-media-type-siblings",
|
|
21407
|
+
"Gets sibling media types or media type folders for a given descendant id",
|
|
21408
|
+
getTreeMediaTypeSiblingsQueryParams.shape,
|
|
21409
|
+
async (params) => {
|
|
21410
|
+
const client = UmbracoManagementClient2.getClient();
|
|
21411
|
+
const response = await client.getTreeMediaTypeSiblings(params);
|
|
21412
|
+
return {
|
|
21413
|
+
content: [
|
|
21414
|
+
{
|
|
21415
|
+
type: "text",
|
|
21416
|
+
text: JSON.stringify(response)
|
|
21417
|
+
}
|
|
21418
|
+
]
|
|
21419
|
+
};
|
|
21420
|
+
}
|
|
21421
|
+
);
|
|
21422
|
+
var get_siblings_default6 = GetMediaTypeSiblingsTool;
|
|
21423
|
+
|
|
20228
21424
|
// src/umb-management-api/tools/media-type/items/get/get-ancestors.ts
|
|
20229
21425
|
var GetMediaTypeAncestorsTool = CreateUmbracoTool(
|
|
20230
21426
|
"get-media-type-ancestors",
|
|
@@ -20326,13 +21522,13 @@ var DeleteMediaTypeFolderTool = CreateUmbracoTool(
|
|
|
20326
21522
|
var delete_folder_default4 = DeleteMediaTypeFolderTool;
|
|
20327
21523
|
|
|
20328
21524
|
// src/umb-management-api/tools/media-type/folders/put/update-folder.ts
|
|
20329
|
-
import { z as
|
|
21525
|
+
import { z as z51 } from "zod";
|
|
20330
21526
|
var UpdateMediaTypeFolderTool = CreateUmbracoTool(
|
|
20331
21527
|
"update-media-type-folder",
|
|
20332
21528
|
"Updates a media type folder by Id",
|
|
20333
21529
|
{
|
|
20334
21530
|
id: putMediaTypeFolderByIdParams.shape.id,
|
|
20335
|
-
data:
|
|
21531
|
+
data: z51.object(putMediaTypeFolderByIdBody.shape)
|
|
20336
21532
|
},
|
|
20337
21533
|
async (model) => {
|
|
20338
21534
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -20350,25 +21546,25 @@ var UpdateMediaTypeFolderTool = CreateUmbracoTool(
|
|
|
20350
21546
|
var update_folder_default4 = UpdateMediaTypeFolderTool;
|
|
20351
21547
|
|
|
20352
21548
|
// src/umb-management-api/tools/media-type/post/create-media-type.ts
|
|
20353
|
-
import { z as
|
|
21549
|
+
import { z as z52 } from "zod";
|
|
20354
21550
|
var propertySchema2 = postMediaTypeBody.shape.properties;
|
|
20355
21551
|
var containerSchema = postMediaTypeBody.shape.containers;
|
|
20356
21552
|
var allowedMediaTypeSchema = postMediaTypeBody.shape.allowedMediaTypes;
|
|
20357
21553
|
var compositionSchema = postMediaTypeBody.shape.compositions;
|
|
20358
21554
|
var collectionSchema = postMediaTypeBody.shape.collection;
|
|
20359
|
-
var createMediaTypeSchema =
|
|
20360
|
-
alias:
|
|
20361
|
-
name:
|
|
20362
|
-
description:
|
|
20363
|
-
icon:
|
|
20364
|
-
allowedAsRoot:
|
|
20365
|
-
variesByCulture:
|
|
20366
|
-
variesBySegment:
|
|
20367
|
-
isElement:
|
|
21555
|
+
var createMediaTypeSchema = z52.object({
|
|
21556
|
+
alias: z52.string().min(1),
|
|
21557
|
+
name: z52.string().min(1),
|
|
21558
|
+
description: z52.string().nullish(),
|
|
21559
|
+
icon: z52.string().min(1),
|
|
21560
|
+
allowedAsRoot: z52.boolean(),
|
|
21561
|
+
variesByCulture: z52.boolean(),
|
|
21562
|
+
variesBySegment: z52.boolean(),
|
|
21563
|
+
isElement: z52.boolean(),
|
|
20368
21564
|
properties: propertySchema2,
|
|
20369
21565
|
containers: containerSchema,
|
|
20370
|
-
id:
|
|
20371
|
-
parentId:
|
|
21566
|
+
id: z52.string().uuid().nullish(),
|
|
21567
|
+
parentId: z52.string().uuid().optional(),
|
|
20372
21568
|
// Flattened parent ID
|
|
20373
21569
|
allowedMediaTypes: allowedMediaTypeSchema,
|
|
20374
21570
|
compositions: compositionSchema,
|
|
@@ -20411,13 +21607,13 @@ var CreateMediaTypeTool = CreateUmbracoTool(
|
|
|
20411
21607
|
var create_media_type_default = CreateMediaTypeTool;
|
|
20412
21608
|
|
|
20413
21609
|
// src/umb-management-api/tools/media-type/post/copy-media-type.ts
|
|
20414
|
-
import { z as
|
|
21610
|
+
import { z as z53 } from "zod";
|
|
20415
21611
|
var CopyMediaTypeTool = CreateUmbracoTool(
|
|
20416
21612
|
"copy-media-type",
|
|
20417
21613
|
"Copy a media type to a new location",
|
|
20418
21614
|
{
|
|
20419
|
-
id:
|
|
20420
|
-
data:
|
|
21615
|
+
id: z53.string().uuid(),
|
|
21616
|
+
data: z53.object(postMediaTypeByIdCopyBody.shape)
|
|
20421
21617
|
},
|
|
20422
21618
|
async (model) => {
|
|
20423
21619
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -20455,13 +21651,13 @@ var GetMediaTypeAvailableCompositionsTool = CreateUmbracoTool(
|
|
|
20455
21651
|
var get_media_type_available_compositions_default = GetMediaTypeAvailableCompositionsTool;
|
|
20456
21652
|
|
|
20457
21653
|
// src/umb-management-api/tools/media-type/put/update-media-type.ts
|
|
20458
|
-
import { z as
|
|
21654
|
+
import { z as z54 } from "zod";
|
|
20459
21655
|
var UpdateMediaTypeTool = CreateUmbracoTool(
|
|
20460
21656
|
"update-media-type",
|
|
20461
21657
|
"Updates a media type by Id",
|
|
20462
21658
|
{
|
|
20463
21659
|
id: putMediaTypeByIdParams.shape.id,
|
|
20464
|
-
data:
|
|
21660
|
+
data: z54.object(putMediaTypeByIdBody.shape)
|
|
20465
21661
|
},
|
|
20466
21662
|
async (model) => {
|
|
20467
21663
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -20479,13 +21675,13 @@ var UpdateMediaTypeTool = CreateUmbracoTool(
|
|
|
20479
21675
|
var update_media_type_default = UpdateMediaTypeTool;
|
|
20480
21676
|
|
|
20481
21677
|
// src/umb-management-api/tools/media-type/put/move-media-type.ts
|
|
20482
|
-
import { z as
|
|
21678
|
+
import { z as z55 } from "zod";
|
|
20483
21679
|
var MoveMediaTypeTool = CreateUmbracoTool(
|
|
20484
21680
|
"move-media-type",
|
|
20485
21681
|
"Move a media type to a new location",
|
|
20486
21682
|
{
|
|
20487
|
-
id:
|
|
20488
|
-
data:
|
|
21683
|
+
id: z55.string().uuid(),
|
|
21684
|
+
data: z55.object(putMediaTypeByIdMoveBody.shape)
|
|
20489
21685
|
},
|
|
20490
21686
|
async (model) => {
|
|
20491
21687
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -20545,12 +21741,14 @@ var MediaTypeCollection = {
|
|
|
20545
21741
|
tools.push(delete_media_type_default());
|
|
20546
21742
|
tools.push(get_root_default7());
|
|
20547
21743
|
tools.push(get_children_default7());
|
|
21744
|
+
tools.push(get_siblings_default6());
|
|
20548
21745
|
tools.push(get_ancestors_default7());
|
|
20549
21746
|
tools.push(get_media_type_folders_default());
|
|
20550
21747
|
}
|
|
20551
21748
|
if (AuthorizationPolicies.TreeAccessMediaOrMediaTypes(user)) {
|
|
20552
21749
|
tools.push(get_media_type_by_id_default());
|
|
20553
21750
|
tools.push(get_media_type_by_ids_default());
|
|
21751
|
+
tools.push(get_item_media_type_default());
|
|
20554
21752
|
tools.push(get_media_type_configuration_default());
|
|
20555
21753
|
tools.push(get_allowed_default());
|
|
20556
21754
|
tools.push(get_media_type_allowed_at_root_default());
|
|
@@ -20644,13 +21842,13 @@ var DeleteMemberTool = CreateUmbracoTool(
|
|
|
20644
21842
|
var delete_member_default = DeleteMemberTool;
|
|
20645
21843
|
|
|
20646
21844
|
// src/umb-management-api/tools/member/put/update-member.ts
|
|
20647
|
-
import { z as
|
|
21845
|
+
import { z as z56 } from "zod";
|
|
20648
21846
|
var UpdateMemberTool = CreateUmbracoTool(
|
|
20649
21847
|
"update-member",
|
|
20650
21848
|
"Updates a member by Id",
|
|
20651
21849
|
{
|
|
20652
21850
|
id: putMemberByIdParams.shape.id,
|
|
20653
|
-
data:
|
|
21851
|
+
data: z56.object(putMemberByIdBody.shape)
|
|
20654
21852
|
},
|
|
20655
21853
|
async (model) => {
|
|
20656
21854
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -20668,14 +21866,14 @@ var UpdateMemberTool = CreateUmbracoTool(
|
|
|
20668
21866
|
var update_member_default = UpdateMemberTool;
|
|
20669
21867
|
|
|
20670
21868
|
// src/umb-management-api/tools/member/put/validate-member-update.ts
|
|
20671
|
-
import { z as
|
|
21869
|
+
import { z as z57 } from "zod";
|
|
20672
21870
|
var ValidateMemberUpdateTool = CreateUmbracoTool(
|
|
20673
21871
|
"validate-member-update",
|
|
20674
21872
|
`Validates member data before updating using the Umbraco API.
|
|
20675
21873
|
Use this endpoint to validate member data structure, properties, and business rules before attempting to update an existing member.`,
|
|
20676
21874
|
{
|
|
20677
21875
|
id: putMemberByIdValidateParams.shape.id,
|
|
20678
|
-
data:
|
|
21876
|
+
data: z57.object(putMemberByIdValidateBody.shape)
|
|
20679
21877
|
},
|
|
20680
21878
|
async (model) => {
|
|
20681
21879
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -20734,12 +21932,12 @@ var GetMemberAreReferencedTool = CreateUmbracoTool(
|
|
|
20734
21932
|
var get_member_are_referenced_default = GetMemberAreReferencedTool;
|
|
20735
21933
|
|
|
20736
21934
|
// src/umb-management-api/tools/member/get/get-member-by-id-referenced-by.ts
|
|
20737
|
-
import { z as
|
|
21935
|
+
import { z as z58 } from "zod";
|
|
20738
21936
|
var GetMemberByIdReferencedByTool = CreateUmbracoTool(
|
|
20739
21937
|
"get-member-by-id-referenced-by",
|
|
20740
21938
|
`Get items that reference a specific member
|
|
20741
21939
|
Use this to find all content, documents, or other items that are currently referencing a specific member account.`,
|
|
20742
|
-
|
|
21940
|
+
z58.object({
|
|
20743
21941
|
...getMemberByIdReferencedByParams.shape,
|
|
20744
21942
|
...getMemberByIdReferencedByQueryParams.shape
|
|
20745
21943
|
}).shape,
|
|
@@ -20759,12 +21957,12 @@ var GetMemberByIdReferencedByTool = CreateUmbracoTool(
|
|
|
20759
21957
|
var get_member_by_id_referenced_by_default = GetMemberByIdReferencedByTool;
|
|
20760
21958
|
|
|
20761
21959
|
// src/umb-management-api/tools/member/get/get-member-by-id-referenced-descendants.ts
|
|
20762
|
-
import { z as
|
|
21960
|
+
import { z as z59 } from "zod";
|
|
20763
21961
|
var GetMemberByIdReferencedDescendantsTool = CreateUmbracoTool(
|
|
20764
21962
|
"get-member-by-id-referenced-descendants",
|
|
20765
21963
|
`Get descendant references for a member
|
|
20766
21964
|
Use this to find all descendant references that are being referenced for a specific member account.`,
|
|
20767
|
-
|
|
21965
|
+
z59.object({
|
|
20768
21966
|
...getMemberByIdReferencedDescendantsParams.shape,
|
|
20769
21967
|
...getMemberByIdReferencedDescendantsQueryParams.shape
|
|
20770
21968
|
}).shape,
|
|
@@ -20783,6 +21981,26 @@ var GetMemberByIdReferencedDescendantsTool = CreateUmbracoTool(
|
|
|
20783
21981
|
);
|
|
20784
21982
|
var get_member_by_id_referenced_descendants_default = GetMemberByIdReferencedDescendantsTool;
|
|
20785
21983
|
|
|
21984
|
+
// src/umb-management-api/tools/member/get/get-item-member-search.ts
|
|
21985
|
+
var GetItemMemberSearchTool = CreateUmbracoTool(
|
|
21986
|
+
"get-item-member-search",
|
|
21987
|
+
`Searches for member items`,
|
|
21988
|
+
getItemMemberSearchQueryParams.shape,
|
|
21989
|
+
async (model) => {
|
|
21990
|
+
const client = UmbracoManagementClient2.getClient();
|
|
21991
|
+
var response = await client.getItemMemberSearch(model);
|
|
21992
|
+
return {
|
|
21993
|
+
content: [
|
|
21994
|
+
{
|
|
21995
|
+
type: "text",
|
|
21996
|
+
text: JSON.stringify(response)
|
|
21997
|
+
}
|
|
21998
|
+
]
|
|
21999
|
+
};
|
|
22000
|
+
}
|
|
22001
|
+
);
|
|
22002
|
+
var get_item_member_search_default = GetItemMemberSearchTool;
|
|
22003
|
+
|
|
20786
22004
|
// src/umb-management-api/tools/member/index.ts
|
|
20787
22005
|
var MemberCollection = {
|
|
20788
22006
|
metadata: {
|
|
@@ -20805,6 +22023,7 @@ var MemberCollection = {
|
|
|
20805
22023
|
tools.push(get_member_by_id_referenced_descendants_default());
|
|
20806
22024
|
}
|
|
20807
22025
|
tools.push(find_member_default());
|
|
22026
|
+
tools.push(get_item_member_search_default());
|
|
20808
22027
|
return tools;
|
|
20809
22028
|
}
|
|
20810
22029
|
};
|
|
@@ -20870,6 +22089,26 @@ var GetMemberGroupRootTool = CreateUmbracoTool(
|
|
|
20870
22089
|
);
|
|
20871
22090
|
var get_root_default8 = GetMemberGroupRootTool;
|
|
20872
22091
|
|
|
22092
|
+
// src/umb-management-api/tools/member-group/get/get-all-member-groups.ts
|
|
22093
|
+
var GetAllMemberGroupsTool = CreateUmbracoTool(
|
|
22094
|
+
"get-all-member-groups",
|
|
22095
|
+
`Gets all member groups with optional pagination`,
|
|
22096
|
+
getMemberGroupQueryParams.shape,
|
|
22097
|
+
async (model) => {
|
|
22098
|
+
const client = UmbracoManagementClient2.getClient();
|
|
22099
|
+
var response = await client.getMemberGroup(model);
|
|
22100
|
+
return {
|
|
22101
|
+
content: [
|
|
22102
|
+
{
|
|
22103
|
+
type: "text",
|
|
22104
|
+
text: JSON.stringify(response)
|
|
22105
|
+
}
|
|
22106
|
+
]
|
|
22107
|
+
};
|
|
22108
|
+
}
|
|
22109
|
+
);
|
|
22110
|
+
var get_all_member_groups_default = GetAllMemberGroupsTool;
|
|
22111
|
+
|
|
20873
22112
|
// src/umb-management-api/tools/member-group/post/create-member-group.ts
|
|
20874
22113
|
var CreateMemberGroupTool = CreateUmbracoTool(
|
|
20875
22114
|
"create-member-group",
|
|
@@ -20891,13 +22130,13 @@ var CreateMemberGroupTool = CreateUmbracoTool(
|
|
|
20891
22130
|
var create_member_group_default = CreateMemberGroupTool;
|
|
20892
22131
|
|
|
20893
22132
|
// src/umb-management-api/tools/member-group/put/update-member-group.ts
|
|
20894
|
-
import { z as
|
|
22133
|
+
import { z as z60 } from "zod";
|
|
20895
22134
|
var UpdateMemberGroupTool = CreateUmbracoTool(
|
|
20896
22135
|
"update-member-group",
|
|
20897
22136
|
"Updates a member group by Id",
|
|
20898
22137
|
{
|
|
20899
22138
|
id: putMemberGroupByIdParams.shape.id,
|
|
20900
|
-
data:
|
|
22139
|
+
data: z60.object(putMemberGroupByIdBody.shape)
|
|
20901
22140
|
},
|
|
20902
22141
|
async (model) => {
|
|
20903
22142
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -20946,6 +22185,7 @@ var MemberGroupCollection = {
|
|
|
20946
22185
|
const tools = [];
|
|
20947
22186
|
tools.push(get_member_group_default());
|
|
20948
22187
|
tools.push(get_member_group_by_id_array_default());
|
|
22188
|
+
tools.push(get_all_member_groups_default());
|
|
20949
22189
|
if (AuthorizationPolicies.SectionAccessMembers(user)) {
|
|
20950
22190
|
tools.push(create_member_group_default());
|
|
20951
22191
|
tools.push(update_member_group_default());
|
|
@@ -21039,13 +22279,13 @@ var DeleteMemberTypeTool = CreateUmbracoTool(
|
|
|
21039
22279
|
var delete_member_type_default = DeleteMemberTypeTool;
|
|
21040
22280
|
|
|
21041
22281
|
// src/umb-management-api/tools/member-type/put/update-member-type.ts
|
|
21042
|
-
import { z as
|
|
22282
|
+
import { z as z61 } from "zod";
|
|
21043
22283
|
var UpdateMemberTypeTool = CreateUmbracoTool(
|
|
21044
22284
|
"update-member-type",
|
|
21045
22285
|
"Updates a member type by id",
|
|
21046
22286
|
{
|
|
21047
22287
|
id: putMemberTypeByIdParams.shape.id,
|
|
21048
|
-
data:
|
|
22288
|
+
data: z61.object(putMemberTypeByIdBody.shape)
|
|
21049
22289
|
},
|
|
21050
22290
|
async (model) => {
|
|
21051
22291
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -21063,12 +22303,12 @@ var UpdateMemberTypeTool = CreateUmbracoTool(
|
|
|
21063
22303
|
var update_member_type_default = UpdateMemberTypeTool;
|
|
21064
22304
|
|
|
21065
22305
|
// src/umb-management-api/tools/member-type/post/copy-member-type.ts
|
|
21066
|
-
import { z as
|
|
22306
|
+
import { z as z62 } from "zod";
|
|
21067
22307
|
var CopyMemberTypeTool = CreateUmbracoTool(
|
|
21068
22308
|
"copy-member-type",
|
|
21069
22309
|
"Copy a member type to a new location",
|
|
21070
22310
|
{
|
|
21071
|
-
id:
|
|
22311
|
+
id: z62.string().uuid()
|
|
21072
22312
|
},
|
|
21073
22313
|
async (model) => {
|
|
21074
22314
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -21165,6 +22405,46 @@ var GetMemberTypeRootTool = CreateUmbracoTool(
|
|
|
21165
22405
|
);
|
|
21166
22406
|
var get_root_default9 = GetMemberTypeRootTool;
|
|
21167
22407
|
|
|
22408
|
+
// src/umb-management-api/tools/member-type/items/get/get-siblings.ts
|
|
22409
|
+
var GetMemberTypeSiblingsTool = CreateUmbracoTool(
|
|
22410
|
+
"get-member-type-siblings",
|
|
22411
|
+
"Gets sibling member types or member type folders for a given descendant id",
|
|
22412
|
+
getTreeMemberTypeSiblingsQueryParams.shape,
|
|
22413
|
+
async (params) => {
|
|
22414
|
+
const client = UmbracoManagementClient2.getClient();
|
|
22415
|
+
var response = await client.getTreeMemberTypeSiblings(params);
|
|
22416
|
+
return {
|
|
22417
|
+
content: [
|
|
22418
|
+
{
|
|
22419
|
+
type: "text",
|
|
22420
|
+
text: JSON.stringify(response)
|
|
22421
|
+
}
|
|
22422
|
+
]
|
|
22423
|
+
};
|
|
22424
|
+
}
|
|
22425
|
+
);
|
|
22426
|
+
var get_siblings_default7 = GetMemberTypeSiblingsTool;
|
|
22427
|
+
|
|
22428
|
+
// src/umb-management-api/tools/member-type/get/get-item-member-type-search.ts
|
|
22429
|
+
var SearchMemberTypeItemsTool = CreateUmbracoTool(
|
|
22430
|
+
"search-member-type-items",
|
|
22431
|
+
"Searches for member type items",
|
|
22432
|
+
getItemMemberTypeSearchQueryParams.shape,
|
|
22433
|
+
async (params) => {
|
|
22434
|
+
const client = UmbracoManagementClient2.getClient();
|
|
22435
|
+
var response = await client.getItemMemberTypeSearch(params);
|
|
22436
|
+
return {
|
|
22437
|
+
content: [
|
|
22438
|
+
{
|
|
22439
|
+
type: "text",
|
|
22440
|
+
text: JSON.stringify(response)
|
|
22441
|
+
}
|
|
22442
|
+
]
|
|
22443
|
+
};
|
|
22444
|
+
}
|
|
22445
|
+
);
|
|
22446
|
+
var get_item_member_type_search_default = SearchMemberTypeItemsTool;
|
|
22447
|
+
|
|
21168
22448
|
// src/umb-management-api/tools/member-type/index.ts
|
|
21169
22449
|
var MemberTypeCollection = {
|
|
21170
22450
|
metadata: {
|
|
@@ -21186,6 +22466,8 @@ var MemberTypeCollection = {
|
|
|
21186
22466
|
tools.push(get_member_type_composition_references_default());
|
|
21187
22467
|
tools.push(get_member_type_configuration_default());
|
|
21188
22468
|
tools.push(get_root_default9());
|
|
22469
|
+
tools.push(get_siblings_default7());
|
|
22470
|
+
tools.push(get_item_member_type_search_default());
|
|
21189
22471
|
}
|
|
21190
22472
|
return tools;
|
|
21191
22473
|
}
|
|
@@ -21397,11 +22679,11 @@ var LogViewerCollection = {
|
|
|
21397
22679
|
};
|
|
21398
22680
|
|
|
21399
22681
|
// src/umb-management-api/tools/partial-view/post/create-partial-view.ts
|
|
21400
|
-
import
|
|
21401
|
-
var createPartialViewSchema =
|
|
21402
|
-
name:
|
|
21403
|
-
path:
|
|
21404
|
-
content:
|
|
22682
|
+
import z63 from "zod";
|
|
22683
|
+
var createPartialViewSchema = z63.object({
|
|
22684
|
+
name: z63.string().min(1, "Name is required"),
|
|
22685
|
+
path: z63.string().optional(),
|
|
22686
|
+
content: z63.string().min(1, "Content is required")
|
|
21405
22687
|
});
|
|
21406
22688
|
var CreatePartialViewTool = CreateUmbracoTool(
|
|
21407
22689
|
"create-partial-view",
|
|
@@ -21491,11 +22773,11 @@ var GetPartialViewFolderByPathTool = CreateUmbracoTool(
|
|
|
21491
22773
|
var get_partial_view_folder_by_path_default = GetPartialViewFolderByPathTool;
|
|
21492
22774
|
|
|
21493
22775
|
// src/umb-management-api/tools/partial-view/put/update-partial-view.ts
|
|
21494
|
-
import { z as
|
|
22776
|
+
import { z as z64 } from "zod";
|
|
21495
22777
|
var UpdatePartialViewTool = CreateUmbracoTool(
|
|
21496
22778
|
"update-partial-view",
|
|
21497
22779
|
"Updates a partial view",
|
|
21498
|
-
|
|
22780
|
+
z64.object({
|
|
21499
22781
|
...putPartialViewByPathParams.shape,
|
|
21500
22782
|
...putPartialViewByPathBody.shape
|
|
21501
22783
|
}).shape,
|
|
@@ -21516,11 +22798,11 @@ var UpdatePartialViewTool = CreateUmbracoTool(
|
|
|
21516
22798
|
var update_partial_view_default = UpdatePartialViewTool;
|
|
21517
22799
|
|
|
21518
22800
|
// src/umb-management-api/tools/partial-view/put/rename-partial-view.ts
|
|
21519
|
-
import { z as
|
|
22801
|
+
import { z as z65 } from "zod";
|
|
21520
22802
|
var RenamePartialViewTool = CreateUmbracoTool(
|
|
21521
22803
|
"rename-partial-view",
|
|
21522
22804
|
`Renames a partial view`,
|
|
21523
|
-
|
|
22805
|
+
z65.object({
|
|
21524
22806
|
...putPartialViewByPathRenameParams.shape,
|
|
21525
22807
|
...putPartialViewByPathRenameBody.shape
|
|
21526
22808
|
}).shape,
|
|
@@ -21701,6 +22983,26 @@ var GetPartialViewSearchTool = CreateUmbracoTool(
|
|
|
21701
22983
|
);
|
|
21702
22984
|
var get_search_default2 = GetPartialViewSearchTool;
|
|
21703
22985
|
|
|
22986
|
+
// src/umb-management-api/tools/partial-view/items/get/get-siblings.ts
|
|
22987
|
+
var GetPartialViewSiblingsTool = CreateUmbracoTool(
|
|
22988
|
+
"get-partial-view-siblings",
|
|
22989
|
+
"Gets sibling partial views for a given descendant path",
|
|
22990
|
+
getTreePartialViewSiblingsQueryParams.shape,
|
|
22991
|
+
async (params) => {
|
|
22992
|
+
const client = UmbracoManagementClient2.getClient();
|
|
22993
|
+
var response = await client.getTreePartialViewSiblings(params);
|
|
22994
|
+
return {
|
|
22995
|
+
content: [
|
|
22996
|
+
{
|
|
22997
|
+
type: "text",
|
|
22998
|
+
text: JSON.stringify(response)
|
|
22999
|
+
}
|
|
23000
|
+
]
|
|
23001
|
+
};
|
|
23002
|
+
}
|
|
23003
|
+
);
|
|
23004
|
+
var get_siblings_default8 = GetPartialViewSiblingsTool;
|
|
23005
|
+
|
|
21704
23006
|
// src/umb-management-api/tools/partial-view/index.ts
|
|
21705
23007
|
var PartialViewCollection = {
|
|
21706
23008
|
metadata: {
|
|
@@ -21726,6 +23028,7 @@ var PartialViewCollection = {
|
|
|
21726
23028
|
tools.push(get_children_default8());
|
|
21727
23029
|
tools.push(get_root_default10());
|
|
21728
23030
|
tools.push(get_search_default2());
|
|
23031
|
+
tools.push(get_siblings_default8());
|
|
21729
23032
|
}
|
|
21730
23033
|
return tools;
|
|
21731
23034
|
}
|
|
@@ -21849,13 +23152,13 @@ var GetTemplatesByIdArrayTool = CreateUmbracoTool(
|
|
|
21849
23152
|
var get_template_by_id_array_default = GetTemplatesByIdArrayTool;
|
|
21850
23153
|
|
|
21851
23154
|
// src/umb-management-api/tools/template/put/update-template.ts
|
|
21852
|
-
import { z as
|
|
23155
|
+
import { z as z66 } from "zod";
|
|
21853
23156
|
var UpdateTemplateTool = CreateUmbracoTool(
|
|
21854
23157
|
"update-template",
|
|
21855
23158
|
"Updates a template by Id",
|
|
21856
23159
|
{
|
|
21857
23160
|
id: putTemplateByIdParams.shape.id,
|
|
21858
|
-
data:
|
|
23161
|
+
data: z66.object(putTemplateByIdBody.shape)
|
|
21859
23162
|
},
|
|
21860
23163
|
async (model) => {
|
|
21861
23164
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -22021,6 +23324,26 @@ var GetTemplateSearchTool = CreateUmbracoTool(
|
|
|
22021
23324
|
);
|
|
22022
23325
|
var get_search_default3 = GetTemplateSearchTool;
|
|
22023
23326
|
|
|
23327
|
+
// src/umb-management-api/tools/template/items/get/get-siblings.ts
|
|
23328
|
+
var GetTemplateSiblingsTool = CreateUmbracoTool(
|
|
23329
|
+
"get-template-siblings",
|
|
23330
|
+
"Gets sibling templates for a given descendant id",
|
|
23331
|
+
getTreeTemplateSiblingsQueryParams.shape,
|
|
23332
|
+
async (params) => {
|
|
23333
|
+
const client = UmbracoManagementClient2.getClient();
|
|
23334
|
+
var response = await client.getTreeTemplateSiblings(params);
|
|
23335
|
+
return {
|
|
23336
|
+
content: [
|
|
23337
|
+
{
|
|
23338
|
+
type: "text",
|
|
23339
|
+
text: JSON.stringify(response)
|
|
23340
|
+
}
|
|
23341
|
+
]
|
|
23342
|
+
};
|
|
23343
|
+
}
|
|
23344
|
+
);
|
|
23345
|
+
var get_siblings_default9 = GetTemplateSiblingsTool;
|
|
23346
|
+
|
|
22024
23347
|
// src/umb-management-api/tools/template/index.ts
|
|
22025
23348
|
var TemplateCollection = {
|
|
22026
23349
|
metadata: {
|
|
@@ -22044,6 +23367,7 @@ var TemplateCollection = {
|
|
|
22044
23367
|
tools.push(get_children_default9());
|
|
22045
23368
|
tools.push(get_root_default11());
|
|
22046
23369
|
tools.push(get_search_default3());
|
|
23370
|
+
tools.push(get_siblings_default9());
|
|
22047
23371
|
}
|
|
22048
23372
|
return tools;
|
|
22049
23373
|
}
|
|
@@ -22130,13 +23454,13 @@ var DeleteWebhookTool = CreateUmbracoTool(
|
|
|
22130
23454
|
var delete_webhook_default = DeleteWebhookTool;
|
|
22131
23455
|
|
|
22132
23456
|
// src/umb-management-api/tools/webhook/put/update-webhook.ts
|
|
22133
|
-
import { z as
|
|
23457
|
+
import { z as z67 } from "zod";
|
|
22134
23458
|
var UpdateWebhookTool = CreateUmbracoTool(
|
|
22135
23459
|
"update-webhook",
|
|
22136
23460
|
"Updates a webhook by id",
|
|
22137
23461
|
{
|
|
22138
23462
|
id: putWebhookByIdParams.shape.id,
|
|
22139
|
-
data:
|
|
23463
|
+
data: z67.object(putWebhookByIdBody.shape)
|
|
22140
23464
|
},
|
|
22141
23465
|
async (model) => {
|
|
22142
23466
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -22736,13 +24060,13 @@ var CreateUserGroupTool = CreateUmbracoTool(
|
|
|
22736
24060
|
var create_user_group_default = CreateUserGroupTool;
|
|
22737
24061
|
|
|
22738
24062
|
// src/umb-management-api/tools/user-group/put/update-user-group.ts
|
|
22739
|
-
import { z as
|
|
24063
|
+
import { z as z68 } from "zod";
|
|
22740
24064
|
var UpdateUserGroupTool = CreateUmbracoTool(
|
|
22741
24065
|
"update-user-group",
|
|
22742
24066
|
"Updates a user group by Id",
|
|
22743
24067
|
{
|
|
22744
24068
|
id: putUserGroupByIdParams.shape.id,
|
|
22745
|
-
data:
|
|
24069
|
+
data: z68.object(putUserGroupByIdBody.shape)
|
|
22746
24070
|
},
|
|
22747
24071
|
async (model) => {
|
|
22748
24072
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -22824,14 +24148,14 @@ var UserGroupCollection = {
|
|
|
22824
24148
|
};
|
|
22825
24149
|
|
|
22826
24150
|
// src/umb-management-api/tools/temporary-file/post/create-temporary-file.ts
|
|
22827
|
-
import { z as
|
|
24151
|
+
import { z as z69 } from "zod";
|
|
22828
24152
|
import * as fs3 from "fs";
|
|
22829
24153
|
import * as os2 from "os";
|
|
22830
24154
|
import * as path3 from "path";
|
|
22831
|
-
var createTemporaryFileSchema =
|
|
22832
|
-
id:
|
|
22833
|
-
fileName:
|
|
22834
|
-
fileAsBase64:
|
|
24155
|
+
var createTemporaryFileSchema = z69.object({
|
|
24156
|
+
id: z69.string().uuid().describe("Unique identifier for the temporary file"),
|
|
24157
|
+
fileName: z69.string().describe("Name of the file"),
|
|
24158
|
+
fileAsBase64: z69.string().describe("File content encoded as base64 string")
|
|
22835
24159
|
});
|
|
22836
24160
|
var CreateTemporaryFileTool = CreateUmbracoTool(
|
|
22837
24161
|
"create-temporary-file",
|
|
@@ -23115,12 +24439,32 @@ var GetScriptTreeRootTool = CreateUmbracoTool(
|
|
|
23115
24439
|
);
|
|
23116
24440
|
var get_script_tree_root_default = GetScriptTreeRootTool;
|
|
23117
24441
|
|
|
24442
|
+
// src/umb-management-api/tools/script/get/get-script-tree-siblings.ts
|
|
24443
|
+
var GetScriptTreeSiblingsTool = CreateUmbracoTool(
|
|
24444
|
+
"get-script-tree-siblings",
|
|
24445
|
+
"Gets sibling scripts for a given descendant path",
|
|
24446
|
+
getTreeScriptSiblingsQueryParams.shape,
|
|
24447
|
+
async (model) => {
|
|
24448
|
+
const client = UmbracoManagementClient2.getClient();
|
|
24449
|
+
const response = await client.getTreeScriptSiblings(model);
|
|
24450
|
+
return {
|
|
24451
|
+
content: [
|
|
24452
|
+
{
|
|
24453
|
+
type: "text",
|
|
24454
|
+
text: JSON.stringify(response)
|
|
24455
|
+
}
|
|
24456
|
+
]
|
|
24457
|
+
};
|
|
24458
|
+
}
|
|
24459
|
+
);
|
|
24460
|
+
var get_script_tree_siblings_default = GetScriptTreeSiblingsTool;
|
|
24461
|
+
|
|
23118
24462
|
// src/umb-management-api/tools/script/post/create-script.ts
|
|
23119
|
-
import
|
|
23120
|
-
var createScriptSchema =
|
|
23121
|
-
name:
|
|
23122
|
-
path:
|
|
23123
|
-
content:
|
|
24463
|
+
import z70 from "zod";
|
|
24464
|
+
var createScriptSchema = z70.object({
|
|
24465
|
+
name: z70.string().min(1, "Name is required"),
|
|
24466
|
+
path: z70.string().optional(),
|
|
24467
|
+
content: z70.string().min(1, "Content is required")
|
|
23124
24468
|
});
|
|
23125
24469
|
var CreateScriptTool = CreateUmbracoTool(
|
|
23126
24470
|
"create-script",
|
|
@@ -23169,13 +24513,13 @@ var CreateScriptFolderTool = CreateUmbracoTool(
|
|
|
23169
24513
|
var create_script_folder_default = CreateScriptFolderTool;
|
|
23170
24514
|
|
|
23171
24515
|
// src/umb-management-api/tools/script/put/update-script.ts
|
|
23172
|
-
import { z as
|
|
24516
|
+
import { z as z71 } from "zod";
|
|
23173
24517
|
var UpdateScriptTool = CreateUmbracoTool(
|
|
23174
24518
|
"update-script",
|
|
23175
24519
|
"Updates a script by path",
|
|
23176
24520
|
{
|
|
23177
24521
|
path: putScriptByPathParams.shape.path,
|
|
23178
|
-
data:
|
|
24522
|
+
data: z71.object(putScriptByPathBody.shape)
|
|
23179
24523
|
},
|
|
23180
24524
|
async (model) => {
|
|
23181
24525
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -23193,11 +24537,11 @@ var UpdateScriptTool = CreateUmbracoTool(
|
|
|
23193
24537
|
var update_script_default = UpdateScriptTool;
|
|
23194
24538
|
|
|
23195
24539
|
// src/umb-management-api/tools/script/put/rename-script.ts
|
|
23196
|
-
import { z as
|
|
23197
|
-
var renameScriptSchema =
|
|
23198
|
-
name:
|
|
23199
|
-
folderPath:
|
|
23200
|
-
newName:
|
|
24540
|
+
import { z as z72 } from "zod";
|
|
24541
|
+
var renameScriptSchema = z72.object({
|
|
24542
|
+
name: z72.string().min(1, "Current script name is required"),
|
|
24543
|
+
folderPath: z72.string().optional().describe("Path to the folder containing the script (optional, leave empty for root)"),
|
|
24544
|
+
newName: z72.string().min(1, "New script name is required")
|
|
23201
24545
|
});
|
|
23202
24546
|
var RenameScriptTool = CreateUmbracoTool(
|
|
23203
24547
|
"rename-script",
|
|
@@ -23283,6 +24627,7 @@ var ScriptCollection = {
|
|
|
23283
24627
|
tools.push(get_script_tree_ancestors_default());
|
|
23284
24628
|
tools.push(get_script_tree_children_default());
|
|
23285
24629
|
tools.push(get_script_tree_root_default());
|
|
24630
|
+
tools.push(get_script_tree_siblings_default());
|
|
23286
24631
|
tools.push(create_script_default());
|
|
23287
24632
|
tools.push(create_script_folder_default());
|
|
23288
24633
|
tools.push(update_script_default());
|
|
@@ -23295,11 +24640,11 @@ var ScriptCollection = {
|
|
|
23295
24640
|
};
|
|
23296
24641
|
|
|
23297
24642
|
// src/umb-management-api/tools/stylesheet/post/create-stylesheet.ts
|
|
23298
|
-
import { z as
|
|
23299
|
-
var createStylesheetSchema =
|
|
23300
|
-
name:
|
|
23301
|
-
path:
|
|
23302
|
-
content:
|
|
24643
|
+
import { z as z73 } from "zod";
|
|
24644
|
+
var createStylesheetSchema = z73.object({
|
|
24645
|
+
name: z73.string().min(1, "Name is required"),
|
|
24646
|
+
path: z73.string().optional(),
|
|
24647
|
+
content: z73.string().min(1, "Content is required")
|
|
23303
24648
|
});
|
|
23304
24649
|
var CreateStylesheetTool = CreateUmbracoTool(
|
|
23305
24650
|
"create-stylesheet",
|
|
@@ -23388,11 +24733,11 @@ var GetStylesheetFolderByPathTool = CreateUmbracoTool(
|
|
|
23388
24733
|
var get_stylesheet_folder_by_path_default = GetStylesheetFolderByPathTool;
|
|
23389
24734
|
|
|
23390
24735
|
// src/umb-management-api/tools/stylesheet/put/update-stylesheet.ts
|
|
23391
|
-
import { z as
|
|
24736
|
+
import { z as z74 } from "zod";
|
|
23392
24737
|
var UpdateStylesheetTool = CreateUmbracoTool(
|
|
23393
24738
|
"update-stylesheet",
|
|
23394
24739
|
"Updates a stylesheet by path",
|
|
23395
|
-
|
|
24740
|
+
z74.object({
|
|
23396
24741
|
...putStylesheetByPathParams.shape,
|
|
23397
24742
|
...putStylesheetByPathBody.shape
|
|
23398
24743
|
}).shape,
|
|
@@ -23413,11 +24758,11 @@ var UpdateStylesheetTool = CreateUmbracoTool(
|
|
|
23413
24758
|
var update_stylesheet_default = UpdateStylesheetTool;
|
|
23414
24759
|
|
|
23415
24760
|
// src/umb-management-api/tools/stylesheet/put/rename-stylesheet.ts
|
|
23416
|
-
import { z as
|
|
24761
|
+
import { z as z75 } from "zod";
|
|
23417
24762
|
var RenameStylesheetTool = CreateUmbracoTool(
|
|
23418
24763
|
"rename-stylesheet",
|
|
23419
24764
|
`Renames a stylesheet`,
|
|
23420
|
-
|
|
24765
|
+
z75.object({
|
|
23421
24766
|
...putStylesheetByPathRenameParams.shape,
|
|
23422
24767
|
...putStylesheetByPathRenameBody.shape
|
|
23423
24768
|
}).shape,
|
|
@@ -23558,6 +24903,26 @@ var GetStylesheetSearchTool = CreateUmbracoTool(
|
|
|
23558
24903
|
);
|
|
23559
24904
|
var get_search_default4 = GetStylesheetSearchTool;
|
|
23560
24905
|
|
|
24906
|
+
// src/umb-management-api/tools/stylesheet/items/get/get-siblings.ts
|
|
24907
|
+
var GetStylesheetSiblingsTool = CreateUmbracoTool(
|
|
24908
|
+
"get-stylesheet-siblings",
|
|
24909
|
+
"Gets sibling stylesheets for a given descendant path",
|
|
24910
|
+
getTreeStylesheetSiblingsQueryParams.shape,
|
|
24911
|
+
async (params) => {
|
|
24912
|
+
const client = UmbracoManagementClient2.getClient();
|
|
24913
|
+
var response = await client.getTreeStylesheetSiblings(params);
|
|
24914
|
+
return {
|
|
24915
|
+
content: [
|
|
24916
|
+
{
|
|
24917
|
+
type: "text",
|
|
24918
|
+
text: JSON.stringify(response)
|
|
24919
|
+
}
|
|
24920
|
+
]
|
|
24921
|
+
};
|
|
24922
|
+
}
|
|
24923
|
+
);
|
|
24924
|
+
var get_siblings_default10 = GetStylesheetSiblingsTool;
|
|
24925
|
+
|
|
23561
24926
|
// src/umb-management-api/tools/stylesheet/index.ts
|
|
23562
24927
|
var StylesheetCollection = {
|
|
23563
24928
|
metadata: {
|
|
@@ -23581,6 +24946,7 @@ var StylesheetCollection = {
|
|
|
23581
24946
|
tools.push(get_children_default10());
|
|
23582
24947
|
tools.push(get_root_default12());
|
|
23583
24948
|
tools.push(get_search_default4());
|
|
24949
|
+
tools.push(get_siblings_default10());
|
|
23584
24950
|
}
|
|
23585
24951
|
return tools;
|
|
23586
24952
|
}
|
|
@@ -24152,11 +25518,11 @@ var RelationTypeCollection = {
|
|
|
24152
25518
|
};
|
|
24153
25519
|
|
|
24154
25520
|
// src/umb-management-api/tools/relation/get/get-relation-by-relation-type-id.ts
|
|
24155
|
-
import { z as
|
|
25521
|
+
import { z as z76 } from "zod";
|
|
24156
25522
|
var GetRelationByRelationTypeIdTool = CreateUmbracoTool(
|
|
24157
25523
|
"get-relation-by-relation-type-id",
|
|
24158
25524
|
"Gets relations by relation type ID",
|
|
24159
|
-
|
|
25525
|
+
z76.object({
|
|
24160
25526
|
...getRelationByRelationTypeIdParams.shape,
|
|
24161
25527
|
...getRelationByRelationTypeIdQueryParams.shape
|
|
24162
25528
|
}).shape,
|
|
@@ -24610,6 +25976,26 @@ var GetUserDataByIdTool = CreateUmbracoTool(
|
|
|
24610
25976
|
);
|
|
24611
25977
|
var get_user_data_by_id_default = GetUserDataByIdTool;
|
|
24612
25978
|
|
|
25979
|
+
// src/umb-management-api/tools/user-data/delete/delete-user-data.ts
|
|
25980
|
+
var DeleteUserDataTool = CreateUmbracoTool(
|
|
25981
|
+
"delete-user-data",
|
|
25982
|
+
"Deletes user data by its id",
|
|
25983
|
+
deleteUserDataByIdParams.shape,
|
|
25984
|
+
async ({ id }) => {
|
|
25985
|
+
const client = UmbracoManagementClient2.getClient();
|
|
25986
|
+
var response = await client.deleteUserDataById(id);
|
|
25987
|
+
return {
|
|
25988
|
+
content: [
|
|
25989
|
+
{
|
|
25990
|
+
type: "text",
|
|
25991
|
+
text: JSON.stringify(response)
|
|
25992
|
+
}
|
|
25993
|
+
]
|
|
25994
|
+
};
|
|
25995
|
+
}
|
|
25996
|
+
);
|
|
25997
|
+
var delete_user_data_default = DeleteUserDataTool;
|
|
25998
|
+
|
|
24613
25999
|
// src/umb-management-api/tools/user-data/index.ts
|
|
24614
26000
|
var UserDataCollection = {
|
|
24615
26001
|
metadata: {
|
|
@@ -24624,6 +26010,7 @@ var UserDataCollection = {
|
|
|
24624
26010
|
tools.push(update_user_data_default());
|
|
24625
26011
|
tools.push(get_user_data_default());
|
|
24626
26012
|
tools.push(get_user_data_by_id_default());
|
|
26013
|
+
tools.push(delete_user_data_default());
|
|
24627
26014
|
return tools;
|
|
24628
26015
|
}
|
|
24629
26016
|
};
|
|
@@ -25076,8 +26463,8 @@ var GetDataTypeReferencesResource = CreateUmbracoTemplateResource(
|
|
|
25076
26463
|
async (uri, variables) => {
|
|
25077
26464
|
try {
|
|
25078
26465
|
const client = UmbracoManagementClient2.getClient();
|
|
25079
|
-
const params =
|
|
25080
|
-
const response = await client.
|
|
26466
|
+
const params = getDataTypeByIdReferencedByParams.parse(variables);
|
|
26467
|
+
const response = await client.getDataTypeByIdReferencedBy(params.id);
|
|
25081
26468
|
return {
|
|
25082
26469
|
contents: [
|
|
25083
26470
|
{
|