@anthusai/papyrus 5.131.0-next.1 → 5.131.0-next.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.
|
@@ -41,6 +41,15 @@ export type ImageOperationName =
|
|
|
41
41
|
| "announcements_settings_show"
|
|
42
42
|
| "announcements_settings_set"
|
|
43
43
|
| "announcements_account_status"
|
|
44
|
+
| "announcements_review_show"
|
|
45
|
+
| "announcements_review_set"
|
|
46
|
+
| "announcements_delivery_review_set"
|
|
47
|
+
| "announcements_draft"
|
|
48
|
+
| "announcements_pinned_change"
|
|
49
|
+
| "announcements_release"
|
|
50
|
+
| "announcements_unlock"
|
|
51
|
+
| "announcements_correct"
|
|
52
|
+
| "announcements_withdraw"
|
|
44
53
|
| "ratings_set"
|
|
45
54
|
;
|
|
46
55
|
|
|
@@ -1110,7 +1119,7 @@ export type AnnouncementsSettingsShowInput = Record<string, unknown>;
|
|
|
1110
1119
|
export type AnnouncementsSettingsShowResult = {
|
|
1111
1120
|
settings: {
|
|
1112
1121
|
mode: "off" | "dry_run" | "on";
|
|
1113
|
-
/** minStars, storyTypes and
|
|
1122
|
+
/** minStars, storyTypes, sections and requireReviewedSource: what is announced. */
|
|
1114
1123
|
rules?: Record<string, unknown>;
|
|
1115
1124
|
/** Dollars for each X billing cycle. No default. */
|
|
1116
1125
|
budget?: number | null;
|
|
@@ -1135,6 +1144,8 @@ export type AnnouncementsSettingsSetInput = {
|
|
|
1135
1144
|
storyTypes?: string[];
|
|
1136
1145
|
/** Limit to these sections. */
|
|
1137
1146
|
sections?: string[];
|
|
1147
|
+
/** On: an Announcement is made only for a Story a person has reviewed on its current version. Off by default. */
|
|
1148
|
+
requireReviewedSource?: boolean;
|
|
1138
1149
|
/** Dollars for each X billing cycle, such as 10.00. No default. */
|
|
1139
1150
|
budget?: string;
|
|
1140
1151
|
/** The day of the month your X billing cycle starts. */
|
|
@@ -1148,7 +1159,7 @@ export type AnnouncementsSettingsSetInput = {
|
|
|
1148
1159
|
export type AnnouncementsSettingsSetResult = {
|
|
1149
1160
|
settings: {
|
|
1150
1161
|
mode: "off" | "dry_run" | "on";
|
|
1151
|
-
/** minStars, storyTypes and
|
|
1162
|
+
/** minStars, storyTypes, sections and requireReviewedSource: what is announced. */
|
|
1152
1163
|
rules?: Record<string, unknown>;
|
|
1153
1164
|
/** Dollars for each X billing cycle. No default. */
|
|
1154
1165
|
budget?: number | null;
|
|
@@ -1176,6 +1187,122 @@ export type AnnouncementsAccountStatusResult = {
|
|
|
1176
1187
|
pricesAsOf?: string;
|
|
1177
1188
|
};
|
|
1178
1189
|
|
|
1190
|
+
/** Show the publication's announcement review and each override, and what a channel and kind would get. */
|
|
1191
|
+
export type AnnouncementsReviewShowInput = {
|
|
1192
|
+
/** Narrow to one channel, such as linkedin. */
|
|
1193
|
+
channel?: string;
|
|
1194
|
+
/** Narrow to one kind of Announcement, such as roundup or story_published. */
|
|
1195
|
+
kind?: string;
|
|
1196
|
+
/** Narrow to one newsletter list. */
|
|
1197
|
+
list?: string;
|
|
1198
|
+
};
|
|
1199
|
+
|
|
1200
|
+
export type AnnouncementsReviewShowResult = {
|
|
1201
|
+
policyVersion: number;
|
|
1202
|
+
approval?: string | null;
|
|
1203
|
+
rung: string;
|
|
1204
|
+
overrides: Record<string, unknown>[];
|
|
1205
|
+
/** With a channel and kind: the approval, the rung and where it came from. */
|
|
1206
|
+
chosen?: Record<string, unknown> | null;
|
|
1207
|
+
};
|
|
1208
|
+
|
|
1209
|
+
/** Set the announcement review for the publication, or for one channel, kind or list. Applies to Announcements made afterwards. */
|
|
1210
|
+
export type AnnouncementsReviewSetInput = {
|
|
1211
|
+
/** none: fully automatic. soft: a person may edit or stop it before its lock time; silence lets it go. hard: a person must release it. inherit takes an override away, so that scope follows the next wider one. */
|
|
1212
|
+
approval: "none" | "soft" | "hard" | "inherit";
|
|
1213
|
+
/** Narrow to one channel, such as linkedin. */
|
|
1214
|
+
channel?: string;
|
|
1215
|
+
/** Narrow to one kind of Announcement, such as roundup or story_published. */
|
|
1216
|
+
kind?: string;
|
|
1217
|
+
/** Narrow to one newsletter list. */
|
|
1218
|
+
list?: string;
|
|
1219
|
+
/** Why, in plain words. It is recorded with who and when. */
|
|
1220
|
+
reason: string;
|
|
1221
|
+
};
|
|
1222
|
+
|
|
1223
|
+
export type AnnouncementsReviewSetResult = {
|
|
1224
|
+
policyVersion: number;
|
|
1225
|
+
approval?: string | null;
|
|
1226
|
+
rung?: string;
|
|
1227
|
+
scope?: Record<string, unknown> | null;
|
|
1228
|
+
changed: boolean;
|
|
1229
|
+
};
|
|
1230
|
+
|
|
1231
|
+
/** Change the review of one Delivery that has not gone. The publication's policy and the other Deliveries do not change. */
|
|
1232
|
+
export type AnnouncementsDeliveryReviewSetInput = {
|
|
1233
|
+
/** The Delivery's id. */
|
|
1234
|
+
delivery: string;
|
|
1235
|
+
/** none: fully automatic. soft: a person may edit or stop it before its lock time; silence lets it go. hard: a person must release it. */
|
|
1236
|
+
approval: "none" | "soft" | "hard";
|
|
1237
|
+
};
|
|
1238
|
+
|
|
1239
|
+
export type AnnouncementsDeliveryReviewSetResult = {
|
|
1240
|
+
id: string;
|
|
1241
|
+
approval: string;
|
|
1242
|
+
approvalPolicy: string;
|
|
1243
|
+
approvedBy?: string | null;
|
|
1244
|
+
};
|
|
1245
|
+
|
|
1246
|
+
/** Draft a Delivery, add a candidate text or picture, or edit a block nobody pinned. */
|
|
1247
|
+
export type AnnouncementsDraftInput = {
|
|
1248
|
+
/** The Delivery's id. */
|
|
1249
|
+
delivery: string;
|
|
1250
|
+
};
|
|
1251
|
+
|
|
1252
|
+
export type AnnouncementsDraftResult = {
|
|
1253
|
+
id: string;
|
|
1254
|
+
};
|
|
1255
|
+
|
|
1256
|
+
/** Change or unpin a block a person pinned. */
|
|
1257
|
+
export type AnnouncementsPinnedChangeInput = {
|
|
1258
|
+
/** The Delivery's id. */
|
|
1259
|
+
delivery: string;
|
|
1260
|
+
};
|
|
1261
|
+
|
|
1262
|
+
export type AnnouncementsPinnedChangeResult = {
|
|
1263
|
+
id: string;
|
|
1264
|
+
};
|
|
1265
|
+
|
|
1266
|
+
/** Release a Delivery: hand it to its channel now. */
|
|
1267
|
+
export type AnnouncementsReleaseInput = {
|
|
1268
|
+
/** The Delivery's id. */
|
|
1269
|
+
delivery: string;
|
|
1270
|
+
};
|
|
1271
|
+
|
|
1272
|
+
export type AnnouncementsReleaseResult = {
|
|
1273
|
+
id: string;
|
|
1274
|
+
};
|
|
1275
|
+
|
|
1276
|
+
/** Unlock a Delivery after its lock time, so it can be edited again. */
|
|
1277
|
+
export type AnnouncementsUnlockInput = {
|
|
1278
|
+
/** The Delivery's id. */
|
|
1279
|
+
delivery: string;
|
|
1280
|
+
};
|
|
1281
|
+
|
|
1282
|
+
export type AnnouncementsUnlockResult = {
|
|
1283
|
+
id: string;
|
|
1284
|
+
};
|
|
1285
|
+
|
|
1286
|
+
/** Correct a Delivery with a new public text: the next generation, which supersedes the one that went. */
|
|
1287
|
+
export type AnnouncementsCorrectInput = {
|
|
1288
|
+
/** The Delivery's id. */
|
|
1289
|
+
delivery: string;
|
|
1290
|
+
};
|
|
1291
|
+
|
|
1292
|
+
export type AnnouncementsCorrectResult = {
|
|
1293
|
+
id: string;
|
|
1294
|
+
};
|
|
1295
|
+
|
|
1296
|
+
/** Withdraw a Delivery that went: this deletes a public post. */
|
|
1297
|
+
export type AnnouncementsWithdrawInput = {
|
|
1298
|
+
/** The Delivery's id. */
|
|
1299
|
+
delivery: string;
|
|
1300
|
+
};
|
|
1301
|
+
|
|
1302
|
+
export type AnnouncementsWithdrawResult = {
|
|
1303
|
+
id: string;
|
|
1304
|
+
};
|
|
1305
|
+
|
|
1179
1306
|
/** Give a Story a star rating, 1 to 5. An agent may give only three or four stars, and only to a Story nobody has rated. */
|
|
1180
1307
|
export type RatingsSetInput = {
|
|
1181
1308
|
/** The lineage id of the Story. */
|
|
@@ -1231,6 +1358,15 @@ export interface ImageOperations {
|
|
|
1231
1358
|
announcements_settings_show: { input: AnnouncementsSettingsShowInput; result: AnnouncementsSettingsShowResult };
|
|
1232
1359
|
announcements_settings_set: { input: AnnouncementsSettingsSetInput; result: AnnouncementsSettingsSetResult };
|
|
1233
1360
|
announcements_account_status: { input: AnnouncementsAccountStatusInput; result: AnnouncementsAccountStatusResult };
|
|
1361
|
+
announcements_review_show: { input: AnnouncementsReviewShowInput; result: AnnouncementsReviewShowResult };
|
|
1362
|
+
announcements_review_set: { input: AnnouncementsReviewSetInput; result: AnnouncementsReviewSetResult };
|
|
1363
|
+
announcements_delivery_review_set: { input: AnnouncementsDeliveryReviewSetInput; result: AnnouncementsDeliveryReviewSetResult };
|
|
1364
|
+
announcements_draft: { input: AnnouncementsDraftInput; result: AnnouncementsDraftResult };
|
|
1365
|
+
announcements_pinned_change: { input: AnnouncementsPinnedChangeInput; result: AnnouncementsPinnedChangeResult };
|
|
1366
|
+
announcements_release: { input: AnnouncementsReleaseInput; result: AnnouncementsReleaseResult };
|
|
1367
|
+
announcements_unlock: { input: AnnouncementsUnlockInput; result: AnnouncementsUnlockResult };
|
|
1368
|
+
announcements_correct: { input: AnnouncementsCorrectInput; result: AnnouncementsCorrectResult };
|
|
1369
|
+
announcements_withdraw: { input: AnnouncementsWithdrawInput; result: AnnouncementsWithdrawResult };
|
|
1234
1370
|
ratings_set: { input: RatingsSetInput; result: RatingsSetResult };
|
|
1235
1371
|
}
|
|
1236
1372
|
|
|
@@ -1274,6 +1410,15 @@ export const IMAGE_OPERATIONS = {
|
|
|
1274
1410
|
announcements_settings_show: { effect: "read", agentAllowed: true, agentRung: "observe", agentRefusal: "human_required", group: "announcements", command: "papyrus announcements settings show" },
|
|
1275
1411
|
announcements_settings_set: { effect: "write", agentAllowed: false, agentRung: "person", agentRefusal: "blocked", group: "announcements", command: "papyrus announcements settings set" },
|
|
1276
1412
|
announcements_account_status: { effect: "read", agentAllowed: true, agentRung: "observe", agentRefusal: "human_required", group: "announcements", command: "papyrus announcements account status" },
|
|
1413
|
+
announcements_review_show: { effect: "read", agentAllowed: true, agentRung: "observe", agentRefusal: "human_required", group: "announcements", command: "papyrus announcements review show" },
|
|
1414
|
+
announcements_review_set: { effect: "write", agentAllowed: false, agentRung: "person", agentRefusal: "blocked", group: "announcements", command: "papyrus announcements review set" },
|
|
1415
|
+
announcements_delivery_review_set: { effect: "write", agentAllowed: false, agentRung: "person", agentRefusal: "human_required", group: "announcements", command: "papyrus announcements delivery review" },
|
|
1416
|
+
announcements_draft: { effect: "write", agentAllowed: true, agentRung: "draft", agentRefusal: "human_required", group: "announcements", command: "papyrus announcements draft" },
|
|
1417
|
+
announcements_pinned_change: { effect: "write", agentAllowed: false, agentRung: "person", agentRefusal: "blocked", group: "announcements", command: "papyrus announcements pinned" },
|
|
1418
|
+
announcements_release: { effect: "write", agentAllowed: true, agentRung: "publish_auto", agentRefusal: "human_required", group: "announcements", command: "papyrus announcements release" },
|
|
1419
|
+
announcements_unlock: { effect: "write", agentAllowed: false, agentRung: "person", agentRefusal: "human_required", group: "announcements", command: "papyrus announcements unlock" },
|
|
1420
|
+
announcements_correct: { effect: "write", agentAllowed: true, agentRung: "prepare", agentRefusal: "human_required", group: "announcements", command: "papyrus announcements correct" },
|
|
1421
|
+
announcements_withdraw: { effect: "write", agentAllowed: false, agentRung: "person", agentRefusal: "human_required", group: "announcements", command: "papyrus announcements withdraw" },
|
|
1277
1422
|
ratings_set: { effect: "write", agentAllowed: true, agentRung: "draft", agentRefusal: "human_required", group: "ratings", command: "papyrus ratings set" },
|
|
1278
1423
|
} as const;
|
|
1279
1424
|
|
package/package.json
CHANGED
package/routes.manifest.json
CHANGED