@syntaxcircus/cmsify-client 0.3.2 → 0.4.2
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/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +216 -165
- package/dist/index.d.ts +216 -165
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/generated/schema.ts +195 -152
package/dist/index.d.ts
CHANGED
|
@@ -891,10 +891,7 @@ interface paths {
|
|
|
891
891
|
};
|
|
892
892
|
get: {
|
|
893
893
|
parameters: {
|
|
894
|
-
query?:
|
|
895
|
-
resolve?: boolean;
|
|
896
|
-
asOf?: string;
|
|
897
|
-
};
|
|
894
|
+
query?: never;
|
|
898
895
|
header?: never;
|
|
899
896
|
path: {
|
|
900
897
|
workspaceId: string;
|
|
@@ -1002,9 +999,9 @@ interface paths {
|
|
|
1002
999
|
[name: string]: unknown;
|
|
1003
1000
|
};
|
|
1004
1001
|
content: {
|
|
1005
|
-
"text/plain": components["schemas"]["
|
|
1006
|
-
"application/json": components["schemas"]["
|
|
1007
|
-
"text/json": components["schemas"]["
|
|
1002
|
+
"text/plain": components["schemas"]["ContentVersionDetailResponse"];
|
|
1003
|
+
"application/json": components["schemas"]["ContentVersionDetailResponse"];
|
|
1004
|
+
"text/json": components["schemas"]["ContentVersionDetailResponse"];
|
|
1008
1005
|
};
|
|
1009
1006
|
};
|
|
1010
1007
|
};
|
|
@@ -1017,7 +1014,7 @@ interface paths {
|
|
|
1017
1014
|
patch?: never;
|
|
1018
1015
|
trace?: never;
|
|
1019
1016
|
};
|
|
1020
|
-
"/api/v1/workspaces/{workspaceId}/content/{id}/
|
|
1017
|
+
"/api/v1/workspaces/{workspaceId}/content/{id}/link-translation": {
|
|
1021
1018
|
parameters: {
|
|
1022
1019
|
query?: never;
|
|
1023
1020
|
header?: never;
|
|
@@ -1036,7 +1033,13 @@ interface paths {
|
|
|
1036
1033
|
};
|
|
1037
1034
|
cookie?: never;
|
|
1038
1035
|
};
|
|
1039
|
-
requestBody?:
|
|
1036
|
+
requestBody?: {
|
|
1037
|
+
content: {
|
|
1038
|
+
"application/json": components["schemas"]["LinkTranslationRequest"];
|
|
1039
|
+
"text/json": components["schemas"]["LinkTranslationRequest"];
|
|
1040
|
+
"application/*+json": components["schemas"]["LinkTranslationRequest"];
|
|
1041
|
+
};
|
|
1042
|
+
};
|
|
1040
1043
|
responses: {
|
|
1041
1044
|
/** @description OK */
|
|
1042
1045
|
200: {
|
|
@@ -1044,9 +1047,9 @@ interface paths {
|
|
|
1044
1047
|
[name: string]: unknown;
|
|
1045
1048
|
};
|
|
1046
1049
|
content: {
|
|
1047
|
-
"text/plain": components["schemas"]["
|
|
1048
|
-
"application/json": components["schemas"]["
|
|
1049
|
-
"text/json": components["schemas"]["
|
|
1050
|
+
"text/plain": components["schemas"]["ContentItemSummaryResponse"][];
|
|
1051
|
+
"application/json": components["schemas"]["ContentItemSummaryResponse"][];
|
|
1052
|
+
"text/json": components["schemas"]["ContentItemSummaryResponse"][];
|
|
1050
1053
|
};
|
|
1051
1054
|
};
|
|
1052
1055
|
};
|
|
@@ -1057,18 +1060,19 @@ interface paths {
|
|
|
1057
1060
|
patch?: never;
|
|
1058
1061
|
trace?: never;
|
|
1059
1062
|
};
|
|
1060
|
-
"/api/v1/workspaces/{workspaceId}/content/{id}/
|
|
1063
|
+
"/api/v1/workspaces/{workspaceId}/content/{id}/translations": {
|
|
1061
1064
|
parameters: {
|
|
1062
1065
|
query?: never;
|
|
1063
1066
|
header?: never;
|
|
1064
1067
|
path?: never;
|
|
1065
1068
|
cookie?: never;
|
|
1066
1069
|
};
|
|
1067
|
-
get
|
|
1068
|
-
put?: never;
|
|
1069
|
-
post: {
|
|
1070
|
+
get: {
|
|
1070
1071
|
parameters: {
|
|
1071
|
-
query?:
|
|
1072
|
+
query?: {
|
|
1073
|
+
Page?: number;
|
|
1074
|
+
PageSize?: number;
|
|
1075
|
+
};
|
|
1072
1076
|
header?: never;
|
|
1073
1077
|
path: {
|
|
1074
1078
|
workspaceId: string;
|
|
@@ -1084,31 +1088,34 @@ interface paths {
|
|
|
1084
1088
|
[name: string]: unknown;
|
|
1085
1089
|
};
|
|
1086
1090
|
content: {
|
|
1087
|
-
"text/plain": components["schemas"]["
|
|
1088
|
-
"application/json": components["schemas"]["
|
|
1089
|
-
"text/json": components["schemas"]["
|
|
1091
|
+
"text/plain": components["schemas"]["ContentItemSummaryResponsePagedResponse"];
|
|
1092
|
+
"application/json": components["schemas"]["ContentItemSummaryResponsePagedResponse"];
|
|
1093
|
+
"text/json": components["schemas"]["ContentItemSummaryResponsePagedResponse"];
|
|
1090
1094
|
};
|
|
1091
1095
|
};
|
|
1092
1096
|
};
|
|
1093
1097
|
};
|
|
1098
|
+
put?: never;
|
|
1099
|
+
post?: never;
|
|
1094
1100
|
delete?: never;
|
|
1095
1101
|
options?: never;
|
|
1096
1102
|
head?: never;
|
|
1097
1103
|
patch?: never;
|
|
1098
1104
|
trace?: never;
|
|
1099
1105
|
};
|
|
1100
|
-
"/api/v1/workspaces/{workspaceId}/content/{id}/
|
|
1106
|
+
"/api/v1/workspaces/{workspaceId}/content/{id}/versions": {
|
|
1101
1107
|
parameters: {
|
|
1102
1108
|
query?: never;
|
|
1103
1109
|
header?: never;
|
|
1104
1110
|
path?: never;
|
|
1105
1111
|
cookie?: never;
|
|
1106
1112
|
};
|
|
1107
|
-
get
|
|
1108
|
-
put?: never;
|
|
1109
|
-
post: {
|
|
1113
|
+
get: {
|
|
1110
1114
|
parameters: {
|
|
1111
|
-
query?:
|
|
1115
|
+
query?: {
|
|
1116
|
+
Page?: number;
|
|
1117
|
+
PageSize?: number;
|
|
1118
|
+
};
|
|
1112
1119
|
header?: never;
|
|
1113
1120
|
path: {
|
|
1114
1121
|
workspaceId: string;
|
|
@@ -1124,27 +1131,13 @@ interface paths {
|
|
|
1124
1131
|
[name: string]: unknown;
|
|
1125
1132
|
};
|
|
1126
1133
|
content: {
|
|
1127
|
-
"text/plain": components["schemas"]["
|
|
1128
|
-
"application/json": components["schemas"]["
|
|
1129
|
-
"text/json": components["schemas"]["
|
|
1134
|
+
"text/plain": components["schemas"]["ContentVersionSummaryResponsePagedResponse"];
|
|
1135
|
+
"application/json": components["schemas"]["ContentVersionSummaryResponsePagedResponse"];
|
|
1136
|
+
"text/json": components["schemas"]["ContentVersionSummaryResponsePagedResponse"];
|
|
1130
1137
|
};
|
|
1131
1138
|
};
|
|
1132
1139
|
};
|
|
1133
1140
|
};
|
|
1134
|
-
delete?: never;
|
|
1135
|
-
options?: never;
|
|
1136
|
-
head?: never;
|
|
1137
|
-
patch?: never;
|
|
1138
|
-
trace?: never;
|
|
1139
|
-
};
|
|
1140
|
-
"/api/v1/workspaces/{workspaceId}/content/{id}/reject": {
|
|
1141
|
-
parameters: {
|
|
1142
|
-
query?: never;
|
|
1143
|
-
header?: never;
|
|
1144
|
-
path?: never;
|
|
1145
|
-
cookie?: never;
|
|
1146
|
-
};
|
|
1147
|
-
get?: never;
|
|
1148
1141
|
put?: never;
|
|
1149
1142
|
post: {
|
|
1150
1143
|
parameters: {
|
|
@@ -1158,9 +1151,9 @@ interface paths {
|
|
|
1158
1151
|
};
|
|
1159
1152
|
requestBody?: {
|
|
1160
1153
|
content: {
|
|
1161
|
-
"application/json": components["schemas"]["
|
|
1162
|
-
"text/json": components["schemas"]["
|
|
1163
|
-
"application/*+json": components["schemas"]["
|
|
1154
|
+
"application/json": components["schemas"]["CreateContentVersionRequest"];
|
|
1155
|
+
"text/json": components["schemas"]["CreateContentVersionRequest"];
|
|
1156
|
+
"application/*+json": components["schemas"]["CreateContentVersionRequest"];
|
|
1164
1157
|
};
|
|
1165
1158
|
};
|
|
1166
1159
|
responses: {
|
|
@@ -1170,9 +1163,9 @@ interface paths {
|
|
|
1170
1163
|
[name: string]: unknown;
|
|
1171
1164
|
};
|
|
1172
1165
|
content: {
|
|
1173
|
-
"text/plain": components["schemas"]["
|
|
1174
|
-
"application/json": components["schemas"]["
|
|
1175
|
-
"text/json": components["schemas"]["
|
|
1166
|
+
"text/plain": components["schemas"]["ContentVersionDetailResponse"];
|
|
1167
|
+
"application/json": components["schemas"]["ContentVersionDetailResponse"];
|
|
1168
|
+
"text/json": components["schemas"]["ContentVersionDetailResponse"];
|
|
1176
1169
|
};
|
|
1177
1170
|
};
|
|
1178
1171
|
};
|
|
@@ -1183,30 +1176,55 @@ interface paths {
|
|
|
1183
1176
|
patch?: never;
|
|
1184
1177
|
trace?: never;
|
|
1185
1178
|
};
|
|
1186
|
-
"/api/v1/workspaces/{workspaceId}/content/{id}/
|
|
1179
|
+
"/api/v1/workspaces/{workspaceId}/content/{id}/versions/{versionNumber}": {
|
|
1187
1180
|
parameters: {
|
|
1188
1181
|
query?: never;
|
|
1189
1182
|
header?: never;
|
|
1190
1183
|
path?: never;
|
|
1191
1184
|
cookie?: never;
|
|
1192
1185
|
};
|
|
1193
|
-
get
|
|
1194
|
-
|
|
1195
|
-
|
|
1186
|
+
get: {
|
|
1187
|
+
parameters: {
|
|
1188
|
+
query?: never;
|
|
1189
|
+
header?: never;
|
|
1190
|
+
path: {
|
|
1191
|
+
workspaceId: string;
|
|
1192
|
+
id: string;
|
|
1193
|
+
versionNumber: number;
|
|
1194
|
+
};
|
|
1195
|
+
cookie?: never;
|
|
1196
|
+
};
|
|
1197
|
+
requestBody?: never;
|
|
1198
|
+
responses: {
|
|
1199
|
+
/** @description OK */
|
|
1200
|
+
200: {
|
|
1201
|
+
headers: {
|
|
1202
|
+
[name: string]: unknown;
|
|
1203
|
+
};
|
|
1204
|
+
content: {
|
|
1205
|
+
"text/plain": components["schemas"]["ContentVersionDetailResponse"];
|
|
1206
|
+
"application/json": components["schemas"]["ContentVersionDetailResponse"];
|
|
1207
|
+
"text/json": components["schemas"]["ContentVersionDetailResponse"];
|
|
1208
|
+
};
|
|
1209
|
+
};
|
|
1210
|
+
};
|
|
1211
|
+
};
|
|
1212
|
+
put: {
|
|
1196
1213
|
parameters: {
|
|
1197
1214
|
query?: never;
|
|
1198
1215
|
header?: never;
|
|
1199
1216
|
path: {
|
|
1200
1217
|
workspaceId: string;
|
|
1201
1218
|
id: string;
|
|
1219
|
+
versionNumber: number;
|
|
1202
1220
|
};
|
|
1203
1221
|
cookie?: never;
|
|
1204
1222
|
};
|
|
1205
1223
|
requestBody?: {
|
|
1206
1224
|
content: {
|
|
1207
|
-
"application/json": components["schemas"]["
|
|
1208
|
-
"text/json": components["schemas"]["
|
|
1209
|
-
"application/*+json": components["schemas"]["
|
|
1225
|
+
"application/json": components["schemas"]["UpdateContentVersionRequest"];
|
|
1226
|
+
"text/json": components["schemas"]["UpdateContentVersionRequest"];
|
|
1227
|
+
"application/*+json": components["schemas"]["UpdateContentVersionRequest"];
|
|
1210
1228
|
};
|
|
1211
1229
|
};
|
|
1212
1230
|
responses: {
|
|
@@ -1216,20 +1234,42 @@ interface paths {
|
|
|
1216
1234
|
[name: string]: unknown;
|
|
1217
1235
|
};
|
|
1218
1236
|
content: {
|
|
1219
|
-
"text/plain": components["schemas"]["
|
|
1220
|
-
"application/json": components["schemas"]["
|
|
1221
|
-
"text/json": components["schemas"]["
|
|
1237
|
+
"text/plain": components["schemas"]["ContentVersionDetailResponse"];
|
|
1238
|
+
"application/json": components["schemas"]["ContentVersionDetailResponse"];
|
|
1239
|
+
"text/json": components["schemas"]["ContentVersionDetailResponse"];
|
|
1222
1240
|
};
|
|
1223
1241
|
};
|
|
1224
1242
|
};
|
|
1225
1243
|
};
|
|
1226
|
-
|
|
1244
|
+
post?: never;
|
|
1245
|
+
delete: {
|
|
1246
|
+
parameters: {
|
|
1247
|
+
query?: never;
|
|
1248
|
+
header?: never;
|
|
1249
|
+
path: {
|
|
1250
|
+
workspaceId: string;
|
|
1251
|
+
id: string;
|
|
1252
|
+
versionNumber: number;
|
|
1253
|
+
};
|
|
1254
|
+
cookie?: never;
|
|
1255
|
+
};
|
|
1256
|
+
requestBody?: never;
|
|
1257
|
+
responses: {
|
|
1258
|
+
/** @description OK */
|
|
1259
|
+
200: {
|
|
1260
|
+
headers: {
|
|
1261
|
+
[name: string]: unknown;
|
|
1262
|
+
};
|
|
1263
|
+
content?: never;
|
|
1264
|
+
};
|
|
1265
|
+
};
|
|
1266
|
+
};
|
|
1227
1267
|
options?: never;
|
|
1228
1268
|
head?: never;
|
|
1229
1269
|
patch?: never;
|
|
1230
1270
|
trace?: never;
|
|
1231
1271
|
};
|
|
1232
|
-
"/api/v1/workspaces/{workspaceId}/content/{id}/
|
|
1272
|
+
"/api/v1/workspaces/{workspaceId}/content/{id}/versions/{versionNumber}/submit": {
|
|
1233
1273
|
parameters: {
|
|
1234
1274
|
query?: never;
|
|
1235
1275
|
header?: never;
|
|
@@ -1245,6 +1285,7 @@ interface paths {
|
|
|
1245
1285
|
path: {
|
|
1246
1286
|
workspaceId: string;
|
|
1247
1287
|
id: string;
|
|
1288
|
+
versionNumber: number;
|
|
1248
1289
|
};
|
|
1249
1290
|
cookie?: never;
|
|
1250
1291
|
};
|
|
@@ -1256,9 +1297,9 @@ interface paths {
|
|
|
1256
1297
|
[name: string]: unknown;
|
|
1257
1298
|
};
|
|
1258
1299
|
content: {
|
|
1259
|
-
"text/plain": components["schemas"]["
|
|
1260
|
-
"application/json": components["schemas"]["
|
|
1261
|
-
"text/json": components["schemas"]["
|
|
1300
|
+
"text/plain": components["schemas"]["ContentVersionDetailResponse"];
|
|
1301
|
+
"application/json": components["schemas"]["ContentVersionDetailResponse"];
|
|
1302
|
+
"text/json": components["schemas"]["ContentVersionDetailResponse"];
|
|
1262
1303
|
};
|
|
1263
1304
|
};
|
|
1264
1305
|
};
|
|
@@ -1269,7 +1310,7 @@ interface paths {
|
|
|
1269
1310
|
patch?: never;
|
|
1270
1311
|
trace?: never;
|
|
1271
1312
|
};
|
|
1272
|
-
"/api/v1/workspaces/{workspaceId}/content/{id}/
|
|
1313
|
+
"/api/v1/workspaces/{workspaceId}/content/{id}/versions/{versionNumber}/approve": {
|
|
1273
1314
|
parameters: {
|
|
1274
1315
|
query?: never;
|
|
1275
1316
|
header?: never;
|
|
@@ -1285,6 +1326,7 @@ interface paths {
|
|
|
1285
1326
|
path: {
|
|
1286
1327
|
workspaceId: string;
|
|
1287
1328
|
id: string;
|
|
1329
|
+
versionNumber: number;
|
|
1288
1330
|
};
|
|
1289
1331
|
cookie?: never;
|
|
1290
1332
|
};
|
|
@@ -1296,9 +1338,9 @@ interface paths {
|
|
|
1296
1338
|
[name: string]: unknown;
|
|
1297
1339
|
};
|
|
1298
1340
|
content: {
|
|
1299
|
-
"text/plain": components["schemas"]["
|
|
1300
|
-
"application/json": components["schemas"]["
|
|
1301
|
-
"text/json": components["schemas"]["
|
|
1341
|
+
"text/plain": components["schemas"]["ContentVersionDetailResponse"];
|
|
1342
|
+
"application/json": components["schemas"]["ContentVersionDetailResponse"];
|
|
1343
|
+
"text/json": components["schemas"]["ContentVersionDetailResponse"];
|
|
1302
1344
|
};
|
|
1303
1345
|
};
|
|
1304
1346
|
};
|
|
@@ -1309,7 +1351,7 @@ interface paths {
|
|
|
1309
1351
|
patch?: never;
|
|
1310
1352
|
trace?: never;
|
|
1311
1353
|
};
|
|
1312
|
-
"/api/v1/workspaces/{workspaceId}/content/{id}/
|
|
1354
|
+
"/api/v1/workspaces/{workspaceId}/content/{id}/versions/{versionNumber}/reject": {
|
|
1313
1355
|
parameters: {
|
|
1314
1356
|
query?: never;
|
|
1315
1357
|
header?: never;
|
|
@@ -1325,14 +1367,15 @@ interface paths {
|
|
|
1325
1367
|
path: {
|
|
1326
1368
|
workspaceId: string;
|
|
1327
1369
|
id: string;
|
|
1370
|
+
versionNumber: number;
|
|
1328
1371
|
};
|
|
1329
1372
|
cookie?: never;
|
|
1330
1373
|
};
|
|
1331
1374
|
requestBody?: {
|
|
1332
1375
|
content: {
|
|
1333
|
-
"application/json": components["schemas"]["
|
|
1334
|
-
"text/json": components["schemas"]["
|
|
1335
|
-
"application/*+json": components["schemas"]["
|
|
1376
|
+
"application/json": components["schemas"]["RejectContentRequest"];
|
|
1377
|
+
"text/json": components["schemas"]["RejectContentRequest"];
|
|
1378
|
+
"application/*+json": components["schemas"]["RejectContentRequest"];
|
|
1336
1379
|
};
|
|
1337
1380
|
};
|
|
1338
1381
|
responses: {
|
|
@@ -1342,9 +1385,9 @@ interface paths {
|
|
|
1342
1385
|
[name: string]: unknown;
|
|
1343
1386
|
};
|
|
1344
1387
|
content: {
|
|
1345
|
-
"text/plain": components["schemas"]["
|
|
1346
|
-
"application/json": components["schemas"]["
|
|
1347
|
-
"text/json": components["schemas"]["
|
|
1388
|
+
"text/plain": components["schemas"]["ContentVersionDetailResponse"];
|
|
1389
|
+
"application/json": components["schemas"]["ContentVersionDetailResponse"];
|
|
1390
|
+
"text/json": components["schemas"]["ContentVersionDetailResponse"];
|
|
1348
1391
|
};
|
|
1349
1392
|
};
|
|
1350
1393
|
};
|
|
@@ -1355,23 +1398,23 @@ interface paths {
|
|
|
1355
1398
|
patch?: never;
|
|
1356
1399
|
trace?: never;
|
|
1357
1400
|
};
|
|
1358
|
-
"/api/v1/workspaces/{workspaceId}/content/{id}/
|
|
1401
|
+
"/api/v1/workspaces/{workspaceId}/content/{id}/versions/{versionNumber}/archive": {
|
|
1359
1402
|
parameters: {
|
|
1360
1403
|
query?: never;
|
|
1361
1404
|
header?: never;
|
|
1362
1405
|
path?: never;
|
|
1363
1406
|
cookie?: never;
|
|
1364
1407
|
};
|
|
1365
|
-
get
|
|
1408
|
+
get?: never;
|
|
1409
|
+
put?: never;
|
|
1410
|
+
post: {
|
|
1366
1411
|
parameters: {
|
|
1367
|
-
query?:
|
|
1368
|
-
Page?: number;
|
|
1369
|
-
PageSize?: number;
|
|
1370
|
-
};
|
|
1412
|
+
query?: never;
|
|
1371
1413
|
header?: never;
|
|
1372
1414
|
path: {
|
|
1373
1415
|
workspaceId: string;
|
|
1374
1416
|
id: string;
|
|
1417
|
+
versionNumber: number;
|
|
1375
1418
|
};
|
|
1376
1419
|
cookie?: never;
|
|
1377
1420
|
};
|
|
@@ -1383,38 +1426,36 @@ interface paths {
|
|
|
1383
1426
|
[name: string]: unknown;
|
|
1384
1427
|
};
|
|
1385
1428
|
content: {
|
|
1386
|
-
"text/plain": components["schemas"]["
|
|
1387
|
-
"application/json": components["schemas"]["
|
|
1388
|
-
"text/json": components["schemas"]["
|
|
1429
|
+
"text/plain": components["schemas"]["ContentVersionDetailResponse"];
|
|
1430
|
+
"application/json": components["schemas"]["ContentVersionDetailResponse"];
|
|
1431
|
+
"text/json": components["schemas"]["ContentVersionDetailResponse"];
|
|
1389
1432
|
};
|
|
1390
1433
|
};
|
|
1391
1434
|
};
|
|
1392
1435
|
};
|
|
1393
|
-
put?: never;
|
|
1394
|
-
post?: never;
|
|
1395
1436
|
delete?: never;
|
|
1396
1437
|
options?: never;
|
|
1397
1438
|
head?: never;
|
|
1398
1439
|
patch?: never;
|
|
1399
1440
|
trace?: never;
|
|
1400
1441
|
};
|
|
1401
|
-
"/api/v1/workspaces/{workspaceId}/content/{id}/versions": {
|
|
1442
|
+
"/api/v1/workspaces/{workspaceId}/content/{id}/versions/{versionNumber}/restore": {
|
|
1402
1443
|
parameters: {
|
|
1403
1444
|
query?: never;
|
|
1404
1445
|
header?: never;
|
|
1405
1446
|
path?: never;
|
|
1406
1447
|
cookie?: never;
|
|
1407
1448
|
};
|
|
1408
|
-
get
|
|
1449
|
+
get?: never;
|
|
1450
|
+
put?: never;
|
|
1451
|
+
post: {
|
|
1409
1452
|
parameters: {
|
|
1410
|
-
query?:
|
|
1411
|
-
Page?: number;
|
|
1412
|
-
PageSize?: number;
|
|
1413
|
-
};
|
|
1453
|
+
query?: never;
|
|
1414
1454
|
header?: never;
|
|
1415
1455
|
path: {
|
|
1416
1456
|
workspaceId: string;
|
|
1417
1457
|
id: string;
|
|
1458
|
+
versionNumber: number;
|
|
1418
1459
|
};
|
|
1419
1460
|
cookie?: never;
|
|
1420
1461
|
};
|
|
@@ -1426,29 +1467,29 @@ interface paths {
|
|
|
1426
1467
|
[name: string]: unknown;
|
|
1427
1468
|
};
|
|
1428
1469
|
content: {
|
|
1429
|
-
"text/plain": components["schemas"]["
|
|
1430
|
-
"application/json": components["schemas"]["
|
|
1431
|
-
"text/json": components["schemas"]["
|
|
1470
|
+
"text/plain": components["schemas"]["ContentVersionDetailResponse"];
|
|
1471
|
+
"application/json": components["schemas"]["ContentVersionDetailResponse"];
|
|
1472
|
+
"text/json": components["schemas"]["ContentVersionDetailResponse"];
|
|
1432
1473
|
};
|
|
1433
1474
|
};
|
|
1434
1475
|
};
|
|
1435
1476
|
};
|
|
1436
|
-
put?: never;
|
|
1437
|
-
post?: never;
|
|
1438
1477
|
delete?: never;
|
|
1439
1478
|
options?: never;
|
|
1440
1479
|
head?: never;
|
|
1441
1480
|
patch?: never;
|
|
1442
1481
|
trace?: never;
|
|
1443
1482
|
};
|
|
1444
|
-
"/api/v1/workspaces/{workspaceId}/content/{id}/versions/{versionNumber}": {
|
|
1483
|
+
"/api/v1/workspaces/{workspaceId}/content/{id}/versions/{versionNumber}/publish": {
|
|
1445
1484
|
parameters: {
|
|
1446
1485
|
query?: never;
|
|
1447
1486
|
header?: never;
|
|
1448
1487
|
path?: never;
|
|
1449
1488
|
cookie?: never;
|
|
1450
1489
|
};
|
|
1451
|
-
get
|
|
1490
|
+
get?: never;
|
|
1491
|
+
put?: never;
|
|
1492
|
+
post: {
|
|
1452
1493
|
parameters: {
|
|
1453
1494
|
query?: never;
|
|
1454
1495
|
header?: never;
|
|
@@ -1459,7 +1500,13 @@ interface paths {
|
|
|
1459
1500
|
};
|
|
1460
1501
|
cookie?: never;
|
|
1461
1502
|
};
|
|
1462
|
-
requestBody?:
|
|
1503
|
+
requestBody?: {
|
|
1504
|
+
content: {
|
|
1505
|
+
"application/json": components["schemas"]["PublishContentVersionRequest"];
|
|
1506
|
+
"text/json": components["schemas"]["PublishContentVersionRequest"];
|
|
1507
|
+
"application/*+json": components["schemas"]["PublishContentVersionRequest"];
|
|
1508
|
+
};
|
|
1509
|
+
};
|
|
1463
1510
|
responses: {
|
|
1464
1511
|
/** @description OK */
|
|
1465
1512
|
200: {
|
|
@@ -1467,22 +1514,20 @@ interface paths {
|
|
|
1467
1514
|
[name: string]: unknown;
|
|
1468
1515
|
};
|
|
1469
1516
|
content: {
|
|
1470
|
-
"text/plain": components["schemas"]["
|
|
1471
|
-
"application/json": components["schemas"]["
|
|
1472
|
-
"text/json": components["schemas"]["
|
|
1517
|
+
"text/plain": components["schemas"]["PublishContentVersionResponse"];
|
|
1518
|
+
"application/json": components["schemas"]["PublishContentVersionResponse"];
|
|
1519
|
+
"text/json": components["schemas"]["PublishContentVersionResponse"];
|
|
1473
1520
|
};
|
|
1474
1521
|
};
|
|
1475
1522
|
};
|
|
1476
1523
|
};
|
|
1477
|
-
put?: never;
|
|
1478
|
-
post?: never;
|
|
1479
1524
|
delete?: never;
|
|
1480
1525
|
options?: never;
|
|
1481
1526
|
head?: never;
|
|
1482
1527
|
patch?: never;
|
|
1483
1528
|
trace?: never;
|
|
1484
1529
|
};
|
|
1485
|
-
"/api/v1/workspaces/{workspaceId}/content/{id}/versions/{versionNumber}/
|
|
1530
|
+
"/api/v1/workspaces/{workspaceId}/content/{id}/versions/{versionNumber}/upgrade-template-version": {
|
|
1486
1531
|
parameters: {
|
|
1487
1532
|
query?: never;
|
|
1488
1533
|
header?: never;
|
|
@@ -1510,9 +1555,9 @@ interface paths {
|
|
|
1510
1555
|
[name: string]: unknown;
|
|
1511
1556
|
};
|
|
1512
1557
|
content: {
|
|
1513
|
-
"text/plain": components["schemas"]["
|
|
1514
|
-
"application/json": components["schemas"]["
|
|
1515
|
-
"text/json": components["schemas"]["
|
|
1558
|
+
"text/plain": components["schemas"]["ContentVersionDetailResponse"];
|
|
1559
|
+
"application/json": components["schemas"]["ContentVersionDetailResponse"];
|
|
1560
|
+
"text/json": components["schemas"]["ContentVersionDetailResponse"];
|
|
1516
1561
|
};
|
|
1517
1562
|
};
|
|
1518
1563
|
};
|
|
@@ -3846,33 +3891,12 @@ interface components {
|
|
|
3846
3891
|
childContentItemId?: string | null;
|
|
3847
3892
|
jsonValue?: unknown;
|
|
3848
3893
|
};
|
|
3849
|
-
ContentFieldValueResponse: {
|
|
3850
|
-
/** Format: uuid */
|
|
3851
|
-
fieldId: string;
|
|
3852
|
-
key?: string | null;
|
|
3853
|
-
label?: string | null;
|
|
3854
|
-
/** Format: int32 */
|
|
3855
|
-
order: number;
|
|
3856
|
-
valueKind: components["schemas"]["ValueKind"];
|
|
3857
|
-
textValue?: string | null;
|
|
3858
|
-
boolValue?: boolean | null;
|
|
3859
|
-
/** Format: uuid */
|
|
3860
|
-
mediaAssetId?: string | null;
|
|
3861
|
-
/** Format: uuid */
|
|
3862
|
-
fileAssetId?: string | null;
|
|
3863
|
-
/** Format: uuid */
|
|
3864
|
-
childContentItemId?: string | null;
|
|
3865
|
-
child?: components["schemas"]["ContentItemDetailResponse"];
|
|
3866
|
-
jsonValue?: unknown;
|
|
3867
|
-
displayLabel?: string | null;
|
|
3868
|
-
};
|
|
3869
3894
|
ContentItemDetailResponse: {
|
|
3870
3895
|
/** Format: uuid */
|
|
3871
3896
|
id: string;
|
|
3872
3897
|
/** Format: uuid */
|
|
3873
3898
|
templateVersionId: string;
|
|
3874
3899
|
templateName: string;
|
|
3875
|
-
status: components["schemas"]["ContentStatus"];
|
|
3876
3900
|
slug?: string | null;
|
|
3877
3901
|
localeCode?: string | null;
|
|
3878
3902
|
/** Format: uuid */
|
|
@@ -3882,9 +3906,8 @@ interface components {
|
|
|
3882
3906
|
createdAt: string;
|
|
3883
3907
|
/** Format: date-time */
|
|
3884
3908
|
updatedAt: string;
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
fields: components["schemas"]["ContentFieldValueResponse"][];
|
|
3909
|
+
currentlyServingVersion?: components["schemas"]["ContentVersionSummaryResponse"];
|
|
3910
|
+
versions: components["schemas"]["ContentVersionSummaryResponse"][];
|
|
3888
3911
|
};
|
|
3889
3912
|
ContentItemSummaryResponse: {
|
|
3890
3913
|
/** Format: uuid */
|
|
@@ -3892,7 +3915,6 @@ interface components {
|
|
|
3892
3915
|
/** Format: uuid */
|
|
3893
3916
|
templateVersionId: string;
|
|
3894
3917
|
templateName: string;
|
|
3895
|
-
status: components["schemas"]["ContentStatus"];
|
|
3896
3918
|
slug?: string | null;
|
|
3897
3919
|
localeCode?: string | null;
|
|
3898
3920
|
/** Format: uuid */
|
|
@@ -3902,8 +3924,9 @@ interface components {
|
|
|
3902
3924
|
createdAt: string;
|
|
3903
3925
|
/** Format: date-time */
|
|
3904
3926
|
updatedAt: string;
|
|
3905
|
-
/** Format:
|
|
3906
|
-
|
|
3927
|
+
/** Format: int32 */
|
|
3928
|
+
versionCount: number;
|
|
3929
|
+
currentlyServingVersion?: components["schemas"]["ContentVersionSummaryResponse"];
|
|
3907
3930
|
};
|
|
3908
3931
|
ContentItemSummaryResponsePagedResponse: {
|
|
3909
3932
|
items: components["schemas"]["ContentItemSummaryResponse"][];
|
|
@@ -3925,7 +3948,7 @@ interface components {
|
|
|
3925
3948
|
contentItemId: string;
|
|
3926
3949
|
/** Format: int32 */
|
|
3927
3950
|
versionNumber: number;
|
|
3928
|
-
status: components["schemas"]["
|
|
3951
|
+
status: components["schemas"]["ContentStatus"];
|
|
3929
3952
|
/** Format: uuid */
|
|
3930
3953
|
templateVersionId: string;
|
|
3931
3954
|
templateName: string;
|
|
@@ -3938,14 +3961,20 @@ interface components {
|
|
|
3938
3961
|
/** Format: date-time */
|
|
3939
3962
|
effectiveEndAt?: string | null;
|
|
3940
3963
|
/** Format: date-time */
|
|
3941
|
-
|
|
3964
|
+
publishAt?: string | null;
|
|
3965
|
+
/** Format: date-time */
|
|
3966
|
+
publishedAt?: string | null;
|
|
3942
3967
|
/** Format: date-time */
|
|
3943
|
-
|
|
3968
|
+
archivedAt?: string | null;
|
|
3944
3969
|
/** Format: uuid */
|
|
3945
3970
|
publishedByUserId?: string | null;
|
|
3946
3971
|
/** Format: int32 */
|
|
3947
3972
|
rolledBackFromVersionNumber?: number | null;
|
|
3948
3973
|
tags: string[];
|
|
3974
|
+
/** Format: date-time */
|
|
3975
|
+
createdAt: string;
|
|
3976
|
+
/** Format: date-time */
|
|
3977
|
+
updatedAt: string;
|
|
3949
3978
|
fields: components["schemas"]["ContentVersionFieldValueResponse"][];
|
|
3950
3979
|
};
|
|
3951
3980
|
ContentVersionFieldValueResponse: {
|
|
@@ -3964,11 +3993,10 @@ interface components {
|
|
|
3964
3993
|
fileAssetId?: string | null;
|
|
3965
3994
|
/** Format: uuid */
|
|
3966
3995
|
childContentItemId?: string | null;
|
|
3996
|
+
child?: components["schemas"]["ContentVersionDetailResponse"];
|
|
3967
3997
|
jsonValue?: unknown;
|
|
3968
3998
|
displayLabel?: string | null;
|
|
3969
3999
|
};
|
|
3970
|
-
/** @enum {string} */
|
|
3971
|
-
ContentVersionStatus: "Published" | "Retired";
|
|
3972
4000
|
ContentVersionSummaryResponse: {
|
|
3973
4001
|
/** Format: uuid */
|
|
3974
4002
|
id: string;
|
|
@@ -3976,7 +4004,7 @@ interface components {
|
|
|
3976
4004
|
contentItemId: string;
|
|
3977
4005
|
/** Format: int32 */
|
|
3978
4006
|
versionNumber: number;
|
|
3979
|
-
status: components["schemas"]["
|
|
4007
|
+
status: components["schemas"]["ContentStatus"];
|
|
3980
4008
|
/** Format: uuid */
|
|
3981
4009
|
templateVersionId: string;
|
|
3982
4010
|
slug?: string | null;
|
|
@@ -3986,14 +4014,20 @@ interface components {
|
|
|
3986
4014
|
/** Format: date-time */
|
|
3987
4015
|
effectiveEndAt?: string | null;
|
|
3988
4016
|
/** Format: date-time */
|
|
3989
|
-
|
|
4017
|
+
publishAt?: string | null;
|
|
3990
4018
|
/** Format: date-time */
|
|
3991
|
-
|
|
4019
|
+
publishedAt?: string | null;
|
|
4020
|
+
/** Format: date-time */
|
|
4021
|
+
archivedAt?: string | null;
|
|
3992
4022
|
/** Format: uuid */
|
|
3993
4023
|
publishedByUserId?: string | null;
|
|
3994
4024
|
/** Format: int32 */
|
|
3995
4025
|
rolledBackFromVersionNumber?: number | null;
|
|
3996
4026
|
tags: string[];
|
|
4027
|
+
/** Format: date-time */
|
|
4028
|
+
createdAt: string;
|
|
4029
|
+
/** Format: date-time */
|
|
4030
|
+
updatedAt: string;
|
|
3997
4031
|
};
|
|
3998
4032
|
ContentVersionSummaryResponsePagedResponse: {
|
|
3999
4033
|
items: components["schemas"]["ContentVersionSummaryResponse"][];
|
|
@@ -4030,6 +4064,15 @@ interface components {
|
|
|
4030
4064
|
tags: string[];
|
|
4031
4065
|
fields: components["schemas"]["ContentFieldValueRequest"][];
|
|
4032
4066
|
};
|
|
4067
|
+
CreateContentVersionRequest: {
|
|
4068
|
+
/** Format: date-time */
|
|
4069
|
+
effectiveStartAt?: string | null;
|
|
4070
|
+
/** Format: date-time */
|
|
4071
|
+
effectiveEndAt?: string | null;
|
|
4072
|
+
/** Format: int32 */
|
|
4073
|
+
duplicateFromVersionNumber?: number | null;
|
|
4074
|
+
fields?: components["schemas"]["ContentFieldValueRequest"][] | null;
|
|
4075
|
+
};
|
|
4033
4076
|
CreateTemplateRequest: {
|
|
4034
4077
|
name: string;
|
|
4035
4078
|
slug: string;
|
|
@@ -4280,17 +4323,13 @@ interface components {
|
|
|
4280
4323
|
};
|
|
4281
4324
|
/** @enum {string} */
|
|
4282
4325
|
PrimitiveType: "Text" | "RichText" | "Markdown" | "Boolean" | "PickList" | "Media" | "File" | "Link" | "Quote" | "Separator";
|
|
4283
|
-
|
|
4326
|
+
PublishContentVersionRequest: {
|
|
4284
4327
|
/** Format: date-time */
|
|
4285
4328
|
publishAt?: string | null;
|
|
4286
|
-
/** Format: date-time */
|
|
4287
|
-
effectiveStartAt?: string | null;
|
|
4288
|
-
/** Format: date-time */
|
|
4289
|
-
effectiveEndAt?: string | null;
|
|
4290
4329
|
overrideWorkflow?: boolean | null;
|
|
4291
4330
|
};
|
|
4292
|
-
|
|
4293
|
-
|
|
4331
|
+
PublishContentVersionResponse: {
|
|
4332
|
+
version: components["schemas"]["ContentVersionDetailResponse"];
|
|
4294
4333
|
warnings: string[];
|
|
4295
4334
|
};
|
|
4296
4335
|
RejectContentRequest: {
|
|
@@ -4501,9 +4540,13 @@ interface components {
|
|
|
4501
4540
|
localeCode?: string | null;
|
|
4502
4541
|
/** Format: uuid */
|
|
4503
4542
|
translationGroupId?: string | null;
|
|
4504
|
-
/** Format: date-time */
|
|
4505
|
-
publishAt?: string | null;
|
|
4506
4543
|
tags: string[];
|
|
4544
|
+
};
|
|
4545
|
+
UpdateContentVersionRequest: {
|
|
4546
|
+
/** Format: date-time */
|
|
4547
|
+
effectiveStartAt?: string | null;
|
|
4548
|
+
/** Format: date-time */
|
|
4549
|
+
effectiveEndAt?: string | null;
|
|
4507
4550
|
fields: components["schemas"]["ContentFieldValueRequest"][];
|
|
4508
4551
|
};
|
|
4509
4552
|
UpdateMediaAssetRequest: {
|
|
@@ -4708,6 +4751,7 @@ interface PagedResult<T> {
|
|
|
4708
4751
|
}
|
|
4709
4752
|
type Workspace = components["schemas"]["WorkspaceDto"];
|
|
4710
4753
|
type ContentItem = components["schemas"]["ContentItemDetailResponse"];
|
|
4754
|
+
type ContentVersion = components["schemas"]["ContentVersionDetailResponse"];
|
|
4711
4755
|
type ContentListItem = components["schemas"]["ContentItemSummaryResponse"];
|
|
4712
4756
|
type Template = components["schemas"]["TemplateResponse"];
|
|
4713
4757
|
type TemplateListItem = components["schemas"]["TemplateSummaryResponse"];
|
|
@@ -4764,68 +4808,75 @@ declare class CmsifyClient {
|
|
|
4764
4808
|
id: string;
|
|
4765
4809
|
templateVersionId: string;
|
|
4766
4810
|
templateName: string;
|
|
4767
|
-
status: components["schemas"]["ContentStatus"];
|
|
4768
4811
|
slug?: string | null;
|
|
4769
4812
|
localeCode?: string | null;
|
|
4770
4813
|
translationGroupId?: string | null;
|
|
4771
4814
|
tags: string[];
|
|
4772
4815
|
createdAt: string;
|
|
4773
4816
|
updatedAt: string;
|
|
4774
|
-
|
|
4817
|
+
versionCount: number;
|
|
4818
|
+
currentlyServingVersion?: components["schemas"]["ContentVersionSummaryResponse"];
|
|
4775
4819
|
}>>;
|
|
4776
4820
|
listAll: (options?: ContentListOptions) => AsyncIterable<{
|
|
4777
4821
|
id: string;
|
|
4778
4822
|
templateVersionId: string;
|
|
4779
4823
|
templateName: string;
|
|
4780
|
-
status: components["schemas"]["ContentStatus"];
|
|
4781
4824
|
slug?: string | null;
|
|
4782
4825
|
localeCode?: string | null;
|
|
4783
4826
|
translationGroupId?: string | null;
|
|
4784
4827
|
tags: string[];
|
|
4785
4828
|
createdAt: string;
|
|
4786
4829
|
updatedAt: string;
|
|
4787
|
-
|
|
4830
|
+
versionCount: number;
|
|
4831
|
+
currentlyServingVersion?: components["schemas"]["ContentVersionSummaryResponse"];
|
|
4788
4832
|
}>;
|
|
4789
4833
|
get: (id: string, options?: Pick<ContentListOptions, "asOf">) => Promise<{
|
|
4790
4834
|
id: string;
|
|
4791
4835
|
templateVersionId: string;
|
|
4792
4836
|
templateName: string;
|
|
4793
|
-
status: components["schemas"]["ContentStatus"];
|
|
4794
4837
|
slug?: string | null;
|
|
4795
4838
|
localeCode?: string | null;
|
|
4796
4839
|
translationGroupId?: string | null;
|
|
4797
4840
|
tags: string[];
|
|
4798
4841
|
createdAt: string;
|
|
4799
4842
|
updatedAt: string;
|
|
4800
|
-
|
|
4801
|
-
|
|
4843
|
+
currentlyServingVersion?: components["schemas"]["ContentVersionSummaryResponse"];
|
|
4844
|
+
versions: components["schemas"]["ContentVersionSummaryResponse"][];
|
|
4802
4845
|
}>;
|
|
4803
4846
|
bySlug: (slug: string, options?: Pick<ContentListOptions, "asOf">) => Promise<{
|
|
4804
4847
|
id: string;
|
|
4848
|
+
contentItemId: string;
|
|
4849
|
+
versionNumber: number;
|
|
4850
|
+
status: components["schemas"]["ContentStatus"];
|
|
4805
4851
|
templateVersionId: string;
|
|
4806
4852
|
templateName: string;
|
|
4807
|
-
status: components["schemas"]["ContentStatus"];
|
|
4808
4853
|
slug?: string | null;
|
|
4809
4854
|
localeCode?: string | null;
|
|
4810
4855
|
translationGroupId?: string | null;
|
|
4856
|
+
effectiveStartAt?: string | null;
|
|
4857
|
+
effectiveEndAt?: string | null;
|
|
4858
|
+
publishAt?: string | null;
|
|
4859
|
+
publishedAt?: string | null;
|
|
4860
|
+
archivedAt?: string | null;
|
|
4861
|
+
publishedByUserId?: string | null;
|
|
4862
|
+
rolledBackFromVersionNumber?: number | null;
|
|
4811
4863
|
tags: string[];
|
|
4812
4864
|
createdAt: string;
|
|
4813
4865
|
updatedAt: string;
|
|
4814
|
-
|
|
4815
|
-
fields: components["schemas"]["ContentFieldValueResponse"][];
|
|
4866
|
+
fields: components["schemas"]["ContentVersionFieldValueResponse"][];
|
|
4816
4867
|
}>;
|
|
4817
4868
|
translations: (id: string, options?: PageOptions) => Promise<PagedResult<{
|
|
4818
4869
|
id: string;
|
|
4819
4870
|
templateVersionId: string;
|
|
4820
4871
|
templateName: string;
|
|
4821
|
-
status: components["schemas"]["ContentStatus"];
|
|
4822
4872
|
slug?: string | null;
|
|
4823
4873
|
localeCode?: string | null;
|
|
4824
4874
|
translationGroupId?: string | null;
|
|
4825
4875
|
tags: string[];
|
|
4826
4876
|
createdAt: string;
|
|
4827
4877
|
updatedAt: string;
|
|
4828
|
-
|
|
4878
|
+
versionCount: number;
|
|
4879
|
+
currentlyServingVersion?: components["schemas"]["ContentVersionSummaryResponse"];
|
|
4829
4880
|
}>>;
|
|
4830
4881
|
};
|
|
4831
4882
|
readonly templates: {
|
|
@@ -4964,4 +5015,4 @@ declare function renderCmsifyTemplate(template: string, variables: Record<string
|
|
|
4964
5015
|
|
|
4965
5016
|
declare const createCmsifyFetchClient: (baseUrl: string, fetchImpl?: typeof fetch) => openapi_fetch.Client<paths, `${string}/${string}`>;
|
|
4966
5017
|
|
|
4967
|
-
export { CmsifyApiError, CmsifyClient, type CmsifyClientOptions, CmsifyTimeoutError, type ContentItem, type ContentListItem, type ContentListOptions, type Delay, ETagStore, type MediaAsset, type PageOptions, type PageResult, type PagedResult, type ProblemDetails, type RequestOptions, TEXT_FORMAT_HINTS, type Template, type TemplateListItem, type TextFormatHint, type TextFormatHintConfig, type Workspace, type components, createCmsifyFetchClient, schema as generated, getFormatHint, isProseHint, listAll, type paths, renderCmsifyTemplate, toMimeType };
|
|
5018
|
+
export { CmsifyApiError, CmsifyClient, type CmsifyClientOptions, CmsifyTimeoutError, type ContentItem, type ContentListItem, type ContentListOptions, type ContentVersion, type Delay, ETagStore, type MediaAsset, type PageOptions, type PageResult, type PagedResult, type ProblemDetails, type RequestOptions, TEXT_FORMAT_HINTS, type Template, type TemplateListItem, type TextFormatHint, type TextFormatHintConfig, type Workspace, type components, createCmsifyFetchClient, schema as generated, getFormatHint, isProseHint, listAll, type paths, renderCmsifyTemplate, toMimeType };
|