@atproto/api 0.20.1 → 0.20.2

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 +10 -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 +8 -0
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +390 -10
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +199 -6
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/app/bsky/embed/external.d.ts +45 -2
  11. package/dist/client/types/app/bsky/embed/external.d.ts.map +1 -1
  12. package/dist/client/types/app/bsky/embed/external.js +21 -0
  13. package/dist/client/types/app/bsky/embed/external.js.map +1 -1
  14. package/dist/client/types/app/bsky/embed/getEmbedExternalView.d.ts +32 -0
  15. package/dist/client/types/app/bsky/embed/getEmbedExternalView.d.ts.map +1 -0
  16. package/dist/client/types/app/bsky/embed/getEmbedExternalView.js +8 -0
  17. package/dist/client/types/app/bsky/embed/getEmbedExternalView.js.map +1 -0
  18. package/dist/client/types/chat/bsky/actor/getStatus.d.ts +23 -0
  19. package/dist/client/types/chat/bsky/actor/getStatus.d.ts.map +1 -0
  20. package/dist/client/types/chat/bsky/actor/getStatus.js +8 -0
  21. package/dist/client/types/chat/bsky/actor/getStatus.js.map +1 -0
  22. package/dist/client/types/chat/bsky/group/addMembers.d.ts +3 -3
  23. package/dist/client/types/chat/bsky/group/addMembers.d.ts.map +1 -1
  24. package/dist/client/types/chat/bsky/group/addMembers.js +7 -7
  25. package/dist/client/types/chat/bsky/group/addMembers.js.map +1 -1
  26. package/dist/client/types/chat/bsky/group/createGroup.d.ts +4 -1
  27. package/dist/client/types/chat/bsky/group/createGroup.d.ts.map +1 -1
  28. package/dist/client/types/chat/bsky/group/createGroup.js +10 -3
  29. package/dist/client/types/chat/bsky/group/createGroup.js.map +1 -1
  30. package/package.json +1 -1
  31. package/tsconfig.build.tsbuildinfo +1 -1
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import { type ValidationResult, BlobRef } from '@atproto/lexicon';
5
5
  import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
6
+ import type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js';
6
7
  /** A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post). */
7
8
  export interface Main {
8
9
  $type?: 'app.bsky.embed.external';
@@ -16,8 +17,8 @@ export interface External {
16
17
  title: string;
17
18
  description: string;
18
19
  thumb?: BlobRef;
19
- /** The URI of the Atmosphere record representing this external content, if it exists. Example: a site.standard.document record. */
20
- associatedRecords?: ComAtprotoRepoStrongRef.Main[];
20
+ /** StrongRefs (uri+cid) of the Atmosphere records that backed this view. */
21
+ associatedRefs?: ComAtprotoRepoStrongRef.Main[];
21
22
  }
22
23
  export declare function isExternal<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.embed.external", "external">;
23
24
  export declare function validateExternal<V>(v: V): ValidationResult<External & V>;
@@ -33,7 +34,49 @@ export interface ViewExternal {
33
34
  title: string;
34
35
  description: string;
35
36
  thumb?: string;
37
+ /** When the external content was created, if available. Example: a publication date, for an article. */
38
+ createdAt?: string;
39
+ /** When the external content was updated, if available. */
40
+ updatedAt?: string;
41
+ /** Estimated reading time in minutes, if applicable and available. */
42
+ readingTime?: number;
43
+ labels?: ComAtprotoLabelDefs.Label[];
44
+ source?: ViewExternalSource;
45
+ /** StrongRefs (uri+cid) of the Atmosphere records that backed this view. */
46
+ associatedRefs?: ComAtprotoRepoStrongRef.Main[];
36
47
  }
37
48
  export declare function isViewExternal<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.embed.external", "viewExternal">;
38
49
  export declare function validateViewExternal<V>(v: V): ValidationResult<ViewExternal & V>;
50
+ /** The source of an external embed, such as a standard.site publication. */
51
+ export interface ViewExternalSource {
52
+ $type?: 'app.bsky.embed.external#viewExternalSource';
53
+ /** URI of the source, if available. Example: the https:// URL of a site.standard.publication record. */
54
+ uri?: string;
55
+ /** Fully-qualified URL where an icon representing the source can be fetched. For example, CDN location provided by the App View. */
56
+ icon?: string;
57
+ title?: string;
58
+ description?: string;
59
+ theme?: ViewExternalSourceTheme;
60
+ }
61
+ export declare function isViewExternalSource<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.embed.external", "viewExternalSource">;
62
+ export declare function validateViewExternalSource<V>(v: V): ValidationResult<ViewExternalSource & V>;
63
+ /** The theme colors of an external source, such as a site.standard.publication. These colors may be used when rendering an embed from that source. */
64
+ export interface ViewExternalSourceTheme {
65
+ $type?: 'app.bsky.embed.external#viewExternalSourceTheme';
66
+ backgroundRGB?: ColorRGB;
67
+ foregroundRGB?: ColorRGB;
68
+ accentRGB?: ColorRGB;
69
+ accentForegroundRGB?: ColorRGB;
70
+ }
71
+ export declare function isViewExternalSourceTheme<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.embed.external", "viewExternalSourceTheme">;
72
+ export declare function validateViewExternalSourceTheme<V>(v: V): ValidationResult<ViewExternalSourceTheme & V>;
73
+ /** RGB color definition, inspired by site.standard.theme.color#rgb */
74
+ export interface ColorRGB {
75
+ $type?: 'app.bsky.embed.external#colorRGB';
76
+ r: number;
77
+ g: number;
78
+ b: number;
79
+ }
80
+ export declare function isColorRGB<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "app.bsky.embed.external", "colorRGB">;
81
+ export declare function validateColorRGB<V>(v: V): ValidationResult<ColorRGB & V>;
39
82
  //# sourceMappingURL=external.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/embed/external.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,u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C,CAAC,EAAE,CAAC,EAAE,CAAC,4GAEhD;AAED,wBAAgB,+BAA+B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,iDAMtD;AAED,sEAAsE;AACtE,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,EAAE,kCAAkC,CAAA;IAC1C,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACV;AAID,wBAAgB,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,6FAEjC;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,kCAEvC"}
@@ -30,4 +30,25 @@ export function isViewExternal(v) {
30
30
  export function validateViewExternal(v) {
31
31
  return validate(v, id, hashViewExternal);
32
32
  }
33
+ const hashViewExternalSource = 'viewExternalSource';
34
+ export function isViewExternalSource(v) {
35
+ return is$typed(v, id, hashViewExternalSource);
36
+ }
37
+ export function validateViewExternalSource(v) {
38
+ return validate(v, id, hashViewExternalSource);
39
+ }
40
+ const hashViewExternalSourceTheme = 'viewExternalSourceTheme';
41
+ export function isViewExternalSourceTheme(v) {
42
+ return is$typed(v, id, hashViewExternalSourceTheme);
43
+ }
44
+ export function validateViewExternalSourceTheme(v) {
45
+ return validate(v, id, hashViewExternalSourceTheme);
46
+ }
47
+ const hashColorRGB = 'colorRGB';
48
+ export function isColorRGB(v) {
49
+ return is$typed(v, id, hashColorRGB);
50
+ }
51
+ export function validateColorRGB(v) {
52
+ return validate(v, id, hashColorRGB);
53
+ }
33
54
  //# sourceMappingURL=external.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"external.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/embed/external.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAG5B,MAA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\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 ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.embed.external'\n\n/** A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post). */\nexport interface Main {\n $type?: 'app.bsky.embed.external'\n external: External\n}\n\nconst hashMain = 'main'\n\nexport function isMain<V>(v: V) {\n return is$typed(v, id, hashMain)\n}\n\nexport function validateMain<V>(v: V) {\n return validate<Main & V>(v, id, hashMain)\n}\n\nexport interface External {\n $type?: 'app.bsky.embed.external#external'\n uri: string\n title: string\n description: string\n thumb?: BlobRef\n /** The URI of the Atmosphere record representing this external content, if it exists. Example: a site.standard.document record. */\n associatedRecords?: ComAtprotoRepoStrongRef.Main[]\n}\n\nconst hashExternal = 'external'\n\nexport function isExternal<V>(v: V) {\n return is$typed(v, id, hashExternal)\n}\n\nexport function validateExternal<V>(v: V) {\n return validate<External & V>(v, id, hashExternal)\n}\n\nexport interface View {\n $type?: 'app.bsky.embed.external#view'\n external: ViewExternal\n}\n\nconst hashView = 'view'\n\nexport function isView<V>(v: V) {\n return is$typed(v, id, hashView)\n}\n\nexport function validateView<V>(v: V) {\n return validate<View & V>(v, id, hashView)\n}\n\nexport interface ViewExternal {\n $type?: 'app.bsky.embed.external#viewExternal'\n uri: string\n title: string\n description: string\n thumb?: string\n}\n\nconst hashViewExternal = 'viewExternal'\n\nexport function isViewExternal<V>(v: V) {\n return is$typed(v, id, hashViewExternal)\n}\n\nexport function validateViewExternal<V>(v: V) {\n return validate<ViewExternal & V>(v, id, hashViewExternal)\n}\n"]}
1
+ {"version":3,"file":"external.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/embed/external.ts"],"names":[],"mappings":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oB,CAAI,CAAI;IAC1C,OAAO,QAAQ,CAAmB,CAAC,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAA;AAC5D,CAAC;AAcD,MAAM,sBAAsB,GAAG,oBAAoB,CAAA;AAEnD,MAAM,UAAU,oBAAoB,CAAI,CAAI;IAC1C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,sBAAsB,CAAC,CAAA;AAChD,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAI,CAAI;IAChD,OAAO,QAAQ,CAAyB,CAAC,EAAE,EAAE,EAAE,sBAAsB,CAAC,CAAA;AACxE,CAAC;AAWD,MAAM,2BAA2B,GAAG,yBAAyB,CAAA;AAE7D,MAAM,UAAU,yBAAyB,CAAI,CAAI;IAC/C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,2BAA2B,CAAC,CAAA;AACrD,CAAC;AAED,MAAM,UAAU,+BAA+B,CAAI,CAAI;IACrD,OAAO,QAAQ,CACb,CAAC,EACD,EAAE,EACF,2BAA2B,CAC5B,CAAA;AACH,CAAC;AAUD,MAAM,YAAY,GAAG,UAAU,CAAA;AAE/B,MAAM,UAAU,UAAU,CAAI,CAAI;IAChC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,YAAY,CAAC,CAAA;AACtC,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAI,CAAI;IACtC,OAAO,QAAQ,CAAe,CAAC,EAAE,EAAE,EAAE,YAAY,CAAC,CAAA;AACpD,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 ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\nimport type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.embed.external'\n\n/** A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post). */\nexport interface Main {\n $type?: 'app.bsky.embed.external'\n external: External\n}\n\nconst hashMain = 'main'\n\nexport function isMain<V>(v: V) {\n return is$typed(v, id, hashMain)\n}\n\nexport function validateMain<V>(v: V) {\n return validate<Main & V>(v, id, hashMain)\n}\n\nexport interface External {\n $type?: 'app.bsky.embed.external#external'\n uri: string\n title: string\n description: string\n thumb?: BlobRef\n /** StrongRefs (uri+cid) of the Atmosphere records that backed this view. */\n associatedRefs?: ComAtprotoRepoStrongRef.Main[]\n}\n\nconst hashExternal = 'external'\n\nexport function isExternal<V>(v: V) {\n return is$typed(v, id, hashExternal)\n}\n\nexport function validateExternal<V>(v: V) {\n return validate<External & V>(v, id, hashExternal)\n}\n\nexport interface View {\n $type?: 'app.bsky.embed.external#view'\n external: ViewExternal\n}\n\nconst hashView = 'view'\n\nexport function isView<V>(v: V) {\n return is$typed(v, id, hashView)\n}\n\nexport function validateView<V>(v: V) {\n return validate<View & V>(v, id, hashView)\n}\n\nexport interface ViewExternal {\n $type?: 'app.bsky.embed.external#viewExternal'\n uri: string\n title: string\n description: string\n thumb?: string\n /** When the external content was created, if available. Example: a publication date, for an article. */\n createdAt?: string\n /** When the external content was updated, if available. */\n updatedAt?: string\n /** Estimated reading time in minutes, if applicable and available. */\n readingTime?: number\n labels?: ComAtprotoLabelDefs.Label[]\n source?: ViewExternalSource\n /** StrongRefs (uri+cid) of the Atmosphere records that backed this view. */\n associatedRefs?: ComAtprotoRepoStrongRef.Main[]\n}\n\nconst hashViewExternal = 'viewExternal'\n\nexport function isViewExternal<V>(v: V) {\n return is$typed(v, id, hashViewExternal)\n}\n\nexport function validateViewExternal<V>(v: V) {\n return validate<ViewExternal & V>(v, id, hashViewExternal)\n}\n\n/** The source of an external embed, such as a standard.site publication. */\nexport interface ViewExternalSource {\n $type?: 'app.bsky.embed.external#viewExternalSource'\n /** URI of the source, if available. Example: the https:// URL of a site.standard.publication record. */\n uri?: string\n /** Fully-qualified URL where an icon representing the source can be fetched. For example, CDN location provided by the App View. */\n icon?: string\n title?: string\n description?: string\n theme?: ViewExternalSourceTheme\n}\n\nconst hashViewExternalSource = 'viewExternalSource'\n\nexport function isViewExternalSource<V>(v: V) {\n return is$typed(v, id, hashViewExternalSource)\n}\n\nexport function validateViewExternalSource<V>(v: V) {\n return validate<ViewExternalSource & V>(v, id, hashViewExternalSource)\n}\n\n/** The theme colors of an external source, such as a site.standard.publication. These colors may be used when rendering an embed from that source. */\nexport interface ViewExternalSourceTheme {\n $type?: 'app.bsky.embed.external#viewExternalSourceTheme'\n backgroundRGB?: ColorRGB\n foregroundRGB?: ColorRGB\n accentRGB?: ColorRGB\n accentForegroundRGB?: ColorRGB\n}\n\nconst hashViewExternalSourceTheme = 'viewExternalSourceTheme'\n\nexport function isViewExternalSourceTheme<V>(v: V) {\n return is$typed(v, id, hashViewExternalSourceTheme)\n}\n\nexport function validateViewExternalSourceTheme<V>(v: V) {\n return validate<ViewExternalSourceTheme & V>(\n v,\n id,\n hashViewExternalSourceTheme,\n )\n}\n\n/** RGB color definition, inspired by site.standard.theme.color#rgb */\nexport interface ColorRGB {\n $type?: 'app.bsky.embed.external#colorRGB'\n r: number\n g: number\n b: number\n}\n\nconst hashColorRGB = 'colorRGB'\n\nexport function isColorRGB<V>(v: V) {\n return is$typed(v, id, hashColorRGB)\n}\n\nexport function validateColorRGB<V>(v: V) {\n return validate<ColorRGB & V>(v, id, hashColorRGB)\n}\n"]}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap } from '@atproto/xrpc';
5
+ import type * as AppBskyEmbedExternal from './external.js';
6
+ import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
7
+ export type QueryParams = {
8
+ /** The canonical web URL the embed represents (typically the URL the user pasted into the composer). Used as the returned view's `uri`. May be used for validation in the future. */
9
+ url: string;
10
+ /** AT-URIs of any Atmosphere records that can be resolved and used to construct #externalView views. Example: a site.standard.document and optionally its associated site.standard.publication. */
11
+ uris: string[];
12
+ };
13
+ export type InputSchema = undefined;
14
+ export interface OutputSchema {
15
+ view?: AppBskyEmbedExternal.View;
16
+ /** StrongRefs (URI+CID) of the Atmosphere records that backed this view, suitable for embedding into a post's external.associatedRefs. */
17
+ associatedRefs?: ComAtprotoRepoStrongRef.Main[];
18
+ associatedRecords?: {
19
+ [_ in string]: unknown;
20
+ }[];
21
+ }
22
+ export interface CallOptions {
23
+ signal?: AbortSignal;
24
+ headers?: HeadersMap;
25
+ }
26
+ export interface Response {
27
+ success: boolean;
28
+ headers: HeadersMap;
29
+ data: OutputSchema;
30
+ }
31
+ export declare function toKnownErr(e: any): any;
32
+ //# sourceMappingURL=getEmbedExternalView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getEmbedExternalView.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/embed/getEmbedExternalView.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,oBAAoB,MAAM,eAAe,CAAA;AAC1D,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AAMtF,MAAM,MAAM,WAAW,GAAG;IACxB,qLAAqL;IACrL,GAAG,EAAE,MAAM,CAAA;IACX,mMAAmM;IACnM,IAAI,EAAE,MAAM,EAAE,CAAA;CACf,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,oBAAoB,CAAC,IAAI,CAAA;IAChC,0IAA0I;IAC1I,cAAc,CAAC,EAAE,uBAAuB,CAAC,IAAI,EAAE,CAAA;IAC/C,iBAAiB,CAAC,EAAE;SAAG,CAAC,IAAI,MAAM,GAAG,OAAO;KAAE,EAAE,CAAA;CACjD;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"}
@@ -0,0 +1,8 @@
1
+ import { validate as _validate } from '../../../../lexicons.js';
2
+ import { is$typed as _is$typed, } from '../../../../util.js';
3
+ const is$typed = _is$typed, validate = _validate;
4
+ const id = 'app.bsky.embed.getEmbedExternalView';
5
+ export function toKnownErr(e) {
6
+ return e;
7
+ }
8
+ //# sourceMappingURL=getEmbedExternalView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getEmbedExternalView.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/embed/getEmbedExternalView.ts"],"names":[],"mappings":"AAMA,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,qCAAqC,CAAA;AA4BhD,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { 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 AppBskyEmbedExternal from './external.js'\nimport type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.embed.getEmbedExternalView'\n\nexport type QueryParams = {\n /** The canonical web URL the embed represents (typically the URL the user pasted into the composer). Used as the returned view's `uri`. May be used for validation in the future. */\n url: string\n /** AT-URIs of any Atmosphere records that can be resolved and used to construct #externalView views. Example: a site.standard.document and optionally its associated site.standard.publication. */\n uris: string[]\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n view?: AppBskyEmbedExternal.View\n /** StrongRefs (URI+CID) of the Atmosphere records that backed this view, suitable for embedding into a post's external.associatedRefs. */\n associatedRefs?: ComAtprotoRepoStrongRef.Main[]\n associatedRecords?: { [_ in string]: unknown }[]\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"]}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap } from '@atproto/xrpc';
5
+ export type QueryParams = {};
6
+ export type InputSchema = undefined;
7
+ export interface OutputSchema {
8
+ /** True when the viewer's account is disabled and cannot actively participate in chat. */
9
+ chatDisabled: boolean;
10
+ /** Whether the viewer's account is allowed to create group chats. New accounts are restricted from creating groups. */
11
+ canCreateGroups: boolean;
12
+ }
13
+ export interface CallOptions {
14
+ signal?: AbortSignal;
15
+ headers?: HeadersMap;
16
+ }
17
+ export interface Response {
18
+ success: boolean;
19
+ headers: HeadersMap;
20
+ data: OutputSchema;
21
+ }
22
+ export declare function toKnownErr(e: any): any;
23
+ //# sourceMappingURL=getStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getStatus.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/actor/getStatus.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AAcrD,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAC5B,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,0FAA0F;IAC1F,YAAY,EAAE,OAAO,CAAA;IACrB,uHAAuH;IACvH,eAAe,EAAE,OAAO,CAAA;CACzB;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"}
@@ -0,0 +1,8 @@
1
+ import { validate as _validate } from '../../../../lexicons.js';
2
+ import { is$typed as _is$typed, } from '../../../../util.js';
3
+ const is$typed = _is$typed, validate = _validate;
4
+ const id = 'chat.bsky.actor.getStatus';
5
+ export function toKnownErr(e) {
6
+ return e;
7
+ }
8
+ //# sourceMappingURL=getStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getStatus.js","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/actor/getStatus.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAE5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,2BAA2B,CAAA;AAuBtC,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { 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'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'chat.bsky.actor.getStatus'\n\nexport type QueryParams = {}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n /** True when the viewer's account is disabled and cannot actively participate in chat. */\n chatDisabled: boolean\n /** Whether the viewer's account is allowed to create group chats. New accounts are restricted from creating groups. */\n canCreateGroups: boolean\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"]}
@@ -30,9 +30,6 @@ export declare class AccountSuspendedError extends XRPCError {
30
30
  export declare class BlockedActorError extends XRPCError {
31
31
  constructor(src: XRPCError);
32
32
  }
33
- export declare class UserForbidsGroupsError extends XRPCError {
34
- constructor(src: XRPCError);
35
- }
36
33
  export declare class ConvoLockedError extends XRPCError {
37
34
  constructor(src: XRPCError);
38
35
  }
@@ -51,5 +48,8 @@ export declare class NotFollowedBySenderError extends XRPCError {
51
48
  export declare class RecipientNotFoundError extends XRPCError {
52
49
  constructor(src: XRPCError);
53
50
  }
51
+ export declare class UserForbidsGroupsError extends XRPCError {
52
+ constructor(src: XRPCError);
53
+ }
54
54
  export declare function toKnownErr(e: any): any;
55
55
  //# sourceMappingURL=addMembers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"addMembers.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/group/addMembers.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,iBAAiB,MAAM,kBAAkB,CAAA;AAC1D,OAAO,KAAK,KAAK,iBAAiB,MAAM,kBAAkB,CAAA;AAM1D,M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AAa,wBAAyB,SAAQ,SAAS;gBACzC,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,sBAAuB,SAAQ,SAAS;gBACvC,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,sBAAuB,SAAQ,SAAS;gBACvC,GAAG,EAAE,SAAS;CAG3B;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAehC"}
@@ -16,11 +16,6 @@ export class BlockedActorError extends XRPCError {
16
16
  super(src.status, src.error, src.message, src.headers, { cause: src });
17
17
  }
18
18
  }
19
- export class UserForbidsGroupsError extends XRPCError {
20
- constructor(src) {
21
- super(src.status, src.error, src.message, src.headers, { cause: src });
22
- }
23
- }
24
19
  export class ConvoLockedError extends XRPCError {
25
20
  constructor(src) {
26
21
  super(src.status, src.error, src.message, src.headers, { cause: src });
@@ -51,14 +46,17 @@ export class RecipientNotFoundError extends XRPCError {
51
46
  super(src.status, src.error, src.message, src.headers, { cause: src });
52
47
  }
53
48
  }
49
+ export class UserForbidsGroupsError extends XRPCError {
50
+ constructor(src) {
51
+ super(src.status, src.error, src.message, src.headers, { cause: src });
52
+ }
53
+ }
54
54
  export function toKnownErr(e) {
55
55
  if (e instanceof XRPCError) {
56
56
  if (e.error === 'AccountSuspended')
57
57
  return new AccountSuspendedError(e);
58
58
  if (e.error === 'BlockedActor')
59
59
  return new BlockedActorError(e);
60
- if (e.error === 'UserForbidsGroups')
61
- return new UserForbidsGroupsError(e);
62
60
  if (e.error === 'ConvoLocked')
63
61
  return new ConvoLockedError(e);
64
62
  if (e.error === 'InsufficientRole')
@@ -71,6 +69,8 @@ export function toKnownErr(e) {
71
69
  return new NotFollowedBySenderError(e);
72
70
  if (e.error === 'RecipientNotFound')
73
71
  return new RecipientNotFoundError(e);
72
+ if (e.error === 'UserForbidsGroups')
73
+ return new UserForbidsGroupsError(e);
74
74
  }
75
75
  return e;
76
76
  }
@@ -1 +1 @@
1
- {"version":3,"file":"addMembers.js","sourceRoot":"","sources":["../../../../../../src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YAAY,SAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,KAAK,kBAAkB;YAAE,OAAO,IAAI,qBAAqB,CAAC,CAAC,CAAC,CAAA;QACvE,IAAI,CAAC,CAAC,KAAK,KAAK,cAAc;YAAE,OAAO,IAAI,iBAAiB,CAAC,CAAC,CAAC,CAAA;QAC/D,IAAI,CAAC,CAAC,KAAK,KAAK,mBAAmB;YAAE,OAAO,IAAI,sBAAsB,CAAC,CAAC,CAAC,CAAA;QACzE,IAAI,CAAC,CAAC,KAAK,KAAK,aAAa;YAAE,OAAO,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAAA;QAC7D,IAAI,CAAC,CAAC,KAAK,KAAK,kBAAkB;YAAE,OAAO,IAAI,qBAAqB,CAAC,CAAC,CAAC,CAAA;QACvE,IAAI,CAAC,CAAC,KAAK,KAAK,cAAc;YAAE,OAAO,IAAI,iBAAiB,CAAC,CAAC,CAAC,CAAA;QAC/D,IAAI,CAAC,CAAC,KAAK,KAAK,oBAAoB;YAAE,OAAO,IAAI,uBAAuB,CAAC,CAAC,CAAC,CAAA;QAC3E,IAAI,CAAC,CAAC,KAAK,KAAK,qBAAqB;YACnC,OAAO,IAAI,wBAAwB,CAAC,CAAC,CAAC,CAAA;QACxC,IAAI,CAAC,CAAC,KAAK,KAAK,mBAAmB;YAAE,OAAO,IAAI,sBAAsB,CAAC,CAAC,CAAC,CAAA;IAC3E,CAAC;IAED,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { 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 ChatBskyConvoDefs from '../convo/defs.js'\nimport type * as ChatBskyActorDefs from '../actor/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'chat.bsky.group.addMembers'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n convoId: string\n members: string[]\n}\n\nexport interface OutputSchema {\n convo: ChatBskyConvoDefs.ConvoView\n addedMembers?: ChatBskyActorDefs.ProfileViewBasic[]\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n qp?: QueryParams\n encoding?: 'application/json'\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport class AccountSuspendedError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class BlockedActorError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class UserForbidsGroupsError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class ConvoLockedError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class InsufficientRoleError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class InvalidConvoError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class MemberLimitReachedError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class NotFollowedBySenderError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class RecipientNotFoundError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'AccountSuspended') return new AccountSuspendedError(e)\n if (e.error === 'BlockedActor') return new BlockedActorError(e)\n if (e.error === 'UserForbidsGroups') return new UserForbidsGroupsError(e)\n if (e.error === 'ConvoLocked') return new ConvoLockedError(e)\n if (e.error === 'InsufficientRole') return new InsufficientRoleError(e)\n if (e.error === 'InvalidConvo') return new InvalidConvoError(e)\n if (e.error === 'MemberLimitReached') return new MemberLimitReachedError(e)\n if (e.error === 'NotFollowedBySender')\n return new NotFollowedBySenderError(e)\n if (e.error === 'RecipientNotFound') return new RecipientNotFoundError(e)\n }\n\n return e\n}\n"]}
1
+ {"version":3,"file":"addMembers.js","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/group/addMembers.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAc,SAAS,EAAE,MAAM,eAAe,CAAA;AAGrD,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,4BAA4B,CAAA;AA2BvC,MAAM,OAAO,qBAAsB,SAAQ,SAAS;IAClD,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAED,MAAM,OAAO,iBAAkB,SAAQ,SAAS;IAC9C,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAED,MAAM,OAAO,gBAAiB,SAAQ,SAAS;IAC7C,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,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AED,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { 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 ChatBskyConvoDefs from '../convo/defs.js'\nimport type * as ChatBskyActorDefs from '../actor/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'chat.bsky.group.addMembers'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n convoId: string\n members: string[]\n}\n\nexport interface OutputSchema {\n convo: ChatBskyConvoDefs.ConvoView\n addedMembers?: ChatBskyActorDefs.ProfileViewBasic[]\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n qp?: QueryParams\n encoding?: 'application/json'\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport class AccountSuspendedError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class BlockedActorError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class ConvoLockedError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class InsufficientRoleError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class InvalidConvoError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class MemberLimitReachedError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class NotFollowedBySenderError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class RecipientNotFoundError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class UserForbidsGroupsError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'AccountSuspended') return new AccountSuspendedError(e)\n if (e.error === 'BlockedActor') return new BlockedActorError(e)\n if (e.error === 'ConvoLocked') return new ConvoLockedError(e)\n if (e.error === 'InsufficientRole') return new InsufficientRoleError(e)\n if (e.error === 'InvalidConvo') return new InvalidConvoError(e)\n if (e.error === 'MemberLimitReached') return new MemberLimitReachedError(e)\n if (e.error === 'NotFollowedBySender')\n return new NotFollowedBySenderError(e)\n if (e.error === 'RecipientNotFound') return new RecipientNotFoundError(e)\n if (e.error === 'UserForbidsGroups') return new UserForbidsGroupsError(e)\n }\n\n return e\n}\n"]}
@@ -28,7 +28,7 @@ export declare class AccountSuspendedError extends XRPCError {
28
28
  export declare class BlockedActorError extends XRPCError {
29
29
  constructor(src: XRPCError);
30
30
  }
31
- export declare class UserForbidsGroupsError extends XRPCError {
31
+ export declare class NewAccountCannotCreateGroupError extends XRPCError {
32
32
  constructor(src: XRPCError);
33
33
  }
34
34
  export declare class NotFollowedBySenderError extends XRPCError {
@@ -37,5 +37,8 @@ export declare class NotFollowedBySenderError extends XRPCError {
37
37
  export declare class RecipientNotFoundError extends XRPCError {
38
38
  constructor(src: XRPCError);
39
39
  }
40
+ export declare class UserForbidsGroupsError extends XRPCError {
41
+ constructor(src: XRPCError);
42
+ }
40
43
  export declare function toKnownErr(e: any): any;
41
44
  //# sourceMappingURL=createGroup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createGroup.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/group/createGroup.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,iBAAiB,MAAM,kBAAkB,CAAA;AAM1D,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAA;CACnC;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,EAAE,CAAC,EAAE,WAAW,CAAA;IAChB,QAAQ,CAAC,EAAE,kBAAkB,CAAA;CAC9B;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,qBAAa,qBAAsB,SAAQ,SAAS;gBACtC,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,iBAAkB,SAAQ,SAAS;gBAClC,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,sBAAuB,SAAQ,SAAS;gBACvC,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,wBAAyB,SAAQ,SAAS;gBACzC,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,sBAAuB,SAAQ,SAAS;gBACvC,GAAG,EAAE,SAAS;CAG3B;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAWhC"}
1
+ {"version":3,"file":"createGroup.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/group/createGroup.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,iBAAiB,MAAM,kBAAkB,CAAA;AAM1D,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAA;CACnC;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,EAAE,CAAC,EAAE,WAAW,CAAA;IAChB,QAAQ,CAAC,EAAE,kBAAkB,CAAA;CAC9B;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,qBAAa,qBAAsB,SAAQ,SAAS;gBACtC,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,iBAAkB,SAAQ,SAAS;gBAClC,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,gCAAiC,SAAQ,SAAS;gBACjD,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,wBAAyB,SAAQ,SAAS;gBACzC,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,sBAAuB,SAAQ,SAAS;gBACvC,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,sBAAuB,SAAQ,SAAS;gBACvC,GAAG,EAAE,SAAS;CAG3B;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAahC"}
@@ -16,7 +16,7 @@ export class BlockedActorError extends XRPCError {
16
16
  super(src.status, src.error, src.message, src.headers, { cause: src });
17
17
  }
18
18
  }
19
- export class UserForbidsGroupsError extends XRPCError {
19
+ export class NewAccountCannotCreateGroupError extends XRPCError {
20
20
  constructor(src) {
21
21
  super(src.status, src.error, src.message, src.headers, { cause: src });
22
22
  }
@@ -31,18 +31,25 @@ export class RecipientNotFoundError extends XRPCError {
31
31
  super(src.status, src.error, src.message, src.headers, { cause: src });
32
32
  }
33
33
  }
34
+ export class UserForbidsGroupsError extends XRPCError {
35
+ constructor(src) {
36
+ super(src.status, src.error, src.message, src.headers, { cause: src });
37
+ }
38
+ }
34
39
  export function toKnownErr(e) {
35
40
  if (e instanceof XRPCError) {
36
41
  if (e.error === 'AccountSuspended')
37
42
  return new AccountSuspendedError(e);
38
43
  if (e.error === 'BlockedActor')
39
44
  return new BlockedActorError(e);
40
- if (e.error === 'UserForbidsGroups')
41
- return new UserForbidsGroupsError(e);
45
+ if (e.error === 'NewAccountCannotCreateGroup')
46
+ return new NewAccountCannotCreateGroupError(e);
42
47
  if (e.error === 'NotFollowedBySender')
43
48
  return new NotFollowedBySenderError(e);
44
49
  if (e.error === 'RecipientNotFound')
45
50
  return new RecipientNotFoundError(e);
51
+ if (e.error === 'UserForbidsGroups')
52
+ return new UserForbidsGroupsError(e);
46
53
  }
47
54
  return e;
48
55
  }
@@ -1 +1 @@
1
- {"version":3,"file":"createGroup.js","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/group/createGroup.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAc,SAAS,EAAE,MAAM,eAAe,CAAA;AAGrD,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,6BAA6B,CAAA;AA0BxC,MAAM,OAAO,qBAAsB,SAAQ,SAAS;IAClD,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAED,MAAM,OAA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AAI,sBAAsB,CAAC,CAAC,CAAC,CAAA;QACzE,IAAI,CAAC,CAAC,KAAK,KAAK,qBAAqB;YACnC,OAAO,IAAI,wBAAwB,CAAC,CAAC,CAAC,CAAA;QACxC,IAAI,CAAC,CAAC,KAAK,KAAK,mBAAmB;YAAE,OAAO,IAAI,sBAAsB,CAAC,CAAC,CAAC,CAAA;IAC3E,CAAC;IAED,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { 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 ChatBskyConvoDefs from '../convo/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'chat.bsky.group.createGroup'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n members: string[]\n name: string\n}\n\nexport interface OutputSchema {\n convo: ChatBskyConvoDefs.ConvoView\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n qp?: QueryParams\n encoding?: 'application/json'\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport class AccountSuspendedError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class BlockedActorError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class UserForbidsGroupsError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class NotFollowedBySenderError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class RecipientNotFoundError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'AccountSuspended') return new AccountSuspendedError(e)\n if (e.error === 'BlockedActor') return new BlockedActorError(e)\n if (e.error === 'UserForbidsGroups') return new UserForbidsGroupsError(e)\n if (e.error === 'NotFollowedBySender')\n return new NotFollowedBySenderError(e)\n if (e.error === 'RecipientNotFound') return new RecipientNotFoundError(e)\n }\n\n return e\n}\n"]}
1
+ {"version":3,"file":"createGroup.js","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/group/createGroup.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAc,SAAS,EAAE,MAAM,eAAe,CAAA;AAGrD,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,6BAA6B,CAAA;AA0BxC,MAAM,OAAO,qBAAsB,SAAQ,SAAS;IAClD,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAED,MAAM,OAAO,iBAAkB,SAAQ,SAAS;IAC9C,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAED,MAAM,OAAO,gCAAiC,SAAQ,SAAS;IAC7D,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,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,qBAAqB;YACnC,OAAO,IAAI,wBAAwB,CAAC,CAAC,CAAC,CAAA;QACxC,IAAI,CAAC,CAAC,KAAK,KAAK,mBAAmB;YAAE,OAAO,IAAI,sBAAsB,CAAC,CAAC,CAAC,CAAA;QACzE,IAAI,CAAC,CAAC,KAAK,KAAK,mBAAmB;YAAE,OAAO,IAAI,sBAAsB,CAAC,CAAC,CAAC,CAAA;IAC3E,CAAC;IAED,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { 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 ChatBskyConvoDefs from '../convo/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'chat.bsky.group.createGroup'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n members: string[]\n name: string\n}\n\nexport interface OutputSchema {\n convo: ChatBskyConvoDefs.ConvoView\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n qp?: QueryParams\n encoding?: 'application/json'\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport class AccountSuspendedError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class BlockedActorError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class NewAccountCannotCreateGroupError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class NotFollowedBySenderError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class RecipientNotFoundError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport class UserForbidsGroupsError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'AccountSuspended') return new AccountSuspendedError(e)\n if (e.error === 'BlockedActor') return new BlockedActorError(e)\n if (e.error === 'NewAccountCannotCreateGroup')\n return new NewAccountCannotCreateGroupError(e)\n if (e.error === 'NotFollowedBySender')\n return new NotFollowedBySenderError(e)\n if (e.error === 'RecipientNotFound') return new RecipientNotFoundError(e)\n if (e.error === 'UserForbidsGroups') return new UserForbidsGroupsError(e)\n }\n\n return e\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/api",
3
- "version": "0.20.1",
3
+ "version": "0.20.2",
4
4
  "engines": {
5
5
  "node": ">=22"
6
6
  },