a collection of lightweight TypeScript packages for AT Protocol, the protocol powering Bluesky
atproto bluesky typescript npm
101
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: pull latest Bluesky lexicons

Mary fa6146b9 50e6a0ef

+1175 -10
+7
.changeset/cold-wings-strive.md
··· 1 + --- 2 + '@atcute/atproto': patch 3 + '@atcute/bluesky': patch 4 + '@atcute/ozone': patch 5 + --- 6 + 7 + pull latest Bluesky lexicons
+1 -1
lexdocs/bluesky/README.md
··· 1 - https://github.com/bluesky-social/atproto/tree/8a0f19039946740f09baab4e13c1a51f7b3eb32a/lexicons/ 1 + https://github.com/bluesky-social/atproto/tree/88c136427451a20d21812a1aa88a70cf21904138/lexicons/
+5 -1
lexdocs/bluesky/app/bsky/notification/registerPush.json
··· 17 17 "type": "string", 18 18 "knownValues": ["ios", "android", "web"] 19 19 }, 20 - "appId": { "type": "string" } 20 + "appId": { "type": "string" }, 21 + "ageRestricted": { 22 + "type": "boolean", 23 + "description": "Set to true when the actor is age restricted" 24 + } 21 25 } 22 26 } 23 27 }
+58
lexdocs/bluesky/app/bsky/unspecced/defs.json
··· 114 114 "properties": { 115 115 "author": { "type": "ref", "ref": "app.bsky.feed.defs#blockedAuthor" } 116 116 } 117 + }, 118 + "ageAssuranceState": { 119 + "type": "object", 120 + "description": "The computed state of the age assurance process, returned to the user in question on certain authenticated requests.", 121 + "required": ["status"], 122 + "properties": { 123 + "lastInitiatedAt": { 124 + "type": "string", 125 + "format": "datetime", 126 + "description": "The timestamp when this state was last updated." 127 + }, 128 + "status": { 129 + "type": "string", 130 + "description": "The status of the age assurance process.", 131 + "knownValues": ["unknown", "pending", "assured", "blocked"] 132 + } 133 + } 134 + }, 135 + "ageAssuranceEvent": { 136 + "type": "object", 137 + "description": "Object used to store age assurance data in stash.", 138 + "required": ["createdAt", "status", "attemptId"], 139 + "properties": { 140 + "createdAt": { 141 + "type": "string", 142 + "format": "datetime", 143 + "description": "The date and time of this write operation." 144 + }, 145 + "status": { 146 + "type": "string", 147 + "description": "The status of the age assurance process.", 148 + "knownValues": ["unknown", "pending", "assured"] 149 + }, 150 + "attemptId": { 151 + "type": "string", 152 + "description": "The unique identifier for this instance of the age assurance flow, in UUID format." 153 + }, 154 + "email": { 155 + "type": "string", 156 + "description": "The email used for AA." 157 + }, 158 + "initIp": { 159 + "type": "string", 160 + "description": "The IP address used when initiating the AA flow." 161 + }, 162 + "initUa": { 163 + "type": "string", 164 + "description": "The user agent used when initiating the AA flow." 165 + }, 166 + "completeIp": { 167 + "type": "string", 168 + "description": "The IP address used when completing the AA flow." 169 + }, 170 + "completeUa": { 171 + "type": "string", 172 + "description": "The user agent used when completing the AA flow." 173 + } 174 + } 117 175 } 118 176 } 119 177 }
+17
lexdocs/bluesky/app/bsky/unspecced/getAgeAssuranceState.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "app.bsky.unspecced.getAgeAssuranceState", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "description": "Returns the current state of the age assurance process for an account. This is used to check if the user has completed age assurance or if further action is required.", 8 + "output": { 9 + "encoding": "application/json", 10 + "schema": { 11 + "type": "ref", 12 + "ref": "app.bsky.unspecced.defs#ageAssuranceState" 13 + } 14 + } 15 + } 16 + } 17 + }
+38
lexdocs/bluesky/app/bsky/unspecced/initAgeAssurance.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "app.bsky.unspecced.initAgeAssurance", 4 + "defs": { 5 + "main": { 6 + "type": "procedure", 7 + "description": "Initiate age assurance for an account. This is a one-time action that will start the process of verifying the user's age.", 8 + "input": { 9 + "encoding": "application/json", 10 + "schema": { 11 + "type": "object", 12 + "required": ["email", "language", "countryCode"], 13 + "properties": { 14 + "email": { 15 + "type": "string", 16 + "description": "The user's email address to receive assurance instructions." 17 + }, 18 + "language": { 19 + "type": "string", 20 + "description": "The user's preferred language for communication during the assurance process." 21 + }, 22 + "countryCode": { 23 + "type": "string", 24 + "description": "An ISO 3166-1 alpha-2 code of the user's location." 25 + } 26 + } 27 + } 28 + }, 29 + "output": { 30 + "encoding": "application/json", 31 + "schema": { 32 + "type": "ref", 33 + "ref": "app.bsky.unspecced.defs#ageAssuranceState" 34 + } 35 + } 36 + } 37 + } 38 + }
+19
lexdocs/bluesky/com/atproto/moderation/createReport.json
··· 25 25 "subject": { 26 26 "type": "union", 27 27 "refs": ["com.atproto.admin.defs#repoRef", "com.atproto.repo.strongRef"] 28 + }, 29 + "modTool": { 30 + "type": "ref", 31 + "ref": "#modTool" 28 32 } 29 33 } 30 34 } ··· 52 56 "reportedBy": { "type": "string", "format": "did" }, 53 57 "createdAt": { "type": "string", "format": "datetime" } 54 58 } 59 + } 60 + } 61 + }, 62 + "modTool": { 63 + "type": "object", 64 + "description": "Moderation tool information for tracing the source of the action", 65 + "required": ["name"], 66 + "properties": { 67 + "name": { 68 + "type": "string", 69 + "description": "Name/identifier of the source (e.g., 'bsky-app/android', 'bsky-web/chrome')" 70 + }, 71 + "meta": { 72 + "type": "unknown", 73 + "description": "Additional arbitrary metadata about the source" 55 74 } 56 75 } 57 76 }
+88 -4
lexdocs/bluesky/tools/ozone/moderation/defs.json
··· 28 28 "#accountEvent", 29 29 "#identityEvent", 30 30 "#recordEvent", 31 - "#modEventPriorityScore" 31 + "#modEventPriorityScore", 32 + "#ageAssuranceEvent", 33 + "#ageAssuranceOverrideEvent" 32 34 ] 33 35 }, 34 36 "subject": { ··· 43 45 "createdBy": { "type": "string", "format": "did" }, 44 46 "createdAt": { "type": "string", "format": "datetime" }, 45 47 "creatorHandle": { "type": "string" }, 46 - "subjectHandle": { "type": "string" } 48 + "subjectHandle": { "type": "string" }, 49 + "modTool": { "type": "ref", "ref": "#modTool" } 47 50 } 48 51 }, 49 52 "modEventViewDetail": { ··· 72 75 "#accountEvent", 73 76 "#identityEvent", 74 77 "#recordEvent", 75 - "#modEventPriorityScore" 78 + "#modEventPriorityScore", 79 + "#ageAssuranceEvent", 80 + "#ageAssuranceOverrideEvent" 76 81 ] 77 82 }, 78 83 "subject": { ··· 84 89 "items": { "type": "ref", "ref": "#blobView" } 85 90 }, 86 91 "createdBy": { "type": "string", "format": "did" }, 87 - "createdAt": { "type": "string", "format": "datetime" } 92 + "createdAt": { "type": "string", "format": "datetime" }, 93 + "modTool": { "type": "ref", "ref": "#modTool" } 88 94 } 89 95 }, 90 96 "subjectStatusView": { ··· 182 188 "description": "Statistics related to the record subjects authored by the subject's account", 183 189 "type": "ref", 184 190 "ref": "#recordsStats" 191 + }, 192 + "ageAssuranceState": { 193 + "type": "string", 194 + "description": "Current age assurance state of the subject.", 195 + "knownValues": ["pending", "assured", "unknown", "reset", "blocked"] 196 + }, 197 + "ageAssuranceUpdatedBy": { 198 + "type": "string", 199 + "description": "Whether or not the last successful update to age assurance was made by the user or admin.", 200 + "knownValues": ["admin", "user"] 185 201 } 186 202 } 187 203 }, ··· 410 426 } 411 427 } 412 428 }, 429 + "ageAssuranceEvent": { 430 + "type": "object", 431 + "description": "Age assurance info coming directly from users. Only works on DID subjects.", 432 + "required": ["createdAt", "status", "attemptId"], 433 + "properties": { 434 + "createdAt": { 435 + "type": "string", 436 + "format": "datetime", 437 + "description": "The date and time of this write operation." 438 + }, 439 + "status": { 440 + "type": "string", 441 + "description": "The status of the age assurance process.", 442 + "knownValues": ["unknown", "pending", "assured"] 443 + }, 444 + "attemptId": { 445 + "type": "string", 446 + "description": "The unique identifier for this instance of the age assurance flow, in UUID format." 447 + }, 448 + "initIp": { 449 + "type": "string", 450 + "description": "The IP address used when initiating the AA flow." 451 + }, 452 + "initUa": { 453 + "type": "string", 454 + "description": "The user agent used when initiating the AA flow." 455 + }, 456 + "completeIp": { 457 + "type": "string", 458 + "description": "The IP address used when completing the AA flow." 459 + }, 460 + "completeUa": { 461 + "type": "string", 462 + "description": "The user agent used when completing the AA flow." 463 + } 464 + } 465 + }, 466 + "ageAssuranceOverrideEvent": { 467 + "type": "object", 468 + "description": "Age assurance status override by moderators. Only works on DID subjects.", 469 + "required": ["comment", "status"], 470 + "properties": { 471 + "status": { 472 + "type": "string", 473 + "description": "The status to be set for the user decided by a moderator, overriding whatever value the user had previously. Use reset to default to original state.", 474 + "knownValues": ["assured", "reset", "blocked"] 475 + }, 476 + "comment": { 477 + "type": "string", 478 + "description": "Comment describing the reason for the override." 479 + } 480 + } 481 + }, 413 482 "modEventAcknowledge": { 414 483 "type": "object", 415 484 "properties": { ··· 827 896 "labeledRecordCount": { 828 897 "type": "integer", 829 898 "description": "The total number of records labeled as a result of the user's reports." 899 + } 900 + } 901 + }, 902 + "modTool": { 903 + "type": "object", 904 + "description": "Moderation tool information for tracing the source of the action", 905 + "required": ["name"], 906 + "properties": { 907 + "name": { 908 + "type": "string", 909 + "description": "Name/identifier of the source (e.g., 'automod', 'ozone/workspace')" 910 + }, 911 + "meta": { 912 + "type": "unknown", 913 + "description": "Additional arbitrary metadata about the source" 830 914 } 831 915 } 832 916 }
+20 -4
lexdocs/bluesky/tools/ozone/moderation/emitEvent.json
··· 32 32 "tools.ozone.moderation.defs#accountEvent", 33 33 "tools.ozone.moderation.defs#identityEvent", 34 34 "tools.ozone.moderation.defs#recordEvent", 35 - "tools.ozone.moderation.defs#modEventPriorityScore" 35 + "tools.ozone.moderation.defs#modEventPriorityScore", 36 + "tools.ozone.moderation.defs#ageAssuranceEvent", 37 + "tools.ozone.moderation.defs#ageAssuranceOverrideEvent" 36 38 ] 37 39 }, 38 40 "subject": { ··· 41 43 }, 42 44 "subjectBlobCids": { 43 45 "type": "array", 44 - "items": { "type": "string", "format": "cid" } 46 + "items": { 47 + "type": "string", 48 + "format": "cid" 49 + } 45 50 }, 46 - "createdBy": { "type": "string", "format": "did" } 51 + "createdBy": { 52 + "type": "string", 53 + "format": "did" 54 + }, 55 + "modTool": { 56 + "type": "ref", 57 + "ref": "tools.ozone.moderation.defs#modTool" 58 + } 47 59 } 48 60 } 49 61 }, ··· 54 66 "ref": "tools.ozone.moderation.defs#modEventView" 55 67 } 56 68 }, 57 - "errors": [{ "name": "SubjectHasAction" }] 69 + "errors": [ 70 + { 71 + "name": "SubjectHasAction" 72 + } 73 + ] 58 74 } 59 75 } 60 76 }
+12
lexdocs/bluesky/tools/ozone/moderation/queryEvents.json
··· 113 113 "description": "If specified, only events where the action policies match any of the given policies are returned" 114 114 } 115 115 }, 116 + "modTool": { 117 + "type": "array", 118 + "items": { 119 + "type": "string" 120 + }, 121 + "description": "If specified, only events where the modTool name matches any of the given values are returned" 122 + }, 123 + "ageAssuranceState": { 124 + "type": "string", 125 + "description": "If specified, only events where the age assurance state matches the given value are returned", 126 + "knownValues": ["pending", "assured", "unknown", "reset", "blocked"] 127 + }, 116 128 "cursor": { 117 129 "type": "string" 118 130 }
+5
lexdocs/bluesky/tools/ozone/moderation/queryStatuses.json
··· 182 182 "maximum": 100, 183 183 "type": "integer", 184 184 "description": "If specified, only subjects that have priority score value above the given value will be returned." 185 + }, 186 + "ageAssuranceState": { 187 + "type": "string", 188 + "description": "If specified, only subjects with the given age assurance state will be returned.", 189 + "knownValues": ["pending", "assured", "unknown", "reset", "blocked"] 185 190 } 186 191 } 187 192 },
+61
lexdocs/bluesky/tools/ozone/safelink/addRule.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "tools.ozone.safelink.addRule", 4 + "defs": { 5 + "main": { 6 + "type": "procedure", 7 + "description": "Add a new URL safety rule", 8 + "input": { 9 + "encoding": "application/json", 10 + "schema": { 11 + "type": "object", 12 + "required": ["url", "pattern", "action", "reason"], 13 + "properties": { 14 + "url": { 15 + "type": "string", 16 + "description": "The URL or domain to apply the rule to" 17 + }, 18 + "pattern": { 19 + "type": "ref", 20 + "ref": "tools.ozone.safelink.defs#patternType" 21 + }, 22 + "action": { 23 + "type": "ref", 24 + "ref": "tools.ozone.safelink.defs#actionType" 25 + }, 26 + "reason": { 27 + "type": "ref", 28 + "ref": "tools.ozone.safelink.defs#reasonType" 29 + }, 30 + "comment": { 31 + "type": "string", 32 + "description": "Optional comment about the decision" 33 + }, 34 + "createdBy": { 35 + "type": "string", 36 + "format": "did", 37 + "description": "Author DID. Only respected when using admin auth" 38 + } 39 + } 40 + } 41 + }, 42 + "output": { 43 + "encoding": "application/json", 44 + "schema": { 45 + "type": "ref", 46 + "ref": "tools.ozone.safelink.defs#event" 47 + } 48 + }, 49 + "errors": [ 50 + { 51 + "name": "InvalidUrl", 52 + "description": "The provided URL is invalid" 53 + }, 54 + { 55 + "name": "RuleAlreadyExists", 56 + "description": "A rule for this URL/domain already exists" 57 + } 58 + ] 59 + } 60 + } 61 + }
+108
lexdocs/bluesky/tools/ozone/safelink/defs.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "tools.ozone.safelink.defs", 4 + "defs": { 5 + "event": { 6 + "type": "object", 7 + "description": "An event for URL safety decisions", 8 + "required": ["id", "eventType", "url", "pattern", "action", "reason", "createdBy", "createdAt"], 9 + "properties": { 10 + "id": { 11 + "type": "integer", 12 + "description": "Auto-incrementing row ID" 13 + }, 14 + "eventType": { 15 + "type": "ref", 16 + "ref": "#eventType" 17 + }, 18 + "url": { 19 + "type": "string", 20 + "description": "The URL that this rule applies to" 21 + }, 22 + "pattern": { 23 + "type": "ref", 24 + "ref": "#patternType" 25 + }, 26 + "action": { 27 + "type": "ref", 28 + "ref": "#actionType" 29 + }, 30 + "reason": { 31 + "type": "ref", 32 + "ref": "#reasonType" 33 + }, 34 + "createdBy": { 35 + "type": "string", 36 + "format": "did", 37 + "description": "DID of the user who created this rule" 38 + }, 39 + "createdAt": { 40 + "type": "string", 41 + "format": "datetime" 42 + }, 43 + "comment": { 44 + "type": "string", 45 + "description": "Optional comment about the decision" 46 + } 47 + } 48 + }, 49 + "eventType": { 50 + "type": "string", 51 + "knownValues": ["addRule", "updateRule", "removeRule"] 52 + }, 53 + "patternType": { 54 + "type": "string", 55 + "knownValues": ["domain", "url"] 56 + }, 57 + "actionType": { 58 + "type": "string", 59 + "knownValues": ["block", "warn", "whitelist"] 60 + }, 61 + "reasonType": { 62 + "type": "string", 63 + "knownValues": ["csam", "spam", "phishing", "none"] 64 + }, 65 + "urlRule": { 66 + "type": "object", 67 + "description": "Input for creating a URL safety rule", 68 + "required": ["url", "pattern", "action", "reason", "createdBy", "createdAt", "updatedAt"], 69 + "properties": { 70 + "url": { 71 + "type": "string", 72 + "description": "The URL or domain to apply the rule to" 73 + }, 74 + "pattern": { 75 + "type": "ref", 76 + "ref": "#patternType" 77 + }, 78 + "action": { 79 + "type": "ref", 80 + "ref": "#actionType" 81 + }, 82 + "reason": { 83 + "type": "ref", 84 + "ref": "#reasonType" 85 + }, 86 + "comment": { 87 + "type": "string", 88 + "description": "Optional comment about the decision" 89 + }, 90 + "createdBy": { 91 + "type": "string", 92 + "format": "did", 93 + "description": "DID of the user added the rule." 94 + }, 95 + "createdAt": { 96 + "type": "string", 97 + "format": "datetime", 98 + "description": "Timestamp when the rule was created" 99 + }, 100 + "updatedAt": { 101 + "type": "string", 102 + "format": "datetime", 103 + "description": "Timestamp when the rule was last updated" 104 + } 105 + } 106 + } 107 + } 108 + }
+66
lexdocs/bluesky/tools/ozone/safelink/queryEvents.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "tools.ozone.safelink.queryEvents", 4 + "defs": { 5 + "main": { 6 + "type": "procedure", 7 + "description": "Query URL safety audit events", 8 + "input": { 9 + "encoding": "application/json", 10 + "schema": { 11 + "type": "object", 12 + "properties": { 13 + "cursor": { 14 + "type": "string", 15 + "description": "Cursor for pagination" 16 + }, 17 + "limit": { 18 + "type": "integer", 19 + "minimum": 1, 20 + "maximum": 100, 21 + "default": 50, 22 + "description": "Maximum number of results to return" 23 + }, 24 + "urls": { 25 + "type": "array", 26 + "items": { 27 + "type": "string" 28 + }, 29 + "description": "Filter by specific URLs or domains" 30 + }, 31 + "patternType": { 32 + "type": "string", 33 + "description": "Filter by pattern type" 34 + }, 35 + "sortDirection": { 36 + "type": "string", 37 + "knownValues": ["asc", "desc"], 38 + "default": "desc", 39 + "description": "Sort direction" 40 + } 41 + } 42 + } 43 + }, 44 + "output": { 45 + "encoding": "application/json", 46 + "schema": { 47 + "type": "object", 48 + "required": ["events"], 49 + "properties": { 50 + "cursor": { 51 + "type": "string", 52 + "description": "Next cursor for pagination. Only present if there are more results." 53 + }, 54 + "events": { 55 + "type": "array", 56 + "items": { 57 + "type": "ref", 58 + "ref": "tools.ozone.safelink.defs#event" 59 + } 60 + } 61 + } 62 + } 63 + } 64 + } 65 + } 66 + }
+82
lexdocs/bluesky/tools/ozone/safelink/queryRules.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "tools.ozone.safelink.queryRules", 4 + "defs": { 5 + "main": { 6 + "type": "procedure", 7 + "description": "Query URL safety rules", 8 + "input": { 9 + "encoding": "application/json", 10 + "schema": { 11 + "type": "object", 12 + "properties": { 13 + "cursor": { 14 + "type": "string", 15 + "description": "Cursor for pagination" 16 + }, 17 + "limit": { 18 + "type": "integer", 19 + "minimum": 1, 20 + "maximum": 100, 21 + "default": 50, 22 + "description": "Maximum number of results to return" 23 + }, 24 + "urls": { 25 + "type": "array", 26 + "items": { 27 + "type": "string" 28 + }, 29 + "description": "Filter by specific URLs or domains" 30 + }, 31 + "patternType": { 32 + "type": "string", 33 + "description": "Filter by pattern type" 34 + }, 35 + "actions": { 36 + "type": "array", 37 + "items": { 38 + "type": "string" 39 + }, 40 + "description": "Filter by action types" 41 + }, 42 + "reason": { 43 + "type": "string", 44 + "description": "Filter by reason type" 45 + }, 46 + "createdBy": { 47 + "type": "string", 48 + "format": "did", 49 + "description": "Filter by rule creator" 50 + }, 51 + "sortDirection": { 52 + "type": "string", 53 + "knownValues": ["asc", "desc"], 54 + "default": "desc", 55 + "description": "Sort direction" 56 + } 57 + } 58 + } 59 + }, 60 + "output": { 61 + "encoding": "application/json", 62 + "schema": { 63 + "type": "object", 64 + "required": ["rules"], 65 + "properties": { 66 + "cursor": { 67 + "type": "string", 68 + "description": "Next cursor for pagination. Only present if there are more results." 69 + }, 70 + "rules": { 71 + "type": "array", 72 + "items": { 73 + "type": "ref", 74 + "ref": "tools.ozone.safelink.defs#urlRule" 75 + } 76 + } 77 + } 78 + } 79 + } 80 + } 81 + } 82 + }
+49
lexdocs/bluesky/tools/ozone/safelink/removeRule.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "tools.ozone.safelink.removeRule", 4 + "defs": { 5 + "main": { 6 + "type": "procedure", 7 + "description": "Remove an existing URL safety rule", 8 + "input": { 9 + "encoding": "application/json", 10 + "schema": { 11 + "type": "object", 12 + "required": ["url", "pattern"], 13 + "properties": { 14 + "url": { 15 + "type": "string", 16 + "description": "The URL or domain to remove the rule for" 17 + }, 18 + "pattern": { 19 + "type": "ref", 20 + "ref": "tools.ozone.safelink.defs#patternType" 21 + }, 22 + "comment": { 23 + "type": "string", 24 + "description": "Optional comment about why the rule is being removed" 25 + }, 26 + "createdBy": { 27 + "type": "string", 28 + "format": "did", 29 + "description": "Optional DID of the user. Only respected when using admin auth." 30 + } 31 + } 32 + } 33 + }, 34 + "output": { 35 + "encoding": "application/json", 36 + "schema": { 37 + "type": "ref", 38 + "ref": "tools.ozone.safelink.defs#event" 39 + } 40 + }, 41 + "errors": [ 42 + { 43 + "name": "RuleNotFound", 44 + "description": "No active rule found for this URL/domain" 45 + } 46 + ] 47 + } 48 + } 49 + }
+57
lexdocs/bluesky/tools/ozone/safelink/updateRule.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "tools.ozone.safelink.updateRule", 4 + "defs": { 5 + "main": { 6 + "type": "procedure", 7 + "description": "Update an existing URL safety rule", 8 + "input": { 9 + "encoding": "application/json", 10 + "schema": { 11 + "type": "object", 12 + "required": ["url", "pattern", "action", "reason"], 13 + "properties": { 14 + "url": { 15 + "type": "string", 16 + "description": "The URL or domain to update the rule for" 17 + }, 18 + "pattern": { 19 + "type": "ref", 20 + "ref": "tools.ozone.safelink.defs#patternType" 21 + }, 22 + "action": { 23 + "type": "ref", 24 + "ref": "tools.ozone.safelink.defs#actionType" 25 + }, 26 + "reason": { 27 + "type": "ref", 28 + "ref": "tools.ozone.safelink.defs#reasonType" 29 + }, 30 + "comment": { 31 + "type": "string", 32 + "description": "Optional comment about the update" 33 + }, 34 + "createdBy": { 35 + "type": "string", 36 + "format": "did", 37 + "description": "Optional DID to credit as the creator. Only respected for admin_token authentication." 38 + } 39 + } 40 + } 41 + }, 42 + "output": { 43 + "encoding": "application/json", 44 + "schema": { 45 + "type": "ref", 46 + "ref": "tools.ozone.safelink.defs#event" 47 + } 48 + }, 49 + "errors": [ 50 + { 51 + "name": "RuleNotFound", 52 + "description": "No active rule found for this URL/domain" 53 + } 54 + ] 55 + } 56 + } 57 + }
+13
packages/definitions/atproto/lib/lexicons/types/com/atproto/moderation/createReport.ts
··· 10 10 input: { 11 11 type: 'lex', 12 12 schema: /*#__PURE__*/ v.object({ 13 + get modTool() { 14 + return /*#__PURE__*/ v.optional(modToolSchema); 15 + }, 13 16 reason: /*#__PURE__*/ v.optional( 14 17 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 15 18 /*#__PURE__*/ v.stringLength(0, 20000), ··· 51 54 }), 52 55 }, 53 56 }); 57 + const _modToolSchema = /*#__PURE__*/ v.object({ 58 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('com.atproto.moderation.createReport#modTool')), 59 + meta: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.unknown()), 60 + name: /*#__PURE__*/ v.string(), 61 + }); 54 62 55 63 type main$schematype = typeof _mainSchema; 64 + type modTool$schematype = typeof _modToolSchema; 56 65 57 66 export interface mainSchema extends main$schematype {} 67 + export interface modToolSchema extends modTool$schematype {} 58 68 59 69 export const mainSchema = _mainSchema as mainSchema; 70 + export const modToolSchema = _modToolSchema as modToolSchema; 71 + 72 + export interface ModTool extends v.InferInput<typeof modToolSchema> {} 60 73 61 74 export interface $params {} 62 75 export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {}
+2
packages/definitions/bluesky/lib/lexicons/index.ts
··· 84 84 export * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen.js'; 85 85 export * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet.js'; 86 86 export * as AppBskyUnspeccedDefs from './types/app/bsky/unspecced/defs.js'; 87 + export * as AppBskyUnspeccedGetAgeAssuranceState from './types/app/bsky/unspecced/getAgeAssuranceState.js'; 87 88 export * as AppBskyUnspeccedGetConfig from './types/app/bsky/unspecced/getConfig.js'; 88 89 export * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators.js'; 89 90 export * as AppBskyUnspeccedGetPostThreadOtherV2 from './types/app/bsky/unspecced/getPostThreadOtherV2.js'; ··· 99 100 export * as AppBskyUnspeccedGetTrendingTopics from './types/app/bsky/unspecced/getTrendingTopics.js'; 100 101 export * as AppBskyUnspeccedGetTrends from './types/app/bsky/unspecced/getTrends.js'; 101 102 export * as AppBskyUnspeccedGetTrendsSkeleton from './types/app/bsky/unspecced/getTrendsSkeleton.js'; 103 + export * as AppBskyUnspeccedInitAgeAssurance from './types/app/bsky/unspecced/initAgeAssurance.js'; 102 104 export * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton.js'; 103 105 export * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton.js'; 104 106 export * as AppBskyUnspeccedSearchStarterPacksSkeleton from './types/app/bsky/unspecced/searchStarterPacksSkeleton.js';
+1
packages/definitions/bluesky/lib/lexicons/types/app/bsky/notification/registerPush.ts
··· 7 7 input: { 8 8 type: 'lex', 9 9 schema: /*#__PURE__*/ v.object({ 10 + ageRestricted: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 10 11 appId: /*#__PURE__*/ v.string(), 11 12 platform: /*#__PURE__*/ v.string<'android' | 'ios' | 'web' | (string & {})>(), 12 13 serviceDid: /*#__PURE__*/ v.didString(),
+24
packages/definitions/bluesky/lib/lexicons/types/app/bsky/unspecced/defs.ts
··· 3 3 import * as AppBskyActorDefs from '../actor/defs.js'; 4 4 import * as AppBskyFeedDefs from '../feed/defs.js'; 5 5 6 + const _ageAssuranceEventSchema = /*#__PURE__*/ v.object({ 7 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.unspecced.defs#ageAssuranceEvent')), 8 + attemptId: /*#__PURE__*/ v.string(), 9 + completeIp: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 10 + completeUa: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 11 + createdAt: /*#__PURE__*/ v.datetimeString(), 12 + email: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 + initIp: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 + initUa: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 15 + status: /*#__PURE__*/ v.string<'assured' | 'pending' | 'unknown' | (string & {})>(), 16 + }); 17 + const _ageAssuranceStateSchema = /*#__PURE__*/ v.object({ 18 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.unspecced.defs#ageAssuranceState')), 19 + lastInitiatedAt: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.datetimeString()), 20 + status: /*#__PURE__*/ v.string<'assured' | 'blocked' | 'pending' | 'unknown' | (string & {})>(), 21 + }); 6 22 const _skeletonSearchActorSchema = /*#__PURE__*/ v.object({ 7 23 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.unspecced.defs#skeletonSearchActor')), 8 24 did: /*#__PURE__*/ v.didString(), ··· 74 90 topic: /*#__PURE__*/ v.string(), 75 91 }); 76 92 93 + type ageAssuranceEvent$schematype = typeof _ageAssuranceEventSchema; 94 + type ageAssuranceState$schematype = typeof _ageAssuranceStateSchema; 77 95 type skeletonSearchActor$schematype = typeof _skeletonSearchActorSchema; 78 96 type skeletonSearchPost$schematype = typeof _skeletonSearchPostSchema; 79 97 type skeletonSearchStarterPack$schematype = typeof _skeletonSearchStarterPackSchema; ··· 85 103 type trendView$schematype = typeof _trendViewSchema; 86 104 type trendingTopic$schematype = typeof _trendingTopicSchema; 87 105 106 + export interface ageAssuranceEventSchema extends ageAssuranceEvent$schematype {} 107 + export interface ageAssuranceStateSchema extends ageAssuranceState$schematype {} 88 108 export interface skeletonSearchActorSchema extends skeletonSearchActor$schematype {} 89 109 export interface skeletonSearchPostSchema extends skeletonSearchPost$schematype {} 90 110 export interface skeletonSearchStarterPackSchema extends skeletonSearchStarterPack$schematype {} ··· 96 116 export interface trendViewSchema extends trendView$schematype {} 97 117 export interface trendingTopicSchema extends trendingTopic$schematype {} 98 118 119 + export const ageAssuranceEventSchema = _ageAssuranceEventSchema as ageAssuranceEventSchema; 120 + export const ageAssuranceStateSchema = _ageAssuranceStateSchema as ageAssuranceStateSchema; 99 121 export const skeletonSearchActorSchema = _skeletonSearchActorSchema as skeletonSearchActorSchema; 100 122 export const skeletonSearchPostSchema = _skeletonSearchPostSchema as skeletonSearchPostSchema; 101 123 export const skeletonSearchStarterPackSchema = ··· 109 131 export const trendViewSchema = _trendViewSchema as trendViewSchema; 110 132 export const trendingTopicSchema = _trendingTopicSchema as trendingTopicSchema; 111 133 134 + export interface AgeAssuranceEvent extends v.InferInput<typeof ageAssuranceEventSchema> {} 135 + export interface AgeAssuranceState extends v.InferInput<typeof ageAssuranceStateSchema> {} 112 136 export interface SkeletonSearchActor extends v.InferInput<typeof skeletonSearchActorSchema> {} 113 137 export interface SkeletonSearchPost extends v.InferInput<typeof skeletonSearchPostSchema> {} 114 138 export interface SkeletonSearchStarterPack extends v.InferInput<typeof skeletonSearchStarterPackSchema> {}
+29
packages/definitions/bluesky/lib/lexicons/types/app/bsky/unspecced/getAgeAssuranceState.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import * as v from '@atcute/lexicons/validations'; 3 + import type {} from '@atcute/lexicons/ambient'; 4 + import * as AppBskyUnspeccedDefs from './defs.js'; 5 + 6 + const _mainSchema = /*#__PURE__*/ v.query('app.bsky.unspecced.getAgeAssuranceState', { 7 + params: null, 8 + output: { 9 + type: 'lex', 10 + get schema() { 11 + return AppBskyUnspeccedDefs.ageAssuranceStateSchema; 12 + }, 13 + }, 14 + }); 15 + 16 + type main$schematype = typeof _mainSchema; 17 + 18 + export interface mainSchema extends main$schematype {} 19 + 20 + export const mainSchema = _mainSchema as mainSchema; 21 + 22 + export interface $params {} 23 + export type $output = v.InferXRPCBodyInput<mainSchema['output']>; 24 + 25 + declare module '@atcute/lexicons/ambient' { 26 + interface XRPCQueries { 27 + 'app.bsky.unspecced.getAgeAssuranceState': mainSchema; 28 + } 29 + }
+38
packages/definitions/bluesky/lib/lexicons/types/app/bsky/unspecced/initAgeAssurance.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import * as v from '@atcute/lexicons/validations'; 3 + import type {} from '@atcute/lexicons/ambient'; 4 + import * as AppBskyUnspeccedDefs from './defs.js'; 5 + 6 + const _mainSchema = /*#__PURE__*/ v.procedure('app.bsky.unspecced.initAgeAssurance', { 7 + params: null, 8 + input: { 9 + type: 'lex', 10 + schema: /*#__PURE__*/ v.object({ 11 + countryCode: /*#__PURE__*/ v.string(), 12 + email: /*#__PURE__*/ v.string(), 13 + language: /*#__PURE__*/ v.string(), 14 + }), 15 + }, 16 + output: { 17 + type: 'lex', 18 + get schema() { 19 + return AppBskyUnspeccedDefs.ageAssuranceStateSchema; 20 + }, 21 + }, 22 + }); 23 + 24 + type main$schematype = typeof _mainSchema; 25 + 26 + export interface mainSchema extends main$schematype {} 27 + 28 + export const mainSchema = _mainSchema as mainSchema; 29 + 30 + export interface $params {} 31 + export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {} 32 + export type $output = v.InferXRPCBodyInput<mainSchema['output']>; 33 + 34 + declare module '@atcute/lexicons/ambient' { 35 + interface XRPCProcedures { 36 + 'app.bsky.unspecced.initAgeAssurance': mainSchema; 37 + } 38 + }
+6
packages/definitions/ozone/lib/lexicons/index.ts
··· 16 16 export * as ToolsOzoneModerationQueryEvents from './types/tools/ozone/moderation/queryEvents.js'; 17 17 export * as ToolsOzoneModerationQueryStatuses from './types/tools/ozone/moderation/queryStatuses.js'; 18 18 export * as ToolsOzoneModerationSearchRepos from './types/tools/ozone/moderation/searchRepos.js'; 19 + export * as ToolsOzoneSafelinkAddRule from './types/tools/ozone/safelink/addRule.js'; 20 + export * as ToolsOzoneSafelinkDefs from './types/tools/ozone/safelink/defs.js'; 21 + export * as ToolsOzoneSafelinkQueryEvents from './types/tools/ozone/safelink/queryEvents.js'; 22 + export * as ToolsOzoneSafelinkQueryRules from './types/tools/ozone/safelink/queryRules.js'; 23 + export * as ToolsOzoneSafelinkRemoveRule from './types/tools/ozone/safelink/removeRule.js'; 24 + export * as ToolsOzoneSafelinkUpdateRule from './types/tools/ozone/safelink/updateRule.js'; 19 25 export * as ToolsOzoneServerGetConfig from './types/tools/ozone/server/getConfig.js'; 20 26 export * as ToolsOzoneSetAddValues from './types/tools/ozone/set/addValues.js'; 21 27 export * as ToolsOzoneSetDefs from './types/tools/ozone/set/defs.js';
+49
packages/definitions/ozone/lib/lexicons/types/tools/ozone/moderation/defs.ts
··· 37 37 suspendCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 38 38 takedownCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), 39 39 }); 40 + const _ageAssuranceEventSchema = /*#__PURE__*/ v.object({ 41 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#ageAssuranceEvent')), 42 + attemptId: /*#__PURE__*/ v.string(), 43 + completeIp: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 44 + completeUa: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 45 + createdAt: /*#__PURE__*/ v.datetimeString(), 46 + initIp: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 47 + initUa: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 48 + status: /*#__PURE__*/ v.string<'assured' | 'pending' | 'unknown' | (string & {})>(), 49 + }); 50 + const _ageAssuranceOverrideEventSchema = /*#__PURE__*/ v.object({ 51 + $type: /*#__PURE__*/ v.optional( 52 + /*#__PURE__*/ v.literal('tools.ozone.moderation.defs#ageAssuranceOverrideEvent'), 53 + ), 54 + comment: /*#__PURE__*/ v.string(), 55 + status: /*#__PURE__*/ v.string<'assured' | 'blocked' | 'reset' | (string & {})>(), 56 + }); 40 57 const _blobViewSchema = /*#__PURE__*/ v.object({ 41 58 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#blobView')), 42 59 cid: /*#__PURE__*/ v.cidString(), ··· 168 185 get event() { 169 186 return /*#__PURE__*/ v.variant([ 170 187 accountEventSchema, 188 + ageAssuranceEventSchema, 189 + ageAssuranceOverrideEventSchema, 171 190 identityEventSchema, 172 191 modEventAcknowledgeSchema, 173 192 modEventCommentSchema, ··· 189 208 ]); 190 209 }, 191 210 id: /*#__PURE__*/ v.integer(), 211 + get modTool() { 212 + return /*#__PURE__*/ v.optional(modToolSchema); 213 + }, 192 214 get subject() { 193 215 return /*#__PURE__*/ v.variant([ 194 216 ChatBskyConvoDefs.messageRefSchema, ··· 206 228 get event() { 207 229 return /*#__PURE__*/ v.variant([ 208 230 accountEventSchema, 231 + ageAssuranceEventSchema, 232 + ageAssuranceOverrideEventSchema, 209 233 identityEventSchema, 210 234 modEventAcknowledgeSchema, 211 235 modEventCommentSchema, ··· 227 251 ]); 228 252 }, 229 253 id: /*#__PURE__*/ v.integer(), 254 + get modTool() { 255 + return /*#__PURE__*/ v.optional(modToolSchema); 256 + }, 230 257 get subject() { 231 258 return /*#__PURE__*/ v.variant([ 232 259 recordViewSchema, ··· 238 265 get subjectBlobs() { 239 266 return /*#__PURE__*/ v.array(blobViewSchema); 240 267 }, 268 + }); 269 + const _modToolSchema = /*#__PURE__*/ v.object({ 270 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#modTool')), 271 + meta: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.unknown()), 272 + name: /*#__PURE__*/ v.string(), 241 273 }); 242 274 const _moderationSchema = /*#__PURE__*/ v.object({ 243 275 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.moderation.defs#moderation')), ··· 388 420 get accountStats() { 389 421 return /*#__PURE__*/ v.optional(accountStatsSchema); 390 422 }, 423 + ageAssuranceState: /*#__PURE__*/ v.optional( 424 + /*#__PURE__*/ v.string<'assured' | 'blocked' | 'pending' | 'reset' | 'unknown' | (string & {})>(), 425 + ), 426 + ageAssuranceUpdatedBy: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'admin' | 'user' | (string & {})>()), 391 427 appealed: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 392 428 comment: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 393 429 createdAt: /*#__PURE__*/ v.datetimeString(), ··· 453 489 type accountEvent$schematype = typeof _accountEventSchema; 454 490 type accountHosting$schematype = typeof _accountHostingSchema; 455 491 type accountStats$schematype = typeof _accountStatsSchema; 492 + type ageAssuranceEvent$schematype = typeof _ageAssuranceEventSchema; 493 + type ageAssuranceOverrideEvent$schematype = typeof _ageAssuranceOverrideEventSchema; 456 494 type blobView$schematype = typeof _blobViewSchema; 457 495 type identityEvent$schematype = typeof _identityEventSchema; 458 496 type imageDetails$schematype = typeof _imageDetailsSchema; ··· 474 512 type modEventUnmuteReporter$schematype = typeof _modEventUnmuteReporterSchema; 475 513 type modEventView$schematype = typeof _modEventViewSchema; 476 514 type modEventViewDetail$schematype = typeof _modEventViewDetailSchema; 515 + type modTool$schematype = typeof _modToolSchema; 477 516 type moderation$schematype = typeof _moderationSchema; 478 517 type moderationDetail$schematype = typeof _moderationDetailSchema; 479 518 type recordEvent$schematype = typeof _recordEventSchema; ··· 498 537 export interface accountEventSchema extends accountEvent$schematype {} 499 538 export interface accountHostingSchema extends accountHosting$schematype {} 500 539 export interface accountStatsSchema extends accountStats$schematype {} 540 + export interface ageAssuranceEventSchema extends ageAssuranceEvent$schematype {} 541 + export interface ageAssuranceOverrideEventSchema extends ageAssuranceOverrideEvent$schematype {} 501 542 export interface blobViewSchema extends blobView$schematype {} 502 543 export interface identityEventSchema extends identityEvent$schematype {} 503 544 export interface imageDetailsSchema extends imageDetails$schematype {} ··· 519 560 export interface modEventUnmuteReporterSchema extends modEventUnmuteReporter$schematype {} 520 561 export interface modEventViewSchema extends modEventView$schematype {} 521 562 export interface modEventViewDetailSchema extends modEventViewDetail$schematype {} 563 + export interface modToolSchema extends modTool$schematype {} 522 564 export interface moderationSchema extends moderation$schematype {} 523 565 export interface moderationDetailSchema extends moderationDetail$schematype {} 524 566 export interface recordEventSchema extends recordEvent$schematype {} ··· 543 585 export const accountEventSchema = _accountEventSchema as accountEventSchema; 544 586 export const accountHostingSchema = _accountHostingSchema as accountHostingSchema; 545 587 export const accountStatsSchema = _accountStatsSchema as accountStatsSchema; 588 + export const ageAssuranceEventSchema = _ageAssuranceEventSchema as ageAssuranceEventSchema; 589 + export const ageAssuranceOverrideEventSchema = 590 + _ageAssuranceOverrideEventSchema as ageAssuranceOverrideEventSchema; 546 591 export const blobViewSchema = _blobViewSchema as blobViewSchema; 547 592 export const identityEventSchema = _identityEventSchema as identityEventSchema; 548 593 export const imageDetailsSchema = _imageDetailsSchema as imageDetailsSchema; ··· 564 609 export const modEventUnmuteReporterSchema = _modEventUnmuteReporterSchema as modEventUnmuteReporterSchema; 565 610 export const modEventViewSchema = _modEventViewSchema as modEventViewSchema; 566 611 export const modEventViewDetailSchema = _modEventViewDetailSchema as modEventViewDetailSchema; 612 + export const modToolSchema = _modToolSchema as modToolSchema; 567 613 export const moderationSchema = _moderationSchema as moderationSchema; 568 614 export const moderationDetailSchema = _moderationDetailSchema as moderationDetailSchema; 569 615 export const recordEventSchema = _recordEventSchema as recordEventSchema; ··· 588 634 export interface AccountEvent extends v.InferInput<typeof accountEventSchema> {} 589 635 export interface AccountHosting extends v.InferInput<typeof accountHostingSchema> {} 590 636 export interface AccountStats extends v.InferInput<typeof accountStatsSchema> {} 637 + export interface AgeAssuranceEvent extends v.InferInput<typeof ageAssuranceEventSchema> {} 638 + export interface AgeAssuranceOverrideEvent extends v.InferInput<typeof ageAssuranceOverrideEventSchema> {} 591 639 export interface BlobView extends v.InferInput<typeof blobViewSchema> {} 592 640 export interface IdentityEvent extends v.InferInput<typeof identityEventSchema> {} 593 641 export interface ImageDetails extends v.InferInput<typeof imageDetailsSchema> {} ··· 609 657 export interface ModEventUnmuteReporter extends v.InferInput<typeof modEventUnmuteReporterSchema> {} 610 658 export interface ModEventView extends v.InferInput<typeof modEventViewSchema> {} 611 659 export interface ModEventViewDetail extends v.InferInput<typeof modEventViewDetailSchema> {} 660 + export interface ModTool extends v.InferInput<typeof modToolSchema> {} 612 661 export interface Moderation extends v.InferInput<typeof moderationSchema> {} 613 662 export interface ModerationDetail extends v.InferInput<typeof moderationDetailSchema> {} 614 663 export interface RecordEvent extends v.InferInput<typeof recordEventSchema> {}
+5
packages/definitions/ozone/lib/lexicons/types/tools/ozone/moderation/emitEvent.ts
··· 14 14 get event() { 15 15 return /*#__PURE__*/ v.variant([ 16 16 ToolsOzoneModerationDefs.accountEventSchema, 17 + ToolsOzoneModerationDefs.ageAssuranceEventSchema, 18 + ToolsOzoneModerationDefs.ageAssuranceOverrideEventSchema, 17 19 ToolsOzoneModerationDefs.identityEventSchema, 18 20 ToolsOzoneModerationDefs.modEventAcknowledgeSchema, 19 21 ToolsOzoneModerationDefs.modEventCommentSchema, ··· 33 35 ToolsOzoneModerationDefs.modEventUnmuteReporterSchema, 34 36 ToolsOzoneModerationDefs.recordEventSchema, 35 37 ]); 38 + }, 39 + get modTool() { 40 + return /*#__PURE__*/ v.optional(ToolsOzoneModerationDefs.modToolSchema); 36 41 }, 37 42 get subject() { 38 43 return /*#__PURE__*/ v.variant([
+4
packages/definitions/ozone/lib/lexicons/types/tools/ozone/moderation/queryEvents.ts
··· 7 7 params: /*#__PURE__*/ v.object({ 8 8 addedLabels: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 9 9 addedTags: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 10 + ageAssuranceState: /*#__PURE__*/ v.optional( 11 + /*#__PURE__*/ v.string<'assured' | 'blocked' | 'pending' | 'reset' | 'unknown' | (string & {})>(), 12 + ), 10 13 collections: /*#__PURE__*/ v.optional( 11 14 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.nsidString()), [ 12 15 /*#__PURE__*/ v.arrayLength(0, 20), ··· 23 26 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 24 27 50, 25 28 ), 29 + modTool: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 26 30 policies: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 27 31 removedLabels: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 28 32 removedTags: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())),
+3
packages/definitions/ozone/lib/lexicons/types/tools/ozone/moderation/queryStatuses.ts
··· 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('tools.ozone.moderation.queryStatuses', { 7 7 params: /*#__PURE__*/ v.object({ 8 + ageAssuranceState: /*#__PURE__*/ v.optional( 9 + /*#__PURE__*/ v.string<'assured' | 'blocked' | 'pending' | 'reset' | 'unknown' | (string & {})>(), 10 + ), 8 11 appealed: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), 9 12 collections: /*#__PURE__*/ v.optional( 10 13 /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.array(/*#__PURE__*/ v.nsidString()), [
+47
packages/definitions/ozone/lib/lexicons/types/tools/ozone/safelink/addRule.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import * as v from '@atcute/lexicons/validations'; 3 + import type {} from '@atcute/lexicons/ambient'; 4 + import * as ToolsOzoneSafelinkDefs from './defs.js'; 5 + 6 + const _mainSchema = /*#__PURE__*/ v.procedure('tools.ozone.safelink.addRule', { 7 + params: null, 8 + input: { 9 + type: 'lex', 10 + schema: /*#__PURE__*/ v.object({ 11 + get action() { 12 + return ToolsOzoneSafelinkDefs.actionTypeSchema; 13 + }, 14 + comment: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 15 + createdBy: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 16 + get pattern() { 17 + return ToolsOzoneSafelinkDefs.patternTypeSchema; 18 + }, 19 + get reason() { 20 + return ToolsOzoneSafelinkDefs.reasonTypeSchema; 21 + }, 22 + url: /*#__PURE__*/ v.string(), 23 + }), 24 + }, 25 + output: { 26 + type: 'lex', 27 + get schema() { 28 + return ToolsOzoneSafelinkDefs.eventSchema; 29 + }, 30 + }, 31 + }); 32 + 33 + type main$schematype = typeof _mainSchema; 34 + 35 + export interface mainSchema extends main$schematype {} 36 + 37 + export const mainSchema = _mainSchema as mainSchema; 38 + 39 + export interface $params {} 40 + export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {} 41 + export type $output = v.InferXRPCBodyInput<mainSchema['output']>; 42 + 43 + declare module '@atcute/lexicons/ambient' { 44 + interface XRPCProcedures { 45 + 'tools.ozone.safelink.addRule': mainSchema; 46 + } 47 + }
+72
packages/definitions/ozone/lib/lexicons/types/tools/ozone/safelink/defs.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import * as v from '@atcute/lexicons/validations'; 3 + 4 + const _actionTypeSchema = /*#__PURE__*/ v.string<'block' | 'warn' | 'whitelist' | (string & {})>(); 5 + const _eventSchema = /*#__PURE__*/ v.object({ 6 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.safelink.defs#event')), 7 + get action() { 8 + return actionTypeSchema; 9 + }, 10 + comment: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 11 + createdAt: /*#__PURE__*/ v.datetimeString(), 12 + createdBy: /*#__PURE__*/ v.didString(), 13 + get eventType() { 14 + return eventTypeSchema; 15 + }, 16 + id: /*#__PURE__*/ v.integer(), 17 + get pattern() { 18 + return patternTypeSchema; 19 + }, 20 + get reason() { 21 + return reasonTypeSchema; 22 + }, 23 + url: /*#__PURE__*/ v.string(), 24 + }); 25 + const _eventTypeSchema = /*#__PURE__*/ v.string<'addRule' | 'removeRule' | 'updateRule' | (string & {})>(); 26 + const _patternTypeSchema = /*#__PURE__*/ v.string<'domain' | 'url' | (string & {})>(); 27 + const _reasonTypeSchema = /*#__PURE__*/ v.string<'csam' | 'none' | 'phishing' | 'spam' | (string & {})>(); 28 + const _urlRuleSchema = /*#__PURE__*/ v.object({ 29 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('tools.ozone.safelink.defs#urlRule')), 30 + get action() { 31 + return actionTypeSchema; 32 + }, 33 + comment: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 34 + createdAt: /*#__PURE__*/ v.datetimeString(), 35 + createdBy: /*#__PURE__*/ v.didString(), 36 + get pattern() { 37 + return patternTypeSchema; 38 + }, 39 + get reason() { 40 + return reasonTypeSchema; 41 + }, 42 + updatedAt: /*#__PURE__*/ v.datetimeString(), 43 + url: /*#__PURE__*/ v.string(), 44 + }); 45 + 46 + type actionType$schematype = typeof _actionTypeSchema; 47 + type event$schematype = typeof _eventSchema; 48 + type eventType$schematype = typeof _eventTypeSchema; 49 + type patternType$schematype = typeof _patternTypeSchema; 50 + type reasonType$schematype = typeof _reasonTypeSchema; 51 + type urlRule$schematype = typeof _urlRuleSchema; 52 + 53 + export interface actionTypeSchema extends actionType$schematype {} 54 + export interface eventSchema extends event$schematype {} 55 + export interface eventTypeSchema extends eventType$schematype {} 56 + export interface patternTypeSchema extends patternType$schematype {} 57 + export interface reasonTypeSchema extends reasonType$schematype {} 58 + export interface urlRuleSchema extends urlRule$schematype {} 59 + 60 + export const actionTypeSchema = _actionTypeSchema as actionTypeSchema; 61 + export const eventSchema = _eventSchema as eventSchema; 62 + export const eventTypeSchema = _eventTypeSchema as eventTypeSchema; 63 + export const patternTypeSchema = _patternTypeSchema as patternTypeSchema; 64 + export const reasonTypeSchema = _reasonTypeSchema as reasonTypeSchema; 65 + export const urlRuleSchema = _urlRuleSchema as urlRuleSchema; 66 + 67 + export type ActionType = v.InferInput<typeof actionTypeSchema>; 68 + export interface Event extends v.InferInput<typeof eventSchema> {} 69 + export type EventType = v.InferInput<typeof eventTypeSchema>; 70 + export type PatternType = v.InferInput<typeof patternTypeSchema>; 71 + export type ReasonType = v.InferInput<typeof reasonTypeSchema>; 72 + export interface UrlRule extends v.InferInput<typeof urlRuleSchema> {}
+49
packages/definitions/ozone/lib/lexicons/types/tools/ozone/safelink/queryEvents.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import * as v from '@atcute/lexicons/validations'; 3 + import type {} from '@atcute/lexicons/ambient'; 4 + import * as ToolsOzoneSafelinkDefs from './defs.js'; 5 + 6 + const _mainSchema = /*#__PURE__*/ v.procedure('tools.ozone.safelink.queryEvents', { 7 + params: null, 8 + input: { 9 + type: 'lex', 10 + schema: /*#__PURE__*/ v.object({ 11 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 12 + limit: /*#__PURE__*/ v.optional( 13 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 14 + 50, 15 + ), 16 + patternType: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 17 + sortDirection: /*#__PURE__*/ v.optional( 18 + /*#__PURE__*/ v.string<'asc' | 'desc' | (string & {})>(), 19 + 'desc', 20 + ), 21 + urls: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 22 + }), 23 + }, 24 + output: { 25 + type: 'lex', 26 + schema: /*#__PURE__*/ v.object({ 27 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 28 + get events() { 29 + return /*#__PURE__*/ v.array(ToolsOzoneSafelinkDefs.eventSchema); 30 + }, 31 + }), 32 + }, 33 + }); 34 + 35 + type main$schematype = typeof _mainSchema; 36 + 37 + export interface mainSchema extends main$schematype {} 38 + 39 + export const mainSchema = _mainSchema as mainSchema; 40 + 41 + export interface $params {} 42 + export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {} 43 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 44 + 45 + declare module '@atcute/lexicons/ambient' { 46 + interface XRPCProcedures { 47 + 'tools.ozone.safelink.queryEvents': mainSchema; 48 + } 49 + }
+52
packages/definitions/ozone/lib/lexicons/types/tools/ozone/safelink/queryRules.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import * as v from '@atcute/lexicons/validations'; 3 + import type {} from '@atcute/lexicons/ambient'; 4 + import * as ToolsOzoneSafelinkDefs from './defs.js'; 5 + 6 + const _mainSchema = /*#__PURE__*/ v.procedure('tools.ozone.safelink.queryRules', { 7 + params: null, 8 + input: { 9 + type: 'lex', 10 + schema: /*#__PURE__*/ v.object({ 11 + actions: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 12 + createdBy: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 13 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 14 + limit: /*#__PURE__*/ v.optional( 15 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 100)]), 16 + 50, 17 + ), 18 + patternType: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 19 + reason: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 20 + sortDirection: /*#__PURE__*/ v.optional( 21 + /*#__PURE__*/ v.string<'asc' | 'desc' | (string & {})>(), 22 + 'desc', 23 + ), 24 + urls: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.array(/*#__PURE__*/ v.string())), 25 + }), 26 + }, 27 + output: { 28 + type: 'lex', 29 + schema: /*#__PURE__*/ v.object({ 30 + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 31 + get rules() { 32 + return /*#__PURE__*/ v.array(ToolsOzoneSafelinkDefs.urlRuleSchema); 33 + }, 34 + }), 35 + }, 36 + }); 37 + 38 + type main$schematype = typeof _mainSchema; 39 + 40 + export interface mainSchema extends main$schematype {} 41 + 42 + export const mainSchema = _mainSchema as mainSchema; 43 + 44 + export interface $params {} 45 + export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {} 46 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 47 + 48 + declare module '@atcute/lexicons/ambient' { 49 + interface XRPCProcedures { 50 + 'tools.ozone.safelink.queryRules': mainSchema; 51 + } 52 + }
+41
packages/definitions/ozone/lib/lexicons/types/tools/ozone/safelink/removeRule.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import * as v from '@atcute/lexicons/validations'; 3 + import type {} from '@atcute/lexicons/ambient'; 4 + import * as ToolsOzoneSafelinkDefs from './defs.js'; 5 + 6 + const _mainSchema = /*#__PURE__*/ v.procedure('tools.ozone.safelink.removeRule', { 7 + params: null, 8 + input: { 9 + type: 'lex', 10 + schema: /*#__PURE__*/ v.object({ 11 + comment: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 12 + createdBy: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 13 + get pattern() { 14 + return ToolsOzoneSafelinkDefs.patternTypeSchema; 15 + }, 16 + url: /*#__PURE__*/ v.string(), 17 + }), 18 + }, 19 + output: { 20 + type: 'lex', 21 + get schema() { 22 + return ToolsOzoneSafelinkDefs.eventSchema; 23 + }, 24 + }, 25 + }); 26 + 27 + type main$schematype = typeof _mainSchema; 28 + 29 + export interface mainSchema extends main$schematype {} 30 + 31 + export const mainSchema = _mainSchema as mainSchema; 32 + 33 + export interface $params {} 34 + export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {} 35 + export type $output = v.InferXRPCBodyInput<mainSchema['output']>; 36 + 37 + declare module '@atcute/lexicons/ambient' { 38 + interface XRPCProcedures { 39 + 'tools.ozone.safelink.removeRule': mainSchema; 40 + } 41 + }
+47
packages/definitions/ozone/lib/lexicons/types/tools/ozone/safelink/updateRule.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import * as v from '@atcute/lexicons/validations'; 3 + import type {} from '@atcute/lexicons/ambient'; 4 + import * as ToolsOzoneSafelinkDefs from './defs.js'; 5 + 6 + const _mainSchema = /*#__PURE__*/ v.procedure('tools.ozone.safelink.updateRule', { 7 + params: null, 8 + input: { 9 + type: 'lex', 10 + schema: /*#__PURE__*/ v.object({ 11 + get action() { 12 + return ToolsOzoneSafelinkDefs.actionTypeSchema; 13 + }, 14 + comment: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 15 + createdBy: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 16 + get pattern() { 17 + return ToolsOzoneSafelinkDefs.patternTypeSchema; 18 + }, 19 + get reason() { 20 + return ToolsOzoneSafelinkDefs.reasonTypeSchema; 21 + }, 22 + url: /*#__PURE__*/ v.string(), 23 + }), 24 + }, 25 + output: { 26 + type: 'lex', 27 + get schema() { 28 + return ToolsOzoneSafelinkDefs.eventSchema; 29 + }, 30 + }, 31 + }); 32 + 33 + type main$schematype = typeof _mainSchema; 34 + 35 + export interface mainSchema extends main$schematype {} 36 + 37 + export const mainSchema = _mainSchema as mainSchema; 38 + 39 + export interface $params {} 40 + export interface $input extends v.InferXRPCBodyInput<mainSchema['input']> {} 41 + export type $output = v.InferXRPCBodyInput<mainSchema['output']>; 42 + 43 + declare module '@atcute/lexicons/ambient' { 44 + interface XRPCProcedures { 45 + 'tools.ozone.safelink.updateRule': mainSchema; 46 + } 47 + }