@rolino/contracts 0.7.0 → 0.8.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/CHANGELOG.md +8 -0
- package/README.md +11 -3
- package/dist/index.cjs +244 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +651 -5
- package/dist/index.d.ts +651 -5
- package/dist/index.js +219 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @rolino/contracts
|
|
2
2
|
|
|
3
|
+
## 0.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 4e123ef: Add exact storage usage, bounded workspace media listing with required project context, and entitlement-checked, confirmation-bound Media Library cleanup across the shared contracts, SDK, and MCP tools. Cleanup status now reports a safe changed-asset skip when the confirmed workspace, project, storage identity, or asset version no longer matches.
|
|
8
|
+
|
|
9
|
+
## 0.7.1
|
|
10
|
+
|
|
3
11
|
## 0.7.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -3,10 +3,18 @@
|
|
|
3
3
|
The package includes strict shared backlink prospecting schemas for bounded targets, discoveries, prospects, score evidence, stages, public contacts, outreach drafts, and exact-link verification. The independent `backlinks:read`, `backlinks:write`, and `backlinks:contacts` capabilities do not widen existing credentials.
|
|
4
4
|
|
|
5
5
|
Zod schemas and TypeScript types for Rolino's versioned public API. This package
|
|
6
|
-
contains transport-safe DTOs only; it must not depend on Prisma, Next.js, auth
|
|
7
|
-
providers, or server implementation details.
|
|
6
|
+
contains transport-safe DTOs only; it must not depend on Prisma, Next.js, auth
|
|
7
|
+
providers, or server implementation details.
|
|
8
|
+
|
|
9
|
+
Storage-management contracts add the independent optional `storage:read` and
|
|
10
|
+
`media:delete` capabilities, exact workspace usage, bounded project or workspace
|
|
11
|
+
media lists, and confirmation-bound cleanup preview, execute, and status DTOs.
|
|
12
|
+
Cleanup selections contain at most 500 candidates. Public DTOs omit storage keys,
|
|
13
|
+
provider errors, credentials, and internal queue records.
|
|
14
|
+
Workspace media items always include their project ID and project name. Media
|
|
15
|
+
cursors are opaque deployment-time pagination state and are not long-term IDs.
|
|
8
16
|
|
|
9
|
-
Contract 0.
|
|
17
|
+
Contract 0.19 covers discovery, identity, capabilities, project reads and
|
|
10
18
|
idempotent project creation, safe post and calendar reads, idempotent draft
|
|
11
19
|
writes, and server-confirmed Instagram, TikTok, YouTube, Bluesky, and LinkedIn scheduling
|
|
12
20
|
and immediate publishing. YouTube additions include explicit draft settings,
|
package/dist/index.cjs
CHANGED
|
@@ -182,6 +182,7 @@ __export(index_exports, {
|
|
|
182
182
|
IntegrationHealthListResponseSchema: () => IntegrationHealthListResponseSchema,
|
|
183
183
|
IntegrationHealthSchema: () => IntegrationHealthSchema,
|
|
184
184
|
LinkedInDeliveryOptionsSchema: () => LinkedInDeliveryOptionsSchema,
|
|
185
|
+
ListedMediaAssetSchema: () => ListedMediaAssetSchema,
|
|
185
186
|
MediaAssetListDataSchema: () => MediaAssetListDataSchema,
|
|
186
187
|
MediaAssetListQuerySchema: () => MediaAssetListQuerySchema,
|
|
187
188
|
MediaAssetListResponseSchema: () => MediaAssetListResponseSchema,
|
|
@@ -191,6 +192,22 @@ __export(index_exports, {
|
|
|
191
192
|
MediaAssetUploadInputSchema: () => MediaAssetUploadInputSchema,
|
|
192
193
|
MediaAssetUploadPreparationResponseSchema: () => MediaAssetUploadPreparationResponseSchema,
|
|
193
194
|
MediaAssetUploadPreparationSchema: () => MediaAssetUploadPreparationSchema,
|
|
195
|
+
MediaCleanupCandidateSchema: () => MediaCleanupCandidateSchema,
|
|
196
|
+
MediaCleanupExecuteRequestSchema: () => MediaCleanupExecuteRequestSchema,
|
|
197
|
+
MediaCleanupExecuteResponseSchema: () => MediaCleanupExecuteResponseSchema,
|
|
198
|
+
MediaCleanupExecuteResultSchema: () => MediaCleanupExecuteResultSchema,
|
|
199
|
+
MediaCleanupItemResultSchema: () => MediaCleanupItemResultSchema,
|
|
200
|
+
MediaCleanupItemStatusSchema: () => MediaCleanupItemStatusSchema,
|
|
201
|
+
MediaCleanupOperationStatusSchema: () => MediaCleanupOperationStatusSchema,
|
|
202
|
+
MediaCleanupPreviewRequestSchema: () => MediaCleanupPreviewRequestSchema,
|
|
203
|
+
MediaCleanupPreviewResponseSchema: () => MediaCleanupPreviewResponseSchema,
|
|
204
|
+
MediaCleanupPreviewSchema: () => MediaCleanupPreviewSchema,
|
|
205
|
+
MediaCleanupScopeSchema: () => MediaCleanupScopeSchema,
|
|
206
|
+
MediaCleanupSelectionInputSchema: () => MediaCleanupSelectionInputSchema,
|
|
207
|
+
MediaCleanupStatusQuerySchema: () => MediaCleanupStatusQuerySchema,
|
|
208
|
+
MediaCleanupStatusResponseSchema: () => MediaCleanupStatusResponseSchema,
|
|
209
|
+
MediaCleanupStatusSchema: () => MediaCleanupStatusSchema,
|
|
210
|
+
NormalizedMediaCleanupSelectionSchema: () => NormalizedMediaCleanupSelectionSchema,
|
|
194
211
|
PUBLISHING_PROVIDER_COUNT: () => PUBLISHING_PROVIDER_COUNT,
|
|
195
212
|
PlatformPostStatusSchema: () => PlatformPostStatusSchema,
|
|
196
213
|
PostDeliveryModeSchema: () => PostDeliveryModeSchema,
|
|
@@ -263,17 +280,25 @@ __export(index_exports, {
|
|
|
263
280
|
SeoSearchIntentSchema: () => SeoSearchIntentSchema,
|
|
264
281
|
SeoTaskDecisionSchema: () => SeoTaskDecisionSchema,
|
|
265
282
|
SeoTaskFormatSchema: () => SeoTaskFormatSchema,
|
|
283
|
+
StorageByteCountSchema: () => StorageByteCountSchema,
|
|
284
|
+
StorageSourceBreakdownSchema: () => StorageSourceBreakdownSchema,
|
|
285
|
+
StorageUsageResponseSchema: () => StorageUsageResponseSchema,
|
|
286
|
+
StorageUsageSchema: () => StorageUsageSchema,
|
|
266
287
|
TikTokDeliveryOptionsSchema: () => TikTokDeliveryOptionsSchema,
|
|
267
288
|
TikTokDraftSettingsSchema: () => TikTokDraftSettingsSchema,
|
|
268
289
|
TikTokPostSettingsSchema: () => TikTokPostSettingsSchema,
|
|
269
290
|
WhoAmIResponseSchema: () => WhoAmIResponseSchema,
|
|
291
|
+
WorkspaceListedMediaAssetSchema: () => WorkspaceListedMediaAssetSchema,
|
|
292
|
+
WorkspaceMediaAssetListDataSchema: () => WorkspaceMediaAssetListDataSchema,
|
|
293
|
+
WorkspaceMediaAssetListQuerySchema: () => WorkspaceMediaAssetListQuerySchema,
|
|
294
|
+
WorkspaceMediaAssetListResponseSchema: () => WorkspaceMediaAssetListResponseSchema,
|
|
270
295
|
YouTubePostSettingsSchema: () => YouTubePostSettingsSchema,
|
|
271
296
|
successEnvelopeSchema: () => successEnvelopeSchema
|
|
272
297
|
});
|
|
273
298
|
module.exports = __toCommonJS(index_exports);
|
|
274
299
|
var import_zod = require("zod");
|
|
275
300
|
var API_VERSION = "v1";
|
|
276
|
-
var CONTRACT_VERSION = "0.
|
|
301
|
+
var CONTRACT_VERSION = "0.19.0";
|
|
277
302
|
var RequestMetadataSchema = import_zod.z.object({
|
|
278
303
|
requestId: import_zod.z.string().min(1)
|
|
279
304
|
});
|
|
@@ -364,6 +389,8 @@ var CapabilityIdSchema = import_zod.z.enum([
|
|
|
364
389
|
"posts:write",
|
|
365
390
|
"posts:schedule",
|
|
366
391
|
"posts:publish",
|
|
392
|
+
"storage:read",
|
|
393
|
+
"media:delete",
|
|
367
394
|
"integrations:read",
|
|
368
395
|
"calendar:read",
|
|
369
396
|
"seo:read",
|
|
@@ -1064,22 +1091,49 @@ var MediaAssetSchema = import_zod.z.object({
|
|
|
1064
1091
|
width: import_zod.z.number().int().positive().nullable(),
|
|
1065
1092
|
height: import_zod.z.number().int().positive().nullable(),
|
|
1066
1093
|
durationMs: import_zod.z.number().int().nonnegative().nullable(),
|
|
1067
|
-
createdAt: import_zod.z.string().datetime()
|
|
1094
|
+
createdAt: import_zod.z.string().datetime(),
|
|
1095
|
+
usageCount: import_zod.z.number().int().nonnegative().optional(),
|
|
1096
|
+
deletable: import_zod.z.boolean().optional(),
|
|
1097
|
+
blockedReason: import_zod.z.enum(["IN_USE"]).nullable().optional(),
|
|
1098
|
+
projectId: import_zod.z.string().min(1).optional(),
|
|
1099
|
+
projectName: import_zod.z.string().min(1).max(200).optional()
|
|
1068
1100
|
});
|
|
1101
|
+
var ListedMediaAssetSchema = MediaAssetSchema.extend({
|
|
1102
|
+
usageCount: import_zod.z.number().int().nonnegative(),
|
|
1103
|
+
deletable: import_zod.z.boolean(),
|
|
1104
|
+
blockedReason: import_zod.z.enum(["IN_USE"]).nullable()
|
|
1105
|
+
});
|
|
1106
|
+
var WorkspaceListedMediaAssetSchema = ListedMediaAssetSchema.extend({
|
|
1107
|
+
projectId: import_zod.z.string().min(1),
|
|
1108
|
+
projectName: import_zod.z.string().min(1).max(200)
|
|
1109
|
+
});
|
|
1110
|
+
var OptionalBooleanQuerySchema = import_zod.z.union([
|
|
1111
|
+
import_zod.z.boolean(),
|
|
1112
|
+
import_zod.z.enum(["true", "false"]).transform((value) => value === "true")
|
|
1113
|
+
]);
|
|
1069
1114
|
var MediaAssetListQuerySchema = import_zod.z.object({
|
|
1070
1115
|
limit: import_zod.z.coerce.number().int().min(1).max(100).default(50),
|
|
1071
|
-
cursor: import_zod.z.string().min(1).optional(),
|
|
1116
|
+
cursor: import_zod.z.string().min(1).max(2048).optional(),
|
|
1072
1117
|
type: import_zod.z.enum(["IMAGE", "VIDEO"]).optional(),
|
|
1073
|
-
query: import_zod.z.string().trim().min(1).max(100).optional()
|
|
1118
|
+
query: import_zod.z.string().trim().min(1).max(100).optional(),
|
|
1119
|
+
createdBefore: import_zod.z.string().datetime({ offset: true }).optional(),
|
|
1120
|
+
createdAfter: import_zod.z.string().datetime({ offset: true }).optional(),
|
|
1121
|
+
unusedOnly: OptionalBooleanQuerySchema.optional(),
|
|
1122
|
+
order: import_zod.z.enum(["OLDEST_FIRST", "NEWEST_FIRST"]).default("NEWEST_FIRST")
|
|
1074
1123
|
});
|
|
1124
|
+
var WorkspaceMediaAssetListQuerySchema = MediaAssetListQuerySchema;
|
|
1075
1125
|
var MediaAssetListDataSchema = import_zod.z.object({
|
|
1076
|
-
items: import_zod.z.array(
|
|
1126
|
+
items: import_zod.z.array(ListedMediaAssetSchema),
|
|
1077
1127
|
page: import_zod.z.object({
|
|
1078
1128
|
limit: import_zod.z.number().int().min(1).max(100),
|
|
1079
1129
|
nextCursor: import_zod.z.string().min(1).nullable()
|
|
1080
1130
|
})
|
|
1081
1131
|
});
|
|
1082
1132
|
var MediaAssetListResponseSchema = successEnvelopeSchema(MediaAssetListDataSchema);
|
|
1133
|
+
var WorkspaceMediaAssetListDataSchema = MediaAssetListDataSchema.extend({
|
|
1134
|
+
items: import_zod.z.array(WorkspaceListedMediaAssetSchema)
|
|
1135
|
+
});
|
|
1136
|
+
var WorkspaceMediaAssetListResponseSchema = successEnvelopeSchema(WorkspaceMediaAssetListDataSchema);
|
|
1083
1137
|
var MediaAssetUploadInputSchema = import_zod.z.object({
|
|
1084
1138
|
fileName: import_zod.z.string().trim().min(1).max(255),
|
|
1085
1139
|
contentType: import_zod.z.string().trim().min(1).max(100),
|
|
@@ -1100,6 +1154,166 @@ var MediaAssetUploadCompleteInputSchema = MediaAssetUploadInputSchema.extend({
|
|
|
1100
1154
|
durationMs: import_zod.z.number().int().nonnegative().max(864e5).nullable().optional()
|
|
1101
1155
|
}).strict();
|
|
1102
1156
|
var MediaAssetResponseSchema = successEnvelopeSchema(MediaAssetSchema);
|
|
1157
|
+
var StorageByteCountSchema = import_zod.z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER);
|
|
1158
|
+
var StorageSourceBreakdownSchema = import_zod.z.object({
|
|
1159
|
+
mediaLibraryOriginalBytes: StorageByteCountSchema,
|
|
1160
|
+
transformedSocialMediaBytes: StorageByteCountSchema,
|
|
1161
|
+
blogImageBytes: StorageByteCountSchema,
|
|
1162
|
+
detachedPendingDeletionBytes: StorageByteCountSchema
|
|
1163
|
+
});
|
|
1164
|
+
var StorageUsageSchema = import_zod.z.object({
|
|
1165
|
+
storedBytes: StorageByteCountSchema,
|
|
1166
|
+
reservedUploadBytes: StorageByteCountSchema,
|
|
1167
|
+
uploadCommittedBytes: StorageByteCountSchema,
|
|
1168
|
+
limitBytes: StorageByteCountSchema.nullable(),
|
|
1169
|
+
availableUploadBytes: StorageByteCountSchema.nullable(),
|
|
1170
|
+
storedPercent: import_zod.z.number().finite().nonnegative().nullable(),
|
|
1171
|
+
uploadCommittedPercent: import_zod.z.number().finite().nonnegative().nullable(),
|
|
1172
|
+
unlimited: import_zod.z.boolean(),
|
|
1173
|
+
pendingDeletionBytes: StorageByteCountSchema,
|
|
1174
|
+
sources: StorageSourceBreakdownSchema,
|
|
1175
|
+
measuredAt: import_zod.z.string().datetime()
|
|
1176
|
+
});
|
|
1177
|
+
var StorageUsageResponseSchema = successEnvelopeSchema(StorageUsageSchema);
|
|
1178
|
+
var MediaCleanupScopeSchema = import_zod.z.discriminatedUnion("type", [
|
|
1179
|
+
import_zod.z.object({ type: import_zod.z.literal("PROJECT"), projectId: import_zod.z.string().min(1).max(200) }).strict(),
|
|
1180
|
+
import_zod.z.object({ type: import_zod.z.literal("WORKSPACE") }).strict()
|
|
1181
|
+
]);
|
|
1182
|
+
var MediaCleanupAssetIdsSchema = import_zod.z.array(import_zod.z.string().min(1).max(200)).min(1).max(100).superRefine((ids, context) => {
|
|
1183
|
+
if (new Set(ids).size !== ids.length) {
|
|
1184
|
+
context.addIssue({ code: "custom", message: "Asset IDs must be unique." });
|
|
1185
|
+
}
|
|
1186
|
+
});
|
|
1187
|
+
var MediaCleanupSelectionInputSchema = import_zod.z.discriminatedUnion("mode", [
|
|
1188
|
+
import_zod.z.object({
|
|
1189
|
+
mode: import_zod.z.literal("ASSET_IDS"),
|
|
1190
|
+
scope: MediaCleanupScopeSchema,
|
|
1191
|
+
assetIds: MediaCleanupAssetIdsSchema
|
|
1192
|
+
}).strict(),
|
|
1193
|
+
import_zod.z.object({
|
|
1194
|
+
mode: import_zod.z.literal("FILTER"),
|
|
1195
|
+
scope: MediaCleanupScopeSchema,
|
|
1196
|
+
createdBefore: import_zod.z.string().datetime({ offset: true }).optional(),
|
|
1197
|
+
olderThanDays: import_zod.z.number().int().min(1).max(3650).optional(),
|
|
1198
|
+
type: import_zod.z.enum(["IMAGE", "VIDEO"]).optional(),
|
|
1199
|
+
query: import_zod.z.string().trim().min(1).max(100).optional()
|
|
1200
|
+
}).strict().superRefine((selection, context) => {
|
|
1201
|
+
if (Number(Boolean(selection.createdBefore)) + Number(selection.olderThanDays !== void 0) !== 1) {
|
|
1202
|
+
context.addIssue({ code: "custom", message: "Choose exactly one upload-age filter." });
|
|
1203
|
+
}
|
|
1204
|
+
})
|
|
1205
|
+
]);
|
|
1206
|
+
var NormalizedMediaCleanupSelectionSchema = import_zod.z.discriminatedUnion("mode", [
|
|
1207
|
+
import_zod.z.object({
|
|
1208
|
+
mode: import_zod.z.literal("ASSET_IDS"),
|
|
1209
|
+
scope: MediaCleanupScopeSchema,
|
|
1210
|
+
assetIds: MediaCleanupAssetIdsSchema
|
|
1211
|
+
}).strict(),
|
|
1212
|
+
import_zod.z.object({
|
|
1213
|
+
mode: import_zod.z.literal("FILTER"),
|
|
1214
|
+
scope: MediaCleanupScopeSchema,
|
|
1215
|
+
createdBefore: import_zod.z.string().datetime({ offset: true }),
|
|
1216
|
+
type: import_zod.z.enum(["IMAGE", "VIDEO"]).optional(),
|
|
1217
|
+
query: import_zod.z.string().trim().min(1).max(100).optional()
|
|
1218
|
+
}).strict()
|
|
1219
|
+
]);
|
|
1220
|
+
var MediaCleanupPreviewRequestSchema = import_zod.z.object({
|
|
1221
|
+
selection: MediaCleanupSelectionInputSchema
|
|
1222
|
+
}).strict();
|
|
1223
|
+
var MediaCleanupCandidateSchema = import_zod.z.object({
|
|
1224
|
+
id: import_zod.z.string().min(1),
|
|
1225
|
+
fileName: import_zod.z.string().min(1).max(255).nullable(),
|
|
1226
|
+
projectId: import_zod.z.string().min(1),
|
|
1227
|
+
projectName: import_zod.z.string().min(1).max(200),
|
|
1228
|
+
type: import_zod.z.enum(["IMAGE", "VIDEO"]),
|
|
1229
|
+
createdAt: import_zod.z.string().datetime(),
|
|
1230
|
+
sizeBytes: StorageByteCountSchema.nullable()
|
|
1231
|
+
});
|
|
1232
|
+
var MediaCleanupPreviewSchema = import_zod.z.object({
|
|
1233
|
+
selection: NormalizedMediaCleanupSelectionSchema,
|
|
1234
|
+
cutoffAt: import_zod.z.string().datetime().nullable(),
|
|
1235
|
+
candidateCount: import_zod.z.number().int().min(0).max(500),
|
|
1236
|
+
candidateIds: import_zod.z.array(import_zod.z.string().min(1)).max(500),
|
|
1237
|
+
candidates: import_zod.z.array(MediaCleanupCandidateSchema).max(500),
|
|
1238
|
+
estimatedReclaimableBytes: StorageByteCountSchema,
|
|
1239
|
+
excludedInUseCount: import_zod.z.number().int().min(0).max(Number.MAX_SAFE_INTEGER),
|
|
1240
|
+
excludedInUseBytes: StorageByteCountSchema,
|
|
1241
|
+
unknownSizeCount: import_zod.z.number().int().min(0).max(500),
|
|
1242
|
+
hasMore: import_zod.z.boolean(),
|
|
1243
|
+
candidateDigest: import_zod.z.string().regex(/^[a-f0-9]{64}$/),
|
|
1244
|
+
confirmation: import_zod.z.object({
|
|
1245
|
+
token: import_zod.z.string().min(1).max(500),
|
|
1246
|
+
expiresAt: import_zod.z.string().datetime()
|
|
1247
|
+
})
|
|
1248
|
+
});
|
|
1249
|
+
var MediaCleanupPreviewResponseSchema = successEnvelopeSchema(MediaCleanupPreviewSchema);
|
|
1250
|
+
var MediaCleanupExecuteRequestSchema = import_zod.z.object({
|
|
1251
|
+
selection: NormalizedMediaCleanupSelectionSchema,
|
|
1252
|
+
candidateDigest: import_zod.z.string().regex(/^[a-f0-9]{64}$/),
|
|
1253
|
+
confirmationToken: import_zod.z.string().min(1).max(500)
|
|
1254
|
+
}).strict();
|
|
1255
|
+
var MediaCleanupOperationStatusSchema = import_zod.z.enum([
|
|
1256
|
+
"QUEUED",
|
|
1257
|
+
"RUNNING",
|
|
1258
|
+
"COMPLETED",
|
|
1259
|
+
"COMPLETED_WITH_SKIPS"
|
|
1260
|
+
]);
|
|
1261
|
+
var MediaCleanupItemStatusSchema = import_zod.z.enum([
|
|
1262
|
+
"QUEUED",
|
|
1263
|
+
"RETRYING",
|
|
1264
|
+
"SKIPPED_IN_USE",
|
|
1265
|
+
"SKIPPED_CHANGED",
|
|
1266
|
+
"DELETED"
|
|
1267
|
+
]);
|
|
1268
|
+
var MediaCleanupExecuteResultSchema = import_zod.z.object({
|
|
1269
|
+
cleanupId: import_zod.z.string().min(1),
|
|
1270
|
+
status: MediaCleanupOperationStatusSchema,
|
|
1271
|
+
candidateCount: import_zod.z.number().int().min(0).max(500),
|
|
1272
|
+
queuedCount: import_zod.z.number().int().min(0).max(500),
|
|
1273
|
+
skippedCount: import_zod.z.number().int().min(0).max(500),
|
|
1274
|
+
estimatedReclaimableBytes: StorageByteCountSchema
|
|
1275
|
+
});
|
|
1276
|
+
var MediaCleanupExecuteResponseSchema = successEnvelopeSchema(MediaCleanupExecuteResultSchema);
|
|
1277
|
+
var MediaCleanupStatusQuerySchema = import_zod.z.object({
|
|
1278
|
+
limit: import_zod.z.coerce.number().int().min(1).max(100).default(50),
|
|
1279
|
+
cursor: import_zod.z.string().min(1).max(2048).optional()
|
|
1280
|
+
});
|
|
1281
|
+
var MediaCleanupItemResultSchema = import_zod.z.object({
|
|
1282
|
+
id: import_zod.z.string().min(1),
|
|
1283
|
+
assetId: import_zod.z.string().min(1),
|
|
1284
|
+
fileName: import_zod.z.string().min(1).max(255).nullable(),
|
|
1285
|
+
projectId: import_zod.z.string().min(1),
|
|
1286
|
+
projectName: import_zod.z.string().min(1).max(200),
|
|
1287
|
+
type: import_zod.z.enum(["IMAGE", "VIDEO"]),
|
|
1288
|
+
sizeBytes: StorageByteCountSchema.nullable(),
|
|
1289
|
+
status: MediaCleanupItemStatusSchema,
|
|
1290
|
+
queuedAt: import_zod.z.string().datetime().nullable(),
|
|
1291
|
+
retryingAt: import_zod.z.string().datetime().nullable(),
|
|
1292
|
+
skippedAt: import_zod.z.string().datetime().nullable(),
|
|
1293
|
+
deletedAt: import_zod.z.string().datetime().nullable(),
|
|
1294
|
+
failureSummary: import_zod.z.string().min(1).max(500).nullable()
|
|
1295
|
+
});
|
|
1296
|
+
var MediaCleanupStatusSchema = import_zod.z.object({
|
|
1297
|
+
cleanupId: import_zod.z.string().min(1),
|
|
1298
|
+
status: MediaCleanupOperationStatusSchema,
|
|
1299
|
+
candidateCount: import_zod.z.number().int().min(0).max(500),
|
|
1300
|
+
queuedCount: import_zod.z.number().int().min(0).max(500),
|
|
1301
|
+
retryingCount: import_zod.z.number().int().min(0).max(500),
|
|
1302
|
+
skippedCount: import_zod.z.number().int().min(0).max(500),
|
|
1303
|
+
deletedCount: import_zod.z.number().int().min(0).max(500),
|
|
1304
|
+
unknownSizeCount: import_zod.z.number().int().min(0).max(500),
|
|
1305
|
+
estimatedReclaimableBytes: StorageByteCountSchema,
|
|
1306
|
+
actualReleasedBytes: StorageByteCountSchema,
|
|
1307
|
+
createdAt: import_zod.z.string().datetime(),
|
|
1308
|
+
startedAt: import_zod.z.string().datetime().nullable(),
|
|
1309
|
+
completedAt: import_zod.z.string().datetime().nullable(),
|
|
1310
|
+
items: import_zod.z.array(MediaCleanupItemResultSchema).max(100),
|
|
1311
|
+
page: import_zod.z.object({
|
|
1312
|
+
limit: import_zod.z.number().int().min(1).max(100),
|
|
1313
|
+
nextCursor: import_zod.z.string().min(1).max(2048).nullable()
|
|
1314
|
+
})
|
|
1315
|
+
});
|
|
1316
|
+
var MediaCleanupStatusResponseSchema = successEnvelopeSchema(MediaCleanupStatusSchema);
|
|
1103
1317
|
var PublishingProviderSchema = import_zod.z.enum([
|
|
1104
1318
|
"INSTAGRAM",
|
|
1105
1319
|
"TIKTOK",
|
|
@@ -2237,6 +2451,7 @@ var BacklinkContactListResponseSchema = successEnvelopeSchema(BacklinkContactLis
|
|
|
2237
2451
|
IntegrationHealthListResponseSchema,
|
|
2238
2452
|
IntegrationHealthSchema,
|
|
2239
2453
|
LinkedInDeliveryOptionsSchema,
|
|
2454
|
+
ListedMediaAssetSchema,
|
|
2240
2455
|
MediaAssetListDataSchema,
|
|
2241
2456
|
MediaAssetListQuerySchema,
|
|
2242
2457
|
MediaAssetListResponseSchema,
|
|
@@ -2246,6 +2461,22 @@ var BacklinkContactListResponseSchema = successEnvelopeSchema(BacklinkContactLis
|
|
|
2246
2461
|
MediaAssetUploadInputSchema,
|
|
2247
2462
|
MediaAssetUploadPreparationResponseSchema,
|
|
2248
2463
|
MediaAssetUploadPreparationSchema,
|
|
2464
|
+
MediaCleanupCandidateSchema,
|
|
2465
|
+
MediaCleanupExecuteRequestSchema,
|
|
2466
|
+
MediaCleanupExecuteResponseSchema,
|
|
2467
|
+
MediaCleanupExecuteResultSchema,
|
|
2468
|
+
MediaCleanupItemResultSchema,
|
|
2469
|
+
MediaCleanupItemStatusSchema,
|
|
2470
|
+
MediaCleanupOperationStatusSchema,
|
|
2471
|
+
MediaCleanupPreviewRequestSchema,
|
|
2472
|
+
MediaCleanupPreviewResponseSchema,
|
|
2473
|
+
MediaCleanupPreviewSchema,
|
|
2474
|
+
MediaCleanupScopeSchema,
|
|
2475
|
+
MediaCleanupSelectionInputSchema,
|
|
2476
|
+
MediaCleanupStatusQuerySchema,
|
|
2477
|
+
MediaCleanupStatusResponseSchema,
|
|
2478
|
+
MediaCleanupStatusSchema,
|
|
2479
|
+
NormalizedMediaCleanupSelectionSchema,
|
|
2249
2480
|
PUBLISHING_PROVIDER_COUNT,
|
|
2250
2481
|
PlatformPostStatusSchema,
|
|
2251
2482
|
PostDeliveryModeSchema,
|
|
@@ -2318,10 +2549,18 @@ var BacklinkContactListResponseSchema = successEnvelopeSchema(BacklinkContactLis
|
|
|
2318
2549
|
SeoSearchIntentSchema,
|
|
2319
2550
|
SeoTaskDecisionSchema,
|
|
2320
2551
|
SeoTaskFormatSchema,
|
|
2552
|
+
StorageByteCountSchema,
|
|
2553
|
+
StorageSourceBreakdownSchema,
|
|
2554
|
+
StorageUsageResponseSchema,
|
|
2555
|
+
StorageUsageSchema,
|
|
2321
2556
|
TikTokDeliveryOptionsSchema,
|
|
2322
2557
|
TikTokDraftSettingsSchema,
|
|
2323
2558
|
TikTokPostSettingsSchema,
|
|
2324
2559
|
WhoAmIResponseSchema,
|
|
2560
|
+
WorkspaceListedMediaAssetSchema,
|
|
2561
|
+
WorkspaceMediaAssetListDataSchema,
|
|
2562
|
+
WorkspaceMediaAssetListQuerySchema,
|
|
2563
|
+
WorkspaceMediaAssetListResponseSchema,
|
|
2325
2564
|
YouTubePostSettingsSchema,
|
|
2326
2565
|
successEnvelopeSchema
|
|
2327
2566
|
});
|