@umbraco-cms/mcp-dev 16.0.0 → 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 +1476 -88
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1639 -251
- package/dist/index.js.map +1 -1
- package/package.json +3 -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,10 +7597,11 @@ 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",
|
|
7604
|
+
mcpName: "io.github.umbraco/Umbraco-CMS-MCP-Dev",
|
|
7398
7605
|
bin: {
|
|
7399
7606
|
umbraco: "dist/index.js"
|
|
7400
7607
|
},
|
|
@@ -7409,7 +7616,7 @@ var package_default = {
|
|
|
7409
7616
|
"patch-publish-alpha": "npm version prerelease --preid=alpha && npm publish --tag alpha --access public",
|
|
7410
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",
|
|
7411
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",
|
|
7412
|
-
"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",
|
|
7413
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",
|
|
7414
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",
|
|
7415
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",
|
|
@@ -7653,7 +7860,11 @@ var getDataTypeByIdReferencedByResponse = zod.object({
|
|
|
7653
7860
|
"variants": zod.array(zod.object({
|
|
7654
7861
|
"name": zod.string(),
|
|
7655
7862
|
"culture": zod.string().nullish(),
|
|
7656
|
-
"
|
|
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"])
|
|
7657
7868
|
}))
|
|
7658
7869
|
})).or(zod.object({
|
|
7659
7870
|
"$type": zod.enum(["DocumentTypePropertyTypeReferenceResponseModel"]),
|
|
@@ -7710,22 +7921,6 @@ var getDataTypeByIdReferencedByResponse = zod.object({
|
|
|
7710
7921
|
})
|
|
7711
7922
|
})))
|
|
7712
7923
|
});
|
|
7713
|
-
var getDataTypeByIdReferencesParams = zod.object({
|
|
7714
|
-
"id": zod.string().uuid()
|
|
7715
|
-
});
|
|
7716
|
-
var getDataTypeByIdReferencesResponseItem = zod.object({
|
|
7717
|
-
"contentType": zod.object({
|
|
7718
|
-
"id": zod.string().uuid(),
|
|
7719
|
-
"type": zod.string().nullable(),
|
|
7720
|
-
"name": zod.string().nullable(),
|
|
7721
|
-
"icon": zod.string().nullable()
|
|
7722
|
-
}),
|
|
7723
|
-
"properties": zod.array(zod.object({
|
|
7724
|
-
"name": zod.string(),
|
|
7725
|
-
"alias": zod.string()
|
|
7726
|
-
}))
|
|
7727
|
-
});
|
|
7728
|
-
var getDataTypeByIdReferencesResponse = zod.array(getDataTypeByIdReferencesResponseItem);
|
|
7729
7924
|
var getDataTypeConfigurationResponse = zod.object({
|
|
7730
7925
|
"canBeChanged": zod.enum(["True", "False", "FalseWithHelpText"]),
|
|
7731
7926
|
"documentListViewId": zod.string().uuid(),
|
|
@@ -7766,6 +7961,9 @@ var getFilterDataTypeResponse = zod.object({
|
|
|
7766
7961
|
"total": zod.number(),
|
|
7767
7962
|
"items": zod.array(zod.object({
|
|
7768
7963
|
"id": zod.string().uuid(),
|
|
7964
|
+
"flags": zod.array(zod.object({
|
|
7965
|
+
"alias": zod.string()
|
|
7966
|
+
})),
|
|
7769
7967
|
"name": zod.string(),
|
|
7770
7968
|
"editorUiAlias": zod.string().nullish(),
|
|
7771
7969
|
"editorAlias": zod.string(),
|
|
@@ -7777,6 +7975,9 @@ var getItemDataTypeQueryParams = zod.object({
|
|
|
7777
7975
|
});
|
|
7778
7976
|
var getItemDataTypeResponseItem = zod.object({
|
|
7779
7977
|
"id": zod.string().uuid(),
|
|
7978
|
+
"flags": zod.array(zod.object({
|
|
7979
|
+
"alias": zod.string()
|
|
7980
|
+
})),
|
|
7780
7981
|
"name": zod.string(),
|
|
7781
7982
|
"editorUiAlias": zod.string().nullish(),
|
|
7782
7983
|
"editorAlias": zod.string(),
|
|
@@ -7792,6 +7993,9 @@ var getItemDataTypeSearchQueryParams = zod.object({
|
|
|
7792
7993
|
var getItemDataTypeSearchResponse = zod.object({
|
|
7793
7994
|
"items": zod.array(zod.object({
|
|
7794
7995
|
"id": zod.string().uuid(),
|
|
7996
|
+
"flags": zod.array(zod.object({
|
|
7997
|
+
"alias": zod.string()
|
|
7998
|
+
})),
|
|
7795
7999
|
"name": zod.string(),
|
|
7796
8000
|
"editorUiAlias": zod.string().nullish(),
|
|
7797
8001
|
"editorAlias": zod.string(),
|
|
@@ -7808,6 +8012,9 @@ var getTreeDataTypeAncestorsResponseItem = zod.object({
|
|
|
7808
8012
|
"parent": zod.object({
|
|
7809
8013
|
"id": zod.string().uuid()
|
|
7810
8014
|
}).nullish(),
|
|
8015
|
+
"flags": zod.array(zod.object({
|
|
8016
|
+
"alias": zod.string()
|
|
8017
|
+
})),
|
|
7811
8018
|
"name": zod.string(),
|
|
7812
8019
|
"isFolder": zod.boolean(),
|
|
7813
8020
|
"editorUiAlias": zod.string().nullish(),
|
|
@@ -7829,6 +8036,9 @@ var getTreeDataTypeChildrenResponse = zod.object({
|
|
|
7829
8036
|
"parent": zod.object({
|
|
7830
8037
|
"id": zod.string().uuid()
|
|
7831
8038
|
}).nullish(),
|
|
8039
|
+
"flags": zod.array(zod.object({
|
|
8040
|
+
"alias": zod.string()
|
|
8041
|
+
})),
|
|
7832
8042
|
"name": zod.string(),
|
|
7833
8043
|
"isFolder": zod.boolean(),
|
|
7834
8044
|
"editorUiAlias": zod.string().nullish(),
|
|
@@ -7849,6 +8059,33 @@ var getTreeDataTypeRootResponse = zod.object({
|
|
|
7849
8059
|
"parent": zod.object({
|
|
7850
8060
|
"id": zod.string().uuid()
|
|
7851
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
|
+
})),
|
|
7852
8089
|
"name": zod.string(),
|
|
7853
8090
|
"isFolder": zod.boolean(),
|
|
7854
8091
|
"editorUiAlias": zod.string().nullish(),
|
|
@@ -7935,6 +8172,9 @@ var getItemDictionaryQueryParams = zod.object({
|
|
|
7935
8172
|
});
|
|
7936
8173
|
var getItemDictionaryResponseItem = zod.object({
|
|
7937
8174
|
"id": zod.string().uuid(),
|
|
8175
|
+
"flags": zod.array(zod.object({
|
|
8176
|
+
"alias": zod.string()
|
|
8177
|
+
})),
|
|
7938
8178
|
"name": zod.string()
|
|
7939
8179
|
});
|
|
7940
8180
|
var getItemDictionaryResponse = zod.array(getItemDictionaryResponseItem);
|
|
@@ -7947,6 +8187,9 @@ var getTreeDictionaryAncestorsResponseItem = zod.object({
|
|
|
7947
8187
|
"parent": zod.object({
|
|
7948
8188
|
"id": zod.string().uuid()
|
|
7949
8189
|
}).nullish(),
|
|
8190
|
+
"flags": zod.array(zod.object({
|
|
8191
|
+
"alias": zod.string()
|
|
8192
|
+
})),
|
|
7950
8193
|
"name": zod.string()
|
|
7951
8194
|
});
|
|
7952
8195
|
var getTreeDictionaryAncestorsResponse = zod.array(getTreeDictionaryAncestorsResponseItem);
|
|
@@ -7964,6 +8207,9 @@ var getTreeDictionaryChildrenResponse = zod.object({
|
|
|
7964
8207
|
"parent": zod.object({
|
|
7965
8208
|
"id": zod.string().uuid()
|
|
7966
8209
|
}).nullish(),
|
|
8210
|
+
"flags": zod.array(zod.object({
|
|
8211
|
+
"alias": zod.string()
|
|
8212
|
+
})),
|
|
7967
8213
|
"name": zod.string()
|
|
7968
8214
|
}))
|
|
7969
8215
|
});
|
|
@@ -7980,6 +8226,9 @@ var getTreeDictionaryRootResponse = zod.object({
|
|
|
7980
8226
|
"parent": zod.object({
|
|
7981
8227
|
"id": zod.string().uuid()
|
|
7982
8228
|
}).nullish(),
|
|
8229
|
+
"flags": zod.array(zod.object({
|
|
8230
|
+
"alias": zod.string()
|
|
8231
|
+
})),
|
|
7983
8232
|
"name": zod.string()
|
|
7984
8233
|
}))
|
|
7985
8234
|
});
|
|
@@ -8020,12 +8269,19 @@ var getDocumentBlueprintByIdResponse = zod.object({
|
|
|
8020
8269
|
"name": zod.string().min(1),
|
|
8021
8270
|
"createDate": zod.string().datetime({ "local": true }),
|
|
8022
8271
|
"updateDate": zod.string().datetime({ "local": true }),
|
|
8023
|
-
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges"]),
|
|
8272
|
+
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"]),
|
|
8024
8273
|
"publishDate": zod.string().datetime({ "local": true }).nullish(),
|
|
8025
8274
|
"scheduledPublishDate": zod.string().datetime({ "local": true }).nullish(),
|
|
8026
|
-
"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
|
+
}))
|
|
8027
8280
|
})),
|
|
8028
8281
|
"id": zod.string().uuid(),
|
|
8282
|
+
"flags": zod.array(zod.object({
|
|
8283
|
+
"alias": zod.string()
|
|
8284
|
+
})),
|
|
8029
8285
|
"documentType": zod.object({
|
|
8030
8286
|
"id": zod.string().uuid(),
|
|
8031
8287
|
"icon": zod.string(),
|
|
@@ -8078,12 +8334,19 @@ var getDocumentBlueprintByIdScaffoldResponse = zod.object({
|
|
|
8078
8334
|
"name": zod.string().min(1),
|
|
8079
8335
|
"createDate": zod.string().datetime({ "local": true }),
|
|
8080
8336
|
"updateDate": zod.string().datetime({ "local": true }),
|
|
8081
|
-
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges"]),
|
|
8337
|
+
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"]),
|
|
8082
8338
|
"publishDate": zod.string().datetime({ "local": true }).nullish(),
|
|
8083
8339
|
"scheduledPublishDate": zod.string().datetime({ "local": true }).nullish(),
|
|
8084
|
-
"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
|
+
}))
|
|
8085
8345
|
})),
|
|
8086
8346
|
"id": zod.string().uuid(),
|
|
8347
|
+
"flags": zod.array(zod.object({
|
|
8348
|
+
"alias": zod.string()
|
|
8349
|
+
})),
|
|
8087
8350
|
"documentType": zod.object({
|
|
8088
8351
|
"id": zod.string().uuid(),
|
|
8089
8352
|
"icon": zod.string(),
|
|
@@ -8130,6 +8393,9 @@ var getItemDocumentBlueprintQueryParams = zod.object({
|
|
|
8130
8393
|
});
|
|
8131
8394
|
var getItemDocumentBlueprintResponseItem = zod.object({
|
|
8132
8395
|
"id": zod.string().uuid(),
|
|
8396
|
+
"flags": zod.array(zod.object({
|
|
8397
|
+
"alias": zod.string()
|
|
8398
|
+
})),
|
|
8133
8399
|
"name": zod.string(),
|
|
8134
8400
|
"documentType": zod.object({
|
|
8135
8401
|
"id": zod.string().uuid(),
|
|
@@ -8149,6 +8415,9 @@ var getTreeDocumentBlueprintAncestorsResponseItem = zod.object({
|
|
|
8149
8415
|
"parent": zod.object({
|
|
8150
8416
|
"id": zod.string().uuid()
|
|
8151
8417
|
}).nullish(),
|
|
8418
|
+
"flags": zod.array(zod.object({
|
|
8419
|
+
"alias": zod.string()
|
|
8420
|
+
})),
|
|
8152
8421
|
"name": zod.string(),
|
|
8153
8422
|
"isFolder": zod.boolean(),
|
|
8154
8423
|
"documentType": zod.object({
|
|
@@ -8175,6 +8444,9 @@ var getTreeDocumentBlueprintChildrenResponse = zod.object({
|
|
|
8175
8444
|
"parent": zod.object({
|
|
8176
8445
|
"id": zod.string().uuid()
|
|
8177
8446
|
}).nullish(),
|
|
8447
|
+
"flags": zod.array(zod.object({
|
|
8448
|
+
"alias": zod.string()
|
|
8449
|
+
})),
|
|
8178
8450
|
"name": zod.string(),
|
|
8179
8451
|
"isFolder": zod.boolean(),
|
|
8180
8452
|
"documentType": zod.object({
|
|
@@ -8200,6 +8472,9 @@ var getTreeDocumentBlueprintRootResponse = zod.object({
|
|
|
8200
8472
|
"parent": zod.object({
|
|
8201
8473
|
"id": zod.string().uuid()
|
|
8202
8474
|
}).nullish(),
|
|
8475
|
+
"flags": zod.array(zod.object({
|
|
8476
|
+
"alias": zod.string()
|
|
8477
|
+
})),
|
|
8203
8478
|
"name": zod.string(),
|
|
8204
8479
|
"isFolder": zod.boolean(),
|
|
8205
8480
|
"documentType": zod.object({
|
|
@@ -8211,19 +8486,48 @@ var getTreeDocumentBlueprintRootResponse = zod.object({
|
|
|
8211
8486
|
}).nullish()
|
|
8212
8487
|
}))
|
|
8213
8488
|
});
|
|
8214
|
-
var
|
|
8215
|
-
"
|
|
8216
|
-
"
|
|
8217
|
-
"
|
|
8218
|
-
"
|
|
8219
|
-
|
|
8220
|
-
|
|
8221
|
-
"
|
|
8222
|
-
"
|
|
8223
|
-
|
|
8224
|
-
|
|
8225
|
-
|
|
8226
|
-
|
|
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({
|
|
8227
8531
|
"id": zod.string().uuid(),
|
|
8228
8532
|
"container": zod.object({
|
|
8229
8533
|
"id": zod.string().uuid()
|
|
@@ -8462,6 +8766,9 @@ var getDocumentTypeByIdBlueprintResponse = zod.object({
|
|
|
8462
8766
|
"total": zod.number(),
|
|
8463
8767
|
"items": zod.array(zod.object({
|
|
8464
8768
|
"id": zod.string().uuid(),
|
|
8769
|
+
"flags": zod.array(zod.object({
|
|
8770
|
+
"alias": zod.string()
|
|
8771
|
+
})),
|
|
8465
8772
|
"name": zod.string()
|
|
8466
8773
|
}))
|
|
8467
8774
|
});
|
|
@@ -8569,6 +8876,9 @@ var getItemDocumentTypeQueryParams = zod.object({
|
|
|
8569
8876
|
});
|
|
8570
8877
|
var getItemDocumentTypeResponseItem = zod.object({
|
|
8571
8878
|
"id": zod.string().uuid(),
|
|
8879
|
+
"flags": zod.array(zod.object({
|
|
8880
|
+
"alias": zod.string()
|
|
8881
|
+
})),
|
|
8572
8882
|
"name": zod.string(),
|
|
8573
8883
|
"isElement": zod.boolean(),
|
|
8574
8884
|
"icon": zod.string().nullish(),
|
|
@@ -8585,6 +8895,9 @@ var getItemDocumentTypeSearchQueryParams = zod.object({
|
|
|
8585
8895
|
var getItemDocumentTypeSearchResponse = zod.object({
|
|
8586
8896
|
"items": zod.array(zod.object({
|
|
8587
8897
|
"id": zod.string().uuid(),
|
|
8898
|
+
"flags": zod.array(zod.object({
|
|
8899
|
+
"alias": zod.string()
|
|
8900
|
+
})),
|
|
8588
8901
|
"name": zod.string(),
|
|
8589
8902
|
"isElement": zod.boolean(),
|
|
8590
8903
|
"icon": zod.string().nullish(),
|
|
@@ -8601,6 +8914,9 @@ var getTreeDocumentTypeAncestorsResponseItem = zod.object({
|
|
|
8601
8914
|
"parent": zod.object({
|
|
8602
8915
|
"id": zod.string().uuid()
|
|
8603
8916
|
}).nullish(),
|
|
8917
|
+
"flags": zod.array(zod.object({
|
|
8918
|
+
"alias": zod.string()
|
|
8919
|
+
})),
|
|
8604
8920
|
"name": zod.string(),
|
|
8605
8921
|
"isFolder": zod.boolean(),
|
|
8606
8922
|
"isElement": zod.boolean(),
|
|
@@ -8622,6 +8938,9 @@ var getTreeDocumentTypeChildrenResponse = zod.object({
|
|
|
8622
8938
|
"parent": zod.object({
|
|
8623
8939
|
"id": zod.string().uuid()
|
|
8624
8940
|
}).nullish(),
|
|
8941
|
+
"flags": zod.array(zod.object({
|
|
8942
|
+
"alias": zod.string()
|
|
8943
|
+
})),
|
|
8625
8944
|
"name": zod.string(),
|
|
8626
8945
|
"isFolder": zod.boolean(),
|
|
8627
8946
|
"isElement": zod.boolean(),
|
|
@@ -8642,6 +8961,33 @@ var getTreeDocumentTypeRootResponse = zod.object({
|
|
|
8642
8961
|
"parent": zod.object({
|
|
8643
8962
|
"id": zod.string().uuid()
|
|
8644
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
|
+
})),
|
|
8645
8991
|
"name": zod.string(),
|
|
8646
8992
|
"isFolder": zod.boolean(),
|
|
8647
8993
|
"isElement": zod.boolean(),
|
|
@@ -8691,12 +9037,19 @@ var getDocumentVersionByIdResponse = zod.object({
|
|
|
8691
9037
|
"name": zod.string().min(1),
|
|
8692
9038
|
"createDate": zod.string().datetime({ "local": true }),
|
|
8693
9039
|
"updateDate": zod.string().datetime({ "local": true }),
|
|
8694
|
-
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges"]),
|
|
9040
|
+
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"]),
|
|
8695
9041
|
"publishDate": zod.string().datetime({ "local": true }).nullish(),
|
|
8696
9042
|
"scheduledPublishDate": zod.string().datetime({ "local": true }).nullish(),
|
|
8697
|
-
"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
|
+
}))
|
|
8698
9048
|
})),
|
|
8699
9049
|
"id": zod.string().uuid(),
|
|
9050
|
+
"flags": zod.array(zod.object({
|
|
9051
|
+
"alias": zod.string()
|
|
9052
|
+
})),
|
|
8700
9053
|
"documentType": zod.object({
|
|
8701
9054
|
"id": zod.string().uuid(),
|
|
8702
9055
|
"icon": zod.string(),
|
|
@@ -8750,18 +9103,28 @@ var getCollectionDocumentByIdResponse = zod.object({
|
|
|
8750
9103
|
"name": zod.string().min(1),
|
|
8751
9104
|
"createDate": zod.string().datetime({ "local": true }),
|
|
8752
9105
|
"updateDate": zod.string().datetime({ "local": true }),
|
|
8753
|
-
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges"]),
|
|
9106
|
+
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"]),
|
|
8754
9107
|
"publishDate": zod.string().datetime({ "local": true }).nullish(),
|
|
8755
9108
|
"scheduledPublishDate": zod.string().datetime({ "local": true }).nullish(),
|
|
8756
|
-
"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
|
+
}))
|
|
8757
9114
|
})),
|
|
8758
9115
|
"id": zod.string().uuid(),
|
|
9116
|
+
"flags": zod.array(zod.object({
|
|
9117
|
+
"alias": zod.string()
|
|
9118
|
+
})),
|
|
8759
9119
|
"creator": zod.string().nullish(),
|
|
8760
9120
|
"sortOrder": zod.number(),
|
|
8761
9121
|
"documentType": zod.object({
|
|
8762
9122
|
"id": zod.string().uuid(),
|
|
8763
9123
|
"alias": zod.string(),
|
|
8764
|
-
"icon": zod.string()
|
|
9124
|
+
"icon": zod.string(),
|
|
9125
|
+
"collection": zod.object({
|
|
9126
|
+
"id": zod.string().uuid()
|
|
9127
|
+
}).nullish()
|
|
8765
9128
|
}),
|
|
8766
9129
|
"isTrashed": zod.boolean(),
|
|
8767
9130
|
"isProtected": zod.boolean(),
|
|
@@ -8811,12 +9174,19 @@ var getDocumentByIdResponse = zod.object({
|
|
|
8811
9174
|
"name": zod.string().min(1),
|
|
8812
9175
|
"createDate": zod.string().datetime({ "local": true }),
|
|
8813
9176
|
"updateDate": zod.string().datetime({ "local": true }),
|
|
8814
|
-
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges"]),
|
|
9177
|
+
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"]),
|
|
8815
9178
|
"publishDate": zod.string().datetime({ "local": true }).nullish(),
|
|
8816
9179
|
"scheduledPublishDate": zod.string().datetime({ "local": true }).nullish(),
|
|
8817
|
-
"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
|
+
}))
|
|
8818
9185
|
})),
|
|
8819
9186
|
"id": zod.string().uuid(),
|
|
9187
|
+
"flags": zod.array(zod.object({
|
|
9188
|
+
"alias": zod.string()
|
|
9189
|
+
})),
|
|
8820
9190
|
"documentType": zod.object({
|
|
8821
9191
|
"id": zod.string().uuid(),
|
|
8822
9192
|
"icon": zod.string(),
|
|
@@ -8824,10 +9194,6 @@ var getDocumentByIdResponse = zod.object({
|
|
|
8824
9194
|
"id": zod.string().uuid()
|
|
8825
9195
|
}).nullish()
|
|
8826
9196
|
}),
|
|
8827
|
-
"urls": zod.array(zod.object({
|
|
8828
|
-
"culture": zod.string().nullable(),
|
|
8829
|
-
"url": zod.string()
|
|
8830
|
-
})),
|
|
8831
9197
|
"template": zod.object({
|
|
8832
9198
|
"id": zod.string().uuid()
|
|
8833
9199
|
}).nullish(),
|
|
@@ -8877,6 +9243,22 @@ var getDocumentByIdAuditLogResponse = zod.object({
|
|
|
8877
9243
|
"parameters": zod.string().nullish()
|
|
8878
9244
|
}))
|
|
8879
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
|
+
});
|
|
8880
9262
|
var postDocumentByIdCopyParams = zod.object({
|
|
8881
9263
|
"id": zod.string().uuid()
|
|
8882
9264
|
});
|
|
@@ -8933,6 +9315,20 @@ var putDocumentByIdNotificationsParams = zod.object({
|
|
|
8933
9315
|
var putDocumentByIdNotificationsBody = zod.object({
|
|
8934
9316
|
"subscribedActionIds": zod.array(zod.string())
|
|
8935
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
|
+
});
|
|
8936
9332
|
var postDocumentByIdPublicAccessParams = zod.object({
|
|
8937
9333
|
"id": zod.string().uuid()
|
|
8938
9334
|
});
|
|
@@ -8961,6 +9357,9 @@ var getDocumentByIdPublicAccessResponse = zod.object({
|
|
|
8961
9357
|
}),
|
|
8962
9358
|
"members": zod.array(zod.object({
|
|
8963
9359
|
"id": zod.string().uuid(),
|
|
9360
|
+
"flags": zod.array(zod.object({
|
|
9361
|
+
"alias": zod.string()
|
|
9362
|
+
})),
|
|
8964
9363
|
"memberType": zod.object({
|
|
8965
9364
|
"id": zod.string().uuid(),
|
|
8966
9365
|
"icon": zod.string(),
|
|
@@ -8976,6 +9375,9 @@ var getDocumentByIdPublicAccessResponse = zod.object({
|
|
|
8976
9375
|
})),
|
|
8977
9376
|
"groups": zod.array(zod.object({
|
|
8978
9377
|
"id": zod.string().uuid(),
|
|
9378
|
+
"flags": zod.array(zod.object({
|
|
9379
|
+
"alias": zod.string()
|
|
9380
|
+
})),
|
|
8979
9381
|
"name": zod.string()
|
|
8980
9382
|
}))
|
|
8981
9383
|
});
|
|
@@ -9040,12 +9442,19 @@ var getDocumentByIdPublishedResponse = zod.object({
|
|
|
9040
9442
|
"name": zod.string().min(1),
|
|
9041
9443
|
"createDate": zod.string().datetime({ "local": true }),
|
|
9042
9444
|
"updateDate": zod.string().datetime({ "local": true }),
|
|
9043
|
-
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges"]),
|
|
9445
|
+
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"]),
|
|
9044
9446
|
"publishDate": zod.string().datetime({ "local": true }).nullish(),
|
|
9045
9447
|
"scheduledPublishDate": zod.string().datetime({ "local": true }).nullish(),
|
|
9046
|
-
"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
|
+
}))
|
|
9047
9453
|
})),
|
|
9048
9454
|
"id": zod.string().uuid(),
|
|
9455
|
+
"flags": zod.array(zod.object({
|
|
9456
|
+
"alias": zod.string()
|
|
9457
|
+
})),
|
|
9049
9458
|
"documentType": zod.object({
|
|
9050
9459
|
"id": zod.string().uuid(),
|
|
9051
9460
|
"icon": zod.string(),
|
|
@@ -9053,10 +9462,6 @@ var getDocumentByIdPublishedResponse = zod.object({
|
|
|
9053
9462
|
"id": zod.string().uuid()
|
|
9054
9463
|
}).nullish()
|
|
9055
9464
|
}),
|
|
9056
|
-
"urls": zod.array(zod.object({
|
|
9057
|
-
"culture": zod.string().nullable(),
|
|
9058
|
-
"url": zod.string()
|
|
9059
|
-
})),
|
|
9060
9465
|
"template": zod.object({
|
|
9061
9466
|
"id": zod.string().uuid()
|
|
9062
9467
|
}).nullish(),
|
|
@@ -9092,7 +9497,11 @@ var getDocumentByIdReferencedByResponse = zod.object({
|
|
|
9092
9497
|
"variants": zod.array(zod.object({
|
|
9093
9498
|
"name": zod.string(),
|
|
9094
9499
|
"culture": zod.string().nullish(),
|
|
9095
|
-
"
|
|
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"])
|
|
9096
9505
|
}))
|
|
9097
9506
|
})).or(zod.object({
|
|
9098
9507
|
"$type": zod.enum(["DocumentTypePropertyTypeReferenceResponseModel"]),
|
|
@@ -9223,7 +9632,9 @@ var getDocumentUrlsResponseItem = zod.object({
|
|
|
9223
9632
|
"id": zod.string().uuid(),
|
|
9224
9633
|
"urlInfos": zod.array(zod.object({
|
|
9225
9634
|
"culture": zod.string().nullable(),
|
|
9226
|
-
"url": zod.string()
|
|
9635
|
+
"url": zod.string().nullable(),
|
|
9636
|
+
"message": zod.string().nullable(),
|
|
9637
|
+
"provider": zod.string()
|
|
9227
9638
|
}))
|
|
9228
9639
|
});
|
|
9229
9640
|
var getDocumentUrlsResponse = zod.array(getDocumentUrlsResponseItem);
|
|
@@ -9255,6 +9666,9 @@ var getItemDocumentQueryParams = zod.object({
|
|
|
9255
9666
|
});
|
|
9256
9667
|
var getItemDocumentResponseItem = zod.object({
|
|
9257
9668
|
"id": zod.string().uuid(),
|
|
9669
|
+
"flags": zod.array(zod.object({
|
|
9670
|
+
"alias": zod.string()
|
|
9671
|
+
})),
|
|
9258
9672
|
"isTrashed": zod.boolean(),
|
|
9259
9673
|
"isProtected": zod.boolean(),
|
|
9260
9674
|
"parent": zod.object({
|
|
@@ -9271,7 +9685,11 @@ var getItemDocumentResponseItem = zod.object({
|
|
|
9271
9685
|
"variants": zod.array(zod.object({
|
|
9272
9686
|
"name": zod.string(),
|
|
9273
9687
|
"culture": zod.string().nullish(),
|
|
9274
|
-
"
|
|
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"])
|
|
9275
9693
|
}))
|
|
9276
9694
|
});
|
|
9277
9695
|
var getItemDocumentResponse = zod.array(getItemDocumentResponseItem);
|
|
@@ -9283,11 +9701,15 @@ var getItemDocumentSearchQueryParams = zod.object({
|
|
|
9283
9701
|
"skip": zod.coerce.number().optional(),
|
|
9284
9702
|
"take": zod.coerce.number().default(getItemDocumentSearchQueryTakeDefault),
|
|
9285
9703
|
"parentId": zod.string().uuid().optional(),
|
|
9286
|
-
"allowedDocumentTypes": zod.array(zod.string().uuid()).optional()
|
|
9704
|
+
"allowedDocumentTypes": zod.array(zod.string().uuid()).optional(),
|
|
9705
|
+
"dataTypeId": zod.string().uuid().optional()
|
|
9287
9706
|
});
|
|
9288
9707
|
var getItemDocumentSearchResponse = zod.object({
|
|
9289
9708
|
"items": zod.array(zod.object({
|
|
9290
9709
|
"id": zod.string().uuid(),
|
|
9710
|
+
"flags": zod.array(zod.object({
|
|
9711
|
+
"alias": zod.string()
|
|
9712
|
+
})),
|
|
9291
9713
|
"isTrashed": zod.boolean(),
|
|
9292
9714
|
"isProtected": zod.boolean(),
|
|
9293
9715
|
"parent": zod.object({
|
|
@@ -9304,7 +9726,11 @@ var getItemDocumentSearchResponse = zod.object({
|
|
|
9304
9726
|
"variants": zod.array(zod.object({
|
|
9305
9727
|
"name": zod.string(),
|
|
9306
9728
|
"culture": zod.string().nullish(),
|
|
9307
|
-
"
|
|
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"])
|
|
9308
9734
|
}))
|
|
9309
9735
|
})),
|
|
9310
9736
|
"total": zod.number()
|
|
@@ -9351,7 +9777,11 @@ var getRecycleBinDocumentChildrenResponse = zod.object({
|
|
|
9351
9777
|
"variants": zod.array(zod.object({
|
|
9352
9778
|
"name": zod.string(),
|
|
9353
9779
|
"culture": zod.string().nullish(),
|
|
9354
|
-
"
|
|
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"])
|
|
9355
9785
|
}))
|
|
9356
9786
|
}))
|
|
9357
9787
|
});
|
|
@@ -9382,7 +9812,11 @@ var getRecycleBinDocumentReferencedByResponse = zod.object({
|
|
|
9382
9812
|
"variants": zod.array(zod.object({
|
|
9383
9813
|
"name": zod.string(),
|
|
9384
9814
|
"culture": zod.string().nullish(),
|
|
9385
|
-
"
|
|
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"])
|
|
9386
9820
|
}))
|
|
9387
9821
|
})).or(zod.object({
|
|
9388
9822
|
"$type": zod.enum(["DocumentTypePropertyTypeReferenceResponseModel"]),
|
|
@@ -9463,7 +9897,45 @@ var getRecycleBinDocumentRootResponse = zod.object({
|
|
|
9463
9897
|
"variants": zod.array(zod.object({
|
|
9464
9898
|
"name": zod.string(),
|
|
9465
9899
|
"culture": zod.string().nullish(),
|
|
9466
|
-
"
|
|
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"])
|
|
9467
9939
|
}))
|
|
9468
9940
|
}))
|
|
9469
9941
|
});
|
|
@@ -9472,12 +9944,15 @@ var getTreeDocumentAncestorsQueryParams = zod.object({
|
|
|
9472
9944
|
});
|
|
9473
9945
|
var getTreeDocumentAncestorsResponseItem = zod.object({
|
|
9474
9946
|
"hasChildren": zod.boolean(),
|
|
9947
|
+
"id": zod.string().uuid(),
|
|
9475
9948
|
"parent": zod.object({
|
|
9476
9949
|
"id": zod.string().uuid()
|
|
9477
9950
|
}).nullish(),
|
|
9951
|
+
"flags": zod.array(zod.object({
|
|
9952
|
+
"alias": zod.string()
|
|
9953
|
+
})),
|
|
9478
9954
|
"noAccess": zod.boolean(),
|
|
9479
9955
|
"isTrashed": zod.boolean(),
|
|
9480
|
-
"id": zod.string().uuid(),
|
|
9481
9956
|
"createDate": zod.string().datetime({ "local": true }),
|
|
9482
9957
|
"isProtected": zod.boolean(),
|
|
9483
9958
|
"ancestors": zod.array(zod.object({
|
|
@@ -9493,7 +9968,11 @@ var getTreeDocumentAncestorsResponseItem = zod.object({
|
|
|
9493
9968
|
"variants": zod.array(zod.object({
|
|
9494
9969
|
"name": zod.string(),
|
|
9495
9970
|
"culture": zod.string().nullish(),
|
|
9496
|
-
"
|
|
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"])
|
|
9497
9976
|
}))
|
|
9498
9977
|
});
|
|
9499
9978
|
var getTreeDocumentAncestorsResponse = zod.array(getTreeDocumentAncestorsResponseItem);
|
|
@@ -9508,12 +9987,15 @@ var getTreeDocumentChildrenResponse = zod.object({
|
|
|
9508
9987
|
"total": zod.number(),
|
|
9509
9988
|
"items": zod.array(zod.object({
|
|
9510
9989
|
"hasChildren": zod.boolean(),
|
|
9990
|
+
"id": zod.string().uuid(),
|
|
9511
9991
|
"parent": zod.object({
|
|
9512
9992
|
"id": zod.string().uuid()
|
|
9513
9993
|
}).nullish(),
|
|
9994
|
+
"flags": zod.array(zod.object({
|
|
9995
|
+
"alias": zod.string()
|
|
9996
|
+
})),
|
|
9514
9997
|
"noAccess": zod.boolean(),
|
|
9515
9998
|
"isTrashed": zod.boolean(),
|
|
9516
|
-
"id": zod.string().uuid(),
|
|
9517
9999
|
"createDate": zod.string().datetime({ "local": true }),
|
|
9518
10000
|
"isProtected": zod.boolean(),
|
|
9519
10001
|
"ancestors": zod.array(zod.object({
|
|
@@ -9529,7 +10011,11 @@ var getTreeDocumentChildrenResponse = zod.object({
|
|
|
9529
10011
|
"variants": zod.array(zod.object({
|
|
9530
10012
|
"name": zod.string(),
|
|
9531
10013
|
"culture": zod.string().nullish(),
|
|
9532
|
-
"
|
|
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"])
|
|
9533
10019
|
}))
|
|
9534
10020
|
}))
|
|
9535
10021
|
});
|
|
@@ -9543,12 +10029,58 @@ var getTreeDocumentRootResponse = zod.object({
|
|
|
9543
10029
|
"total": zod.number(),
|
|
9544
10030
|
"items": zod.array(zod.object({
|
|
9545
10031
|
"hasChildren": zod.boolean(),
|
|
10032
|
+
"id": zod.string().uuid(),
|
|
9546
10033
|
"parent": zod.object({
|
|
9547
10034
|
"id": zod.string().uuid()
|
|
9548
10035
|
}).nullish(),
|
|
10036
|
+
"flags": zod.array(zod.object({
|
|
10037
|
+
"alias": zod.string()
|
|
10038
|
+
})),
|
|
9549
10039
|
"noAccess": zod.boolean(),
|
|
9550
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(),
|
|
9551
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(),
|
|
9552
10084
|
"createDate": zod.string().datetime({ "local": true }),
|
|
9553
10085
|
"isProtected": zod.boolean(),
|
|
9554
10086
|
"ancestors": zod.array(zod.object({
|
|
@@ -9564,7 +10096,11 @@ var getTreeDocumentRootResponse = zod.object({
|
|
|
9564
10096
|
"variants": zod.array(zod.object({
|
|
9565
10097
|
"name": zod.string(),
|
|
9566
10098
|
"culture": zod.string().nullish(),
|
|
9567
|
-
"
|
|
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"])
|
|
9568
10104
|
}))
|
|
9569
10105
|
}))
|
|
9570
10106
|
});
|
|
@@ -9702,7 +10238,7 @@ var getImagingResizeUrlsResponseItem = zod.object({
|
|
|
9702
10238
|
"id": zod.string().uuid(),
|
|
9703
10239
|
"urlInfos": zod.array(zod.object({
|
|
9704
10240
|
"culture": zod.string().nullable(),
|
|
9705
|
-
"url": zod.string()
|
|
10241
|
+
"url": zod.string().nullable()
|
|
9706
10242
|
}))
|
|
9707
10243
|
});
|
|
9708
10244
|
var getImagingResizeUrlsResponse = zod.array(getImagingResizeUrlsResponseItem);
|
|
@@ -9772,6 +10308,7 @@ var getInstallSettingsResponse = zod.object({
|
|
|
9772
10308
|
"serverPlaceholder": zod.string().min(1),
|
|
9773
10309
|
"requiresCredentials": zod.boolean(),
|
|
9774
10310
|
"supportsIntegratedAuthentication": zod.boolean(),
|
|
10311
|
+
"supportsTrustServerCertificate": zod.boolean(),
|
|
9775
10312
|
"requiresConnectionTest": zod.boolean()
|
|
9776
10313
|
}))
|
|
9777
10314
|
});
|
|
@@ -9981,6 +10518,9 @@ var getItemMediaTypeQueryParams = zod.object({
|
|
|
9981
10518
|
});
|
|
9982
10519
|
var getItemMediaTypeResponseItem = zod.object({
|
|
9983
10520
|
"id": zod.string().uuid(),
|
|
10521
|
+
"flags": zod.array(zod.object({
|
|
10522
|
+
"alias": zod.string()
|
|
10523
|
+
})),
|
|
9984
10524
|
"name": zod.string(),
|
|
9985
10525
|
"icon": zod.string().nullish()
|
|
9986
10526
|
});
|
|
@@ -9994,6 +10534,9 @@ var getItemMediaTypeAllowedQueryParams = zod.object({
|
|
|
9994
10534
|
var getItemMediaTypeAllowedResponse = zod.object({
|
|
9995
10535
|
"items": zod.array(zod.object({
|
|
9996
10536
|
"id": zod.string().uuid(),
|
|
10537
|
+
"flags": zod.array(zod.object({
|
|
10538
|
+
"alias": zod.string()
|
|
10539
|
+
})),
|
|
9997
10540
|
"name": zod.string(),
|
|
9998
10541
|
"icon": zod.string().nullish()
|
|
9999
10542
|
})),
|
|
@@ -10007,6 +10550,9 @@ var getItemMediaTypeFoldersQueryParams = zod.object({
|
|
|
10007
10550
|
var getItemMediaTypeFoldersResponse = zod.object({
|
|
10008
10551
|
"items": zod.array(zod.object({
|
|
10009
10552
|
"id": zod.string().uuid(),
|
|
10553
|
+
"flags": zod.array(zod.object({
|
|
10554
|
+
"alias": zod.string()
|
|
10555
|
+
})),
|
|
10010
10556
|
"name": zod.string(),
|
|
10011
10557
|
"icon": zod.string().nullish()
|
|
10012
10558
|
})),
|
|
@@ -10021,6 +10567,9 @@ var getItemMediaTypeSearchQueryParams = zod.object({
|
|
|
10021
10567
|
var getItemMediaTypeSearchResponse = zod.object({
|
|
10022
10568
|
"items": zod.array(zod.object({
|
|
10023
10569
|
"id": zod.string().uuid(),
|
|
10570
|
+
"flags": zod.array(zod.object({
|
|
10571
|
+
"alias": zod.string()
|
|
10572
|
+
})),
|
|
10024
10573
|
"name": zod.string(),
|
|
10025
10574
|
"icon": zod.string().nullish()
|
|
10026
10575
|
})),
|
|
@@ -10338,6 +10887,9 @@ var getTreeMediaTypeAncestorsResponseItem = zod.object({
|
|
|
10338
10887
|
"parent": zod.object({
|
|
10339
10888
|
"id": zod.string().uuid()
|
|
10340
10889
|
}).nullish(),
|
|
10890
|
+
"flags": zod.array(zod.object({
|
|
10891
|
+
"alias": zod.string()
|
|
10892
|
+
})),
|
|
10341
10893
|
"name": zod.string(),
|
|
10342
10894
|
"isFolder": zod.boolean(),
|
|
10343
10895
|
"icon": zod.string(),
|
|
@@ -10359,6 +10911,9 @@ var getTreeMediaTypeChildrenResponse = zod.object({
|
|
|
10359
10911
|
"parent": zod.object({
|
|
10360
10912
|
"id": zod.string().uuid()
|
|
10361
10913
|
}).nullish(),
|
|
10914
|
+
"flags": zod.array(zod.object({
|
|
10915
|
+
"alias": zod.string()
|
|
10916
|
+
})),
|
|
10362
10917
|
"name": zod.string(),
|
|
10363
10918
|
"isFolder": zod.boolean(),
|
|
10364
10919
|
"icon": zod.string(),
|
|
@@ -10379,6 +10934,33 @@ var getTreeMediaTypeRootResponse = zod.object({
|
|
|
10379
10934
|
"parent": zod.object({
|
|
10380
10935
|
"id": zod.string().uuid()
|
|
10381
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
|
+
})),
|
|
10382
10964
|
"name": zod.string(),
|
|
10383
10965
|
"isFolder": zod.boolean(),
|
|
10384
10966
|
"icon": zod.string(),
|
|
@@ -10414,12 +10996,18 @@ var getCollectionMediaResponse = zod.object({
|
|
|
10414
10996
|
"updateDate": zod.string().datetime({ "local": true })
|
|
10415
10997
|
})),
|
|
10416
10998
|
"id": zod.string().uuid(),
|
|
10999
|
+
"flags": zod.array(zod.object({
|
|
11000
|
+
"alias": zod.string()
|
|
11001
|
+
})),
|
|
10417
11002
|
"creator": zod.string().nullish(),
|
|
10418
11003
|
"sortOrder": zod.number(),
|
|
10419
11004
|
"mediaType": zod.object({
|
|
10420
11005
|
"id": zod.string().uuid(),
|
|
10421
11006
|
"alias": zod.string(),
|
|
10422
|
-
"icon": zod.string()
|
|
11007
|
+
"icon": zod.string(),
|
|
11008
|
+
"collection": zod.object({
|
|
11009
|
+
"id": zod.string().uuid()
|
|
11010
|
+
}).nullish()
|
|
10423
11011
|
})
|
|
10424
11012
|
}))
|
|
10425
11013
|
});
|
|
@@ -10428,6 +11016,9 @@ var getItemMediaQueryParams = zod.object({
|
|
|
10428
11016
|
});
|
|
10429
11017
|
var getItemMediaResponseItem = zod.object({
|
|
10430
11018
|
"id": zod.string().uuid(),
|
|
11019
|
+
"flags": zod.array(zod.object({
|
|
11020
|
+
"alias": zod.string()
|
|
11021
|
+
})),
|
|
10431
11022
|
"isTrashed": zod.boolean(),
|
|
10432
11023
|
"parent": zod.object({
|
|
10433
11024
|
"id": zod.string().uuid()
|
|
@@ -10454,11 +11045,15 @@ var getItemMediaSearchQueryParams = zod.object({
|
|
|
10454
11045
|
"skip": zod.coerce.number().optional(),
|
|
10455
11046
|
"take": zod.coerce.number().default(getItemMediaSearchQueryTakeDefault),
|
|
10456
11047
|
"parentId": zod.string().uuid().optional(),
|
|
10457
|
-
"allowedMediaTypes": zod.array(zod.string().uuid()).optional()
|
|
11048
|
+
"allowedMediaTypes": zod.array(zod.string().uuid()).optional(),
|
|
11049
|
+
"dataTypeId": zod.string().uuid().optional()
|
|
10458
11050
|
});
|
|
10459
11051
|
var getItemMediaSearchResponse = zod.object({
|
|
10460
11052
|
"items": zod.array(zod.object({
|
|
10461
11053
|
"id": zod.string().uuid(),
|
|
11054
|
+
"flags": zod.array(zod.object({
|
|
11055
|
+
"alias": zod.string()
|
|
11056
|
+
})),
|
|
10462
11057
|
"isTrashed": zod.boolean(),
|
|
10463
11058
|
"parent": zod.object({
|
|
10464
11059
|
"id": zod.string().uuid()
|
|
@@ -10517,9 +11112,8 @@ var getMediaByIdResponse = zod.object({
|
|
|
10517
11112
|
"updateDate": zod.string().datetime({ "local": true })
|
|
10518
11113
|
})),
|
|
10519
11114
|
"id": zod.string().uuid(),
|
|
10520
|
-
"
|
|
10521
|
-
"
|
|
10522
|
-
"url": zod.string()
|
|
11115
|
+
"flags": zod.array(zod.object({
|
|
11116
|
+
"alias": zod.string()
|
|
10523
11117
|
})),
|
|
10524
11118
|
"isTrashed": zod.boolean(),
|
|
10525
11119
|
"mediaType": zod.object({
|
|
@@ -10612,7 +11206,11 @@ var getMediaByIdReferencedByResponse = zod.object({
|
|
|
10612
11206
|
"variants": zod.array(zod.object({
|
|
10613
11207
|
"name": zod.string(),
|
|
10614
11208
|
"culture": zod.string().nullish(),
|
|
10615
|
-
"
|
|
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"])
|
|
10616
11214
|
}))
|
|
10617
11215
|
})).or(zod.object({
|
|
10618
11216
|
"$type": zod.enum(["DocumentTypePropertyTypeReferenceResponseModel"]),
|
|
@@ -10731,7 +11329,7 @@ var getMediaUrlsResponseItem = zod.object({
|
|
|
10731
11329
|
"id": zod.string().uuid(),
|
|
10732
11330
|
"urlInfos": zod.array(zod.object({
|
|
10733
11331
|
"culture": zod.string().nullable(),
|
|
10734
|
-
"url": zod.string()
|
|
11332
|
+
"url": zod.string().nullable()
|
|
10735
11333
|
}))
|
|
10736
11334
|
});
|
|
10737
11335
|
var getMediaUrlsResponse = zod.array(getMediaUrlsResponseItem);
|
|
@@ -10827,7 +11425,11 @@ var getRecycleBinMediaReferencedByResponse = zod.object({
|
|
|
10827
11425
|
"variants": zod.array(zod.object({
|
|
10828
11426
|
"name": zod.string(),
|
|
10829
11427
|
"culture": zod.string().nullish(),
|
|
10830
|
-
"
|
|
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"])
|
|
10831
11433
|
}))
|
|
10832
11434
|
})).or(zod.object({
|
|
10833
11435
|
"$type": zod.enum(["DocumentTypePropertyTypeReferenceResponseModel"]),
|
|
@@ -10911,17 +11513,49 @@ var getRecycleBinMediaRootResponse = zod.object({
|
|
|
10911
11513
|
}))
|
|
10912
11514
|
}))
|
|
10913
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
|
+
});
|
|
10914
11545
|
var getTreeMediaAncestorsQueryParams = zod.object({
|
|
10915
11546
|
"descendantId": zod.string().uuid().optional()
|
|
10916
11547
|
});
|
|
10917
11548
|
var getTreeMediaAncestorsResponseItem = zod.object({
|
|
10918
11549
|
"hasChildren": zod.boolean(),
|
|
11550
|
+
"id": zod.string().uuid(),
|
|
10919
11551
|
"parent": zod.object({
|
|
10920
11552
|
"id": zod.string().uuid()
|
|
10921
11553
|
}).nullish(),
|
|
11554
|
+
"flags": zod.array(zod.object({
|
|
11555
|
+
"alias": zod.string()
|
|
11556
|
+
})),
|
|
10922
11557
|
"noAccess": zod.boolean(),
|
|
10923
11558
|
"isTrashed": zod.boolean(),
|
|
10924
|
-
"id": zod.string().uuid(),
|
|
10925
11559
|
"createDate": zod.string().datetime({ "local": true }),
|
|
10926
11560
|
"mediaType": zod.object({
|
|
10927
11561
|
"id": zod.string().uuid(),
|
|
@@ -10947,12 +11581,15 @@ var getTreeMediaChildrenResponse = zod.object({
|
|
|
10947
11581
|
"total": zod.number(),
|
|
10948
11582
|
"items": zod.array(zod.object({
|
|
10949
11583
|
"hasChildren": zod.boolean(),
|
|
11584
|
+
"id": zod.string().uuid(),
|
|
10950
11585
|
"parent": zod.object({
|
|
10951
11586
|
"id": zod.string().uuid()
|
|
10952
11587
|
}).nullish(),
|
|
11588
|
+
"flags": zod.array(zod.object({
|
|
11589
|
+
"alias": zod.string()
|
|
11590
|
+
})),
|
|
10953
11591
|
"noAccess": zod.boolean(),
|
|
10954
11592
|
"isTrashed": zod.boolean(),
|
|
10955
|
-
"id": zod.string().uuid(),
|
|
10956
11593
|
"createDate": zod.string().datetime({ "local": true }),
|
|
10957
11594
|
"mediaType": zod.object({
|
|
10958
11595
|
"id": zod.string().uuid(),
|
|
@@ -10977,12 +11614,49 @@ var getTreeMediaRootResponse = zod.object({
|
|
|
10977
11614
|
"total": zod.number(),
|
|
10978
11615
|
"items": zod.array(zod.object({
|
|
10979
11616
|
"hasChildren": zod.boolean(),
|
|
11617
|
+
"id": zod.string().uuid(),
|
|
10980
11618
|
"parent": zod.object({
|
|
10981
11619
|
"id": zod.string().uuid()
|
|
10982
11620
|
}).nullish(),
|
|
11621
|
+
"flags": zod.array(zod.object({
|
|
11622
|
+
"alias": zod.string()
|
|
11623
|
+
})),
|
|
10983
11624
|
"noAccess": zod.boolean(),
|
|
10984
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(),
|
|
10985
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(),
|
|
10986
11660
|
"createDate": zod.string().datetime({ "local": true }),
|
|
10987
11661
|
"mediaType": zod.object({
|
|
10988
11662
|
"id": zod.string().uuid(),
|
|
@@ -11002,6 +11676,9 @@ var getItemMemberGroupQueryParams = zod.object({
|
|
|
11002
11676
|
});
|
|
11003
11677
|
var getItemMemberGroupResponseItem = zod.object({
|
|
11004
11678
|
"id": zod.string().uuid(),
|
|
11679
|
+
"flags": zod.array(zod.object({
|
|
11680
|
+
"alias": zod.string()
|
|
11681
|
+
})),
|
|
11005
11682
|
"name": zod.string()
|
|
11006
11683
|
});
|
|
11007
11684
|
var getItemMemberGroupResponse = zod.array(getItemMemberGroupResponseItem);
|
|
@@ -11050,6 +11727,9 @@ var getTreeMemberGroupRootResponse = zod.object({
|
|
|
11050
11727
|
"parent": zod.object({
|
|
11051
11728
|
"id": zod.string().uuid()
|
|
11052
11729
|
}).nullish(),
|
|
11730
|
+
"flags": zod.array(zod.object({
|
|
11731
|
+
"alias": zod.string()
|
|
11732
|
+
})),
|
|
11053
11733
|
"name": zod.string()
|
|
11054
11734
|
}))
|
|
11055
11735
|
});
|
|
@@ -11058,6 +11738,9 @@ var getItemMemberTypeQueryParams = zod.object({
|
|
|
11058
11738
|
});
|
|
11059
11739
|
var getItemMemberTypeResponseItem = zod.object({
|
|
11060
11740
|
"id": zod.string().uuid(),
|
|
11741
|
+
"flags": zod.array(zod.object({
|
|
11742
|
+
"alias": zod.string()
|
|
11743
|
+
})),
|
|
11061
11744
|
"name": zod.string(),
|
|
11062
11745
|
"icon": zod.string().nullish()
|
|
11063
11746
|
});
|
|
@@ -11071,6 +11754,9 @@ var getItemMemberTypeSearchQueryParams = zod.object({
|
|
|
11071
11754
|
var getItemMemberTypeSearchResponse = zod.object({
|
|
11072
11755
|
"items": zod.array(zod.object({
|
|
11073
11756
|
"id": zod.string().uuid(),
|
|
11757
|
+
"flags": zod.array(zod.object({
|
|
11758
|
+
"alias": zod.string()
|
|
11759
|
+
})),
|
|
11074
11760
|
"name": zod.string(),
|
|
11075
11761
|
"icon": zod.string().nullish()
|
|
11076
11762
|
})),
|
|
@@ -11286,10 +11972,34 @@ var postMemberTypeAvailableCompositionsResponse = zod.array(postMemberTypeAvaila
|
|
|
11286
11972
|
var getMemberTypeConfigurationResponse = zod.object({
|
|
11287
11973
|
"reservedFieldNames": zod.array(zod.string())
|
|
11288
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
|
+
});
|
|
11289
11998
|
var getTreeMemberTypeRootQueryTakeDefault = 100;
|
|
11290
11999
|
var getTreeMemberTypeRootQueryParams = zod.object({
|
|
11291
12000
|
"skip": zod.coerce.number().optional(),
|
|
11292
|
-
"take": zod.coerce.number().default(getTreeMemberTypeRootQueryTakeDefault)
|
|
12001
|
+
"take": zod.coerce.number().default(getTreeMemberTypeRootQueryTakeDefault),
|
|
12002
|
+
"foldersOnly": zod.coerce.boolean().optional()
|
|
11293
12003
|
});
|
|
11294
12004
|
var getTreeMemberTypeRootResponse = zod.object({
|
|
11295
12005
|
"total": zod.number(),
|
|
@@ -11299,6 +12009,31 @@ var getTreeMemberTypeRootResponse = zod.object({
|
|
|
11299
12009
|
"parent": zod.object({
|
|
11300
12010
|
"id": zod.string().uuid()
|
|
11301
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
|
+
})),
|
|
11302
12037
|
"name": zod.string(),
|
|
11303
12038
|
"icon": zod.string()
|
|
11304
12039
|
}))
|
|
@@ -11334,6 +12069,9 @@ var getFilterMemberResponse = zod.object({
|
|
|
11334
12069
|
"updateDate": zod.string().datetime({ "local": true })
|
|
11335
12070
|
})),
|
|
11336
12071
|
"id": zod.string().uuid(),
|
|
12072
|
+
"flags": zod.array(zod.object({
|
|
12073
|
+
"alias": zod.string()
|
|
12074
|
+
})),
|
|
11337
12075
|
"email": zod.string(),
|
|
11338
12076
|
"username": zod.string(),
|
|
11339
12077
|
"memberType": zod.object({
|
|
@@ -11359,6 +12097,9 @@ var getItemMemberQueryParams = zod.object({
|
|
|
11359
12097
|
});
|
|
11360
12098
|
var getItemMemberResponseItem = zod.object({
|
|
11361
12099
|
"id": zod.string().uuid(),
|
|
12100
|
+
"flags": zod.array(zod.object({
|
|
12101
|
+
"alias": zod.string()
|
|
12102
|
+
})),
|
|
11362
12103
|
"memberType": zod.object({
|
|
11363
12104
|
"id": zod.string().uuid(),
|
|
11364
12105
|
"icon": zod.string(),
|
|
@@ -11383,6 +12124,9 @@ var getItemMemberSearchQueryParams = zod.object({
|
|
|
11383
12124
|
var getItemMemberSearchResponse = zod.object({
|
|
11384
12125
|
"items": zod.array(zod.object({
|
|
11385
12126
|
"id": zod.string().uuid(),
|
|
12127
|
+
"flags": zod.array(zod.object({
|
|
12128
|
+
"alias": zod.string()
|
|
12129
|
+
})),
|
|
11386
12130
|
"memberType": zod.object({
|
|
11387
12131
|
"id": zod.string().uuid(),
|
|
11388
12132
|
"icon": zod.string(),
|
|
@@ -11439,6 +12183,9 @@ var getMemberByIdResponse = zod.object({
|
|
|
11439
12183
|
"updateDate": zod.string().datetime({ "local": true })
|
|
11440
12184
|
})),
|
|
11441
12185
|
"id": zod.string().uuid(),
|
|
12186
|
+
"flags": zod.array(zod.object({
|
|
12187
|
+
"alias": zod.string()
|
|
12188
|
+
})),
|
|
11442
12189
|
"email": zod.string(),
|
|
11443
12190
|
"username": zod.string(),
|
|
11444
12191
|
"memberType": zod.object({
|
|
@@ -11515,7 +12262,11 @@ var getMemberByIdReferencedByResponse = zod.object({
|
|
|
11515
12262
|
"variants": zod.array(zod.object({
|
|
11516
12263
|
"name": zod.string(),
|
|
11517
12264
|
"culture": zod.string().nullish(),
|
|
11518
|
-
"
|
|
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"])
|
|
11519
12270
|
}))
|
|
11520
12271
|
})).or(zod.object({
|
|
11521
12272
|
"$type": zod.enum(["DocumentTypePropertyTypeReferenceResponseModel"]),
|
|
@@ -11646,7 +12397,7 @@ var postMemberValidateBody = zod.object({
|
|
|
11646
12397
|
"isApproved": zod.boolean()
|
|
11647
12398
|
});
|
|
11648
12399
|
var getModelsBuilderDashboardResponse = zod.object({
|
|
11649
|
-
"mode": zod.
|
|
12400
|
+
"mode": zod.string(),
|
|
11650
12401
|
"canGenerate": zod.boolean(),
|
|
11651
12402
|
"outOfDateModels": zod.boolean(),
|
|
11652
12403
|
"lastError": zod.string().nullish(),
|
|
@@ -11657,6 +12408,17 @@ var getModelsBuilderDashboardResponse = zod.object({
|
|
|
11657
12408
|
var getModelsBuilderStatusResponse = zod.object({
|
|
11658
12409
|
"status": zod.enum(["OutOfDate", "Current", "Unknown"])
|
|
11659
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
|
+
});
|
|
11660
12422
|
var getObjectTypesQueryTakeDefault = 100;
|
|
11661
12423
|
var getObjectTypesQueryParams = zod.object({
|
|
11662
12424
|
"skip": zod.coerce.number().optional(),
|
|
@@ -11918,6 +12680,24 @@ var getTreePartialViewRootResponse = zod.object({
|
|
|
11918
12680
|
"isFolder": zod.boolean()
|
|
11919
12681
|
}))
|
|
11920
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
|
+
});
|
|
11921
12701
|
var getProfilingStatusResponse = zod.object({
|
|
11922
12702
|
"enabled": zod.boolean()
|
|
11923
12703
|
});
|
|
@@ -11987,6 +12767,9 @@ var getItemRelationTypeQueryParams = zod.object({
|
|
|
11987
12767
|
});
|
|
11988
12768
|
var getItemRelationTypeResponseItem = zod.object({
|
|
11989
12769
|
"id": zod.string().uuid(),
|
|
12770
|
+
"flags": zod.array(zod.object({
|
|
12771
|
+
"alias": zod.string()
|
|
12772
|
+
})),
|
|
11990
12773
|
"name": zod.string(),
|
|
11991
12774
|
"isDeletable": zod.boolean()
|
|
11992
12775
|
});
|
|
@@ -12171,6 +12954,24 @@ var getTreeScriptRootResponse = zod.object({
|
|
|
12171
12954
|
"isFolder": zod.boolean()
|
|
12172
12955
|
}))
|
|
12173
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
|
+
});
|
|
12174
12975
|
var getSearcherQueryTakeDefault = 100;
|
|
12175
12976
|
var getSearcherQueryParams = zod.object({
|
|
12176
12977
|
"skip": zod.coerce.number().optional(),
|
|
@@ -12246,7 +13047,8 @@ var getSegmentResponse = zod.object({
|
|
|
12246
13047
|
"total": zod.number(),
|
|
12247
13048
|
"items": zod.array(zod.object({
|
|
12248
13049
|
"name": zod.string(),
|
|
12249
|
-
"alias": zod.string()
|
|
13050
|
+
"alias": zod.string(),
|
|
13051
|
+
"cultures": zod.array(zod.string()).nullish()
|
|
12250
13052
|
}))
|
|
12251
13053
|
});
|
|
12252
13054
|
var getServerConfigurationResponse = zod.object({
|
|
@@ -12446,6 +13248,24 @@ var getTreeStylesheetRootResponse = zod.object({
|
|
|
12446
13248
|
"isFolder": zod.boolean()
|
|
12447
13249
|
}))
|
|
12448
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
|
+
});
|
|
12449
13269
|
var getTagQueryTakeDefault = 100;
|
|
12450
13270
|
var getTagQueryParams = zod.object({
|
|
12451
13271
|
"query": zod.string().optional(),
|
|
@@ -12485,6 +13305,9 @@ var getItemTemplateQueryParams = zod.object({
|
|
|
12485
13305
|
});
|
|
12486
13306
|
var getItemTemplateResponseItem = zod.object({
|
|
12487
13307
|
"id": zod.string().uuid(),
|
|
13308
|
+
"flags": zod.array(zod.object({
|
|
13309
|
+
"alias": zod.string()
|
|
13310
|
+
})),
|
|
12488
13311
|
"name": zod.string(),
|
|
12489
13312
|
"alias": zod.string()
|
|
12490
13313
|
});
|
|
@@ -12498,6 +13321,9 @@ var getItemTemplateSearchQueryParams = zod.object({
|
|
|
12498
13321
|
var getItemTemplateSearchResponse = zod.object({
|
|
12499
13322
|
"items": zod.array(zod.object({
|
|
12500
13323
|
"id": zod.string().uuid(),
|
|
13324
|
+
"flags": zod.array(zod.object({
|
|
13325
|
+
"alias": zod.string()
|
|
13326
|
+
})),
|
|
12501
13327
|
"name": zod.string(),
|
|
12502
13328
|
"alias": zod.string()
|
|
12503
13329
|
})),
|
|
@@ -12580,6 +13406,9 @@ var getTreeTemplateAncestorsResponseItem = zod.object({
|
|
|
12580
13406
|
"parent": zod.object({
|
|
12581
13407
|
"id": zod.string().uuid()
|
|
12582
13408
|
}).nullish(),
|
|
13409
|
+
"flags": zod.array(zod.object({
|
|
13410
|
+
"alias": zod.string()
|
|
13411
|
+
})),
|
|
12583
13412
|
"name": zod.string()
|
|
12584
13413
|
});
|
|
12585
13414
|
var getTreeTemplateAncestorsResponse = zod.array(getTreeTemplateAncestorsResponseItem);
|
|
@@ -12597,6 +13426,9 @@ var getTreeTemplateChildrenResponse = zod.object({
|
|
|
12597
13426
|
"parent": zod.object({
|
|
12598
13427
|
"id": zod.string().uuid()
|
|
12599
13428
|
}).nullish(),
|
|
13429
|
+
"flags": zod.array(zod.object({
|
|
13430
|
+
"alias": zod.string()
|
|
13431
|
+
})),
|
|
12600
13432
|
"name": zod.string()
|
|
12601
13433
|
}))
|
|
12602
13434
|
});
|
|
@@ -12613,6 +13445,29 @@ var getTreeTemplateRootResponse = zod.object({
|
|
|
12613
13445
|
"parent": zod.object({
|
|
12614
13446
|
"id": zod.string().uuid()
|
|
12615
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
|
+
})),
|
|
12616
13471
|
"name": zod.string()
|
|
12617
13472
|
}))
|
|
12618
13473
|
});
|
|
@@ -12659,6 +13514,9 @@ var getUserDataByIdResponse = zod.object({
|
|
|
12659
13514
|
"identifier": zod.string(),
|
|
12660
13515
|
"value": zod.string()
|
|
12661
13516
|
});
|
|
13517
|
+
var deleteUserDataByIdParams = zod.object({
|
|
13518
|
+
"id": zod.string().uuid()
|
|
13519
|
+
});
|
|
12662
13520
|
var getFilterUserGroupQueryTakeDefault = 100;
|
|
12663
13521
|
var getFilterUserGroupQueryParams = zod.object({
|
|
12664
13522
|
"skip": zod.coerce.number().optional(),
|
|
@@ -12713,6 +13571,9 @@ var getItemUserGroupQueryParams = zod.object({
|
|
|
12713
13571
|
});
|
|
12714
13572
|
var getItemUserGroupResponseItem = zod.object({
|
|
12715
13573
|
"id": zod.string().uuid(),
|
|
13574
|
+
"flags": zod.array(zod.object({
|
|
13575
|
+
"alias": zod.string()
|
|
13576
|
+
})),
|
|
12716
13577
|
"name": zod.string(),
|
|
12717
13578
|
"icon": zod.string().nullish(),
|
|
12718
13579
|
"alias": zod.string().nullish()
|
|
@@ -12955,6 +13816,9 @@ var getItemUserQueryParams = zod.object({
|
|
|
12955
13816
|
});
|
|
12956
13817
|
var getItemUserResponseItem = zod.object({
|
|
12957
13818
|
"id": zod.string().uuid(),
|
|
13819
|
+
"flags": zod.array(zod.object({
|
|
13820
|
+
"alias": zod.string()
|
|
13821
|
+
})),
|
|
12958
13822
|
"name": zod.string(),
|
|
12959
13823
|
"avatarUrls": zod.array(zod.string()),
|
|
12960
13824
|
"kind": zod.enum(["Default", "Api"])
|
|
@@ -13332,6 +14196,10 @@ var getItemWebhookQueryParams = zod.object({
|
|
|
13332
14196
|
"id": zod.array(zod.string().uuid()).optional()
|
|
13333
14197
|
});
|
|
13334
14198
|
var getItemWebhookResponseItem = zod.object({
|
|
14199
|
+
"id": zod.string().uuid(),
|
|
14200
|
+
"flags": zod.array(zod.object({
|
|
14201
|
+
"alias": zod.string()
|
|
14202
|
+
})),
|
|
13335
14203
|
"enabled": zod.boolean(),
|
|
13336
14204
|
"name": zod.string(),
|
|
13337
14205
|
"events": zod.string(),
|
|
@@ -14564,21 +15432,21 @@ var move_data_type_default = MoveDataTypeTool;
|
|
|
14564
15432
|
var GetReferencesDataTypeTool = CreateUmbracoTool(
|
|
14565
15433
|
"get-references-data-type",
|
|
14566
15434
|
`Gets the document types and properties that use a specific data type.
|
|
14567
|
-
|
|
15435
|
+
|
|
14568
15436
|
This is the recommended method to find all document types that reference a particular data type.
|
|
14569
|
-
|
|
15437
|
+
|
|
14570
15438
|
Usage examples:
|
|
14571
15439
|
- Find all document types using the RichText editor data type
|
|
14572
15440
|
- Identify properties that reference a specific data type before modifying or deleting it
|
|
14573
15441
|
- Perform bulk updates to all properties using a specific data type
|
|
14574
|
-
|
|
15442
|
+
|
|
14575
15443
|
Returns a detailed list with content type information (id, type, name, icon) and all properties
|
|
14576
15444
|
(name, alias) that use the specified data type.
|
|
14577
15445
|
`,
|
|
14578
|
-
|
|
15446
|
+
getDataTypeByIdReferencedByParams.shape,
|
|
14579
15447
|
async ({ id }) => {
|
|
14580
15448
|
const client = UmbracoManagementClient2.getClient();
|
|
14581
|
-
var response = await client.
|
|
15449
|
+
var response = await client.getDataTypeByIdReferencedBy(id);
|
|
14582
15450
|
return {
|
|
14583
15451
|
content: [
|
|
14584
15452
|
{
|
|
@@ -14735,6 +15603,26 @@ var GetDataTypeChildrenTool = CreateUmbracoTool(
|
|
|
14735
15603
|
);
|
|
14736
15604
|
var get_children_default = GetDataTypeChildrenTool;
|
|
14737
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
|
+
|
|
14738
15626
|
// src/umb-management-api/tools/data-type/items/get/get-ancestors.ts
|
|
14739
15627
|
var GetDataTypeAncestorsTool = CreateUmbracoTool(
|
|
14740
15628
|
"get-data-type-ancestors",
|
|
@@ -14865,6 +15753,7 @@ var DataTypeCollection = {
|
|
|
14865
15753
|
if (AuthorizationPolicies.TreeAccessDataTypes(user)) {
|
|
14866
15754
|
tools.push(get_root_default());
|
|
14867
15755
|
tools.push(get_children_default());
|
|
15756
|
+
tools.push(get_siblings_default());
|
|
14868
15757
|
tools.push(get_ancestors_default());
|
|
14869
15758
|
tools.push(get_all_default());
|
|
14870
15759
|
tools.push(delete_data_type_default());
|
|
@@ -15496,6 +16385,26 @@ var GetDocumentTypeAncestorsTool = CreateUmbracoTool(
|
|
|
15496
16385
|
);
|
|
15497
16386
|
var get_ancestors_default3 = GetDocumentTypeAncestorsTool;
|
|
15498
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
|
+
|
|
15499
16408
|
// src/umb-management-api/tools/document-type/folders/post/create-folder.ts
|
|
15500
16409
|
var CreateDocumentTypeFolderTool = CreateUmbracoTool(
|
|
15501
16410
|
"create-document-type-folder",
|
|
@@ -16451,6 +17360,7 @@ var DocumentTypeCollection = {
|
|
|
16451
17360
|
tools.push(get_root_default3());
|
|
16452
17361
|
tools.push(get_ancestors_default3());
|
|
16453
17362
|
tools.push(get_children_default3());
|
|
17363
|
+
tools.push(get_siblings_default2());
|
|
16454
17364
|
}
|
|
16455
17365
|
return tools;
|
|
16456
17366
|
}
|
|
@@ -16521,6 +17431,27 @@ var GetLanguageByIsoCodeTool = CreateUmbracoTool(
|
|
|
16521
17431
|
);
|
|
16522
17432
|
var get_language_by_iso_code_default = GetLanguageByIsoCodeTool;
|
|
16523
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
|
+
|
|
16524
17455
|
// src/umb-management-api/tools/language/post/create-language.ts
|
|
16525
17456
|
var CreateLanguageTool = CreateUmbracoTool(
|
|
16526
17457
|
"create-language",
|
|
@@ -16608,6 +17539,7 @@ var LanguageCollection = {
|
|
|
16608
17539
|
const tools = [];
|
|
16609
17540
|
tools.push(get_language_items_default());
|
|
16610
17541
|
tools.push(get_default_language_default());
|
|
17542
|
+
tools.push(get_language_default());
|
|
16611
17543
|
if (AuthorizationPolicies.TreeAccessLanguages(user)) {
|
|
16612
17544
|
tools.push(create_language_default());
|
|
16613
17545
|
tools.push(update_language_default());
|
|
@@ -16790,6 +17722,26 @@ var GetDocumentBlueprintRootTool = CreateUmbracoTool(
|
|
|
16790
17722
|
);
|
|
16791
17723
|
var get_root_default4 = GetDocumentBlueprintRootTool;
|
|
16792
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
|
+
|
|
16793
17745
|
// src/umb-management-api/tools/document-blueprint/get/get-document-blueprint-scaffold.ts
|
|
16794
17746
|
var GetDocumentBlueprintScaffoldTool = CreateUmbracoTool(
|
|
16795
17747
|
"get-document-blueprint-scaffold",
|
|
@@ -17002,6 +17954,7 @@ var DocumentBlueprintCollection = {
|
|
|
17002
17954
|
tools.push(get_ancestors_default4());
|
|
17003
17955
|
tools.push(get_children_default4());
|
|
17004
17956
|
tools.push(get_root_default4());
|
|
17957
|
+
tools.push(get_siblings_default3());
|
|
17005
17958
|
tools.push(create_folder_default3());
|
|
17006
17959
|
tools.push(get_folder_default3());
|
|
17007
17960
|
tools.push(update_folder_default3());
|
|
@@ -17090,6 +18043,26 @@ var DeleteDocumentPublicAccessTool = CreateUmbracoTool(
|
|
|
17090
18043
|
);
|
|
17091
18044
|
var delete_document_public_access_default = DeleteDocumentPublicAccessTool;
|
|
17092
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
|
+
|
|
17093
18066
|
// src/umb-management-api/tools/document/get/get-document-by-id.ts
|
|
17094
18067
|
var GetDocumentByIdTool = CreateUmbracoTool(
|
|
17095
18068
|
"get-document-by-id",
|
|
@@ -17809,6 +18782,26 @@ var GetCollectionDocumentByIdTool = CreateUmbracoTool(
|
|
|
17809
18782
|
);
|
|
17810
18783
|
var get_collection_document_by_id_default = GetCollectionDocumentByIdTool;
|
|
17811
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
|
+
|
|
17812
18805
|
// src/umb-management-api/tools/document/get/get-document-are-referenced.ts
|
|
17813
18806
|
var GetDocumentAreReferencedTool = CreateUmbracoTool(
|
|
17814
18807
|
"get-document-are-referenced",
|
|
@@ -17885,6 +18878,37 @@ var GetDocumentByIdReferencedDescendantsTool = CreateUmbracoTool(
|
|
|
17885
18878
|
);
|
|
17886
18879
|
var get_document_by_id_referenced_descendants_default = GetDocumentByIdReferencedDescendantsTool;
|
|
17887
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
|
+
|
|
17888
18912
|
// src/umb-management-api/tools/document/get/get-recycle-bin-document-original-parent.ts
|
|
17889
18913
|
var GetRecycleBinDocumentOriginalParentTool = CreateUmbracoTool(
|
|
17890
18914
|
"get-recycle-bin-document-original-parent",
|
|
@@ -17928,13 +18952,13 @@ var GetRecycleBinDocumentReferencedByTool = CreateUmbracoTool(
|
|
|
17928
18952
|
var get_recycle_bin_document_referenced_by_default = GetRecycleBinDocumentReferencedByTool;
|
|
17929
18953
|
|
|
17930
18954
|
// src/umb-management-api/tools/document/post/post-document-public-access.ts
|
|
17931
|
-
import { z as
|
|
18955
|
+
import { z as z31 } from "zod";
|
|
17932
18956
|
var PostDocumentPublicAccessTool = CreateUmbracoTool(
|
|
17933
18957
|
"post-document-public-access",
|
|
17934
18958
|
"Adds public access settings to a document by Id.",
|
|
17935
18959
|
{
|
|
17936
18960
|
id: postDocumentByIdPublicAccessParams.shape.id,
|
|
17937
|
-
data:
|
|
18961
|
+
data: z31.object(postDocumentByIdPublicAccessBody.shape)
|
|
17938
18962
|
},
|
|
17939
18963
|
async (model) => {
|
|
17940
18964
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -17977,12 +19001,12 @@ var ValidateDocumentTool = CreateUmbracoTool(
|
|
|
17977
19001
|
var validate_document_default = ValidateDocumentTool;
|
|
17978
19002
|
|
|
17979
19003
|
// src/umb-management-api/tools/document/post/copy-document.ts
|
|
17980
|
-
import { z as
|
|
17981
|
-
var copyDocumentSchema =
|
|
17982
|
-
parentId:
|
|
17983
|
-
idToCopy:
|
|
17984
|
-
relateToOriginal:
|
|
17985
|
-
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.")
|
|
17986
19010
|
});
|
|
17987
19011
|
var CopyDocumentTool = CreateUmbracoTool(
|
|
17988
19012
|
"copy-document",
|
|
@@ -18030,19 +19054,19 @@ var copy_document_default = CopyDocumentTool;
|
|
|
18030
19054
|
|
|
18031
19055
|
// src/umb-management-api/tools/document/post/create-document.ts
|
|
18032
19056
|
import { v4 as uuidv45 } from "uuid";
|
|
18033
|
-
import { z as
|
|
18034
|
-
var createDocumentSchema =
|
|
18035
|
-
documentTypeId:
|
|
18036
|
-
parentId:
|
|
18037
|
-
name:
|
|
18038
|
-
cultures:
|
|
18039
|
-
values:
|
|
18040
|
-
|
|
18041
|
-
editorAlias:
|
|
18042
|
-
culture:
|
|
18043
|
-
segment:
|
|
18044
|
-
alias:
|
|
18045
|
-
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()
|
|
18046
19070
|
})
|
|
18047
19071
|
).default([])
|
|
18048
19072
|
});
|
|
@@ -18186,13 +19210,13 @@ var CreateDocumentTool = CreateUmbracoTool(
|
|
|
18186
19210
|
var create_document_default = CreateDocumentTool;
|
|
18187
19211
|
|
|
18188
19212
|
// src/umb-management-api/tools/document/put/put-document-public-access.ts
|
|
18189
|
-
import { z as
|
|
19213
|
+
import { z as z34 } from "zod";
|
|
18190
19214
|
var PutDocumentPublicAccessTool = CreateUmbracoTool(
|
|
18191
19215
|
"put-document-public-access",
|
|
18192
19216
|
"Updates public access settings for a document by Id.",
|
|
18193
19217
|
{
|
|
18194
19218
|
id: putDocumentByIdPublicAccessParams.shape.id,
|
|
18195
|
-
data:
|
|
19219
|
+
data: z34.object(putDocumentByIdPublicAccessBody.shape)
|
|
18196
19220
|
},
|
|
18197
19221
|
async (model) => {
|
|
18198
19222
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -18214,14 +19238,14 @@ var PutDocumentPublicAccessTool = CreateUmbracoTool(
|
|
|
18214
19238
|
var put_document_public_access_default = PutDocumentPublicAccessTool;
|
|
18215
19239
|
|
|
18216
19240
|
// src/umb-management-api/tools/document/put/put-document-domains.ts
|
|
18217
|
-
import { z as
|
|
19241
|
+
import { z as z35 } from "zod";
|
|
18218
19242
|
var PutDocumentDomainsTool = CreateUmbracoTool(
|
|
18219
19243
|
"put-document-domains",
|
|
18220
19244
|
`Updates the domains assigned to a document by Id. Default value of the defaultIsoCode is null.
|
|
18221
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.`,
|
|
18222
19246
|
{
|
|
18223
19247
|
id: putDocumentByIdDomainsParams.shape.id,
|
|
18224
|
-
data:
|
|
19248
|
+
data: z35.object(putDocumentByIdDomainsBody.shape)
|
|
18225
19249
|
},
|
|
18226
19250
|
async (model) => {
|
|
18227
19251
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -18240,13 +19264,13 @@ var PutDocumentDomainsTool = CreateUmbracoTool(
|
|
|
18240
19264
|
var put_document_domains_default = PutDocumentDomainsTool;
|
|
18241
19265
|
|
|
18242
19266
|
// src/umb-management-api/tools/document/put/put-document-notifications.ts
|
|
18243
|
-
import { z as
|
|
19267
|
+
import { z as z36 } from "zod";
|
|
18244
19268
|
var PutDocumentNotificationsTool = CreateUmbracoTool(
|
|
18245
19269
|
"put-document-notifications",
|
|
18246
19270
|
"Updates the notifications for a document by Id.",
|
|
18247
19271
|
{
|
|
18248
19272
|
id: putDocumentByIdNotificationsParams.shape.id,
|
|
18249
|
-
data:
|
|
19273
|
+
data: z36.object(putDocumentByIdNotificationsBody.shape)
|
|
18250
19274
|
},
|
|
18251
19275
|
async (model) => {
|
|
18252
19276
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -18267,14 +19291,14 @@ var PutDocumentNotificationsTool = CreateUmbracoTool(
|
|
|
18267
19291
|
var put_document_notifications_default = PutDocumentNotificationsTool;
|
|
18268
19292
|
|
|
18269
19293
|
// src/umb-management-api/tools/document/put/publish-document-with-descendants.ts
|
|
18270
|
-
import { z as
|
|
19294
|
+
import { z as z37 } from "zod";
|
|
18271
19295
|
var PublishDocumentWithDescendantsTool = CreateUmbracoTool(
|
|
18272
19296
|
"publish-document-with-descendants",
|
|
18273
19297
|
`Publishes a document and its descendants by Id. This is an asynchronous operation that may take time for large document trees.
|
|
18274
19298
|
The tool will poll for completion and return the final result when finished.`,
|
|
18275
19299
|
{
|
|
18276
|
-
id:
|
|
18277
|
-
data:
|
|
19300
|
+
id: z37.string().uuid(),
|
|
19301
|
+
data: z37.object(putDocumentByIdPublishWithDescendantsBody.shape)
|
|
18278
19302
|
},
|
|
18279
19303
|
async (model) => {
|
|
18280
19304
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -18346,13 +19370,13 @@ var PublishDocumentWithDescendantsTool = CreateUmbracoTool(
|
|
|
18346
19370
|
var publish_document_with_descendants_default = PublishDocumentWithDescendantsTool;
|
|
18347
19371
|
|
|
18348
19372
|
// src/umb-management-api/tools/document/put/unpublish-document.ts
|
|
18349
|
-
import { z as
|
|
19373
|
+
import { z as z38 } from "zod";
|
|
18350
19374
|
var UnpublishDocumentTool = CreateUmbracoTool(
|
|
18351
19375
|
"unpublish-document",
|
|
18352
19376
|
"Unpublishes a document by Id.",
|
|
18353
19377
|
{
|
|
18354
|
-
id:
|
|
18355
|
-
data:
|
|
19378
|
+
id: z38.string().uuid(),
|
|
19379
|
+
data: z38.object(putDocumentByIdUnpublishBody.shape)
|
|
18356
19380
|
},
|
|
18357
19381
|
async (model) => {
|
|
18358
19382
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -18396,13 +19420,13 @@ var SortDocumentTool = CreateUmbracoTool(
|
|
|
18396
19420
|
var sort_document_default = SortDocumentTool;
|
|
18397
19421
|
|
|
18398
19422
|
// src/umb-management-api/tools/document/put/move-document.ts
|
|
18399
|
-
import { z as
|
|
19423
|
+
import { z as z39 } from "zod";
|
|
18400
19424
|
var MoveDocumentTool = CreateUmbracoTool(
|
|
18401
19425
|
"move-document",
|
|
18402
19426
|
"Move a document to a new location",
|
|
18403
19427
|
{
|
|
18404
|
-
id:
|
|
18405
|
-
data:
|
|
19428
|
+
id: z39.string().uuid(),
|
|
19429
|
+
data: z39.object(putDocumentByIdMoveBody.shape)
|
|
18406
19430
|
},
|
|
18407
19431
|
async (model) => {
|
|
18408
19432
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -18421,7 +19445,7 @@ var MoveDocumentTool = CreateUmbracoTool(
|
|
|
18421
19445
|
var move_document_default = MoveDocumentTool;
|
|
18422
19446
|
|
|
18423
19447
|
// src/umb-management-api/tools/document/put/publish-document.ts
|
|
18424
|
-
import { z as
|
|
19448
|
+
import { z as z40 } from "zod";
|
|
18425
19449
|
var PublishDocumentTool = CreateUmbracoTool(
|
|
18426
19450
|
"publish-document",
|
|
18427
19451
|
`Publishes a document by Id. IMPORTANT: If workflow approval is required, use the initiate-workflow-action function instead.
|
|
@@ -18429,8 +19453,8 @@ var PublishDocumentTool = CreateUmbracoTool(
|
|
|
18429
19453
|
When the culture is not provided, the default culture is null.
|
|
18430
19454
|
When the schedule is not provided, the default schedule is null.`,
|
|
18431
19455
|
{
|
|
18432
|
-
id:
|
|
18433
|
-
data:
|
|
19456
|
+
id: z40.string().uuid(),
|
|
19457
|
+
data: z40.object(putDocumentByIdPublishBody.shape)
|
|
18434
19458
|
},
|
|
18435
19459
|
async (model) => {
|
|
18436
19460
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -18517,7 +19541,7 @@ var MoveDocumentToRecycleBinTool = CreateUmbracoTool(
|
|
|
18517
19541
|
var move_to_recycle_bin_default = MoveDocumentToRecycleBinTool;
|
|
18518
19542
|
|
|
18519
19543
|
// src/umb-management-api/tools/document/put/update-document.ts
|
|
18520
|
-
import { z as
|
|
19544
|
+
import { z as z41 } from "zod";
|
|
18521
19545
|
var UpdateDocumentTool = CreateUmbracoTool(
|
|
18522
19546
|
"update-document",
|
|
18523
19547
|
`Updates a document by Id
|
|
@@ -18525,7 +19549,7 @@ var UpdateDocumentTool = CreateUmbracoTool(
|
|
|
18525
19549
|
Don't miss any properties from the original document that you are updating`,
|
|
18526
19550
|
{
|
|
18527
19551
|
id: putDocumentByIdParams.shape.id,
|
|
18528
|
-
data:
|
|
19552
|
+
data: z41.object(putDocumentByIdBody.shape)
|
|
18529
19553
|
},
|
|
18530
19554
|
async (model) => {
|
|
18531
19555
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -18603,6 +19627,26 @@ var GetDocumentAncestorsTool = CreateUmbracoTool(
|
|
|
18603
19627
|
);
|
|
18604
19628
|
var get_ancestors_default5 = GetDocumentAncestorsTool;
|
|
18605
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
|
+
|
|
18606
19650
|
// src/umb-management-api/tools/document/items/get/get-recycle-bin-root.ts
|
|
18607
19651
|
var GetRecycleBinDocumentRootTool = CreateUmbracoTool(
|
|
18608
19652
|
"get-recycle-bin-document-root",
|
|
@@ -18643,6 +19687,26 @@ var GetRecycleBinDocumentChildrenTool = CreateUmbracoTool(
|
|
|
18643
19687
|
);
|
|
18644
19688
|
var get_recycle_bin_children_default = GetRecycleBinDocumentChildrenTool;
|
|
18645
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
|
+
|
|
18646
19710
|
// src/umb-management-api/tools/document/index.ts
|
|
18647
19711
|
var DocumentCollection = {
|
|
18648
19712
|
metadata: {
|
|
@@ -18663,6 +19727,7 @@ var DocumentCollection = {
|
|
|
18663
19727
|
tools.push(post_document_public_access_default());
|
|
18664
19728
|
tools.push(delete_document_default());
|
|
18665
19729
|
tools.push(delete_document_public_access_default());
|
|
19730
|
+
tools.push(delete_recycle_bin_item_default());
|
|
18666
19731
|
tools.push(get_document_urls_default());
|
|
18667
19732
|
tools.push(get_document_domains_default());
|
|
18668
19733
|
tools.push(get_document_audit_log_default());
|
|
@@ -18686,9 +19751,11 @@ var DocumentCollection = {
|
|
|
18686
19751
|
tools.push(search_document_default());
|
|
18687
19752
|
tools.push(validate_document_default());
|
|
18688
19753
|
tools.push(get_collection_document_by_id_default());
|
|
19754
|
+
tools.push(get_item_document_default());
|
|
18689
19755
|
tools.push(get_document_are_referenced_default());
|
|
18690
19756
|
tools.push(get_document_by_id_referenced_by_default());
|
|
18691
19757
|
tools.push(get_document_by_id_referenced_descendants_default());
|
|
19758
|
+
tools.push(get_document_available_segment_options_default());
|
|
18692
19759
|
tools.push(get_recycle_bin_document_original_parent_default());
|
|
18693
19760
|
tools.push(get_recycle_bin_document_referenced_by_default());
|
|
18694
19761
|
}
|
|
@@ -18696,6 +19763,8 @@ var DocumentCollection = {
|
|
|
18696
19763
|
tools.push(get_root_default5());
|
|
18697
19764
|
tools.push(get_children_default5());
|
|
18698
19765
|
tools.push(get_ancestors_default5());
|
|
19766
|
+
tools.push(get_siblings_default4());
|
|
19767
|
+
tools.push(get_recycle_bin_siblings_default());
|
|
18699
19768
|
}
|
|
18700
19769
|
return tools;
|
|
18701
19770
|
}
|
|
@@ -18808,7 +19877,7 @@ var DocumentVersionCollection = {
|
|
|
18808
19877
|
};
|
|
18809
19878
|
|
|
18810
19879
|
// src/umb-management-api/tools/media/post/create-media.ts
|
|
18811
|
-
import { z as
|
|
19880
|
+
import { z as z42 } from "zod";
|
|
18812
19881
|
import { v4 as uuidv46 } from "uuid";
|
|
18813
19882
|
|
|
18814
19883
|
// src/umb-management-api/tools/media/post/helpers/media-upload-helpers.ts
|
|
@@ -19282,14 +20351,14 @@ async function uploadMediaFile(client, params) {
|
|
|
19282
20351
|
}
|
|
19283
20352
|
|
|
19284
20353
|
// src/umb-management-api/tools/media/post/create-media.ts
|
|
19285
|
-
var createMediaSchema =
|
|
19286
|
-
sourceType:
|
|
19287
|
-
name:
|
|
19288
|
-
mediaTypeName:
|
|
19289
|
-
filePath:
|
|
19290
|
-
fileUrl:
|
|
19291
|
-
fileAsBase64:
|
|
19292
|
-
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)")
|
|
19293
20362
|
});
|
|
19294
20363
|
var CreateMediaTool = CreateUmbracoTool(
|
|
19295
20364
|
"create-media",
|
|
@@ -19356,17 +20425,17 @@ var CreateMediaTool = CreateUmbracoTool(
|
|
|
19356
20425
|
var create_media_default = CreateMediaTool;
|
|
19357
20426
|
|
|
19358
20427
|
// src/umb-management-api/tools/media/post/create-media-multiple.ts
|
|
19359
|
-
import { z as
|
|
20428
|
+
import { z as z43 } from "zod";
|
|
19360
20429
|
import { v4 as uuidv47 } from "uuid";
|
|
19361
|
-
var createMediaMultipleSchema =
|
|
19362
|
-
sourceType:
|
|
19363
|
-
files:
|
|
19364
|
-
name:
|
|
19365
|
-
filePath:
|
|
19366
|
-
fileUrl:
|
|
19367
|
-
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}'`)
|
|
19368
20437
|
})).describe("Array of files to upload (maximum 20 files per batch)"),
|
|
19369
|
-
parentId:
|
|
20438
|
+
parentId: z43.string().uuid().optional().describe("Parent folder ID (defaults to root)")
|
|
19370
20439
|
});
|
|
19371
20440
|
var CreateMediaMultipleTool = CreateUmbracoTool(
|
|
19372
20441
|
"create-media-multiple",
|
|
@@ -19483,7 +20552,7 @@ var GetMediaByIdTool = CreateUmbracoTool(
|
|
|
19483
20552
|
var get_media_by_id_default = GetMediaByIdTool;
|
|
19484
20553
|
|
|
19485
20554
|
// src/umb-management-api/tools/media/put/update-media.ts
|
|
19486
|
-
import { z as
|
|
20555
|
+
import { z as z44 } from "zod";
|
|
19487
20556
|
var UpdateMediaTool = CreateUmbracoTool(
|
|
19488
20557
|
"update-media",
|
|
19489
20558
|
`Updates a media item by Id
|
|
@@ -19492,7 +20561,7 @@ var UpdateMediaTool = CreateUmbracoTool(
|
|
|
19492
20561
|
This cannot be used for moving media to a new folder. Use the move endpoint to do that`,
|
|
19493
20562
|
{
|
|
19494
20563
|
id: putMediaByIdParams.shape.id,
|
|
19495
|
-
data:
|
|
20564
|
+
data: z44.object(putMediaByIdBody.shape)
|
|
19496
20565
|
},
|
|
19497
20566
|
async (model) => {
|
|
19498
20567
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -19570,6 +20639,30 @@ var ValidateMediaTool = CreateUmbracoTool(
|
|
|
19570
20639
|
);
|
|
19571
20640
|
var validate_media_default = ValidateMediaTool;
|
|
19572
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
|
+
|
|
19573
20666
|
// src/umb-management-api/tools/media/put/sort-media.ts
|
|
19574
20667
|
var SortMediaTool = CreateUmbracoTool(
|
|
19575
20668
|
"sort-media",
|
|
@@ -19612,13 +20705,13 @@ var GetMediaByIdArrayTool = CreateUmbracoTool(
|
|
|
19612
20705
|
var get_media_by_id_array_default = GetMediaByIdArrayTool;
|
|
19613
20706
|
|
|
19614
20707
|
// src/umb-management-api/tools/media/put/move-media.ts
|
|
19615
|
-
import { z as
|
|
20708
|
+
import { z as z46 } from "zod";
|
|
19616
20709
|
var MoveMediaTool = CreateUmbracoTool(
|
|
19617
20710
|
"move-media",
|
|
19618
20711
|
"Move a media item to a new location",
|
|
19619
20712
|
{
|
|
19620
|
-
id:
|
|
19621
|
-
data:
|
|
20713
|
+
id: z46.string().uuid(),
|
|
20714
|
+
data: z46.object(putMediaByIdMoveBody.shape)
|
|
19622
20715
|
},
|
|
19623
20716
|
async (model) => {
|
|
19624
20717
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -19675,6 +20768,26 @@ var GetMediaChildrenTool = CreateUmbracoTool(
|
|
|
19675
20768
|
);
|
|
19676
20769
|
var get_children_default6 = GetMediaChildrenTool;
|
|
19677
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
|
+
|
|
19678
20791
|
// src/umb-management-api/tools/media/items/get/get-root.ts
|
|
19679
20792
|
var GetMediaRootTool = CreateUmbracoTool(
|
|
19680
20793
|
"get-media-root",
|
|
@@ -19696,13 +20809,13 @@ var GetMediaRootTool = CreateUmbracoTool(
|
|
|
19696
20809
|
var get_root_default6 = GetMediaRootTool;
|
|
19697
20810
|
|
|
19698
20811
|
// src/umb-management-api/tools/media/get/get-media-audit-log.ts
|
|
19699
|
-
import { z as
|
|
20812
|
+
import { z as z47 } from "zod";
|
|
19700
20813
|
var GetMediaAuditLogTool = CreateUmbracoTool(
|
|
19701
20814
|
"get-media-audit-log",
|
|
19702
20815
|
"Fetches the audit log for a media item by Id.",
|
|
19703
20816
|
{
|
|
19704
20817
|
id: getMediaByIdAuditLogParams.shape.id,
|
|
19705
|
-
data:
|
|
20818
|
+
data: z47.object(getMediaByIdAuditLogQueryParams.shape)
|
|
19706
20819
|
},
|
|
19707
20820
|
async (model) => {
|
|
19708
20821
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -19759,6 +20872,26 @@ var GetRecycleBinMediaChildrenTool = CreateUmbracoTool(
|
|
|
19759
20872
|
);
|
|
19760
20873
|
var get_recycle_bin_children_default2 = GetRecycleBinMediaChildrenTool;
|
|
19761
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
|
+
|
|
19762
20895
|
// src/umb-management-api/tools/media/delete/empty-recycle-bin.ts
|
|
19763
20896
|
var EmptyRecycleBinTool2 = CreateUmbracoTool(
|
|
19764
20897
|
"empty-media-recycle-bin",
|
|
@@ -19841,6 +20974,26 @@ var DeleteFromRecycleBinTool2 = CreateUmbracoTool(
|
|
|
19841
20974
|
);
|
|
19842
20975
|
var delete_from_recycle_bin_default2 = DeleteFromRecycleBinTool2;
|
|
19843
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
|
+
|
|
19844
20997
|
// src/umb-management-api/tools/media/get/get-media-are-referenced.ts
|
|
19845
20998
|
var GetMediaAreReferencedTool = CreateUmbracoTool(
|
|
19846
20999
|
"get-media-are-referenced",
|
|
@@ -19863,12 +21016,12 @@ var GetMediaAreReferencedTool = CreateUmbracoTool(
|
|
|
19863
21016
|
var get_media_are_referenced_default = GetMediaAreReferencedTool;
|
|
19864
21017
|
|
|
19865
21018
|
// src/umb-management-api/tools/media/get/get-media-by-id-referenced-by.ts
|
|
19866
|
-
import { z as
|
|
21019
|
+
import { z as z48 } from "zod";
|
|
19867
21020
|
var GetMediaByIdReferencedByTool = CreateUmbracoTool(
|
|
19868
21021
|
"get-media-by-id-referenced-by",
|
|
19869
21022
|
`Get items that reference a specific media item
|
|
19870
21023
|
Use this to find all content, documents, or other items that are currently referencing a specific media item.`,
|
|
19871
|
-
|
|
21024
|
+
z48.object({
|
|
19872
21025
|
...getMediaByIdReferencedByParams.shape,
|
|
19873
21026
|
...getMediaByIdReferencedByQueryParams.shape
|
|
19874
21027
|
}).shape,
|
|
@@ -19888,7 +21041,7 @@ var GetMediaByIdReferencedByTool = CreateUmbracoTool(
|
|
|
19888
21041
|
var get_media_by_id_referenced_by_default = GetMediaByIdReferencedByTool;
|
|
19889
21042
|
|
|
19890
21043
|
// src/umb-management-api/tools/media/get/get-media-by-id-referenced-descendants.ts
|
|
19891
|
-
import { z as
|
|
21044
|
+
import { z as z49 } from "zod";
|
|
19892
21045
|
var GetMediaByIdReferencedDescendantsTool = CreateUmbracoTool(
|
|
19893
21046
|
"get-media-by-id-referenced-descendants",
|
|
19894
21047
|
`Get descendant references for a media item
|
|
@@ -19898,7 +21051,7 @@ var GetMediaByIdReferencedDescendantsTool = CreateUmbracoTool(
|
|
|
19898
21051
|
\u2022 Impact analysis: Before deleting a media folder, see what content would be affected
|
|
19899
21052
|
\u2022 Dependency tracking: Find all content using media from a specific folder hierarchy
|
|
19900
21053
|
\u2022 Content auditing: Identify which descendant media items are actually being used`,
|
|
19901
|
-
|
|
21054
|
+
z49.object({
|
|
19902
21055
|
...getMediaByIdReferencedDescendantsParams.shape,
|
|
19903
21056
|
...getMediaByIdReferencedDescendantsQueryParams.shape
|
|
19904
21057
|
}).shape,
|
|
@@ -20002,6 +21155,7 @@ var MediaCollection = {
|
|
|
20002
21155
|
if (AuthorizationPolicies.SectionAccessForMediaTree(user)) {
|
|
20003
21156
|
tools.push(get_ancestors_default6());
|
|
20004
21157
|
tools.push(get_children_default6());
|
|
21158
|
+
tools.push(get_siblings_default5());
|
|
20005
21159
|
tools.push(get_root_default6());
|
|
20006
21160
|
}
|
|
20007
21161
|
if (AuthorizationPolicies.SectionAccessMedia(user)) {
|
|
@@ -20012,16 +21166,19 @@ var MediaCollection = {
|
|
|
20012
21166
|
tools.push(get_media_configuration_default());
|
|
20013
21167
|
tools.push(get_media_urls_default());
|
|
20014
21168
|
tools.push(validate_media_default());
|
|
21169
|
+
tools.push(validate_media_default2());
|
|
20015
21170
|
tools.push(sort_media_default());
|
|
20016
21171
|
tools.push(get_media_by_id_array_default());
|
|
20017
21172
|
tools.push(move_media_default());
|
|
20018
21173
|
tools.push(get_media_audit_log_default());
|
|
20019
21174
|
tools.push(get_recycle_bin_root_default2());
|
|
20020
21175
|
tools.push(get_recycle_bin_children_default2());
|
|
21176
|
+
tools.push(get_recycle_bin_siblings_default2());
|
|
20021
21177
|
tools.push(empty_recycle_bin_default2());
|
|
20022
21178
|
tools.push(restore_from_recycle_bin_default2());
|
|
20023
21179
|
tools.push(move_to_recycle_bin_default2());
|
|
20024
21180
|
tools.push(delete_from_recycle_bin_default2());
|
|
21181
|
+
tools.push(delete_recycle_bin_item_default2());
|
|
20025
21182
|
tools.push(get_media_are_referenced_default());
|
|
20026
21183
|
tools.push(get_media_by_id_referenced_by_default());
|
|
20027
21184
|
tools.push(get_media_by_id_referenced_descendants_default());
|
|
@@ -20074,12 +21231,12 @@ var GetMediaTypeByIdTool = CreateUmbracoTool(
|
|
|
20074
21231
|
var get_media_type_by_id_default = GetMediaTypeByIdTool;
|
|
20075
21232
|
|
|
20076
21233
|
// src/umb-management-api/tools/media-type/get/get-media-type-by-ids.ts
|
|
20077
|
-
import { z as
|
|
21234
|
+
import { z as z50 } from "zod";
|
|
20078
21235
|
var GetMediaTypeByIdsTool = CreateUmbracoTool(
|
|
20079
21236
|
"get-media-type-by-ids",
|
|
20080
21237
|
"Gets media types by ids",
|
|
20081
21238
|
{
|
|
20082
|
-
ids:
|
|
21239
|
+
ids: z50.array(z50.string())
|
|
20083
21240
|
},
|
|
20084
21241
|
async ({ ids }) => {
|
|
20085
21242
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -20098,6 +21255,26 @@ var GetMediaTypeByIdsTool = CreateUmbracoTool(
|
|
|
20098
21255
|
);
|
|
20099
21256
|
var get_media_type_by_ids_default = GetMediaTypeByIdsTool;
|
|
20100
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
|
+
|
|
20101
21278
|
// src/umb-management-api/tools/media-type/get/get-allowed.ts
|
|
20102
21279
|
var GetAllowedMediaTypeTool = CreateUmbracoTool(
|
|
20103
21280
|
"get-allowed-media-type",
|
|
@@ -20224,6 +21401,26 @@ var GetMediaTypeChildrenTool = CreateUmbracoTool(
|
|
|
20224
21401
|
);
|
|
20225
21402
|
var get_children_default7 = GetMediaTypeChildrenTool;
|
|
20226
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
|
+
|
|
20227
21424
|
// src/umb-management-api/tools/media-type/items/get/get-ancestors.ts
|
|
20228
21425
|
var GetMediaTypeAncestorsTool = CreateUmbracoTool(
|
|
20229
21426
|
"get-media-type-ancestors",
|
|
@@ -20325,13 +21522,13 @@ var DeleteMediaTypeFolderTool = CreateUmbracoTool(
|
|
|
20325
21522
|
var delete_folder_default4 = DeleteMediaTypeFolderTool;
|
|
20326
21523
|
|
|
20327
21524
|
// src/umb-management-api/tools/media-type/folders/put/update-folder.ts
|
|
20328
|
-
import { z as
|
|
21525
|
+
import { z as z51 } from "zod";
|
|
20329
21526
|
var UpdateMediaTypeFolderTool = CreateUmbracoTool(
|
|
20330
21527
|
"update-media-type-folder",
|
|
20331
21528
|
"Updates a media type folder by Id",
|
|
20332
21529
|
{
|
|
20333
21530
|
id: putMediaTypeFolderByIdParams.shape.id,
|
|
20334
|
-
data:
|
|
21531
|
+
data: z51.object(putMediaTypeFolderByIdBody.shape)
|
|
20335
21532
|
},
|
|
20336
21533
|
async (model) => {
|
|
20337
21534
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -20349,25 +21546,25 @@ var UpdateMediaTypeFolderTool = CreateUmbracoTool(
|
|
|
20349
21546
|
var update_folder_default4 = UpdateMediaTypeFolderTool;
|
|
20350
21547
|
|
|
20351
21548
|
// src/umb-management-api/tools/media-type/post/create-media-type.ts
|
|
20352
|
-
import { z as
|
|
21549
|
+
import { z as z52 } from "zod";
|
|
20353
21550
|
var propertySchema2 = postMediaTypeBody.shape.properties;
|
|
20354
21551
|
var containerSchema = postMediaTypeBody.shape.containers;
|
|
20355
21552
|
var allowedMediaTypeSchema = postMediaTypeBody.shape.allowedMediaTypes;
|
|
20356
21553
|
var compositionSchema = postMediaTypeBody.shape.compositions;
|
|
20357
21554
|
var collectionSchema = postMediaTypeBody.shape.collection;
|
|
20358
|
-
var createMediaTypeSchema =
|
|
20359
|
-
alias:
|
|
20360
|
-
name:
|
|
20361
|
-
description:
|
|
20362
|
-
icon:
|
|
20363
|
-
allowedAsRoot:
|
|
20364
|
-
variesByCulture:
|
|
20365
|
-
variesBySegment:
|
|
20366
|
-
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(),
|
|
20367
21564
|
properties: propertySchema2,
|
|
20368
21565
|
containers: containerSchema,
|
|
20369
|
-
id:
|
|
20370
|
-
parentId:
|
|
21566
|
+
id: z52.string().uuid().nullish(),
|
|
21567
|
+
parentId: z52.string().uuid().optional(),
|
|
20371
21568
|
// Flattened parent ID
|
|
20372
21569
|
allowedMediaTypes: allowedMediaTypeSchema,
|
|
20373
21570
|
compositions: compositionSchema,
|
|
@@ -20410,13 +21607,13 @@ var CreateMediaTypeTool = CreateUmbracoTool(
|
|
|
20410
21607
|
var create_media_type_default = CreateMediaTypeTool;
|
|
20411
21608
|
|
|
20412
21609
|
// src/umb-management-api/tools/media-type/post/copy-media-type.ts
|
|
20413
|
-
import { z as
|
|
21610
|
+
import { z as z53 } from "zod";
|
|
20414
21611
|
var CopyMediaTypeTool = CreateUmbracoTool(
|
|
20415
21612
|
"copy-media-type",
|
|
20416
21613
|
"Copy a media type to a new location",
|
|
20417
21614
|
{
|
|
20418
|
-
id:
|
|
20419
|
-
data:
|
|
21615
|
+
id: z53.string().uuid(),
|
|
21616
|
+
data: z53.object(postMediaTypeByIdCopyBody.shape)
|
|
20420
21617
|
},
|
|
20421
21618
|
async (model) => {
|
|
20422
21619
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -20454,13 +21651,13 @@ var GetMediaTypeAvailableCompositionsTool = CreateUmbracoTool(
|
|
|
20454
21651
|
var get_media_type_available_compositions_default = GetMediaTypeAvailableCompositionsTool;
|
|
20455
21652
|
|
|
20456
21653
|
// src/umb-management-api/tools/media-type/put/update-media-type.ts
|
|
20457
|
-
import { z as
|
|
21654
|
+
import { z as z54 } from "zod";
|
|
20458
21655
|
var UpdateMediaTypeTool = CreateUmbracoTool(
|
|
20459
21656
|
"update-media-type",
|
|
20460
21657
|
"Updates a media type by Id",
|
|
20461
21658
|
{
|
|
20462
21659
|
id: putMediaTypeByIdParams.shape.id,
|
|
20463
|
-
data:
|
|
21660
|
+
data: z54.object(putMediaTypeByIdBody.shape)
|
|
20464
21661
|
},
|
|
20465
21662
|
async (model) => {
|
|
20466
21663
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -20478,13 +21675,13 @@ var UpdateMediaTypeTool = CreateUmbracoTool(
|
|
|
20478
21675
|
var update_media_type_default = UpdateMediaTypeTool;
|
|
20479
21676
|
|
|
20480
21677
|
// src/umb-management-api/tools/media-type/put/move-media-type.ts
|
|
20481
|
-
import { z as
|
|
21678
|
+
import { z as z55 } from "zod";
|
|
20482
21679
|
var MoveMediaTypeTool = CreateUmbracoTool(
|
|
20483
21680
|
"move-media-type",
|
|
20484
21681
|
"Move a media type to a new location",
|
|
20485
21682
|
{
|
|
20486
|
-
id:
|
|
20487
|
-
data:
|
|
21683
|
+
id: z55.string().uuid(),
|
|
21684
|
+
data: z55.object(putMediaTypeByIdMoveBody.shape)
|
|
20488
21685
|
},
|
|
20489
21686
|
async (model) => {
|
|
20490
21687
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -20544,12 +21741,14 @@ var MediaTypeCollection = {
|
|
|
20544
21741
|
tools.push(delete_media_type_default());
|
|
20545
21742
|
tools.push(get_root_default7());
|
|
20546
21743
|
tools.push(get_children_default7());
|
|
21744
|
+
tools.push(get_siblings_default6());
|
|
20547
21745
|
tools.push(get_ancestors_default7());
|
|
20548
21746
|
tools.push(get_media_type_folders_default());
|
|
20549
21747
|
}
|
|
20550
21748
|
if (AuthorizationPolicies.TreeAccessMediaOrMediaTypes(user)) {
|
|
20551
21749
|
tools.push(get_media_type_by_id_default());
|
|
20552
21750
|
tools.push(get_media_type_by_ids_default());
|
|
21751
|
+
tools.push(get_item_media_type_default());
|
|
20553
21752
|
tools.push(get_media_type_configuration_default());
|
|
20554
21753
|
tools.push(get_allowed_default());
|
|
20555
21754
|
tools.push(get_media_type_allowed_at_root_default());
|
|
@@ -20643,13 +21842,13 @@ var DeleteMemberTool = CreateUmbracoTool(
|
|
|
20643
21842
|
var delete_member_default = DeleteMemberTool;
|
|
20644
21843
|
|
|
20645
21844
|
// src/umb-management-api/tools/member/put/update-member.ts
|
|
20646
|
-
import { z as
|
|
21845
|
+
import { z as z56 } from "zod";
|
|
20647
21846
|
var UpdateMemberTool = CreateUmbracoTool(
|
|
20648
21847
|
"update-member",
|
|
20649
21848
|
"Updates a member by Id",
|
|
20650
21849
|
{
|
|
20651
21850
|
id: putMemberByIdParams.shape.id,
|
|
20652
|
-
data:
|
|
21851
|
+
data: z56.object(putMemberByIdBody.shape)
|
|
20653
21852
|
},
|
|
20654
21853
|
async (model) => {
|
|
20655
21854
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -20667,14 +21866,14 @@ var UpdateMemberTool = CreateUmbracoTool(
|
|
|
20667
21866
|
var update_member_default = UpdateMemberTool;
|
|
20668
21867
|
|
|
20669
21868
|
// src/umb-management-api/tools/member/put/validate-member-update.ts
|
|
20670
|
-
import { z as
|
|
21869
|
+
import { z as z57 } from "zod";
|
|
20671
21870
|
var ValidateMemberUpdateTool = CreateUmbracoTool(
|
|
20672
21871
|
"validate-member-update",
|
|
20673
21872
|
`Validates member data before updating using the Umbraco API.
|
|
20674
21873
|
Use this endpoint to validate member data structure, properties, and business rules before attempting to update an existing member.`,
|
|
20675
21874
|
{
|
|
20676
21875
|
id: putMemberByIdValidateParams.shape.id,
|
|
20677
|
-
data:
|
|
21876
|
+
data: z57.object(putMemberByIdValidateBody.shape)
|
|
20678
21877
|
},
|
|
20679
21878
|
async (model) => {
|
|
20680
21879
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -20733,12 +21932,12 @@ var GetMemberAreReferencedTool = CreateUmbracoTool(
|
|
|
20733
21932
|
var get_member_are_referenced_default = GetMemberAreReferencedTool;
|
|
20734
21933
|
|
|
20735
21934
|
// src/umb-management-api/tools/member/get/get-member-by-id-referenced-by.ts
|
|
20736
|
-
import { z as
|
|
21935
|
+
import { z as z58 } from "zod";
|
|
20737
21936
|
var GetMemberByIdReferencedByTool = CreateUmbracoTool(
|
|
20738
21937
|
"get-member-by-id-referenced-by",
|
|
20739
21938
|
`Get items that reference a specific member
|
|
20740
21939
|
Use this to find all content, documents, or other items that are currently referencing a specific member account.`,
|
|
20741
|
-
|
|
21940
|
+
z58.object({
|
|
20742
21941
|
...getMemberByIdReferencedByParams.shape,
|
|
20743
21942
|
...getMemberByIdReferencedByQueryParams.shape
|
|
20744
21943
|
}).shape,
|
|
@@ -20758,12 +21957,12 @@ var GetMemberByIdReferencedByTool = CreateUmbracoTool(
|
|
|
20758
21957
|
var get_member_by_id_referenced_by_default = GetMemberByIdReferencedByTool;
|
|
20759
21958
|
|
|
20760
21959
|
// src/umb-management-api/tools/member/get/get-member-by-id-referenced-descendants.ts
|
|
20761
|
-
import { z as
|
|
21960
|
+
import { z as z59 } from "zod";
|
|
20762
21961
|
var GetMemberByIdReferencedDescendantsTool = CreateUmbracoTool(
|
|
20763
21962
|
"get-member-by-id-referenced-descendants",
|
|
20764
21963
|
`Get descendant references for a member
|
|
20765
21964
|
Use this to find all descendant references that are being referenced for a specific member account.`,
|
|
20766
|
-
|
|
21965
|
+
z59.object({
|
|
20767
21966
|
...getMemberByIdReferencedDescendantsParams.shape,
|
|
20768
21967
|
...getMemberByIdReferencedDescendantsQueryParams.shape
|
|
20769
21968
|
}).shape,
|
|
@@ -20782,6 +21981,26 @@ var GetMemberByIdReferencedDescendantsTool = CreateUmbracoTool(
|
|
|
20782
21981
|
);
|
|
20783
21982
|
var get_member_by_id_referenced_descendants_default = GetMemberByIdReferencedDescendantsTool;
|
|
20784
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
|
+
|
|
20785
22004
|
// src/umb-management-api/tools/member/index.ts
|
|
20786
22005
|
var MemberCollection = {
|
|
20787
22006
|
metadata: {
|
|
@@ -20804,6 +22023,7 @@ var MemberCollection = {
|
|
|
20804
22023
|
tools.push(get_member_by_id_referenced_descendants_default());
|
|
20805
22024
|
}
|
|
20806
22025
|
tools.push(find_member_default());
|
|
22026
|
+
tools.push(get_item_member_search_default());
|
|
20807
22027
|
return tools;
|
|
20808
22028
|
}
|
|
20809
22029
|
};
|
|
@@ -20869,6 +22089,26 @@ var GetMemberGroupRootTool = CreateUmbracoTool(
|
|
|
20869
22089
|
);
|
|
20870
22090
|
var get_root_default8 = GetMemberGroupRootTool;
|
|
20871
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
|
+
|
|
20872
22112
|
// src/umb-management-api/tools/member-group/post/create-member-group.ts
|
|
20873
22113
|
var CreateMemberGroupTool = CreateUmbracoTool(
|
|
20874
22114
|
"create-member-group",
|
|
@@ -20890,13 +22130,13 @@ var CreateMemberGroupTool = CreateUmbracoTool(
|
|
|
20890
22130
|
var create_member_group_default = CreateMemberGroupTool;
|
|
20891
22131
|
|
|
20892
22132
|
// src/umb-management-api/tools/member-group/put/update-member-group.ts
|
|
20893
|
-
import { z as
|
|
22133
|
+
import { z as z60 } from "zod";
|
|
20894
22134
|
var UpdateMemberGroupTool = CreateUmbracoTool(
|
|
20895
22135
|
"update-member-group",
|
|
20896
22136
|
"Updates a member group by Id",
|
|
20897
22137
|
{
|
|
20898
22138
|
id: putMemberGroupByIdParams.shape.id,
|
|
20899
|
-
data:
|
|
22139
|
+
data: z60.object(putMemberGroupByIdBody.shape)
|
|
20900
22140
|
},
|
|
20901
22141
|
async (model) => {
|
|
20902
22142
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -20945,6 +22185,7 @@ var MemberGroupCollection = {
|
|
|
20945
22185
|
const tools = [];
|
|
20946
22186
|
tools.push(get_member_group_default());
|
|
20947
22187
|
tools.push(get_member_group_by_id_array_default());
|
|
22188
|
+
tools.push(get_all_member_groups_default());
|
|
20948
22189
|
if (AuthorizationPolicies.SectionAccessMembers(user)) {
|
|
20949
22190
|
tools.push(create_member_group_default());
|
|
20950
22191
|
tools.push(update_member_group_default());
|
|
@@ -21038,13 +22279,13 @@ var DeleteMemberTypeTool = CreateUmbracoTool(
|
|
|
21038
22279
|
var delete_member_type_default = DeleteMemberTypeTool;
|
|
21039
22280
|
|
|
21040
22281
|
// src/umb-management-api/tools/member-type/put/update-member-type.ts
|
|
21041
|
-
import { z as
|
|
22282
|
+
import { z as z61 } from "zod";
|
|
21042
22283
|
var UpdateMemberTypeTool = CreateUmbracoTool(
|
|
21043
22284
|
"update-member-type",
|
|
21044
22285
|
"Updates a member type by id",
|
|
21045
22286
|
{
|
|
21046
22287
|
id: putMemberTypeByIdParams.shape.id,
|
|
21047
|
-
data:
|
|
22288
|
+
data: z61.object(putMemberTypeByIdBody.shape)
|
|
21048
22289
|
},
|
|
21049
22290
|
async (model) => {
|
|
21050
22291
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -21062,12 +22303,12 @@ var UpdateMemberTypeTool = CreateUmbracoTool(
|
|
|
21062
22303
|
var update_member_type_default = UpdateMemberTypeTool;
|
|
21063
22304
|
|
|
21064
22305
|
// src/umb-management-api/tools/member-type/post/copy-member-type.ts
|
|
21065
|
-
import { z as
|
|
22306
|
+
import { z as z62 } from "zod";
|
|
21066
22307
|
var CopyMemberTypeTool = CreateUmbracoTool(
|
|
21067
22308
|
"copy-member-type",
|
|
21068
22309
|
"Copy a member type to a new location",
|
|
21069
22310
|
{
|
|
21070
|
-
id:
|
|
22311
|
+
id: z62.string().uuid()
|
|
21071
22312
|
},
|
|
21072
22313
|
async (model) => {
|
|
21073
22314
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -21164,6 +22405,46 @@ var GetMemberTypeRootTool = CreateUmbracoTool(
|
|
|
21164
22405
|
);
|
|
21165
22406
|
var get_root_default9 = GetMemberTypeRootTool;
|
|
21166
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
|
+
|
|
21167
22448
|
// src/umb-management-api/tools/member-type/index.ts
|
|
21168
22449
|
var MemberTypeCollection = {
|
|
21169
22450
|
metadata: {
|
|
@@ -21185,6 +22466,8 @@ var MemberTypeCollection = {
|
|
|
21185
22466
|
tools.push(get_member_type_composition_references_default());
|
|
21186
22467
|
tools.push(get_member_type_configuration_default());
|
|
21187
22468
|
tools.push(get_root_default9());
|
|
22469
|
+
tools.push(get_siblings_default7());
|
|
22470
|
+
tools.push(get_item_member_type_search_default());
|
|
21188
22471
|
}
|
|
21189
22472
|
return tools;
|
|
21190
22473
|
}
|
|
@@ -21396,11 +22679,11 @@ var LogViewerCollection = {
|
|
|
21396
22679
|
};
|
|
21397
22680
|
|
|
21398
22681
|
// src/umb-management-api/tools/partial-view/post/create-partial-view.ts
|
|
21399
|
-
import
|
|
21400
|
-
var createPartialViewSchema =
|
|
21401
|
-
name:
|
|
21402
|
-
path:
|
|
21403
|
-
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")
|
|
21404
22687
|
});
|
|
21405
22688
|
var CreatePartialViewTool = CreateUmbracoTool(
|
|
21406
22689
|
"create-partial-view",
|
|
@@ -21490,11 +22773,11 @@ var GetPartialViewFolderByPathTool = CreateUmbracoTool(
|
|
|
21490
22773
|
var get_partial_view_folder_by_path_default = GetPartialViewFolderByPathTool;
|
|
21491
22774
|
|
|
21492
22775
|
// src/umb-management-api/tools/partial-view/put/update-partial-view.ts
|
|
21493
|
-
import { z as
|
|
22776
|
+
import { z as z64 } from "zod";
|
|
21494
22777
|
var UpdatePartialViewTool = CreateUmbracoTool(
|
|
21495
22778
|
"update-partial-view",
|
|
21496
22779
|
"Updates a partial view",
|
|
21497
|
-
|
|
22780
|
+
z64.object({
|
|
21498
22781
|
...putPartialViewByPathParams.shape,
|
|
21499
22782
|
...putPartialViewByPathBody.shape
|
|
21500
22783
|
}).shape,
|
|
@@ -21515,11 +22798,11 @@ var UpdatePartialViewTool = CreateUmbracoTool(
|
|
|
21515
22798
|
var update_partial_view_default = UpdatePartialViewTool;
|
|
21516
22799
|
|
|
21517
22800
|
// src/umb-management-api/tools/partial-view/put/rename-partial-view.ts
|
|
21518
|
-
import { z as
|
|
22801
|
+
import { z as z65 } from "zod";
|
|
21519
22802
|
var RenamePartialViewTool = CreateUmbracoTool(
|
|
21520
22803
|
"rename-partial-view",
|
|
21521
22804
|
`Renames a partial view`,
|
|
21522
|
-
|
|
22805
|
+
z65.object({
|
|
21523
22806
|
...putPartialViewByPathRenameParams.shape,
|
|
21524
22807
|
...putPartialViewByPathRenameBody.shape
|
|
21525
22808
|
}).shape,
|
|
@@ -21700,6 +22983,26 @@ var GetPartialViewSearchTool = CreateUmbracoTool(
|
|
|
21700
22983
|
);
|
|
21701
22984
|
var get_search_default2 = GetPartialViewSearchTool;
|
|
21702
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
|
+
|
|
21703
23006
|
// src/umb-management-api/tools/partial-view/index.ts
|
|
21704
23007
|
var PartialViewCollection = {
|
|
21705
23008
|
metadata: {
|
|
@@ -21725,6 +23028,7 @@ var PartialViewCollection = {
|
|
|
21725
23028
|
tools.push(get_children_default8());
|
|
21726
23029
|
tools.push(get_root_default10());
|
|
21727
23030
|
tools.push(get_search_default2());
|
|
23031
|
+
tools.push(get_siblings_default8());
|
|
21728
23032
|
}
|
|
21729
23033
|
return tools;
|
|
21730
23034
|
}
|
|
@@ -21848,13 +23152,13 @@ var GetTemplatesByIdArrayTool = CreateUmbracoTool(
|
|
|
21848
23152
|
var get_template_by_id_array_default = GetTemplatesByIdArrayTool;
|
|
21849
23153
|
|
|
21850
23154
|
// src/umb-management-api/tools/template/put/update-template.ts
|
|
21851
|
-
import { z as
|
|
23155
|
+
import { z as z66 } from "zod";
|
|
21852
23156
|
var UpdateTemplateTool = CreateUmbracoTool(
|
|
21853
23157
|
"update-template",
|
|
21854
23158
|
"Updates a template by Id",
|
|
21855
23159
|
{
|
|
21856
23160
|
id: putTemplateByIdParams.shape.id,
|
|
21857
|
-
data:
|
|
23161
|
+
data: z66.object(putTemplateByIdBody.shape)
|
|
21858
23162
|
},
|
|
21859
23163
|
async (model) => {
|
|
21860
23164
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -22020,6 +23324,26 @@ var GetTemplateSearchTool = CreateUmbracoTool(
|
|
|
22020
23324
|
);
|
|
22021
23325
|
var get_search_default3 = GetTemplateSearchTool;
|
|
22022
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
|
+
|
|
22023
23347
|
// src/umb-management-api/tools/template/index.ts
|
|
22024
23348
|
var TemplateCollection = {
|
|
22025
23349
|
metadata: {
|
|
@@ -22043,6 +23367,7 @@ var TemplateCollection = {
|
|
|
22043
23367
|
tools.push(get_children_default9());
|
|
22044
23368
|
tools.push(get_root_default11());
|
|
22045
23369
|
tools.push(get_search_default3());
|
|
23370
|
+
tools.push(get_siblings_default9());
|
|
22046
23371
|
}
|
|
22047
23372
|
return tools;
|
|
22048
23373
|
}
|
|
@@ -22129,13 +23454,13 @@ var DeleteWebhookTool = CreateUmbracoTool(
|
|
|
22129
23454
|
var delete_webhook_default = DeleteWebhookTool;
|
|
22130
23455
|
|
|
22131
23456
|
// src/umb-management-api/tools/webhook/put/update-webhook.ts
|
|
22132
|
-
import { z as
|
|
23457
|
+
import { z as z67 } from "zod";
|
|
22133
23458
|
var UpdateWebhookTool = CreateUmbracoTool(
|
|
22134
23459
|
"update-webhook",
|
|
22135
23460
|
"Updates a webhook by id",
|
|
22136
23461
|
{
|
|
22137
23462
|
id: putWebhookByIdParams.shape.id,
|
|
22138
|
-
data:
|
|
23463
|
+
data: z67.object(putWebhookByIdBody.shape)
|
|
22139
23464
|
},
|
|
22140
23465
|
async (model) => {
|
|
22141
23466
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -22735,13 +24060,13 @@ var CreateUserGroupTool = CreateUmbracoTool(
|
|
|
22735
24060
|
var create_user_group_default = CreateUserGroupTool;
|
|
22736
24061
|
|
|
22737
24062
|
// src/umb-management-api/tools/user-group/put/update-user-group.ts
|
|
22738
|
-
import { z as
|
|
24063
|
+
import { z as z68 } from "zod";
|
|
22739
24064
|
var UpdateUserGroupTool = CreateUmbracoTool(
|
|
22740
24065
|
"update-user-group",
|
|
22741
24066
|
"Updates a user group by Id",
|
|
22742
24067
|
{
|
|
22743
24068
|
id: putUserGroupByIdParams.shape.id,
|
|
22744
|
-
data:
|
|
24069
|
+
data: z68.object(putUserGroupByIdBody.shape)
|
|
22745
24070
|
},
|
|
22746
24071
|
async (model) => {
|
|
22747
24072
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -22823,14 +24148,14 @@ var UserGroupCollection = {
|
|
|
22823
24148
|
};
|
|
22824
24149
|
|
|
22825
24150
|
// src/umb-management-api/tools/temporary-file/post/create-temporary-file.ts
|
|
22826
|
-
import { z as
|
|
24151
|
+
import { z as z69 } from "zod";
|
|
22827
24152
|
import * as fs3 from "fs";
|
|
22828
24153
|
import * as os2 from "os";
|
|
22829
24154
|
import * as path3 from "path";
|
|
22830
|
-
var createTemporaryFileSchema =
|
|
22831
|
-
id:
|
|
22832
|
-
fileName:
|
|
22833
|
-
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")
|
|
22834
24159
|
});
|
|
22835
24160
|
var CreateTemporaryFileTool = CreateUmbracoTool(
|
|
22836
24161
|
"create-temporary-file",
|
|
@@ -23114,12 +24439,32 @@ var GetScriptTreeRootTool = CreateUmbracoTool(
|
|
|
23114
24439
|
);
|
|
23115
24440
|
var get_script_tree_root_default = GetScriptTreeRootTool;
|
|
23116
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
|
+
|
|
23117
24462
|
// src/umb-management-api/tools/script/post/create-script.ts
|
|
23118
|
-
import
|
|
23119
|
-
var createScriptSchema =
|
|
23120
|
-
name:
|
|
23121
|
-
path:
|
|
23122
|
-
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")
|
|
23123
24468
|
});
|
|
23124
24469
|
var CreateScriptTool = CreateUmbracoTool(
|
|
23125
24470
|
"create-script",
|
|
@@ -23168,13 +24513,13 @@ var CreateScriptFolderTool = CreateUmbracoTool(
|
|
|
23168
24513
|
var create_script_folder_default = CreateScriptFolderTool;
|
|
23169
24514
|
|
|
23170
24515
|
// src/umb-management-api/tools/script/put/update-script.ts
|
|
23171
|
-
import { z as
|
|
24516
|
+
import { z as z71 } from "zod";
|
|
23172
24517
|
var UpdateScriptTool = CreateUmbracoTool(
|
|
23173
24518
|
"update-script",
|
|
23174
24519
|
"Updates a script by path",
|
|
23175
24520
|
{
|
|
23176
24521
|
path: putScriptByPathParams.shape.path,
|
|
23177
|
-
data:
|
|
24522
|
+
data: z71.object(putScriptByPathBody.shape)
|
|
23178
24523
|
},
|
|
23179
24524
|
async (model) => {
|
|
23180
24525
|
const client = UmbracoManagementClient2.getClient();
|
|
@@ -23192,11 +24537,11 @@ var UpdateScriptTool = CreateUmbracoTool(
|
|
|
23192
24537
|
var update_script_default = UpdateScriptTool;
|
|
23193
24538
|
|
|
23194
24539
|
// src/umb-management-api/tools/script/put/rename-script.ts
|
|
23195
|
-
import { z as
|
|
23196
|
-
var renameScriptSchema =
|
|
23197
|
-
name:
|
|
23198
|
-
folderPath:
|
|
23199
|
-
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")
|
|
23200
24545
|
});
|
|
23201
24546
|
var RenameScriptTool = CreateUmbracoTool(
|
|
23202
24547
|
"rename-script",
|
|
@@ -23282,6 +24627,7 @@ var ScriptCollection = {
|
|
|
23282
24627
|
tools.push(get_script_tree_ancestors_default());
|
|
23283
24628
|
tools.push(get_script_tree_children_default());
|
|
23284
24629
|
tools.push(get_script_tree_root_default());
|
|
24630
|
+
tools.push(get_script_tree_siblings_default());
|
|
23285
24631
|
tools.push(create_script_default());
|
|
23286
24632
|
tools.push(create_script_folder_default());
|
|
23287
24633
|
tools.push(update_script_default());
|
|
@@ -23294,11 +24640,11 @@ var ScriptCollection = {
|
|
|
23294
24640
|
};
|
|
23295
24641
|
|
|
23296
24642
|
// src/umb-management-api/tools/stylesheet/post/create-stylesheet.ts
|
|
23297
|
-
import { z as
|
|
23298
|
-
var createStylesheetSchema =
|
|
23299
|
-
name:
|
|
23300
|
-
path:
|
|
23301
|
-
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")
|
|
23302
24648
|
});
|
|
23303
24649
|
var CreateStylesheetTool = CreateUmbracoTool(
|
|
23304
24650
|
"create-stylesheet",
|
|
@@ -23387,11 +24733,11 @@ var GetStylesheetFolderByPathTool = CreateUmbracoTool(
|
|
|
23387
24733
|
var get_stylesheet_folder_by_path_default = GetStylesheetFolderByPathTool;
|
|
23388
24734
|
|
|
23389
24735
|
// src/umb-management-api/tools/stylesheet/put/update-stylesheet.ts
|
|
23390
|
-
import { z as
|
|
24736
|
+
import { z as z74 } from "zod";
|
|
23391
24737
|
var UpdateStylesheetTool = CreateUmbracoTool(
|
|
23392
24738
|
"update-stylesheet",
|
|
23393
24739
|
"Updates a stylesheet by path",
|
|
23394
|
-
|
|
24740
|
+
z74.object({
|
|
23395
24741
|
...putStylesheetByPathParams.shape,
|
|
23396
24742
|
...putStylesheetByPathBody.shape
|
|
23397
24743
|
}).shape,
|
|
@@ -23412,11 +24758,11 @@ var UpdateStylesheetTool = CreateUmbracoTool(
|
|
|
23412
24758
|
var update_stylesheet_default = UpdateStylesheetTool;
|
|
23413
24759
|
|
|
23414
24760
|
// src/umb-management-api/tools/stylesheet/put/rename-stylesheet.ts
|
|
23415
|
-
import { z as
|
|
24761
|
+
import { z as z75 } from "zod";
|
|
23416
24762
|
var RenameStylesheetTool = CreateUmbracoTool(
|
|
23417
24763
|
"rename-stylesheet",
|
|
23418
24764
|
`Renames a stylesheet`,
|
|
23419
|
-
|
|
24765
|
+
z75.object({
|
|
23420
24766
|
...putStylesheetByPathRenameParams.shape,
|
|
23421
24767
|
...putStylesheetByPathRenameBody.shape
|
|
23422
24768
|
}).shape,
|
|
@@ -23557,6 +24903,26 @@ var GetStylesheetSearchTool = CreateUmbracoTool(
|
|
|
23557
24903
|
);
|
|
23558
24904
|
var get_search_default4 = GetStylesheetSearchTool;
|
|
23559
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
|
+
|
|
23560
24926
|
// src/umb-management-api/tools/stylesheet/index.ts
|
|
23561
24927
|
var StylesheetCollection = {
|
|
23562
24928
|
metadata: {
|
|
@@ -23580,6 +24946,7 @@ var StylesheetCollection = {
|
|
|
23580
24946
|
tools.push(get_children_default10());
|
|
23581
24947
|
tools.push(get_root_default12());
|
|
23582
24948
|
tools.push(get_search_default4());
|
|
24949
|
+
tools.push(get_siblings_default10());
|
|
23583
24950
|
}
|
|
23584
24951
|
return tools;
|
|
23585
24952
|
}
|
|
@@ -24151,11 +25518,11 @@ var RelationTypeCollection = {
|
|
|
24151
25518
|
};
|
|
24152
25519
|
|
|
24153
25520
|
// src/umb-management-api/tools/relation/get/get-relation-by-relation-type-id.ts
|
|
24154
|
-
import { z as
|
|
25521
|
+
import { z as z76 } from "zod";
|
|
24155
25522
|
var GetRelationByRelationTypeIdTool = CreateUmbracoTool(
|
|
24156
25523
|
"get-relation-by-relation-type-id",
|
|
24157
25524
|
"Gets relations by relation type ID",
|
|
24158
|
-
|
|
25525
|
+
z76.object({
|
|
24159
25526
|
...getRelationByRelationTypeIdParams.shape,
|
|
24160
25527
|
...getRelationByRelationTypeIdQueryParams.shape
|
|
24161
25528
|
}).shape,
|
|
@@ -24609,6 +25976,26 @@ var GetUserDataByIdTool = CreateUmbracoTool(
|
|
|
24609
25976
|
);
|
|
24610
25977
|
var get_user_data_by_id_default = GetUserDataByIdTool;
|
|
24611
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
|
+
|
|
24612
25999
|
// src/umb-management-api/tools/user-data/index.ts
|
|
24613
26000
|
var UserDataCollection = {
|
|
24614
26001
|
metadata: {
|
|
@@ -24623,6 +26010,7 @@ var UserDataCollection = {
|
|
|
24623
26010
|
tools.push(update_user_data_default());
|
|
24624
26011
|
tools.push(get_user_data_default());
|
|
24625
26012
|
tools.push(get_user_data_by_id_default());
|
|
26013
|
+
tools.push(delete_user_data_default());
|
|
24626
26014
|
return tools;
|
|
24627
26015
|
}
|
|
24628
26016
|
};
|
|
@@ -25075,8 +26463,8 @@ var GetDataTypeReferencesResource = CreateUmbracoTemplateResource(
|
|
|
25075
26463
|
async (uri, variables) => {
|
|
25076
26464
|
try {
|
|
25077
26465
|
const client = UmbracoManagementClient2.getClient();
|
|
25078
|
-
const params =
|
|
25079
|
-
const response = await client.
|
|
26466
|
+
const params = getDataTypeByIdReferencedByParams.parse(variables);
|
|
26467
|
+
const response = await client.getDataTypeByIdReferencedBy(params.id);
|
|
25080
26468
|
return {
|
|
25081
26469
|
contents: [
|
|
25082
26470
|
{
|