Skip to content

Commit a9fe44e

Browse files
chore: Update lexicons (#106)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent dccefa7 commit a9fe44e

File tree

1 file changed

+182
-2
lines changed

1 file changed

+182
-2
lines changed

packages/lexicons/src/lib/lexicons.ts

Lines changed: 182 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
* @module
66
* Contains type declarations for Bluesky lexicons
77
* @generated
8-
* Generated on: 2025-09-27T03:31:13.456Z
8+
* Generated on: 2025-10-05T03:37:55.867Z
99
* Version: main
10-
* Source: https://github.com/bluesky-social/atproto/tree/7f38ee03c01357686a4ce54cdf8eed4e37074a58/lexicons
10+
* Source: https://github.com/bluesky-social/atproto/tree/591de19524639341a7dd64ee75c482c645c186fd/lexicons
1111
*/
1212

1313
/** Base type with optional type field */
@@ -5450,6 +5450,32 @@ export declare namespace ToolsOzoneHostingGetAccountHistory {
54505450
interface PasswordUpdated extends TypedBase {}
54515451
}
54525452

5453+
/** Cancel all pending scheduled moderation actions for specified subjects */
5454+
export declare namespace ToolsOzoneModerationCancelScheduledActions {
5455+
interface Params extends TypedBase {}
5456+
interface Input extends TypedBase {
5457+
/**
5458+
* Array of DID subjects to cancel scheduled actions for
5459+
* Maximum array length: 100
5460+
*/
5461+
subjects: At.DID[];
5462+
/** Optional comment describing the reason for cancellation */
5463+
comment?: string;
5464+
}
5465+
type Output = CancellationResults;
5466+
interface CancellationResults extends TypedBase {
5467+
/** DIDs for which cancellation failed with error details */
5468+
failed: FailedCancellation[];
5469+
/** DIDs for which all pending scheduled actions were successfully cancelled */
5470+
succeeded: At.DID[];
5471+
}
5472+
interface FailedCancellation extends TypedBase {
5473+
did: At.DID;
5474+
error: string;
5475+
errorCode?: string;
5476+
}
5477+
}
5478+
54535479
export declare namespace ToolsOzoneModerationDefs {
54545480
/** Logs account status related events on a repo subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking. */
54555481
interface AccountEvent extends TypedBase {
@@ -5525,6 +5551,10 @@ export declare namespace ToolsOzoneModerationDefs {
55255551
details?: TypeUnion<ImageDetails | VideoDetails>;
55265552
moderation?: Moderation;
55275553
}
5554+
/** Logs cancellation of a scheduled takedown action for an account. */
5555+
interface CancelScheduledTakedownEvent extends TypedBase {
5556+
comment?: string;
5557+
}
55285558
/** Logs identity related events on a repo subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking. */
55295559
interface IdentityEvent extends TypedBase {
55305560
timestamp: string;
@@ -5655,6 +5685,7 @@ export declare namespace ToolsOzoneModerationDefs {
56555685
| AccountEvent
56565686
| AgeAssuranceEvent
56575687
| AgeAssuranceOverrideEvent
5688+
| CancelScheduledTakedownEvent
56585689
| IdentityEvent
56595690
| ModEventAcknowledge
56605691
| ModEventComment
@@ -5674,6 +5705,7 @@ export declare namespace ToolsOzoneModerationDefs {
56745705
| ModEventUnmuteReporter
56755706
| RecordEvent
56765707
| RevokeAccountCredentialsEvent
5708+
| ScheduleTakedownEvent
56775709
>;
56785710
id: number;
56795711
subject: TypeUnion<
@@ -5693,6 +5725,7 @@ export declare namespace ToolsOzoneModerationDefs {
56935725
| AccountEvent
56945726
| AgeAssuranceEvent
56955727
| AgeAssuranceOverrideEvent
5728+
| CancelScheduledTakedownEvent
56965729
| IdentityEvent
56975730
| ModEventAcknowledge
56985731
| ModEventComment
@@ -5712,6 +5745,7 @@ export declare namespace ToolsOzoneModerationDefs {
57125745
| ModEventUnmuteReporter
57135746
| RecordEvent
57145747
| RevokeAccountCredentialsEvent
5748+
| ScheduleTakedownEvent
57155749
>;
57165750
id: number;
57175751
subject: TypeUnion<
@@ -5841,6 +5875,46 @@ export declare namespace ToolsOzoneModerationDefs {
58415875
/** Comment describing the reason for the revocation. */
58425876
comment: string;
58435877
}
5878+
/** View of a scheduled moderation action */
5879+
interface ScheduledActionView extends TypedBase {
5880+
/** Type of action to be executed */
5881+
action: "takedown" | (string & {});
5882+
/** When the scheduled action was created */
5883+
createdAt: string;
5884+
/** DID of the user who created this scheduled action */
5885+
createdBy: At.DID;
5886+
/** Subject DID for the action */
5887+
did: At.DID;
5888+
/** Auto-incrementing row ID */
5889+
id: number;
5890+
/** Current status of the scheduled action */
5891+
status: "cancelled" | "executed" | "failed" | "pending" | (string & {});
5892+
/** Serialized event object that will be propagated to the event when performed */
5893+
eventData?: unknown;
5894+
/** Earliest time to execute the action (for randomized scheduling) */
5895+
executeAfter?: string;
5896+
/** Exact time to execute the action */
5897+
executeAt?: string;
5898+
/** Latest time to execute the action (for randomized scheduling) */
5899+
executeUntil?: string;
5900+
/** ID of the moderation event created when action was successfully executed */
5901+
executionEventId?: number;
5902+
/** When the action was last attempted to be executed */
5903+
lastExecutedAt?: string;
5904+
/** Reason for the last execution failure */
5905+
lastFailureReason?: string;
5906+
/** Whether execution time should be randomized within the specified range */
5907+
randomizeExecution?: boolean;
5908+
/** When the scheduled action was last updated */
5909+
updatedAt?: string;
5910+
}
5911+
/** Logs a scheduled takedown action for an account. */
5912+
interface ScheduleTakedownEvent extends TypedBase {
5913+
comment?: string;
5914+
executeAfter?: string;
5915+
executeAt?: string;
5916+
executeUntil?: string;
5917+
}
58445918
type SubjectReviewState =
58455919
| "#reviewClosed"
58465920
| "#reviewEscalated"
@@ -5928,6 +6002,7 @@ export declare namespace ToolsOzoneModerationEmitEvent {
59286002
| ToolsOzoneModerationDefs.AccountEvent
59296003
| ToolsOzoneModerationDefs.AgeAssuranceEvent
59306004
| ToolsOzoneModerationDefs.AgeAssuranceOverrideEvent
6005+
| ToolsOzoneModerationDefs.CancelScheduledTakedownEvent
59316006
| ToolsOzoneModerationDefs.IdentityEvent
59326007
| ToolsOzoneModerationDefs.ModEventAcknowledge
59336008
| ToolsOzoneModerationDefs.ModEventComment
@@ -5947,6 +6022,7 @@ export declare namespace ToolsOzoneModerationEmitEvent {
59476022
| ToolsOzoneModerationDefs.ModEventUnmuteReporter
59486023
| ToolsOzoneModerationDefs.RecordEvent
59496024
| ToolsOzoneModerationDefs.RevokeAccountCredentialsEvent
6025+
| ToolsOzoneModerationDefs.ScheduleTakedownEvent
59506026
>;
59516027
subject: TypeUnion<
59526028
ComAtprotoAdminDefs.RepoRef | ComAtprotoRepoStrongRef.Main
@@ -5990,6 +6066,7 @@ export declare namespace ToolsOzoneModerationGetAccountTimeline {
59906066
| "tools.ozone.moderation.defs#accountEvent"
59916067
| "tools.ozone.moderation.defs#ageAssuranceEvent"
59926068
| "tools.ozone.moderation.defs#ageAssuranceOverrideEvent"
6069+
| "tools.ozone.moderation.defs#cancelScheduledTakedownEvent"
59936070
| "tools.ozone.moderation.defs#identityEvent"
59946071
| "tools.ozone.moderation.defs#modEventAcknowledge"
59956072
| "tools.ozone.moderation.defs#modEventComment"
@@ -6009,6 +6086,7 @@ export declare namespace ToolsOzoneModerationGetAccountTimeline {
60096086
| "tools.ozone.moderation.defs#modEventUnmuteReporter"
60106087
| "tools.ozone.moderation.defs#recordEvent"
60116088
| "tools.ozone.moderation.defs#revokeAccountCredentialsEvent"
6089+
| "tools.ozone.moderation.defs#scheduleTakedownEvent"
60126090
| "tools.ozone.moderation.defs#timelineEventPlcCreate"
60136091
| "tools.ozone.moderation.defs#timelineEventPlcOperation"
60146092
| "tools.ozone.moderation.defs#timelineEventPlcTombstone"
@@ -6107,6 +6185,47 @@ export declare namespace ToolsOzoneModerationGetSubjects {
61076185
}
61086186
}
61096187

6188+
/** List scheduled moderation actions with optional filtering */
6189+
export declare namespace ToolsOzoneModerationListScheduledActions {
6190+
interface Params extends TypedBase {}
6191+
interface Input extends TypedBase {
6192+
/**
6193+
* Filter actions by status
6194+
* Minimum array length: 1
6195+
*/
6196+
statuses: (
6197+
| "cancelled"
6198+
| "executed"
6199+
| "failed"
6200+
| "pending"
6201+
| (string & {})
6202+
)[];
6203+
/** Cursor for pagination */
6204+
cursor?: string;
6205+
/** Filter actions scheduled to execute before this time */
6206+
endsBefore?: string;
6207+
/**
6208+
* Maximum number of results to return
6209+
* Minimum: 1
6210+
* Maximum: 100
6211+
* \@default 50
6212+
*/
6213+
limit?: number;
6214+
/** Filter actions scheduled to execute after this time */
6215+
startsAfter?: string;
6216+
/**
6217+
* Filter actions for specific DID subjects
6218+
* Maximum array length: 100
6219+
*/
6220+
subjects?: At.DID[];
6221+
}
6222+
interface Output extends TypedBase {
6223+
actions: ToolsOzoneModerationDefs.ScheduledActionView[];
6224+
/** Cursor for next page of results */
6225+
cursor?: string;
6226+
}
6227+
}
6228+
61106229
/** List moderation events related to a subject. */
61116230
export declare namespace ToolsOzoneModerationQueryEvents {
61126231
interface Params extends TypedBase {
@@ -6280,6 +6399,55 @@ export declare namespace ToolsOzoneModerationQueryStatuses {
62806399
}
62816400
}
62826401

6402+
/** Schedule a moderation action to be executed at a future time */
6403+
export declare namespace ToolsOzoneModerationScheduleAction {
6404+
interface Params extends TypedBase {}
6405+
interface Input extends TypedBase {
6406+
action: TypeUnion<Takedown>;
6407+
createdBy: At.DID;
6408+
scheduling: SchedulingConfig;
6409+
/**
6410+
* Array of DID subjects to schedule the action for
6411+
* Maximum array length: 100
6412+
*/
6413+
subjects: At.DID[];
6414+
/** This will be propagated to the moderation event when it is applied */
6415+
modTool?: ToolsOzoneModerationDefs.ModTool;
6416+
}
6417+
type Output = ScheduledActionResults;
6418+
interface FailedScheduling extends TypedBase {
6419+
error: string;
6420+
subject: At.DID;
6421+
errorCode?: string;
6422+
}
6423+
interface ScheduledActionResults extends TypedBase {
6424+
failed: FailedScheduling[];
6425+
succeeded: At.DID[];
6426+
}
6427+
/** Configuration for when the action should be executed */
6428+
interface SchedulingConfig extends TypedBase {
6429+
/** Earliest time to execute the action (for randomized scheduling) */
6430+
executeAfter?: string;
6431+
/** Exact time to execute the action */
6432+
executeAt?: string;
6433+
/** Latest time to execute the action (for randomized scheduling) */
6434+
executeUntil?: string;
6435+
}
6436+
/** Schedule a takedown action */
6437+
interface Takedown extends TypedBase {
6438+
/** If true, all other reports on content authored by this account will be resolved (acknowledged). */
6439+
acknowledgeAccountSubjects?: boolean;
6440+
comment?: string;
6441+
/** Indicates how long the takedown should be in effect before automatically expiring. */
6442+
durationInHours?: number;
6443+
/**
6444+
* Names/Keywords of the policies that drove the decision.
6445+
* Maximum array length: 5
6446+
*/
6447+
policies?: string[];
6448+
}
6449+
}
6450+
62836451
/** Find repositories based on a search term. */
62846452
export declare namespace ToolsOzoneModerationSearchRepos {
62856453
interface Params extends TypedBase {
@@ -7949,10 +8117,22 @@ export declare interface Procedures {
79498117
input: ToolsOzoneCommunicationUpdateTemplate.Input;
79508118
output: ToolsOzoneCommunicationUpdateTemplate.Output;
79518119
};
8120+
"tools.ozone.moderation.cancelScheduledActions": {
8121+
input: ToolsOzoneModerationCancelScheduledActions.Input;
8122+
output: ToolsOzoneModerationCancelScheduledActions.Output;
8123+
};
79528124
"tools.ozone.moderation.emitEvent": {
79538125
input: ToolsOzoneModerationEmitEvent.Input;
79548126
output: ToolsOzoneModerationEmitEvent.Output;
79558127
};
8128+
"tools.ozone.moderation.listScheduledActions": {
8129+
input: ToolsOzoneModerationListScheduledActions.Input;
8130+
output: ToolsOzoneModerationListScheduledActions.Output;
8131+
};
8132+
"tools.ozone.moderation.scheduleAction": {
8133+
input: ToolsOzoneModerationScheduleAction.Input;
8134+
output: ToolsOzoneModerationScheduleAction.Output;
8135+
};
79568136
"tools.ozone.safelink.addRule": {
79578137
input: ToolsOzoneSafelinkAddRule.Input;
79588138
output: ToolsOzoneSafelinkAddRule.Output;

0 commit comments

Comments
 (0)