import { l } from '@atproto/lex'; import * as LabelerDefs from './defs.defs.js'; import * as LabelDefs from '../../../com/atproto/label/defs.defs.js'; import * as ModerationDefs from '../../../com/atproto/moderation/defs.defs.js'; declare const $nsid = "app.bsky.labeler.service"; export { $nsid }; /** A declaration of the existence of labeler service. */ type Main = { $type: 'app.bsky.labeler.service'; policies: LabelerDefs.LabelerPolicies; labels?: l.$Typed | l.Unknown$TypedObject; createdAt: l.DatetimeString; /** * The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed. */ reasonTypes?: ModerationDefs.ReasonType[]; /** * The set of subject types (account, record, etc) this service accepts reports on. */ subjectTypes?: ModerationDefs.SubjectType[]; /** * Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type. */ subjectCollections?: l.NsidString[]; }; export type { Main }; /** A declaration of the existence of labeler service. */ declare const main: l.RecordSchema<"literal:self", "app.bsky.labeler.service", l.Validator, Omit>>; export { main }; export declare const $isTypeOf: (value: TValue) => value is l.TypedRecord<"app.bsky.labeler.service", TValue>, $build: { (input: Omit, "$type">): { policies: LabelerDefs.LabelerPolicies; labels?: (l.$Typed | l.Unknown$TypedObject) | undefined; reasonTypes?: ModerationDefs.ReasonType[] /** * The set of subject types (account, record, etc) this service accepts reports on. */ | undefined; subjectTypes?: ModerationDefs.SubjectType[] /** * Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type. */ | undefined; subjectCollections?: l.NsidString[] | undefined; createdAt: l.DatetimeString; $type: "app.bsky.labeler.service"; }; (input: Omit, "$type">): { policies: LabelerDefs.LabelerPolicies; labels?: (l.$Typed | l.Unknown$TypedObject) | undefined; reasonTypes?: ModerationDefs.ReasonType[] /** * The set of subject types (account, record, etc) this service accepts reports on. */ | undefined; subjectTypes?: ModerationDefs.SubjectType[] /** * Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type. */ | undefined; subjectCollections?: l.NsidString[] | undefined; createdAt: l.DatetimeString; $type: "app.bsky.labeler.service"; }; }, $type: "app.bsky.labeler.service"; export declare const $assert: (input: unknown, options?: l.ValidateOptions) => asserts input is { policies: LabelerDefs.LabelerPolicies; labels?: (l.$Typed | l.Unknown$TypedObject) | undefined; reasonTypes?: ModerationDefs.ReasonType[] /** * The set of subject types (account, record, etc) this service accepts reports on. */ | undefined; subjectTypes?: ModerationDefs.SubjectType[] /** * Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type. */ | undefined; subjectCollections?: l.NsidString[] | undefined; createdAt: l.DatetimeString; $type: "app.bsky.labeler.service"; }, $check: (input: unknown, options?: l.ValidateOptions) => void, $cast: (input: I, options?: l.ValidateOptions) => I & { policies: LabelerDefs.LabelerPolicies; labels?: (l.$Typed | l.Unknown$TypedObject) | undefined; reasonTypes?: ModerationDefs.ReasonType[] /** * The set of subject types (account, record, etc) this service accepts reports on. */ | undefined; subjectTypes?: ModerationDefs.SubjectType[] /** * Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type. */ | undefined; subjectCollections?: l.NsidString[] | undefined; createdAt: l.DatetimeString; $type: "app.bsky.labeler.service"; }, $ifMatches: (input: I, options?: l.ValidateOptions) => (I & { policies: LabelerDefs.LabelerPolicies; labels?: (l.$Typed | l.Unknown$TypedObject) | undefined; reasonTypes?: ModerationDefs.ReasonType[] /** * The set of subject types (account, record, etc) this service accepts reports on. */ | undefined; subjectTypes?: ModerationDefs.SubjectType[] /** * Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type. */ | undefined; subjectCollections?: l.NsidString[] | undefined; createdAt: l.DatetimeString; $type: "app.bsky.labeler.service"; }) | undefined, $matches: (input: I, options?: l.ValidateOptions) => input is I & { policies: LabelerDefs.LabelerPolicies; labels?: (l.$Typed | l.Unknown$TypedObject) | undefined; reasonTypes?: ModerationDefs.ReasonType[] /** * The set of subject types (account, record, etc) this service accepts reports on. */ | undefined; subjectTypes?: ModerationDefs.SubjectType[] /** * Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type. */ | undefined; subjectCollections?: l.NsidString[] | undefined; createdAt: l.DatetimeString; $type: "app.bsky.labeler.service"; }, $parse: (input: unknown, options?: l.ParseOptions) => { policies: LabelerDefs.LabelerPolicies; labels?: (l.$Typed | l.Unknown$TypedObject) | undefined; reasonTypes?: ModerationDefs.ReasonType[] /** * The set of subject types (account, record, etc) this service accepts reports on. */ | undefined; subjectTypes?: ModerationDefs.SubjectType[] /** * Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type. */ | undefined; subjectCollections?: l.NsidString[] | undefined; createdAt: l.DatetimeString; $type: "app.bsky.labeler.service"; }, $safeParse: (input: unknown, options?: l.ParseOptions) => l.ValidationResult<{ policies: LabelerDefs.LabelerPolicies; labels?: (l.$Typed | l.Unknown$TypedObject) | undefined; reasonTypes?: ModerationDefs.ReasonType[] /** * The set of subject types (account, record, etc) this service accepts reports on. */ | undefined; subjectTypes?: ModerationDefs.SubjectType[] /** * Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type. */ | undefined; subjectCollections?: l.NsidString[] | undefined; createdAt: l.DatetimeString; $type: "app.bsky.labeler.service"; }>, $validate: (input: I, options?: l.ValidateOptions) => I & { policies: LabelerDefs.LabelerPolicies; labels?: (l.$Typed | l.Unknown$TypedObject) | undefined; reasonTypes?: ModerationDefs.ReasonType[] /** * The set of subject types (account, record, etc) this service accepts reports on. */ | undefined; subjectTypes?: ModerationDefs.SubjectType[] /** * Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type. */ | undefined; subjectCollections?: l.NsidString[] | undefined; createdAt: l.DatetimeString; $type: "app.bsky.labeler.service"; }, $safeValidate: (input: I, options?: l.ValidateOptions) => l.ValidationResult | l.Unknown$TypedObject) | undefined; reasonTypes?: ModerationDefs.ReasonType[] /** * The set of subject types (account, record, etc) this service accepts reports on. */ | undefined; subjectTypes?: ModerationDefs.SubjectType[] /** * Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type. */ | undefined; subjectCollections?: l.NsidString[] | undefined; createdAt: l.DatetimeString; $type: "app.bsky.labeler.service"; }>; //# sourceMappingURL=service.defs.d.ts.map