@atproto/api 0.26.0 → 0.28.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.
Files changed (27) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/client/index.d.ts +3 -0
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +5 -0
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +392 -56
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +197 -28
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/app/bsky/notification/getGroupedNotifications.d.ts +2 -0
  11. package/dist/client/types/app/bsky/notification/getGroupedNotifications.d.ts.map +1 -1
  12. package/dist/client/types/app/bsky/notification/getGroupedNotifications.js.map +1 -1
  13. package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreArticleRecommendations.d.ts +33 -0
  14. package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreArticleRecommendations.d.ts.map +1 -0
  15. package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreArticleRecommendations.js +21 -0
  16. package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreArticleRecommendations.js.map +1 -0
  17. package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreTab.d.ts +37 -5
  18. package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreTab.d.ts.map +1 -1
  19. package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreTab.js +28 -0
  20. package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreTab.js.map +1 -1
  21. package/dist/client/types/tools/ozone/inbox/defs.d.ts +4 -0
  22. package/dist/client/types/tools/ozone/inbox/defs.d.ts.map +1 -1
  23. package/dist/client/types/tools/ozone/inbox/defs.js.map +1 -1
  24. package/dist/client/types/tools/ozone/queue/defs.d.ts +26 -6
  25. package/dist/client/types/tools/ozone/queue/defs.d.ts.map +1 -1
  26. package/dist/client/types/tools/ozone/queue/defs.js.map +1 -1
  27. package/package.json +14 -8
@@ -1 +1 @@
1
- {"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/queue/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAyB,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAG5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,wBAAwB,CAAA;AAiCnC,MAAM,aAAa,GAAG,WAAW,CAAA;AAEjC,MAAM,UAAU,WAAW,CAAI,CAAI;IACjC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAA;AACvC,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAI,CAAI;IACvC,OAAO,QAAQ,CAAgB,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAA;AACtD,CAAC;AA4BD,MAAM,cAAc,GAAG,YAAY,CAAA;AAEnC,MAAM,UAAU,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxC,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAI,CAAI;IACxC,OAAO,QAAQ,CAAiB,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxD,CAAC;AAYD,MAAM,kBAAkB,GAAG,gBAAgB,CAAA;AAE3C,MAAM,UAAU,gBAAgB,CAAI,CAAI;IACtC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,kBAAkB,CAAC,CAAA;AAC5C,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAI,CAAI;IAC5C,OAAO,QAAQ,CAAqB,CAAC,EAAE,EAAE,EAAE,kBAAkB,CAAC,CAAA;AAChE,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ToolsOzoneTeamDefs from '../team/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.queue.defs'\n\nexport interface QueueView {\n $type?: 'tools.ozone.queue.defs#queueView'\n /** Queue ID */\n id: number\n /** Display name of the queue */\n name: string\n /** Subject types this queue accepts. */\n subjectTypes?: (\n 'account' | 'record' | 'message' | 'conversation' | (string & {})\n )[]\n /** Collection name for record subjects (e.g., 'app.bsky.feed.post') */\n collection?: string\n /** Report reason types this queue accepts (fully qualified NSIDs) */\n reportTypes?: string[]\n /** Optional description of the queue */\n description?: string\n /** Policy keys recommended when actioning reports in this queue */\n recommendedPolicies?: string[]\n /** Labels recommended for this queue and used as a fallback when routing label appeals */\n recommendedLabels?: string[]\n /** DID of moderator who created this queue */\n createdBy: string\n createdAt: string\n updatedAt: string\n /** Whether this queue is currently active */\n enabled: boolean\n /** When the queue was deleted, if applicable */\n deletedAt?: string\n stats: QueueStats\n}\n\nconst hashQueueView = 'queueView'\n\nexport function isQueueView<V>(v: V) {\n return is$typed(v, id, hashQueueView)\n}\n\nexport function validateQueueView<V>(v: V) {\n return validate<QueueView & V>(v, id, hashQueueView)\n}\n\nexport interface QueueStats {\n $type?: 'tools.ozone.queue.defs#queueStats'\n /** Number of unmuted reports currently not closed. */\n pendingCount?: number\n /** Unmuted pending reports past their closure target. */\n closureTargetOverdueCount?: number\n /** Reports whose closure meets their closure target. */\n closureTargetMetCount?: number\n /** Reports whose closure exceeds their closure target. */\n closureTargetMissedCount?: number\n /** Percent of reports meeting their closure target. */\n closureTargetMetRate?: number\n /** Number of reports in 'closed' status */\n actionedCount?: number\n /** Number of reports in 'escalated' status */\n escalatedCount?: number\n /** Reports received in this queue in the last 24 hours. */\n inboundCount?: number\n /** Percentage of reports actioned (actionedCount / inboundCount * 100), rounded to nearest integer. Absent when inboundCount is 0. */\n actionRate?: number\n /** Average time in seconds from report creation to close, for reports closed in this period. */\n avgHandlingTimeSec?: number\n /** When these statistics were last computed */\n lastUpdated?: string\n}\n\nconst hashQueueStats = 'queueStats'\n\nexport function isQueueStats<V>(v: V) {\n return is$typed(v, id, hashQueueStats)\n}\n\nexport function validateQueueStats<V>(v: V) {\n return validate<QueueStats & V>(v, id, hashQueueStats)\n}\n\nexport interface AssignmentView {\n $type?: 'tools.ozone.queue.defs#assignmentView'\n id: number\n did: string\n moderator?: ToolsOzoneTeamDefs.Member\n queue: QueueView\n startAt: string\n endAt?: string\n}\n\nconst hashAssignmentView = 'assignmentView'\n\nexport function isAssignmentView<V>(v: V) {\n return is$typed(v, id, hashAssignmentView)\n}\n\nexport function validateAssignmentView<V>(v: V) {\n return validate<AssignmentView & V>(v, id, hashAssignmentView)\n}\n"]}
1
+ {"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/queue/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAyB,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAG5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,wBAAwB,CAAA;AAiCnC,MAAM,aAAa,GAAG,WAAW,CAAA;AAEjC,MAAM,UAAU,WAAW,CAAI,CAAI;IACjC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAA;AACvC,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAI,CAAI;IACvC,OAAO,QAAQ,CAAgB,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAA;AACtD,CAAC;AAgDD,MAAM,cAAc,GAAG,YAAY,CAAA;AAEnC,MAAM,UAAU,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxC,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAI,CAAI;IACxC,OAAO,QAAQ,CAAiB,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxD,CAAC;AAYD,MAAM,kBAAkB,GAAG,gBAAgB,CAAA;AAE3C,MAAM,UAAU,gBAAgB,CAAI,CAAI;IACtC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,kBAAkB,CAAC,CAAA;AAC5C,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAI,CAAI;IAC5C,OAAO,QAAQ,CAAqB,CAAC,EAAE,EAAE,EAAE,kBAAkB,CAAC,CAAA;AAChE,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ToolsOzoneTeamDefs from '../team/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.queue.defs'\n\nexport interface QueueView {\n $type?: 'tools.ozone.queue.defs#queueView'\n /** Queue ID */\n id: number\n /** Display name of the queue */\n name: string\n /** Subject types this queue accepts. */\n subjectTypes?: (\n 'account' | 'record' | 'message' | 'conversation' | (string & {})\n )[]\n /** Collection name for record subjects (e.g., 'app.bsky.feed.post') */\n collection?: string\n /** Report reason types this queue accepts (fully qualified NSIDs) */\n reportTypes?: string[]\n /** Optional description of the queue */\n description?: string\n /** Policy keys recommended when actioning reports in this queue */\n recommendedPolicies?: string[]\n /** Labels recommended for this queue and used as a fallback when routing label appeals */\n recommendedLabels?: string[]\n /** DID of moderator who created this queue */\n createdBy: string\n createdAt: string\n updatedAt: string\n /** Whether this queue is currently active */\n enabled: boolean\n /** When the queue was deleted, if applicable */\n deletedAt?: string\n stats: QueueStats\n}\n\nconst hashQueueView = 'queueView'\n\nexport function isQueueView<V>(v: V) {\n return is$typed(v, id, hashQueueView)\n}\n\nexport function validateQueueView<V>(v: V) {\n return validate<QueueView & V>(v, id, hashQueueView)\n}\n\nexport interface QueueStats {\n $type?: 'tools.ozone.queue.defs#queueStats'\n /** Number of unmuted reports currently not closed. */\n pendingCount?: number\n /** Unmuted pending reports past their closure target. */\n closureTargetOverdueCount?: number\n /** Reports whose closure meets their closure target. */\n closureTargetMetCount?: number\n /** Reports whose closure exceeds their closure target. */\n closureTargetMissedCount?: number\n /** Percent of reports meeting their closure target. */\n closureTargetMetRate?: number\n /** Number of reports whose current closure falls within this UTC calendar day. */\n closedCount?: number\n /** Number of closures whose last report action is label, tag, or takedown. */\n actionedCount?: number\n /** Number of closures whose last report action is not label, tag, or takedown. */\n acknowledgedCount?: number\n /** Number of report escalation events during this UTC calendar day. */\n escalatedCount?: number\n /** Reports received in this queue during this UTC calendar day. */\n inboundCount?: number\n /** Closures whose last report action is a label event. */\n labelActionCount?: number\n /** Closures whose last report action is a tag event. */\n tagActionCount?: number\n /** Closures whose last report action is a takedown event. */\n takedownActionCount?: number\n /** Sum of report assignment-to-close seconds. */\n ahtDurationSec?: number\n /** Number of assigned closed-report samples in ahtDurationSec. */\n ahtSampleCount?: number\n /** Sum of report creation-to-close seconds. */\n resolutionDurationSec?: number\n /** Number of closed-report samples in resolutionDurationSec. */\n resolutionSampleCount?: number\n /** Percentage of closures actioned (actionedCount / closedCount * 100), rounded to nearest integer. */\n actionRate?: number\n /** Average handling time in seconds from report assignment to close. */\n avgHandlingTimeSec?: number\n /** Average resolution time in seconds from report creation to close. */\n avgResolutionTimeSec?: number\n /** When these statistics were last computed. */\n lastUpdated?: string\n}\n\nconst hashQueueStats = 'queueStats'\n\nexport function isQueueStats<V>(v: V) {\n return is$typed(v, id, hashQueueStats)\n}\n\nexport function validateQueueStats<V>(v: V) {\n return validate<QueueStats & V>(v, id, hashQueueStats)\n}\n\nexport interface AssignmentView {\n $type?: 'tools.ozone.queue.defs#assignmentView'\n id: number\n did: string\n moderator?: ToolsOzoneTeamDefs.Member\n queue: QueueView\n startAt: string\n endAt?: string\n}\n\nconst hashAssignmentView = 'assignmentView'\n\nexport function isAssignmentView<V>(v: V) {\n return is$typed(v, id, hashAssignmentView)\n}\n\nexport function validateAssignmentView<V>(v: V) {\n return validate<AssignmentView & V>(v, id, hashAssignmentView)\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/api",
3
- "version": "0.26.0",
3
+ "version": "0.28.0",
4
4
  "license": "MIT",
5
5
  "description": "Client library for atproto and Bluesky",
6
6
  "keywords": [
@@ -35,22 +35,28 @@
35
35
  "multiformats": "^13.0.0",
36
36
  "tlds": "^1.234.0",
37
37
  "zod": "^3.23.8",
38
- "@atproto/common-web": "^0.5.14",
39
- "@atproto/lexicon": "^0.7.16",
40
- "@atproto/syntax": "^0.7.6",
41
- "@atproto/xrpc": "^0.8.15"
38
+ "@atproto/lexicon": "^0.7.17",
39
+ "@atproto/common-web": "^0.5.15",
40
+ "@atproto/syntax": "^0.7.7",
41
+ "@atproto/xrpc": "^0.8.16"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@jest/globals": "^28.1.3",
45
45
  "http-terminator": "^3.2.0",
46
46
  "jest": "^30.5.2",
47
47
  "prettier": "^3.9.6",
48
- "@atproto/lex-cli": "^0.10.15"
48
+ "@atproto/lex-installer": "^0.2.0",
49
+ "@atproto/lex-cli": "^0.10.16"
49
50
  },
50
51
  "scripts": {
51
- "codegen:lex": "lex gen-api --yes ./src/client ../../lexicons/com/atproto/*/* ../../lexicons/app/bsky/*/* ../../lexicons/chat/bsky/*/* ../../lexicons/tools/ozone/*/* ../../lexicons/com/germnetwork/*",
52
+ "lex:gen": "if [ ! -f ./src/client/index.ts ] || [ -n \"$(find -L ./lexicons -type f -newer ./src/client/index.ts -print -quit)\" ]; then lex gen-api --yes ./src/client ./lexicons/com/atproto/*/* ./lexicons/app/bsky/*/* ./lexicons/chat/bsky/*/* ./lexicons/tools/ozone/*/* ./lexicons/com/germnetwork/*; fi",
53
+ "lex:install": "lex-installer install",
54
+ "postlex:install": "pnpm run lex:gen",
55
+ "lex:update": "lex-installer update",
56
+ "postlex:update": "pnpm run lex:gen",
57
+ "codegen:lex": "pnpm run lex:install --ci",
52
58
  "codegen:code": "node ./scripts/generate-code.js",
53
- "prebuild": "pnpm run codegen:code && if [ ! -f ./src/client/index.ts ] || [ -n \"$(find ../../lexicons -name '*.json' -newer ./src/client/index.ts -type f -print -quit)\" ]; then pnpm run codegen:lex; fi",
59
+ "prebuild": "pnpm run '/^(codegen:.+)$/'",
54
60
  "build": "tsc --build tsconfig.build.json",
55
61
  "test": "NODE_OPTIONS=--experimental-vm-modules jest"
56
62
  }