@atproto/api 0.31.1 → 0.32.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 (31) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/client/index.d.ts +6 -0
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +10 -0
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +828 -10
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +434 -5
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/app/bsky/embed/external.d.ts +14 -1
  11. package/dist/client/types/app/bsky/embed/external.d.ts.map +1 -1
  12. package/dist/client/types/app/bsky/embed/external.js +7 -0
  13. package/dist/client/types/app/bsky/embed/external.js.map +1 -1
  14. package/dist/client/types/app/bsky/unspecced/getAtmosphereApps.d.ts +4 -0
  15. package/dist/client/types/app/bsky/unspecced/getAtmosphereApps.d.ts.map +1 -1
  16. package/dist/client/types/app/bsky/unspecced/getAtmosphereApps.js.map +1 -1
  17. package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreTab.d.ts +6 -2
  18. package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreTab.d.ts.map +1 -1
  19. package/dist/client/types/app/bsky/unspecced/getAtmosphereExploreTab.js.map +1 -1
  20. package/dist/client/types/app/bsky/unspecced/getAtmosphereTimelineV2.d.ts +115 -0
  21. package/dist/client/types/app/bsky/unspecced/getAtmosphereTimelineV2.d.ts.map +1 -0
  22. package/dist/client/types/app/bsky/unspecced/getAtmosphereTimelineV2.js +63 -0
  23. package/dist/client/types/app/bsky/unspecced/getAtmosphereTimelineV2.js.map +1 -0
  24. package/dist/client/types/tools/ozone/moderation/emitEvent.d.ts +6 -0
  25. package/dist/client/types/tools/ozone/moderation/emitEvent.d.ts.map +1 -1
  26. package/dist/client/types/tools/ozone/moderation/emitEvent.js.map +1 -1
  27. package/dist/client/types/tools/ozone/report/queryModeratorActivity.d.ts +48 -0
  28. package/dist/client/types/tools/ozone/report/queryModeratorActivity.d.ts.map +1 -0
  29. package/dist/client/types/tools/ozone/report/queryModeratorActivity.js +21 -0
  30. package/dist/client/types/tools/ozone/report/queryModeratorActivity.js.map +1 -0
  31. package/package.json +1 -1
@@ -0,0 +1,48 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type HeadersMap } from '@atproto/xrpc';
5
+ import { type ValidationResult } from '@atproto/lexicon';
6
+ import type * as ToolsOzoneModerationDefs from '../moderation/defs.js';
7
+ import type * as ToolsOzoneReportDefs from './defs.js';
8
+ export type QueryParams = {
9
+ moderator: string;
10
+ /** Inclusive UTC lower bound. */
11
+ createdAfter: string;
12
+ /** Exclusive UTC upper bound. */
13
+ createdBefore: string;
14
+ types?: string[];
15
+ limit?: number;
16
+ cursor?: string;
17
+ };
18
+ export type InputSchema = undefined;
19
+ export interface OutputSchema {
20
+ rows: ActivityRow[];
21
+ cursor?: string;
22
+ }
23
+ export interface CallOptions {
24
+ signal?: AbortSignal;
25
+ headers?: HeadersMap;
26
+ }
27
+ export interface Response {
28
+ success: boolean;
29
+ headers: HeadersMap;
30
+ data: OutputSchema;
31
+ }
32
+ export declare function toKnownErr(e: any): any;
33
+ export interface ActivityRow {
34
+ $type?: 'tools.ozone.report.queryModeratorActivity#activityRow';
35
+ source: 'event' | 'activity';
36
+ id: number;
37
+ createdAt: string;
38
+ createdBy: string;
39
+ type: string;
40
+ subject?: string;
41
+ reportId?: number;
42
+ actionEventId?: number;
43
+ event?: ToolsOzoneModerationDefs.ModEventView;
44
+ activity?: ToolsOzoneReportDefs.ReportActivityView;
45
+ }
46
+ export declare function isActivityRow<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.report.queryModeratorActivity", "activityRow">;
47
+ export declare function validateActivityRow<V>(v: V): ValidationResult<ActivityRow & V>;
48
+ //# sourceMappingURL=queryModeratorActivity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queryModeratorActivity.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/queryModeratorActivity.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAa,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,wBAAwB,MAAM,uBAAuB,CAAA;AACtE,OAAO,KAAK,KAAK,oBAAoB,MAAM,WAAW,CAAA;AAMtD,MAAM,MAAM,WAAW,GAAG;IACxB,SAAS,EAAE,MAAM,CAAA;IACjB,iCAAiC;IACjC,YAAY,EAAE,MAAM,CAAA;IACpB,iCAAiC;IACjC,aAAa,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,WAAW,EAAE,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAEhC;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,uDAAuD,CAAA;IAC/D,MAAM,EAAE,OAAO,GAAG,UAAU,CAAA;IAC5B,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,wBAAwB,CAAC,YAAY,CAAA;IAC7C,QAAQ,CAAC,EAAE,oBAAoB,CAAC,kBAAkB,CAAA;CACnD;AAID,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,kHAEpC;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,qCAE1C"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { XRPCError } from '@atproto/xrpc';
5
+ import { BlobRef } from '@atproto/lexicon';
6
+ import { CID } from 'multiformats/cid';
7
+ import { validate as _validate } from '../../../../lexicons.js';
8
+ import { is$typed as _is$typed, } from '../../../../util.js';
9
+ const is$typed = _is$typed, validate = _validate;
10
+ const id = 'tools.ozone.report.queryModeratorActivity';
11
+ export function toKnownErr(e) {
12
+ return e;
13
+ }
14
+ const hashActivityRow = 'activityRow';
15
+ export function isActivityRow(v) {
16
+ return is$typed(v, id, hashActivityRow);
17
+ }
18
+ export function validateActivityRow(v) {
19
+ return validate(v, id, hashActivityRow);
20
+ }
21
+ //# sourceMappingURL=queryModeratorActivity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queryModeratorActivity.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/report/queryModeratorActivity.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAmB,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,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;AAI5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,2CAA2C,CAAA;AA8BtD,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC;AAgBD,MAAM,eAAe,GAAG,aAAa,CAAA;AAErC,MAAM,UAAU,aAAa,CAAI,CAAI;IACnC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AACzC,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAI,CAAI;IACzC,OAAO,QAAQ,CAAkB,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AAC1D,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type HeadersMap, XRPCError } from '@atproto/xrpc'\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 ToolsOzoneModerationDefs from '../moderation/defs.js'\nimport type * as ToolsOzoneReportDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.report.queryModeratorActivity'\n\nexport type QueryParams = {\n moderator: string\n /** Inclusive UTC lower bound. */\n createdAfter: string\n /** Exclusive UTC upper bound. */\n createdBefore: string\n types?: string[]\n limit?: number\n cursor?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n rows: ActivityRow[]\n cursor?: string\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n return e\n}\n\nexport interface ActivityRow {\n $type?: 'tools.ozone.report.queryModeratorActivity#activityRow'\n source: 'event' | 'activity'\n id: number\n createdAt: string\n createdBy: string\n type: string\n subject?: string\n reportId?: number\n actionEventId?: number\n event?: ToolsOzoneModerationDefs.ModEventView\n activity?: ToolsOzoneReportDefs.ReportActivityView\n}\n\nconst hashActivityRow = 'activityRow'\n\nexport function isActivityRow<V>(v: V) {\n return is$typed(v, id, hashActivityRow)\n}\n\nexport function validateActivityRow<V>(v: V) {\n return validate<ActivityRow & V>(v, id, hashActivityRow)\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/api",
3
- "version": "0.31.1",
3
+ "version": "0.32.0",
4
4
  "license": "MIT",
5
5
  "description": "Client library for atproto and Bluesky",
6
6
  "keywords": [