@atproto/api 0.18.19 → 0.18.21
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.
- package/CHANGELOG.md +18 -0
- package/dist/client/index.d.ts +6 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +14 -6
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +236 -16
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +120 -8
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/draft/defs.d.ts +3 -3
- package/dist/client/types/app/bsky/draft/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/draft/defs.js.map +1 -1
- package/dist/client/types/app/bsky/unspecced/getSuggestedOnboardingUsers.d.ts +27 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedOnboardingUsers.d.ts.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedOnboardingUsers.js +11 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedOnboardingUsers.js.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedOnboardingUsersSkeleton.d.ts +28 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedOnboardingUsersSkeleton.d.ts.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedOnboardingUsersSkeleton.js +11 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedOnboardingUsersSkeleton.js.map +1 -0
- package/dist/client/types/com/germnetwork/declaration.d.ts +7 -1
- package/dist/client/types/com/germnetwork/declaration.d.ts.map +1 -1
- package/dist/client/types/com/germnetwork/declaration.js.map +1 -1
- package/package.json +2 -2
- package/src/client/index.ts +28 -0
- package/src/client/lexicons.ts +133 -8
- package/src/client/types/app/bsky/draft/defs.ts +3 -3
- package/src/client/types/app/bsky/unspecced/getSuggestedOnboardingUsers.ts +45 -0
- package/src/client/types/app/bsky/unspecced/getSuggestedOnboardingUsersSkeleton.ts +46 -0
- package/src/client/types/com/germnetwork/declaration.ts +7 -1
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -21,8 +21,8 @@ export interface Draft {
|
|
|
21
21
|
$type?: 'app.bsky.draft.defs#draft';
|
|
22
22
|
/** UUIDv4 identifier of the device that created this draft. */
|
|
23
23
|
deviceId?: string;
|
|
24
|
-
/**
|
|
25
|
-
|
|
24
|
+
/** The device and/or platform on which the draft was created. */
|
|
25
|
+
deviceName?: string;
|
|
26
26
|
/** Array of draft posts that compose this draft. */
|
|
27
27
|
posts: DraftPost[];
|
|
28
28
|
/** Indicates human language of posts primary text content. */
|
|
@@ -41,7 +41,7 @@ export declare function validateDraft<V>(v: V): ValidationResult<Draft & V>;
|
|
|
41
41
|
/** One of the posts that compose a draft. */
|
|
42
42
|
export interface DraftPost {
|
|
43
43
|
$type?: 'app.bsky.draft.defs#draftPost';
|
|
44
|
-
/** The primary post content. */
|
|
44
|
+
/** The primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts. */
|
|
45
45
|
text: string;
|
|
46
46
|
labels?: $Typed<ComAtprotoLabelDefs.SelfLabels> | {
|
|
47
47
|
$type: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/draft/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,KAAK,mBAAmB,MAAM,qBAAqB,CAAA;AAC/D,OAAO,KAAK,KAAK,qBAAqB,MAAM,uBAAuB,CAAA;AACnE,OAAO,KAAK,KAAK,mBAAmB,MAAM,oCAAoC,CAAA;AAC9E,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AAMtF,mFAAmF;AACnF,MAAM,WAAW,WAAW;IAC1B,KAAK,CAA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kBAAkB,CAAA;AAE/C,SAAgB,kBAAkB,CAAI,CAAI;IACxC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,oBAAoB,CAAC,CAAA;AAC9C,CAAC;AAED,SAAgB,wBAAwB,CAAI,CAAI;IAC9C,OAAO,QAAQ,CAAuB,CAAC,EAAE,EAAE,EAAE,oBAAoB,CAAC,CAAA;AACpE,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'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as AppBskyFeedPostgate from '../feed/postgate.js'\nimport type * as AppBskyFeedThreadgate from '../feed/threadgate.js'\nimport type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js'\nimport type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.draft.defs'\n\n/** A draft with an identifier, used to store drafts in private storage (stash). */\nexport interface DraftWithId {\n $type?: 'app.bsky.draft.defs#draftWithId'\n /** A TID to be used as a draft identifier. */\n id: string\n draft: Draft\n}\n\nconst hashDraftWithId = 'draftWithId'\n\nexport function isDraftWithId<V>(v: V) {\n return is$typed(v, id, hashDraftWithId)\n}\n\nexport function validateDraftWithId<V>(v: V) {\n return validate<DraftWithId & V>(v, id, hashDraftWithId)\n}\n\n/** A draft containing an array of draft posts. */\nexport interface Draft {\n $type?: 'app.bsky.draft.defs#draft'\n /** UUIDv4 identifier of the device that created this draft. */\n deviceId?: string\n /**
|
|
1
|
+
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/draft/defs.ts"],"names":[],"mappings":";;AA8BA,sCAEC;AAED,kDAEC;AA8BD,0BAEC;AAED,sCAEC;AAgBD,kCAEC;AAED,8CAEC;AAgBD,kC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B,GAAG,oBAAoB,CAAA;AAEnD,SAAgB,oBAAoB,CAAI,CAAI;IAC1C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,sBAAsB,CAAC,CAAA;AAChD,CAAC;AAED,SAAgB,0BAA0B,CAAI,CAAI;IAChD,OAAO,QAAQ,CAAyB,CAAC,EAAE,EAAE,EAAE,sBAAsB,CAAC,CAAA;AACxE,CAAC;AAOD,MAAM,oBAAoB,GAAG,kBAAkB,CAAA;AAE/C,SAAgB,kBAAkB,CAAI,CAAI;IACxC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,oBAAoB,CAAC,CAAA;AAC9C,CAAC;AAED,SAAgB,wBAAwB,CAAI,CAAI;IAC9C,OAAO,QAAQ,CAAuB,CAAC,EAAE,EAAE,EAAE,oBAAoB,CAAC,CAAA;AACpE,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'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as AppBskyFeedPostgate from '../feed/postgate.js'\nimport type * as AppBskyFeedThreadgate from '../feed/threadgate.js'\nimport type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js'\nimport type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.draft.defs'\n\n/** A draft with an identifier, used to store drafts in private storage (stash). */\nexport interface DraftWithId {\n $type?: 'app.bsky.draft.defs#draftWithId'\n /** A TID to be used as a draft identifier. */\n id: string\n draft: Draft\n}\n\nconst hashDraftWithId = 'draftWithId'\n\nexport function isDraftWithId<V>(v: V) {\n return is$typed(v, id, hashDraftWithId)\n}\n\nexport function validateDraftWithId<V>(v: V) {\n return validate<DraftWithId & V>(v, id, hashDraftWithId)\n}\n\n/** A draft containing an array of draft posts. */\nexport interface Draft {\n $type?: 'app.bsky.draft.defs#draft'\n /** UUIDv4 identifier of the device that created this draft. */\n deviceId?: string\n /** The device and/or platform on which the draft was created. */\n deviceName?: string\n /** Array of draft posts that compose this draft. */\n posts: DraftPost[]\n /** Indicates human language of posts primary text content. */\n langs?: string[]\n /** Embedding rules for the postgates to be created when this draft is published. */\n postgateEmbeddingRules?: (\n | $Typed<AppBskyFeedPostgate.DisableRule>\n | { $type: string }\n )[]\n /** Allow-rules for the threadgate to be created when this draft is published. */\n threadgateAllow?: (\n | $Typed<AppBskyFeedThreadgate.MentionRule>\n | $Typed<AppBskyFeedThreadgate.FollowerRule>\n | $Typed<AppBskyFeedThreadgate.FollowingRule>\n | $Typed<AppBskyFeedThreadgate.ListRule>\n | { $type: string }\n )[]\n}\n\nconst hashDraft = 'draft'\n\nexport function isDraft<V>(v: V) {\n return is$typed(v, id, hashDraft)\n}\n\nexport function validateDraft<V>(v: V) {\n return validate<Draft & V>(v, id, hashDraft)\n}\n\n/** One of the posts that compose a draft. */\nexport interface DraftPost {\n $type?: 'app.bsky.draft.defs#draftPost'\n /** The primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts. */\n text: string\n labels?: $Typed<ComAtprotoLabelDefs.SelfLabels> | { $type: string }\n embedImages?: DraftEmbedImage[]\n embedVideos?: DraftEmbedVideo[]\n embedExternals?: DraftEmbedExternal[]\n embedRecords?: DraftEmbedRecord[]\n}\n\nconst hashDraftPost = 'draftPost'\n\nexport function isDraftPost<V>(v: V) {\n return is$typed(v, id, hashDraftPost)\n}\n\nexport function validateDraftPost<V>(v: V) {\n return validate<DraftPost & V>(v, id, hashDraftPost)\n}\n\n/** View to present drafts data to users. */\nexport interface DraftView {\n $type?: 'app.bsky.draft.defs#draftView'\n /** A TID to be used as a draft identifier. */\n id: string\n draft: Draft\n /** The time the draft was created. */\n createdAt: string\n /** The time the draft was last updated. */\n updatedAt: string\n}\n\nconst hashDraftView = 'draftView'\n\nexport function isDraftView<V>(v: V) {\n return is$typed(v, id, hashDraftView)\n}\n\nexport function validateDraftView<V>(v: V) {\n return validate<DraftView & V>(v, id, hashDraftView)\n}\n\nexport interface DraftEmbedLocalRef {\n $type?: 'app.bsky.draft.defs#draftEmbedLocalRef'\n /** Local, on-device ref to file to be embedded. Embeds are currently device-bound for drafts. */\n path: string\n}\n\nconst hashDraftEmbedLocalRef = 'draftEmbedLocalRef'\n\nexport function isDraftEmbedLocalRef<V>(v: V) {\n return is$typed(v, id, hashDraftEmbedLocalRef)\n}\n\nexport function validateDraftEmbedLocalRef<V>(v: V) {\n return validate<DraftEmbedLocalRef & V>(v, id, hashDraftEmbedLocalRef)\n}\n\nexport interface DraftEmbedCaption {\n $type?: 'app.bsky.draft.defs#draftEmbedCaption'\n lang: string\n content: string\n}\n\nconst hashDraftEmbedCaption = 'draftEmbedCaption'\n\nexport function isDraftEmbedCaption<V>(v: V) {\n return is$typed(v, id, hashDraftEmbedCaption)\n}\n\nexport function validateDraftEmbedCaption<V>(v: V) {\n return validate<DraftEmbedCaption & V>(v, id, hashDraftEmbedCaption)\n}\n\nexport interface DraftEmbedImage {\n $type?: 'app.bsky.draft.defs#draftEmbedImage'\n localRef: DraftEmbedLocalRef\n alt?: string\n}\n\nconst hashDraftEmbedImage = 'draftEmbedImage'\n\nexport function isDraftEmbedImage<V>(v: V) {\n return is$typed(v, id, hashDraftEmbedImage)\n}\n\nexport function validateDraftEmbedImage<V>(v: V) {\n return validate<DraftEmbedImage & V>(v, id, hashDraftEmbedImage)\n}\n\nexport interface DraftEmbedVideo {\n $type?: 'app.bsky.draft.defs#draftEmbedVideo'\n localRef: DraftEmbedLocalRef\n alt?: string\n captions?: DraftEmbedCaption[]\n}\n\nconst hashDraftEmbedVideo = 'draftEmbedVideo'\n\nexport function isDraftEmbedVideo<V>(v: V) {\n return is$typed(v, id, hashDraftEmbedVideo)\n}\n\nexport function validateDraftEmbedVideo<V>(v: V) {\n return validate<DraftEmbedVideo & V>(v, id, hashDraftEmbedVideo)\n}\n\nexport interface DraftEmbedExternal {\n $type?: 'app.bsky.draft.defs#draftEmbedExternal'\n uri: string\n}\n\nconst hashDraftEmbedExternal = 'draftEmbedExternal'\n\nexport function isDraftEmbedExternal<V>(v: V) {\n return is$typed(v, id, hashDraftEmbedExternal)\n}\n\nexport function validateDraftEmbedExternal<V>(v: V) {\n return validate<DraftEmbedExternal & V>(v, id, hashDraftEmbedExternal)\n}\n\nexport interface DraftEmbedRecord {\n $type?: 'app.bsky.draft.defs#draftEmbedRecord'\n record: ComAtprotoRepoStrongRef.Main\n}\n\nconst hashDraftEmbedRecord = 'draftEmbedRecord'\n\nexport function isDraftEmbedRecord<V>(v: V) {\n return is$typed(v, id, hashDraftEmbedRecord)\n}\n\nexport function validateDraftEmbedRecord<V>(v: V) {\n return validate<DraftEmbedRecord & V>(v, id, hashDraftEmbedRecord)\n}\n"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap } from '@atproto/xrpc';
|
|
5
|
+
import type * as AppBskyActorDefs from '../actor/defs.js';
|
|
6
|
+
export type QueryParams = {
|
|
7
|
+
/** Category of users to get suggestions for. */
|
|
8
|
+
category?: string;
|
|
9
|
+
limit?: number;
|
|
10
|
+
};
|
|
11
|
+
export type InputSchema = undefined;
|
|
12
|
+
export interface OutputSchema {
|
|
13
|
+
actors: AppBskyActorDefs.ProfileView[];
|
|
14
|
+
/** Snowflake for this recommendation, use when submitting recommendation events. */
|
|
15
|
+
recId?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface CallOptions {
|
|
18
|
+
signal?: AbortSignal;
|
|
19
|
+
headers?: HeadersMap;
|
|
20
|
+
}
|
|
21
|
+
export interface Response {
|
|
22
|
+
success: boolean;
|
|
23
|
+
headers: HeadersMap;
|
|
24
|
+
data: OutputSchema;
|
|
25
|
+
}
|
|
26
|
+
export declare function toKnownErr(e: any): any;
|
|
27
|
+
//# sourceMappingURL=getSuggestedOnboardingUsers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSuggestedOnboardingUsers.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getSuggestedOnboardingUsers.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,gBAAgB,MAAM,kBAAkB,CAAA;AAMzD,MAAM,MAAM,WAAW,GAAG;IACxB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,gBAAgB,CAAC,WAAW,EAAE,CAAA;IACtC,oFAAoF;IACpF,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;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,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toKnownErr = toKnownErr;
|
|
4
|
+
const lexicons_1 = require("../../../../lexicons");
|
|
5
|
+
const util_1 = require("../../../../util");
|
|
6
|
+
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
7
|
+
const id = 'app.bsky.unspecced.getSuggestedOnboardingUsers';
|
|
8
|
+
function toKnownErr(e) {
|
|
9
|
+
return e;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=getSuggestedOnboardingUsers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSuggestedOnboardingUsers.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getSuggestedOnboardingUsers.ts"],"names":[],"mappings":";;AA0CA,gCAEC;AAtCD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,gDAAgD,CAAA;AA0B3D,SAAgB,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'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as AppBskyActorDefs from '../actor/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.unspecced.getSuggestedOnboardingUsers'\n\nexport type QueryParams = {\n /** Category of users to get suggestions for. */\n category?: string\n limit?: number\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n actors: AppBskyActorDefs.ProfileView[]\n /** Snowflake for this recommendation, use when submitting recommendation events. */\n recId?: 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"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap } from '@atproto/xrpc';
|
|
5
|
+
export type QueryParams = {
|
|
6
|
+
/** DID of the account making the request (not included for public/unauthenticated queries). */
|
|
7
|
+
viewer?: string;
|
|
8
|
+
/** Category of users to get suggestions for. */
|
|
9
|
+
category?: string;
|
|
10
|
+
limit?: number;
|
|
11
|
+
};
|
|
12
|
+
export type InputSchema = undefined;
|
|
13
|
+
export interface OutputSchema {
|
|
14
|
+
dids: string[];
|
|
15
|
+
/** Snowflake for this recommendation, use when submitting recommendation events. */
|
|
16
|
+
recId?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface CallOptions {
|
|
19
|
+
signal?: AbortSignal;
|
|
20
|
+
headers?: HeadersMap;
|
|
21
|
+
}
|
|
22
|
+
export interface Response {
|
|
23
|
+
success: boolean;
|
|
24
|
+
headers: HeadersMap;
|
|
25
|
+
data: OutputSchema;
|
|
26
|
+
}
|
|
27
|
+
export declare function toKnownErr(e: any): any;
|
|
28
|
+
//# sourceMappingURL=getSuggestedOnboardingUsersSkeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSuggestedOnboardingUsersSkeleton.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getSuggestedOnboardingUsersSkeleton.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AAcrD,MAAM,MAAM,WAAW,GAAG;IACxB,+FAA+F;IAC/F,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,oFAAoF;IACpF,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;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,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toKnownErr = toKnownErr;
|
|
4
|
+
const lexicons_1 = require("../../../../lexicons");
|
|
5
|
+
const util_1 = require("../../../../util");
|
|
6
|
+
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
7
|
+
const id = 'app.bsky.unspecced.getSuggestedOnboardingUsersSkeleton';
|
|
8
|
+
function toKnownErr(e) {
|
|
9
|
+
return e;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=getSuggestedOnboardingUsersSkeleton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSuggestedOnboardingUsersSkeleton.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getSuggestedOnboardingUsersSkeleton.ts"],"names":[],"mappings":";;AA2CA,gCAEC;AAvCD,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,wDAAwD,CAAA;AA4BnE,SAAgB,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'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.unspecced.getSuggestedOnboardingUsersSkeleton'\n\nexport type QueryParams = {\n /** DID of the account making the request (not included for public/unauthenticated queries). */\n viewer?: string\n /** Category of users to get suggestions for. */\n category?: string\n limit?: number\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n dids: string[]\n /** Snowflake for this recommendation, use when submitting recommendation events. */\n recId?: 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"]}
|
|
@@ -4,10 +4,14 @@
|
|
|
4
4
|
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
5
|
export interface Main {
|
|
6
6
|
$type: 'com.germnetwork.declaration';
|
|
7
|
+
/** Semver version number, without pre-release or build information, for the format of opaque content */
|
|
7
8
|
version: string;
|
|
9
|
+
/** Opaque value, an ed25519 public key prefixed with a byte enum */
|
|
8
10
|
currentKey: Uint8Array;
|
|
9
11
|
messageMe?: MessageMe;
|
|
12
|
+
/** Opaque value, contains MLS KeyPackage(s), and other signature data, and is signed by the currentKey */
|
|
10
13
|
keyPackage?: Uint8Array;
|
|
14
|
+
/** Array of opaque values to allow for key rolling */
|
|
11
15
|
continuityProofs?: Uint8Array[];
|
|
12
16
|
[k: string]: unknown;
|
|
13
17
|
}
|
|
@@ -16,8 +20,10 @@ export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
|
16
20
|
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
17
21
|
export interface MessageMe {
|
|
18
22
|
$type?: 'com.germnetwork.declaration#messageMe';
|
|
23
|
+
/** A URL to present to an account that does not have its own com.germnetwork.declaration record, must have an empty fragment component, where the app should fill in the fragment component with the DIDs of the two accounts who wish to message each other */
|
|
19
24
|
messageMeUrl: string;
|
|
20
|
-
|
|
25
|
+
/** The policy of who can message the account, this value is included in the keyPackage, but is duplicated here to allow applications to decide if they should show a 'Message on Germ' button to the viewer. */
|
|
26
|
+
showButtonTo: 'none' | 'usersIFollow' | 'everyone' | (string & {});
|
|
21
27
|
}
|
|
22
28
|
export declare function isMessageMe<V>(v: V): v is import("../../../util").$TypedObject<V, "com.germnetwork.declaration", "messageMe">;
|
|
23
29
|
export declare function validateMessageMe<V>(v: V): ValidationResult<MessageMe & V>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"declaration.d.ts","sourceRoot":"","sources":["../../../../../src/client/types/com/germnetwork/declaration.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AASjE,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,6BAA6B,CAAA;IACpC,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,UAAU,CAAA;IACtB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,gBAAgB,CAAC,EAAE,UAAU,EAAE,CAAA;IAC/B,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,uFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,OAAO,EACL,KAAK,IAAI,IAAI,MAAM,EACnB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,cAAc,GAC/B,CAAA;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,uCAAuC,CAAA;IAC/C,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,cAAc,GAAG,UAAU,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"declaration.d.ts","sourceRoot":"","sources":["../../../../../src/client/types/com/germnetwork/declaration.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AASjE,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,6BAA6B,CAAA;IACpC,wGAAwG;IACxG,OAAO,EAAE,MAAM,CAAA;IACf,oEAAoE;IACpE,UAAU,EAAE,UAAU,CAAA;IACtB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,0GAA0G;IAC1G,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,sDAAsD;IACtD,gBAAgB,CAAC,EAAE,UAAU,EAAE,CAAA;IAC/B,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,uFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BAEnC;AAED,OAAO,EACL,KAAK,IAAI,IAAI,MAAM,EACnB,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,cAAc,GAC/B,CAAA;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,uCAAuC,CAAA;IAC/C,gQAAgQ;IAChQ,YAAY,EAAE,MAAM,CAAA;IACpB,gNAAgN;IAChN,YAAY,EAAE,MAAM,GAAG,cAAc,GAAG,UAAU,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;CACnE;AAID,wBAAgB,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,4FAElC;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mCAExC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"declaration.js","sourceRoot":"","sources":["../../../../../src/client/types/com/germnetwork/declaration.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"declaration.js","sourceRoot":"","sources":["../../../../../src/client/types/com/germnetwork/declaration.ts"],"names":[],"mappings":";;AA4BA,wBAEC;AAQW,0BAAQ;AANpB,oCAEC;AAKiB,sCAAc;AAahC,kCAEC;AAED,8CAEC;AArDD,gDAAyD;AACzD,wCAAgF;AAEhF,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,6BAA6B,CAAA;AAgBxC,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,SAAgB,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,SAAgB,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAA;AAClD,CAAC;AAgBD,MAAM,aAAa,GAAG,WAAW,CAAA;AAEjC,SAAgB,WAAW,CAAI,CAAI;IACjC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAA;AACvC,CAAC;AAED,SAAgB,iBAAiB,CAAI,CAAI;IACvC,OAAO,QAAQ,CAAgB,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAA;AACtD,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'\nimport { type $Typed, is$typed as _is$typed, type OmitKey } from '../../../util'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'com.germnetwork.declaration'\n\nexport interface Main {\n $type: 'com.germnetwork.declaration'\n /** Semver version number, without pre-release or build information, for the format of opaque content */\n version: string\n /** Opaque value, an ed25519 public key prefixed with a byte enum */\n currentKey: Uint8Array\n messageMe?: MessageMe\n /** Opaque value, contains MLS KeyPackage(s), and other signature data, and is signed by the currentKey */\n keyPackage?: Uint8Array\n /** Array of opaque values to allow for key rolling */\n continuityProofs?: Uint8Array[]\n [k: string]: unknown\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, true)\n}\n\nexport {\n type Main as Record,\n isMain as isRecord,\n validateMain as validateRecord,\n}\n\nexport interface MessageMe {\n $type?: 'com.germnetwork.declaration#messageMe'\n /** A URL to present to an account that does not have its own com.germnetwork.declaration record, must have an empty fragment component, where the app should fill in the fragment component with the DIDs of the two accounts who wish to message each other */\n messageMeUrl: string\n /** The policy of who can message the account, this value is included in the keyPackage, but is duplicated here to allow applications to decide if they should show a 'Message on Germ' button to the viewer. */\n showButtonTo: 'none' | 'usersIFollow' | 'everyone' | (string & {})\n}\n\nconst hashMessageMe = 'messageMe'\n\nexport function isMessageMe<V>(v: V) {\n return is$typed(v, id, hashMessageMe)\n}\n\nexport function validateMessageMe<V>(v: V) {\n return validate<MessageMe & V>(v, id, hashMessageMe)\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/api",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.21",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Client library for atproto and Bluesky",
|
|
6
6
|
"keywords": [
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"multiformats": "^9.9.0",
|
|
22
22
|
"tlds": "^1.234.0",
|
|
23
23
|
"zod": "^3.23.8",
|
|
24
|
-
"@atproto/common-web": "^0.4.
|
|
24
|
+
"@atproto/common-web": "^0.4.16",
|
|
25
25
|
"@atproto/lexicon": "^0.6.1",
|
|
26
26
|
"@atproto/syntax": "^0.4.3",
|
|
27
27
|
"@atproto/xrpc": "^0.7.7"
|
package/src/client/index.ts
CHANGED
|
@@ -129,6 +129,8 @@ import * as AppBskyUnspeccedGetPostThreadOtherV2 from './types/app/bsky/unspecce
|
|
|
129
129
|
import * as AppBskyUnspeccedGetPostThreadV2 from './types/app/bsky/unspecced/getPostThreadV2.js'
|
|
130
130
|
import * as AppBskyUnspeccedGetSuggestedFeeds from './types/app/bsky/unspecced/getSuggestedFeeds.js'
|
|
131
131
|
import * as AppBskyUnspeccedGetSuggestedFeedsSkeleton from './types/app/bsky/unspecced/getSuggestedFeedsSkeleton.js'
|
|
132
|
+
import * as AppBskyUnspeccedGetSuggestedOnboardingUsers from './types/app/bsky/unspecced/getSuggestedOnboardingUsers.js'
|
|
133
|
+
import * as AppBskyUnspeccedGetSuggestedOnboardingUsersSkeleton from './types/app/bsky/unspecced/getSuggestedOnboardingUsersSkeleton.js'
|
|
132
134
|
import * as AppBskyUnspeccedGetSuggestedStarterPacks from './types/app/bsky/unspecced/getSuggestedStarterPacks.js'
|
|
133
135
|
import * as AppBskyUnspeccedGetSuggestedStarterPacksSkeleton from './types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.js'
|
|
134
136
|
import * as AppBskyUnspeccedGetSuggestedUsers from './types/app/bsky/unspecced/getSuggestedUsers.js'
|
|
@@ -442,6 +444,8 @@ export * as AppBskyUnspeccedGetPostThreadOtherV2 from './types/app/bsky/unspecce
|
|
|
442
444
|
export * as AppBskyUnspeccedGetPostThreadV2 from './types/app/bsky/unspecced/getPostThreadV2.js'
|
|
443
445
|
export * as AppBskyUnspeccedGetSuggestedFeeds from './types/app/bsky/unspecced/getSuggestedFeeds.js'
|
|
444
446
|
export * as AppBskyUnspeccedGetSuggestedFeedsSkeleton from './types/app/bsky/unspecced/getSuggestedFeedsSkeleton.js'
|
|
447
|
+
export * as AppBskyUnspeccedGetSuggestedOnboardingUsers from './types/app/bsky/unspecced/getSuggestedOnboardingUsers.js'
|
|
448
|
+
export * as AppBskyUnspeccedGetSuggestedOnboardingUsersSkeleton from './types/app/bsky/unspecced/getSuggestedOnboardingUsersSkeleton.js'
|
|
445
449
|
export * as AppBskyUnspeccedGetSuggestedStarterPacks from './types/app/bsky/unspecced/getSuggestedStarterPacks.js'
|
|
446
450
|
export * as AppBskyUnspeccedGetSuggestedStarterPacksSkeleton from './types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.js'
|
|
447
451
|
export * as AppBskyUnspeccedGetSuggestedUsers from './types/app/bsky/unspecced/getSuggestedUsers.js'
|
|
@@ -3281,6 +3285,30 @@ export class AppBskyUnspeccedNS {
|
|
|
3281
3285
|
)
|
|
3282
3286
|
}
|
|
3283
3287
|
|
|
3288
|
+
getSuggestedOnboardingUsers(
|
|
3289
|
+
params?: AppBskyUnspeccedGetSuggestedOnboardingUsers.QueryParams,
|
|
3290
|
+
opts?: AppBskyUnspeccedGetSuggestedOnboardingUsers.CallOptions,
|
|
3291
|
+
): Promise<AppBskyUnspeccedGetSuggestedOnboardingUsers.Response> {
|
|
3292
|
+
return this._client.call(
|
|
3293
|
+
'app.bsky.unspecced.getSuggestedOnboardingUsers',
|
|
3294
|
+
params,
|
|
3295
|
+
undefined,
|
|
3296
|
+
opts,
|
|
3297
|
+
)
|
|
3298
|
+
}
|
|
3299
|
+
|
|
3300
|
+
getSuggestedOnboardingUsersSkeleton(
|
|
3301
|
+
params?: AppBskyUnspeccedGetSuggestedOnboardingUsersSkeleton.QueryParams,
|
|
3302
|
+
opts?: AppBskyUnspeccedGetSuggestedOnboardingUsersSkeleton.CallOptions,
|
|
3303
|
+
): Promise<AppBskyUnspeccedGetSuggestedOnboardingUsersSkeleton.Response> {
|
|
3304
|
+
return this._client.call(
|
|
3305
|
+
'app.bsky.unspecced.getSuggestedOnboardingUsersSkeleton',
|
|
3306
|
+
params,
|
|
3307
|
+
undefined,
|
|
3308
|
+
opts,
|
|
3309
|
+
)
|
|
3310
|
+
}
|
|
3311
|
+
|
|
3284
3312
|
getSuggestedStarterPacks(
|
|
3285
3313
|
params?: AppBskyUnspeccedGetSuggestedStarterPacks.QueryParams,
|
|
3286
3314
|
opts?: AppBskyUnspeccedGetSuggestedStarterPacks.CallOptions,
|
package/src/client/lexicons.ts
CHANGED
|
@@ -2330,11 +2330,13 @@ export const schemaDict = {
|
|
|
2330
2330
|
type: 'string',
|
|
2331
2331
|
description:
|
|
2332
2332
|
'UUIDv4 identifier of the device that created this draft.',
|
|
2333
|
+
maxLength: 100,
|
|
2333
2334
|
},
|
|
2334
|
-
|
|
2335
|
+
deviceName: {
|
|
2335
2336
|
type: 'string',
|
|
2336
|
-
|
|
2337
|
-
|
|
2337
|
+
description:
|
|
2338
|
+
'The device and/or platform on which the draft was created.',
|
|
2339
|
+
maxLength: 100,
|
|
2338
2340
|
},
|
|
2339
2341
|
posts: {
|
|
2340
2342
|
description: 'Array of draft posts that compose this draft.',
|
|
@@ -2390,9 +2392,10 @@ export const schemaDict = {
|
|
|
2390
2392
|
properties: {
|
|
2391
2393
|
text: {
|
|
2392
2394
|
type: 'string',
|
|
2393
|
-
maxLength:
|
|
2394
|
-
maxGraphemes:
|
|
2395
|
-
description:
|
|
2395
|
+
maxLength: 10000,
|
|
2396
|
+
maxGraphemes: 1000,
|
|
2397
|
+
description:
|
|
2398
|
+
'The primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts.',
|
|
2396
2399
|
},
|
|
2397
2400
|
labels: {
|
|
2398
2401
|
type: 'union',
|
|
@@ -8341,6 +8344,105 @@ export const schemaDict = {
|
|
|
8341
8344
|
},
|
|
8342
8345
|
},
|
|
8343
8346
|
},
|
|
8347
|
+
AppBskyUnspeccedGetSuggestedOnboardingUsers: {
|
|
8348
|
+
lexicon: 1,
|
|
8349
|
+
id: 'app.bsky.unspecced.getSuggestedOnboardingUsers',
|
|
8350
|
+
defs: {
|
|
8351
|
+
main: {
|
|
8352
|
+
type: 'query',
|
|
8353
|
+
description: 'Get a list of suggested users for onboarding',
|
|
8354
|
+
parameters: {
|
|
8355
|
+
type: 'params',
|
|
8356
|
+
properties: {
|
|
8357
|
+
category: {
|
|
8358
|
+
type: 'string',
|
|
8359
|
+
description: 'Category of users to get suggestions for.',
|
|
8360
|
+
},
|
|
8361
|
+
limit: {
|
|
8362
|
+
type: 'integer',
|
|
8363
|
+
minimum: 1,
|
|
8364
|
+
maximum: 50,
|
|
8365
|
+
default: 25,
|
|
8366
|
+
},
|
|
8367
|
+
},
|
|
8368
|
+
},
|
|
8369
|
+
output: {
|
|
8370
|
+
encoding: 'application/json',
|
|
8371
|
+
schema: {
|
|
8372
|
+
type: 'object',
|
|
8373
|
+
required: ['actors'],
|
|
8374
|
+
properties: {
|
|
8375
|
+
actors: {
|
|
8376
|
+
type: 'array',
|
|
8377
|
+
items: {
|
|
8378
|
+
type: 'ref',
|
|
8379
|
+
ref: 'lex:app.bsky.actor.defs#profileView',
|
|
8380
|
+
},
|
|
8381
|
+
},
|
|
8382
|
+
recId: {
|
|
8383
|
+
type: 'string',
|
|
8384
|
+
description:
|
|
8385
|
+
'Snowflake for this recommendation, use when submitting recommendation events.',
|
|
8386
|
+
},
|
|
8387
|
+
},
|
|
8388
|
+
},
|
|
8389
|
+
},
|
|
8390
|
+
},
|
|
8391
|
+
},
|
|
8392
|
+
},
|
|
8393
|
+
AppBskyUnspeccedGetSuggestedOnboardingUsersSkeleton: {
|
|
8394
|
+
lexicon: 1,
|
|
8395
|
+
id: 'app.bsky.unspecced.getSuggestedOnboardingUsersSkeleton',
|
|
8396
|
+
defs: {
|
|
8397
|
+
main: {
|
|
8398
|
+
type: 'query',
|
|
8399
|
+
description:
|
|
8400
|
+
'Get a skeleton of suggested users for onboarding. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedOnboardingUsers',
|
|
8401
|
+
parameters: {
|
|
8402
|
+
type: 'params',
|
|
8403
|
+
properties: {
|
|
8404
|
+
viewer: {
|
|
8405
|
+
type: 'string',
|
|
8406
|
+
format: 'did',
|
|
8407
|
+
description:
|
|
8408
|
+
'DID of the account making the request (not included for public/unauthenticated queries).',
|
|
8409
|
+
},
|
|
8410
|
+
category: {
|
|
8411
|
+
type: 'string',
|
|
8412
|
+
description: 'Category of users to get suggestions for.',
|
|
8413
|
+
},
|
|
8414
|
+
limit: {
|
|
8415
|
+
type: 'integer',
|
|
8416
|
+
minimum: 1,
|
|
8417
|
+
maximum: 50,
|
|
8418
|
+
default: 25,
|
|
8419
|
+
},
|
|
8420
|
+
},
|
|
8421
|
+
},
|
|
8422
|
+
output: {
|
|
8423
|
+
encoding: 'application/json',
|
|
8424
|
+
schema: {
|
|
8425
|
+
type: 'object',
|
|
8426
|
+
required: ['dids'],
|
|
8427
|
+
properties: {
|
|
8428
|
+
dids: {
|
|
8429
|
+
type: 'array',
|
|
8430
|
+
items: {
|
|
8431
|
+
type: 'string',
|
|
8432
|
+
format: 'did',
|
|
8433
|
+
},
|
|
8434
|
+
},
|
|
8435
|
+
recId: {
|
|
8436
|
+
type: 'string',
|
|
8437
|
+
description:
|
|
8438
|
+
'Snowflake for this recommendation, use when submitting recommendation events.',
|
|
8439
|
+
},
|
|
8440
|
+
},
|
|
8441
|
+
},
|
|
8442
|
+
},
|
|
8443
|
+
},
|
|
8444
|
+
},
|
|
8445
|
+
},
|
|
8344
8446
|
AppBskyUnspeccedGetSuggestedStarterPacks: {
|
|
8345
8447
|
lexicon: 1,
|
|
8346
8448
|
id: 'app.bsky.unspecced.getSuggestedStarterPacks',
|
|
@@ -15344,7 +15446,7 @@ export const schemaDict = {
|
|
|
15344
15446
|
defs: {
|
|
15345
15447
|
main: {
|
|
15346
15448
|
type: 'record',
|
|
15347
|
-
description: 'A
|
|
15449
|
+
description: 'A declaration of a Germ Network account',
|
|
15348
15450
|
key: 'literal:self',
|
|
15349
15451
|
record: {
|
|
15350
15452
|
type: 'object',
|
|
@@ -15352,22 +15454,33 @@ export const schemaDict = {
|
|
|
15352
15454
|
properties: {
|
|
15353
15455
|
version: {
|
|
15354
15456
|
type: 'string',
|
|
15457
|
+
description:
|
|
15458
|
+
'Semver version number, without pre-release or build information, for the format of opaque content',
|
|
15459
|
+
minLength: 5,
|
|
15460
|
+
maxLength: 14,
|
|
15355
15461
|
},
|
|
15356
15462
|
currentKey: {
|
|
15357
15463
|
type: 'bytes',
|
|
15464
|
+
description:
|
|
15465
|
+
'Opaque value, an ed25519 public key prefixed with a byte enum',
|
|
15358
15466
|
},
|
|
15359
15467
|
messageMe: {
|
|
15360
15468
|
type: 'ref',
|
|
15469
|
+
description: 'Controls who can message this account',
|
|
15361
15470
|
ref: 'lex:com.germnetwork.declaration#messageMe',
|
|
15362
15471
|
},
|
|
15363
15472
|
keyPackage: {
|
|
15364
15473
|
type: 'bytes',
|
|
15474
|
+
description:
|
|
15475
|
+
'Opaque value, contains MLS KeyPackage(s), and other signature data, and is signed by the currentKey',
|
|
15365
15476
|
},
|
|
15366
15477
|
continuityProofs: {
|
|
15367
15478
|
type: 'array',
|
|
15479
|
+
description: 'Array of opaque values to allow for key rolling',
|
|
15368
15480
|
items: {
|
|
15369
15481
|
type: 'bytes',
|
|
15370
15482
|
},
|
|
15483
|
+
maxLength: 1000,
|
|
15371
15484
|
},
|
|
15372
15485
|
},
|
|
15373
15486
|
},
|
|
@@ -15378,11 +15491,19 @@ export const schemaDict = {
|
|
|
15378
15491
|
properties: {
|
|
15379
15492
|
messageMeUrl: {
|
|
15380
15493
|
type: 'string',
|
|
15494
|
+
description:
|
|
15495
|
+
'A URL to present to an account that does not have its own com.germnetwork.declaration record, must have an empty fragment component, where the app should fill in the fragment component with the DIDs of the two accounts who wish to message each other',
|
|
15381
15496
|
format: 'uri',
|
|
15497
|
+
minLength: 1,
|
|
15498
|
+
maxLength: 2047,
|
|
15382
15499
|
},
|
|
15383
15500
|
showButtonTo: {
|
|
15384
15501
|
type: 'string',
|
|
15385
|
-
knownValues: ['usersIFollow', 'everyone'],
|
|
15502
|
+
knownValues: ['none', 'usersIFollow', 'everyone'],
|
|
15503
|
+
description:
|
|
15504
|
+
"The policy of who can message the account, this value is included in the keyPackage, but is duplicated here to allow applications to decide if they should show a 'Message on Germ' button to the viewer.",
|
|
15505
|
+
minLength: 1,
|
|
15506
|
+
maxLength: 100,
|
|
15386
15507
|
},
|
|
15387
15508
|
},
|
|
15388
15509
|
},
|
|
@@ -20709,6 +20830,10 @@ export const ids = {
|
|
|
20709
20830
|
AppBskyUnspeccedGetSuggestedFeeds: 'app.bsky.unspecced.getSuggestedFeeds',
|
|
20710
20831
|
AppBskyUnspeccedGetSuggestedFeedsSkeleton:
|
|
20711
20832
|
'app.bsky.unspecced.getSuggestedFeedsSkeleton',
|
|
20833
|
+
AppBskyUnspeccedGetSuggestedOnboardingUsers:
|
|
20834
|
+
'app.bsky.unspecced.getSuggestedOnboardingUsers',
|
|
20835
|
+
AppBskyUnspeccedGetSuggestedOnboardingUsersSkeleton:
|
|
20836
|
+
'app.bsky.unspecced.getSuggestedOnboardingUsersSkeleton',
|
|
20712
20837
|
AppBskyUnspeccedGetSuggestedStarterPacks:
|
|
20713
20838
|
'app.bsky.unspecced.getSuggestedStarterPacks',
|
|
20714
20839
|
AppBskyUnspeccedGetSuggestedStarterPacksSkeleton:
|
|
@@ -41,8 +41,8 @@ export interface Draft {
|
|
|
41
41
|
$type?: 'app.bsky.draft.defs#draft'
|
|
42
42
|
/** UUIDv4 identifier of the device that created this draft. */
|
|
43
43
|
deviceId?: string
|
|
44
|
-
/**
|
|
45
|
-
|
|
44
|
+
/** The device and/or platform on which the draft was created. */
|
|
45
|
+
deviceName?: string
|
|
46
46
|
/** Array of draft posts that compose this draft. */
|
|
47
47
|
posts: DraftPost[]
|
|
48
48
|
/** Indicates human language of posts primary text content. */
|
|
@@ -75,7 +75,7 @@ export function validateDraft<V>(v: V) {
|
|
|
75
75
|
/** One of the posts that compose a draft. */
|
|
76
76
|
export interface DraftPost {
|
|
77
77
|
$type?: 'app.bsky.draft.defs#draftPost'
|
|
78
|
-
/** The primary post content. */
|
|
78
|
+
/** The primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts. */
|
|
79
79
|
text: string
|
|
80
80
|
labels?: $Typed<ComAtprotoLabelDefs.SelfLabels> | { $type: string }
|
|
81
81
|
embedImages?: DraftEmbedImage[]
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap, XRPCError } from '@atproto/xrpc'
|
|
5
|
+
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
|
+
import { CID } from 'multiformats/cid'
|
|
7
|
+
import { validate as _validate } from '../../../../lexicons'
|
|
8
|
+
import {
|
|
9
|
+
type $Typed,
|
|
10
|
+
is$typed as _is$typed,
|
|
11
|
+
type OmitKey,
|
|
12
|
+
} from '../../../../util'
|
|
13
|
+
import type * as AppBskyActorDefs from '../actor/defs.js'
|
|
14
|
+
|
|
15
|
+
const is$typed = _is$typed,
|
|
16
|
+
validate = _validate
|
|
17
|
+
const id = 'app.bsky.unspecced.getSuggestedOnboardingUsers'
|
|
18
|
+
|
|
19
|
+
export type QueryParams = {
|
|
20
|
+
/** Category of users to get suggestions for. */
|
|
21
|
+
category?: string
|
|
22
|
+
limit?: number
|
|
23
|
+
}
|
|
24
|
+
export type InputSchema = undefined
|
|
25
|
+
|
|
26
|
+
export interface OutputSchema {
|
|
27
|
+
actors: AppBskyActorDefs.ProfileView[]
|
|
28
|
+
/** Snowflake for this recommendation, use when submitting recommendation events. */
|
|
29
|
+
recId?: string
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface CallOptions {
|
|
33
|
+
signal?: AbortSignal
|
|
34
|
+
headers?: HeadersMap
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface Response {
|
|
38
|
+
success: boolean
|
|
39
|
+
headers: HeadersMap
|
|
40
|
+
data: OutputSchema
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function toKnownErr(e: any) {
|
|
44
|
+
return e
|
|
45
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap, XRPCError } from '@atproto/xrpc'
|
|
5
|
+
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
|
+
import { CID } from 'multiformats/cid'
|
|
7
|
+
import { validate as _validate } from '../../../../lexicons'
|
|
8
|
+
import {
|
|
9
|
+
type $Typed,
|
|
10
|
+
is$typed as _is$typed,
|
|
11
|
+
type OmitKey,
|
|
12
|
+
} from '../../../../util'
|
|
13
|
+
|
|
14
|
+
const is$typed = _is$typed,
|
|
15
|
+
validate = _validate
|
|
16
|
+
const id = 'app.bsky.unspecced.getSuggestedOnboardingUsersSkeleton'
|
|
17
|
+
|
|
18
|
+
export type QueryParams = {
|
|
19
|
+
/** DID of the account making the request (not included for public/unauthenticated queries). */
|
|
20
|
+
viewer?: string
|
|
21
|
+
/** Category of users to get suggestions for. */
|
|
22
|
+
category?: string
|
|
23
|
+
limit?: number
|
|
24
|
+
}
|
|
25
|
+
export type InputSchema = undefined
|
|
26
|
+
|
|
27
|
+
export interface OutputSchema {
|
|
28
|
+
dids: string[]
|
|
29
|
+
/** Snowflake for this recommendation, use when submitting recommendation events. */
|
|
30
|
+
recId?: string
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface CallOptions {
|
|
34
|
+
signal?: AbortSignal
|
|
35
|
+
headers?: HeadersMap
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface Response {
|
|
39
|
+
success: boolean
|
|
40
|
+
headers: HeadersMap
|
|
41
|
+
data: OutputSchema
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function toKnownErr(e: any) {
|
|
45
|
+
return e
|
|
46
|
+
}
|